github facebook/lexical v0.36.2

11 hours ago

v0.36.2 is a bug fix release, primarily to fix a problem with the @lexical/headless package.json that prevented the new @lexical/headless/dom from being used as designed. It also includes several improvements and bug fixes such as the new SKIP_SELECTION_FOCUS_TAG.

Highlights

Core:

  • ๐Ÿ†• #7804 New SKIP_SELECTION_FOCUS_TAG to allow the update to set the DOM selection but not automatically ensure that the root element is focused
  • ๐Ÿงน #7870 devInvariant should warn in prod even if not in codes.json (only relevant for unreleased versions, npm releases, even nightly ones, have an up to date codes.json)

Clipboard:

  • โœ… #7880 Copying from a collapsed selection no longer updates the clipboard (consistent with the browser's default behavior and other applications)

Markdown:

  • โœ… #7890 Ensure First Match is Used in importTextMatchTransformer
    Table:
  • โœ… #7864 Handle accessing table selection following table deletion
    Playground:
  • โœ… #7804 Improve focus management in toolbar DOM
  • โœ… #7847 Table add-row button no longer hides horizontal scroll

React:

  • โœ… #7843 Ensure selection listeners cleaned up from original owner document

HTML:

  • ๐Ÿ†• #7859 $generateNodesFromDOM now accepts any ParentNode (not just Document) as input

Headless:

  • ๐Ÿ†• #7873 #7859 @lexical/headless/dom should be usable now

Docs:

  • ๐Ÿ†• #7830 Add example for how to bootstrap collab ydoc on the server
  • ๐Ÿ†• #7893 Export DOMConversion* types so that they are in the docs
  • ๐Ÿงน #7881 Update to docusaurus v3.9.1

What's Changed

  • v0.36.1 by @etrepum in #7871
  • [*] Bug Fix: devInvariant should warn in prod even if not in codes.json by @etrepum in #7870
  • [lexical-website] Chore: add example for how to bootstrap collab ydoc on the server by @james-atticus in #7830
  • [lexical-playground] Bug Fix: Table add-row button no longer hides horizontal scroll by @niikkhilsharma in #7847
  • Update examples for v0.36.1 by @etrepum in #7872
  • [lexical-headless] Bug Fix: Fix types for @lexical/headless/dom and simplify npmToWwwName workaround by @etrepum in #7873
  • [lexical-table] Bug Fix: Handle accessing table selection following table deletion by @patrick-atticus in #7864
  • [lexical-headless][lexical-html] Bug Fix: Fix entrypoint for @lexical/headless/dom and generalize $generateNodesFromDOM by @etrepum in #7859
  • [lexical-website] Chore: Update to docusaurus v3.9.1 by @etrepum in #7881
  • [lexical-clipboard] Preventing copying empty string by @niikkhilsharma in #7880
  • [lexical-react] Fix: ensure selection listeners cleaned up from original owner document by @james-atticus in #7843
  • [lexical-markdown] Bug Fix: Ensure First Match is Used in importTextMatchTransformer by @jkjk822 in #7890
  • [docs] Chore: Export DOMConversion* types so that they are in the docs by @etrepum in #7893
  • [lexical][lexical-playground] Feature: Improve focus management in Toolbar and adds SKIP_SELECTION_FOCUS_TAG by @KaiPrince in #7804

New Contributors

Full Changelog: v0.36.1...v0.36.2

Don't miss a new lexical release

NewReleases is sending notifications on new releases.