Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Update Web (major) #1002

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update Web (major) #1002

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 3, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@matrix-org/matrix-wysiwyg ^0.23.0 -> ^2.0.0 age adoption passing confidence
@testing-library/dom ^8.19.0 -> ^10.0.0 age adoption passing confidence
@testing-library/jest-dom ^5.16.5 -> ^6.0.0 age adoption passing confidence
@testing-library/react ^13.4.0 -> ^16.0.0 age adoption passing confidence
@typescript-eslint/eslint-plugin (source) ^5.35.1 -> ^8.0.0 age adoption passing confidence
@typescript-eslint/parser (source) ^5.6.0 -> ^8.0.0 age adoption passing confidence
@vitejs/plugin-react (source) ^2.1.0 -> ^4.0.0 age adoption passing confidence
@vitest/coverage-v8 (source) ^1.6.0 -> ^2.0.0 age adoption passing confidence
@vitest/ui (source) ^0.34.0 -> ^2.0.0 age adoption passing confidence
cypress (source) ^10.9.0 -> ^13.0.0 age adoption passing confidence
eslint (source) ^8.23.1 -> ^9.0.0 age adoption passing confidence
eslint-config-prettier ^8.5.0 -> ^9.0.0 age adoption passing confidence
eslint-plugin-matrix-org ^0.10.0 -> ^1.0.0 age adoption passing confidence
eslint-plugin-prettier ^4.2.1 -> ^5.0.0 age adoption passing confidence
eslint-plugin-unicorn ^54.0.0 -> ^55.0.0 age adoption passing confidence
jest (source) ^28.1.0 -> ^29.0.0 age adoption passing confidence
prettier (source) 2.8.8 -> 3.3.3 age adoption passing confidence
typescript (source) ^4.7.4 -> ^5.0.0 age adoption passing confidence
typescript (source) ^4.6.4 -> ^5.0.0 age adoption passing confidence
vite (source) ^3.1.0 -> ^5.0.0 age adoption passing confidence
vite-plugin-dts ^1.5.0 -> ^4.0.0 age adoption passing confidence
vitest (source) ^1.6.0 -> ^2.0.0 age adoption passing confidence
vitest-sonar-reporter ^0.5.0 -> ^2.0.0 age adoption passing confidence

Release Notes

matrix-org/matrix-wysiwyg (@​matrix-org/matrix-wysiwyg)

v2.37.8

Compare Source

  • [Web] Fix a bug that caused the composer to be reinitialised a second time.

v2.37.7

Compare Source

  • [Common] Add auto completion for emojis.
  • [Android] Fix issues with new lines by replacing the HTML parser with Jsoup.
  • [iOS] Added support for Xcode 15.4, improved XCFramework generation script.

v2.37.6

Compare Source

  • [iOS] Re-enabled inline prediction and replaced the behaviour of reconciliate with a commmited text system for latin and common only characters, to allow for a better user experience with inline prediction.

v2.37.5

Compare Source

  • [Rust] Fixed a crash that happened when entering a new line after setting through html a blockquote containing a single line.
  • [Common] Updated dependencies.

v2.37.4

Compare Source

  • [Android] Make CustomMentionSpan public.
  • [Rust] Escape text passed to ComposerModel::set_link_with_text and insert_mention* methods.

v2.37.3

Compare Source

  • [Android] Add RichTextEditorState.setMarkdown(text) function, which allows the usage of MD as the initial text of the rich text editor Compose wrapper.

v2.37.2

Compare Source

  • [Android] Fix selection mismatch on Android 14+ after using word completion.

v2.37.1

Compare Source

  • [Android] Return pure Markdown in the RichTextEditorState.messageMarkdown property instead of MD + HTML for mention pills.
  • [Android] Fix selection indexes not being up to date when adding a punctuation mark using GBoard keyboard in Android < 13.

v2.37.0

Compare Source

  • [Android] Discard mentions with no associated text.
  • [iOS] iOS tests: Use xcresultparser instead of slather.

v2.36.0

Compare Source

  • [Android] Fix text composition issues in Compose wrapper.
  • [Android] Simplify InputConnection implementation, make OnSelectionChangedListener more precise.
  • [iOS] Fix a couple of bugs detecting whether the content is empty or not.
  • [iOS] Release to matrix-org/matrix-rich-text-editor-swift, attaching the binaries to GitHub releases.

v2.35.0

Compare Source

  • [iOS] Fix deployment with Xcode 15.3.

v2.34.0

Compare Source

  • [Rust] Bumped UniFFi to revision 789a9023b522562a95618443cee5a0d4f111c4c7.
  • [Android] reconcile UI text with editor text.
  • [Android] fix English characters for some Chinese keyboards.

v2.33.0

Compare Source

  • [iOS] Re-enabled auto-correction but disabled inline predictions on iOS 17.
  • [iOS] Build workflow now uses Xcode 15.2.

v2.32.0

Compare Source

  • [Android] Allow customising the initial Markdown value in RichTextEditorState.

v2.31.0

Compare Source

  • [iOS] Temporarily disabled auto correction until we fix the predictive text issue.

v2.30.0

Compare Source

  • [Rust] Bumped Rust version to 1.76.
  • [Rust] Bumped UniFFi to v0.26.1.
  • [Rust] Bumped speculoos to 0.11.0.
  • [Android] Fix touch handling for links: the listener should only fire once per click and tapping on an empty space next to a link wrapping several lines should not fire it.

v2.29.0

Compare Source

Changed
  • [iOS] Improved the textView injection process in the view model.

v2.28.0

Compare Source

Fixed
  • [iOS] Fixed an issue that broke the text view if the SwiftUI view was completely re-rendered.

v2.27.0

Compare Source

Fixed
  • [Common] Remove NBSP chars in replace_text for empty paragraphs (#​926)
  • [Common] Fix delete word not replacing text (#​833)

v2.26.0

Compare Source

Fixed
  • [iOS] Fixed an issue that made the RTE crash when ending dictation.

v2.25.0

Compare Source

Fixed
  • [iOS] Fixed a bug that prevented dictation to work properly on iOS 17 and above.

v2.24.0

Compare Source

Added
  • [Android] Add support for handling rich content from the keyboard (images, gifs, stickers, etc.).
Fixed
  • [Common] Fix deletion of several selected paragraphs, especially those with no content.
  • [Android] Fix incorrect detection of NBSP chars as extra characters while parsing HTML.
  • [Android] Destroy (as in free its memory) the current ComposerModel when it panics, before we replace it with a new instance.
  • [Android] When updating the selection, make sure it's inside the bounds of the existing text.
  • [Android] When creating the SpannableString while parsing the HTML, make sure every span is inside the bounds of its text.

v2.23.0

Compare Source

Changed
  • [Android] EditorStyledTextView and EditorStyledText now have an onTextLayout lambda parameter to publish its text layout results.
  • [Android] Add releaseOnDetach param to EditorStyledText so it can be reused in lazy composables.

v2.22.0

Compare Source

Fixed
  • [Android] Fix for user suggestions not updating the RTE text properly sometimes.
  • [Common] Fix for the editor crashing when adding a new line just after a mention.
  • [iOS] Fix for shift+enter key not working properly and refactored the Key Commands handling.
  • [Rust] Fix for markdown mode now correctly parsing multilined text.

v2.21.0

Compare Source

Fixed
  • [Android] Fix line height changes in EditorStyledText
  • [Android] Fixes needed to get EditorSyledTextView to work with screenshot tests
Changed
  • [Android] Refactor text view test (#​896)
  • [Android] Allow specifying line height for all API versions (#​897)
  • [Android] Add typing callback (#​900)

v2.20.0

Compare Source

Fixed
  • Android: fix link click detection in EditorStyledTextView, as previously it consumed the touch event even when no link or mention was clicked.
  • Android: fix race condition when creating a new MentionDetector for EditorStyledTextView, which caused mentions to only be detected sometimes.
  • Android: handle all spans with URLs in the gesture detector of EditorStyledTextView.
Changed
  • Android: added TextStyle.lineHeight property to customise line height on EditorStyledTextView.
  • Android: bump JNA version to v5.13.0.

v2.19.0

Compare Source

Fixed
  • Android: fix a bug with auto capitalisation.
  • Android: fix disappearing numbers with some keyboards.
  • Android: fix using emojis inside composing regions.
  • iOS: fix the position of the caret.
  • iOS: fix double space to full stop conversion shortcut
Changed
  • Common: remove uniffi fork from dependencies

v2.18.0

Compare Source

Fixed
  • iOS: fixed a bug that made the system speech to text functionality suddenly stop after a few seconds.
Added
  • Android: Improved reliability of UI tests running on CI emulator.
  • Android: CI takes a screenshot when instrumentation tests fail.

v2.17.0

Compare Source

Fixed
  • Android: removed workaround for excessive recompositions from the Compose components.
  • Android: fix indexes not working properly for mentions.
  • Android: add a workaround to always get a valid lineCount in the Composables.
  • Common: prevent trailing NBSP characters from being removed when parsing. They should only be removed if they are the whole content of a container node.
Added
  • Common: added support for parsing mentions using a different prefix from the default https://matrix.to one.

v2.16.0

Compare Source

Fixed
  • Android: [API breaking change] replaced the existing mentionDisplayHandler parameter in both RichTextEditor and EditorStyledText with a couple of resolveMentionDisplay and resolveRoomMentionDisplay lambdas.
  • Android: fixed an issue that caused unnecessary recompositions in the Compose components.
  • Android: EditorEditText was being leaked by the ViewModel on activity recreations, also causing the right styles to not be applied properly.
  • Android: change several default theme colors.
  • Android: add MentionsState to get the intentional mentions in the text.
  • Android: make LinkSpan, PillSpan and CustomMentionSpan clickable in the TextView component.
Added
  • Common: Added MentionDetector to the FFI bindings so we can use the same method for detecting mentions in all platforms.
  • Android: Added replaceSuggestion and insertMentionAtSuggestion methods to the Compose implementation of the RTE composer.

v2.15.0

Compare Source

Fixed
  • iOS: Use message content APIs (#​842)
  • Android: Fix crash due to out of bounds error (#​845)
  • Android: Handle and track more internal exceptions (#​846)
Added
  • iOS: Add "shouldReplaceText" API to ignore keyboard input (#​857)
  • iOS: Add getMentionsState API (#​850)
  • Common: get_mentions_state() implemented on the Rust side (#​849)
  • iOS: Expose the set at room mention function (#​843)
  • iOS: Enhanced MentionDisplayHelper (#​840)
  • Android: Add rich text styled view (#​837)
Changed
  • Common: Replace paragraphs with line breaks in message output (#​834)

v2.14.1

Compare Source

Fixed
  • iOS: Fix background drawing when clearing quote / code block (#​829)
  • iOS: Fix reconciliate breaking with leading whitespaces (#​831)

v2.14.0

Compare Source

Added
  • Android: [API breaking change] Add support for subcomposition and sharing state (#​822)
Fixed
  • Common: Fix crash on pressing enter after emoji (#​824)
  • Android Fix selection state restoration (#​825)
  • iOS: Fix pending format inconsistencies (#​823)

v2.13.0

Compare Source

Added
  • Android: allow font size customisation in compose (#​819)
Fixed
  • Fix unwanted extra paragraphs after HTML parsing (#​820)

v2.12.0

Compare Source

Added
  • Android: Add customisation options for links and code (#​813)
Changed
  • Android: [API breaking change] Simplifiy API for setting code background (#​813)
Fixed
  • iOS: Fix code block and inline code fonts (#​814)

v2.11.0

Compare Source

  • iOS: Add API to change the text view placeholder color (#​810)

v2.10.2

Compare Source

Fixed
  • Android: Fix missing link action updates in compose library (#​804)

v2.10.1

Compare Source

No changes except to publishing workflow.

v2.10.0

Compare Source

Added
  • Android: Add link support to compose library (#​801)
Changed
  • Common: Remove unnecessary escape characters in markdown output (#​800)
Fixed
  • Android: Fix performance issue caused by excessive recomposition (#​803)

v2.9.0

Compare Source

Added
  • Android: Add fake/test mode for compose state
Fixed
  • Android: Fix compose error callback not getting called

v2.8.0

Compare Source

Added
  • iOS: Setting to override library's log level
Changed
  • iOS: Removed WysiwygAction enum in favour of bindings ComposerAction

v2.7.0

Compare Source

Added
  • Android: Compose error callback

v2.6.3

Compare Source

Changed
  • iOS: Revert library back to be exposed as static
Fixed
  • Android: Publishing configuration for Compose library

v2.6.2

Compare Source

Changed
  • iOS: Library is now exposed as dynamic
  • iOS: Now uses sizeThatFits to handle text view height on iOS 16.0 and higher
Fixed
  • iOS: Composer text view not being resized after backspacing multiline content

v2.6.1

Compare Source

Changed
  • iOS: Reworked placeholder text implementation
Fixed
  • iOS: Ideal composer height not being initially published

v2.6.0

Compare Source

Added
  • Android: More compose APIs (focus, line count, text and cursor style)
  • Android: Compose preview support
Changed
  • Android: Remove default padding on the composable editor
Fixed
  • Android: Compatibility with apps compiled with JDK 11
  • iOS: Reduce library size

v2.5.0

Compare Source

Added
  • Android: Support for a Compose version of the library
  • iOS: Support for overriding behaviour for enter and shift + enter keyboard inputs
Changed
  • Common: Uniffi bindings build now uses library path and macros instead of UDL file
  • iOS: Improved support for delegating items pasting to the hosting application
Fixed
  • iOS: Composer focused state being published within view updates

v2.4.1

Compare Source

Fixed
  • Web: CTRL+Backspace behaviour on Windows

v2.4.0

Compare Source

Changed
  • Common: API for getting Markdown content now depends on context (composer usage or final output)
  • Common: Set Rust version to 1.71 and Uniffi version to 0.24.1
Fixed
  • Common: Fix an inconsistency with code blocks when parsing back and forth between Markdown & HTML
  • iOS: Fixed XCFramework hierarchy to avoid modulemap files conflicting with other C or Rust libraries
  • iOS: Fixed an issue with Uniffi C symbols conflicting with other Rust libraries in a shared namespace

v2.3.1

Compare Source

Added
  • Web: Listener to handle composition events
Changed
  • Web: Enable choice of outputting rich text in message or composer format
  • Web: Initialising behaviour to support initialising a composer containing mentions
  • Web: Improved consistency when converting plain text composer output into a Rust model
Fixed
  • Common: Newline handng when parsing block quotes from markdown
  • Common: Issue where links were being split incorrectly inside list items
  • Web: Running tests with coverage no longer hangs in CI

v2.3.0

Compare Source

Added
  • Common: Functions for inserting mentions and at-room mentions
  • Common: Function to output html formatted in accordance with the matrix spec
  • Common: A new crate to represent matrix mentions
  • Web: Expose html message output
  • Web: Expose new function for adding at-room mentions
Changed
  • Web: Types for the attributes argument when inserting a mention

v2.2.2

Compare Source

Added
  • Common: New MentionNode to represent mentions in the Rust model
  • Common: Functions to output html specifically formatted for sending as a message
  • Common: Documentation for the example format selection writer
  • Android: Allow pasting of images
  • Web: New listener for beforeinput events
Changed
  • iOS: Run iOS coverage for unit and ui tests separately
  • Android: Now uses the html output in the message format
Fixed
  • iOS: Incorrect character placement after multiple newlines

v2.2.1

Compare Source

Fixed
  • Common: Disable invariant assertions by default

v2.2.0

Compare Source

Changed
  • Android: [API breaking change] Add support for mentions
  • Common: Read attributes from markdown for mentions

v2.1.0

Compare Source

Changed
  • Common: [API breaking change] Add extra HTML attributes parameter to all link creation APIs
  • Common: [API breaking change] Rename link parameter to url wherever it's relevant
  • iOS: Expose set_content_from_markdown to the hosting application
Fixed
  • iOS: Disable autocorrection if current input is a command
  • iOS: Fix an issue with code blocks NBSP placeholder not being replaced on display

v2.0.0

Compare Source

Changed
  • Common: [API breaking change] Change signature of set_link_suggestion function to take an attributes argument
Fixed
  • Web: Fix selection issue when formatted text is inside paragraph adjacent to a list
  • Web: Prevent memory issues when using replace_text_suggestion function

v1.4.1

Compare Source

Fixed
  • Common: Fix behaviour when deleting after the first of multiple mentions
  • Web: Fix memory managment issue for mentions

v1.4.0

Compare Source

Changed
  • Common: Enable link attribute parsing
  • Common: Link button disabling logic exists for immutable links
  • Common: Backspace/delete behaviour now handles immutable links
  • iOS: Swift-tools-version bump from 5.6 to 5.7
  • Web: Selection logic now handles immutable links

v1.3.0

Compare Source

Changed
  • Common: Autocompleted links now have extra attributes when representing a custom link type
  • Common: replace_text now defaults to writing outside of link label when on edge
  • iOS: Content of the UITextView for the plain text mode is now published
  • iOS: Updated PermalinkReplacer API to allow inserting/removing custom objetcs in the attributed string in plain text mode
Fixed
  • iOS: Fix link button availability around replaced links
  • iOS: Fix index computation around multiple replaced links

v1.2.2

Compare Source

Fixed
  • iOS: Fix attachment views sometimes not clearing when switching to plain text mode
  • iOS: Fix publishing height updates of the composer in plain text mode
  • iOS: Remove select Rust API call in plain text mode

v1.2.1

Compare Source

Changed
  • Web: Change type of suggestion exported by hook

v1.2.0

Compare Source

Added
  • Common: Detection for at/hash/slash pattern in text
  • Common: API for replacing a detected pattern with link/text
  • Web & iOS: Support for inserting mentions/commands
Changed
  • Common: Set content with HTML/Markdown now returns a Result
Fixed
  • Common: Fixed creating a list from a selection containing quotes/code blocks
  • Common: Fix leading whitespaces ignored by HTML parsing
  • iOS: Fix trailing whitespace ignored after a link

v1.1.1

Compare Source

Fixed
  • iOS: Fix selection/cursor position after lists

v1.1.0

Compare Source

Added
  • Common: Add utility to get content as plain text
Changed
  • Web & iOS: Hide indent/unindent buttons outside of lists in example app
  • Android: Update NDK version to r25c (LTS)
  • Android: Allow subclassing EditorStyledTextView
Fixed
  • Common: Recover from Rust model panics
  • Web: Don't rerender when testRef is not set
  • iOS: Fix pending formats not reapplied in new list item after enter
  • iOS: Improve composer content vertical spacing

v1.0.0

Compare Source

Added
  • Common: Add transaction functionality to Dom
  • Web: Add cmd-e shortcut for inline code
  • Web: Add soft delete line backwards implementation
Changed
  • Common: [API breaking change] Rename UnIndent as Unindent
  • iOS: Set BlockStyle parameters as public
  • iOS: Update padding and style of quotes and code block
Fixed
  • Common: Fix code block HTML rendering
  • Common: Fix links creation panicking when empty nodes are within the range
  • Common: Fix enter behaviour on empty list item with formatting
  • Common: Fix menu state in empty formatted paragraphs/list items
  • Common: Fix parent li paragraph hierarchy after backspacing an indented li
  • Web: Handle insertReplacementText input event
  • Web: Fix cursor positioning issue when splitting a node into paragraphs
  • Web: Fix Ctrl/cmd-a behaviour
  • Android: Fix test coverage configuration
  • Android: Fix rendering of code with trailing new line
  • iOS: Fix line indent after quotes & code blocks
testing-library/dom-testing-library (@​testing-library/dom)

v10.4.0

Compare Source

v10.3.2

Compare Source

Bug Fixes

v10.3.1

Compare Source

Bug Fixes

v10.3.0

Compare Source

v10.2.0

Compare Source

Features
  • Support anonymous custom elements when pretty printing DOM (#​1319) (0a8ad65)

v10.1.0

Compare Source

Features

v10.0.0

Compare Source

Bug Fixes
  • use defineProperty on the error object instead of setting the message directly (#​1268) (3580f25), closes #​1259
Features
BREAKING CHANGES
  • Minimum supported Node.js version is 18.0
  • New version of aria-query changes various roles. Check out the changed tests in 2c57055 to get an overview about what changed.

v9.3.4

Compare Source

Bug Fixes

v9.3.3

Compare Source

Bug Fixes
  • use defineProperty on the error object instead of setting the message directly (#​1261) (270a531), closes #​1259

v9.3.2

Compare Source

Bug Fixes

v9.3.1

Compare Source

Bug Fixes

v9.3.0

Compare Source

Features
  • waitFor: Support async unstable_advanceTimersWrapper (#​1229) (d09b3c2)

v9.2.0

Compare Source

Features

v9.1.0

Compare Source

Features

v9.0.1

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov-commenter
Copy link

codecov-commenter commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.50%. Comparing base (e8b5f33) to head (5cbcb9c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1002      +/-   ##
==========================================
- Coverage   90.09%   89.50%   -0.60%     
==========================================
  Files         179       86      -93     
  Lines       21630    15623    -6007     
  Branches      291        0     -291     
==========================================
- Hits        19488    13983    -5505     
+ Misses       2139     1640     -499     
+ Partials        3        0       -3     
Flag Coverage Δ
uitests ?
uitests-ios ?
unittests 89.50% <ø> (+0.32%) ⬆️
unittests-ios ?
unittests-react ?
unittests-rust 89.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/major-web branch 2 times, most recently from bbe1bd5 to 01efa03 Compare July 8, 2024 12:40
@renovate renovate bot force-pushed the renovate/major-web branch 3 times, most recently from a93c64a to 01c49b4 Compare July 31, 2024 18:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant