Commit 11451a9
committed
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments