-
Notifications
You must be signed in to change notification settings - Fork 6
fix(security): update storybook to 8 #400
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
Changes from all commits
e255b08
0d037bb
cd63e24
a3a6295
dd0248e
a69cae1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| !.storybook | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,24 +3,28 @@ import turbosnap from 'vite-plugin-turbosnap'; | |
| module.exports = { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Most of the changes in this file were done by the migration script. |
||
| stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
| staticDirs: ['../src/assets/'], | ||
|
|
||
| addons: [ | ||
| '@storybook/addon-links', | ||
| '@storybook/addon-essentials', | ||
| '@storybook/addon-interactions', | ||
| '@storybook/addon-a11y', | ||
| 'display-element-css' | ||
| '@chromatic-com/storybook', | ||
| '@storybook/addon-mdx-gfm' | ||
| ], | ||
|
|
||
| docs: { | ||
| autodocs: 'tag', | ||
| defaultName: 'Overview' | ||
| defaultName: 'Overview', | ||
| autodocs: true | ||
| }, | ||
|
|
||
| framework: { | ||
| name: '@storybook/react-vite', | ||
| options: {} | ||
| }, | ||
| features: { | ||
| storyStoreV7: true | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. storyStoreV7 not supported by v8 of storybook, and is no longer needed. |
||
| }, | ||
|
|
||
| features: {}, | ||
|
|
||
| async viteFinal(config, { configType }) { | ||
| config.base = process.env.BASE_PATH || config.base; | ||
|
|
||
|
|
@@ -38,5 +42,9 @@ module.exports = { | |
|
|
||
| // return the customized config | ||
| return config; | ||
| }, | ||
|
|
||
| typescript: { | ||
| reactDocgen: 'react-docgen-typescript' | ||
| } | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ export const preview = { | |
| ] | ||
| } | ||
| }, | ||
| actions: { argTypesRegex: '^on[A-Z].*' }, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We didn't use the ability to implicitly add jest spies and its no longer supported in v8, and I ran our stories through the suggested script |
||
| actions: {}, | ||
| controls: { | ||
| matchers: { | ||
| color: /(background|color)$/i, | ||
|
|
||
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.
Added for the eslint storybook configuration.