-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Storybook 8 #232
Conversation
- rename "register" directory to "manager" - remove root *.js entries for compiled entries to dist instead, like src/register-panel.ts - set correct export maps for exported entries - upgrade packages - set optional peer dependencies needed when using the blocks from this package
"peerDependencies": { | ||
"@storybook/addon-docs": "^8.0.0-alpha.10 || ^8.0.0", | ||
"@storybook/components": "^8.0.0-alpha.10 || ^8.0.0", | ||
"@storybook/manager-api": "^8.0.0-alpha.10 || ^8.0.0", | ||
"@storybook/preview-api": "^8.0.0-alpha.10 || ^8.0.0", | ||
"@storybook/theming": "^8.0.0-alpha.10 || ^8.0.0", | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
"@storybook/blocks": "^8.0.0", | ||
"@storybook/components": "^8.0.0", | ||
"@storybook/theming": "^8.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are only needed by users if they intend to use the doc blocks this package provides.
@JReinhold: Out of the 13 reported issues, how many would you consider helpful and valuable? And a second question: I think, most errors might not have been reported if TypeScript had been set up stricter (strict mode, for example). Is that the case? |
@valentinpalkovic quickly looking through them, they would all have been caught by a stricter TypeScript mode, so I don't find this specific scenario useful, except for anything else than "you should make your TS config more strict". |
I have tried 8.0.0--canary.232.785af00.0 and it works fine afaics. ❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍
Closes #231, #229
This PR does a lot of things:
examples
andexamples-tab
Storybooks into a single Storybook, while still maintaining their separation of/
for examples and/tab/
for tab examplesTodo
📦 Published PR as canary version:
8.0.0--canary.232.a463deb.0
✨ Test out this PR locally via:
npm install @storybook/addon-designs@8.0.0--canary.232.a463deb.0 # or yarn add @storybook/addon-designs@8.0.0--canary.232.a463deb.0