Skip to content

Commit f58887a

Browse files
chore(deps-dev): Migration for Storybook 9.0.10 (#1157)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aviv <[email protected]>
1 parent 22115af commit f58887a

Some content is hidden

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

41 files changed

+4786
-4183
lines changed

.github/workflows/validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 20
20+
node-version: 22
2121
- name: make sure no yarn.json is added
2222
run: |
2323
if [ -f yarn.json ]; then

.storybook/main.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@ import type { StorybookConfig } from '@storybook/react-vite'
22

33
const config: StorybookConfig = {
44
stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5-
addons: [
6-
'@storybook/addon-links',
7-
'@storybook/addon-essentials',
8-
'@storybook/addon-onboarding',
9-
'@storybook/addon-interactions',
10-
],
5+
6+
addons: ['@storybook/addon-links', '@storybook/addon-onboarding', '@storybook/addon-docs'],
7+
118
framework: {
129
name: '@storybook/react-vite',
1310
options: {},
1411
},
15-
docs: {
16-
autodocs: true,
17-
},
12+
1813
typescript: {
1914
reactDocgen: false,
2015
check: true,

.storybook/preview.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Preview } from '@storybook/react'
1+
import type { Preview } from '@storybook/react-vite'
22
import { Suspense, useEffect } from 'react'
33
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
44
import { BrowserRouter } from 'react-router'
@@ -38,6 +38,7 @@ const preview: Preview = {
3838
},
3939
},
4040
},
41+
4142
decorators: [
4243
(Story, context) => {
4344
const { locale, darkMode } = context.globals
@@ -56,6 +57,8 @@ const preview: Preview = {
5657
)
5758
},
5859
],
60+
61+
tags: ['autodocs'],
5962
}
6063

6164
export const globalTypes = {

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Pulled March 21, 2023
2-
FROM node:18@sha256:8d9a875ee427897ef245302e31e2319385b092f1c3368b497e89790f240368f5 as build
2+
FROM node:22 as build
33
WORKDIR /app
44
COPY . .
55
RUN npm ci
66
RUN npm run build
77
RUN npm run build-storybook -- -o dist/storybook
88

9-
# Pulled March 21, 2023
10-
FROM nginx@sha256:aa0afebbb3cfa473099a62c4b32e9b3fb73ed23f2a75a65ce1d4b4f55a5c2ef2
9+
FROM nginx
1110
COPY nginx-default.conf /etc/nginx/conf.d/default.conf
1211
COPY --from=build /app/dist /usr/share/nginx/html

0 commit comments

Comments
 (0)