vue-stream-markdown 0.2.3 → 0.3.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/README.md +1 -1
- package/dist/{blockquote-Crr-D7fY.js → blockquote-ClgbyGJ2.js} +2 -2
- package/dist/button-BKN2jNlv.js +6 -0
- package/dist/{button-DVWlhfQ9.js → button-BVOWJPmC.js} +2 -2
- package/dist/{code-Bz8LM16H.js → code-DG1O8Nim.js} +10 -10
- package/dist/code-block-C3VwzdZn.js +10 -0
- package/dist/{code-block-CmUZxKNr.js → code-block-wjjUUcJZ.js} +22 -11
- package/dist/composables-CcP6Ysj8.js +10954 -0
- package/dist/{delete-DFoiOzHW.js → delete-C9W-KhtX.js} +2 -2
- package/dist/dropdown-ByLAwToD.js +6 -0
- package/dist/{emphasis-DvaBuxeK.js → emphasis-DiWz4428.js} +2 -2
- package/dist/error-component-Bhq210EM.js +5 -0
- package/dist/{error-component-BTe-SuY7.js → error-component-BrESW9p1.js} +2 -2
- package/dist/{footnote-definition-ByWh1N3S.js → footnote-definition-lObKczNc.js} +5 -5
- package/dist/{footnote-reference-BJ4J7BFo.js → footnote-reference-D4hG5a5R.js} +1 -1
- package/dist/{heading-1fssqGGO.js → heading-CV3_yOWw.js} +2 -2
- package/dist/{icon-DcLTFhFW.js → icon-CRNiOEiK.js} +1 -1
- package/dist/icon-CVg4xQw0.js +4 -0
- package/dist/image-C9bwOpvz.js +9 -0
- package/dist/{image-xPrAKT9D.js → image-CRAZ3iRD.js} +17 -12
- package/dist/{image-DXnmoID_.js → image-CS78DShm.js} +13 -10
- package/dist/index.d.ts +294 -182
- package/dist/index.js +10387 -18754
- package/dist/{inline-math-CPkpjl8t.js → inline-math-BE7gPPl0.js} +3 -3
- package/dist/{link-BACrkxRW.js → link-EaqqdLrN.js} +4 -4
- package/dist/{list-Cu8G46hK.js → list-EaQaXX4p.js} +2 -2
- package/dist/{list-item-BMgDS1tS.js → list-item-KAU_GIzi.js} +2 -2
- package/dist/{math-XsZX0VMw.js → math-CsyxsUp9.js} +3 -3
- package/dist/{mermaid-CQdSlhqn.js → mermaid-CA30wprV.js} +25 -11
- package/dist/modal-C0X_IXfp.js +4 -0
- package/dist/{modal-C1riNMrs.js → modal-D8sOifLe.js} +1 -1
- package/dist/node-list--ReOjYkK.js +4 -0
- package/dist/{node-list-7H-lIfUX.js → node-list-VskJkISk.js} +2 -81
- package/dist/{paragraph-Cfd37HUK.js → paragraph-D6OuJvHb.js} +2 -2
- package/dist/{previewers-C7PKsIbc.js → previewers-CwjTiQh8.js} +1 -1
- package/dist/segmented-D-zfh_BF.js +7 -0
- package/dist/{segmented-C9j-IIDc.js → segmented-DafF5jPA.js} +1 -1
- package/dist/{shiki-BoBbCakv.js → shiki-C1omjtbf.js} +2 -2
- package/dist/{strong-BzOBAWrG.js → strong-Clqsbyuc.js} +2 -2
- package/dist/{table-YY5M01Jm.js → table-DQZFzn1X.js} +13 -8
- package/dist/{tooltip-DarhJuZR.js → tooltip-BfznjscC.js} +1 -1
- package/dist/tooltip-Yf5TSh_Q.js +4 -0
- package/dist/vanilla-C7Ds8DWX.js +4 -0
- package/dist/{vanilla-Z6d1vQmX.js → vanilla-CfMvJwq0.js} +1 -1
- package/dist/{zoom-container-DQMpHHGQ.js → zoom-container-Ci1d-2Rg.js} +2 -2
- package/dist/zoom-container-Dd5Vtieh.js +7 -0
- package/package.json +3 -5
- package/dist/button-Dw4uJRaD.js +0 -6
- package/dist/code-block-Bitp8x1w.js +0 -10
- package/dist/composables-CzUVrTt_.js +0 -2151
- package/dist/dropdown-CSRjqK0u.js +0 -6
- package/dist/error-component-DDnC0bqw.js +0 -5
- package/dist/icon-DE3AzDqz.js +0 -4
- package/dist/image-Dl-r78_E.js +0 -9
- package/dist/modal-C7O4jt5-.js +0 -4
- package/dist/node-list-DMwAmH_n.js +0 -4
- package/dist/segmented-BRTZXoDN.js +0 -7
- package/dist/tooltip-vDDEbLwf.js +0 -4
- package/dist/vanilla-CzQw2_b4.js +0 -4
- package/dist/zoom-container-JLbwB4gy.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./icon-
|
|
3
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { U as useMathRenderer } from "./composables-CcP6Ysj8.js";
|
|
2
|
+
import "./icon-CRNiOEiK.js";
|
|
3
|
+
import { t as error_component_default } from "./error-component-BrESW9p1.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/renderers/inline-math.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as useSanitizers } from "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list-
|
|
3
|
-
import "./icon-
|
|
4
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { i as useSanitizers } from "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-VskJkISk.js";
|
|
3
|
+
import "./icon-CRNiOEiK.js";
|
|
4
|
+
import { t as error_component_default } from "./error-component-BrESW9p1.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/renderers/link.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list-
|
|
1
|
+
import "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-VskJkISk.js";
|
|
3
3
|
import { computed, createBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/list.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list-
|
|
1
|
+
import "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-VskJkISk.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/list-item.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./icon-
|
|
3
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { U as useMathRenderer } from "./composables-CcP6Ysj8.js";
|
|
2
|
+
import "./icon-CRNiOEiK.js";
|
|
3
|
+
import { t as error_component_default } from "./error-component-BrESW9p1.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/renderers/math.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./tooltip-
|
|
3
|
-
import { t as button_default } from "./button-
|
|
4
|
-
import "./icon-
|
|
5
|
-
import { t as error_component_default } from "./error-component-
|
|
6
|
-
import { t as zoom_container_default } from "./zoom-container-
|
|
1
|
+
import { St as useControls, V as useMermaid, W as throttle, tt as useDeferredRender } from "./composables-CcP6Ysj8.js";
|
|
2
|
+
import "./tooltip-BfznjscC.js";
|
|
3
|
+
import { t as button_default } from "./button-BVOWJPmC.js";
|
|
4
|
+
import "./icon-CRNiOEiK.js";
|
|
5
|
+
import { t as error_component_default } from "./error-component-BrESW9p1.js";
|
|
6
|
+
import { t as zoom_container_default } from "./zoom-container-Ci1d-2Rg.js";
|
|
7
7
|
import { t as spin_default } from "./spin-DzERwGWy.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeStyle, openBlock, ref, renderList, resolveDynamicComponent, toRefs, watch, withCtx } from "vue";
|
|
9
9
|
import { useResizeObserver } from "@vueuse/core";
|
|
@@ -84,6 +84,11 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
84
84
|
required: false,
|
|
85
85
|
default: 60
|
|
86
86
|
},
|
|
87
|
+
immediateRender: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
required: false,
|
|
90
|
+
default: false
|
|
91
|
+
},
|
|
87
92
|
containerHeight: {
|
|
88
93
|
type: [String, Number],
|
|
89
94
|
required: false
|
|
@@ -117,6 +122,10 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
117
122
|
if (typeof props.containerHeight === "number") return props.containerHeight;
|
|
118
123
|
return containerHeight.value ? `${containerHeight.value}px` : "auto";
|
|
119
124
|
});
|
|
125
|
+
const { shouldRender } = useDeferredRender({
|
|
126
|
+
targetRef: containerRef,
|
|
127
|
+
immediate: props.immediateRender
|
|
128
|
+
});
|
|
120
129
|
const { renderMermaid } = useMermaid({
|
|
121
130
|
mermaidOptions,
|
|
122
131
|
isDark
|
|
@@ -160,6 +169,7 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
160
169
|
}
|
|
161
170
|
}
|
|
162
171
|
const render = throttle(props.throttle, async () => {
|
|
172
|
+
if (!shouldRender.value) return;
|
|
163
173
|
const { valid, svg: data, error: err } = await renderMermaid(code.value);
|
|
164
174
|
if (valid) {
|
|
165
175
|
svg.value = data;
|
|
@@ -169,6 +179,11 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
169
179
|
} else error.value = err;
|
|
170
180
|
renderFlag.value = true;
|
|
171
181
|
});
|
|
182
|
+
function eagerRender() {
|
|
183
|
+
renderAttempt.value = true;
|
|
184
|
+
renderFlag.value = false;
|
|
185
|
+
render();
|
|
186
|
+
}
|
|
172
187
|
const mermaidControls = computed(() => resolveControls("mermaid", [], props));
|
|
173
188
|
watch(() => [
|
|
174
189
|
code.value,
|
|
@@ -178,12 +193,11 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
178
193
|
], render, { immediate: true });
|
|
179
194
|
watch(loading, (curr, prev) => {
|
|
180
195
|
if (renderAttempt.value) return;
|
|
181
|
-
if (!curr && prev)
|
|
182
|
-
renderAttempt.value = true;
|
|
183
|
-
renderFlag.value = false;
|
|
184
|
-
render();
|
|
185
|
-
}
|
|
196
|
+
if (!curr && prev) eagerRender();
|
|
186
197
|
}, { immediate: true });
|
|
198
|
+
watch(shouldRender, (curr, prev) => {
|
|
199
|
+
if (curr && !prev) eagerRender();
|
|
200
|
+
});
|
|
187
201
|
if (!props.containerHeight) useResizeObserver(containerRef, () => {
|
|
188
202
|
updateHeight();
|
|
189
203
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as useContext, ht as isClient } from "./composables-CcP6Ysj8.js";
|
|
2
2
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeStyle, openBlock, renderSlot, toDisplayString, unref, useModel, useSlots, withCtx } from "vue";
|
|
3
3
|
import { createReusableTemplate, useEventListener } from "@vueuse/core";
|
|
4
4
|
|
|
@@ -1,85 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as useContext } from "./composables-CcP6Ysj8.js";
|
|
2
2
|
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent, withCtx } from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/components/markdown.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
const _hoisted_1 = ["innerHTML"];
|
|
6
|
-
var markdown_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "markdown",
|
|
8
|
-
props: {
|
|
9
|
-
markdownParser: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
nodeRenderers: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
node: {
|
|
18
|
-
type: Object,
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
nodeKey: {
|
|
22
|
-
type: String,
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
controls: {
|
|
26
|
-
type: [Boolean, Object],
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
previewers: {
|
|
30
|
-
type: [Boolean, Object],
|
|
31
|
-
required: false
|
|
32
|
-
},
|
|
33
|
-
shikiOptions: {
|
|
34
|
-
type: Object,
|
|
35
|
-
required: false
|
|
36
|
-
},
|
|
37
|
-
mermaidOptions: {
|
|
38
|
-
type: Object,
|
|
39
|
-
required: false
|
|
40
|
-
},
|
|
41
|
-
katexOptions: {
|
|
42
|
-
type: Object,
|
|
43
|
-
required: false
|
|
44
|
-
},
|
|
45
|
-
hardenOptions: {
|
|
46
|
-
type: Object,
|
|
47
|
-
required: false
|
|
48
|
-
},
|
|
49
|
-
codeOptions: {
|
|
50
|
-
type: Object,
|
|
51
|
-
required: false
|
|
52
|
-
},
|
|
53
|
-
imageOptions: {
|
|
54
|
-
type: Object,
|
|
55
|
-
required: false
|
|
56
|
-
},
|
|
57
|
-
uiOptions: {
|
|
58
|
-
type: Object,
|
|
59
|
-
required: false
|
|
60
|
-
},
|
|
61
|
-
isDark: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
required: false
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
setup(__props) {
|
|
67
|
-
const props = __props;
|
|
68
|
-
const html = computed(() => {
|
|
69
|
-
const content = props.markdownParser.astToMarkdown(props.node);
|
|
70
|
-
return props.markdownParser.markdownToHtml(content);
|
|
71
|
-
});
|
|
72
|
-
return (_ctx, _cache) => {
|
|
73
|
-
return openBlock(), createElementBlock("span", { innerHTML: html.value }, null, 8, _hoisted_1);
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/components/markdown.vue
|
|
80
|
-
var markdown_default = markdown_vue_vue_type_script_setup_true_lang_default;
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
4
|
//#region src/components/node-list.vue?vue&type=script&setup=true&lang.ts
|
|
84
5
|
var node_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
85
6
|
inheritAttrs: false,
|
|
@@ -160,7 +81,7 @@ var node_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
160
81
|
});
|
|
161
82
|
const excludeTransition = ["code"];
|
|
162
83
|
function getNodeComponent(node) {
|
|
163
|
-
return props.nodeRenderers[node.type] ||
|
|
84
|
+
return props.nodeRenderers[node.type] || null;
|
|
164
85
|
}
|
|
165
86
|
function getNodeBindings(node) {
|
|
166
87
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list-
|
|
1
|
+
import "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-VskJkISk.js";
|
|
3
3
|
import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/paragraph.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -3,7 +3,7 @@ import { defineAsyncComponent } from "vue";
|
|
|
3
3
|
//#region src/components/previewers/index.ts
|
|
4
4
|
const CODE_PREVIEWERS = {
|
|
5
5
|
html: defineAsyncComponent(() => import("./html-DfTs9nEm.js")),
|
|
6
|
-
mermaid: defineAsyncComponent(() => import("./mermaid-
|
|
6
|
+
mermaid: defineAsyncComponent(() => import("./mermaid-CA30wprV.js"))
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as button_default } from "./button-
|
|
1
|
+
import { t as button_default } from "./button-BVOWJPmC.js";
|
|
2
2
|
import { Fragment, createBlock, createElementBlock, defineComponent, mergeModels, openBlock, renderList, useModel } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/segmented.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as vanilla_default } from "./vanilla-
|
|
1
|
+
import { r as useShiki, wt as useCodeOptions } from "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as vanilla_default } from "./vanilla-CfMvJwq0.js";
|
|
3
3
|
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeStyle, openBlock, ref, toRefs, unref, watch, withCtx } from "vue";
|
|
4
4
|
import { useResizeObserver } from "@vueuse/core";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list-
|
|
1
|
+
import "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-VskJkISk.js";
|
|
3
3
|
import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/strong.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as node_list_default } from "./node-list-
|
|
3
|
-
import "./tooltip-
|
|
4
|
-
import { t as button_default } from "./button-
|
|
5
|
-
import "./icon-
|
|
1
|
+
import { Ct as useContext, St as useControls, at as tableDataToMarkdown, it as tableDataToCSV, ot as tableDataToTSV, q as useI18n, rt as extractTableDataFromElement, vt as save } from "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-VskJkISk.js";
|
|
3
|
+
import "./tooltip-BfznjscC.js";
|
|
4
|
+
import { t as button_default } from "./button-BVOWJPmC.js";
|
|
5
|
+
import "./icon-CRNiOEiK.js";
|
|
6
6
|
import { t as spin_default } from "./spin-DzERwGWy.js";
|
|
7
7
|
import { t as table_default$1 } from "./table-tZ8TA3cu.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, withCtx } from "vue";
|
|
@@ -75,7 +75,7 @@ var table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
75
75
|
setup(__props) {
|
|
76
76
|
const props = __props;
|
|
77
77
|
const { t } = useI18n();
|
|
78
|
-
const { onCopied } = useContext();
|
|
78
|
+
const { beforeDownload, onCopied } = useContext();
|
|
79
79
|
const { copy, copied } = useClipboard({ legacy: true });
|
|
80
80
|
const { isControlEnabled, resolveControls } = useControls({ controls: props.controls });
|
|
81
81
|
const showCopy = computed(() => isControlEnabled("table.copy"));
|
|
@@ -146,14 +146,19 @@ var table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
146
146
|
icon: "download",
|
|
147
147
|
options,
|
|
148
148
|
visible: () => showDownload.value,
|
|
149
|
-
onClick: (_event, item) => {
|
|
149
|
+
onClick: async (_event, item) => {
|
|
150
150
|
const data = getTableContent((item === null || item === void 0 ? void 0 : item.value) || "csv");
|
|
151
151
|
if (!data) return;
|
|
152
|
-
|
|
152
|
+
if (await beforeDownload({
|
|
153
|
+
type: "table",
|
|
154
|
+
content: data.content
|
|
155
|
+
})) save(`table.${data.extension}`, data.content, data.mimeType);
|
|
153
156
|
}
|
|
154
157
|
}]);
|
|
155
158
|
const controls = computed(() => resolveControls("table", builtinControls.value, props));
|
|
156
159
|
function getNodes(cell) {
|
|
160
|
+
const children = cell.children;
|
|
161
|
+
if (children) return children;
|
|
157
162
|
return [cell];
|
|
158
163
|
}
|
|
159
164
|
return (_ctx, _cache) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as useFloating, Ct as useContext } from "./composables-CcP6Ysj8.js";
|
|
2
2
|
import { Fragment, Teleport, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, toDisplayString, toRefs, unref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as button_default } from "./button-
|
|
1
|
+
import { q as useI18n, t as useZoom } from "./composables-CcP6Ysj8.js";
|
|
2
|
+
import { t as button_default } from "./button-BVOWJPmC.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, unref, withModifiers } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/zoom-container.vue?vue&type=script&setup=true&lang.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-stream-markdown",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "Streaming markdown output, Useful for text streams like LLM outputs.",
|
|
6
6
|
"author": "jinghaihan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"markdown",
|
|
19
19
|
"stream",
|
|
20
20
|
"mermaid",
|
|
21
|
-
"latex",
|
|
22
21
|
"katex",
|
|
22
|
+
"latex",
|
|
23
23
|
"customizable"
|
|
24
24
|
],
|
|
25
25
|
"exports": {
|
|
@@ -53,9 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@floating-ui/dom": "^1.7.4",
|
|
56
|
-
"@vueuse/core": "^14.1.0"
|
|
57
|
-
"markdown-it-async": "^2.2.0",
|
|
58
|
-
"remend": "^1.0.1"
|
|
56
|
+
"@vueuse/core": "^14.1.0"
|
|
59
57
|
},
|
|
60
58
|
"devDependencies": {
|
|
61
59
|
"@antfu/eslint-config": "^6.7.1",
|
package/dist/button-Dw4uJRaD.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./previewers-C7PKsIbc.js";
|
|
2
|
-
import "./composables-CzUVrTt_.js";
|
|
3
|
-
import "./tooltip-DarhJuZR.js";
|
|
4
|
-
import "./button-DVWlhfQ9.js";
|
|
5
|
-
import "./icon-DcLTFhFW.js";
|
|
6
|
-
import "./modal-C1riNMrs.js";
|
|
7
|
-
import { t as code_block_default } from "./code-block-CmUZxKNr.js";
|
|
8
|
-
import "./segmented-C9j-IIDc.js";
|
|
9
|
-
|
|
10
|
-
export { code_block_default as default };
|