v0.36.2
facebook/lexicalv0.36.2Oct 1, 2025by etrepum
AI Summary
Bug fix release primarily to fix @lexical/headless package.json issue preventing @lexical/headless/dom usage, includes SKIP_SELECTION_FOCUS_TAG and various improvements.
Key Highlights
- Fix @lexical/headless/dom usability
- SKIP_SELECTION_FOCUS_TAG for focus management
- $generateNodesFromDOM accepts any ParentNode
- Bug fixes for clipboard, markdown, table selection
New Features
- SKIP_SELECTION_FOCUS_TAG to set DOM selection without focusing root
- $generateNodesFromDOM accepts any ParentNode not just Document
- @lexical/headless/dom now usable
- DOMConversion* types exported for documentation
Full Release Notes
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 https://github.com/facebook/lexical/pull/7871 * [*] Bug Fix: devInvariant should warn in prod even if not in codes.json by @etrepum in https://github.com/facebook/lexical/pull/7870 * [lexical-website] Chore: add example for how to bootstrap collab ydoc on the server by @james-atticus in https://github.com/facebook/lexical/pull/7830 * [lexical-playground] Bug Fix: Table add-row button no longer hides horizontal scroll by @niikkhilsharma in https://github.com/facebook/lexical/pull/7847 * Update examples for v0.36.1 by @etrepum in https://github.com/facebook/lexical/pull/7872 * [lexical-headless] Bug Fix: Fix types for @lexical/headless/dom and simplify npmToWwwName workaround by @etrepum in https://github.com/facebook/lexical/pull/7873 * [lexical-table] Bug Fix: Handle accessing table selection following table deletion by @patrick-atticus in https://github.com/facebook/lexical/pull/7864 * [lexical-headless][lexical-html] Bug Fix: Fix entrypoint for @lexical/headless/dom and generalize $generateNodesFromDOM by @etrepum in https://github.com/facebook/lexical/pull/7859 * [lexical-website] Chore: Update to docusaurus v3.9.1 by @etrepum in https://github.com/facebook/lexical/pull/7881 * [lexical-clipboard] Preventing copying empty string by @niikkhilsharma in https://github.com/facebook/lexical/pull/7880 * [lexical-react] Fix: ensure selection listeners cleaned up from original owner document by @james-atticus in https://github.com/facebook/lexical/pull/7843 * [lexical-markdown] Bug Fix: Ensure First Match is Used in `importTextMatchTransformer` by @jkjk822 in https://github.com/facebook/lexical/pull/7890 * [docs] Chore: Export DOMConversion* types so that they are in the docs by @etrepum in https://github.com/facebook/lexical/pull/7893 * [lexical][lexical-playground] Feature: Improve focus management in Toolbar and adds SKIP_SELECTION_FOCUS_TAG by @KaiPrince in https://github.com/facebook/lexical/pull/7804 ## New Contributors * @niikkhilsharma made their first contribution in https://github.com/facebook/lexical/pull/7847 * @KaiPrince made their first contribution in https://github.com/facebook/lexical/pull/7804 **Full Changelog**: https://github.com/facebook/lexical/compare/v0.36.1...v0.36.2