v0.19.0
facebook/lexicalv0.19.0Oct 28, 2024by potatowagon
AI Summary
Introduces accessibility features like aria-errormessage and aria-invalid support, improves clipboard handling by trusting HTML, and adds support for backward row deletion in tables.
Key Highlights
- Support for `aria-errormessage` and `aria-invalid` attributes
- Trust HTML for rich text clipboard operations
- Support for backward selection in table row deletion
- Improvements to list indentation and LinkPlugin attributes
- Fixes for table selection and column width imports
New Features
- aria-errormessage and aria-invalid support
- Trust HTML for rich text clipboard
- Backward selection in rows deletion
Full Release Notes
## Highlights Highlights since [v0.18.0](https://github.com/facebook/lexical/releases/tag/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 ## What's Changed * 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 ## New Contributors * @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