@storybook/nextjs 7.0.2 → 7.0.3

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/README.md CHANGED
@@ -88,7 +88,7 @@
88
88
  Follow the prompts after running this command in your Next.js project's root directory:
89
89
 
90
90
  ```bash
91
- npx storybook@next init
91
+ npx storybook@latest init
92
92
  ```
93
93
 
94
94
  [More on getting started with Storybook](https://storybook.js.org/docs/react/get-started/install)
@@ -98,7 +98,7 @@ npx storybook@next init
98
98
  This framework is designed to work with Storybook 7. If you’re not already using v7, upgrade with this command:
99
99
 
100
100
  ```bash
101
- npx storybook@next upgrade --prerelease
101
+ npx storybook@latest upgrade --prerelease
102
102
  ```
103
103
 
104
104
  #### Automatic migration
@@ -110,7 +110,7 @@ When running the `upgrade` command above, you should get a prompt asking you to
110
110
  Install the framework:
111
111
 
112
112
  ```bash
113
- yarn add --dev @storybook/nextjs@next
113
+ yarn add --dev @storybook/nextjs
114
114
  ```
115
115
 
116
116
  Update your `main.js` to change the framework property:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/nextjs",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "description": "Storybook for Next.js",
5
5
  "keywords": [
6
6
  "storybook",
@@ -71,13 +71,13 @@
71
71
  "@babel/preset-react": "^7.18.6",
72
72
  "@babel/preset-typescript": "^7.21.0",
73
73
  "@babel/runtime": "^7.21.0",
74
- "@storybook/addon-actions": "7.0.2",
75
- "@storybook/builder-webpack5": "7.0.2",
76
- "@storybook/core-common": "7.0.2",
77
- "@storybook/node-logger": "7.0.2",
78
- "@storybook/preset-react-webpack": "7.0.2",
79
- "@storybook/preview-api": "7.0.2",
80
- "@storybook/react": "7.0.2",
74
+ "@storybook/addon-actions": "7.0.3",
75
+ "@storybook/builder-webpack5": "7.0.3",
76
+ "@storybook/core-common": "7.0.3",
77
+ "@storybook/node-logger": "7.0.3",
78
+ "@storybook/preset-react-webpack": "7.0.3",
79
+ "@storybook/preview-api": "7.0.3",
80
+ "@storybook/react": "7.0.3",
81
81
  "@types/node": "^16.0.0",
82
82
  "css-loader": "^6.7.3",
83
83
  "find-up": "^5.0.0",
@@ -147,5 +147,5 @@
147
147
  ],
148
148
  "platform": "node"
149
149
  },
150
- "gitHead": "96b498debee8b89d0c4050c13172a5a818c9997a"
150
+ "gitHead": "71877c1f4ba6b2d8829adc200a9c4bb09f7bfc37"
151
151
  }
@@ -1,6 +1,6 @@
1
1
  import { Button } from './Button';
2
2
 
3
- // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
3
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
4
4
  export default {
5
5
  title: 'Example/Button',
6
6
  component: Button,
@@ -12,7 +12,7 @@ export default {
12
12
  },
13
13
  };
14
14
 
15
- // More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
15
+ // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
16
16
  export const Primary = {
17
17
  args: {
18
18
  primary: true,
@@ -3,10 +3,10 @@ import { Header } from './Header';
3
3
  export default {
4
4
  title: 'Example/Header',
5
5
  component: Header,
6
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/7.0/react/writing-docs/docs-page
6
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
7
7
  tags: ['autodocs'],
8
8
  parameters: {
9
- // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
9
+ // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
10
10
  layout: 'fullscreen',
11
11
  },
12
12
  };
@@ -5,14 +5,14 @@ export default {
5
5
  title: 'Example/Page',
6
6
  component: Page,
7
7
  parameters: {
8
- // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
8
+ // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
9
9
  layout: 'fullscreen',
10
10
  },
11
11
  };
12
12
 
13
13
  export const LoggedOut = {};
14
14
 
15
- // More on interaction testing: https://storybook.js.org/docs/7.0/react/writing-tests/interaction-testing
15
+ // More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
16
16
  export const LoggedIn = {
17
17
  play: async ({ canvasElement }) => {
18
18
  const canvas = within(canvasElement);
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
2
2
 
3
3
  import { Button } from './Button';
4
4
 
5
- // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
5
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
6
6
  const meta: Meta<typeof Button> = {
7
7
  title: 'Example/Button',
8
8
  component: Button,
@@ -17,7 +17,7 @@ const meta: Meta<typeof Button> = {
17
17
  export default meta;
18
18
  type Story = StoryObj<typeof Button>;
19
19
 
20
- // More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
20
+ // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
21
21
  export const Primary: Story = {
22
22
  args: {
23
23
  primary: true,
@@ -4,10 +4,10 @@ import { Header } from './Header';
4
4
  const meta: Meta<typeof Header> = {
5
5
  title: 'Example/Header',
6
6
  component: Header,
7
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/7.0/react/writing-docs/docs-page
7
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
8
8
  tags: ['autodocs'],
9
9
  parameters: {
10
- // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
10
+ // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
11
11
  layout: 'fullscreen',
12
12
  },
13
13
  };
@@ -7,7 +7,7 @@ const meta: Meta<typeof Page> = {
7
7
  title: 'Example/Page',
8
8
  component: Page,
9
9
  parameters: {
10
- // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
10
+ // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
11
11
  layout: 'fullscreen',
12
12
  },
13
13
  };
@@ -17,7 +17,7 @@ type Story = StoryObj<typeof Page>;
17
17
 
18
18
  export const LoggedOut: Story = {};
19
19
 
20
- // More on interaction testing: https://storybook.js.org/docs/7.0/react/writing-tests/interaction-testing
20
+ // More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
21
21
  export const LoggedIn: Story = {
22
22
  play: async ({ canvasElement }) => {
23
23
  const canvas = within(canvasElement);
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
2
2
 
3
3
  import { Button } from './Button';
4
4
 
5
- // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
5
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
6
6
  const meta: Meta<typeof Button> = {
7
7
  title: 'Example/Button',
8
8
  component: Button,
@@ -17,7 +17,7 @@ const meta: Meta<typeof Button> = {
17
17
  export default meta;
18
18
  type Story = StoryObj<typeof Button>;
19
19
 
20
- // More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
20
+ // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
21
21
  export const Primary: Story = {
22
22
  args: {
23
23
  primary: true,
@@ -4,10 +4,10 @@ import { Header } from './Header';
4
4
  const meta: Meta<typeof Header> = {
5
5
  title: 'Example/Header',
6
6
  component: Header,
7
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/7.0/react/writing-docs/docs-page
7
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
8
8
  tags: ['autodocs'],
9
9
  parameters: {
10
- // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
10
+ // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
11
11
  layout: 'fullscreen',
12
12
  },
13
13
  };
@@ -7,7 +7,7 @@ const meta: Meta<typeof Page> = {
7
7
  title: 'Example/Page',
8
8
  component: Page,
9
9
  parameters: {
10
- // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
10
+ // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
11
11
  layout: 'fullscreen',
12
12
  },
13
13
  };
@@ -17,7 +17,7 @@ type Story = StoryObj<typeof Page>;
17
17
 
18
18
  export const LoggedOut: Story = {};
19
19
 
20
- // More on interaction testing: https://storybook.js.org/docs/7.0/react/writing-tests/interaction-testing
20
+ // More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
21
21
  export const LoggedIn: Story = {
22
22
  play: async ({ canvasElement }) => {
23
23
  const canvas = within(canvasElement);