Skip to content

Commit 1a3b7dd

Browse files
authored
fix(ui): re-export PublicToolbarItemId from superdoc/ui (SD-2920) (#3135)
The toolbar-and-commands docs page (apps/docs/editor/custom-ui/ toolbar-and-commands.mdx) tells consumers to import PublicToolbarItemId from superdoc/ui as the typed source of truth for command ids. SD-2920 shipped BUILT_IN_COMMAND_IDS at runtime through that path but never re-exported the derived type, so consumers writing `import type { PublicToolbarItemId } from 'superdoc/ui'` couldn't actually find it from the documented entry. They had to dip into superdoc/headless-toolbar instead. skipLibCheck: true on most consumer tsconfigs masked the broken re-export from typecheck signal. The dist now exposes the type through the same barrel as BUILT_IN_COMMAND_IDS, matching what the docs already promise.
1 parent e627b28 commit 1a3b7dd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/super-editor/src/ui/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
export { createSuperDocUI } from './create-super-doc-ui.js';
2020
export { shallowEqual } from './equality.js';
2121
export { BUILT_IN_COMMAND_IDS } from '../headless-toolbar/types.js';
22+
export type { PublicToolbarItemId } from '../headless-toolbar/types.js';
2223

2324
// Re-export the document-side shapes the controller surfaces so
2425
// consumers can type their components without reaching into the

0 commit comments

Comments
 (0)