Skip to content

Commit a80369e

Browse files
author
jerrywu
committed
feat: storybook 8
1 parent 3db6c14 commit a80369e

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

Diff for: package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383
"@commitlint/cli": "^19.2.0",
8484
"@commitlint/config-conventional": "^19.1.0",
8585
"@rollup/plugin-babel": "^6.0.4",
86-
"@storybook/addon-essentials": "^7.6.17",
87-
"@storybook/addon-interactions": "^7.6.17",
88-
"@storybook/addon-links": "^7.6.17",
89-
"@storybook/addon-onboarding": "^1.0.11",
90-
"@storybook/blocks": "^7.6.17",
91-
"@storybook/react": "^7.6.17",
92-
"@storybook/react-vite": "^7.6.17",
93-
"@storybook/testing-library": "^0.2.2",
86+
"@storybook/addon-essentials": "^8.0.0",
87+
"@storybook/addon-interactions": "^8.0.0",
88+
"@storybook/addon-links": "^8.0.0",
89+
"@storybook/addon-onboarding": "^8.0.0",
90+
"@storybook/blocks": "^8.0.0",
91+
"@storybook/react": "^8.0.0",
92+
"@storybook/react-vite": "^8.0.0",
93+
"@storybook/test": "^8.0.0",
9494
"@swc/core": "^1.4.8",
9595
"@testing-library/jest-dom": "^6.4.2",
9696
"@testing-library/react": "^14.2.1",
@@ -130,7 +130,7 @@
130130
"react-element-to-jsx-string": "^15.0.0",
131131
"rimraf": "^5.0.5",
132132
"sass": "^1.72.0",
133-
"storybook": "^7.6.17",
133+
"storybook": "^8.0.0",
134134
"stylelint": "^15.11.0",
135135
"stylelint-config-standard": "^34.0.0",
136136
"tsup": "^8.0.2",

Diff for: src/stories/Header.stories.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export const LoggedIn: Story = {
2121
user: {
2222
name: 'Jane Doe',
2323
},
24+
onLogin: () => {},
25+
onLogout: () => {},
26+
onCreateAccount: () => {},
2427
},
2528
};
2629

27-
export const LoggedOut: Story = {};
30+
export const LoggedOut = {} as Story;

Diff for: src/stories/Page.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Meta, StoryObj } from '@storybook/react';
2-
import { within, userEvent } from '@storybook/testing-library';
2+
import { within, userEvent } from '@storybook/test';
33

44
import { Page } from './Page';
55

0 commit comments

Comments
 (0)