@storybook/nextjs 8.0.0-rc.3 → 8.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.5",
|
|
4
4
|
"description": "Storybook for Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -89,15 +89,15 @@
|
|
|
89
89
|
"@babel/preset-typescript": "^7.23.2",
|
|
90
90
|
"@babel/runtime": "^7.23.2",
|
|
91
91
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
92
|
-
"@storybook/addon-actions": "8.0.0-rc.
|
|
93
|
-
"@storybook/builder-webpack5": "8.0.0-rc.
|
|
94
|
-
"@storybook/core-common": "8.0.0-rc.
|
|
95
|
-
"@storybook/core-events": "8.0.0-rc.
|
|
96
|
-
"@storybook/node-logger": "8.0.0-rc.
|
|
97
|
-
"@storybook/preset-react-webpack": "8.0.0-rc.
|
|
98
|
-
"@storybook/preview-api": "8.0.0-rc.
|
|
99
|
-
"@storybook/react": "8.0.0-rc.
|
|
100
|
-
"@storybook/types": "8.0.0-rc.
|
|
92
|
+
"@storybook/addon-actions": "8.0.0-rc.5",
|
|
93
|
+
"@storybook/builder-webpack5": "8.0.0-rc.5",
|
|
94
|
+
"@storybook/core-common": "8.0.0-rc.5",
|
|
95
|
+
"@storybook/core-events": "8.0.0-rc.5",
|
|
96
|
+
"@storybook/node-logger": "8.0.0-rc.5",
|
|
97
|
+
"@storybook/preset-react-webpack": "8.0.0-rc.5",
|
|
98
|
+
"@storybook/preview-api": "8.0.0-rc.5",
|
|
99
|
+
"@storybook/react": "8.0.0-rc.5",
|
|
100
|
+
"@storybook/types": "8.0.0-rc.5",
|
|
101
101
|
"@types/node": "^18.0.0",
|
|
102
102
|
"@types/semver": "^7.3.4",
|
|
103
103
|
"babel-loader": "^9.1.3",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fn } from '@storybook/test';
|
|
1
2
|
import { Header } from './Header';
|
|
2
3
|
|
|
3
4
|
export default {
|
|
@@ -9,6 +10,11 @@ export default {
|
|
|
9
10
|
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
10
11
|
layout: 'fullscreen',
|
|
11
12
|
},
|
|
13
|
+
args: {
|
|
14
|
+
onLogin: fn(),
|
|
15
|
+
onLogout: fn(),
|
|
16
|
+
onCreateAccount: fn(),
|
|
17
|
+
},
|
|
12
18
|
};
|
|
13
19
|
export const LoggedIn = {
|
|
14
20
|
args: {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { fn } from '@storybook/test';
|
|
3
|
+
|
|
2
4
|
import { Header } from './Header';
|
|
3
5
|
|
|
4
6
|
const meta: Meta<typeof Header> = {
|
|
@@ -10,6 +12,11 @@ const meta: Meta<typeof Header> = {
|
|
|
10
12
|
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
11
13
|
layout: 'fullscreen',
|
|
12
14
|
},
|
|
15
|
+
args: {
|
|
16
|
+
onLogin: fn(),
|
|
17
|
+
onLogout: fn(),
|
|
18
|
+
onCreateAccount: fn(),
|
|
19
|
+
},
|
|
13
20
|
};
|
|
14
21
|
|
|
15
22
|
export default meta;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { fn } from '@storybook/test';
|
|
2
3
|
import { Header } from './Header';
|
|
3
4
|
|
|
4
5
|
const meta = {
|
|
@@ -10,6 +11,11 @@ const meta = {
|
|
|
10
11
|
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
11
12
|
layout: 'fullscreen',
|
|
12
13
|
},
|
|
14
|
+
args: {
|
|
15
|
+
onLogin: fn(),
|
|
16
|
+
onLogout: fn(),
|
|
17
|
+
onCreateAccount: fn(),
|
|
18
|
+
},
|
|
13
19
|
} satisfies Meta<typeof Header>;
|
|
14
20
|
|
|
15
21
|
export default meta;
|