v0.23.1
The only breaking change in this release is minor (#7023) and should not affect any correct code. However, if you are counting the number of times your update listener is called during editor.setRootElement(null)
then you will have to change that expectation.
Highlights since v0.23.0
Core Editor:
- ✅ Fix: Updates are committed on
editor.setRootElement(null)
#7023 - ✅ Fix: TabNode deserialization regression from v0.23.0 #7031
Mark:
- ✅ Fix: MarkNode.addID regression https://github.com/facebook/lexical/pull/7020
React:
- 🆕 Feature: Merge TabIndentionPlugin and ListMaxIndentLevelPlugin plugins, previously the ListMaxIndentLevelPlugin functionality was only in the playground https://github.com/facebook/lexical/pull/7018
- v0.23.0 by @etrepum in https://github.com/facebook/lexical/pull/7017
- [lexical-mark] Bug Fix: reverse ternary in MarkNode.addID by @james-atticus in https://github.com/facebook/lexical/pull/7020
- [lexical-react] Feature: Merge TabIndentionPlugin and ListMaxIndentLevelPlugin plugins by @fantactuka in https://github.com/facebook/lexical/pull/7018
- [lexical] Fix TabNode deserialization regression by @etrepum in https://github.com/facebook/lexical/pull/7031
- [Breaking Change][lexical] Bug Fix: Commit updates on editor.setRootElement(null) by @etrepum in https://github.com/facebook/lexical/pull/7023
- @james-atticus made their first contribution in https://github.com/facebook/lexical/pull/7020
Full Changelog: https://github.com/facebook/lexical/compare/v0.23.0...v0.23.1
v0.23.0
-
🆕 Feature: Add updateFromJSON and move more textFormat/textStyle to ElementNode This change adds optional textFormat and textStyle properties to SerializedElementNode. If you have existing classes with those properties it could create a namespace clash that you will have to resolve one way or another.
TextNode and ElementNode subclasses should be updated to call the updateFromJSON(serializedNode) method from their static importJSON methods. If they don't, they won't support this new functionality, and will have to continue copy and pasting the super implementation of importJSON for correct behavior if the base class ever changes in the future.
You should consider dropping usage of the version field.
Highlights since v0.22.0
Core Editor:
- 🆕 Feature: Add updateFromJSON and move more textFormat/textStyle to ElementNode https://github.com/facebook/lexical/pull/6970
- ✅ Fix: getNodes over-selection https://github.com/facebook/lexical/pull/7006
- ✅ Fix: registerNodeTransform regression https://github.com/facebook/lexical/pull/7016
Playground:
- ✅ Fix: table hover actions button position https://github.com/facebook/lexical/pull/7011
Yjs:
- 🆕 Feature: Expose function to get anchor and focus nodes for given user awareness state https://github.com/facebook/lexical/pull/6942
- v0.22.0 by @potatowagon in https://github.com/facebook/lexical/pull/6993
- [lexical] Bug Fix: Flow is missing some variables and functions by @lytion in https://github.com/facebook/lexical/pull/6977
- [tests] npm upgrade next by @potatowagon in https://github.com/facebook/lexical/pull/6996
- Documentation: Fix typo "nest nest"->"nest" in README.md by @christianhg in https://github.com/facebook/lexical/pull/7000
- [test] npm upgrade astro by @potatowagon in https://github.com/facebook/lexical/pull/7001
- [lexical] Bug Fix: Fix getNodes over-selection by @etrepum in https://github.com/facebook/lexical/pull/7006
- [Breaking Change][lexical] Feature: Add updateFromJSON and move more textFormat/textStyle to ElementNode by @etrepum in https://github.com/facebook/lexical/pull/6970
- [lexical-playground] Refactor: switch headings test file names by @christianhg in https://github.com/facebook/lexical/pull/7008
- [lexical] Bug Fix: Fix registerNodeTransform regression introduced in #6894 by @etrepum in https://github.com/facebook/lexical/pull/7016
- [lexical-playground] Fix table hover actions button position by @ivailop7 in https://github.com/facebook/lexical/pull/7011
- [lexical-yjs] Feature: Expose function to get anchor and focus nodes for given user awareness state by @amanharwara in https://github.com/facebook/lexical/pull/6942
- @christianhg made their first contribution in https://github.com/facebook/lexical/pull/7000
Full Changelog: https://github.com/facebook/lexical/compare/v0.22.0...v0.23.0
v0.22.0
-
🆕 Feature: Support capitalization format
https://github.com/facebook/lexical/pull/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 https://github.com/facebook/lexical/pull/6894
Highlights since v0.21.0
Link:
- ✅ Fix: Preserve the start/end of the selection for non-text points when creating a LinkNode https://github.com/facebook/lexical/pull/6883
List:
- ✅ Fix: Ensure new paragraph node retains selection styling when exiting list https://github.com/facebook/lexical/pull/6917
Text:
- 🆕 Feature: Support capitalization format
https://github.com/facebook/lexical/pull/6897
Markdown:
- ✅ Fix: preserve the order of markdown tags for markdown combinations, and close the tags when the outmost tag is closed by https://github.com/facebook/lexical/pull/5758
Table:
-
🆕 Support google docs colgroup import (via deprecated col width attribute) https://github.com/facebook/lexical/pull/6971
-
✅ fix: check is current selection in target table node https://github.com/facebook/lexical/pull/6979
-
✅ Fix: Allow TableSelection to be preserved during contextmenu events https://github.com/facebook/lexical/pull/6964
-
✅ Fix: Insertion of multiple rows https://github.com/facebook/lexical/pull/6963
-
✅ Fix: Delete table row in merge cells https://github.com/facebook/lexical/pull/6922
-
✅ Fix: Enforce table integrity with transforms and move non-React plugin code to @lexical/table https://github.com/facebook/lexical/pull/6914
Selection:
-
🆕 feature: expose forEachSelectedTextNode https://github.com/facebook/lexical/pull/6981/files
-
🆕 Feature: Unify $selectAll Implementations https://github.com/facebook/lexical/pull/6902
Core editor:
-
✅ Fix: Refactor markSelection for getDOMSlot and not using updateDOM
https://github.com/facebook/lexical/pull/6961 -
✅ Refactor: exportJSON, nodes dont need to redeclare exportJSON https://github.com/facebook/lexical/pull/6983
-
🆕 Feature: New update tag: skip-dom-selection, $onUpdate now always called https://github.com/facebook/lexical/pull/6894
-
🆕 Feature: Warn about "display: flex" container for the editor https://github.com/facebook/lexical/pull/6901
React:
-
✅ Replace React$MixedElement and React$Node with React.MixedElement and React.Node in flow API https://github.com/facebook/lexical/pull/6984
-
✅ Fix: the location of draggable-block-menu cannot be calculated https://github.com/facebook/lexical/pull/6966
- [Documentation Update] Add release protocol to maintainers-guide.md by @potatowagon in https://github.com/facebook/lexical/pull/6895
- v0.21.0 by @potatowagon in https://github.com/facebook/lexical/pull/6896
- [lexical-link] Bug Fix: Preserve the start/end of the selection for non-text points when creating a LinkNode by @etrepum in https://github.com/facebook/lexical/pull/6883
- [lexical-website][lexical-react] Documentation Update: documentation for LexicalTreeView plugin by @Kingscliq in https://github.com/facebook/lexical/pull/6898
- Warn about "display: flex" container for the editor by @fantactuka in https://github.com/facebook/lexical/pull/6901
- [lexical-website] Fix: /docs/react/ "next" button links to itself by @vantage-ola in https://github.com/facebook/lexical/pull/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 https://github.com/facebook/lexical/pull/6914
- [lexical][@lexical/selection] Feature: Unify $selectAll Implementations by @elgh0ul in https://github.com/facebook/lexical/pull/6902
- [lexical-playground]: Fix empty layout item causes 100% CPU usage by @basile-savouret in https://github.com/facebook/lexical/pull/6906
- [lexical-playground] Chore: Update Prettier to v3 by @daichan132 in https://github.com/facebook/lexical/pull/6920
- Doc nits by @zurfyx in https://github.com/facebook/lexical/pull/6927
- Update core-tests workflow triggers by @zurfyx in https://github.com/facebook/lexical/pull/6928
- [*] Bug Fix: add merge_group to the tests workflow by @etrepum in https://github.com/facebook/lexical/pull/6932
- [Breaking Change][lexical-list] Fix: Preserve original format after indenting list item by @citruscai in https://github.com/facebook/lexical/pull/6912
- [lexical-playground] Fix: tabs do not show strikethrough/underline by @vantage-ola in https://github.com/facebook/lexical/pull/6811
- [lexical-playground] Refactor: editor styles should in PlaygroundEditorTheme.css by @umaranis in https://github.com/facebook/lexical/pull/6934
- [lexical-react]Bug Fix: the location of draggable-block-menu cannot be calculated #6818 by @lin-mt in https://github.com/facebook/lexical/pull/6915
- [lexical-list] Bug Fix: Ensure new paragraph node retains selection styling when exiting list by @aleksandr-lapushkin in https://github.com/facebook/lexical/pull/6917
- [lexical-table] Fix: Delete table row in merge cells by @iamvinayvk in https://github.com/facebook/lexical/pull/6922
- [scripts-integration-fixtures] Address GitHub detected a vulnerability in the @sveltejs/kit dependency by @Fetz in https://github.com/facebook/lexical/pull/6943
- [lexical-list] Revert PR 6912 by @potatowagon in https://github.com/facebook/lexical/pull/6944
- [lexical-onboarding] testing sev mitigation by @nyogi in https://github.com/facebook/lexical/pull/6952
- Test comment for pr testing by @bailey-meta in https://github.com/facebook/lexical/pull/6953
- Create a test PR by @Tranquiliz00 in https://github.com/facebook/lexical/pull/6955
- Revert "[lexical-onboarding] testing sev mitigation (#6952)" by @nyogi in https://github.com/facebook/lexical/pull/6956
- Revert "Test comment for pr testing (#6953)" by @bailey-meta in https://github.com/facebook/lexical/pull/6957
- Test234 by @Tranquiliz00 in https://github.com/facebook/lexical/pull/6958
- [Breaking Change][lexical] Feature: New update tag: skip-dom-selection, $onUpdate now always called by @etrepum in https://github.com/facebook/lexical/pull/6894
- [lexical-table][lexical-playground] Fix: Insertion of multiple rows by @iamvinayvk in https://github.com/facebook/lexical/pull/6963
- [lexical-playground] Bug Fix: Allow scrolling if the table cell content overflows by @Parasaran-Python in https://github.com/facebook/lexical/pull/6966
- [lexical][Breaking Change][lexical-rich-text][lexical-playground] Feature: Support capitalization format by @bedre7 in https://github.com/facebook/lexical/pull/6897
- [lexical-website] Add Discord to the community section of the footer by @etrepum in https://github.com/facebook/lexical/pull/6967
- [lexical][lexical-table] Bug Fix: Allow TableSelection to be preserved during contextmenu events by @etrepum in https://github.com/facebook/lexical/pull/6964
- [lexical-utils] Bug Fix: Refactor markSelection for getDOMSlot and not using updateDOM by @etrepum in https://github.com/facebook/lexical/pull/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 https://github.com/facebook/lexical/pull/5758
- [lexical-table] Feature: Support google docs colgroup import (via deprecated col width attribute) by @etrepum in https://github.com/facebook/lexical/pull/6971
- [Documentation][lexical-website]: Documentation for useLexical node selection hook by @Kingscliq in https://github.com/facebook/lexical/pull/6976
- [lexical][lexical-table] Bug fix: TablePlugin: - check is current selection in target table node by @Ulop in https://github.com/facebook/lexical/pull/6979
- feature: expose forEachSelectedTextNode by @GermanJablo in https://github.com/facebook/lexical/pull/6981
- Refactor: exportJSON by @GermanJablo in https://github.com/facebook/lexical/pull/6983
- [lexical] Fix flow error: change this to any by @potatowagon in https://github.com/facebook/lexical/pull/6992
- [lexical-react] Refactor: Replace
React$MixedElement
andReact$Node
withReact.MixedElement
andReact.Node
by @SamChou19815 in https://github.com/facebook/lexical/pull/6984
- @elgh0ul made their first contribution in https://github.com/facebook/lexical/pull/6902
- @basile-savouret made their first contribution in https://github.com/facebook/lexical/pull/6906
- @daichan132 made their first contribution in https://github.com/facebook/lexical/pull/6920
- @lin-mt made their first contribution in https://github.com/facebook/lexical/pull/6915
- @nyogi made their first contribution in https://github.com/facebook/lexical/pull/6952
- @bailey-meta made their first contribution in https://github.com/facebook/lexical/pull/6953
- @Tranquiliz00 made their first contribution in https://github.com/facebook/lexical/pull/6955
- @Parasaran-Python made their first contribution in https://github.com/facebook/lexical/pull/6966
- @yhw5 made their first contribution in https://github.com/facebook/lexical/pull/5758
- @Ulop made their first contribution in https://github.com/facebook/lexical/pull/6979
- @SamChou19815 made their first contribution in https://github.com/facebook/lexical/pull/6984
Full Changelog: https://github.com/facebook/lexical/compare/v0.21.0...v0.22.0
v0.21.0
-
🆕 Deprecate $nodesOfType function https://github.com/facebook/lexical/pull/6855
-
🆕 Feature: Scrollable tables with experimental getDOMSlot API https://github.com/facebook/lexical/pull/6759
-
✅ Fix get table-cell background selection color from a class https://github.com/facebook/lexical/pull/6658 Example change would be https://github.com/facebook/lexical/pull/6892
Highlights since v0.20.0
Core editor:
-
🆕 skipInitialization defaults to false for registerMutationListener https://github.com/facebook/lexical/pull/6857
-
🆕 Deprecate $nodesOfType function https://github.com/facebook/lexical/pull/6855
-
✅ Fix backspace bug when deleting nodes with canInsertTextAfter set to false https://github.com/facebook/lexical/pull/6268
-
🆕 Add missing flow types for utils https://github.com/facebook/lexical/pull/6841
-
✅ Fix: Add feature detection to calculateZoomLevel https://github.com/facebook/lexical/pull/6864
-
✅ Fix: Allow setEditorState to work correctly inside of an update (Fixes Autocomplete plugin) https://github.com/facebook/lexical/pull/6876
React:
-
✅ Fix: Prevent initial value fn to be called on rerender https://github.com/facebook/lexical/pull/6835/
-
🆕 ContentEditable Props type rename to ContentEditableProps https://github.com/facebook/lexical/pull/6837/
Link:
- 🆕 Add missing flow types https://github.com/facebook/lexical/pull/6833/
Table:
- 🆕 Feature: Scrollable tables with experimental getDOMSlot API https://github.com/facebook/lexical/pull/6759
- ✅ Fix down arrow key handling in TableObserver https://github.com/facebook/lexical/pull/6839
- ✅ Fix Resolve table selection issue when the mouse crosses over a portal https://github.com/facebook/lexical/pull/6834
- ✅ Fix get table-cell background selection color from a class https://github.com/facebook/lexical/pull/6658
- ✅ Fix left arrow key handling for table selection https://github.com/facebook/lexical/pull/6875
- ✅ Fix table tab navigation https://github.com/facebook/lexical/pull/6880
- ✅ Fix scrollable table exportDOM https://github.com/facebook/lexical/pull/6884
i8n:
- ✅ Fix: workaround for Korean IME issue on iOS https://github.com/facebook/lexical/pull/6819
A11y:
- ✅ Fix: Aria attributes for ContentEditable are ignored https://github.com/facebook/lexical/pull/6814
Mention:
- 🆕 Mention nodes are no longer spellchecked https://github.com/facebook/lexical/pull/6788/
List:
- ✅ Fix: Handle appending inline element nodes in ListNode.append https://github.com/facebook/lexical/pull/6791
Mark:
- ✅ Fix: Don’t deep copy mark node ids in clone to prevent redundant change detection in syncPropertiesFromYjs https://github.com/facebook/lexical/pull/6810
Selection:
-
🆕 New plugin to retain selection: SelectionAlwaysOnDisplay plugin https://github.com/facebook/lexical/pull/6872
-
✅ Fix: positionNodeOnRange fixes https://github.com/facebook/lexical/pull/6873
- v0.20.0 by @etrepum in https://github.com/facebook/lexical/pull/6809
- [lexical-mark] Bug Fix: Stop MarkNode __ids array deep copy in clone by @ebads67 in https://github.com/facebook/lexical/pull/6810
- [lexical-list] Bug Fix: Handle appending inline element nodes in ListNode.append by @amanharwara in https://github.com/facebook/lexical/pull/6791
- Mention nodes shouldn't be spellcheck'd :) by @sevki in https://github.com/facebook/lexical/pull/6788
- Fix: Aria attributes for ContentEditable are ignored by @vantage-ola in https://github.com/facebook/lexical/pull/6814
- [lexical-rich-text][lexical-plain-text] workaround for Korean IME issue on iOS by @2wheeh in https://github.com/facebook/lexical/pull/6819
- [lexical][lexical-table] Feature: Scrollable tables with experimental getDOMSlot API by @etrepum in https://github.com/facebook/lexical/pull/6759
- [lexical-examples] Chore: Add DOMExportOutputMap type to the exportMap by @Kingscliq in https://github.com/facebook/lexical/pull/6827
- Link flow types by @zurfyx in https://github.com/facebook/lexical/pull/6833
- Prevent initial value fn to be called on rerender by @fantactuka in https://github.com/facebook/lexical/pull/6835
- [lexical-table] Bug Fix: Fix down arrow key handling in TableObserver by @etrepum in https://github.com/facebook/lexical/pull/6839
- [lexical-link] Test: Removing link from node(children) by @vantage-ola in https://github.com/facebook/lexical/pull/6817
- [lexical-react] Fix(lexical-react): ContentEditable props type rename by @ivaaaaann in https://github.com/facebook/lexical/pull/6837
- [lexical-utils] Bug Fix: Add missing Flow type declarations by @hadiham in https://github.com/facebook/lexical/pull/6841
- Table Action Menu - fix UI issue with Merge Cells item by @umaranis in https://github.com/facebook/lexical/pull/6830
- [*] Chore: npm upgrade cross-spawn by @potatowagon in https://github.com/facebook/lexical/pull/6848
- [lexical-link] Test: Appending inline element nodes to ListNode by @Shopiley in https://github.com/facebook/lexical/pull/6826
- [Lexical] Bug Fix: backspace bug when deleting nodes with
canInsertTextAfter
set to false by @dani-lp in https://github.com/facebook/lexical/pull/6268 - Feature: Deprecate $nodesOfType function by @Sachin-Mahato in https://github.com/facebook/lexical/pull/6855
- [tests] npm upgrade cross-spawn by @potatowagon in https://github.com/facebook/lexical/pull/6856
- [Lexical] Chore: Update default skipInitialization to false for registerMutationListener by @Shopiley in https://github.com/facebook/lexical/pull/6857
- [lexical-table] Bug Fix: Resolve table selection issue when the mouse crosses over a portal by @etrepum in https://github.com/facebook/lexical/pull/6834
- [lexical-table] Bug Fix: get table-cell background selection color from a class by @hamza221 in https://github.com/facebook/lexical/pull/6658
- [lexical-selection] Bug Fix: Wrong selection type in $setBlocksType by @lytion in https://github.com/facebook/lexical/pull/6867
- Add Documentation for RootNode's semantic and use case by @citruscai in https://github.com/facebook/lexical/pull/6869
- [lexical-utils] Bug Fix: Add feature detection to calculateZoomLevel by @etrepum in https://github.com/facebook/lexical/pull/6864
- [lexical-playground] Bug Fix: autocomplete format before and after insertion by @bedre7 in https://github.com/facebook/lexical/pull/6845
- [lexical-playground] Bug Fix: Preserve the selection using the link editor from a table by @etrepum in https://github.com/facebook/lexical/pull/6865
- Allow passing params to run-all by @zurfyx in https://github.com/facebook/lexical/pull/6874
- Add SelectionAlwaysOnDisplay plugin by @zurfyx in https://github.com/facebook/lexical/pull/6872
- positionNodeOnRange fixes by @zurfyx in https://github.com/facebook/lexical/pull/6873
- [lexical-table] Bug Fix: Fix left arrow key handling for table selection by @etrepum in https://github.com/facebook/lexical/pull/6875
- [lexical-playground] Fix: Hidden comment button on narrow screens or vertical monitors by @vantage-ola in https://github.com/facebook/lexical/pull/6871
- [lexical-playground] Feature: Highlight special strings with format by @citruscai in https://github.com/facebook/lexical/pull/6860
- [lexical-table] Bug Fix: Fix table tab navigation by @etrepum in https://github.com/facebook/lexical/pull/6880
- [lexical-table] Bug Fix: Fix scrollable table exportDOM by @etrepum in https://github.com/facebook/lexical/pull/6884
- v0.20.1 by @potatowagon in https://github.com/facebook/lexical/pull/6887
- [lexical-playground] Fix CSS property by @ivailop7 in https://github.com/facebook/lexical/pull/6886
- [lexical][lexical-playground] Bug Fix: Allow setEditorState to work correctly inside of an update by @etrepum in https://github.com/facebook/lexical/pull/6876
- [lexical-website] Feature: Document the withKlass option for node replacement by @Shopiley in https://github.com/facebook/lexical/pull/6890
- v0.20.2 by @potatowagon in https://github.com/facebook/lexical/pull/6891
- Fix selected table colors by @zurfyx in https://github.com/facebook/lexical/pull/6892
- [lexical-table] Bug Fix: TableNode exportDOM fixes for partial table selection by @etrepum in https://github.com/facebook/lexical/pull/6889
- @sevki made their first contribution in https://github.com/facebook/lexical/pull/6788
- @ivaaaaann made their first contribution in https://github.com/facebook/lexical/pull/6837
- @hadiham made their first contribution in https://github.com/facebook/lexical/pull/6841
- @dani-lp made their first contribution in https://github.com/facebook/lexical/pull/6268
- @Sachin-Mahato made their first contribution in https://github.com/facebook/lexical/pull/6855
- @hamza221 made their first contribution in https://github.com/facebook/lexical/pull/6658
- @lytion made their first contribution in https://github.com/facebook/lexical/pull/6867
Full Changelog: https://github.com/facebook/lexical/compare/v0.20.0...v0.21.0
v0.20.2
Highlights since v0.20.0
Core editor:
-
🆕 skipInitialization defaults to false for registerMutationListener https://github.com/facebook/lexical/pull/6857
-
🆕 Deprecate $nodesOfType function https://github.com/facebook/lexical/pull/6855
-
✅ Fix backspace bug when deleting nodes with canInsertTextAfter set to false https://github.com/facebook/lexical/pull/6268
-
🆕 Add missing flow types for utils https://github.com/facebook/lexical/pull/6841
-
✅ Fix: Add feature detection to calculateZoomLevel https://github.com/facebook/lexical/pull/6864
-
✅ Fix: Allow setEditorState to work correctly inside of an update (Fixes Autocomplete plugin) https://github.com/facebook/lexical/pull/6876
React:
-
✅ Fix: Prevent initial value fn to be called on rerender https://github.com/facebook/lexical/pull/6835/
-
🆕 ContentEditable Props type rename to ContentEditableProps https://github.com/facebook/lexical/pull/6837/
Link:
- 🆕 Add missing flow types https://github.com/facebook/lexical/pull/6833/
Table:
- 🆕 Feature: Scrollable tables with experimental getDOMSlot API https://github.com/facebook/lexical/pull/6759
- ✅ Fix down arrow key handling in TableObserver https://github.com/facebook/lexical/pull/6839
- ✅ Fix Resolve table selection issue when the mouse crosses over a portal https://github.com/facebook/lexical/pull/6834
- ✅ Fix get table-cell background selection color from a class https://github.com/facebook/lexical/pull/6658
- ✅ Fix left arrow key handling for table selection https://github.com/facebook/lexical/pull/6875
- ✅ Fix table tab navigation https://github.com/facebook/lexical/pull/6880
- ✅ Fix scrollable table exportDOM https://github.com/facebook/lexical/pull/6884
i8n:
- ✅ Fix: workaround for Korean IME issue on iOS https://github.com/facebook/lexical/pull/6819
A11y:
- ✅ Fix: Aria attributes for ContentEditable are ignored https://github.com/facebook/lexical/pull/6814
Mention:
- 🆕 Mention nodes are no longer spellchecked https://github.com/facebook/lexical/pull/6788/
List:
- ✅ Fix: Handle appending inline element nodes in ListNode.append https://github.com/facebook/lexical/pull/6791
Mark:
- ✅ Fix: Don’t deep copy mark node ids in clone to prevent redundant change detection in syncPropertiesFromYjs https://github.com/facebook/lexical/pull/6810
Selection:
-
🆕 New plugin to retain selection: SelectionAlwaysOnDisplay plugin https://github.com/facebook/lexical/pull/6872
-
✅ Fix: positionNodeOnRange fixes https://github.com/facebook/lexical/pull/6873
- v0.20.0 by @etrepum in https://github.com/facebook/lexical/pull/6809
- [lexical-mark] Bug Fix: Stop MarkNode __ids array deep copy in clone by @ebads67 in https://github.com/facebook/lexical/pull/6810
- [lexical-list] Bug Fix: Handle appending inline element nodes in ListNode.append by @amanharwara in https://github.com/facebook/lexical/pull/6791
- Mention nodes shouldn't be spellcheck'd :) by @sevki in https://github.com/facebook/lexical/pull/6788
- Fix: Aria attributes for ContentEditable are ignored by @vantage-ola in https://github.com/facebook/lexical/pull/6814
- [lexical-rich-text][lexical-plain-text] workaround for Korean IME issue on iOS by @2wheeh in https://github.com/facebook/lexical/pull/6819
- [lexical][lexical-table] Feature: Scrollable tables with experimental getDOMSlot API by @etrepum in https://github.com/facebook/lexical/pull/6759
- [lexical-examples] Chore: Add DOMExportOutputMap type to the exportMap by @Kingscliq in https://github.com/facebook/lexical/pull/6827
- Link flow types by @zurfyx in https://github.com/facebook/lexical/pull/6833
- Prevent initial value fn to be called on rerender by @fantactuka in https://github.com/facebook/lexical/pull/6835
- [lexical-table] Bug Fix: Fix down arrow key handling in TableObserver by @etrepum in https://github.com/facebook/lexical/pull/6839
- [lexical-link] Test: Removing link from node(children) by @vantage-ola in https://github.com/facebook/lexical/pull/6817
- [lexical-react] Fix(lexical-react): ContentEditable props type rename by @ivaaaaann in https://github.com/facebook/lexical/pull/6837
- [lexical-utils] Bug Fix: Add missing Flow type declarations by @hadiham in https://github.com/facebook/lexical/pull/6841
- Table Action Menu - fix UI issue with Merge Cells item by @umaranis in https://github.com/facebook/lexical/pull/6830
- [*] Chore: npm upgrade cross-spawn by @potatowagon in https://github.com/facebook/lexical/pull/6848
- [lexical-link] Test: Appending inline element nodes to ListNode by @Shopiley in https://github.com/facebook/lexical/pull/6826
- [Lexical] Bug Fix: backspace bug when deleting nodes with
canInsertTextAfter
set to false by @dani-lp in https://github.com/facebook/lexical/pull/6268 - Feature: Deprecate $nodesOfType function by @Sachin-Mahato in https://github.com/facebook/lexical/pull/6855
- [tests] npm upgrade cross-spawn by @potatowagon in https://github.com/facebook/lexical/pull/6856
- [Lexical] Chore: Update default skipInitialization to false for registerMutationListener by @Shopiley in https://github.com/facebook/lexical/pull/6857
- [lexical-table] Bug Fix: Resolve table selection issue when the mouse crosses over a portal by @etrepum in https://github.com/facebook/lexical/pull/6834
- [lexical-table] Bug Fix: get table-cell background selection color from a class by @hamza221 in https://github.com/facebook/lexical/pull/6658
- [lexical-selection] Bug Fix: Wrong selection type in $setBlocksType by @lytion in https://github.com/facebook/lexical/pull/6867
- Add Documentation for RootNode's semantic and use case by @citruscai in https://github.com/facebook/lexical/pull/6869
- [lexical-utils] Bug Fix: Add feature detection to calculateZoomLevel by @etrepum in https://github.com/facebook/lexical/pull/6864
- [lexical-playground] Bug Fix: autocomplete format before and after insertion by @bedre7 in https://github.com/facebook/lexical/pull/6845
- [lexical-playground] Bug Fix: Preserve the selection using the link editor from a table by @etrepum in https://github.com/facebook/lexical/pull/6865
- Allow passing params to run-all by @zurfyx in https://github.com/facebook/lexical/pull/6874
- Add SelectionAlwaysOnDisplay plugin by @zurfyx in https://github.com/facebook/lexical/pull/6872
- positionNodeOnRange fixes by @zurfyx in https://github.com/facebook/lexical/pull/6873
- [lexical-table] Bug Fix: Fix left arrow key handling for table selection by @etrepum in https://github.com/facebook/lexical/pull/6875
- [lexical-playground] Fix: Hidden comment button on narrow screens or vertical monitors by @vantage-ola in https://github.com/facebook/lexical/pull/6871
- [lexical-playground] Feature: Highlight special strings with format by @citruscai in https://github.com/facebook/lexical/pull/6860
- [lexical-table] Bug Fix: Fix table tab navigation by @etrepum in https://github.com/facebook/lexical/pull/6880
- [lexical-table] Bug Fix: Fix scrollable table exportDOM by @etrepum in https://github.com/facebook/lexical/pull/6884
- v0.20.1 by @potatowagon in https://github.com/facebook/lexical/pull/6887
- [lexical-playground] Fix CSS property by @ivailop7 in https://github.com/facebook/lexical/pull/6886
- [lexical][lexical-playground] Bug Fix: Allow setEditorState to work correctly inside of an update by @etrepum in https://github.com/facebook/lexical/pull/6876
- [lexical-website] Feature: Document the withKlass option for node replacement by @Shopiley in https://github.com/facebook/lexical/pull/6890
- @sevki made their first contribution in https://github.com/facebook/lexical/pull/6788
- @ivaaaaann made their first contribution in https://github.com/facebook/lexical/pull/6837
- @hadiham made their first contribution in https://github.com/facebook/lexical/pull/6841
- @dani-lp made their first contribution in https://github.com/facebook/lexical/pull/6268
- @Sachin-Mahato made their first contribution in https://github.com/facebook/lexical/pull/6855
- @hamza221 made their first contribution in https://github.com/facebook/lexical/pull/6658
- @lytion made their first contribution in https://github.com/facebook/lexical/pull/6867
Full Changelog: https://github.com/facebook/lexical/compare/v0.20.0...v0.20.2
v0.20.0
Highlights since v0.19.0
Lexical Core:
- 🆕
$onUpdate
https://github.com/facebook/lexical/pull/6773
Markdown:
- 🆕 Add ability to control finding the end of a node matched by TextMatchTransformer https://github.com/facebook/lexical/pull/6681
- ✅ Avoid infinite markdown shortcut matchers https://github.com/facebook/lexical/pull/6778
Collab / Yjs:
- ✅ Clean up dangling text after undo in collaboration https://github.com/facebook/lexical/pull/6670
Playground & Docs:
- 🆕 Demonstrate how to preserve more styles when pasting HTML https://github.com/facebook/lexical/pull/6780 https://github.com/facebook/lexical/pull/6770
- 🆕 Add more keyboard shortcuts https://github.com/facebook/lexical/pull/6754
- [lexical] Feature: Add onUpdate function during update with $onUpdate (correct baselline) by @landisdesign in https://github.com/facebook/lexical/pull/6773
- #6768 fix to avoid infinite markdown shortcut matchers run by @fantactuka in https://github.com/facebook/lexical/pull/6778
- [lexical-playground] Fix: the placement of the fontSize button in the ToolbarPlugin and hide the vertical scroll (Bug Fix) by @vantage-ola in https://github.com/facebook/lexical/pull/6786
- Bug Fix: ContextMenu Paste option not preserving style by @citruscai in https://github.com/facebook/lexical/pull/6780
- [lexical-website] Chore: upgrade to Docusaurus v3.6 - Docusaurus Faster by @slorber in https://github.com/facebook/lexical/pull/6761
- [lexical-react] Bug Fix: LexicalTypeaheadMenuPlugin SSR error: ReferenceError: document is not defined by @bedre7 in https://github.com/facebook/lexical/pull/6794
- [lexical-markdown] Feature: add ability to control finding the end of a node matched by TextMatchTransformer by @AlessioGr in https://github.com/facebook/lexical/pull/6681
- [Lexical-website] BugFix: Change button text colour to improve visibility by @Shopiley in https://github.com/facebook/lexical/pull/6796
- [lexical-yjs] Bug Fix: clean up dangling text after undo in collaboration by @mike-atticus in https://github.com/facebook/lexical/pull/6670
- [lexical-website] Documentation Update: Add Documentation for html Property in Lexical Editor Configuration by @Kingscliq in https://github.com/facebook/lexical/pull/6770
- [lexical-playground] Feature: Add more keyboard shortcuts by @bedre7 in https://github.com/facebook/lexical/pull/6754
- Fix importDOM for Layout plugin by @ivailop7 in https://github.com/facebook/lexical/pull/6799
- Add optional selection argument to $getHtmlContent flow type by @rajivanisetti in https://github.com/facebook/lexical/pull/6803
- [lexical] Chore: Add export of DOMExportOutputMap from lexical by @Kingscliq in https://github.com/facebook/lexical/pull/6805
- @landisdesign made their first contribution in https://github.com/facebook/lexical/pull/6773
- @vantage-ola made their first contribution in https://github.com/facebook/lexical/pull/6786
- @citruscai made their first contribution in https://github.com/facebook/lexical/pull/6780
- @slorber made their first contribution in https://github.com/facebook/lexical/pull/6761
- @Shopiley made their first contribution in https://github.com/facebook/lexical/pull/6796
- @mike-atticus made their first contribution in https://github.com/facebook/lexical/pull/6670
- @Kingscliq made their first contribution in https://github.com/facebook/lexical/pull/6770
Full Changelog: https://github.com/facebook/lexical/compare/v0.19.0...v0.20.0
v0.19.0
Highlights since v0.18.0
A11y:
- 🆕 aria-errormessage and aria-invalid support https://github.com/facebook/lexical/pull/6745 https://github.com/facebook/lexical/pull/6751
Clipboard:
- 🆕 Trust HTML for rich text clipboard https://github.com/facebook/lexical/pull/6755
Markdown:
- 🆕 Add ability to hook into the import process for multiline element transformers https://github.com/facebook/lexical/pull/6682
Code:
- ✅ Fix: Add global type declarations for Prism
https://github.com/facebook/lexical/pull/6736
Export:
- ✅ Fix: Preserve indentation when serializing to and from HTML https://github.com/facebook/lexical/pull/6693
List:
- ✅ Fix: Retain indentation when list format is removed and reapplied https://github.com/facebook/lexical/pull/6684
Link:
- 🆕 add attributes in LinkPlugin https://github.com/facebook/lexical/pull/6760
Selection:
-
✅ Fix: Insertion into inline ElementNode should not crash https://github.com/facebook/lexical/pull/6703
-
✅ Fix: lines were being deleted with deleteLine https://github.com/facebook/lexical/pull/6719/
Text:
- ✅ Fix TextNode in token mode should not be split by removeText https://github.com/facebook/lexical/pull/6690
Collab:
-
✅ Fix missing setLocalStateField method to ProviderAwareness type https://github.com/facebook/lexical/pull/6683
-
✅ Fix: preserve custom fields in Lexical-Yjs sync https://github.com/facebook/lexical/pull/6724
Table:
-
🆕 Support backward selection in rows deletion https://github.com/facebook/lexical/pull/6680
-
✅ Fix: Style buttons in toolbar respect table selection https://github.com/facebook/lexical/pull/6678
-
✅ Fix Table formatting when no TextNodes present https://github.com/facebook/lexical/pull/6675
-
✅ Fix: colWidths not imported from DOM for TableNode https://github.com/facebook/lexical/pull/6731
-
✅ Fix: Shift+down selects an extra subsequent element for Table selection https://github.com/facebook/lexical/pull/6679
-
🆕 Inserted node returned from $insertTableRow__EXPERIMENTAL and $insertTableColumn__EXPERIMENTAL https://github.com/facebook/lexical/pull/6741
-
✅ Fix calling split on undefined error https://github.com/facebook/lexical/pull/6746
- v0.18.0 by @potatowagon in https://github.com/facebook/lexical/pull/6676
- Support backward selection in rows deletion by @fantactuka in https://github.com/facebook/lexical/pull/6680
- [lexical-table][lexical-playground] Bug Fix: Make style buttons in toolbar respect table selection by @KatsiarynaDzibrova in https://github.com/facebook/lexical/pull/6678
- [lexical] Bug Fix: Fix Table formatting when no TextNodes present by @KatsiarynaDzibrova in https://github.com/facebook/lexical/pull/6675
- [lexical-yjs] Bug Fix: Add missing setLocalStateField method to ProviderAwareness type by @collierrgbsitisfise in https://github.com/facebook/lexical/pull/6683
- [lexical] Bug Fix: TextNode in token mode should not be split by removeText by @etrepum in https://github.com/facebook/lexical/pull/6690
- [lexical-playground] 3 Bug Fixes, 1 UX Improvement: All Regarding Excalidraw Node by @neysanfoo in https://github.com/facebook/lexical/pull/6666
- [lexical-playground] Bug Fix: toolbar font size input keyboard accessibility by @rilrom in https://github.com/facebook/lexical/pull/6695
- [lexical-playground] Bug Fix: Track Resizing Actions for Excalidraw in History Stack by @neysanfoo in https://github.com/facebook/lexical/pull/6696
- [lexical] Bug Fix: Insertion into inline ElementNode should not crash by @etrepum in https://github.com/facebook/lexical/pull/6703
- [lexical][lexical-list] Bug Fix: Retain indentation when list format is removed and reapplied by @SeaBa55 in https://github.com/facebook/lexical/pull/6684
- [lexical][lexical-list][lexical-rich-text]: Fix: Preserve indentation when serializing to and from HTML by @GermanJablo in https://github.com/facebook/lexical/pull/6693
- fix: preserve custom fields in Lexical-Yjs sync by @collierrgbsitisfise in https://github.com/facebook/lexical/pull/6724
- [lexical-playground] Remove unused command by @ivailop7 in https://github.com/facebook/lexical/pull/6726
- [lexical-playground] Bug Fix: match toolbar font size input with the rest of toolbar items in Read-Only mode by @bedre7 in https://github.com/facebook/lexical/pull/6698
- Chore: add workflow to auto close stale pr based on label by @potatowagon in https://github.com/facebook/lexical/pull/6732
- [lexical-table] Bug Fix:
colWidths
not imported from DOM for TableNode by @cwstra in https://github.com/facebook/lexical/pull/6731 - [lexical] Bug Fix: lines were being deleted with
deleteLine
by @taro-shono in https://github.com/facebook/lexical/pull/6719 - [lexical-playground] Table Hover Actions Layout Fixes by @ivailop7 in https://github.com/facebook/lexical/pull/6725
- [*] Chore: Disable react-beta test job for now by @etrepum in https://github.com/facebook/lexical/pull/6738
- [lexical-code] Bug Fix: Add global type declarations for Prism by @etrepum in https://github.com/facebook/lexical/pull/6736
- [lexical-playground] Bug Fix: Disable image and inline focusing, adding caption and editing in read-only mode by @neysanfoo in https://github.com/facebook/lexical/pull/6705
- [lexical-markdown] Feature: add ability to hook into the import process for multiline element transformers by @AlessioGr in https://github.com/facebook/lexical/pull/6682
- [lexical-playground] Bug Fix: Disable equation editing in read-only mode by @neysanfoo in https://github.com/facebook/lexical/pull/6707
- Bug Fix: Shift+down selects an extra subsequent element for Table selection by @KatsiarynaDzibrova in https://github.com/facebook/lexical/pull/6679
- [lexical-table] Return inserted node from
$insertTableRow__EXPERIMENTAL
and$insertTableColumn__EXPERIMENTAL
by @amanharwara in https://github.com/facebook/lexical/pull/6741 - [lexical-react] Feature: Add aria-errormessage and aria-invalid support to LexicalContentEditable by @ejhammond in https://github.com/facebook/lexical/pull/6745
- Add ariaErrorMessage and ariaInvalid to Flow type by @ejhammond in https://github.com/facebook/lexical/pull/6751
- [lexical-table] [lexical-selection] Try to fix calling split on undefined by @ivailop7 in https://github.com/facebook/lexical/pull/6746
- [lexical-playground] Bug Fix: Disable table hover actions in read-only mode by @neysanfoo in https://github.com/facebook/lexical/pull/6706
- [lexical-playground] Bug Fix: Disable editing of Excalidraw Component in Read-Only Mode by @neysanfoo in https://github.com/facebook/lexical/pull/6704
- Trust HTML for rich text clipboard by @zurfyx in https://github.com/facebook/lexical/pull/6755
- [lexical-react] replace abstract component by @potatowagon in https://github.com/facebook/lexical/pull/6752
- [lexical-react] Feature: add attributes in LinkPlugin by @taro-shono in https://github.com/facebook/lexical/pull/6760
- [lexical] Add missing commands to Lexical.js.flow by @potatowagon in https://github.com/facebook/lexical/pull/6769
- update dependencies to address security vulnerabilities by @potatowagon in https://github.com/facebook/lexical/pull/6764
- @collierrgbsitisfise made their first contribution in https://github.com/facebook/lexical/pull/6683
- @rilrom made their first contribution in https://github.com/facebook/lexical/pull/6695
- @SeaBa55 made their first contribution in https://github.com/facebook/lexical/pull/6684
- @bedre7 made their first contribution in https://github.com/facebook/lexical/pull/6698
- @cwstra made their first contribution in https://github.com/facebook/lexical/pull/6731
- @taro-shono made their first contribution in https://github.com/facebook/lexical/pull/6719
- @ejhammond made their first contribution in https://github.com/facebook/lexical/pull/6745
Full Changelog: https://github.com/facebook/lexical/compare/v0.18.0...v0.19.0
v0.18.0
Highlights since 0.17.1
Core editor:
-
🆕 Iterable $dfs https://github.com/facebook/lexical/pull/6664
-
🆕 Pass in an array of tags to EditorUpdateOptions for multiple tag update https://github.com/facebook/lexical/pull/6507/
-
🆕 exportDOM function supports document fragment exports https://github.com/facebook/lexical/pull/6641/
-
✅ Fix issue where cmd/ctrl + left arrow after a tab character would cause exception https://github.com/facebook/lexical/pull/6588
Markdown:
- 🆕 shouldMergeAdjacentLines option in $convertFromMarkdownString. If true, merges adjacent lines as per commonmark spec (
line1\nline2
->line1line2
). If false (default and current behavior, adjacent lines remain separated by newline, as per GFM (line1\nline2
->line1\nline2
) https://github.com/facebook/lexical/pull/6608 https://github.com/facebook/lexical/pull/6660 - 🆕 multiline markdown transformers / mdx support https://github.com/facebook/lexical/pull/6530
- 🆕 More flexible TextMatchTransformer api, more fields made optional https://github.com/facebook/lexical/pull/6651/
Link:
- ✅ Fix removing a link from nodes with children, eg. Mark Node for comments https://github.com/facebook/lexical/pull/6656
Table:
- ✅ Fix merged cell related edge cases https://github.com/facebook/lexical/pull/6607
- ✅ Fix Table formatting and styling not persisting for empty cells https://github.com/facebook/lexical/pull/6626
- ✅ Fix crash in $deleteCellHandler https://github.com/facebook/lexical/pull/6650
- ✅ Fix incorrect addition of empty cells on table paste https://github.com/facebook/lexical/pull/6578
- ✅ Fix issue where selecting a cell then dragging outside of table would not select entire table https://github.com/facebook/lexical/pull/6579
- ✅ Fix Table Cut Event Handling https://github.com/facebook/lexical/pull/6596/
- 🆕 optional colWidths property to TableNode https://github.com/facebook/lexical/pull/6625
- 🆕 Table row striping feature, increases tables visual accessiblity. https://github.com/facebook/lexical/pull/6547
Selection:
- 🆕 Expose getStyleObjectFromCss in @lexical/selection https://github.com/facebook/lexical/pull/6612
Misc:
- ✅ Check undeclared dependencies in build, declare missing dependencies https://github.com/facebook/lexical/pull/6574
- ✅ Fix window is undefined error appears when creating a code node in a headless editor in a nodejs environment https://github.com/facebook/lexical/pull/6562
- v0.17.1 by @ivailop7 in https://github.com/facebook/lexical/pull/6559
- [lexical-table] Bug Fix: Add @lexical/clipboard as a direct dependency of @lexical/table by @etrepum in https://github.com/facebook/lexical/pull/6571
- [lexical-react] menu positioning: Unrevert PR6510 but with gating by @potatowagon in https://github.com/facebook/lexical/pull/6566
- [*] Feature: Check undeclared dependencies in build by @etrepum in https://github.com/facebook/lexical/pull/6574
- [lexical-table] feat: Add row striping by @ivailop7 in https://github.com/facebook/lexical/pull/6547
- [lexical-react]: Fix incorrect addition of empty cells on table paste by @Shubhankerism in https://github.com/facebook/lexical/pull/6578
- [lexical-list][lexical-react] Refactor: Create registerList Function Separate from React Shared Utils by @jkjk822 in https://github.com/facebook/lexical/pull/6560
- Fix test results CI path on Windows by @moughxyz in https://github.com/facebook/lexical/pull/6585
- [lexical][lexical-overflow] Refactor: simplified removeText and insertText rewrite (part 1) by @GermanJablo in https://github.com/facebook/lexical/pull/6456
- [lexical-table] Fix Table Cut Event Handling by @ivailop7 in https://github.com/facebook/lexical/pull/6596
- [lexical-markdown][breaking change] Feature: multiline markdown transformers / mdx support by @AlessioGr in https://github.com/facebook/lexical/pull/6530
- Address svelte vulnerability by @potatowagon in https://github.com/facebook/lexical/pull/6603
- Fix issue where cmd/ctrl + left arrow after a tab character would cause exception by @moughxyz in https://github.com/facebook/lexical/pull/6588
- [lexical-table][lexical-playground] Bug Fix: Fix merged cell related edge cases by @etrepum in https://github.com/facebook/lexical/pull/6607
- [lexical-code][breaking change] Bug Fix: explicitly import instead of
window.
to support code nodes in nodejs by @nadine-nguyen in https://github.com/facebook/lexical/pull/6562 - Multiple update tags by @zurfyx in https://github.com/facebook/lexical/pull/6507
- [lexical-playground] Fix: Poll Option not clickable at some place after checked state by @iamvinayvk in https://github.com/facebook/lexical/pull/6609
- [lexical-markdown] update markdown flow api by @potatowagon in https://github.com/facebook/lexical/pull/6615
- Expose getStyleObjectFromCss in @lexical/selection by @mofoshow in https://github.com/facebook/lexical/pull/6612
- [lexical-markdown] Fix: normalize markdown in $convertFromMarkdownString to comply with CommonMark spec by @GermanJablo in https://github.com/facebook/lexical/pull/6608
- [lexical] Chore: Add more helpful invariants to $applyNodeReplacement by @etrepum in https://github.com/facebook/lexical/pull/6567
- [lexical-markdown] Breaking Change: rename 'multilineElement' to 'multiline-element' by @potatowagon in https://github.com/facebook/lexical/pull/6617
- Bug Fix: Fix issue where selecting a cell then dragging outside of table would not select entire table by @moughxyz in https://github.com/facebook/lexical/pull/6579
- address micromatch vulnerability by @potatowagon in https://github.com/facebook/lexical/pull/6616
- CI: tag flaky test by @potatowagon in https://github.com/facebook/lexical/pull/6620
- [lexical-react] Refactor: Ensure disconnect is called after connection is established in useYjsCollaboration by @smworld01 in https://github.com/facebook/lexical/pull/6619
- Revert "[lexical-markdown] Fix: normalize markdown in $convertFromMarkdownString to comply with CommonMark spec (#6608)" by @potatowagon in https://github.com/facebook/lexical/pull/6627
- [lexical-playground] Bug Fix: Fix table row/column index when resizing merged cells by @patrick-atticus in https://github.com/facebook/lexical/pull/6630
- [lexical-markdown] Fix: normalize markdown in $convertFromMarkdownString to comply with CommonMark spec (2nd try) by @GermanJablo in https://github.com/facebook/lexical/pull/6629
- [lexical-table] Bug: Table formatting and styling not persisting for empty cells by @KatsiarynaDzibrova in https://github.com/facebook/lexical/pull/6626
- [lexical-playground][ExcalidrawNode] Bug Fix: Preserve Excalidraw image dimensions after resizing by @neysanfoo in https://github.com/facebook/lexical/pull/6634
- [lexical-table][lexical-playground] Feature: Add column widths to TableNode by @patrick-atticus in https://github.com/facebook/lexical/pull/6625
- Grammar Issue - Repeated Word by @DocAdam in https://github.com/facebook/lexical/pull/6643
- Allow exporting a document fragment from the exportDOM function by @skopz356 in https://github.com/facebook/lexical/pull/6641
- [lexical-react][lexical-playground] Bug Fix: Workaround for yjs disconnect race in React StrictMode by @etrepum in https://github.com/facebook/lexical/pull/6644
- [lexical-code] Bug Fix: Annotate @lexical/code as having side-effects for Prism by @etrepum in https://github.com/facebook/lexical/pull/6652
- [lexical-markdown] shouldMergeAdjacentLines as an option by @potatowagon in https://github.com/facebook/lexical/pull/6642
- [lexical-playground] Bug Fix: empty code block not focused by @potatowagon in https://github.com/facebook/lexical/pull/6649
- [lexical-table] Bug Fix: Fix crash in $deleteCellHandler by @etrepum in https://github.com/facebook/lexical/pull/6650
- [lexical-markdown]: Refactor: allows omitting certain properties from TextMatchTransformers, adds jsdocs by @AlessioGr in https://github.com/facebook/lexical/pull/6651
- [lexical-playground] Bug Fix: Correct ExcalidrawNode DOM handling for proper resizing by @neysanfoo in https://github.com/facebook/lexical/pull/6657
- [lexical-link] Bug Fix: Removing a link from descendants by @levensta in https://github.com/facebook/lexical/pull/6656
- [lexical-markdown] set shouldMergeAdjacentLines default to be false by @potatowagon in https://github.com/facebook/lexical/pull/6660
- Iterable $dfs by @zurfyx in https://github.com/facebook/lexical/pull/6664
- @jkjk822 made their first contribution in https://github.com/facebook/lexical/pull/6560
- @iamvinayvk made their first contribution in https://github.com/facebook/lexical/pull/6609
- @mofoshow made their first contribution in https://github.com/facebook/lexical/pull/6612
- @smworld01 made their first contribution in https://github.com/facebook/lexical/pull/6619
- @patrick-atticus made their first contribution in https://github.com/facebook/lexical/pull/6630
- @neysanfoo made their first contribution in https://github.com/facebook/lexical/pull/6634
- @DocAdam made their first contribution in https://github.com/facebook/lexical/pull/6643
- @skopz356 made their first contribution in https://github.com/facebook/lexical/pull/6641
- @levensta made their first contribution in https://github.com/facebook/lexical/pull/6656
Full Changelog: https://github.com/facebook/lexical/compare/v0.17.1...v0.18.0
v0.17.1
- Multiple fixes focused on table stability
- Various cleans up and small refactors across the codebase
- v0.17.0 by @potatowagon in https://github.com/facebook/lexical/pull/6487
- [lexical-table] Bug Fix: Enable observer updates on table elements attributes change by @EugeneVorobyev in https://github.com/facebook/lexical/pull/6479
- [lexical] Bug Fix: Merge pasted paragraph into empty quote by @2wheeh in https://github.com/facebook/lexical/pull/6367
- [@lexical/playground] fix: block cursor show horizontal by @keiseiTi in https://github.com/facebook/lexical/pull/6486
- When creating a new check list, set the
checked
value of the list item tofalse
instead ofundefined
by @amanharwara in https://github.com/facebook/lexical/pull/5978 - Revert "[@lexical/playground] fix: block cursor show horizontal" by @etrepum in https://github.com/facebook/lexical/pull/6490
- docs: prevent automatic
<p>
tag wrapping by @devy-bee in https://github.com/facebook/lexical/pull/6491 - [lexical] Feature: Add version identifier to LexicalEditor constructor by @etrepum in https://github.com/facebook/lexical/pull/6488
- [lexical-playground] Bug Fix: Update tooltip for redo button with correct macOS shortcut by @etrepum in https://github.com/facebook/lexical/pull/6497
- Flow: add more HTMLDivElementDOMProps by @zurfyx in https://github.com/facebook/lexical/pull/6500
- Fix splitText when detached by @zurfyx in https://github.com/facebook/lexical/pull/6501
- [lexical] Bug Fix: Fix decorator selection regression with short-circuiting by @etrepum in https://github.com/facebook/lexical/pull/6508
- [lexical] surface more error details in reconciler by @potatowagon in https://github.com/facebook/lexical/pull/6511
- [@lexical/selection] Feature: yield target to style patch fn by @mrdivyansh in https://github.com/facebook/lexical/pull/6472
- [lexical] Refactor: [RFC] LexicalNode.afterCloneFrom to simplify clone implementation by @etrepum in https://github.com/facebook/lexical/pull/6505
- [lexical-react] remove editor__DEPRECATED that has been deprecated for two years by @etrepum in https://github.com/facebook/lexical/pull/6494
- Fix OverflowNode configuration by @zurfyx in https://github.com/facebook/lexical/pull/6027
- [lexical-react] Fix: Fix React.startTransition on Webpack + React 17 by @turnerguo in https://github.com/facebook/lexical/pull/6517
- Revert "Fix OverflowNode configuration" by @etrepum in https://github.com/facebook/lexical/pull/6535
- [lexical-table] Bug Fix: Selection in tables with merged cells by @elbotho in https://github.com/facebook/lexical/pull/6529
- [*] Chore: Mark additional tests as flaky from #6535 test runs by @etrepum in https://github.com/facebook/lexical/pull/6536
- [lexical-list] Bug Fix: handle non-integer numbers in setIndent by @jrfitzsimmons in https://github.com/facebook/lexical/pull/6522
- Chore: change className props in TreeView component to optional by @reekystive in https://github.com/facebook/lexical/pull/6531
- [lexical-table] Fix a number of table Cut command scenarios by @ivailop7 in https://github.com/facebook/lexical/pull/6528
- [lexical-table] Stop selecting the whole table after pasting cells by @ivailop7 in https://github.com/facebook/lexical/pull/6539
- [lexical-yjs] Bug Fix: Properly sync when emptying document via undo by @moughxyz in https://github.com/facebook/lexical/pull/6523
- [lexical-react] Fix multiple node selection deletion by @ivailop7 in https://github.com/facebook/lexical/pull/6538
- [lexical-playground] Fix: in playground show component-menu when scroll by @keiseiTi in https://github.com/facebook/lexical/pull/6510
- Bug Fix: Fix issue where triple-clicking a cell would dangerously select entire document by @moughxyz in https://github.com/facebook/lexical/pull/6542
- [lexical-playground] Bug Fix: Fix firefox e2e test regression in Selection.spec.mjs by @etrepum in https://github.com/facebook/lexical/pull/6546
- [lexical-table][lexical-clipboard] Bug Fix: Race condition in table CUT_COMMAND by @etrepum in https://github.com/facebook/lexical/pull/6550
- [lexical-table] Fix table selection paste as plain text by @ivailop7 in https://github.com/facebook/lexical/pull/6548
- [lexical-table] Bug Fix: Append a ParagraphNode to each cell when unmerging by @kmslab20 in https://github.com/facebook/lexical/pull/6556
- [lexical] Add tests for HTMLConfig by @2wheeh in https://github.com/facebook/lexical/pull/5507
- [lexical-playground] Bug Fix: fix comment timestamps by @irahopkinson in https://github.com/facebook/lexical/pull/6555
- Revert "[lexical-playground] Fix: in playground show component-menu w… by @zurfyx in https://github.com/facebook/lexical/pull/6558
- @EugeneVorobyev made their first contribution in https://github.com/facebook/lexical/pull/6479
- @keiseiTi made their first contribution in https://github.com/facebook/lexical/pull/6486
- @devy-bee made their first contribution in https://github.com/facebook/lexical/pull/6491
- @mrdivyansh made their first contribution in https://github.com/facebook/lexical/pull/6472
- @turnerguo made their first contribution in https://github.com/facebook/lexical/pull/6517
- @elbotho made their first contribution in https://github.com/facebook/lexical/pull/6529
- @jrfitzsimmons made their first contribution in https://github.com/facebook/lexical/pull/6522
- @reekystive made their first contribution in https://github.com/facebook/lexical/pull/6531
- @moughxyz made their first contribution in https://github.com/facebook/lexical/pull/6523
- @kmslab20 made their first contribution in https://github.com/facebook/lexical/pull/6556
Full Changelog: https://github.com/facebook/lexical/compare/v0.17.0...v0.17.1
v0.17.0
- v0.16.1 by @ivailop7 in https://github.com/facebook/lexical/pull/6363
- [lexical-markdown] Feature Change: Dont trim whitespaces on convertFromMarkdownString by @potatowagon in https://github.com/facebook/lexical/pull/6360
- [lexical][lexical-table] Chore: Replace references to old GridSelection with TableSelection by @etrepum in https://github.com/facebook/lexical/pull/6366
- [lexical-playground] Table Hover Action Buttons by @ivailop7 in https://github.com/facebook/lexical/pull/6355
- Make placeholder accessible by @zurfyx in https://github.com/facebook/lexical/pull/6171
- CI: run e2e flaky tests in a separate job by @potatowagon in https://github.com/facebook/lexical/pull/6365
- [Lexical] Create initial Gallery View with Emoji Plugin Example by @Sahejkm in https://github.com/facebook/lexical/pull/6369
- [Lexical][Gallery] Add description in the card, option to render preview card at run time if no image by @Sahejkm in https://github.com/facebook/lexical/pull/6372
- [rexical-react] Bug Fix: Headings inside collapsible sections are lost when Table of Contents is re-initialized by @KatsiarynaDzibrova in https://github.com/facebook/lexical/pull/6371
- [Lexical] Fix flow errors on syncing build to meta intern by @Sahejkm in https://github.com/facebook/lexical/pull/6373
- [lexical-playground] Fix Table Hover Actions Noclick Bug by @ivailop7 in https://github.com/facebook/lexical/pull/6375
- [Lexical][Gallery] Add option to search examples in the gallery by @Sahejkm in https://github.com/facebook/lexical/pull/6379
- [examples] Chore: Use named export of LexicalErrorBoundary in the examples by @etrepum in https://github.com/facebook/lexical/pull/6378
- [lexical][lexical-playground] Bug Fix: Create line break on paste of content type text/html by @jnnwnk in https://github.com/facebook/lexical/pull/6376
- [Lexical][Gallery] Convert files to follow typescript by @Sahejkm in https://github.com/facebook/lexical/pull/6383
- Fix integrity test by @zurfyx in https://github.com/facebook/lexical/pull/6385
- Prettier sort test attributes by @zurfyx in https://github.com/facebook/lexical/pull/6384
- CI: tag flaky tests by @potatowagon in https://github.com/facebook/lexical/pull/6388
- Fix clear rootElement on React by @zurfyx in https://github.com/facebook/lexical/pull/6389
- [Gallery] Add option to filter plugins based on tags by @Sahejkm in https://github.com/facebook/lexical/pull/6391
- [lexical-playground][lexical-table] Bug Fix: Fix
Shift
+Down Arrow
regression for table sequence. by @serey-roth in https://github.com/facebook/lexical/pull/6393 - [lexical-html] Feature: support pasting empty block nodes by @potatowagon in https://github.com/facebook/lexical/pull/6392
- [lexical] Bug Fix: more accurate line break pasting by @potatowagon in https://github.com/facebook/lexical/pull/6395
- [lexical] Feature: Implement Editor.read and EditorState.read with editor argument by @etrepum in https://github.com/facebook/lexical/pull/6347
- [lexical] Feature: registerMutationListener should initialize its existing nodes by @etrepum in https://github.com/facebook/lexical/pull/6357
- Add ref to contenteditable by @zurfyx in https://github.com/facebook/lexical/pull/6381
- Restore registerRootListener null call by @zurfyx in https://github.com/facebook/lexical/pull/6403
- Fix transpile nodesOfType by @zurfyx in https://github.com/facebook/lexical/pull/6408
- [lexical-react][lexical-playground] sync draggable block plugin to www by @potatowagon in https://github.com/facebook/lexical/pull/6397
- CI: tag flaky tests by @potatowagon in https://github.com/facebook/lexical/pull/6405
- CI: run flaky tests on firefox browsers by @potatowagon in https://github.com/facebook/lexical/pull/6411
- CI: fix build failure on astro integration tests by @2wheeh in https://github.com/facebook/lexical/pull/6414
- Fix discrete nested updates by @zurfyx in https://github.com/facebook/lexical/pull/6419
- fix(docs): correct typo in Lexical collaboration guide by @andasan in https://github.com/facebook/lexical/pull/6421
- docs: fix typo in editor.registerCommand() usage by @yangshun in https://github.com/facebook/lexical/pull/6429
- [lexical-react] update flow typing for draggable block plugin by @potatowagon in https://github.com/facebook/lexical/pull/6426
- [lexical-playground][TableCellResizer] Bug Fix: Register event handlers on root element by @JBWereRuss in https://github.com/facebook/lexical/pull/6416
- fix(LexicalNode): fix inline decorator isSelected by @jason89521 in https://github.com/facebook/lexical/pull/5948
- [lexical-playground] Refactor: run prettier to fix CI by @GermanJablo in https://github.com/facebook/lexical/pull/6436
- [lexical-history][lexical-selection][lexical-react] Fix: #6409 TextNode change detection by @etrepum in https://github.com/facebook/lexical/pull/6420
- [lexical][lexical-selection] Bug Fix: Respect mode when patching text style by @adrianmxb in https://github.com/facebook/lexical/pull/6428
- [lexical][auto-link] Fix auto link crash editor by @MaxPlav in https://github.com/facebook/lexical/pull/6433
- [Lexical][Gallery] Create Simple Tableplugin example by @Sahejkm in https://github.com/facebook/lexical/pull/6445
- [Lexical][CI] ignore running unit/integerity/e2e tests on examples folder code by @Sahejkm in https://github.com/facebook/lexical/pull/6446
- [Lexical][Gallery] Add tableplugin example to gallery by @Sahejkm in https://github.com/facebook/lexical/pull/6447
- [lexical] [lexical-selection] Preserve paragraph styles between lines by @ivailop7 in https://github.com/facebook/lexical/pull/6437
- [lexical] Bug Fix: getCachedTypeToNodeMap should handle a empty and writable EditorState by @etrepum in https://github.com/facebook/lexical/pull/6444
- [lexical-react]: sync format in flow file by @potatowagon in https://github.com/facebook/lexical/pull/6448
- [lexical-rich-text] Bug Fix: HeadingNode.insertNewAfter by @GermanJablo in https://github.com/facebook/lexical/pull/6435
- Flow add tags type to OnChange plugin by @zurfyx in https://github.com/facebook/lexical/pull/6457
- CI: dont cancel other test runs if e2e flaky job fails by @potatowagon in https://github.com/facebook/lexical/pull/6460
- [lexical] Bug Fix: Allow getTopLevelElement to return a DecoratorNode by @etrepum in https://github.com/facebook/lexical/pull/6458
- CI: tag flaky tests by @potatowagon in https://github.com/facebook/lexical/pull/6462
- [Lexical][CI] Update canary e2e test os by @Sahejkm in https://github.com/facebook/lexical/pull/6465
- [lexical-table] Bug Fix: cannot delete content when a table inside selection by @placeba in https://github.com/facebook/lexical/pull/6412
- [Lexica][CI] run extended tests for safari in mac-os and chrome/firefox in linux/windows by @Sahejkm in https://github.com/facebook/lexical/pull/6466
- be in sync with www by @potatowagon in https://github.com/facebook/lexical/pull/6478
- @jnnwnk made their first contribution in https://github.com/facebook/lexical/pull/6376
- @andasan made their first contribution in https://github.com/facebook/lexical/pull/6421
- @JBWereRuss made their first contribution in https://github.com/facebook/lexical/pull/6416
- @adrianmxb made their first contribution in https://github.com/facebook/lexical/pull/6428
- @placeba made their first contribution in https://github.com/facebook/lexical/pull/6412
Full Changelog: https://github.com/facebook/lexical/compare/v0.16.1...v0.17.0