Skip to content

Commit 11451a9

Browse files
chore(react): 1.1.1 [skip ci]
Now I have enough information to write the release notes. Based on my analysis: **v1.1.1 is a patch release fixing TypeScript type definitions for the context menu system.** The main changes are: 1. Define proper TypeScript types for context menu configuration (ContextMenuContext, ContextMenuItem, ContextMenuSection, ContextMenuConfig) 2. Fix action callback signature to accept both editor and context parameters 3. Allow menuProvider to return null/undefined 4. Simplify internal ChainedCommands type definition 5. Re-export new types from main package 6. Add consumer TypeScript tests Here are the release notes: --- ### Fixes - **Context menu types** — Define TypeScript types for `ContextMenuContext`, `ContextMenuItem`, `ContextMenuSection`, and `ContextMenuConfig` with correct shapes derived from runtime behavior. - **Menu action callback signature** — `action` receives both `(editor, context)` parameters, not just `editor`. Extract full `ContextMenuContext` typedef with all runtime fields (documentMode, activeMarks, isInTable, etc.). - **MenuProvider return type** — `menuProvider` callback can now return `null` or `undefined` to fall back to original sections, matching the runtime behavior. ---
1 parent 469c6f7 commit 11451a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superdoc-dev/react",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Official React wrapper for the SuperDoc document editor",
55
"type": "module",
66
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)