Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 7, 2025

Bumps lexical from 0.27.2 to 0.35.0.

Release notes

Sourced from lexical's releases.

v0.35.0 is a monthly release with much improved RTL bidirectional text support (#7727) and several bug fixes

Breaking Changes

All of the breaking changes in this release are related to the improved RTL bidirectional text support in #7727

ltr and rtl theme CSS classes removed

ltr and rtl theme CSS classes are no longer added to DOM elements. If you have custom CSS to set text-align (or any other properties) for bidirectional text, this can be removed. You can target elements that have customized their dir by targeting the attr in CSS, for example:

[dir=rtl] { text-align: right; }

$isParentElementRTL requires an active editor

$isParentElementRTL now relies on accessing the DOM to determine element direction, meaning there must be an active editor when calling the function. If you have code that calls $isParentElementRTL inside editorState.read(), you will need to pass in an editor argument. For example:

const isRTL = editorState.read(
  () => {
    const selection = $getSelection();
    return $isRangeSelection(selection) && $isParentElementRTL(selection);
  },
  {editor}
);

__dir property is synced to/from Yjs (again)

Prior to #7330, the text direction of nodes (as determined by the reconciler) was synced to Yjs, even though this value was ignored on other clients. This property is now used for any manually-set direction attribute on ElementNode.

If you have documents that were created prior to v0.30.0, the previously-reconciled direction will now be read and applied to nodes in the editor. This may lead to unexpected behaviour if, for example, your document contains a paragraph that contained RTL text but content changed to LTR in >= v0.30.0.

Highlights

Core:

  • 🆕 #7727 Allow ElementNode direction to be overridden (RTL)
  • #7772 Correct exit direction from decorator nodes in RTL
  • #7794 Fix insert into existing paragraph node if selection is on parent element

Markdown:

  • #7769 Formatted textmatch fix
  • 🆕 #7735 Allow any characters in markdown link text

React:

  • #7757 Add $config $transform inheritance to LexicalNestedComposer

... (truncated)

Changelog

Sourced from lexical's changelog.

v0.35.0 (2025-09-04)

  • lexical-history Add Missing Argument for DispatchCommand in UndoRedo Docs Example (#7795) Lithika Damnod
  • lexical-markdown Bug Fix Allow any characters in markdown link text (#7735) Simon
  • lexical Fix insert into existing paragraph node if selection is on parent element (#7794) James Fitzsimmons
  • lexical Chore Update flow-bin to 0.280.0 (#7785) Daniel Teo
  • lexical Bug Fix Correct exit direction from decorator nodes in RTL (#7772) Noam Zaks
  • lexical-react Fix the context menu event listener element (#7778) Ivaylo Pavlov
  • Chore Update flow suppressions to use error code (#7770) Sam Zhou
  • lexical-markdown Formatted textmatch fix (#7769) MarekKuncik
  • lexical Feature allow ElementNode direction to be overridden (#7727) James Fitzsimmons
  • lexicallexical-code Refactor remove unnecessary assertion (#7760) Noritaka Kobayashi
  • lexical-playgroundlexical-reactlexical-table Refactor remove unnecessary assertion (#7761) Noritaka Kobayashi
  • lexical-code-shiki Refactor remove unnecessary assertion (#7762) Noritaka Kobayashi
  • lexical-playground Refactor remove unnecessary await in e2e test (#7759) Noritaka Kobayashi
  • lexical-react Bug Fix Add config transform inheritance to LexicalNestedComposer (#7757) Bob Ippolito
  • lexical-playgroundexamples Refactor remove redundant fragment (#7755) Noritaka Kobayashi
  • Update examples for v0.34.0 (#7747) Bob Ippolito
  • v0.34.0 monthly release (#7746) Bob Ippolito
  • v0.34.0 Lexical GitHub Actions Bot

v0.34.0 (2025-08-07)

  • Chore Add a post-release action to update the examples (#7744) Bob Ippolito
  • lexical-examples Bug Fix missing dependency lexicalutils at examplesreact-rich-collab (#7743) debuggingfuture (Vincent)
  • lexical-playground DateTime Plugin (#7707) Ivaylo Pavlov
  • lexical-utils fix Backward selection was not being retained (#7737) Jash Vithlani
  • Fix Key Arrow Down Documentation (#7733) zamorai
  • lexical-playground Bug Fix include font sizes in pt as well in parseAllowedFontSize (#7719) Harshkumar Metkel
  • lexical-react Bug Fix prevent race condition in CollaborationPlugin during rapid mountunmount cycles (#7723) Tobias Andersen
  • lexical Bug Fix Clamp DOM selection offsets to valid lexical TextNode offsets in internalResolveSelectionPoint (#7725) Bob Ippolito
  • Fix trigger reconcilation on nested read (#7724) Gerard Rovira
  • lexical-playgroundBug Fix Image links lose link state when dragged (#7693) Yuncheng Lu
  • lexical-websitedocs Documentation Update Fix typo (#7713) JT
  • lexical-react feat Context Menu icons (#7697) Ivaylo Pavlov
  • lexical-react Clean up old mouseup events from context menu (#7705) Ivaylo Pavlov
  • lexical-codelexical-code-shikilexical-markdownlexical-playgroundlexical-devtools Feature Experimental Shiki support for code highlighting (#7662) jeromew
  • lexical-selection Bug Fix Correct backward inversion for RTL (#7686) Noam Zaks
  • v0.33.1 (#7684) Bob Ippolito
  • v0.33.1 Lexical GitHub Actions Bot

v0.33.1 (2025-07-10)

  • Add a setter for the format property on RangeSelection (#5829) Omar A.
  • lexical-link Chore Fix test names (#7666) Noam Zaks
  • v0.33.0 (#7672) Bob Ippolito
  • v0.33.0 Lexical GitHub Actions Bot

v0.33.0 (2025-07-03)

... (truncated)

Commits
  • f3b8895 v0.35.0
  • 03c3fe4 [*] Chore: Replace jest with vitest for unit tests (#7796)
  • 60335bd [lexical] Fix: insert into existing paragraph node if selection is on parent ...
  • f1768bf [lexical] Feature: allow ElementNode direction to be overridden (#7727)
  • 0268842 [lexical][lexical-code] Refactor: remove unnecessary assertion (#7760)
  • 5aa5df6 [lexical-react] Bug Fix: Add $config $transform inheritance to LexicalNestedC...
  • a58f616 v0.34.0 monthly release (#7746)
  • 233aa10 Fix Key Arrow Down Documentation (#7733)
  • 4d21856 [lexical] Bug Fix: Clamp DOM selection offsets to valid lexical TextNode offs...
  • d0aa48e Fix trigger reconcilation on nested read (#7724)
  • Additional commits viewable in compare view

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)

@otto-the-bot otto-the-bot enabled auto-merge (squash) September 7, 2025 14:10
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 75e9c80 to 91c03f9 Compare September 8, 2025 13:53
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 8, 2025

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 91c03f9 to 4dfbe94 Compare September 8, 2025 14:15
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 4dfbe94 to e4de8e8 Compare September 8, 2025 14:30
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from e4de8e8 to 8d27b51 Compare September 8, 2025 14:43
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 8d27b51 to 68aa5a7 Compare September 8, 2025 14:50
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 68aa5a7 to df63a88 Compare September 8, 2025 15:09
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from df63a88 to b1df381 Compare September 8, 2025 15:24
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from b1df381 to e8ee078 Compare September 8, 2025 16:32
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from e8ee078 to 64ced08 Compare September 11, 2025 15:29
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 64ced08 to bae5677 Compare September 14, 2025 14:09
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from bae5677 to a4f3c78 Compare September 16, 2025 11:24
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from a4f3c78 to 118477b Compare September 19, 2025 16:08
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 118477b to 33393ac Compare September 24, 2025 08:08
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 33393ac to d07f288 Compare September 24, 2025 08:17
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from d07f288 to d5a8b45 Compare September 24, 2025 08:34
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from d5a8b45 to 689dbf4 Compare September 24, 2025 11:02
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 689dbf4 to 58d4243 Compare September 24, 2025 14:16
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from 58d4243 to d68002b Compare September 25, 2025 11:35
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 25, 2025

Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request.

Bumps [lexical](https://github.com/facebook/lexical/tree/HEAD/packages/lexical) from 0.27.2 to 0.35.0.
- [Release notes](https://github.com/facebook/lexical/releases)
- [Changelog](https://github.com/facebook/lexical/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/lexical/commits/v0.35.0/packages/lexical)

---
updated-dependencies:
- dependency-name: lexical
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lexical-0.35.0 branch from d68002b to fe9a096 Compare September 26, 2025 19:58
Copy link

Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 28, 2025

Superseded by #19590.

@dependabot dependabot bot closed this Sep 28, 2025
auto-merge was automatically disabled September 28, 2025 14:09

Pull request was closed

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/lexical-0.35.0 branch September 28, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant