@histoire/app 0.10.5 → 0.10.6
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.
|
@@ -20,6 +20,14 @@ function useStoryDoc(story) {
|
|
|
20
20
|
comp = comp.__asyncResolved;
|
|
21
21
|
} else if (comp.__asyncLoader) {
|
|
22
22
|
comp = await comp.__asyncLoader();
|
|
23
|
+
} else if (typeof comp === "function") {
|
|
24
|
+
try {
|
|
25
|
+
comp = await comp();
|
|
26
|
+
} catch (e) {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (comp == null ? void 0 : comp.default) {
|
|
30
|
+
comp = comp.default;
|
|
23
31
|
}
|
|
24
32
|
renderedDoc.value = comp.doc;
|
|
25
33
|
}
|
package/dist/bundled/style.css
CHANGED
|
@@ -49,10 +49,6 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.bind-tree-padding[data-v-8eb31f6a] {
|
|
53
|
-
padding-left: var(--7b519d4f);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
52
|
.bind-tree-margin[data-v-d0757d50] {
|
|
57
53
|
margin-left: var(--9d1e9326);
|
|
58
54
|
}
|
|
@@ -60,6 +56,10 @@
|
|
|
60
56
|
color: var(--411af7ae);
|
|
61
57
|
}
|
|
62
58
|
|
|
59
|
+
.bind-tree-padding[data-v-8eb31f6a] {
|
|
60
|
+
padding-left: var(--7b519d4f);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
63
|
.bind-icon-color[data-v-b9d4a640] {
|
|
64
64
|
color: var(--10f93ca4);
|
|
65
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"description": "Pre-bundled UI for Histoire",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"types": "./src/index.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@histoire/controls": "^0.10.
|
|
28
|
-
"@histoire/shared": "^0.10.
|
|
29
|
-
"@histoire/vendors": "^0.10.
|
|
27
|
+
"@histoire/controls": "^0.10.6",
|
|
28
|
+
"@histoire/shared": "^0.10.6",
|
|
29
|
+
"@histoire/vendors": "^0.10.6",
|
|
30
30
|
"@types/flexsearch": "^0.7.3",
|
|
31
31
|
"flexsearch": "^0.7.21",
|
|
32
32
|
"shiki": "0.10.1"
|
|
@@ -66,6 +66,7 @@ const model = computed({
|
|
|
66
66
|
|
|
67
67
|
function reset () {
|
|
68
68
|
if (props.variant.state._hPropState[props.component.index]) {
|
|
69
|
+
// eslint-disable-next-line vue/no-mutating-props
|
|
69
70
|
delete props.variant.state._hPropState[props.component.index][props.definition.name]
|
|
70
71
|
}
|
|
71
72
|
}
|
|
@@ -16,7 +16,7 @@ export function useStoryDoc (story: Ref<Story>) {
|
|
|
16
16
|
return
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
// Custom blocks (Vue
|
|
19
|
+
// Custom blocks (Vue)
|
|
20
20
|
// @TODO extract
|
|
21
21
|
let comp = story.value.file?.component
|
|
22
22
|
if (comp) {
|
|
@@ -24,6 +24,16 @@ export function useStoryDoc (story: Ref<Story>) {
|
|
|
24
24
|
comp = comp.__asyncResolved
|
|
25
25
|
} else if (comp.__asyncLoader) {
|
|
26
26
|
comp = await comp.__asyncLoader()
|
|
27
|
+
} else if (typeof comp === 'function') {
|
|
28
|
+
try {
|
|
29
|
+
comp = await comp()
|
|
30
|
+
} catch (e) {
|
|
31
|
+
// Noop
|
|
32
|
+
// Could be a class that requires `new com()`
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (comp?.default) {
|
|
36
|
+
comp = comp.default
|
|
27
37
|
}
|
|
28
38
|
renderedDoc.value = comp.doc
|
|
29
39
|
}
|