v0.14.1

facebook/lexicalv0.14.1Mar 18, 2024by ivailop7

AI Summary

Introduces ESM support and removes an old method from TableNode, requiring code updates.

Key Highlights

  • Added ESM Support
  • Removed canExtractContents from TableNode

Breaking Changes

  • Removed canExtractContents from TableNode

New Features

  • ESM Support

Full Release Notes

v0.14.1 (2024-03-18)

## Main Changes

**ESM Support** in https://github.com/facebook/lexical/pull/5618 (thanks @etrepum).

**canExtractContents** has been removed from TableNode in https://github.com/facebook/lexical/pull/5628 [BREAKING CHANGE] 

## What's Changed

* Fix Flow $getCharacterOffsets by @zurfyx in https://github.com/facebook/lexical/pull/5555
* v0.13.1 by @zurfyx in https://github.com/facebook/lexical/pull/5556
* Fix: add class to elements exported from CodeNode by @2wheeh in https://github.com/facebook/lexical/pull/5558
* Prevent file:/// img conversion by @zurfyx in https://github.com/facebook/lexical/pull/5563
* Add `@lexical/html` to docs by @2wheeh in https://github.com/facebook/lexical/pull/5557
* Edit Link modal fix by @HarrySIV in https://github.com/facebook/lexical/pull/5551
* Update react documentation by @pavel-shermayster-sage in https://github.com/facebook/lexical/pull/5568
* Fix $computeTableMap flow by @zurfyx in https://github.com/facebook/lexical/pull/5574
* Fix Poll Node by @ivailop7 in https://github.com/facebook/lexical/pull/5579
* Fix Double Deletion on Backspace by @ivailop7 in https://github.com/facebook/lexical/pull/5580
* fix: update docs example by @jpulec in https://github.com/facebook/lexical/pull/5586
* Fix list selection when first node followed by an element node by @ivailop7 in https://github.com/facebook/lexical/pull/5583
* IME Input via CDP with latest Playwright by @ivailop7 in https://github.com/facebook/lexical/pull/5584
* fix: hide Firefox's text size buttons by @staadecker in https://github.com/facebook/lexical/pull/5588
* Bug: Right Align in Toolbar for RTL direction shows Left Align Icon by @fahad12398 in https://github.com/facebook/lexical/pull/5561
* Fixed position for lexical menu by @ebads67 in https://github.com/facebook/lexical/pull/5602
* fix: Improve performance of updateChildrenListItemValue by @etrepum in https://github.com/facebook/lexical/pull/5590
* fix: disable markdown shortcuts for collaboration by @junhsss in https://github.com/facebook/lexical/pull/5591
* Revert "Fixed position for lexical menu (#5602)" by @zurfyx in https://github.com/facebook/lexical/pull/5614
* Fix shift+arrow down selection for tables in sequence. by @serey-roth in https://github.com/facebook/lexical/pull/5617
* Fix hashtag regex blocking transform to heading by @2wheeh in https://github.com/facebook/lexical/pull/5376
* Revert "Fix hashtag regex blocking transform to heading" by @acywatson in https://github.com/facebook/lexical/pull/5636
* [0.14] Remove unused canExtractContents by @ivailop7 in https://github.com/facebook/lexical/pull/5628
* Escape Layout Plugin by @ivailop7 in https://github.com/facebook/lexical/pull/5626
* Move to native UUID by @ivailop7 in https://github.com/facebook/lexical/pull/5622
* fix: unify class name splitting/filtering with normalizeClassNames by @etrepum in https://github.com/facebook/lexical/pull/5649
* Preserve bullet item indent on newline by @ivailop7 in https://github.com/facebook/lexical/pull/5578
* Unbullet one list item not the whole list by @ivailop7 in https://github.com/facebook/lexical/pull/5621
* Refactor: simplify getFirstDescendant and getLastDescendant by @thorn0 in https://github.com/facebook/lexical/pull/5665
* docs: Added visualization of the Lexical modular architecture by @StyleT in https://github.com/facebook/lexical/pull/5667
* support multiple windows by @robfig in https://github.com/facebook/lexical/pull/5070
* docs: Interactive Vanilla JS example by @StyleT in https://github.com/facebook/lexical/pull/5668
* Configure ESLint: enable curly rule, fix on save by @thorn0 in https://github.com/facebook/lexical/pull/5666
* fix: Fix E2E tests in Safari (Webkit) by @StyleT in https://github.com/facebook/lexical/pull/5672
* docs: add a tip about discrete state update by @Dzieni in https://github.com/facebook/lexical/pull/5664
* docs: Improved Getting Started with React guide by @StyleT in https://github.com/facebook/lexical/pull/5676
* docs: Added reasoning on why State is necessary by @StyleT in https://github.com/facebook/lexical/pull/5678
* Add support for grid selection in text alignment. by @serey-roth in https://github.com/facebook/lexical/pull/5652
* docs: Added conceptual view of the Lexical Core Design by @StyleT in https://github.com/facebook/lexical/pull/5677
* chore(docs): Changed stackblitz.com links to point at this repo by @StyleT in https://github.com/facebook/lexical/pull/5685
* fix(tables): Add missing paragraph node when copying empty cells from external resources by @vect-spasquereau in https://github.com/facebook/lexical/pull/5670
* Fix forward word deletion destructing element nodes by @ivailop7 in https://github.com/facebook/lexical/pull/5625
* style: fix broken eslint check of #5625 by @yf-yang in https://github.com/facebook/lexical/pull/5694
* Fix endless renders with editorRef callback by @2wheeh in https://github.com/facebook/lexical/pull/5701
* fix:  Typo in the collaboration nodes by @pranav-growthx in https://github.com/facebook/lexical/pull/5702
* Fix Bulleting a Node Selection by @ivailop7 in https://github.com/facebook/lexical/pull/5699
* Export table row height in JSON by @ivailop7 in https://github.com/facebook/lexical/pull/5696
* Fix deletion issues when using Chromium Android by @amanharwara in https://github.com/facebook/lexical/pull/5644
* Send click event in read-only editor by @ivailop7 in https://github.com/facebook/lexical/pull/5714
* Add code snippets for ClearEditorPlugin and MarkdownShortcutPlugin by @NickRawls in https://github.com/facebook/lexical/pull/5711
* docs: Creating a Plugin page + example by @StyleT in https://github.com/facebook/lexical/pull/5717
* docs: Added links to API docs for respective packages by @StyleT in https://github.com/facebook/lexical/pull/5719
* Update CharacterLimitPlugin to support custom renderer by @2wheeh in https://github.com/facebook/lexical/pull/5715
* Fix to count tabs as list indentation on importing markdown by @2wheeh in https://github.com/facebook/lexical/pull/5706
* Add test for multiple leading "#" characters in a hashtag by @2wheeh in https://github.com/facebook/lexical/pull/5723
* Fix: don't call importDOM methods more than once by @thorn0 in https://github.com/facebook/lexical/pull/5726
* ImportDOM and ExportDOM for LayoutContainerNode by @ivailop7 in https://github.com/facebook/lexical/pull/5722
* Fix height and width parsing in ImportDOM for ExcalidrawNode by @ivailop7 in https://github.com/facebook/lexical/pull/5721
* ESM build by @etrepum in https://github.com/facebook/lexical/pull/5618
* v0.14.0 by @ivailop7 in https://github.com/facebook/lexical/pull/5728

## New Contributors
* @pavel-shermayster-sage made their first contribution in https://github.com/facebook/lexical/pull/5568
* @jpulec made their first contribution in https://github.com/facebook/lexical/pull/5586
* @staadecker made their first contribution in https://github.com/facebook/lexical/pull/5588
* @fahad12398 made their first contribution in https://github.com/facebook/lexical/pull/5561
* @junhsss made their first contribution in https://github.com/facebook/lexical/pull/5591
* @serey-roth made their first contribution in https://github.com/facebook/lexical/pull/5617
* @StyleT made their first contribution in https://github.com/facebook/lexical/pull/5667
* @robfig made their first contribution in https://github.com/facebook/lexical/pull/5070
* @Dzieni made their first contribution in https://github.com/facebook/lexical/pull/5664
* @vect-spasquereau made their first contribution in https://github.com/facebook/lexical/pull/5670
* @pranav-growthx made their first contribution in https://github.com/facebook/lexical/pull/5702
* @NickRawls made their first contribution in https://github.com/facebook/lexical/pull/5711

**Full Changelog**: https://github.com/facebook/lexical/compare/v0.13.1...v0.14.1