histoire 0.8.0 → 0.8.1
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/bundled/components/panel/StorySourceCode.js +1 -1
- package/dist/bundled/style.css +10 -10
- package/dist/node/vite.js +2 -0
- package/package.json +6 -5
- package/src/node/vite.ts +2 -0
- package/tsconfig.json +0 -1
- package/vite.config.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pushScopeId, popScopeId, createElementVNode, defineComponent, ref, shallowRef, onMounted, watch, computed, openBlock, createElementBlock, createVNode, unref, createCommentVNode, toDisplayString } from "@histoire/vendors/dist/client/vue.js";
|
|
2
|
-
import { setCDN, getHighlighter } from "
|
|
2
|
+
import { setCDN, getHighlighter } from "shiki";
|
|
3
3
|
import { HstCopyIcon } from "@histoire/controls";
|
|
4
4
|
import { unindent } from "@histoire/shared";
|
|
5
5
|
import { generateSourceCode } from "@histoire/plugin-vue/client";
|
package/dist/bundled/style.css
CHANGED
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
bottom: -.625rem;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.bind-icon-color[data-v-356879fc] {
|
|
49
|
-
color: var(--578fcd62);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
48
|
.bind-icon-color[data-v-67187ed0] {
|
|
53
49
|
color: var(--5e381dde);
|
|
54
50
|
}
|
|
55
51
|
|
|
52
|
+
.bind-icon-color[data-v-356879fc] {
|
|
53
|
+
color: var(--578fcd62);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
56
|
.bind-tree-margin[data-v-1b0b957a] {
|
|
57
57
|
margin-left: var(--2101d9b6);
|
|
58
58
|
}
|
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
padding-left: var(--27f98670);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.bind-icon-color[data-v-30bcb922] {
|
|
68
|
+
color: var(--33d9fc01);
|
|
69
|
+
}
|
|
70
|
+
|
|
67
71
|
.bind-icon-color[data-v-2cdc2ac0] {
|
|
68
72
|
color: var(--3c4190ff);
|
|
69
73
|
}
|
|
@@ -73,18 +77,14 @@
|
|
|
73
77
|
font-size: inherit;
|
|
74
78
|
}
|
|
75
79
|
|
|
76
|
-
.bind-icon-color[data-v-
|
|
77
|
-
color: var(--
|
|
80
|
+
.bind-icon-color[data-v-7856c5b0] {
|
|
81
|
+
color: var(--0e1c785e);
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
.bind-icon-color[data-v-307653da] {
|
|
81
85
|
color: var(--5f94a358);
|
|
82
86
|
}
|
|
83
87
|
|
|
84
|
-
.bind-icon-color[data-v-7856c5b0] {
|
|
85
|
-
color: var(--0e1c785e);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
88
|
.bind-preview-bg[data-v-bde73868] {
|
|
89
89
|
background-color: var(--b797c7ca);
|
|
90
90
|
}
|
package/dist/node/vite.js
CHANGED
|
@@ -258,6 +258,7 @@ if (import.meta.hot) {
|
|
|
258
258
|
// Apply Vite HTML transforms. This injects the Vite HMR client, and
|
|
259
259
|
// also applies HTML transforms from Vite plugins
|
|
260
260
|
html = await server.transformIndexHtml(req.url, html);
|
|
261
|
+
res.setHeader('content-type', 'text/html; charset=UTF-8');
|
|
261
262
|
res.end(html);
|
|
262
263
|
return;
|
|
263
264
|
}
|
|
@@ -287,6 +288,7 @@ if (import.meta.hot) {
|
|
|
287
288
|
// Apply Vite HTML transforms. This injects the Vite HMR client, and
|
|
288
289
|
// also applies HTML transforms from Vite plugins
|
|
289
290
|
html = await server.transformIndexHtml(req.url, html);
|
|
291
|
+
res.setHeader('content-type', 'text/html; charset=UTF-8');
|
|
290
292
|
res.end(html);
|
|
291
293
|
return;
|
|
292
294
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "histoire",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "A fast story book powered by Vite",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"histoire": "./bin.mjs"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@histoire/controls": "^0.8.
|
|
37
|
-
"@histoire/plugin-vue": "^0.8.
|
|
38
|
-
"@histoire/shared": "^0.8.
|
|
39
|
-
"@histoire/vendors": "^0.8.
|
|
36
|
+
"@histoire/controls": "^0.8.1",
|
|
37
|
+
"@histoire/plugin-vue": "^0.8.1",
|
|
38
|
+
"@histoire/shared": "^0.8.1",
|
|
39
|
+
"@histoire/vendors": "^0.8.1",
|
|
40
40
|
"@types/flexsearch": "^0.7.3",
|
|
41
41
|
"@types/markdown-it": "^12.2.3",
|
|
42
42
|
"birpc": "^0.1.1",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"pathe": "^0.2.0",
|
|
58
58
|
"picocolors": "^1.0.0",
|
|
59
59
|
"sade": "^1.8.1",
|
|
60
|
+
"shiki": "^0.10.1",
|
|
60
61
|
"sirv": "^2.0.2",
|
|
61
62
|
"tinypool": "^0.1.2",
|
|
62
63
|
"vite-node": "0.12.1"
|
package/src/node/vite.ts
CHANGED
|
@@ -277,6 +277,7 @@ if (import.meta.hot) {
|
|
|
277
277
|
// Apply Vite HTML transforms. This injects the Vite HMR client, and
|
|
278
278
|
// also applies HTML transforms from Vite plugins
|
|
279
279
|
html = await server.transformIndexHtml(req.url, html)
|
|
280
|
+
res.setHeader('content-type', 'text/html; charset=UTF-8')
|
|
280
281
|
res.end(html)
|
|
281
282
|
return
|
|
282
283
|
}
|
|
@@ -308,6 +309,7 @@ if (import.meta.hot) {
|
|
|
308
309
|
// Apply Vite HTML transforms. This injects the Vite HMR client, and
|
|
309
310
|
// also applies HTML transforms from Vite plugins
|
|
310
311
|
html = await server.transformIndexHtml(req.url, html)
|
|
312
|
+
res.setHeader('content-type', 'text/html; charset=UTF-8')
|
|
311
313
|
res.end(html)
|
|
312
314
|
return
|
|
313
315
|
}
|
package/tsconfig.json
CHANGED
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"@iconify/vue": ["./node_modules/@histoire/vendors/dist/client/iconify"],
|
|
37
37
|
"pinia": ["./node_modules/@histoire/vendors/dist/client/pinia"],
|
|
38
38
|
"scroll-into-view-if-needed": ["./node_modules/@histoire/vendors/dist/client/scroll"],
|
|
39
|
-
"shiki": ["./node_modules/@histoire/vendors/dist/client/shiki"],
|
|
40
39
|
"vue-router": ["./node_modules/@histoire/vendors/dist/client/vue-router"],
|
|
41
40
|
"@vueuse/core": ["./node_modules/@histoire/vendors/dist/client/vue-use"],
|
|
42
41
|
"vue": ["./node_modules/@histoire/vendors/dist/client/vue"]
|
package/vite.config.ts
CHANGED
|
@@ -38,7 +38,6 @@ export default defineConfig({
|
|
|
38
38
|
'@iconify/vue': '@histoire/vendors/dist/client/iconify.js',
|
|
39
39
|
pinia: '@histoire/vendors/dist/client/pinia.js',
|
|
40
40
|
'scroll-into-view-if-needed': '@histoire/vendors/dist/client/scroll.js',
|
|
41
|
-
shiki: '@histoire/vendors/dist/client/shiki.js',
|
|
42
41
|
'vue-router': '@histoire/vendors/dist/client/vue-router.js',
|
|
43
42
|
'@vueuse/core': '@histoire/vendors/dist/client/vue-use.js',
|
|
44
43
|
vue: '@histoire/vendors/dist/client/vue.js',
|