@storybook/html 7.6.0-beta.1 → 7.6.0
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 +5 -5
- package/template/cli/js/Button.stories.js +2 -2
- package/template/cli/js/Header.stories.js +3 -3
- package/template/cli/js/Page.stories.js +2 -2
- package/template/cli/ts-3-8/Button.stories.ts +2 -2
- package/template/cli/ts-3-8/Header.stories.ts +3 -3
- package/template/cli/ts-3-8/Page.stories.ts +2 -2
- package/template/cli/ts-4-9/Button.stories.ts +2 -2
- package/template/cli/ts-4-9/Header.stories.ts +3 -3
- package/template/cli/ts-4-9/Page.stories.ts +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/html",
|
3
|
-
"version": "7.6.0
|
3
|
+
"version": "7.6.0",
|
4
4
|
"description": "Storybook HTML renderer",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,11 +47,11 @@
|
|
47
47
|
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/core-client": "7.6.0
|
51
|
-
"@storybook/docs-tools": "7.6.0
|
50
|
+
"@storybook/core-client": "7.6.0",
|
51
|
+
"@storybook/docs-tools": "7.6.0",
|
52
52
|
"@storybook/global": "^5.0.0",
|
53
|
-
"@storybook/preview-api": "7.6.0
|
54
|
-
"@storybook/types": "7.6.0
|
53
|
+
"@storybook/preview-api": "7.6.0",
|
54
|
+
"@storybook/types": "7.6.0",
|
55
55
|
"ts-dedent": "^2.0.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createButton } from './Button';
|
2
2
|
|
3
|
-
// More on how to set up stories at: https://storybook.js.org/docs/
|
3
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
4
4
|
export default {
|
5
5
|
title: 'Example/Button',
|
6
6
|
tags: ['autodocs'],
|
@@ -21,7 +21,7 @@ export default {
|
|
21
21
|
},
|
22
22
|
};
|
23
23
|
|
24
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
24
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
25
25
|
export const Primary = {
|
26
26
|
args: {
|
27
27
|
primary: true,
|
@@ -2,14 +2,14 @@ import { createHeader } from './Header';
|
|
2
2
|
|
3
3
|
export default {
|
4
4
|
title: 'Example/Header',
|
5
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
5
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
6
6
|
tags: ['autodocs'],
|
7
7
|
render: (args) => createHeader(args),
|
8
8
|
parameters: {
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
10
10
|
layout: 'fullscreen',
|
11
11
|
},
|
12
|
-
// More on argTypes: https://storybook.js.org/docs/
|
12
|
+
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
13
13
|
argTypes: {
|
14
14
|
onLogin: { action: 'onLogin' },
|
15
15
|
onLogout: { action: 'onLogout' },
|
@@ -5,14 +5,14 @@ export default {
|
|
5
5
|
title: 'Example/Page',
|
6
6
|
render: () => createPage(),
|
7
7
|
parameters: {
|
8
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
8
|
+
// More on how to position stories at: https://storybook.js.org/docs/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/
|
15
|
+
// More on interaction testing: https://storybook.js.org/docs/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 { StoryObj, Meta } from '@storybook/html';
|
|
2
2
|
import type { ButtonProps } from './Button';
|
3
3
|
import { createButton } from './Button';
|
4
4
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
6
6
|
const meta: Meta<ButtonProps> = {
|
7
7
|
title: 'Example/Button',
|
8
8
|
tags: ['autodocs'],
|
@@ -26,7 +26,7 @@ const meta: Meta<ButtonProps> = {
|
|
26
26
|
export default meta;
|
27
27
|
type Story = StoryObj<ButtonProps>;
|
28
28
|
|
29
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
29
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
30
30
|
export const Primary: Story = {
|
31
31
|
args: {
|
32
32
|
primary: true,
|
@@ -4,14 +4,14 @@ import { createHeader } from './Header';
|
|
4
4
|
|
5
5
|
const meta: Meta<HeaderProps> = {
|
6
6
|
title: 'Example/Header',
|
7
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
7
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
8
8
|
tags: ['autodocs'],
|
9
9
|
render: (args) => createHeader(args),
|
10
10
|
parameters: {
|
11
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
11
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
12
12
|
layout: 'fullscreen',
|
13
13
|
},
|
14
|
-
// More on argTypes: https://storybook.js.org/docs/
|
14
|
+
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
15
15
|
argTypes: {
|
16
16
|
onLogin: { action: 'onLogin' },
|
17
17
|
onLogout: { action: 'onLogout' },
|
@@ -6,7 +6,7 @@ const meta: Meta = {
|
|
6
6
|
title: 'Example/Page',
|
7
7
|
render: () => createPage(),
|
8
8
|
parameters: {
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
10
10
|
layout: 'fullscreen',
|
11
11
|
},
|
12
12
|
};
|
@@ -15,7 +15,7 @@ export default meta;
|
|
15
15
|
|
16
16
|
export const LoggedOut: StoryObj = {};
|
17
17
|
|
18
|
-
// More on interaction testing: https://storybook.js.org/docs/
|
18
|
+
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
19
19
|
export const LoggedIn: StoryObj = {
|
20
20
|
play: async ({ canvasElement }) => {
|
21
21
|
const canvas = within(canvasElement);
|
@@ -2,7 +2,7 @@ import type { StoryObj, Meta } from '@storybook/html';
|
|
2
2
|
import type { ButtonProps } from './Button';
|
3
3
|
import { createButton } from './Button';
|
4
4
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
6
6
|
const meta = {
|
7
7
|
title: 'Example/Button',
|
8
8
|
tags: ['autodocs'],
|
@@ -26,7 +26,7 @@ const meta = {
|
|
26
26
|
export default meta;
|
27
27
|
type Story = StoryObj<ButtonProps>;
|
28
28
|
|
29
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
29
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
30
30
|
export const Primary: Story = {
|
31
31
|
args: {
|
32
32
|
primary: true,
|
@@ -4,14 +4,14 @@ import { createHeader } from './Header';
|
|
4
4
|
|
5
5
|
const meta = {
|
6
6
|
title: 'Example/Header',
|
7
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
7
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
8
8
|
tags: ['autodocs'],
|
9
9
|
render: (args) => createHeader(args),
|
10
10
|
parameters: {
|
11
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
11
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
12
12
|
layout: 'fullscreen',
|
13
13
|
},
|
14
|
-
// More on argTypes: https://storybook.js.org/docs/
|
14
|
+
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
15
15
|
argTypes: {
|
16
16
|
onLogin: { action: 'onLogin' },
|
17
17
|
onLogout: { action: 'onLogout' },
|
@@ -6,7 +6,7 @@ const meta = {
|
|
6
6
|
title: 'Example/Page',
|
7
7
|
render: () => createPage(),
|
8
8
|
parameters: {
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
10
10
|
layout: 'fullscreen',
|
11
11
|
},
|
12
12
|
} satisfies Meta;
|
@@ -15,7 +15,7 @@ export default meta;
|
|
15
15
|
|
16
16
|
export const LoggedOut: StoryObj = {};
|
17
17
|
|
18
|
-
// More on interaction testing: https://storybook.js.org/docs/
|
18
|
+
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
19
19
|
export const LoggedIn: StoryObj = {
|
20
20
|
play: async ({ canvasElement }) => {
|
21
21
|
const canvas = within(canvasElement);
|