[PR #25705] chore(deps): bump @lexical/text from 0.30.0 to 0.35.0 in /web #31175

Closed
opened 2026-02-21 20:48:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/25705

State: closed
Merged: Yes


Bumps @lexical/text from 0.30.0 to 0.35.0.

Release notes

Sourced from @​lexical/text'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/text'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

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)
**Original Pull Request:** https://github.com/langgenius/dify/pull/25705 **State:** closed **Merged:** Yes --- Bumps [@lexical/text](https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text) from 0.30.0 to 0.35.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/lexical/releases"><code>@​lexical/text</code>'s releases</a>.</em></p> <blockquote> <p>v0.35.0 is a monthly release with much improved RTL bidirectional text support (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7727">#7727</a>) and several bug fixes</p> <h2>Breaking Changes</h2> <p>All of the breaking changes in this release are related to the improved RTL bidirectional text support in <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7727">#7727</a></p> <h3><code>ltr</code> and <code>rtl</code> theme CSS classes removed</h3> <p><code>ltr</code> and <code>rtl</code> theme CSS classes are no longer added to DOM elements. If you have custom CSS to set <code>text-align</code> (or any other properties) for bidirectional text, this can be removed. You can target elements that have customized their <code>dir</code> by targeting the attr in CSS, for example:</p> <pre lang="css"><code>[dir=rtl] { text-align: right; } </code></pre> <h3><code>$isParentElementRTL</code> requires an active editor</h3> <p><code>$isParentElementRTL</code> 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 <code>$isParentElementRTL</code> inside <code>editorState.read()</code>, you will need to pass in an <code>editor</code> argument. For example:</p> <pre lang="ts"><code>const isRTL = editorState.read( () =&gt; { const selection = $getSelection(); return $isRangeSelection(selection) &amp;&amp; $isParentElementRTL(selection); }, {editor} ); </code></pre> <h3><code>__dir</code> property is synced to/from Yjs (again)</h3> <p>Prior to <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7330">#7330</a>, 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 <code>ElementNode</code>.</p> <p>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 &gt;= v0.30.0.</p> <h2>Highlights</h2> <p>Core:</p> <ul> <li>🆕 <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7727">#7727</a> Allow ElementNode direction to be overridden (RTL)</li> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7772">#7772</a> Correct exit direction from decorator nodes in RTL</li> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7794">#7794</a> Fix insert into existing paragraph node if selection is on parent element</li> </ul> <p>Markdown:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7769">#7769</a> Formatted textmatch fix</li> <li>🆕 <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7735">#7735</a> Allow any characters in markdown link text</li> </ul> <p>React:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7757">#7757</a> Add $config $transform inheritance to LexicalNestedComposer</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/lexical/blob/main/CHANGELOG.md"><code>@​lexical/text</code>'s changelog</a>.</em></p> <blockquote> <h2>v0.35.0 (2025-09-04)</h2> <ul> <li>lexical-history Add Missing Argument for DispatchCommand in UndoRedo Docs Example (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7795">#7795</a>) Lithika Damnod</li> <li>lexical-markdown Bug Fix Allow any characters in markdown link text (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7735">#7735</a>) Simon</li> <li>lexical Fix insert into existing paragraph node if selection is on parent element (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7794">#7794</a>) James Fitzsimmons</li> <li>lexical Chore Update flow-bin to 0.280.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7785">#7785</a>) Daniel Teo</li> <li>lexical Bug Fix Correct exit direction from decorator nodes in RTL (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7772">#7772</a>) Noam Zaks</li> <li>lexical-react Fix the context menu event listener element (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7778">#7778</a>) Ivaylo Pavlov</li> <li>Chore Update flow suppressions to use error code (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7770">#7770</a>) Sam Zhou</li> <li>lexical-markdown Formatted textmatch fix (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7769">#7769</a>) MarekKuncik</li> <li>lexical Feature allow ElementNode direction to be overridden (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7727">#7727</a>) James Fitzsimmons</li> <li>lexicallexical-code Refactor remove unnecessary assertion (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7760">#7760</a>) Noritaka Kobayashi</li> <li>lexical-playgroundlexical-reactlexical-table Refactor remove unnecessary assertion (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7761">#7761</a>) Noritaka Kobayashi</li> <li>lexical-code-shiki Refactor remove unnecessary assertion (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7762">#7762</a>) Noritaka Kobayashi</li> <li>lexical-playground Refactor remove unnecessary await in e2e test (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7759">#7759</a>) Noritaka Kobayashi</li> <li>lexical-react Bug Fix Add config transform inheritance to LexicalNestedComposer (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7757">#7757</a>) Bob Ippolito</li> <li>lexical-playgroundexamples Refactor remove redundant fragment (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7755">#7755</a>) Noritaka Kobayashi</li> <li>Update examples for v0.34.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7747">#7747</a>) Bob Ippolito</li> <li>v0.34.0 monthly release (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7746">#7746</a>) Bob Ippolito</li> <li>v0.34.0 Lexical GitHub Actions Bot</li> </ul> <h2>v0.34.0 (2025-08-07)</h2> <ul> <li>Chore Add a post-release action to update the examples (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7744">#7744</a>) Bob Ippolito</li> <li>lexical-examples Bug Fix missing dependency lexicalutils at examplesreact-rich-collab (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7743">#7743</a>) debuggingfuture (Vincent)</li> <li>lexical-playground DateTime Plugin (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7707">#7707</a>) Ivaylo Pavlov</li> <li>lexical-utils fix Backward selection was not being retained (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7737">#7737</a>) Jash Vithlani</li> <li>Fix Key Arrow Down Documentation (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7733">#7733</a>) zamorai</li> <li>lexical-playground Bug Fix include font sizes in pt as well in parseAllowedFontSize (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7719">#7719</a>) Harshkumar Metkel</li> <li>lexical-react Bug Fix prevent race condition in CollaborationPlugin during rapid mountunmount cycles (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7723">#7723</a>) Tobias Andersen</li> <li>lexical Bug Fix Clamp DOM selection offsets to valid lexical TextNode offsets in internalResolveSelectionPoint (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7725">#7725</a>) Bob Ippolito</li> <li>Fix trigger reconcilation on nested read (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7724">#7724</a>) Gerard Rovira</li> <li>lexical-playgroundBug Fix Image links lose link state when dragged (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7693">#7693</a>) Yuncheng Lu</li> <li>lexical-websitedocs Documentation Update Fix typo (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7713">#7713</a>) JT</li> <li>lexical-react feat Context Menu icons (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7697">#7697</a>) Ivaylo Pavlov</li> <li>lexical-react Clean up old mouseup events from context menu (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7705">#7705</a>) Ivaylo Pavlov</li> <li>lexical-codelexical-code-shikilexical-markdownlexical-playgroundlexical-devtools Feature Experimental Shiki support for code highlighting (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7662">#7662</a>) jeromew</li> <li>lexical-selection Bug Fix Correct backward inversion for RTL (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7686">#7686</a>) Noam Zaks</li> <li>v0.33.1 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7684">#7684</a>) Bob Ippolito</li> <li>v0.33.1 Lexical GitHub Actions Bot</li> </ul> <h2>v0.33.1 (2025-07-10)</h2> <ul> <li>Add a setter for the format property on RangeSelection (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/5829">#5829</a>) Omar A.</li> <li>lexical-link Chore Fix test names (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7666">#7666</a>) Noam Zaks</li> <li>v0.33.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7672">#7672</a>) Bob Ippolito</li> <li>v0.33.0 Lexical GitHub Actions Bot</li> </ul> <h2>v0.33.0 (2025-07-03)</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/facebook/lexical/commit/f3b8895397239b3f0215aa8aaa015dc3470753ff"><code>f3b8895</code></a> v0.35.0</li> <li><a href="https://github.com/facebook/lexical/commit/a58f6168c8bd2425aa6f42c4c8bcdcc13f053868"><code>a58f616</code></a> v0.34.0 monthly release (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7746">#7746</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/cde863d444adf9c189626c789b53657c3352dbb1"><code>cde863d</code></a> v0.33.1 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7684">#7684</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/d0456a81955bc6fef7cc7f87907f2a172d41bbf2"><code>d0456a8</code></a> v0.33.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7672">#7672</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/a1a6d70baa5906468919cc76adaeef348dd57e82"><code>a1a6d70</code></a> v0.32.1 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7605">#7605</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/930f3bac4d0c97ec55e56149f07b10c338a979d9"><code>930f3ba</code></a> [Monthly Release] v0.32.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7599">#7599</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/53c3686becfe97c4385038168b663f4567ed966d"><code>53c3686</code></a> v0.31.2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7550">#7550</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/f1b4d1379db7b5a6d850b69d59ab3e79ab088b13"><code>f1b4d13</code></a> v0.31.1 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7525">#7525</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/19b52ef3a22ccd6a4a5cceed1ee6c7b08a5a8dcd"><code>19b52ef</code></a> Monthly Release: v0.31.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7502">#7502</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/0ce1a9041163216385e97f31b5e510f8e8411937"><code>0ce1a90</code></a> v0.30.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-text/issues/7440">#7440</a>)</li> <li>See full diff in <a href="https://github.com/facebook/lexical/commits/v0.35.0/packages/lexical-text">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@lexical/text&package-manager=npm_and_yarn&previous-version=0.30.0&new-version=0.35.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details>
yindo added the pull-request label 2026-02-21 20:48:58 -05:00
yindo closed this issue 2026-02-21 20:48:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31175