@storybook/vue3 7.6.0-beta.2 → 7.6.1
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 +2 -2
- package/template/cli/js/Page.stories.js +2 -2
- package/template/cli/ts-3-8/Button.stories.ts +3 -3
- package/template/cli/ts-3-8/Header.stories.ts +3 -3
- package/template/cli/ts-3-8/Page.stories.ts +3 -3
- package/template/cli/ts-4-9/Button.stories.ts +3 -3
- package/template/cli/ts-4-9/Header.stories.ts +3 -3
- package/template/cli/ts-4-9/Page.stories.ts +3 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/vue3",
|
3
|
-
"version": "7.6.
|
3
|
+
"version": "7.6.1",
|
4
4
|
"description": "Storybook Vue 3 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.
|
51
|
-
"@storybook/docs-tools": "7.6.
|
50
|
+
"@storybook/core-client": "7.6.1",
|
51
|
+
"@storybook/docs-tools": "7.6.1",
|
52
52
|
"@storybook/global": "^5.0.0",
|
53
|
-
"@storybook/preview-api": "7.6.
|
54
|
-
"@storybook/types": "7.6.
|
53
|
+
"@storybook/preview-api": "7.6.1",
|
54
|
+
"@storybook/types": "7.6.1",
|
55
55
|
"lodash": "^4.17.21",
|
56
56
|
"ts-dedent": "^2.0.0",
|
57
57
|
"type-fest": "~2.19",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import MyButton from './Button.vue';
|
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
|
component: MyButton,
|
@@ -19,7 +19,7 @@ export default {
|
|
19
19
|
},
|
20
20
|
};
|
21
21
|
|
22
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
22
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
23
23
|
export const Primary = {
|
24
24
|
args: {
|
25
25
|
primary: true,
|
@@ -3,7 +3,7 @@ import MyHeader from './Header.vue';
|
|
3
3
|
export default {
|
4
4
|
title: 'Example/Header',
|
5
5
|
component: MyHeader,
|
6
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
6
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
7
7
|
tags: ['autodocs'],
|
8
8
|
render: (args) => ({
|
9
9
|
// Components used in your story `template` are defined in the `components` object
|
@@ -21,7 +21,7 @@ export default {
|
|
21
21
|
template: '<my-header :user="user" />',
|
22
22
|
}),
|
23
23
|
parameters: {
|
24
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
24
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
25
25
|
layout: 'fullscreen',
|
26
26
|
},
|
27
27
|
};
|
@@ -5,14 +5,14 @@ export default {
|
|
5
5
|
title: 'Example/Page',
|
6
6
|
component: MyPage,
|
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
|
render: () => ({
|
18
18
|
components: {
|
@@ -2,11 +2,11 @@ import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
2
|
|
3
3
|
import Button from './Button.vue';
|
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
|
6
6
|
const meta: Meta<typeof Button> = {
|
7
7
|
title: 'Example/Button',
|
8
8
|
component: Button,
|
9
|
-
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/
|
9
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
|
10
10
|
tags: ['autodocs'],
|
11
11
|
argTypes: {
|
12
12
|
size: { control: 'select', options: ['small', 'medium', 'large'] },
|
@@ -20,7 +20,7 @@ export default meta;
|
|
20
20
|
type Story = StoryObj<typeof Button>;
|
21
21
|
/*
|
22
22
|
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
|
23
|
-
* See https://storybook.js.org/docs/
|
23
|
+
* See https://storybook.js.org/docs/api/csf
|
24
24
|
* to learn how to use render functions.
|
25
25
|
*/
|
26
26
|
export const Primary: Story = {
|
@@ -4,7 +4,7 @@ import MyHeader from './Header.vue';
|
|
4
4
|
|
5
5
|
const meta: Meta<typeof MyHeader> = {
|
6
6
|
/* 👇 The title prop is optional.
|
7
|
-
* See https://storybook.js.org/docs/
|
7
|
+
* See https://storybook.js.org/docs/configure/#configure-story-loading
|
8
8
|
* to learn how to generate automatic titles
|
9
9
|
*/
|
10
10
|
title: 'Example/Header',
|
@@ -17,10 +17,10 @@ const meta: Meta<typeof MyHeader> = {
|
|
17
17
|
template: '<my-header :user="args.user" />',
|
18
18
|
}),
|
19
19
|
parameters: {
|
20
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
20
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
21
21
|
layout: 'fullscreen',
|
22
22
|
},
|
23
|
-
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/
|
23
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
|
24
24
|
tags: ['autodocs'],
|
25
25
|
};
|
26
26
|
|
@@ -10,17 +10,17 @@ const meta: Meta<typeof MyPage> = {
|
|
10
10
|
template: '<my-page />',
|
11
11
|
}),
|
12
12
|
parameters: {
|
13
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
13
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
14
14
|
layout: 'fullscreen',
|
15
15
|
},
|
16
|
-
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/
|
16
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
|
17
17
|
tags: ['autodocs'],
|
18
18
|
};
|
19
19
|
|
20
20
|
export default meta;
|
21
21
|
type Story = StoryObj<typeof MyPage>;
|
22
22
|
|
23
|
-
// More on interaction testing: https://storybook.js.org/docs/
|
23
|
+
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
24
24
|
export const LoggedIn: Story = {
|
25
25
|
play: async ({ canvasElement }: any) => {
|
26
26
|
const canvas = within(canvasElement);
|
@@ -2,11 +2,11 @@ import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
2
|
|
3
3
|
import Button from './Button.vue';
|
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
|
6
6
|
const meta = {
|
7
7
|
title: 'Example/Button',
|
8
8
|
component: Button,
|
9
|
-
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/
|
9
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
|
10
10
|
tags: ['autodocs'],
|
11
11
|
argTypes: {
|
12
12
|
size: { control: 'select', options: ['small', 'medium', 'large'] },
|
@@ -20,7 +20,7 @@ export default meta;
|
|
20
20
|
type Story = StoryObj<typeof meta>;
|
21
21
|
/*
|
22
22
|
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
|
23
|
-
* See https://storybook.js.org/docs/
|
23
|
+
* See https://storybook.js.org/docs/api/csf
|
24
24
|
* to learn how to use render functions.
|
25
25
|
*/
|
26
26
|
export const Primary: Story = {
|
@@ -4,7 +4,7 @@ import MyHeader from './Header.vue';
|
|
4
4
|
|
5
5
|
const meta = {
|
6
6
|
/* 👇 The title prop is optional.
|
7
|
-
* See https://storybook.js.org/docs/
|
7
|
+
* See https://storybook.js.org/docs/configure/#configure-story-loading
|
8
8
|
* to learn how to generate automatic titles
|
9
9
|
*/
|
10
10
|
title: 'Example/Header',
|
@@ -17,10 +17,10 @@ const meta = {
|
|
17
17
|
template: '<my-header :user="args.user" />',
|
18
18
|
}),
|
19
19
|
parameters: {
|
20
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
20
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
21
21
|
layout: 'fullscreen',
|
22
22
|
},
|
23
|
-
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/
|
23
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
|
24
24
|
tags: ['autodocs'],
|
25
25
|
} satisfies Meta<typeof MyHeader>;
|
26
26
|
|
@@ -10,17 +10,17 @@ const meta = {
|
|
10
10
|
template: '<my-page />',
|
11
11
|
}),
|
12
12
|
parameters: {
|
13
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
13
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
14
14
|
layout: 'fullscreen',
|
15
15
|
},
|
16
|
-
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/
|
16
|
+
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
|
17
17
|
tags: ['autodocs'],
|
18
18
|
} satisfies Meta<typeof MyPage>;
|
19
19
|
|
20
20
|
export default meta;
|
21
21
|
type Story = StoryObj<typeof meta>;
|
22
22
|
|
23
|
-
// More on interaction testing: https://storybook.js.org/docs/
|
23
|
+
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
24
24
|
export const LoggedIn: Story = {
|
25
25
|
play: async ({ canvasElement }: any) => {
|
26
26
|
const canvas = within(canvasElement);
|