From 3960ec69c40b2e32b09dcae6acd64bb36a4f31b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Fri, 3 Nov 2023 12:26:12 +0100 Subject: [PATCH] Version 2.16.0 --- CHANGELOG.md | 14 ++++++++++++++ Cargo.lock | 6 +++--- bindings/wysiwyg-ffi/Cargo.toml | 2 +- bindings/wysiwyg-wasm/Cargo.toml | 2 +- bindings/wysiwyg-wasm/package-lock.json | 4 ++-- bindings/wysiwyg-wasm/package.json | 2 +- crates/wysiwyg/Cargo.toml | 2 +- platforms/android/gradle.properties | 2 +- platforms/web/package.json | 2 +- 9 files changed, 25 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b27ad15b..f7fd6c5b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +# [2.16.0] - 2023-11-09 + +### 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. + # [2.15.0] - 2023-10-30 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index 9997d2483..2e94c2a5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1413,7 +1413,7 @@ dependencies = [ [[package]] name = "uniffi-wysiwyg-composer" -version = "2.14.1" +version = "2.16.0" dependencies = [ "matrix_mentions", "uniffi", @@ -1852,7 +1852,7 @@ dependencies = [ [[package]] name = "wysiwyg" -version = "2.14.1" +version = "2.16.0" dependencies = [ "cfg-if", "email_address", @@ -1876,7 +1876,7 @@ dependencies = [ [[package]] name = "wysiwyg-wasm" -version = "2.14.1" +version = "2.16.0" dependencies = [ "console_error_panic_hook", "js-sys", diff --git a/bindings/wysiwyg-ffi/Cargo.toml b/bindings/wysiwyg-ffi/Cargo.toml index 967f7915e..d68324f38 100644 --- a/bindings/wysiwyg-ffi/Cargo.toml +++ b/bindings/wysiwyg-ffi/Cargo.toml @@ -7,7 +7,7 @@ description = "Swift and Kotlin bindings for wysiwyg-rust" keywords = ["matrix", "chat", "messaging", "composer", "wysiwyg"] license = "Apache-2.0" name = "uniffi-wysiwyg-composer" -version = "2.15.0" +version = "2.16.0" rust-version = { workspace = true } [features] diff --git a/bindings/wysiwyg-wasm/Cargo.toml b/bindings/wysiwyg-wasm/Cargo.toml index 22b6adafe..fbd070ea5 100644 --- a/bindings/wysiwyg-wasm/Cargo.toml +++ b/bindings/wysiwyg-wasm/Cargo.toml @@ -7,7 +7,7 @@ description = "WASM bindings for wysiwyg-rust" keywords = ["matrix", "chat", "messaging", "composer", "wysiwyg"] license = "Apache-2.0" name = "wysiwyg-wasm" -version = "2.15.0" +version = "2.16.0" rust-version = { workspace = true } [package.metadata.wasm-pack.profile.profiling] diff --git a/bindings/wysiwyg-wasm/package-lock.json b/bindings/wysiwyg-wasm/package-lock.json index d5f4a0666..371999e07 100644 --- a/bindings/wysiwyg-wasm/package-lock.json +++ b/bindings/wysiwyg-wasm/package-lock.json @@ -1,12 +1,12 @@ { "name": "wysiwyg-wasm", - "version": "2.14.1", + "version": "2.16.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wysiwyg-wasm", - "version": "2.14.1", + "version": "2.16.0", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", diff --git a/bindings/wysiwyg-wasm/package.json b/bindings/wysiwyg-wasm/package.json index e01024ed0..7ce6baa70 100644 --- a/bindings/wysiwyg-wasm/package.json +++ b/bindings/wysiwyg-wasm/package.json @@ -1,6 +1,6 @@ { "name": "wysiwyg-wasm", - "version": "2.15.0", + "version": "2.16.0", "homepage": "https://gitlab.com/andybalaam/wysiwyg-rust", "description": "WASM bindings for wysiwyg-rust", "license": "Apache-2.0", diff --git a/crates/wysiwyg/Cargo.toml b/crates/wysiwyg/Cargo.toml index efa9de903..07196375d 100644 --- a/crates/wysiwyg/Cargo.toml +++ b/crates/wysiwyg/Cargo.toml @@ -7,7 +7,7 @@ description = "Model code to power a rich text editor for Matrix" keywords = ["matrix", "chat", "messaging", "composer", "wysiwyg"] license = "Apache-2.0" name = "wysiwyg" -version = "2.15.0" +version = "2.16.0" rust-version = { workspace = true } [features] diff --git a/platforms/android/gradle.properties b/platforms/android/gradle.properties index e6ec844ee..bb6c568cd 100644 --- a/platforms/android/gradle.properties +++ b/platforms/android/gradle.properties @@ -27,7 +27,7 @@ RELEASE_SIGNING_ENABLED=true GROUP=io.element.android # POM_ARTIFACT_ID is configured in each module's gradle.properties -VERSION_NAME=2.15.0 +VERSION_NAME=2.16.0 POM_NAME=Matrix WYSIWYG POM_DESCRIPTION=Cross-platform rich text editor that generates HTML output. diff --git a/platforms/web/package.json b/platforms/web/package.json index 1fc004f2e..cb844e243 100644 --- a/platforms/web/package.json +++ b/platforms/web/package.json @@ -1,6 +1,6 @@ { "name": "@matrix-org/matrix-wysiwyg", - "version": "2.15.0", + "version": "2.16.0", "type": "module", "description": "Wysiwyg composer for matrix.org using React", "author": "matrix.org",