chore(deps): update storybook to v7

This commit is contained in:
Gabe Kangas 2023-10-25 20:55:49 -07:00
parent 8779cd502f
commit d0d3b84afa
3 changed files with 42876 additions and 49084 deletions

View File

@ -1,16 +1,15 @@
module.exports = { module.exports = {
core: {
builder: 'webpack5',
},
features: { features: {
previewMdx2: true, previewMdx2: true,
}, },
stories: [ stories: [
'../.storybook/stories-category-doc-pages/**/*.stories.mdx', '../.storybook/stories-category-doc-pages/**/*.stories.mdx',
'../stories/**/*.stories.@(js|jsx|ts|tsx)', '../stories/**/*.stories.@(js|jsx|ts|tsx)',
'../components/**/*.stories.@(js|jsx|ts|tsx)', '../components/**/*.stories.@(js|jsx|ts|tsx)',
'../pages/**/*.stories.@(js|jsx|ts|tsx)', '../pages/**/*.stories.@(js|jsx|ts|tsx)',
], ],
addons: [ addons: [
'@storybook/addon-links', '@storybook/addon-links',
'@storybook/addon-essentials', '@storybook/addon-essentials',
@ -19,7 +18,10 @@ module.exports = {
'@storybook/addon-a11y', '@storybook/addon-a11y',
'storybook-addon-designs', 'storybook-addon-designs',
'storybook-addon-fetch-mock', 'storybook-addon-fetch-mock',
'@storybook/addon-mdx-gfm',
'@storybook/addon-styling-webpack'
], ],
webpackFinal: async (config, { configType }) => { webpackFinal: async (config, { configType }) => {
// @see https://github.com/storybookjs/storybook/issues/9070 // @see https://github.com/storybookjs/storybook/issues/9070
const fileLoaderRule = config.module.rules.find(rule => rule.test && rule.test.test('.svg')); const fileLoaderRule = config.module.rules.find(rule => rule.test && rule.test.test('.svg'));
@ -47,6 +49,15 @@ module.exports = {
return config; return config;
}, },
framework: '@storybook/react',
framework: {
name: '@storybook/nextjs',
options: {}
},
staticDirs: ['../public', '../../static', './story-assets'], 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", "build": "next build && next export",
"start": "next start", "start": "next start",
"lint": "eslint --fix --ext .js,.ts,.tsx types/ pages/ components/ stories/", "lint": "eslint --fix --ext .js,.ts,.tsx types/ pages/ components/ stories/",
"storybook": "start-storybook -p 6006", "storybook": "storybook dev -p 6006",
"build-storybook": "build-storybook", "build-storybook": "storybook build",
"build-styles": "cd ./style-definitions && style-dictionary build && ./build.sh && cd -", "build-styles": "cd ./style-definitions && style-dictionary build && ./build.sh && cd -",
"test": "jest", "test": "jest",
"format": "prettier --write **/*.{js,ts,jsx,tsx,css,md}" "format": "prettier --write **/*.{js,ts,jsx,tsx,css,md}"
@ -62,19 +62,20 @@
"devDependencies": { "devDependencies": {
"@babel/core": "7.23.2", "@babel/core": "7.23.2",
"@mdx-js/react": "2.3.0", "@mdx-js/react": "2.3.0",
"@storybook/addon-a11y": "6.5.16", "@storybook/addon-a11y": "7.5.1",
"@storybook/addon-actions": "6.5.16", "@storybook/addon-actions": "7.5.1",
"@storybook/addon-docs": "6.5.16", "@storybook/addon-docs": "7.5.1",
"@storybook/addon-essentials": "6.5.16", "@storybook/addon-essentials": "7.5.1",
"@storybook/addon-links": "6.5.16", "@storybook/addon-links": "7.5.1",
"@storybook/addon-mdx-gfm": "^7.5.1",
"@storybook/addon-postcss": "2.0.0", "@storybook/addon-postcss": "2.0.0",
"@storybook/addon-viewport": "6.5.16", "@storybook/addon-styling-webpack": "^0.0.5",
"@storybook/builder-webpack5": "6.5.16", "@storybook/addon-viewport": "7.5.1",
"@storybook/cli": "6.5.16", "@storybook/cli": "7.5.1",
"@storybook/manager-webpack5": "6.5.16", "@storybook/mdx2-csf": "1.1.0",
"@storybook/mdx2-csf": "0.0.3", "@storybook/nextjs": "^7.5.1",
"@storybook/preset-scss": "1.0.3", "@storybook/preset-scss": "1.0.3",
"@storybook/react": "6.5.16", "@storybook/react": "7.5.1",
"@storybook/testing-library": "0.2.2", "@storybook/testing-library": "0.2.2",
"@svgr/webpack": "8.1.0", "@svgr/webpack": "8.1.0",
"@types/chart.js": "2.9.39", "@types/chart.js": "2.9.39",
@ -117,7 +118,7 @@
"prettier": "3.0.3", "prettier": "3.0.3",
"sass": "1.69.4", "sass": "1.69.4",
"sass-loader": "13.3.2", "sass-loader": "13.3.2",
"sb": "6.5.16", "storybook": "^7.5.1",
"storybook-addon-designs": "6.3.1", "storybook-addon-designs": "6.3.1",
"storybook-addon-fetch-mock": "1.0.1", "storybook-addon-fetch-mock": "1.0.1",
"storybook-preset-less": "1.1.3", "storybook-preset-less": "1.1.3",