0

chore(deps): update storybook to v7

This commit is contained in:
Gabe Kangas 2023-10-25 20:55:49 -07:00
parent f2524c8849
commit 349a23c690
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
3 changed files with 42876 additions and 49084 deletions

View File

@ -1,16 +1,15 @@
module.exports = {
core: {
builder: 'webpack5',
},
features: {
previewMdx2: true,
},
stories: [
'../.storybook/stories-category-doc-pages/**/*.stories.mdx',
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
'../components/**/*.stories.@(js|jsx|ts|tsx)',
'../pages/**/*.stories.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
@ -19,7 +18,10 @@ module.exports = {
'@storybook/addon-a11y',
'storybook-addon-designs',
'storybook-addon-fetch-mock',
'@storybook/addon-mdx-gfm',
'@storybook/addon-styling-webpack'
],
webpackFinal: async (config, { configType }) => {
// @see https://github.com/storybookjs/storybook/issues/9070
const fileLoaderRule = config.module.rules.find(rule => rule.test && rule.test.test('.svg'));
@ -47,6 +49,15 @@ module.exports = {
return config;
},
framework: '@storybook/react',
framework: {
name: '@storybook/nextjs',
options: {}
},
staticDirs: ['../public', '../../static', './story-assets'],
docs: {
autodocs: true
}
};

23096
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,8 @@
"build": "next build && next export",
"start": "next start",
"lint": "eslint --fix --ext .js,.ts,.tsx types/ pages/ components/ stories/",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"build-styles": "cd ./style-definitions && style-dictionary build && ./build.sh && cd -",
"test": "jest",
"format": "prettier --write **/*.{js,ts,jsx,tsx,css,md}"
@ -62,19 +62,20 @@
"devDependencies": {
"@babel/core": "7.23.2",
"@mdx-js/react": "2.3.0",
"@storybook/addon-a11y": "6.5.16",
"@storybook/addon-actions": "6.5.16",
"@storybook/addon-docs": "6.5.16",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-links": "6.5.16",
"@storybook/addon-a11y": "7.5.1",
"@storybook/addon-actions": "7.5.1",
"@storybook/addon-docs": "7.5.1",
"@storybook/addon-essentials": "7.5.1",
"@storybook/addon-links": "7.5.1",
"@storybook/addon-mdx-gfm": "^7.5.1",
"@storybook/addon-postcss": "2.0.0",
"@storybook/addon-viewport": "6.5.16",
"@storybook/builder-webpack5": "6.5.16",
"@storybook/cli": "6.5.16",
"@storybook/manager-webpack5": "6.5.16",
"@storybook/mdx2-csf": "0.0.3",
"@storybook/addon-styling-webpack": "^0.0.5",
"@storybook/addon-viewport": "7.5.1",
"@storybook/cli": "7.5.1",
"@storybook/mdx2-csf": "1.1.0",
"@storybook/nextjs": "^7.5.1",
"@storybook/preset-scss": "1.0.3",
"@storybook/react": "6.5.16",
"@storybook/react": "7.5.1",
"@storybook/testing-library": "0.2.2",
"@svgr/webpack": "8.1.0",
"@types/chart.js": "2.9.39",
@ -117,7 +118,7 @@
"prettier": "3.0.3",
"sass": "1.69.4",
"sass-loader": "13.3.2",
"sb": "6.5.16",
"storybook": "^7.5.1",
"storybook-addon-designs": "6.3.1",
"storybook-addon-fetch-mock": "1.0.1",
"storybook-preset-less": "1.1.3",