Skip to content

Commit 3f2f343

Browse files
authored
Merge pull request #235 from balena-io-modules/upgrade-storybook-9
Upgrade `storybook` dependencies to v9.0.0
2 parents 4c0b7a8 + e3144c3 commit 3f2f343

63 files changed

Lines changed: 590 additions & 2196 deletions

File tree

Some content is hidden

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

.storybook/main.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ import type { StorybookConfig } from '@storybook/react-webpack5';
33
const config: StorybookConfig = {
44
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
55
addons: [
6-
'@storybook/addon-links',
7-
'@storybook/addon-essentials',
8-
'@storybook/addon-onboarding',
9-
'@storybook/addon-interactions',
10-
'@storybook/addon-webpack5-compiler-swc',
11-
],
6+
'@storybook/addon-links',
7+
'@storybook/addon-onboarding',
8+
'@storybook/addon-webpack5-compiler-swc',
9+
'@storybook/addon-docs'
10+
],
1211
framework: {
1312
name: '@storybook/react-webpack5',
1413
options: {},

.storybook/manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { addons } from '@storybook/manager-api';
2-
import { create } from '@storybook/theming';
1+
import { addons } from 'storybook/manager-api';
2+
import { create } from 'storybook/theming';
33
import { color, typography } from '@balena/design-tokens';
44

55
import '@balena/design-tokens/build/css/tokens.css';

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Preview } from '@storybook/react';
2+
import { Preview } from '@storybook/react-webpack5';
33
import { AnalyticsContextProvider } from '../src/contexts/AnalyticsContext';
44
import { ScopedCssBaseline, ThemeProvider } from '@mui/material';
55
import { theme } from '../src/theme';

package-lock.json

Lines changed: 512 additions & 2116 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"jest": "^29.7.0",
4040
"lodash": "^4.17.21",
4141
"notistack": "^3.0.1",
42+
"qs": "^6.14.0",
4243
"react": "^18.2.0",
4344
"react-dom": "^18.2.0",
4445
"react-dropzone": "^14.2.3",
@@ -55,17 +56,11 @@
5556
},
5657
"devDependencies": {
5758
"@balena/lint": "^9.3.0",
58-
"@storybook/addon-essentials": "^8.6.12",
59-
"@storybook/addon-interactions": "^8.6.12",
60-
"@storybook/addon-links": "^8.6.12",
61-
"@storybook/addon-onboarding": "^8.6.12",
59+
"@storybook/addon-docs": "^9.0.0",
60+
"@storybook/addon-links": "^9.0.0",
61+
"@storybook/addon-onboarding": "^9.0.0",
6262
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
63-
"@storybook/blocks": "^8.6.12",
64-
"@storybook/manager-api": "^8.6.12",
65-
"@storybook/react": "^8.6.12",
66-
"@storybook/react-webpack5": "^8.6.12",
67-
"@storybook/test": "^8.6.12",
68-
"@storybook/theming": "^8.6.12",
63+
"@storybook/react-webpack5": "^9.0.0",
6964
"@types/color": "^4.2.0",
7065
"@types/color-hash": "^2.0.0",
7166
"@types/lodash": "^4.17.14",
@@ -75,11 +70,11 @@
7570
"@types/react-dom": "^18.0.11",
7671
"@types/react-helmet": "^6.1.6",
7772
"@types/zxcvbn": "^4.4.4",
78-
"eslint-plugin-storybook": "^0.12.0",
73+
"eslint-plugin-storybook": "^9.0.0",
7974
"husky": "^9.0.0",
8075
"lint-staged": "^15.0.0",
8176
"prop-types": "^15.8.1",
82-
"storybook": "^8.6.12",
77+
"storybook": "^9.0.0",
8378
"ts-loader": "^9.5.1",
8479
"webpack": "^5.88.2"
8580
},
@@ -139,5 +134,8 @@
139134
"homepage": "https://github.com/balena-io/ui-shared-components#readme",
140135
"versionist": {
141136
"publishedAt": "2025-05-22T15:32:26.822Z"
137+
},
138+
"overrides": {
139+
"storybook": "$storybook"
142140
}
143141
}

src/components/AnimatedText/AnimatedText.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from '@storybook/react';
1+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
22
import { AnimatedText } from '.';
33

44
const meta = {

src/components/Announcement/Announcement.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from '@storybook/react';
1+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
22
import { Announcement } from '.';
33

44
const meta = {

src/components/ButtonWithTracking/ButtonWithTracking.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from '@storybook/react';
1+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
22
import { ButtonWithTracking } from '.';
33

44
const meta = {

src/components/Callout/Callout.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from '@storybook/react';
1+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
22
import { Callout } from '.';
33

44
const meta = {

src/components/Chip/Chip.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from '@storybook/react';
1+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
22
import { Chip } from '.';
33
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
44
import { faWarning } from '@fortawesome/free-solid-svg-icons';

0 commit comments

Comments
 (0)