Breaking Changes
-
🆕 Feature: Support capitalization format
#6897
^ You may need to update callsites that enumerate all cases of TextFormatType eg. switch statements -
🆕 Feature: New update tag: skip-dom-selection, $onUpdate now always called
#6894
Highlights
Highlights since v0.21.0
Link:
- ✅ Fix: Preserve the start/end of the selection for non-text points when creating a LinkNode
#6883
List:
- ✅ Fix: Ensure new paragraph node retains selection styling when exiting list
#6917
Text:
- 🆕 Feature: Support capitalization format
#6897
Markdown:
- ✅ Fix: preserve the order of markdown tags for markdown combinations, and close the tags when the outmost tag is closed by
#5758
Table:
-
🆕 Support google docs colgroup import (via deprecated col width attribute)
#6971 -
✅ fix: check is current selection in target table node
#6979 -
✅ Fix: Allow TableSelection to be preserved during contextmenu events
#6964 -
✅ Fix: Insertion of multiple rows
#6963 -
✅ Fix: Delete table row in merge cells
#6922 -
✅ Fix: Enforce table integrity with transforms and move non-React plugin code to @lexical/table
#6914
Selection:
-
🆕 feature: expose forEachSelectedTextNode
https://github.com/facebook/lexical/pull/6981/files -
🆕 Feature: Unify $selectAll Implementations
#6902
Core editor:
-
✅ Fix: Refactor markSelection for getDOMSlot and not using updateDOM
#6961 -
✅ Refactor: exportJSON, nodes dont need to redeclare exportJSON
#6983 -
🆕 Feature: New update tag: skip-dom-selection, $onUpdate now always called
#6894 -
🆕 Feature: Warn about "display: flex" container for the editor
#6901
React:
-
✅ Replace React$MixedElement and React$Node with React.MixedElement and React.Node in flow API
#6984 -
✅ Fix: the location of draggable-block-menu cannot be calculated
#6966
What's Changed
- [Documentation Update] Add release protocol to maintainers-guide.md by @potatowagon in #6895
- v0.21.0 by @potatowagon in #6896
- [lexical-link] Bug Fix: Preserve the start/end of the selection for non-text points when creating a LinkNode by @etrepum in #6883
- [lexical-website][lexical-react] Documentation Update: documentation for LexicalTreeView plugin by @Kingscliq in #6898
- Warn about "display: flex" container for the editor by @fantactuka in #6901
- [lexical-website] Fix: /docs/react/ "next" button links to itself by @vantage-ola in #6911
- [lexical-table][lexical-utils][lexical-react]: Bug Fix: Enforce table integrity with transforms and move non-React plugin code to @lexical/table by @etrepum in #6914
- [lexical][@lexical/selection] Feature: Unify $selectAll Implementations by @elgh0ul in #6902
- [lexical-playground]: Fix empty layout item causes 100% CPU usage by @basile-savouret in #6906
- [lexical-playground] Chore: Update Prettier to v3 by @daichan132 in #6920
- Doc nits by @zurfyx in #6927
- Update core-tests workflow triggers by @zurfyx in #6928
- [*] Bug Fix: add merge_group to the tests workflow by @etrepum in #6932
- [Breaking Change][lexical-list] Fix: Preserve original format after indenting list item by @citruscai in #6912
- [lexical-playground] Fix: tabs do not show strikethrough/underline by @vantage-ola in #6811
- [lexical-playground] Refactor: editor styles should in PlaygroundEditorTheme.css by @umaranis in #6934
- [lexical-react]Bug Fix: the location of draggable-block-menu cannot be calculated #6818 by @lin-mt in #6915
- [lexical-list] Bug Fix: Ensure new paragraph node retains selection styling when exiting list by @aleksandr-lapushkin in #6917
- [lexical-table] Fix: Delete table row in merge cells by @iamvinayvk in #6922
- [scripts-integration-fixtures] Address GitHub detected a vulnerability in the @sveltejs/kit dependency by @Fetz in #6943
- [lexical-list] Revert PR 6912 by @potatowagon in #6944
- [lexical-onboarding] testing sev mitigation by @nyogi in #6952
- Test comment for pr testing by @bailey-meta in #6953
- Create a test PR by @Tranquiliz00 in #6955
- Revert "[lexical-onboarding] testing sev mitigation (#6952)" by @nyogi in #6956
- Revert "Test comment for pr testing (#6953)" by @bailey-meta in #6957
- Test234 by @Tranquiliz00 in #6958
- [Breaking Change][lexical] Feature: New update tag: skip-dom-selection, $onUpdate now always called by @etrepum in #6894
- [lexical-table][lexical-playground] Fix: Insertion of multiple rows by @iamvinayvk in #6963
- [lexical-playground] Bug Fix: Allow scrolling if the table cell content overflows by @Parasaran-Python in #6966
- [lexical][Breaking Change][lexical-rich-text][lexical-playground] Feature: Support capitalization format by @bedre7 in #6897
- [lexical-website] Add Discord to the community section of the footer by @etrepum in #6967
- [lexical][lexical-table] Bug Fix: Allow TableSelection to be preserved during contextmenu events by @etrepum in #6964
- [lexical-utils] Bug Fix: Refactor markSelection for getDOMSlot and not using updateDOM by @etrepum in #6961
- [lexical-markdown] Bug Fix: preserve the order of markdown tags for markdown combinations, and close the tags when the outmost tag is closed by @yhw5 in #5758
- [lexical-table] Feature: Support google docs colgroup import (via deprecated col width attribute) by @etrepum in #6971
- [Documentation][lexical-website]: Documentation for useLexical node selection hook by @Kingscliq in #6976
- [lexical][lexical-table] Bug fix: TablePlugin: - check is current selection in target table node by @Ulop in #6979
- feature: expose forEachSelectedTextNode by @GermanJablo in #6981
- Refactor: exportJSON by @GermanJablo in #6983
- [lexical] Fix flow error: change this to any by @potatowagon in #6992
- [lexical-react] Refactor: Replace
React$MixedElement
andReact$Node
withReact.MixedElement
andReact.Node
by @SamChou19815 in #6984
New Contributors
- @elgh0ul made their first contribution in #6902
- @basile-savouret made their first contribution in #6906
- @daichan132 made their first contribution in #6920
- @lin-mt made their first contribution in #6915
- @nyogi made their first contribution in #6952
- @bailey-meta made their first contribution in #6953
- @Tranquiliz00 made their first contribution in #6955
- @Parasaran-Python made their first contribution in #6966
- @yhw5 made their first contribution in #5758
- @Ulop made their first contribution in #6979
- @SamChou19815 made their first contribution in #6984
Full Changelog: v0.21.0...v0.22.0