Skip to content

Chore/storybook 10 - #289

Open
seanrcollings wants to merge 6 commits into
mainfrom
chore/storybook-10
Open

seanrcollings wants to merge 6 commits into
mainfrom
chore/storybook-10

Conversation

@seanrcollings

Copy link
Copy Markdown
Contributor

Migrate to Storybook 10

seanrcollings and others added 6 commits November 23, 2026 15:59
Run the storybook upgrade automigrations (consolidated imports,
addon-essentials folded into core, framework-based imports) and
clean up what they left behind: drop legacy v8 packages, migrate
remaining @storybook/blocks and @storybook/react imports, remove the
auto-added addon-mcp, simplify main.ts, and prune stale vitest
optimizeDeps excludes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Storybook 10's browser internals import CommonJS packages (semver,
use-sync-external-store). Excluding "storybook" from optimizeDeps made
Vite serve those raw, so the preview failed with "semver/index.js does
not provide an export named 'default'". The remaining exclusions were
stale (removed packages, an uninstalled addon, a typo).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The cssprops generator dates from when theme variables lived in CSS and
had to be parsed. They're now TS objects in styles/theme/component.ts,
so stories pass those directly (e.g. cssprops: { dropdown, listbox })
and CssVariablesTable resolves defaults with toCssValue at render time.

Unknown token groups now fail the build instead of silently rendering
an empty table. Removes bin/update-css-props.mts, the generated file,
the getCssProps helper and the storybook:cssprops script, plus the
unused bin/update-storybook-index.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The argType helpers are only used by atomic-elements stories and import
that package's internals, so they now live in
packages/atomic-elements/storybook. The @sb alias points there, which
also fixes the TS6059 rootDir errors from stories importing a file
outside the package.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant