chore(deps): bump @lexical/code from 0.32.1 to 0.45.0 in /web
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(6 days ago)
(6 days ago)
dependencies
Bumps @lexical/code from 0.32.1 to 0.45.0.
Release notes
Sourced from @lexical/code's releases.
v0.45.0 is a monthly release with several breaking changes around selection and reconcile semantics, a major new experimental
DOMImportExtensionAPI for composable HTML import that replacesimportDOM, a generalizedDOMSlotand DOM render override surface, newHistoryExtensionergonomics (canUndo/canRedosignals,maxDepth), notable reconciler/selection performance work, and a wide range of bug fixes across IME, mobile keyboards, list/code/table editing, and markdown round-tripping.Breaking Changes
lexical— Shadow root inclusion in$getReconciledDirection(#8479)
$getReconciledDirectionnow walks through shadow roots when resolving the reconcileddirattribute on a node, so nested ShadowRoot-style elements (e.g. tables) inherit direction consistently with regular elements. Callers that relied on direction inheritance stopping at shadow roots will need to update.
lexical/@lexical/rich-text— Backspace at block start preserves the current block (#8493)Pressing Backspace at the start of a non-empty block previously merged the current block into the previous block, which discarded the current block's type/format. The new behavior merges the previous block's children into the current block instead, preserving the current block's type (heading, list item, quote, etc.). A new
$mergeBlockBackwardhelper onRangeSelectionis exposed for custom command handlers that want the same behavior.
lexical— Selection adjustment inremoveFromParentcallers (#8501)
LexicalNode.replace,insertBefore,insertAfter, and related callers that move a node between parents now correctly adjust the current selection to follow the moved node instead of leaving the selection pointing at the (now empty) original slot. This may change selection state observed by transforms or update listeners that previously relied on the stale offsets.
@lexical/markdown— Apply markdown shortcuts on composition-committed triggers (#8503)Markdown shortcuts (e.g.
*,_,~) typed via IME composition now trigger after the composition is committed, not just on rawbeforeinput. This fixes shortcuts being silently dropped during Japanese / Korean / Chinese input but may also fire shortcuts in some flows that previously didn't.
@lexical/extension/@lexical/rich-text/@lexical/plain-text—NormalizeInlineElementsExtension(#8497)
registerRichTextandregisterPlainTextnow register a transform that removes empty inline elements (e.g.LinkNode, formattedTextNodewrappers with no children) instead of leaving them in the tree. The transform is also exported asNormalizeInlineElementsExtensionfrom@lexical/extensionfor use with extension-based setups. Editors that intentionally kept empty inline wrappers will need to disable the extension or override the transform. See Included Extensions.
lexical/@lexical/extension/@lexical/rich-text/@lexical/plain-text—NormalizeTripleClickSelectionExtension(#8520)The "triple-click selects the whole paragraph including the trailing newline" normalization has moved out of
LexicalEventsand into a newNormalizeTripleClickSelectionExtensionregistered by both rich-text and plain-text. The coreLexicalEditorno longer performs this normalization on its own, so editors that bypassregisterRichText/registerPlainText(or the equivalent extensions) need to register the extension explicitly to keep the previous behavior. See Included Extensions.
lexical/@lexical/html/@lexical/selection/@lexical/utils/@lexical/playground— GeneralizedDOMSlotand DOMRenderExtension override surface (#8519)
DOMSlotis now generalized so child slots can be expressed for arbitrary DOM containers (not just the direct child element), and$createDOM,$updateDOM,$exportDOM,$getDOMSlotetc. all flow through the new override surface. The previously-exportedAutocompleteNodein the playground has been replaced by aVisibleLineBreakExtensionthat demonstrates the new override surface, andmarkSelectionin@lexical/utilshas been rewritten on top of the generalized slot API. Custom nodes that overridegetDOMSlotto return a non-element wrapper now have a real way to express that. See the DOMRenderExtension docs.New APIs
@lexical/html—DOMImportExtension(experimental) (#8528)A new
DOMImportExtensionreplaces the legacy node-classimportDOMstatic method with a composable middleware-style API. Rules declare a CSS-selector-style matcher, an optional schema for child handling, and aDOMImportFnthat builds Lexical nodes from the matching DOM. Many helpers ship alongside it:$distributeInlineWrapper,ImportSession,DOMPreprocessFnfor source-specific cleanup (Word, VS Code, etc.), and full TypeScript types for rules, captures, and contexts. A newdev-examples/dom-importshowcase wires it up to a Word/VS Code paste flow. The legacyimportDOMcontinues to work; new code can opt in toDOMImportExtensionfor richer composition and explicit ordering. The companionClipboardDOMImportExtension(in@lexical/clipboard) routestext/htmlpastes through the new pipeline. See the DOMImportExtension guide and the "Migrating fromimportDOM" section.
@lexical/html/@lexical/playground— Conditional DOM render overrides (#8575)
domOverridenow supportsdisabledForEditoranddisabledForSessionpredicates so render overrides can be conditionally skipped on a per-editor or per-session basis (e.g. only apply during export, or only when a feature flag is on). Useful when one extension provides multiple overrides whose applicability depends on context that isn't known at registration time. See the DOMRenderExtension docs.
lexical—ElementNodeimport/export ofdata-lexical-indent(#8536)
ElementNodenow uniformly imports and exports thedata-lexical-indentattribute so any subclass round-trips its indent level through HTML without having to overrideexportDOM/importDOM(fixes the long-standing #7729 regression around indented headings/paragraphs).
lexical— Infinite recursion detection in update listeners (#8542)Update listeners and update transforms that re-trigger themselves are now caught by a runtime guard that throws a descriptive error after a configurable number of nested updates, instead of hanging the tab. See Updates and Listeners.
... (truncated)
Changelog
Sourced from @lexical/code's changelog.
v0.45.0 (2026-05-29)
- cilexical Bug Fix Upgrade playwrighttest to 1.60.0 (#8582) Bob Ippolito
- lexical-htmllexical-playground Feature Conditional DOM render overrides (disabledForEditordisabledForSession) (#8575) Bob Ippolito
- fix prevent MOVETOENDMOVETOSTART crash on decorator-only elements (#8577) Sherry
- Refactor Publish packages from their root directory (#8554) Bob Ippolito
- lexical-website Documentation Tuning HistoryExtension for long sessions (#8546) Bob Ippolito
- lexical-html Feature DOMImportExtension - replacement for importDOM (#8528) Bob Ippolito
- lexical-website Feature Server-rendered Copy page Markdown button (#8570) Bob Ippolito
- ci Use playwright install-deps instead of apt-get (#8572) Bob Ippolito
- lexical-website Bug Fix Fix crash on docserror page from undefined process (#8557) Bob Ippolito
- lexical Bug Fix Correct children fast-path text size for cross-parent-moved elements (#8569) Bob Ippolito
- Breaking Changelexicallexical-htmllexical-selectionlexical-utilslexical-playground Feature Generalize DOMSlot and add DOMRenderExtension override surface (#8519) mayrang
- lexical-playground Bug Fix Build dev playground in development mode (#8565) Bob Ippolito
- lexical Bug Fix Skip reconcileChildren fast path during full reconcile (#8564) Bob Ippolito
- lexicallexical-rich-textlexical-code-core Bug Fix Cursor stuck before leading inline DecoratorNode (#8558) mayrang
- lexical-code-prismlexical-code-shikilexical-playground Feature Allow null Tokenizer.defaultLanguage to preserve markdown round-trip (#8553) mayrang
- lexical-extensionlexical-playground Feature Insert paragraph on click after the last block (#8549) mayrang
- lexical-playground Bug Fix Normalize collapsible content children (#8539) Rohan Patnaik
- lexical Bug Fix Cache last-child kind for trailing-br reconcile (#8548) mayrang
- lexical-markdown Chore Cover bold italic markdown round trip (#8541) Rohan Patnaik
- lexical-extensionlexical-htmllexical-utilslexical Chore Migrate away from legacy flow syntax (#8547) Sam Zhou
- lexical Feature Detect infinite recursion in update listeners (#8542) mayrang
- lexical-playground Bug Fix EquationNode click NodeSelection empty-input Backspace removes (#8534) mayrang
- build(deps) bump serialize-javascript from 6.0.2 to 7.0.4 (#8540) dependabotbot
- lexical-history Feature Add maxDepth option to HistoryExtension (#8537) Bob Ippolito
- lexical Feature ElementNode importexport support for data-lexical-indent (#8536) Bob Ippolito
- lexical-markdown Bug Fix Fix Markdown import with Unicode whitespace (#8535) Rodrigo Lungui
- lexical-website Bug Fix Remove embed1 from non-iframe StackBlitz links (#8531) Bob Ippolito
- lexical Bug Fix handle triple-click overselection in setBlocksType (#8517) Mike Dalessio
- Breaking Changelexicallexical-extensionlexical-rich-textlexical-plain-text Feature Move triple click selection handling to NormalizeTripleClickSelectionExtension (#8520) Bob Ippolito
- lexical-rich-text Bug Fix Insert paragraph on Enter for a block DecoratorNode NodeSelection (#8526) mayrang
- lexical-yjs Chore Fix RenderSnapshot comment typo (#8527) Shaurya Singh
- lexical-playground Bug Fix Fix unawaited playwright promises in e2e test suite (#8521) Bob Ippolito
- ci Chore pin Windows e2e runners to windows-2022 (#8522) Bob Ippolito
- lexicallexical-yjslexical-playground Chore Respect browserslist (#8512) Sergey Gorbachev
- lexical-react Feature optional async onClose for LexicalTypeaheadMenuPlugin (#8489) Abhinav Gautam
- lexical-markdown Bug Fix run element markdown shortcuts on Enter (#8488) Abhinav Gautam
- lexical-website Bug Fix Correct links to included extensions (#8523) duyda
- lexical-code-shikinextjs-code-shiki Bug Fix Externalize shiki dependencies in the published bundle (#8514) Bob Ippolito
- lexical-website Bug Fix Drop Vercel Analytics inject and unwrap chat input from flex parent (#8509) mayrang
- lexical-website Refactor Drop docusaurus-plugin-internaldocs-fb preset (#8516) Gerard Rovira
- ci Refactor Use composite actions to simplify github workflows (#8504) Bob Ippolito
- lexical-extension Bug Fix Set the correct default canIndent (#8510) Sergey Gorbachev
- lexicallexical-listlexical-selectionlexical-link Refactor Centralize replace-area selection mapping bulk splice (#8505) mayrang
- lexical-table Bug Fix prevent crash when moving selection with arrow key outside of nested table (#8502) Randal
- Breaking Changelexical-extensionlexical-rich-textlexical-plain-text Feature Remove empty inline elements (#8497) Sergey Gorbachev
- Breaking Changelexical-markdown Bug Fix Apply markdown shortcuts on composition-committed triggers (#8503) mayrang
- lexical-playground Chore Drop FIXME #8348 Firefox ArrowDown workaround in Tables.spec.mjs (#8508) Mark Feng
- lexical Perf Children fast path with suffix-incremental cache update in reconcileChildren (#8482) mayrang
... (truncated)
Commits
0cfcc16v0.45.047b9ccc[*] Refactor: Publish packages from their root directory (#8554)a1e1a38[lexical][lexical-rich-text][lexical-code-core] Bug Fix: Cursor stuck before ...168f803[lexical-code-prism][lexical-code-shiki][lexical-playground] Feature: Allow n...c4083d5[lexical-code-core][lexical-code-shiki][lexical-code-prism] Feature: Outdent ...eaf5b65v0.44.0 (#8394)00fabd2[lexical-website] Set prettier arrowParens to avoid (#8397)9588e94[Breaking Change][lexical-code] Bug Fix: move code block escape logic to KEY_...4e3085bv0.43.0 (#8319)7ea3e02[*] Fix: Replace legacy Flow syntax with modern equivalents in .flow … (#8315)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 15987409 |
| UUID: | 4582775251 |
| Node ID: | PR_kwDOLlOWv87iXpKt |
| Host: | GitHub |
| Repository: | nodetool-ai/nodetool |