Repository navigation
[lexical-website] Documentation Update: add HMRExtension and KeyboardShortcutsExtension to the included list - #9213
Merged
Conversation
…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`.
potatowagon
requested review from
acywatson,
etrepum,
fantactuka,
ivailop7 and
zurfyx
as code owners
September 23, 2026 17:46
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
etrepum
approved these changes
Sep 23, 2026
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
@lexical/extensionsection ofextensions/included-extensions.mdis analphabetical list of the extensions that package ships. Two exported
extensions are missing from it:
HMRExtension— preserves editor state, selection, editability andundo/redo history across Hot Module Replacement cycles.
KeyboardShortcutsExtension— dispatches a table of keyboard shortcutsfrom a single compiled
KEY_DOWN_COMMANDlistener. It is marked@experimental, so its entry carries the same "(experimental)" marker thepage 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'sexports.
Before
Both are exported but undocumented.
After
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-447andpackages/lexical-extension/src/KeyboardShortcutsExtension.ts:256-266; the@experimentaltag is atKeyboardShortcutsExtension.ts:257.