Skip to content

fix(ui): re-export PublicToolbarItemId from superdoc/ui (SD-2920)#3135

Merged
caio-pizzol merged 1 commit intomainfrom
caio/fix-publictoolbaritemid-export
May 5, 2026
Merged

fix(ui): re-export PublicToolbarItemId from superdoc/ui (SD-2920)#3135
caio-pizzol merged 1 commit intomainfrom
caio/fix-publictoolbaritemid-export

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

The Custom UI toolbar-and-commands docs page 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 the documented import couldn't actually find it from `superdoc/ui`.

`skipLibCheck: true` on most consumer tsconfigs masked the broken re-export from the typecheck signal. The dist now exposes the type through the same barrel as `BUILT_IN_COMMAND_IDS`, matching what the docs already promise.

  • Linear: SD-2920
  • One-line type re-export. No runtime change.
  • Verified via `pnpm --filter superdoc build`; dist/super-editor/src/ui/index.d.ts now contains the type re-export.

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.
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 5, 2026 00:00
@linear
Copy link
Copy Markdown

linear Bot commented May 5, 2026

@caio-pizzol caio-pizzol merged commit 1a3b7dd into main May 5, 2026
23 of 24 checks passed
@caio-pizzol caio-pizzol deleted the caio/fix-publictoolbaritemid-export branch May 5, 2026 00:01
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.42

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in vscode-ext v2.3.0-next.86

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in @superdoc-dev/react v1.2.0-next.84

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in superdoc v1.30.0-next.43

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in superdoc-cli v0.8.0-next.60

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in superdoc-sdk v1.8.0-next.45

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants