@storybook/vue 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/vue",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
"description": "Storybook Vue renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@storybook/client-logger": "7.0.
|
|
52
|
-
"@storybook/core-client": "7.0.
|
|
53
|
-
"@storybook/docs-tools": "7.0.
|
|
51
|
+
"@storybook/client-logger": "7.0.3",
|
|
52
|
+
"@storybook/core-client": "7.0.3",
|
|
53
|
+
"@storybook/docs-tools": "7.0.3",
|
|
54
54
|
"@storybook/global": "^5.0.0",
|
|
55
|
-
"@storybook/preview-api": "7.0.
|
|
56
|
-
"@storybook/types": "7.0.
|
|
55
|
+
"@storybook/preview-api": "7.0.3",
|
|
56
|
+
"@storybook/types": "7.0.3",
|
|
57
57
|
"ts-dedent": "^2.0.0",
|
|
58
58
|
"type-fest": "2.19.0"
|
|
59
59
|
},
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
],
|
|
87
87
|
"platform": "browser"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "71877c1f4ba6b2d8829adc200a9c4bb09f7bfc37"
|
|
90
90
|
}
|
|
@@ -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/vue/writing-stories/introduction
|
|
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/vue/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/vue/writing-docs/autodocs
|
|
7
7
|
tags: ['autodocs'],
|
|
8
8
|
render: (args, { argTypes }) => ({
|
|
9
9
|
props: Object.keys(argTypes),
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
'<my-header :user="user" @onLogin="onLogin" @onLogout="onLogout" @onCreateAccount="onCreateAccount" />',
|
|
15
15
|
}),
|
|
16
16
|
parameters: {
|
|
17
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
|
17
|
+
// More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
|
|
18
18
|
layout: 'fullscreen',
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -9,13 +9,13 @@ export default {
|
|
|
9
9
|
template: '<my-page />',
|
|
10
10
|
}),
|
|
11
11
|
parameters: {
|
|
12
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
|
12
|
+
// More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
|
|
13
13
|
layout: 'fullscreen',
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
export const LoggedOut = {};
|
|
17
17
|
|
|
18
|
-
// More on interaction testing: https://storybook.js.org/docs/
|
|
18
|
+
// More on interaction testing: https://storybook.js.org/docs/vue/writing-tests/interaction-testing
|
|
19
19
|
export const LoggedIn = {
|
|
20
20
|
play: async ({ canvasElement }) => {
|
|
21
21
|
const canvas = within(canvasElement);
|