vue-stream-markdown 0.1.0 → 0.1.2
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 -0
- package/dist/button-DBgeYAZy.js +5 -0
- package/dist/{button-DRLfKbvc.js → button-vKhxUL3C.js} +1 -1
- package/dist/{code-D5-TPyJ2.js → code-_dL6Qk0F.js} +7 -7
- package/dist/code-block-DGZ48hb0.js +9 -0
- package/dist/{code-block-fsdBN3mX.js → code-block-wYeMwBck.js} +5 -5
- package/dist/{composables-5Y9QWb9D.js → composables-CZ7YmjNl.js} +33 -34
- package/dist/dropdown-DR-uQ215.js +5 -0
- package/dist/error-component-CKCT9gXy.js +4 -0
- package/dist/{error-component-DftqHZwH.js → error-component-ChEpOmSX.js} +1 -1
- package/dist/{image-dNQ1WKcM.js → image-DB-4Sv8R.js} +4 -4
- package/dist/index.css +633 -8
- package/dist/index.d.ts +32 -30
- package/dist/index.js +16 -15
- package/dist/{inline-math-D8LY9Xgq.js → inline-math-rChhv_1j.js} +2 -2
- package/dist/{link-Dkfv0bTE.js → link-CJk67Kbh.js} +2 -2
- package/dist/{math-G8p5HNSV.js → math-ZLxqHT_f.js} +2 -2
- package/dist/{mermaid-BAFHxaTS.js → mermaid-CNFU7Pg8.js} +10 -6
- package/dist/{previewers-CZxK6T54.js → previewers-CMreQ4TA.js} +1 -1
- package/dist/segmented-63wrfRNo.js +6 -0
- package/dist/{segmented-CpwUFPie.js → segmented-RoWxDIP3.js} +1 -1
- package/dist/{shiki-CxPfBPEr.js → shiki-4529WbJJ.js} +1 -1
- package/dist/{table-BSGtENN1.js → table-BmGwZIPR.js} +3 -3
- package/dist/tooltip--rusT8LZ.js +4 -0
- package/dist/{tooltip-CTUn3Ask.js → tooltip-KcTe6tBF.js} +1 -1
- package/dist/zoom-container-C-CB2LTY.js +6 -0
- package/dist/{zoom-container-BR9gRA9_.js → zoom-container-D1Mys9gv.js} +8 -10
- package/package.json +6 -5
- package/dist/blockquote-DFANmQEB.css +0 -13
- package/dist/button-C12sn_G5.css +0 -24
- package/dist/button-DYIERZf1.js +0 -5
- package/dist/code-NAXHb0o2.css +0 -4
- package/dist/code-block-Cs17aZ52.js +0 -9
- package/dist/code-block-D2zjJAww.css +0 -57
- package/dist/delete-Ci7IJDoT.css +0 -4
- package/dist/dropdown-BegRJmej.js +0 -5
- package/dist/emphasis-BseYvUae.css +0 -4
- package/dist/error-component-BIPPxd-M.css +0 -21
- package/dist/error-component-BkdZ6n2L.js +0 -4
- package/dist/heading-KxpVX3-u.css +0 -30
- package/dist/html-C5_wsY4-.css +0 -5
- package/dist/image-B77jbMUB.css +0 -46
- package/dist/inline-code-Eo65bj3F.css +0 -12
- package/dist/inline-math-DgBjIrPT.css +0 -7
- package/dist/link-BA_j8di3.css +0 -12
- package/dist/list-CcVBNIly.css +0 -11
- package/dist/list-item-Y6Cphjrp.css +0 -15
- package/dist/math-Cq89zpB6.css +0 -11
- package/dist/mermaid-C9ZUejzK.css +0 -8
- package/dist/modal-CWdgVkH_.css +0 -48
- package/dist/node-list-C9O-A1aZ.css +0 -11
- package/dist/paragraph-wRNmMYAI.css +0 -6
- package/dist/segmented-DLmggl-e.css +0 -8
- package/dist/segmented-DQFlS2_3.js +0 -6
- package/dist/shiki-CMgjqKKu.css +0 -20
- package/dist/spin-B2FU3Sx6.css +0 -19
- package/dist/strong-DpeQmP2J.css +0 -4
- package/dist/table-BWn_kG8W.css +0 -19
- package/dist/table-CJzlDdmv.css +0 -34
- package/dist/text-D098eCyi.css +0 -5
- package/dist/thematic-break-C5zxgoE9.css +0 -6
- package/dist/tooltip-DAngu9Wp.css +0 -5
- package/dist/tooltip-TCy0JVGe.js +0 -4
- package/dist/vanilla-BZ8bn5Yz.css +0 -4
- package/dist/yaml-McBkYbxI.css +0 -5
- package/dist/zoom-container-BENM7TpV.css +0 -28
- package/dist/zoom-container-qe4wO3zY.js +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue7 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: vue7.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: vue7.ComputedRef<HardenOptions>;
|
|
383
385
|
transformHardenUrl: (url: string) => string | null;
|
|
384
|
-
transformedUrl:
|
|
385
|
-
isHardenUrl:
|
|
386
|
+
transformedUrl: vue7.ComputedRef<string | null>;
|
|
387
|
+
isHardenUrl: vue7.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: vue7.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: vue7.Ref<string, string>;
|
|
414
|
+
error: vue7.ComputedRef<boolean>;
|
|
415
|
+
errorMessage: vue7.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: vue7.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: vue7.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: vue7.ComputedRef<Element | undefined>;
|
|
452
454
|
id: string;
|
|
453
|
-
css:
|
|
455
|
+
css: vue7.ShallowRef<string>;
|
|
454
456
|
load: () => void;
|
|
455
457
|
unload: () => void;
|
|
456
|
-
isLoaded: Readonly<
|
|
458
|
+
isLoaded: Readonly<vue7.ShallowRef<boolean>>;
|
|
457
459
|
generateCSS: () => void;
|
|
458
460
|
};
|
|
459
461
|
//#endregion
|
|
@@ -482,19 +484,19 @@ 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: vue7.Ref<number, number>;
|
|
488
|
+
translateX: vue7.Ref<number, number>;
|
|
489
|
+
translateY: vue7.Ref<number, number>;
|
|
490
|
+
isDragging: vue7.Ref<boolean, boolean>;
|
|
491
|
+
transformStyle: vue7.ComputedRef<{
|
|
490
492
|
transform: string;
|
|
491
493
|
}>;
|
|
492
494
|
zoomIn: () => void;
|
|
493
495
|
zoomOut: () => void;
|
|
494
496
|
resetZoom: () => void;
|
|
495
497
|
setZoom: (value: number) => void;
|
|
496
|
-
startDrag: (e:
|
|
497
|
-
onDrag: (e:
|
|
498
|
+
startDrag: (e: PointerEvent) => void;
|
|
499
|
+
onDrag: (e: PointerEvent) => void;
|
|
498
500
|
stopDrag: () => void;
|
|
499
501
|
handleWheel: (event: WheelEvent, containerElement: HTMLElement) => void;
|
|
500
502
|
getState: () => ZoomPanState;
|
|
@@ -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: vue7.DefineComponent<StreamMarkdownProps, {
|
|
522
524
|
getMarkdownParser: () => MarkdownParser;
|
|
523
525
|
getParsedNodes: () => ParsedNode[];
|
|
524
|
-
}, {}, {}, {},
|
|
526
|
+
}, {}, {}, {}, vue7.ComponentOptionsMixin, vue7.ComponentOptionsMixin, {} & {
|
|
525
527
|
copied: (content: string) => any;
|
|
526
|
-
}, string,
|
|
528
|
+
}, string, vue7.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", vue7.Component>>;
|
|
532
534
|
locale: string | LocaleConfig;
|
|
533
535
|
controls: ControlsConfig;
|
|
534
536
|
previewers: PreviewerConfig;
|
|
535
537
|
isDark: boolean;
|
|
536
|
-
}, {}, {}, {}, string,
|
|
538
|
+
}, {}, {}, {}, string, vue7.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: vue7.Ref<LocaleConfig | undefined, LocaleConfig | undefined>;
|
|
545
|
+
declare const currentLocale: vue7.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-CMreQ4TA.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-CZ7YmjNl.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-_dL6Qk0F.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-DB-4Sv8R.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-rChhv_1j.js")),
|
|
61
|
+
link: defineAsyncComponent(() => import("./link-CJk67Kbh.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-ZLxqHT_f.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-BmGwZIPR.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-DBgeYAZy.js")),
|
|
77
|
+
CodeBlock: defineAsyncComponent(() => import("./code-block-DGZ48hb0.js")),
|
|
78
|
+
Dropdown: defineAsyncComponent(() => import("./dropdown-DR-uQ215.js")),
|
|
79
|
+
ErrorComponent: defineAsyncComponent(() => import("./error-component-CKCT9gXy.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-63wrfRNo.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--rusT8LZ.js")),
|
|
86
|
+
ZoomContainer: defineAsyncComponent(() => import("./zoom-container-C-CB2LTY.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-CZ7YmjNl.js";
|
|
2
|
+
import { t as error_component_default } from "./error-component-ChEpOmSX.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-CZ7YmjNl.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-ChEpOmSX.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-CZ7YmjNl.js";
|
|
2
|
+
import { t as error_component_default } from "./error-component-ChEpOmSX.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-CZ7YmjNl.js";
|
|
2
|
+
import "./tooltip-KcTe6tBF.js";
|
|
3
|
+
import "./button-vKhxUL3C.js";
|
|
4
|
+
import { t as error_component_default } from "./error-component-ChEpOmSX.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-D1Mys9gv.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-CNFU7Pg8.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-vKhxUL3C.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-CZ7YmjNl.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-CZ7YmjNl.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-KcTe6tBF.js";
|
|
4
|
+
import { t as button_default } from "./button-vKhxUL3C.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-CZ7YmjNl.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,6 +1,6 @@
|
|
|
1
|
-
import { M as ICONS, t as useZoom, u as useI18n } from "./composables-
|
|
2
|
-
import { t as button_default } from "./button-
|
|
3
|
-
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, openBlock, ref, renderSlot, unref } from "vue";
|
|
1
|
+
import { M as ICONS, t as useZoom, u as useI18n } from "./composables-CZ7YmjNl.js";
|
|
2
|
+
import { t as button_default } from "./button-vKhxUL3C.js";
|
|
3
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, openBlock, ref, renderSlot, unref, withModifiers } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/zoom-container.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
const _hoisted_1 = { "data-stream-markdown": "zoom-inner" };
|
|
@@ -54,13 +54,11 @@ var zoom_container_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
54
54
|
ref: containerRef,
|
|
55
55
|
"data-stream-markdown": "zoom-container",
|
|
56
56
|
onWheel,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
onTouchmovePassive: _cache[5] || (_cache[5] = (...args) => unref(onDrag) && unref(onDrag)(...args)),
|
|
63
|
-
onTouchendPassive: _cache[6] || (_cache[6] = (...args) => unref(stopDrag) && unref(stopDrag)(...args))
|
|
57
|
+
onPointerdown: _cache[0] || (_cache[0] = withModifiers((...args) => unref(startDrag) && unref(startDrag)(...args), ["prevent"])),
|
|
58
|
+
onPointermove: _cache[1] || (_cache[1] = withModifiers((...args) => unref(onDrag) && unref(onDrag)(...args), ["prevent"])),
|
|
59
|
+
onPointerup: _cache[2] || (_cache[2] = withModifiers((...args) => unref(stopDrag) && unref(stopDrag)(...args), ["prevent"])),
|
|
60
|
+
onPointercancel: _cache[3] || (_cache[3] = withModifiers((...args) => unref(stopDrag) && unref(stopDrag)(...args), ["prevent"])),
|
|
61
|
+
onPointerleave: _cache[4] || (_cache[4] = withModifiers((...args) => unref(stopDrag) && unref(stopDrag)(...args), ["prevent"]))
|
|
64
62
|
}, [__props.showControl ? (openBlock(), createElementBlock("div", {
|
|
65
63
|
key: 0,
|
|
66
64
|
"data-stream-markdown": "zoom-controls",
|
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.2",
|
|
5
5
|
"description": "Streaming markdown output, Useful for text streams like LLM outputs.",
|
|
6
6
|
"author": "jinghaihan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"exports": {
|
|
26
26
|
".": "./dist/index.js",
|
|
27
|
+
"./index.css": "./dist/index.css",
|
|
27
28
|
"./theme.css": "./dist/theme.css",
|
|
28
29
|
"./package.json": "./package.json"
|
|
29
30
|
},
|
|
@@ -59,10 +60,10 @@
|
|
|
59
60
|
"vue-tippy": "^6.7.1"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@antfu/eslint-config": "^6.4.
|
|
63
|
+
"@antfu/eslint-config": "^6.4.2",
|
|
63
64
|
"@antfu/utils": "^9.3.0",
|
|
64
65
|
"@iconify-json/catppuccin": "^1.2.17",
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
66
|
+
"@iconify-json/lucide": "^1.2.79",
|
|
66
67
|
"@types/node": "^24.10.1",
|
|
67
68
|
"@unocss/eslint-plugin": "66.5.9",
|
|
68
69
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
"pncat": "^0.7.7",
|
|
87
88
|
"simple-git-hooks": "^2.13.1",
|
|
88
89
|
"taze": "^19.9.2",
|
|
89
|
-
"tsdown": "^0.
|
|
90
|
+
"tsdown": "^0.17.0",
|
|
90
91
|
"tsx": "^4.21.0",
|
|
91
92
|
"typescript": "^5.9.3",
|
|
92
93
|
"unocss": "^66.5.10",
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
"vite": "^7.2.6",
|
|
96
97
|
"vitepress": "^1.6.4",
|
|
97
98
|
"vitest": "^4.0.15",
|
|
98
|
-
"vue-tsc": "^3.1.
|
|
99
|
+
"vue-tsc": "^3.1.6"
|
|
99
100
|
},
|
|
100
101
|
"simple-git-hooks": {
|
|
101
102
|
"pre-commit": "pnpm lint-staged"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
.stream-markdown [data-stream-markdown="blockquote"] {
|
|
2
|
-
border-left: 4px solid color-mix(in oklab, var(--muted-foreground) 30%, transparent);
|
|
3
|
-
color: var(--muted-foreground);
|
|
4
|
-
margin-block: 1rem;
|
|
5
|
-
margin-inline: 0;
|
|
6
|
-
padding-left: 1rem;
|
|
7
|
-
font-style: italic;
|
|
8
|
-
position: relative;
|
|
9
|
-
}
|
|
10
|
-
.stream-markdown [data-stream-markdown="blockquote"] p {
|
|
11
|
-
margin-bottom: 0;
|
|
12
|
-
}
|
|
13
|
-
|
package/dist/button-C12sn_G5.css
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.stream-markdown [data-stream-markdown="dropdown-overlay"] {
|
|
2
|
-
padding: .25rem;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.stream-markdown [data-stream-markdown="button"] {
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
color: var(--muted-foreground);
|
|
8
|
-
transition-duration: var(--default-transition-duration);
|
|
9
|
-
background-color: #0000;
|
|
10
|
-
border: none;
|
|
11
|
-
border-radius: .375rem;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: .25rem;
|
|
15
|
-
padding: .5rem;
|
|
16
|
-
font-size: .75rem;
|
|
17
|
-
line-height: 1rem;
|
|
18
|
-
display: flex;
|
|
19
|
-
}
|
|
20
|
-
.stream-markdown [data-stream-markdown="button"]:hover {
|
|
21
|
-
color: var(--foreground);
|
|
22
|
-
background-color: var(--accent);
|
|
23
|
-
}
|
|
24
|
-
|
package/dist/button-DYIERZf1.js
DELETED
package/dist/code-NAXHb0o2.css
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 };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
.stream-markdown [data-stream-markdown="actions"] {
|
|
2
|
-
align-items: center;
|
|
3
|
-
gap: .25rem;
|
|
4
|
-
display: flex;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.stream-markdown [data-stream-markdown="language-title"] {
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: .5rem;
|
|
10
|
-
display: flex;
|
|
11
|
-
}
|
|
12
|
-
.stream-markdown [data-stream-markdown="language-name"] {
|
|
13
|
-
font-family: var(--font-mono);
|
|
14
|
-
text-transform: lowercase;
|
|
15
|
-
font-size: .875rem;
|
|
16
|
-
line-height: 1.25rem;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.stream-markdown [data-stream-markdown="code-block"] {
|
|
20
|
-
border: 1px solid var(--border);
|
|
21
|
-
border-radius: .75rem;
|
|
22
|
-
margin-block: 1rem;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
}
|
|
25
|
-
.stream-markdown [data-stream-markdown="code-block"][data-collapsed="true"] [data-stream-markdown="code-block-header"] {
|
|
26
|
-
border-bottom: none;
|
|
27
|
-
}
|
|
28
|
-
.stream-markdown [data-stream-markdown="code-block-header"] {
|
|
29
|
-
border-bottom: 1px solid var(--border);
|
|
30
|
-
background-color: color-mix(in oklab, var(--muted) 80%, transparent);
|
|
31
|
-
color: var(--muted-foreground);
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
align-items: center;
|
|
34
|
-
padding-block: .375rem;
|
|
35
|
-
padding-inline: 1rem;
|
|
36
|
-
font-size: .875rem;
|
|
37
|
-
line-height: 1.25rem;
|
|
38
|
-
display: flex;
|
|
39
|
-
position: relative;
|
|
40
|
-
}
|
|
41
|
-
.stream-markdown [data-stream-markdown="code-block-content"] {
|
|
42
|
-
overflow: auto;
|
|
43
|
-
}
|
|
44
|
-
.stream-markdown [data-stream-markdown="code-block-header"] > :first-child {
|
|
45
|
-
flex: 1;
|
|
46
|
-
}
|
|
47
|
-
.stream-markdown [data-stream-markdown="code-block-header"] > :last-child {
|
|
48
|
-
flex: 1;
|
|
49
|
-
justify-content: flex-end;
|
|
50
|
-
display: flex;
|
|
51
|
-
}
|
|
52
|
-
.stream-markdown [data-stream-markdown="code-block-header"] > :nth-child(2) {
|
|
53
|
-
position: absolute;
|
|
54
|
-
left: 50%;
|
|
55
|
-
transform: translateX(-50%);
|
|
56
|
-
}
|
|
57
|
-
|
package/dist/delete-Ci7IJDoT.css
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.stream-markdown [data-stream-markdown="error-component"] {
|
|
2
|
-
color: var(--muted-foreground);
|
|
3
|
-
font-family: var(--font-mono);
|
|
4
|
-
font-size: .875rem;
|
|
5
|
-
line-height: 1.25rem;
|
|
6
|
-
display: inline-block;
|
|
7
|
-
}
|
|
8
|
-
.stream-markdown [data-stream-markdown="error-component"] span {
|
|
9
|
-
word-break: break-word;
|
|
10
|
-
overflow-wrap: break-word;
|
|
11
|
-
flex: 1;
|
|
12
|
-
min-width: 0;
|
|
13
|
-
}
|
|
14
|
-
.stream-markdown [data-stream-markdown="error-component-icon"] {
|
|
15
|
-
vertical-align: text-bottom;
|
|
16
|
-
align-items: center;
|
|
17
|
-
margin-right: .5rem;
|
|
18
|
-
line-height: 1;
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
}
|
|
21
|
-
|