v0.31.1

facebook/lexicalv0.31.1May 11, 2025by etrepum

AI Summary

This is a patch release (v0.31.1) that primarily fixes a dev tools build regression and includes various bug fixes across rich text, list, markdown, React, table, and playground components.

Key Highlights

  • Fixed dev tools Vite configuration build regression (#7522)
  • Backspace now only dedents at the start of first descendant of an indented block (#7516)
  • Marker styles are now inherited on indent for lists (#7504)
  • Link transformer now explicitly adds a protocol to URLs in markdown (#7499)
  • TableNode DOM import now supports frozen rows and columns (#7498)

New Features

  • useBasicTypeaheadTriggerMatch punctuation regex fragment is now configurable (#7520)
  • Emoji typeahead search now permits underscore and dashes (#7520)
  • New NodeState documentation and example added (#7294)

Full Release Notes

This is a patch release primarily to address a dev tools build regression (#7522)

## Highlights

Rich Text
* ✅ #7516 Backspace now only dedents at the start of first descendant of an indented block

List
* ✅ #7504 Marker styles are now inherited on indent

Markdown
* ✅ #7499 Link transformer now explicitly adds a protocol to URLs

React
* 🆕 #7520 `useBasicTypeaheadTriggerMatch` punctuation regex fragment is now configurable

Table
* ✅ #7498 TableNode DOM import now supports frozen rows and columns

Playground
* ✅ #7506 LexicalTypeaheadMenuPlugin is now positioned correctly when scrolled
* ✅ #7508 Change text capitalization keyboard shortcuts on macOS to avoid conflicts
* ✅ #7520 Emoji typeahead search now permits underscore and dashes

Dev Tools
* ✅ #7522 Vite configuration fix for devtools build

Docs
* 🆕 #7294 New NodeState documentation and example


## What's Changed
* Monthly Release: v0.31.0 by @lilshady in https://github.com/facebook/lexical/pull/7502
* [lexical-table] Bug Fix: Add missing DOM import for TableNode frozen rows and columns by @Iaotle in https://github.com/facebook/lexical/pull/7498
* [lexical-markdown] Bug Fix: Link Transformer URL Protocol Handling by @AashishRichhariya in https://github.com/facebook/lexical/pull/7499
* [lexical-list] Bug Fix: Inherit marker styles when indenting list items by @kirandash in https://github.com/facebook/lexical/pull/7504
* [lexical-playground] Bug Fix: LexicalTypeaheadMenuPlugin Positioning When Scrolled by @AashishRichhariya in https://github.com/facebook/lexical/pull/7506
* [lexical][lexical-website] Documentation: Start on NodeState docs and examples by @etrepum in https://github.com/facebook/lexical/pull/7294
* [lexical-rich-text] Bug Fix: Backspace should only dedent at first descendant of indented block by @etrepum in https://github.com/facebook/lexical/pull/7516
* [lexical-playground] Bug Fix: capitalize shortcut not working in macos fix by @harshmetkel24 in https://github.com/facebook/lexical/pull/7508
* [lexical-react][lexical-playground] Bug Fix: Make typeahead punctuation configurable; allow underscores and dashes in emoji queries  by @kirandash in https://github.com/facebook/lexical/pull/7520
* [lexical-devtools] Bug Fix: Update devtools vite config for process.env.LEXICAL_VERSION by @etrepum in https://github.com/facebook/lexical/pull/7522

## New Contributors
* @Iaotle made their first contribution in https://github.com/facebook/lexical/pull/7498
* @AashishRichhariya made their first contribution in https://github.com/facebook/lexical/pull/7499

**Full Changelog**: https://github.com/facebook/lexical/compare/v0.31.0...v0.31.1