Skip to content

Commit

Permalink
build(storybook): upgrade to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Apr 8, 2024
1 parent d08f49c commit b2f5b1b
Show file tree
Hide file tree
Showing 6 changed files with 2,156 additions and 2,069 deletions.
4 changes: 4 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const config: StorybookConfig = {
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-webpack5-compiler-swc',
],
framework: {
name: '@storybook/react-webpack5',
Expand All @@ -34,6 +35,9 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
typescript: {
// reactDocgen: 'react-docgen-typescript',
},
};

export default config;
1 change: 0 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const preview: Preview = {
},
},
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
backgrounds: { disable: true }, // Use colorMode instead
options: {
showPanel: true, // default to showing the controls panel
Expand Down
158 changes: 70 additions & 88 deletions i18ntokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 183,
"line": 176,
"column": 8,
"index": 5301
"index": 5004
},
"end": {
"line": 186,
"line": 179,
"column": 9,
"index": 5410
"index": 5113
}
},
"filepath": "src/components/bottom_bar/bottom_bar.tsx"
Expand All @@ -239,14 +239,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 213,
"line": 206,
"column": 14,
"index": 6351
"index": 6054
},
"end": {
"line": 217,
"line": 210,
"column": 16,
"index": 6624
"index": 6327
}
},
"filepath": "src/components/bottom_bar/bottom_bar.tsx"
Expand All @@ -257,14 +257,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 219,
"line": 212,
"column": 14,
"index": 6657
"index": 6360
},
"end": {
"line": 222,
"line": 215,
"column": 16,
"index": 6854
"index": 6557
}
},
"filepath": "src/components/bottom_bar/bottom_bar.tsx"
Expand All @@ -275,14 +275,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 167,
"line": 170,
"column": 29,
"index": 4882
"index": 4821
},
"end": {
"line": 173,
"line": 176,
"column": 5,
"index": 5215
"index": 5154
}
},
"filepath": "src/components/breadcrumbs/_breadcrumb_content.tsx"
Expand Down Expand Up @@ -329,14 +329,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 92,
"column": 6,
"index": 2657
"line": 89,
"column": 8,
"index": 2542
},
"end": {
"line": 95,
"column": 7,
"index": 2756
"line": 92,
"column": 9,
"index": 2647
}
},
"filepath": "src/components/call_out/call_out.tsx"
Expand Down Expand Up @@ -403,12 +403,12 @@
"start": {
"line": 37,
"column": 20,
"index": 1192
"index": 1214
},
"end": {
"line": 41,
"column": 3,
"index": 1328
"index": 1350
}
},
"filepath": "src/components/code/code_block_annotations.tsx"
Expand Down Expand Up @@ -473,14 +473,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 163,
"line": 162,
"column": 27,
"index": 5426
"index": 5418
},
"end": {
"line": 166,
"line": 165,
"column": 3,
"index": 5496
"index": 5488
}
},
"filepath": "src/components/collapsible_nav_beta/collapsible_nav_beta.tsx"
Expand All @@ -491,14 +491,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 38,
"line": 37,
"column": 28,
"index": 1478
"index": 1465
},
"end": {
"line": 41,
"line": 40,
"column": 3,
"index": 1564
"index": 1551
}
},
"filepath": "src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.tsx"
Expand All @@ -509,14 +509,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 42,
"line": 41,
"column": 30,
"index": 1596
"index": 1583
},
"end": {
"line": 45,
"line": 44,
"column": 3,
"index": 1686
"index": 1673
}
},
"filepath": "src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.tsx"
Expand All @@ -527,14 +527,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 46,
"line": 45,
"column": 26,
"index": 1714
"index": 1701
},
"end": {
"line": 49,
"line": 48,
"column": 3,
"index": 1796
"index": 1783
}
},
"filepath": "src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.tsx"
Expand All @@ -545,14 +545,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 50,
"line": 49,
"column": 27,
"index": 1825
"index": 1812
},
"end": {
"line": 53,
"line": 52,
"column": 3,
"index": 1909
"index": 1896
}
},
"filepath": "src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.tsx"
Expand Down Expand Up @@ -4590,37 +4590,37 @@
"filepath": "src/components/filter_group/filter_button.tsx"
},
{
"token": "euiFlyout.closeAriaLabel",
"token": "euiFlyoutCloseButton.ariaLabel",
"defString": "Close this dialog",
"highlighting": "string",
"loc": {
"start": {
"line": 308,
"column": 8,
"index": 9762
"line": 34,
"column": 20,
"index": 1345
},
"end": {
"line": 308,
"column": 78,
"index": 9832
"line": 37,
"column": 3,
"index": 1422
}
},
"filepath": "src/components/flyout/flyout.tsx"
"filepath": "src/components/flyout/_flyout_close_button.tsx"
},
{
"token": "euiFlyout.screenReaderModalDialog",
"defString": "You are in a modal dialog. Press Escape or tap/click outside the dialog on the shadowed overlay to close.",
"highlighting": "string",
"loc": {
"start": {
"line": 382,
"column": 12,
"index": 12318
"line": 336,
"column": 14,
"index": 10903
},
"end": {
"line": 385,
"column": 14,
"index": 12527
"line": 339,
"column": 16,
"index": 11118
}
},
"filepath": "src/components/flyout/flyout.tsx"
Expand All @@ -4631,14 +4631,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 387,
"column": 12,
"index": 12556
"line": 341,
"column": 14,
"index": 11151
},
"end": {
"line": 390,
"column": 14,
"index": 12728
"line": 344,
"column": 16,
"index": 11329
}
},
"filepath": "src/components/flyout/flyout.tsx"
Expand All @@ -4649,14 +4649,14 @@
"highlighting": "string",
"loc": {
"start": {
"line": 393,
"column": 12,
"index": 12799
"line": 347,
"column": 14,
"index": 11406
},
"end": {
"line": 396,
"column": 14,
"index": 12986
"line": 350,
"column": 16,
"index": 11599
}
},
"filepath": "src/components/flyout/flyout.tsx"
Expand Down Expand Up @@ -5129,24 +5129,6 @@
},
"filepath": "src/components/loading/_loading_strings.tsx"
},
{
"token": "euiLoadingChart.ariaLabel",
"defString": "Loading",
"highlighting": "string",
"loc": {
"start": {
"line": 37,
"column": 27,
"index": 1134
},
"end": {
"line": 37,
"column": 77,
"index": 1184
}
},
"filepath": "src/components/loading/loading_chart.tsx"
},
{
"token": "euiMark.highlightStart",
"defString": "highlight start",
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
],
"dependencies": {
"@hello-pangea/dnd": "^16.3.0",
"@storybook/test": "^8.0.5",
"@types/lodash": "^4.14.202",
"@types/numeral": "^2.0.5",
"@types/react-window": "^1.8.8",
Expand Down Expand Up @@ -118,13 +119,13 @@
"@emotion/react": "^11.11.0",
"@faker-js/faker": "^8.0.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@storybook/addon-essentials": "^7.5.2",
"@storybook/addon-interactions": "^7.5.2",
"@storybook/addon-links": "^7.5.2",
"@storybook/blocks": "^7.5.2",
"@storybook/react": "^7.5.2",
"@storybook/react-webpack5": "^7.5.2",
"@storybook/testing-library": "^0.2.2",
"@storybook/addon-essentials": "^8.0.5",
"@storybook/addon-interactions": "^8.0.5",
"@storybook/addon-links": "^8.0.5",
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
"@storybook/blocks": "^8.0.5",
"@storybook/react": "^8.0.5",
"@storybook/react-webpack5": "^8.0.5",
"@svgr/core": "8.0.0",
"@svgr/plugin-jsx": "^8.0.1",
"@svgr/plugin-svgo": "^8.0.1",
Expand Down Expand Up @@ -188,7 +189,7 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-storybook": "^0.8.0",
"expose-gc": "^1.0.0",
"file-loader": "^6.1.0",
"findup": "^0.1.5",
Expand Down Expand Up @@ -233,7 +234,7 @@
"sass-loader": "^13.2.0",
"shelljs": "^0.8.4",
"start-server-and-test": "^1.11.3",
"storybook": "^7.5.2",
"storybook": "^8.0.5",
"style-loader": "^3.3.1",
"stylelint": "^15.7.0",
"stylelint-config-prettier-scss": "^1.0.0",
Expand Down
Loading

0 comments on commit b2f5b1b

Please sign in to comment.