v0.17.0

facebook/lexicalv0.17.0Aug 1, 2024by potatowagon

AI Summary

Introduces Editor.read and EditorState.read with editor argument, mutation listener initialization, and gallery improvements. Includes table hover actions and various bug fixes.

Key Highlights

  • New `Editor.read` and `EditorState.read` methods
  • `registerMutationListener` initialization updates
  • Table hover action buttons and fixes for Shift+Down arrow regression
  • Placeholder accessibility improvements
  • Gallery view with search and filtering options

New Features

  • Editor.read method
  • Mutation listener initialization
  • Gallery view

Full Release Notes

## What's Changed
* 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

## New Contributors
* @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