matrix-org / matrix-rich-text-editor

Matrix Rich Text Editor
https://matrix-org.github.io/matrix-rich-text-editor/
Apache License 2.0
92 stars 23 forks source link

Update Web (major) #1002

Open renovate[bot] opened 3 months ago

renovate[bot] commented 3 months ago

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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2378---2024-07-31) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.7...2.37.8) - \[Web] Fix a bug that caused the composer to be reinitialised a second time. ### [`v2.37.7`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2377---2024-07-18) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.6...2.37.7) - \[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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2376---2024-07-15) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.5...2.37.6) - \[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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2375---2024-07-08) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.4...2.37.5) - \[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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2374---2024-06-20) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.3...2.37.4) - \[Android] Make `CustomMentionSpan` public. - \[Rust] Escape text passed to `ComposerModel::set_link_with_text` and `insert_mention*` methods. ### [`v2.37.3`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2373---2024-05-21) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.2...2.37.3) - \[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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2372---2024-05-06) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.1...2.37.2) - \[Android] Fix selection mismatch on Android 14+ after using word completion. ### [`v2.37.1`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2371---2024-05-03) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.37.0...2.37.1) - \[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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2370---2024-04-12) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.36.0...2.37.0) - \[Android] Discard mentions with no associated text. - \[iOS] iOS tests: Use xcresultparser instead of slather. ### [`v2.36.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2360---2024-04-03) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.35.0...2.36.0) - \[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](https://togithub.com/matrix-org/matrix-rich-text-editor-swift), attaching the binaries to GitHub releases. ### [`v2.35.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2350---2024-03-27) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.34.0...2.35.0) - \[iOS] Fix deployment with Xcode 15.3. ### [`v2.34.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2340---2024-12-04) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.33.0...2.34.0) - \[Rust] Bumped UniFFi to revision `789a9023b522562a95618443cee5a0d4f111c4c7`. - \[Android] reconcile UI text with editor text. - \[Android] fix English characters for some Chinese keyboards. ### [`v2.33.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2330---2024-12-04) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.32.0...2.33.0) - \[iOS] Re-enabled auto-correction but disabled inline predictions on iOS 17. - \[iOS] Build workflow now uses Xcode 15.2. ### [`v2.32.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2320---2024-11-04) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.31.0...2.32.0) - \[Android] Allow customising the initial Markdown value in `RichTextEditorState`. ### [`v2.31.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2310---2024-08-04) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.30.0...2.31.0) - \[iOS] Temporarily disabled auto correction until we fix the predictive text issue. ### [`v2.30.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2300---2024-01-04) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.29.0...2.30.0) - \[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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2290---2024-02-08) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.28.0...2.29.0) ##### Changed - \[iOS] Improved the textView injection process in the view model. ### [`v2.28.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2280---2024-02-08) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.27.0...2.28.0) ##### Fixed - \[iOS] Fixed an issue that broke the text view if the SwiftUI view was completely re-rendered. ### [`v2.27.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2270---2024-02-01) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.26.0...2.27.0) ##### Fixed - \[Common] Remove NBSP chars in replace_text for empty paragraphs ([#​926](https://togithub.com/matrix-org/matrix-wysiwyg/issues/926)) - \[Common] Fix delete word not replacing text ([#​833](https://togithub.com/matrix-org/matrix-wysiwyg/issues/833)) ### [`v2.26.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2260---2024-01-17) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.25.0...2.26.0) ##### Fixed - \[iOS] Fixed an issue that made the RTE crash when ending dictation. ### [`v2.25.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2250---2024-01-12) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.24.0...2.25.0) ##### Fixed - \[iOS] Fixed a bug that prevented dictation to work properly on iOS 17 and above. ### [`v2.24.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2240---2024-01-05) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.23.0...2.24.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2230---2023-12-26) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.22.0...2.23.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2220---2023-12-06) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.21.0...2.22.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2210---2023-12-06) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.20.0...2.21.0) ##### 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](https://togithub.com/matrix-org/matrix-wysiwyg/issues/896)) - \[Android] Allow specifying line height for all API versions ([#​897](https://togithub.com/matrix-org/matrix-wysiwyg/issues/897)) - \[Android] Add typing callback ([#​900](https://togithub.com/matrix-org/matrix-wysiwyg/issues/900)) ### [`v2.20.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2200---2023-11-29) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.19.0...2.20.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2190---2023-11-28) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.18.0...2.19.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2180---2023-11-17) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.17.0...2.18.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2170---2023-11-16) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.16.0...2.17.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2160---2023-11-09) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.15.0...2.16.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2150---2023-10-30) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.14.1...2.15.0) ##### Fixed - iOS: Use message content APIs ([#​842](https://togithub.com/matrix-org/matrix-wysiwyg/issues/842)) - Android: Fix crash due to out of bounds error ([#​845](https://togithub.com/matrix-org/matrix-wysiwyg/issues/845)) - Android: Handle and track more internal exceptions ([#​846](https://togithub.com/matrix-org/matrix-wysiwyg/issues/846)) ##### Added - iOS: Add "shouldReplaceText" API to ignore keyboard input ([#​857](https://togithub.com/matrix-org/matrix-wysiwyg/issues/857)) - iOS: Add getMentionsState API ([#​850](https://togithub.com/matrix-org/matrix-wysiwyg/issues/850)) - Common: get_mentions_state() implemented on the Rust side ([#​849](https://togithub.com/matrix-org/matrix-wysiwyg/issues/849)) - iOS: Expose the set at room mention function ([#​843](https://togithub.com/matrix-org/matrix-wysiwyg/issues/843)) - iOS: Enhanced `MentionDisplayHelper` ([#​840](https://togithub.com/matrix-org/matrix-wysiwyg/issues/840)) - Android: Add rich text styled view ([#​837](https://togithub.com/matrix-org/matrix-wysiwyg/issues/837)) ##### Changed - Common: Replace paragraphs with line breaks in message output ([#​834](https://togithub.com/matrix-org/matrix-wysiwyg/issues/834)) ### [`v2.14.1`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2141---2023-10-04) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.14.0...2.14.1) ##### Fixed - iOS: Fix background drawing when clearing quote / code block ([#​829](https://togithub.com/matrix-org/matrix-wysiwyg/issues/829)) - iOS: Fix reconciliate breaking with leading whitespaces ([#​831](https://togithub.com/matrix-org/matrix-wysiwyg/issues/831)) ### [`v2.14.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2140---2023-09-27) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.13.0...2.14.0) ##### Added - Android: \[API breaking change] Add support for subcomposition and sharing state ([#​822](https://togithub.com/matrix-org/matrix-wysiwyg/issues/822)) ##### Fixed - Common: Fix crash on pressing enter after emoji ([#​824](https://togithub.com/matrix-org/matrix-wysiwyg/issues/824)) - Android Fix selection state restoration ([#​825](https://togithub.com/matrix-org/matrix-wysiwyg/issues/825)) - iOS: Fix pending format inconsistencies ([#​823](https://togithub.com/matrix-org/matrix-wysiwyg/issues/823)) ### [`v2.13.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2130---2023-09-20) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.12.0...2.13.0) ##### Added - Android: allow font size customisation in compose ([#​819](https://togithub.com/matrix-org/matrix-wysiwyg/issues/819)) ##### Fixed - Fix unwanted extra paragraphs after HTML parsing ([#​820](https://togithub.com/matrix-org/matrix-wysiwyg/issues/820)) ### [`v2.12.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2120---2023-09-18) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.11.0...2.12.0) ##### Added - Android: Add customisation options for links and code ([#​813](https://togithub.com/matrix-org/matrix-wysiwyg/issues/813)) ##### Changed - Android: \[API breaking change] Simplifiy API for setting code background ([#​813](https://togithub.com/matrix-org/matrix-wysiwyg/issues/813)) ##### Fixed - iOS: Fix code block and inline code fonts ([#​814](https://togithub.com/matrix-org/matrix-wysiwyg/issues/814)) ### [`v2.11.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2110---2023-09-15) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.10.2...2.11.0) - iOS: Add API to change the text view placeholder color ([#​810](https://togithub.com/matrix-org/matrix-wysiwyg/issues/810)) ### [`v2.10.2`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2102---2023-09-14) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.10.1...2.10.2) ##### Fixed - Android: Fix missing link action updates in compose library ([#​804](https://togithub.com/matrix-org/matrix-wysiwyg/issues/804)) ### [`v2.10.1`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2101---2023-09-13) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.10.0...2.10.1) No changes except to publishing workflow. ### [`v2.10.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#2100---2023-09-12) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.9.0...2.10.0) ##### Added - Android: Add link support to compose library ([#​801](https://togithub.com/matrix-org/matrix-wysiwyg/issues/801)) ##### Changed - Common: Remove unnecessary escape characters in markdown output ([#​800](https://togithub.com/matrix-org/matrix-wysiwyg/issues/800)) ##### Fixed - Android: Fix performance issue caused by excessive recomposition ([#​803](https://togithub.com/matrix-org/matrix-wysiwyg/issues/803)) ### [`v2.9.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#290---2023-09-07) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.8.0...2.9.0) ##### Added - Android: Add fake/test mode for compose state ##### Fixed - Android: Fix compose error callback not getting called ### [`v2.8.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#280---2023-08-31) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.7.0...2.8.0) ##### Added - iOS: Setting to override library's log level ##### Changed - iOS: Removed `WysiwygAction` enum in favour of bindings `ComposerAction` ### [`v2.7.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#270---2023-08-29) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.6.3...2.7.0) ##### Added - Android: Compose error callback ### [`v2.6.3`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#263---2023-08-25) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.6.2...2.6.3) ##### Changed - iOS: Revert library back to be exposed as static ##### Fixed - Android: Publishing configuration for Compose library ### [`v2.6.2`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#262---2023-08-23) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.6.1...2.6.2) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#261---2023-08-21) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.6.0...2.6.1) ##### Changed - iOS: Reworked placeholder text implementation ##### Fixed - iOS: Ideal composer height not being initially published ### [`v2.6.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#260---2023-08-18) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.5.0...2.6.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#250---2023-08-11) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.4.1...2.5.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#241---2023-07-26) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.4.0...2.4.1) ##### Fixed - Web: CTRL+Backspace behaviour on Windows ### [`v2.4.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#240---2023-07-26) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.3.1...2.4.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#231---2023-06-30) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.3.0...2.3.1) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#230---2023-06-16) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.2.2...2.3.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#222---2023-06-08) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.2.1...2.2.2) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#221---2023-05-23) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.2.0...2.2.1) ##### Fixed - Common: Disable invariant assertions by default ### [`v2.2.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#220---2023-05-18) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.1.0...2.2.0) ##### Changed - Android: \[API breaking change] Add support for mentions - Common: Read attributes from markdown for mentions ### [`v2.1.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#210---2023-05-02) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/2.0.0...2.1.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#200---2023-04-04) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.4.1...2.0.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#141---2023-03-28) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.4.0...1.4.1) ##### Fixed - Common: Fix behaviour when deleting after the first of multiple mentions - Web: Fix memory managment issue for mentions ### [`v1.4.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#140---2023-03-21) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.3.0...1.4.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#130---2023-03-17) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.2.2...1.3.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#122---2023-03-08) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.2.1...1.2.2) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#121---2023-03-07) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.2.0...1.2.1) ##### Changed - Web: Change type of suggestion exported by hook ### [`v1.2.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#120---2023-03-06) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.1.1...1.2.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#111---2023-02-14) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.1.0...1.1.1) ##### Fixed - iOS: Fix selection/cursor position after lists ### [`v1.1.0`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#110---2023-02-10) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/1.0.0...1.1.0) ##### 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`](https://togithub.com/matrix-org/matrix-wysiwyg/blob/HEAD/CHANGELOG.md#100---2023-02-07) [Compare Source](https://togithub.com/matrix-org/matrix-wysiwyg/compare/0.23.0...1.0.0) ##### 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`](https://togithub.com/testing-library/dom-testing-library/compare/v10.3.2...a86c54ccda5242ad8dfc1c70d31980bdbf96af7f) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v10.3.2...v10.4.0) ### [`v10.3.2`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v10.3.2) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v10.3.1...v10.3.2) ##### Bug Fixes - safer read of DEBUG_PRINT_LIMIT ([#​1329](https://togithub.com/testing-library/dom-testing-library/issues/1329)) ([306526b](https://togithub.com/testing-library/dom-testing-library/commit/306526b5519abcaed84ef35f82501a1691edcd0e)) ### [`v10.3.1`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v10.3.1) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v10.3.0...v10.3.1) ##### Bug Fixes - Revert "feat: Reduce caught exceptions in `prettyDom` ([#​1321](https://togithub.com/testing-library/dom-testing-library/issues/1321))" ([#​1325](https://togithub.com/testing-library/dom-testing-library/issues/1325)) ([fdc12ec](https://togithub.com/testing-library/dom-testing-library/commit/fdc12ecf4343ab6b08a898d9b3ff0013981849c8)) ### [`v10.3.0`](https://togithub.com/testing-library/dom-testing-library/compare/v10.2.0...76cb73dec444fca7ae3d160b4dad3b61f7bc8995) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v10.2.0...v10.3.0) ### [`v10.2.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v10.2.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v10.1.0...v10.2.0) ##### Features - Support anonymous custom elements when pretty printing DOM ([#​1319](https://togithub.com/testing-library/dom-testing-library/issues/1319)) ([0a8ad65](https://togithub.com/testing-library/dom-testing-library/commit/0a8ad65723efe47493d387c38f31082c7846d824)) ### [`v10.1.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v10.1.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v10.0.0...v10.1.0) ##### Features - Add window events "pagehide" / "pageshow" ([#​1308](https://togithub.com/testing-library/dom-testing-library/issues/1308)) ([56543d5](https://togithub.com/testing-library/dom-testing-library/commit/56543d51a8776d3bc7fa9b947771ce5308bf5df4)) ### [`v10.0.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v10.0.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.3.4...v10.0.0) ##### Bug Fixes - use defineProperty on the error object instead of setting the message directly ([#​1268](https://togithub.com/testing-library/dom-testing-library/issues/1268)) ([3580f25](https://togithub.com/testing-library/dom-testing-library/commit/3580f25bd765cedb70889b2cf716085023d8c314)), closes [#​1259](https://togithub.com/testing-library/dom-testing-library/issues/1259) ##### Features - Drop support for Node.js 14.x and Node.js 16.x and add support for Node 20.x ([#​1255](https://togithub.com/testing-library/dom-testing-library/issues/1255)) ([452097b](https://togithub.com/testing-library/dom-testing-library/commit/452097b35a207341f5328b997dfc901461a4e9d9)) - upgrade aria-query to 5.3.0 ([#​1241](https://togithub.com/testing-library/dom-testing-library/issues/1241)) ([2c57055](https://togithub.com/testing-library/dom-testing-library/commit/2c570553d8f31b008451398152a9bd30bce362b3)), closes [#​1240](https://togithub.com/testing-library/dom-testing-library/issues/1240) ##### 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`](https://togithub.com/testing-library/dom-testing-library/commit/2c57055) to get an overview about what changed. ### [`v9.3.4`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.3.4) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.3.3...v9.3.4) ##### Bug Fixes - Stop calling `waitFor` callback after timeout ([#​1271](https://togithub.com/testing-library/dom-testing-library/issues/1271)) ([9aaf715](https://togithub.com/testing-library/dom-testing-library/commit/9aaf71524beaeafdf9d8b690a4a78867fa50a5d2)) ### [`v9.3.3`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.3.3) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.3.2...v9.3.3) ##### Bug Fixes - use defineProperty on the error object instead of setting the message directly ([#​1261](https://togithub.com/testing-library/dom-testing-library/issues/1261)) ([270a531](https://togithub.com/testing-library/dom-testing-library/commit/270a531bcd8bee2ccaaa96a477619f14422faebe)), closes [#​1259](https://togithub.com/testing-library/dom-testing-library/issues/1259) ### [`v9.3.2`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.3.2) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.3.1...v9.3.2) ##### Bug Fixes - **role-helpers:** refine logRoles fn types ([#​1249](https://togithub.com/testing-library/dom-testing-library/issues/1249)) ([5e03343](https://togithub.com/testing-library/dom-testing-library/commit/5e0334390f691366f8bab4123a4d1acd44665dc0)) ### [`v9.3.1`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.3.1) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.3.0...v9.3.1) ##### Bug Fixes - pin aria-query ([#​1237](https://togithub.com/testing-library/dom-testing-library/issues/1237)) ([491e930](https://togithub.com/testing-library/dom-testing-library/commit/491e930b419c192c405216d169029172697c986c)) ### [`v9.3.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.3.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.2.0...v9.3.0) ##### Features - **waitFor:** Support async `unstable_advanceTimersWrapper` ([#​1229](https://togithub.com/testing-library/dom-testing-library/issues/1229)) ([d09b3c2](https://togithub.com/testing-library/dom-testing-library/commit/d09b3c25b07486c17603317f4c5a0320c188cbed)) ### [`v9.2.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.2.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.1.0...v9.2.0) ##### Features - **ByRole:** Allow filter by value state ([#​1223](https://togithub.com/testing-library/dom-testing-library/issues/1223)) ([eadf748](https://togithub.com/testing-library/dom-testing-library/commit/eadf7485430968df8d1e1293535d78cdbeea20a5)) ### [`v9.1.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.1.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.0.1...v9.1.0) ##### Features - **ByRole:** Allow filter by busy state ([#​1222](https://togithub.com/testing-library/dom-testing-library/issues/1222)) ([8c40a21](https://togithub.com/testing-library/dom-testing-library/commit/8c40a218a244cbbfcb4b9bfcbf8f276ee02bdac3)) ### [`v9.0.1`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.0.1) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.0.0...v9.0.1) ##### Bug Fixes - Ensure MIT licensed lz-string is used ([#​1219](https://togithub.com/testing-library/dom-testing-library/issues/1219)) ([4da0f39](https://togithub.com/testing-library/dom-te

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.



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

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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](https://app.codecov.io/gh/matrix-org/matrix-rich-text-editor/pull/1002/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org) | Coverage Δ | | |---|---|---| | [uitests](https://app.codecov.io/gh/matrix-org/matrix-rich-text-editor/pull/1002/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org) | `?` | | | [uitests-ios](https://app.codecov.io/gh/matrix-org/matrix-rich-text-editor/pull/1002/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org) | `?` | | | [unittests](https://app.codecov.io/gh/matrix-org/matrix-rich-text-editor/pull/1002/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org) | `89.50% <ø> (+0.32%)` | :arrow_up: | | [unittests-ios](https://app.codecov.io/gh/matrix-org/matrix-rich-text-editor/pull/1002/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org) | `?` | | | [unittests-react](https://app.codecov.io/gh/matrix-org/matrix-rich-text-editor/pull/1002/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org) | `?` | | | [unittests-rust](https://app.codecov.io/gh/matrix-org/matrix-rich-text-editor/pull/1002/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org) | `89.50% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=matrix-org#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.