@storybook/vue3 7.1.0-alpha.13 → 7.1.0-alpha.14
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/vue3",
|
3
|
-
"version": "7.1.0-alpha.
|
3
|
+
"version": "7.1.0-alpha.14",
|
4
4
|
"description": "Storybook Vue 3 renderer",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -48,11 +48,11 @@
|
|
48
48
|
"prep": "../../../scripts/prepare/bundle.ts"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
|
-
"@storybook/core-client": "7.1.0-alpha.
|
52
|
-
"@storybook/docs-tools": "7.1.0-alpha.
|
51
|
+
"@storybook/core-client": "7.1.0-alpha.14",
|
52
|
+
"@storybook/docs-tools": "7.1.0-alpha.14",
|
53
53
|
"@storybook/global": "^5.0.0",
|
54
|
-
"@storybook/preview-api": "7.1.0-alpha.
|
55
|
-
"@storybook/types": "7.1.0-alpha.
|
54
|
+
"@storybook/preview-api": "7.1.0-alpha.14",
|
55
|
+
"@storybook/types": "7.1.0-alpha.14",
|
56
56
|
"ts-dedent": "^2.0.0",
|
57
57
|
"type-fest": "2.19.0"
|
58
58
|
},
|
@@ -80,5 +80,5 @@
|
|
80
80
|
],
|
81
81
|
"platform": "browser"
|
82
82
|
},
|
83
|
-
"gitHead": "
|
83
|
+
"gitHead": "72ae6b0d965d1ae596159cdb15109c5e13376d78"
|
84
84
|
}
|
package/template/cli/js/Page.vue
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<article>
|
3
3
|
<my-header :user="user" @login="onLogin" @logout="onLogout" @create-account="onCreateAccount" />
|
4
4
|
|
5
|
-
<section>
|
5
|
+
<section class="storybook-page">
|
6
6
|
<h2>Pages in Storybook</h2>
|
7
7
|
<p>
|
8
8
|
We recommend building UIs with a
|
@@ -28,7 +28,9 @@
|
|
28
28
|
</ul>
|
29
29
|
<p>
|
30
30
|
Get a guided tutorial on component-driven development at
|
31
|
-
<a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer"
|
31
|
+
<a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer"
|
32
|
+
>Storybook tutorials</a
|
33
|
+
>
|
32
34
|
. Read more in the
|
33
35
|
<a href="https://storybook.js.org/docs" target="_blank" rel="noopener noreferrer">docs</a>
|
34
36
|
.
|
@@ -40,7 +42,9 @@
|
|
40
42
|
<g fill="none" fill-rule="evenodd">
|
41
43
|
<path
|
42
44
|
d="M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
|
43
|
-
id="a"
|
45
|
+
id="a"
|
46
|
+
fill="#999"
|
47
|
+
/>
|
44
48
|
</g>
|
45
49
|
</svg>
|
46
50
|
Viewports addon in the toolbar
|
@@ -55,7 +59,7 @@ import MyHeader from './Header.vue';
|
|
55
59
|
|
56
60
|
import { ref } from 'vue';
|
57
61
|
|
58
|
-
const user = ref<{ name: string } | null>(null)
|
62
|
+
const user = ref<{ name: string } | null>(null);
|
59
63
|
|
60
64
|
const onLogin = () => {
|
61
65
|
user.value = { name: 'Jane Doe' };
|
@@ -66,5 +70,4 @@ const onLogout = () => {
|
|
66
70
|
const onCreateAccount = () => {
|
67
71
|
user.value = { name: 'Jane Doe' };
|
68
72
|
};
|
69
|
-
|
70
73
|
</script>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<article>
|
3
3
|
<my-header :user="user" @login="onLogin" @logout="onLogout" @create-account="onCreateAccount" />
|
4
4
|
|
5
|
-
<section>
|
5
|
+
<section class="storybook-page">
|
6
6
|
<h2>Pages in Storybook</h2>
|
7
7
|
<p>
|
8
8
|
We recommend building UIs with a
|
@@ -28,7 +28,9 @@
|
|
28
28
|
</ul>
|
29
29
|
<p>
|
30
30
|
Get a guided tutorial on component-driven development at
|
31
|
-
<a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer"
|
31
|
+
<a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer"
|
32
|
+
>Storybook tutorials</a
|
33
|
+
>
|
32
34
|
. Read more in the
|
33
35
|
<a href="https://storybook.js.org/docs" target="_blank" rel="noopener noreferrer">docs</a>
|
34
36
|
.
|
@@ -40,7 +42,9 @@
|
|
40
42
|
<g fill="none" fill-rule="evenodd">
|
41
43
|
<path
|
42
44
|
d="M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
|
43
|
-
id="a"
|
45
|
+
id="a"
|
46
|
+
fill="#999"
|
47
|
+
/>
|
44
48
|
</g>
|
45
49
|
</svg>
|
46
50
|
Viewports addon in the toolbar
|
@@ -55,7 +59,7 @@ import MyHeader from './Header.vue';
|
|
55
59
|
|
56
60
|
import { ref } from 'vue';
|
57
61
|
|
58
|
-
const user = ref<{ name: string } | null>(null)
|
62
|
+
const user = ref<{ name: string } | null>(null);
|
59
63
|
|
60
64
|
const onLogin = () => {
|
61
65
|
user.value = { name: 'Jane Doe' };
|
@@ -66,5 +70,4 @@ const onLogout = () => {
|
|
66
70
|
const onCreateAccount = () => {
|
67
71
|
user.value = { name: 'Jane Doe' };
|
68
72
|
};
|
69
|
-
|
70
73
|
</script>
|