Skip to content

[lexical-website] Documentation Update: add HMRExtension and KeyboardShortcutsExtension to the included list - #9213

Merged
etrepum merged 1 commit into
meta:mainfrom
potatowagon:docs-extensions-included-list
Sep 23, 2026
Merged

etrepum merged 1 commit into
meta:mainfrom
potatowagon:docs-extensions-included-list

Conversation

@potatowagon

Copy link
Copy Markdown
Contributor

Description

The @lexical/extension section of extensions/included-extensions.md is an
alphabetical list of the extensions that package ships. Two exported
extensions are missing from it:

  • HMRExtension — preserves editor state, selection, editability and
    undo/redo history across Hot Module Replacement cycles.
  • KeyboardShortcutsExtension — dispatches a table of keyboard shortcuts
    from a single compiled KEY_DOWN_COMMAND listener. It is marked
    @experimental, so its entry carries the same "(experimental)" marker the
    page already uses for other experimental extensions.

Test plan

Documentation-only change (markdown is excluded from prettier via
.prettierignore), so the check is that the list matches the package's
exports.

Before

$ grep -c "HMRExtension\|KeyboardShortcutsExtension" packages/lexical-website/docs/extensions/included-extensions.md
0

$ grep -n "HMRExtension\|KeyboardShortcutsExtension" packages/lexical-extension/src/index.ts
44:  HMRExtension,
65:  KeyboardShortcutsExtension,

Both are exported but undocumented.

After

$ grep -n "HMRExtension\|KeyboardShortcutsExtension" packages/lexical-website/docs/extensions/included-extensions.md
44:- [HMRExtension](/docs/api/modules/lexical_extension#hmrextension) - Preserves editor state, selection, editability and undo/redo history across Hot Module Replacement (HMR) cycles
48:- [KeyboardShortcutsExtension](/docs/api/modules/lexical_extension#keyboardshortcutsextension) - Dispatches a table of keyboard shortcuts from a single compiled `KEY_DOWN_COMMAND` listener; the table is merged across the extension graph by name (experimental)

Both entries sit in the list's existing alphabetical order. Descriptions are
taken from the doc comments at
packages/lexical-extension/src/HMRExtension.ts:445-447 and
packages/lexical-extension/src/KeyboardShortcutsExtension.ts:256-266; the
@experimental tag is at KeyboardShortcutsExtension.ts:257.

…ShortcutsExtension to the included list

## Description

The `@lexical/extension` section of `extensions/included-extensions.md` is an
alphabetical list of the extensions that package ships. Two exported
extensions are missing from it:

- `HMRExtension` — preserves editor state, selection, editability and
  undo/redo history across Hot Module Replacement cycles.
- `KeyboardShortcutsExtension` — dispatches a table of keyboard shortcuts
  from a single compiled `KEY_DOWN_COMMAND` listener. It is marked
  `@experimental`, so its entry carries the same "(experimental)" marker the
  page already uses for other experimental extensions.

## Test plan

Documentation-only change (markdown is excluded from prettier via
`.prettierignore`), so the check is that the list matches the package's
exports.

### Before

```
$ grep -c "HMRExtension\|KeyboardShortcutsExtension" packages/lexical-website/docs/extensions/included-extensions.md
0

$ grep -n "HMRExtension\|KeyboardShortcutsExtension" packages/lexical-extension/src/index.ts
44:  HMRExtension,
65:  KeyboardShortcutsExtension,
```

Both are exported but undocumented.

### After

```
$ grep -n "HMRExtension\|KeyboardShortcutsExtension" packages/lexical-website/docs/extensions/included-extensions.md
44:- [HMRExtension](/docs/api/modules/lexical_extension#hmrextension) - Preserves editor state, selection, editability and undo/redo history across Hot Module Replacement (HMR) cycles
48:- [KeyboardShortcutsExtension](/docs/api/modules/lexical_extension#keyboardshortcutsextension) - Dispatches a table of keyboard shortcuts from a single compiled `KEY_DOWN_COMMAND` listener; the table is merged across the extension graph by name (experimental)
```

Both entries sit in the list's existing alphabetical order. Descriptions are
taken from the doc comments at
`packages/lexical-extension/src/HMRExtension.ts:445-447` and
`packages/lexical-extension/src/KeyboardShortcutsExtension.ts:256-266`; the
`@experimental` tag is at `KeyboardShortcutsExtension.ts:257`.
@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexical Ready Ready Preview Sep 23, 2026 5:48pm UTC
lexical-playground Ready Ready Preview Sep 23, 2026 5:48pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 23, 2026
@etrepum
etrepum added this pull request to the merge queue Sep 23, 2026
Merged via the queue into meta:main with commit c1b8ce0 Sep 23, 2026
42 checks passed
@etrepum etrepum mentioned this pull request Sep 28, 2026

This branch was successfully deployed

2 active deployments
Preview – lexical — 0b90e916 Deployed Sep 23, 2026 by vercel[bot]
Preview – lexical-playground — 0b90e916 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants