@storybook/vue 6.5.0-beta.8 → 6.5.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/dist/cjs/client/preview/config.js +6 -0
- package/dist/cjs/client/preview/render.js +5 -2
- package/dist/esm/client/preview/config.js +1 -1
- package/dist/esm/client/preview/render.js +4 -2
- package/dist/modern/client/preview/config.js +1 -1
- package/dist/modern/client/preview/render.js +3 -2
- package/dist/ts3.4/client/preview/config.d.ts +1 -1
- package/dist/ts3.9/client/preview/config.d.ts +1 -1
- package/package.json +8 -8
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "decorateStory", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
exports.parameters = void 0;
|
|
13
|
+
Object.defineProperty(exports, "render", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _render.render;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
Object.defineProperty(exports, "renderToDOM", {
|
|
14
20
|
enumerable: true,
|
|
15
21
|
get: function get() {
|
|
@@ -12,6 +12,8 @@ exports.renderToDOM = renderToDOM;
|
|
|
12
12
|
|
|
13
13
|
require("core-js/modules/es.function.name.js");
|
|
14
14
|
|
|
15
|
+
require("core-js/modules/es.object.keys.js");
|
|
16
|
+
|
|
15
17
|
require("core-js/modules/es.array.concat.js");
|
|
16
18
|
|
|
17
19
|
require("core-js/modules/es.object.assign.js");
|
|
@@ -52,7 +54,8 @@ var render = function render(props, context) {
|
|
|
52
54
|
var _component$__docgenIn;
|
|
53
55
|
|
|
54
56
|
var id = context.id,
|
|
55
|
-
Component = context.component
|
|
57
|
+
Component = context.component,
|
|
58
|
+
argTypes = context.argTypes;
|
|
56
59
|
var component = Component;
|
|
57
60
|
|
|
58
61
|
if (!component) {
|
|
@@ -75,7 +78,7 @@ var render = function render(props, context) {
|
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
return {
|
|
78
|
-
props:
|
|
81
|
+
props: Object.keys(argTypes),
|
|
79
82
|
components: _defineProperty({}, componentName, component),
|
|
80
83
|
template: "<".concat(componentName, " v-bind=\"$props\" />")
|
|
81
84
|
};
|
|
@@ -6,6 +6,7 @@ var _templateObject;
|
|
|
6
6
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
7
7
|
|
|
8
8
|
import "core-js/modules/es.function.name.js";
|
|
9
|
+
import "core-js/modules/es.object.keys.js";
|
|
9
10
|
import "core-js/modules/es.array.concat.js";
|
|
10
11
|
import "core-js/modules/es.object.assign.js";
|
|
11
12
|
|
|
@@ -35,7 +36,8 @@ export var render = function render(props, context) {
|
|
|
35
36
|
var _component$__docgenIn;
|
|
36
37
|
|
|
37
38
|
var id = context.id,
|
|
38
|
-
Component = context.component
|
|
39
|
+
Component = context.component,
|
|
40
|
+
argTypes = context.argTypes;
|
|
39
41
|
var component = Component;
|
|
40
42
|
|
|
41
43
|
if (!component) {
|
|
@@ -57,7 +59,7 @@ export var render = function render(props, context) {
|
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
return {
|
|
60
|
-
props:
|
|
62
|
+
props: Object.keys(argTypes),
|
|
61
63
|
components: _defineProperty({}, componentName, component),
|
|
62
64
|
template: "<".concat(componentName, " v-bind=\"$props\" />")
|
|
63
65
|
};
|
|
@@ -26,7 +26,8 @@ export const render = (props, context) => {
|
|
|
26
26
|
|
|
27
27
|
const {
|
|
28
28
|
id,
|
|
29
|
-
component: Component
|
|
29
|
+
component: Component,
|
|
30
|
+
argTypes
|
|
30
31
|
} = context;
|
|
31
32
|
const component = Component;
|
|
32
33
|
|
|
@@ -49,7 +50,7 @@ export const render = (props, context) => {
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
return {
|
|
52
|
-
props:
|
|
53
|
+
props: Object.keys(argTypes),
|
|
53
54
|
components: {
|
|
54
55
|
[componentName]: component
|
|
55
56
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/vue",
|
|
3
|
-
"version": "6.5.0
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"prepare": "node ../../scripts/prepare.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@storybook/addons": "6.5.0
|
|
49
|
-
"@storybook/client-logger": "6.5.0
|
|
50
|
-
"@storybook/core": "6.5.0
|
|
51
|
-
"@storybook/core-common": "6.5.0
|
|
48
|
+
"@storybook/addons": "6.5.0",
|
|
49
|
+
"@storybook/client-logger": "6.5.0",
|
|
50
|
+
"@storybook/core": "6.5.0",
|
|
51
|
+
"@storybook/core-common": "6.5.0",
|
|
52
52
|
"@storybook/csf": "0.0.2--canary.4566f4d.1",
|
|
53
|
-
"@storybook/docs-tools": "6.5.0
|
|
54
|
-
"@storybook/store": "6.5.0
|
|
53
|
+
"@storybook/docs-tools": "6.5.0",
|
|
54
|
+
"@storybook/store": "6.5.0",
|
|
55
55
|
"@types/node": "^14.14.20 || ^16.0.0",
|
|
56
56
|
"@types/webpack-env": "^1.16.0",
|
|
57
57
|
"core-js": "^3.8.2",
|
|
@@ -86,6 +86,6 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "05070ca621fcebd46cd6c58fcb0eb24a35bbe651",
|
|
90
90
|
"sbmodern": "dist/modern/client/index.js"
|
|
91
91
|
}
|