@histoire/app 0.14.2 → 0.15.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.
|
@@ -14,11 +14,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
const props = __props;
|
|
15
15
|
const mountComponent = ref(null);
|
|
16
16
|
watchEffect(async () => {
|
|
17
|
-
var _a;
|
|
17
|
+
var _a, _b;
|
|
18
18
|
const clientPlugin = clientSupportPlugins[(_a = props.story.file) == null ? void 0 : _a.supportPluginId];
|
|
19
|
+
console.log((_b = props.story.file) == null ? void 0 : _b.supportPluginId, clientPlugin);
|
|
19
20
|
if (clientPlugin) {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
console.log(clientPlugin);
|
|
22
|
+
try {
|
|
23
|
+
const pluginModule = await clientPlugin();
|
|
24
|
+
mountComponent.value = markRaw(pluginModule.RenderStory);
|
|
25
|
+
} catch (e) {
|
|
26
|
+
console.error(e);
|
|
27
|
+
throw e;
|
|
28
|
+
}
|
|
22
29
|
}
|
|
23
30
|
});
|
|
24
31
|
return (_ctx, _cache) => {
|
package/dist/bundled/style.css
CHANGED
|
@@ -11,10 +11,6 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.bind-icon-color[data-v-36846ccf] {
|
|
15
|
-
color: var(--5792748b);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
14
|
.landscape > div > .dragger[data-v-ed925107] {
|
|
19
15
|
width: .625rem;
|
|
20
16
|
}
|
|
@@ -44,6 +40,14 @@
|
|
|
44
40
|
color: var(--663732b6);
|
|
45
41
|
}
|
|
46
42
|
|
|
43
|
+
.bind-icon-color[data-v-36846ccf] {
|
|
44
|
+
color: var(--5792748b);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.bind-tree-padding[data-v-2d2e4786] {
|
|
48
|
+
padding-left: var(--6851b0a7);
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
.bind-tree-margin[data-v-19810958] {
|
|
48
52
|
margin-left: var(--444efc12);
|
|
49
53
|
}
|
|
@@ -51,10 +55,6 @@
|
|
|
51
55
|
color: var(--ae892164);
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
.bind-tree-padding[data-v-2d2e4786] {
|
|
55
|
-
padding-left: var(--6851b0a7);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
58
|
.__histoire-code-placeholder[data-v-1bdf9905] {
|
|
59
59
|
color: inherit;
|
|
60
60
|
font-size: inherit;
|
|
@@ -68,8 +68,9 @@
|
|
|
68
68
|
color: var(--89126aaa);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.bind-
|
|
72
|
-
color: var(--
|
|
71
|
+
.bind-preview-bg[data-v-c48fb2b2] {
|
|
72
|
+
background-color: var(--627bec82);
|
|
73
|
+
color: var(--35068428);
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
.bind-icon-color[data-v-c1d28b37] {
|
|
@@ -79,19 +80,18 @@
|
|
|
79
80
|
background-color: var(--772419ec);
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
.bind-
|
|
83
|
-
|
|
84
|
-
color: var(--35068428);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
img.colorize-black[data-v-74182813] {
|
|
88
|
-
filter: grayscale(100) brightness(0);
|
|
83
|
+
.bind-icon-color[data-v-6c8e9661] {
|
|
84
|
+
color: var(--a8c1277e);
|
|
89
85
|
}
|
|
90
86
|
|
|
91
87
|
.bind-preview-bg[data-v-a83b1911] {
|
|
92
88
|
background-color: var(--03d1950e);
|
|
93
89
|
}
|
|
94
90
|
|
|
91
|
+
img.colorize-black[data-v-74182813] {
|
|
92
|
+
filter: grayscale(100) brightness(0);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
95
|
.__histoire-hatched-pattern[data-v-91561117] {
|
|
96
96
|
background: repeating-linear-gradient(135deg,
|
|
97
97
|
transparent 0px,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
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.
|
|
28
|
-
"@histoire/shared": "^0.
|
|
29
|
-
"@histoire/vendors": "^0.
|
|
27
|
+
"@histoire/controls": "^0.15.0",
|
|
28
|
+
"@histoire/shared": "^0.15.0",
|
|
29
|
+
"@histoire/vendors": "^0.15.0",
|
|
30
30
|
"@types/flexsearch": "^0.7.3",
|
|
31
31
|
"flexsearch": "0.7.21",
|
|
32
32
|
"shiki-es": "^0.2.0"
|
|
@@ -17,9 +17,16 @@ const mountComponent = ref(null)
|
|
|
17
17
|
|
|
18
18
|
watchEffect(async () => {
|
|
19
19
|
const clientPlugin = clientSupportPlugins[props.story.file?.supportPluginId]
|
|
20
|
+
console.log(props.story.file?.supportPluginId, clientPlugin)
|
|
20
21
|
if (clientPlugin) {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
console.log(clientPlugin)
|
|
23
|
+
try {
|
|
24
|
+
const pluginModule = await clientPlugin()
|
|
25
|
+
mountComponent.value = markRaw(pluginModule.RenderStory)
|
|
26
|
+
} catch (e) {
|
|
27
|
+
console.error(e)
|
|
28
|
+
throw e
|
|
29
|
+
}
|
|
23
30
|
}
|
|
24
31
|
})
|
|
25
32
|
</script>
|