vue-stream-markdown 0.1.0 → 0.1.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/button-Bz0s_F3s.js +5 -0
- package/dist/{button-DRLfKbvc.js → button-dU2iYZBS.js} +1 -1
- package/dist/{code-D5-TPyJ2.js → code-BfJ58lYO.js} +7 -7
- package/dist/code-block-BFUXyGQH.js +9 -0
- package/dist/{code-block-D2zjJAww.css → code-block-Bv8s2E8I.css} +5 -0
- package/dist/{code-block-fsdBN3mX.js → code-block-CZHD64ft.js} +5 -5
- package/dist/{composables-5Y9QWb9D.js → composables-BwAY_BDJ.js} +27 -18
- package/dist/dropdown-RWgcV-8w.js +5 -0
- package/dist/error-component-CR9t-T1D.js +4 -0
- package/dist/{error-component-DftqHZwH.js → error-component-CiIR_1Cg.js} +1 -1
- package/dist/{image-dNQ1WKcM.js → image-BporCeem.js} +4 -4
- package/dist/index.d.ts +30 -28
- package/dist/index.js +16 -15
- package/dist/{inline-math-D8LY9Xgq.js → inline-math-BfG4600m.js} +2 -2
- package/dist/{link-Dkfv0bTE.js → link-D-OnakwP.js} +2 -2
- package/dist/{math-G8p5HNSV.js → math-CvKkCYb9.js} +2 -2
- package/dist/{mermaid-BAFHxaTS.js → mermaid-FgnWaZtT.js} +10 -6
- package/dist/{previewers-CZxK6T54.js → previewers-CoU4RlpQ.js} +1 -1
- package/dist/{segmented-CpwUFPie.js → segmented-Baxxk3UJ.js} +1 -1
- package/dist/segmented-C0uEAYuJ.js +6 -0
- package/dist/{shiki-CxPfBPEr.js → shiki-BHOZKGKS.js} +1 -1
- package/dist/{table-BSGtENN1.js → table-B__TdLr7.js} +3 -3
- package/dist/{tooltip-CTUn3Ask.js → tooltip-CA6Kp7Ek.js} +1 -1
- package/dist/tooltip-DoIUaZgq.js +4 -0
- package/dist/zoom-container-BPbftW_I.js +6 -0
- package/dist/{zoom-container-BR9gRA9_.js → zoom-container-Dlqv-z-t.js} +2 -2
- package/package.json +5 -5
- package/dist/button-DYIERZf1.js +0 -5
- package/dist/code-block-Cs17aZ52.js +0 -9
- package/dist/dropdown-BegRJmej.js +0 -5
- package/dist/error-component-BkdZ6n2L.js +0 -4
- package/dist/segmented-DQFlS2_3.js +0 -6
- package/dist/tooltip-TCy0JVGe.js +0 -4
- package/dist/zoom-container-qe4wO3zY.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as tooltip_default } from "./tooltip-
|
|
1
|
+
import { t as tooltip_default } from "./tooltip-CA6Kp7Ek.js";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, h, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dropdown.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./previewers-
|
|
2
|
-
import { i as useShiki } from "./composables-
|
|
3
|
-
import "./tooltip-
|
|
4
|
-
import "./button-
|
|
1
|
+
import "./previewers-CoU4RlpQ.js";
|
|
2
|
+
import { i as useShiki } from "./composables-BwAY_BDJ.js";
|
|
3
|
+
import "./tooltip-CA6Kp7Ek.js";
|
|
4
|
+
import "./button-dU2iYZBS.js";
|
|
5
5
|
import "./modal-CuQR21UD.js";
|
|
6
|
-
import { t as code_block_default } from "./code-block-
|
|
7
|
-
import "./segmented-
|
|
6
|
+
import { t as code_block_default } from "./code-block-CZHD64ft.js";
|
|
7
|
+
import "./segmented-Baxxk3UJ.js";
|
|
8
8
|
import { computed, createBlock, createCommentVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/components/renderers/code/index.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -83,7 +83,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
83
83
|
const { installed: hasShiki } = useShiki();
|
|
84
84
|
const components = {
|
|
85
85
|
vanilla: defineAsyncComponent(() => import("./vanilla-CA9QO96X.js")),
|
|
86
|
-
shiki: defineAsyncComponent(() => import("./shiki-
|
|
86
|
+
shiki: defineAsyncComponent(() => import("./shiki-BHOZKGKS.js"))
|
|
87
87
|
};
|
|
88
88
|
const component = computed(() => {
|
|
89
89
|
if (hasShiki.value) return components.shiki;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./previewers-CoU4RlpQ.js";
|
|
2
|
+
import "./composables-BwAY_BDJ.js";
|
|
3
|
+
import "./tooltip-CA6Kp7Ek.js";
|
|
4
|
+
import "./button-dU2iYZBS.js";
|
|
5
|
+
import "./modal-CuQR21UD.js";
|
|
6
|
+
import { t as code_block_default } from "./code-block-CZHD64ft.js";
|
|
7
|
+
import "./segmented-Baxxk3UJ.js";
|
|
8
|
+
|
|
9
|
+
export { code_block_default as default };
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
display: flex;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
+
@media (max-width: 1024px) {
|
|
42
|
+
.stream-markdown [data-stream-markdown="code-block-header"] {
|
|
43
|
+
padding-inline: .5rem;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
41
46
|
.stream-markdown [data-stream-markdown="code-block-content"] {
|
|
42
47
|
overflow: auto;
|
|
43
48
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CODE_PREVIEWERS } from "./previewers-
|
|
2
|
-
import { B as useContext, I as LANGUAGE_ALIAS, L as LANGUAGE_EXTENSIONS, M as ICONS, O as save, R as LANGUAGE_ICONS, a as useMermaid, u as useI18n, z as useControls } from "./composables-
|
|
3
|
-
import { t as button_default } from "./button-
|
|
1
|
+
import { t as CODE_PREVIEWERS } from "./previewers-CoU4RlpQ.js";
|
|
2
|
+
import { B as useContext, I as LANGUAGE_ALIAS, L as LANGUAGE_EXTENSIONS, M as ICONS, O as save, R as LANGUAGE_ICONS, a as useMermaid, u as useI18n, z as useControls } from "./composables-BwAY_BDJ.js";
|
|
3
|
+
import { t as button_default } from "./button-dU2iYZBS.js";
|
|
4
4
|
import { t as modal_default } from "./modal-CuQR21UD.js";
|
|
5
|
-
import { t as segmented_default } from "./segmented-
|
|
5
|
+
import { t as segmented_default } from "./segmented-Baxxk3UJ.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeClass, normalizeProps, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRefs, unref, useModel, vShow, watch, withCtx, withDirectives } from "vue";
|
|
7
7
|
import { useClipboard } from "@vueuse/core";
|
|
8
8
|
|
|
@@ -208,7 +208,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
208
208
|
const { t } = useI18n();
|
|
209
209
|
const { isControlEnabled } = useControls({ controls });
|
|
210
210
|
const { installed: hasMermaid } = useMermaid();
|
|
211
|
-
const CodeNode = defineAsyncComponent(() => import("./code-
|
|
211
|
+
const CodeNode = defineAsyncComponent(() => import("./code-BfJ58lYO.js"));
|
|
212
212
|
const { onCopied } = useContext();
|
|
213
213
|
const { copy, copied } = useClipboard({ legacy: true });
|
|
214
214
|
const { saveMermaid } = useMermaid();
|
|
@@ -1041,7 +1041,7 @@ function useKatex() {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
//#endregion
|
|
1044
|
-
//#region \0@oxc-project+runtime@0.
|
|
1044
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/typeof.js
|
|
1045
1045
|
function _typeof(o) {
|
|
1046
1046
|
"@babel/helpers - typeof";
|
|
1047
1047
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -1052,7 +1052,7 @@ function _typeof(o) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
//#endregion
|
|
1055
|
-
//#region \0@oxc-project+runtime@0.
|
|
1055
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/toPrimitive.js
|
|
1056
1056
|
function toPrimitive(t, r) {
|
|
1057
1057
|
if ("object" != _typeof(t) || !t) return t;
|
|
1058
1058
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1065,14 +1065,14 @@ function toPrimitive(t, r) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
1067
|
//#endregion
|
|
1068
|
-
//#region \0@oxc-project+runtime@0.
|
|
1068
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/toPropertyKey.js
|
|
1069
1069
|
function toPropertyKey(t) {
|
|
1070
1070
|
var i = toPrimitive(t, "string");
|
|
1071
1071
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
1074
|
//#endregion
|
|
1075
|
-
//#region \0@oxc-project+runtime@0.
|
|
1075
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/defineProperty.js
|
|
1076
1076
|
function _defineProperty(e, r, t) {
|
|
1077
1077
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1078
1078
|
value: t,
|
|
@@ -1083,32 +1083,32 @@ function _defineProperty(e, r, t) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
1085
|
//#endregion
|
|
1086
|
-
//#region \0@oxc-project+runtime@0.
|
|
1086
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/checkPrivateRedeclaration.js
|
|
1087
1087
|
function _checkPrivateRedeclaration(e, t) {
|
|
1088
1088
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
//#endregion
|
|
1092
|
-
//#region \0@oxc-project+runtime@0.
|
|
1092
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/classPrivateFieldInitSpec.js
|
|
1093
1093
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
1094
1094
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
1097
|
//#endregion
|
|
1098
|
-
//#region \0@oxc-project+runtime@0.
|
|
1098
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/assertClassBrand.js
|
|
1099
1099
|
function _assertClassBrand(e, t, n) {
|
|
1100
1100
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
1101
1101
|
throw new TypeError("Private element is not present on this object");
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
1104
|
//#endregion
|
|
1105
|
-
//#region \0@oxc-project+runtime@0.
|
|
1105
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/classPrivateFieldGet2.js
|
|
1106
1106
|
function _classPrivateFieldGet2(s, a) {
|
|
1107
1107
|
return s.get(_assertClassBrand(s, a));
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
1110
|
//#endregion
|
|
1111
|
-
//#region \0@oxc-project+runtime@0.
|
|
1111
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/classPrivateFieldSet2.js
|
|
1112
1112
|
function _classPrivateFieldSet2(s, a, r) {
|
|
1113
1113
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
1114
1114
|
}
|
|
@@ -1385,6 +1385,7 @@ function useMermaid(options) {
|
|
|
1385
1385
|
//#endregion
|
|
1386
1386
|
//#region src/composables/use-shiki.ts
|
|
1387
1387
|
let highlighter = null;
|
|
1388
|
+
let createHighlighterPromise = null;
|
|
1388
1389
|
function useShiki(options) {
|
|
1389
1390
|
const installed = ref(false);
|
|
1390
1391
|
const lang = computed(() => unref(options === null || options === void 0 ? void 0 : options.lang) ?? "plaintext");
|
|
@@ -1424,6 +1425,10 @@ function useShiki(options) {
|
|
|
1424
1425
|
return "plaintext";
|
|
1425
1426
|
}
|
|
1426
1427
|
async function getHighlighter() {
|
|
1428
|
+
if (createHighlighterPromise) {
|
|
1429
|
+
highlighter = await createHighlighterPromise;
|
|
1430
|
+
createHighlighterPromise = null;
|
|
1431
|
+
}
|
|
1427
1432
|
if (highlighter) {
|
|
1428
1433
|
const loadedLangs = highlighter.getLoadedLanguages();
|
|
1429
1434
|
const loadedThemes = highlighter.getLoadedThemes();
|
|
@@ -1433,15 +1438,19 @@ function useShiki(options) {
|
|
|
1433
1438
|
for (const theme of themes) if (!loadedThemes.includes(theme)) await highlighter.loadTheme(theme);
|
|
1434
1439
|
return highlighter;
|
|
1435
1440
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1441
|
+
createHighlighterPromise = (async () => {
|
|
1442
|
+
const { createHighlighter } = await import("shiki");
|
|
1443
|
+
return createHighlighter({
|
|
1444
|
+
themes: [await getTheme()],
|
|
1445
|
+
langs: [await getLanguage()],
|
|
1446
|
+
langAlias: {
|
|
1447
|
+
...LANGUAGE_ALIAS,
|
|
1448
|
+
...langAlias.value
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
})();
|
|
1452
|
+
highlighter = await createHighlighterPromise;
|
|
1453
|
+
createHighlighterPromise = null;
|
|
1445
1454
|
return highlighter;
|
|
1446
1455
|
}
|
|
1447
1456
|
async function codeToTokens(code) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ICONS, u as useI18n } from "./composables-
|
|
1
|
+
import { M as ICONS, u as useI18n } from "./composables-BwAY_BDJ.js";
|
|
2
2
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/error-component.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as ICONS, O as save, g as useHardenSanitizers, u as useI18n, z as useControls } from "./composables-
|
|
2
|
-
import "./tooltip-
|
|
3
|
-
import { t as button_default } from "./button-
|
|
4
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { M as ICONS, O as save, g as useHardenSanitizers, u as useI18n, z as useControls } from "./composables-BwAY_BDJ.js";
|
|
2
|
+
import "./tooltip-CA6Kp7Ek.js";
|
|
3
|
+
import { t as button_default } from "./button-dU2iYZBS.js";
|
|
4
|
+
import { t as error_component_default } from "./error-component-CiIR_1Cg.js";
|
|
5
5
|
import { t as spin_default } from "./spin-Ds5W7qC_.js";
|
|
6
6
|
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, resolveDynamicComponent, toDisplayString, toRefs, unref, withCtx } from "vue";
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue12 from "vue";
|
|
2
2
|
import { Component, MaybeRef, MaybeRefOrGetter } from "vue";
|
|
3
3
|
import "tippy.js/dist/tippy.css";
|
|
4
4
|
import "tippy.js/themes/light.css";
|
|
@@ -8,6 +8,7 @@ import { Zoom } from "medium-zoom";
|
|
|
8
8
|
import { MarkdownItAsync } from "markdown-it-async";
|
|
9
9
|
import { KatexOptions as KatexOptions$1 } from "katex";
|
|
10
10
|
import remend from "remend";
|
|
11
|
+
import "medium-zoom/dist/style.css";
|
|
11
12
|
import { BuiltinLanguage, BuiltinTheme, BundledLanguage, BundledTheme, CodeToTokensOptions, Highlighter, SpecialLanguage, TokensResult } from "shiki";
|
|
12
13
|
import { Mermaid, MermaidConfig } from "mermaid";
|
|
13
14
|
import { Extension, fromMarkdown } from "mdast-util-from-markdown";
|
|
@@ -173,8 +174,9 @@ type CodeControlsConfig = boolean | {
|
|
|
173
174
|
type ImageControlsConfig = boolean | {
|
|
174
175
|
download?: boolean;
|
|
175
176
|
};
|
|
177
|
+
type ZoomControlPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
176
178
|
type ZoomControlsConfig = boolean | {
|
|
177
|
-
position?:
|
|
179
|
+
position?: ZoomControlPosition;
|
|
178
180
|
};
|
|
179
181
|
type ControlsConfig = boolean | {
|
|
180
182
|
table?: boolean | TableControlsConfig;
|
|
@@ -357,7 +359,7 @@ declare function useContext(): {
|
|
|
357
359
|
context: Context;
|
|
358
360
|
provideContext: (ctx: Partial<Context>) => void;
|
|
359
361
|
injectContext: () => Context;
|
|
360
|
-
isDark:
|
|
362
|
+
isDark: vue12.ComputedRef<boolean>;
|
|
361
363
|
readonly getContainer: () => HTMLElement | undefined;
|
|
362
364
|
readonly onCopied: (content: string) => void;
|
|
363
365
|
};
|
|
@@ -379,10 +381,10 @@ interface UseHardenSanitizersOptions {
|
|
|
379
381
|
isImage?: MaybeRef<boolean | undefined>;
|
|
380
382
|
}
|
|
381
383
|
declare function useHardenSanitizers(options: UseHardenSanitizersOptions): {
|
|
382
|
-
hardenOptions:
|
|
384
|
+
hardenOptions: vue12.ComputedRef<HardenOptions>;
|
|
383
385
|
transformHardenUrl: (url: string) => string | null;
|
|
384
|
-
transformedUrl:
|
|
385
|
-
isHardenUrl:
|
|
386
|
+
transformedUrl: vue12.ComputedRef<string | null>;
|
|
387
|
+
isHardenUrl: vue12.ComputedRef<boolean>;
|
|
386
388
|
};
|
|
387
389
|
//#endregion
|
|
388
390
|
//#region src/composables/use-i18n.d.ts
|
|
@@ -392,7 +394,7 @@ declare function useI18n(): {
|
|
|
392
394
|
//#endregion
|
|
393
395
|
//#region src/composables/use-katex.d.ts
|
|
394
396
|
declare function useKatex(): {
|
|
395
|
-
installed:
|
|
397
|
+
installed: vue12.Ref<boolean, boolean>;
|
|
396
398
|
render: (code: string, options?: KatexOptions$1) => Promise<{
|
|
397
399
|
html?: string;
|
|
398
400
|
error?: string;
|
|
@@ -408,9 +410,9 @@ interface UseMathRendererOptions {
|
|
|
408
410
|
throttle?: MaybeRef<number>;
|
|
409
411
|
}
|
|
410
412
|
declare function useMathRenderer(options: UseMathRendererOptions): {
|
|
411
|
-
html:
|
|
412
|
-
error:
|
|
413
|
-
errorMessage:
|
|
413
|
+
html: vue12.Ref<string, string>;
|
|
414
|
+
error: vue12.ComputedRef<boolean>;
|
|
415
|
+
errorMessage: vue12.Ref<string, string>;
|
|
414
416
|
};
|
|
415
417
|
//#endregion
|
|
416
418
|
//#region src/composables/use-mermaid.d.ts
|
|
@@ -419,7 +421,7 @@ interface UseMermaidOptions {
|
|
|
419
421
|
isDark?: MaybeRef<boolean>;
|
|
420
422
|
}
|
|
421
423
|
declare function useMermaid(options?: UseMermaidOptions): {
|
|
422
|
-
installed:
|
|
424
|
+
installed: vue12.Ref<boolean, boolean>;
|
|
423
425
|
getMermaid: () => Promise<Mermaid>;
|
|
424
426
|
parseMermaid: (code: string) => Promise<boolean>;
|
|
425
427
|
renderMermaid: (code: string) => Promise<string | null>;
|
|
@@ -435,7 +437,7 @@ interface UseShikiOptions {
|
|
|
435
437
|
isDark?: MaybeRef<boolean>;
|
|
436
438
|
}
|
|
437
439
|
declare function useShiki(options?: UseShikiOptions): {
|
|
438
|
-
installed:
|
|
440
|
+
installed: vue12.Ref<boolean, boolean>;
|
|
439
441
|
getHighlighter: () => Promise<Highlighter>;
|
|
440
442
|
codeToTokens: (code: string) => Promise<TokensResult>;
|
|
441
443
|
preload: () => Promise<void>;
|
|
@@ -448,12 +450,12 @@ interface UseTailwindV3ThemeOptions {
|
|
|
448
450
|
styleScope?: MaybeRef<string>;
|
|
449
451
|
}
|
|
450
452
|
declare function useTailwindV3Theme(options: UseTailwindV3ThemeOptions): {
|
|
451
|
-
element:
|
|
453
|
+
element: vue12.ComputedRef<Element | undefined>;
|
|
452
454
|
id: string;
|
|
453
|
-
css:
|
|
455
|
+
css: vue12.ShallowRef<string>;
|
|
454
456
|
load: () => void;
|
|
455
457
|
unload: () => void;
|
|
456
|
-
isLoaded: Readonly<
|
|
458
|
+
isLoaded: Readonly<vue12.ShallowRef<boolean>>;
|
|
457
459
|
generateCSS: () => void;
|
|
458
460
|
};
|
|
459
461
|
//#endregion
|
|
@@ -482,11 +484,11 @@ interface ZoomPanState {
|
|
|
482
484
|
translateY: number;
|
|
483
485
|
}
|
|
484
486
|
declare function useZoom(options?: UseZoomOptions): {
|
|
485
|
-
zoom:
|
|
486
|
-
translateX:
|
|
487
|
-
translateY:
|
|
488
|
-
isDragging:
|
|
489
|
-
transformStyle:
|
|
487
|
+
zoom: vue12.Ref<number, number>;
|
|
488
|
+
translateX: vue12.Ref<number, number>;
|
|
489
|
+
translateY: vue12.Ref<number, number>;
|
|
490
|
+
isDragging: vue12.Ref<boolean, boolean>;
|
|
491
|
+
transformStyle: vue12.ComputedRef<{
|
|
490
492
|
transform: string;
|
|
491
493
|
}>;
|
|
492
494
|
zoomIn: () => void;
|
|
@@ -518,29 +520,29 @@ declare const ICONS: Record<string, Component>;
|
|
|
518
520
|
declare const SHADCN_SCHEMAS: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"];
|
|
519
521
|
//#endregion
|
|
520
522
|
//#region src/index.vue.d.ts
|
|
521
|
-
declare const __VLS_export:
|
|
523
|
+
declare const __VLS_export: vue12.DefineComponent<StreamMarkdownProps, {
|
|
522
524
|
getMarkdownParser: () => MarkdownParser;
|
|
523
525
|
getParsedNodes: () => ParsedNode[];
|
|
524
|
-
}, {}, {}, {},
|
|
526
|
+
}, {}, {}, {}, vue12.ComponentOptionsMixin, vue12.ComponentOptionsMixin, {} & {
|
|
525
527
|
copied: (content: string) => any;
|
|
526
|
-
}, string,
|
|
528
|
+
}, string, vue12.PublicProps, Readonly<StreamMarkdownProps> & Readonly<{
|
|
527
529
|
onCopied?: ((content: string) => any) | undefined;
|
|
528
530
|
}>, {
|
|
529
531
|
mode: "static" | "streaming";
|
|
530
532
|
content: string;
|
|
531
|
-
nodeRenderers: Partial<Record<"blockquote" | "break" | "code" | "definition" | "delete" | "emphasis" | "footnoteDefinition" | "footnoteReference" | "heading" | "html" | "image" | "imageReference" | "inlineCode" | "link" | "linkReference" | "list" | "listItem" | "paragraph" | "strong" | "table" | "tableCell" | "tableRow" | "text" | "thematicBreak" | "yaml" | "inlineMath" | "math",
|
|
533
|
+
nodeRenderers: Partial<Record<"blockquote" | "break" | "code" | "definition" | "delete" | "emphasis" | "footnoteDefinition" | "footnoteReference" | "heading" | "html" | "image" | "imageReference" | "inlineCode" | "link" | "linkReference" | "list" | "listItem" | "paragraph" | "strong" | "table" | "tableCell" | "tableRow" | "text" | "thematicBreak" | "yaml" | "inlineMath" | "math", vue12.Component>>;
|
|
532
534
|
locale: string | LocaleConfig;
|
|
533
535
|
controls: ControlsConfig;
|
|
534
536
|
previewers: PreviewerConfig;
|
|
535
537
|
isDark: boolean;
|
|
536
|
-
}, {}, {}, {}, string,
|
|
538
|
+
}, {}, {}, {}, string, vue12.ComponentProvideOptions, false, {}, any>;
|
|
537
539
|
declare const _default: typeof __VLS_export;
|
|
538
540
|
//#endregion
|
|
539
541
|
//#region src/locales/index.d.ts
|
|
540
542
|
declare const SUPPORT_LANGUAGES: string[];
|
|
541
543
|
declare const localesGlob: Record<string, () => Promise<unknown>>;
|
|
542
|
-
declare const localeMessages:
|
|
543
|
-
declare const currentLocale:
|
|
544
|
+
declare const localeMessages: vue12.Ref<LocaleConfig | undefined, LocaleConfig | undefined>;
|
|
545
|
+
declare const currentLocale: vue12.Ref<string, string>;
|
|
544
546
|
declare function loadLocaleMessages(language: string | LocaleConfig): Promise<void>;
|
|
545
547
|
//#endregion
|
|
546
548
|
//#region src/postprocess/text.d.ts
|
|
@@ -771,4 +773,4 @@ declare function tableDataToTSV(data: TableData): string;
|
|
|
771
773
|
declare function escapeMarkdownTableCell(cell: string): string;
|
|
772
774
|
declare function tableDataToMarkdown(data: TableData): string;
|
|
773
775
|
//#endregion
|
|
774
|
-
export { BlockquoteNode, BlockquoteNodeRendererProps, BreakNode, BreakNodeRendererProps, CODE_PREVIEWERS, COMMON_COMPONENTS, CodeControlsConfig, CodeNode, CodeNodeRendererProps, CodeOptions, ControlsConfig, DEFAULT_DARK_THEME, DEFAULT_HARDEN_OPTIONS, DEFAULT_LIGHT_THEME, DefinitionNode, DefinitionNodeRendererProps, DeleteNode, DeleteNodeRendererProps, EmphasisNode, EmphasisNodeRendererProps, FootnoteDefinitionNode, FootnoteDefinitionNodeRendererProps, FootnoteReferenceNode, FootnoteReferenceNodeRendererProps, HardenOptions, HeadingNode, HeadingNodeRendererProps, HtmlNode, HtmlNodeRendererProps, ICONS, ImageControlsConfig, ImageNode, ImageNodeRendererProps, ImageOptions, ImageReferenceNode, ImageReferenceNodeRendererProps, InlineCodeNode, InlineCodeNodeRendererProps, InlineMathNode, InlineMathNodeRendererProps, KatexOptions, LANGUAGE_ALIAS, LANGUAGE_EXTENSIONS, LANGUAGE_ICONS, LinkNode, LinkNodeRendererProps, LinkReferenceNode, LinkReferenceNodeRendererProps, ListItemNode, ListItemNodeRendererProps, ListNode, ListNodeRendererProps, LocaleConfig, _default as Markdown, MarkdownParser, MarkdownParserOptions, MathNode, MathNodeRendererProps, MdastOptions, MermaidOptions, NODE_RENDERERS, NodeRendererListProps, NodeRendererProps, NodeRenderers, NodeType, Options, ParagraphNode, ParagraphNodeRendererProps, ParsedNode, PreviewerConfig, SHADCN_SCHEMAS, SUPPORT_LANGUAGES, SelectItem, ShikiOptions, StreamMarkdownContext, StreamMarkdownProps, StrongNode, StrongNodeRendererProps, SyntaxTree, TableCellNode, TableCellNodeRendererProps, TableControlsConfig, TableData, TableNode, TableNodeRendererProps, TableRowNode, TableRowNodeRendererProps, TextNode, TextNodeRendererProps, ThematicBreakNode, ThematicBreakNodeRendererProps, UseMathRendererOptions, UseZoomOptions, YamlNode, YamlNodeRendererProps, ZoomControlsConfig, ZoomPanState, codeBlockPattern, crlfPattern, currentLocale, doubleAsteriskPattern, doubleDollarPattern, doubleTildePattern, doubleUnderscorePattern, escapeMarkdownTableCell, extractTableDataFromElement, findLastLeafNode, findNodeParent, fixCode, fixDelete, fixEmphasis, fixLink, fixStrong, fixTable, flow, hasKatex, hasMermaid, hasShiki, incompleteBracketPattern, incompleteLinkTextPattern, incompleteUrlPattern, loadLocaleMessages, localeMessages, localesGlob, normalize, postFixText, postprocess, preprocess, preprocessLaTeX, preprocessThinkTag, proprocessContent, remend, save, separatorPattern, singleAsteriskPattern, singleBacktickPattern, singleUnderscorePattern, svgToPngBlob, tableDataToCSV, tableDataToMarkdown, tableDataToTSV, tableRowPattern, trailingBackticksPattern, trailingWhitespacePattern, transformUrl, tripleBacktickPattern, useContext, useControls, useHardenSanitizers, useI18n, useKatex, useMathRenderer, useMermaid, useShiki, useTailwindV3Theme, useTippy, useZoom };
|
|
776
|
+
export { BlockquoteNode, BlockquoteNodeRendererProps, BreakNode, BreakNodeRendererProps, CODE_PREVIEWERS, COMMON_COMPONENTS, CodeControlsConfig, CodeNode, CodeNodeRendererProps, CodeOptions, ControlsConfig, DEFAULT_DARK_THEME, DEFAULT_HARDEN_OPTIONS, DEFAULT_LIGHT_THEME, DefinitionNode, DefinitionNodeRendererProps, DeleteNode, DeleteNodeRendererProps, EmphasisNode, EmphasisNodeRendererProps, FootnoteDefinitionNode, FootnoteDefinitionNodeRendererProps, FootnoteReferenceNode, FootnoteReferenceNodeRendererProps, HardenOptions, HeadingNode, HeadingNodeRendererProps, HtmlNode, HtmlNodeRendererProps, ICONS, ImageControlsConfig, ImageNode, ImageNodeRendererProps, ImageOptions, ImageReferenceNode, ImageReferenceNodeRendererProps, InlineCodeNode, InlineCodeNodeRendererProps, InlineMathNode, InlineMathNodeRendererProps, KatexOptions, LANGUAGE_ALIAS, LANGUAGE_EXTENSIONS, LANGUAGE_ICONS, LinkNode, LinkNodeRendererProps, LinkReferenceNode, LinkReferenceNodeRendererProps, ListItemNode, ListItemNodeRendererProps, ListNode, ListNodeRendererProps, LocaleConfig, _default as Markdown, MarkdownParser, MarkdownParserOptions, MathNode, MathNodeRendererProps, MdastOptions, MermaidOptions, NODE_RENDERERS, NodeRendererListProps, NodeRendererProps, NodeRenderers, NodeType, Options, ParagraphNode, ParagraphNodeRendererProps, ParsedNode, PreviewerConfig, SHADCN_SCHEMAS, SUPPORT_LANGUAGES, SelectItem, ShikiOptions, StreamMarkdownContext, StreamMarkdownProps, StrongNode, StrongNodeRendererProps, SyntaxTree, TableCellNode, TableCellNodeRendererProps, TableControlsConfig, TableData, TableNode, TableNodeRendererProps, TableRowNode, TableRowNodeRendererProps, TextNode, TextNodeRendererProps, ThematicBreakNode, ThematicBreakNodeRendererProps, UseMathRendererOptions, UseZoomOptions, YamlNode, YamlNodeRendererProps, ZoomControlPosition, ZoomControlsConfig, ZoomPanState, codeBlockPattern, crlfPattern, currentLocale, doubleAsteriskPattern, doubleDollarPattern, doubleTildePattern, doubleUnderscorePattern, escapeMarkdownTableCell, extractTableDataFromElement, findLastLeafNode, findNodeParent, fixCode, fixDelete, fixEmphasis, fixLink, fixStrong, fixTable, flow, hasKatex, hasMermaid, hasShiki, incompleteBracketPattern, incompleteLinkTextPattern, incompleteUrlPattern, loadLocaleMessages, localeMessages, localesGlob, normalize, postFixText, postprocess, preprocess, preprocessLaTeX, preprocessThinkTag, proprocessContent, remend, save, separatorPattern, singleAsteriskPattern, singleBacktickPattern, singleUnderscorePattern, svgToPngBlob, tableDataToCSV, tableDataToMarkdown, tableDataToTSV, tableRowPattern, trailingBackticksPattern, trailingWhitespacePattern, transformUrl, tripleBacktickPattern, useContext, useControls, useHardenSanitizers, useI18n, useKatex, useMathRenderer, useMermaid, useShiki, useTailwindV3Theme, useTippy, useZoom };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { t as CODE_PREVIEWERS } from "./previewers-
|
|
2
|
-
import { A as transformUrl, B as useContext, C as findNodeParent, D as flow, E as hasShiki, F as DEFAULT_LIGHT_THEME, I as LANGUAGE_ALIAS, L as LANGUAGE_EXTENSIONS, M as ICONS, N as DEFAULT_HARDEN_OPTIONS, O as save, P as DEFAULT_DARK_THEME, R as LANGUAGE_ICONS, S as findLastLeafNode, T as hasMermaid, _ as escapeMarkdownTableCell, a as useMermaid, b as tableDataToMarkdown, c as _defineProperty, d as SUPPORT_LANGUAGES, f as currentLocale, g as useHardenSanitizers, h as localesGlob, i as useShiki, j as SHADCN_SCHEMAS, k as svgToPngBlob, l as useKatex, m as localeMessages, n as useTippy, o as useMathRenderer, p as loadLocaleMessages, r as useTailwindV3Theme, t as useZoom, u as useI18n, v as extractTableDataFromElement, w as hasKatex, x as tableDataToTSV, y as tableDataToCSV, z as useControls } from "./composables-
|
|
1
|
+
import { t as CODE_PREVIEWERS } from "./previewers-CoU4RlpQ.js";
|
|
2
|
+
import { A as transformUrl, B as useContext, C as findNodeParent, D as flow, E as hasShiki, F as DEFAULT_LIGHT_THEME, I as LANGUAGE_ALIAS, L as LANGUAGE_EXTENSIONS, M as ICONS, N as DEFAULT_HARDEN_OPTIONS, O as save, P as DEFAULT_DARK_THEME, R as LANGUAGE_ICONS, S as findLastLeafNode, T as hasMermaid, _ as escapeMarkdownTableCell, a as useMermaid, b as tableDataToMarkdown, c as _defineProperty, d as SUPPORT_LANGUAGES, f as currentLocale, g as useHardenSanitizers, h as localesGlob, i as useShiki, j as SHADCN_SCHEMAS, k as svgToPngBlob, l as useKatex, m as localeMessages, n as useTippy, o as useMathRenderer, p as loadLocaleMessages, r as useTailwindV3Theme, t as useZoom, u as useI18n, v as extractTableDataFromElement, w as hasKatex, x as tableDataToTSV, y as tableDataToCSV, z as useControls } from "./composables-BwAY_BDJ.js";
|
|
3
3
|
import { t as node_list_default } from "./node-list-CGr_EVtn.js";
|
|
4
4
|
import { computed, createElementBlock, createVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeClass, onBeforeUnmount, openBlock, ref, toRefs, unref, watch } from "vue";
|
|
5
5
|
import mediumZoom from "medium-zoom";
|
|
6
6
|
import { MarkdownItAsync } from "markdown-it-async";
|
|
7
7
|
import remend from "remend";
|
|
8
|
+
import "medium-zoom/dist/style.css";
|
|
8
9
|
|
|
9
10
|
//#region rolldown:runtime
|
|
10
11
|
var __create = Object.create;
|
|
@@ -50,20 +51,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
50
51
|
//#region src/components/renderers/index.ts
|
|
51
52
|
const NODE_RENDERERS = {
|
|
52
53
|
blockquote: defineAsyncComponent(() => import("./blockquote-DdEg2gww.js")),
|
|
53
|
-
code: defineAsyncComponent(() => import("./code-
|
|
54
|
+
code: defineAsyncComponent(() => import("./code-BfJ58lYO.js")),
|
|
54
55
|
delete: defineAsyncComponent(() => import("./delete-BdWzKJCy.js")),
|
|
55
56
|
emphasis: defineAsyncComponent(() => import("./emphasis-CTuGt1Ok.js")),
|
|
56
57
|
heading: defineAsyncComponent(() => import("./heading-2vpQQtTH.js")),
|
|
57
|
-
image: defineAsyncComponent(() => import("./image-
|
|
58
|
+
image: defineAsyncComponent(() => import("./image-BporCeem.js")),
|
|
58
59
|
inlineCode: defineAsyncComponent(() => import("./inline-code-CBoqhfz7.js")),
|
|
59
|
-
inlineMath: defineAsyncComponent(() => import("./inline-math-
|
|
60
|
-
link: defineAsyncComponent(() => import("./link-
|
|
60
|
+
inlineMath: defineAsyncComponent(() => import("./inline-math-BfG4600m.js")),
|
|
61
|
+
link: defineAsyncComponent(() => import("./link-D-OnakwP.js")),
|
|
61
62
|
list: defineAsyncComponent(() => import("./list-BCiFKGaz.js")),
|
|
62
63
|
listItem: defineAsyncComponent(() => import("./list-item-p-OLUR_9.js")),
|
|
63
|
-
math: defineAsyncComponent(() => import("./math-
|
|
64
|
+
math: defineAsyncComponent(() => import("./math-CvKkCYb9.js")),
|
|
64
65
|
paragraph: defineAsyncComponent(() => import("./paragraph-DYjqr_Sa.js")),
|
|
65
66
|
strong: defineAsyncComponent(() => import("./strong-CvOjLZiq.js")),
|
|
66
|
-
table: defineAsyncComponent(() => import("./table-
|
|
67
|
+
table: defineAsyncComponent(() => import("./table-B__TdLr7.js")),
|
|
67
68
|
text: defineAsyncComponent(() => import("./text-DuONUqRA.js")),
|
|
68
69
|
thematicBreak: defineAsyncComponent(() => import("./thematic-break-CcNPEI9Y.js")),
|
|
69
70
|
yaml: defineAsyncComponent(() => import("./yaml-DJHrmzSe.js"))
|
|
@@ -72,17 +73,17 @@ const NODE_RENDERERS = {
|
|
|
72
73
|
//#endregion
|
|
73
74
|
//#region src/components/index.ts
|
|
74
75
|
const COMMON_COMPONENTS = {
|
|
75
|
-
Button: defineAsyncComponent(() => import("./button-
|
|
76
|
-
CodeBlock: defineAsyncComponent(() => import("./code-block-
|
|
77
|
-
Dropdown: defineAsyncComponent(() => import("./dropdown-
|
|
78
|
-
ErrorComponent: defineAsyncComponent(() => import("./error-component-
|
|
76
|
+
Button: defineAsyncComponent(() => import("./button-Bz0s_F3s.js")),
|
|
77
|
+
CodeBlock: defineAsyncComponent(() => import("./code-block-BFUXyGQH.js")),
|
|
78
|
+
Dropdown: defineAsyncComponent(() => import("./dropdown-RWgcV-8w.js")),
|
|
79
|
+
ErrorComponent: defineAsyncComponent(() => import("./error-component-CR9t-T1D.js")),
|
|
79
80
|
Modal: defineAsyncComponent(() => import("./modal-DcpxxDDX.js")),
|
|
80
81
|
NodeList: defineAsyncComponent(() => import("./node-list-lgY1wbfQ.js")),
|
|
81
|
-
Segmented: defineAsyncComponent(() => import("./segmented-
|
|
82
|
+
Segmented: defineAsyncComponent(() => import("./segmented-C0uEAYuJ.js")),
|
|
82
83
|
Spin: defineAsyncComponent(() => import("./spin-Bz4zGBEo.js")),
|
|
83
84
|
Table: defineAsyncComponent(() => import("./table-CZLbUHiJ.js")),
|
|
84
|
-
Tooltip: defineAsyncComponent(() => import("./tooltip-
|
|
85
|
-
ZoomContainer: defineAsyncComponent(() => import("./zoom-container-
|
|
85
|
+
Tooltip: defineAsyncComponent(() => import("./tooltip-DoIUaZgq.js")),
|
|
86
|
+
ZoomContainer: defineAsyncComponent(() => import("./zoom-container-BPbftW_I.js"))
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as useMathRenderer } from "./composables-
|
|
2
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { o as useMathRenderer } from "./composables-BwAY_BDJ.js";
|
|
2
|
+
import { t as error_component_default } from "./error-component-CiIR_1Cg.js";
|
|
3
3
|
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/inline-math.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as useHardenSanitizers } from "./composables-
|
|
1
|
+
import { g as useHardenSanitizers } from "./composables-BwAY_BDJ.js";
|
|
2
2
|
import { t as node_list_default } from "./node-list-CGr_EVtn.js";
|
|
3
|
-
import { t as error_component_default } from "./error-component-
|
|
3
|
+
import { t as error_component_default } from "./error-component-CiIR_1Cg.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/renderers/link.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as useMathRenderer } from "./composables-
|
|
2
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { o as useMathRenderer } from "./composables-BwAY_BDJ.js";
|
|
2
|
+
import { t as error_component_default } from "./error-component-CiIR_1Cg.js";
|
|
3
3
|
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/math.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as useMermaid, s as throttle, z as useControls } from "./composables-
|
|
2
|
-
import "./tooltip-
|
|
3
|
-
import "./button-
|
|
4
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { a as useMermaid, s as throttle, z as useControls } from "./composables-BwAY_BDJ.js";
|
|
2
|
+
import "./tooltip-CA6Kp7Ek.js";
|
|
3
|
+
import "./button-dU2iYZBS.js";
|
|
4
|
+
import { t as error_component_default } from "./error-component-CiIR_1Cg.js";
|
|
5
5
|
import { t as spin_default } from "./spin-Ds5W7qC_.js";
|
|
6
|
-
import { t as zoom_container_default } from "./zoom-container-
|
|
6
|
+
import { t as zoom_container_default } from "./zoom-container-Dlqv-z-t.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, resolveDynamicComponent, toRefs, watch, withCtx } from "vue";
|
|
8
8
|
import { useResizeObserver } from "@vueuse/core";
|
|
9
9
|
|
|
@@ -92,7 +92,11 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
92
92
|
const { controls, mermaidOptions, isDark } = toRefs(props);
|
|
93
93
|
const { isControlEnabled, getControlValue } = useControls({ controls });
|
|
94
94
|
const showControl = computed(() => isControlEnabled("mermaid.position"));
|
|
95
|
-
const controlPosition = computed(() =>
|
|
95
|
+
const controlPosition = computed(() => {
|
|
96
|
+
const position = getControlValue("mermaid.position");
|
|
97
|
+
if (typeof position === "string") return position;
|
|
98
|
+
return "bottom-right";
|
|
99
|
+
});
|
|
96
100
|
const renderFlag = ref(false);
|
|
97
101
|
const svg = ref();
|
|
98
102
|
const containerRef = ref();
|
|
@@ -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-DL0PcUXX.js")),
|
|
6
|
-
mermaid: defineAsyncComponent(() => import("./mermaid-
|
|
6
|
+
mermaid: defineAsyncComponent(() => import("./mermaid-FgnWaZtT.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-dU2iYZBS.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,4 +1,4 @@
|
|
|
1
|
-
import { i as useShiki } from "./composables-
|
|
1
|
+
import { i as useShiki } from "./composables-BwAY_BDJ.js";
|
|
2
2
|
import { t as vanilla_default } from "./vanilla-DkX6g0dm.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeProps, openBlock, ref, toRefs, unref, watch } from "vue";
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as useContext, M as ICONS, O as save, b as tableDataToMarkdown, u as useI18n, v as extractTableDataFromElement, x as tableDataToTSV, y as tableDataToCSV, z as useControls } from "./composables-
|
|
1
|
+
import { B as useContext, M as ICONS, O as save, b as tableDataToMarkdown, u as useI18n, v as extractTableDataFromElement, x as tableDataToTSV, y as tableDataToCSV, z as useControls } from "./composables-BwAY_BDJ.js";
|
|
2
2
|
import { t as node_list_default } from "./node-list-CGr_EVtn.js";
|
|
3
|
-
import "./tooltip-
|
|
4
|
-
import { t as button_default } from "./button-
|
|
3
|
+
import "./tooltip-CA6Kp7Ek.js";
|
|
4
|
+
import { t as button_default } from "./button-dU2iYZBS.js";
|
|
5
5
|
import { t as spin_default } from "./spin-Ds5W7qC_.js";
|
|
6
6
|
import { t as table_default$1 } from "./table-4ec9FVB_.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, withCtx } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as useContext } from "./composables-
|
|
1
|
+
import { B as useContext } from "./composables-BwAY_BDJ.js";
|
|
2
2
|
import { computed, createBlock, createElementVNode, defineComponent, openBlock, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
3
3
|
import { Tippy } from "vue-tippy";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as ICONS, t as useZoom, u as useI18n } from "./composables-
|
|
2
|
-
import { t as button_default } from "./button-
|
|
1
|
+
import { M as ICONS, t as useZoom, u as useI18n } from "./composables-BwAY_BDJ.js";
|
|
2
|
+
import { t as button_default } from "./button-dU2iYZBS.js";
|
|
3
3
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, openBlock, ref, renderSlot, unref } 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.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "Streaming markdown output, Useful for text streams like LLM outputs.",
|
|
6
6
|
"author": "jinghaihan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"vue-tippy": "^6.7.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@antfu/eslint-config": "^6.4.
|
|
62
|
+
"@antfu/eslint-config": "^6.4.2",
|
|
63
63
|
"@antfu/utils": "^9.3.0",
|
|
64
64
|
"@iconify-json/catppuccin": "^1.2.17",
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
65
|
+
"@iconify-json/lucide": "^1.2.79",
|
|
66
66
|
"@types/node": "^24.10.1",
|
|
67
67
|
"@unocss/eslint-plugin": "66.5.9",
|
|
68
68
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"pncat": "^0.7.7",
|
|
87
87
|
"simple-git-hooks": "^2.13.1",
|
|
88
88
|
"taze": "^19.9.2",
|
|
89
|
-
"tsdown": "^0.
|
|
89
|
+
"tsdown": "^0.17.0",
|
|
90
90
|
"tsx": "^4.21.0",
|
|
91
91
|
"typescript": "^5.9.3",
|
|
92
92
|
"unocss": "^66.5.10",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"vite": "^7.2.6",
|
|
96
96
|
"vitepress": "^1.6.4",
|
|
97
97
|
"vitest": "^4.0.15",
|
|
98
|
-
"vue-tsc": "^3.1.
|
|
98
|
+
"vue-tsc": "^3.1.6"
|
|
99
99
|
},
|
|
100
100
|
"simple-git-hooks": {
|
|
101
101
|
"pre-commit": "pnpm lint-staged"
|
package/dist/button-DYIERZf1.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./previewers-CZxK6T54.js";
|
|
2
|
-
import "./composables-5Y9QWb9D.js";
|
|
3
|
-
import "./tooltip-CTUn3Ask.js";
|
|
4
|
-
import "./button-DRLfKbvc.js";
|
|
5
|
-
import "./modal-CuQR21UD.js";
|
|
6
|
-
import { t as code_block_default } from "./code-block-fsdBN3mX.js";
|
|
7
|
-
import "./segmented-CpwUFPie.js";
|
|
8
|
-
|
|
9
|
-
export { code_block_default as default };
|
package/dist/tooltip-TCy0JVGe.js
DELETED