Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump io.element.android:wysiwyg from 2.14.1 to 2.22.0 #8711

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 14, 2023

Bumps io.element.android:wysiwyg from 2.14.1 to 2.22.0.

Changelog

Sourced from io.element.android:wysiwyg's changelog.

[2.22.0] - 2023-12-06

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.

[2.21.0] - 2023-12-06

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)

[2.20.0] - 2023-11-29

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.

[2.19.0] - 2023-11-28

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

[2.18.0] - 2023-11-17

Fixed

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [io.element.android:wysiwyg](https://github.com/matrix-org/matrix-wysiwyg) from 2.14.1 to 2.22.0.
- [Changelog](https://github.com/matrix-org/matrix-rich-text-editor/blob/main/CHANGELOG.md)
- [Commits](matrix-org/matrix-rich-text-editor@2.14.1...2.22.0)

---
updated-dependencies:
- dependency-name: io.element.android:wysiwyg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Dec 14, 2023
@dependabot dependabot bot requested review from a team and bmarty and removed request for a team December 14, 2023 23:52
@jmartinesp
Copy link
Member

This should fix #8712

override fun resolveAtRoomMentionDisplay(): TextDisplay =
pillDisplayHandler?.resolveAtRoomMentionDisplay() ?: TextDisplay.Plain
}
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mentionDisplayHandler is now private, so using updateStyle with existing styleConfig for the first parameter. There is maybe another way to set mentionDisplayHandler?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right way to do it now. We did this to minimize the number of times we need to re-create the underlying HtmlToSpanConverter, specially in Compose.

styleConfig = it.styleConfig,
mentionDisplayHandler = null,
)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmartinesp let me know what you think about this fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit weird, updateStyle should automatically be called when it's attached to a window. Are we settings the text in this component before that happens? If so, then yes, we need to add this workaround.

Copy link
Member

@jmartinesp jmartinesp Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this seems to be the case. It's alright then. Maybe in the next RTE version we can change it so it's done as soon as it's instantiated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have put a breakpoint in EditorStyledTextView.onAttachedToWindow() but was not reaching it before the app crashes.

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@bmarty bmarty merged commit 6feee61 into develop Dec 20, 2023
10 of 12 checks passed
@bmarty bmarty deleted the dependabot/gradle/io.element.android-wysiwyg-2.22.0 branch December 20, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants