Skip to content

Commit bbb49d6

Browse files
authored
Upgrade Storybook@9, [email protected], [email protected] LTS (#1357)
Brings Storybook to 9.x which has a lot of improvements we could be utilizing, but also one further for other upgrades. Also remove dead, unused Figma extension. ``` Storybook 9 improves performance, compatibility, and stability. Its key features include: 🔋 Storybook Test, a batteries-included testing tool in your Storybook 🧪 Component testing ♿️ Accessibility testing 🛡️ Test coverage 🪶 48% lighter bundle ⚛️ React Native for device and web 🏷️ Tags-based story organization ``` Also upgrades to the latest LTS Node and Yarn releases (I have a matching update for the RS after this is cut at 7.0) Fixes js-yaml dependabots * https://github.com/user-interviews/ui-design-system/security/dependabot/138 * https://github.com/user-interviews/ui-design-system/security/dependabot/139 * https://github.com/user-interviews/ui-design-system/security/dependabot/140
1 parent fcd74b6 commit bbb49d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+692
-1089
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ yarn-error.log*
3636
*.mp4
3737
/DS/.idea
3838
/junit.xml
39+
/debug-storybook.log

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.14.0
1+
24.11.1

.storybook/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config = {
77
configFile: true
88
}
99
}
10-
}, '@storybook/addon-a11y', '@storybook/addon-actions', '@storybook/addon-backgrounds', '@storybook/addon-controls', '@storybook/addon-links', '@storybook/addon-storysource', '@storybook/addon-webpack5-compiler-babel', ({
10+
}, '@storybook/addon-a11y', '@storybook/addon-links', '@storybook/addon-webpack5-compiler-babel', ({
1111
name: "@storybook/addon-styling-webpack",
1212

1313
options: {
@@ -28,8 +28,7 @@ const config = {
2828
}
2929
})],
3030
docs: {
31-
autodocs: true,
32-
defaultName: 'Docs',
31+
defaultName: 'Docs'
3332
},
3433
stories: [
3534
'../stories/Intro.stories.jsx',

.storybook/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/manager-api';
1+
import { addons } from 'storybook/manager-api';
22

33
import userInterviewsTheme from './user-interviews-theme';
44

.storybook/preview.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,46 @@ const preview = {
1111
</div>
1212
),
1313
],
14+
1415
parameters: {
1516
backgrounds: {
16-
default: '--ux-white',
17-
values: [
18-
{
17+
options: {
18+
"--ux-white": {
1919
name: '--ux-white',
2020
value: colors.UX_WHITE,
2121
},
22-
{
22+
23+
"--ux-cream": {
2324
name: '--ux-cream',
2425
value: colors.UX_CREAM,
2526
},
26-
{
27+
28+
"--ux-emerald-600": {
2729
name: '--ux-emerald-600',
2830
value: colors.UX_EMERALD_600,
2931
},
30-
{
32+
33+
"--ux-neutral-800": {
3134
name: '--ux-neutral-800',
3235
value: colors.UX_NEUTRAL_800,
3336
}
34-
],
37+
}
3538
},
3639
options: {
3740
storySort: {
3841
method: 'alphabetical',
3942
order: ['Foundations', 'Components'],
4043
},
4144
},
42-
}
45+
},
46+
47+
initialGlobals: {
48+
backgrounds: {
49+
value: '--ux-white'
50+
}
51+
},
52+
53+
tags: ['autodocs']
4354
};
4455

4556
export default preview;

.storybook/user-interviews-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { create } from '@storybook/theming';
1+
import { create } from 'storybook/theming';
22
import UILogo from '../public/ui-design-system-light.svg';
33

44
export default create({

0 commit comments

Comments
 (0)