vue-stream-markdown 0.2.0 → 0.2.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/{blockquote-C68fU4lp.js → blockquote-Bv0immvx.js} +2 -2
- package/dist/{button-BDO3n0n_.js → button-CRnH8Rzt.js} +2 -2
- package/dist/button-CpZL9Dhf.js +6 -0
- package/dist/{code-2Dd0EGfm.js → code-BcAa_-2j.js} +10 -10
- package/dist/code-block-C1Hz5oQb.js +10 -0
- package/dist/{code-block-hQLDeAmP.js → code-block-mylXl6jG.js} +6 -6
- package/dist/{composables-DuQ72m6O.js → composables-CL-BX9Ri.js} +76 -15
- package/dist/{delete-CB-OS2WZ.js → delete-drdYWAXs.js} +2 -2
- package/dist/dropdown-CS5Df_eY.js +6 -0
- package/dist/{emphasis-BmUoyBRK.js → emphasis-CdEFGQdu.js} +2 -2
- package/dist/error-component-Csr-ujUx.js +5 -0
- package/dist/{error-component-CtZr0_st.js → error-component-xzXxODeR.js} +2 -2
- package/dist/{footnote-definition-55TjXXwa.js → footnote-definition-BTSXdQZi.js} +5 -5
- package/dist/{footnote-reference-lk2rvC4Q.js → footnote-reference-CV_67vK7.js} +1 -1
- package/dist/{heading-BlOK3uk2.js → heading-BH7urRHb.js} +2 -2
- package/dist/icon-DcKmEBsy.js +4 -0
- package/dist/{icon-PEivHbuv.js → icon-MRs2P5TP.js} +1 -1
- package/dist/image-BRCbBLI5.js +9 -0
- package/dist/{image-Bqn98dDB.js → image-Bo_26KHM.js} +8 -8
- package/dist/{image-VMGQj_VU.js → image-BypX6qku.js} +4 -4
- package/dist/{index.css/index.css → index.css} +13 -0
- package/dist/index.d.ts +497 -74
- package/dist/index.js +42 -32
- package/dist/{inline-math--lfq9WCW.js → inline-math-DFUJNhmp.js} +3 -3
- package/dist/{link-DAOjAX6n.js → link-ClKb1qAC.js} +4 -4
- package/dist/{list-EOEqkWEi.js → list-BdM_gwie.js} +2 -2
- package/dist/{list-item-ZG4eadLp.js → list-item-DaRd7Yu3.js} +2 -2
- package/dist/{math-3zyrsc0O.js → math-CLweuHzM.js} +3 -3
- package/dist/{mermaid-VkvXdOuQ.js → mermaid-CyLU2UYz.js} +6 -6
- package/dist/modal-JW5JgjbN.js +4 -0
- package/dist/{modal-DrPdD2g1.js → modal-vHG2jmSe.js} +1 -1
- package/dist/{node-list-D7eKaZGS.js → node-list-3yGs9Kcx.js} +1 -1
- package/dist/node-list-Cl7nXqfm.js +4 -0
- package/dist/{paragraph-DEyWEFYY.js → paragraph-LV8LrqLS.js} +2 -2
- package/dist/{previewers-DYnyVv4Y.js → previewers-BUz7EQbB.js} +1 -1
- package/dist/{segmented-CeLXMLZa.js → segmented-ChmGPy3i.js} +1 -1
- package/dist/segmented-STxjOAhU.js +7 -0
- package/dist/{shiki-Dgoch7Q6.js → shiki-Dp1kiUyz.js} +35 -10
- package/dist/{shiki-token-renderer-BjxmGfXH.js → shiki-token-renderer-l2VX-xoX.js} +4 -2
- package/dist/{strong-CFjQLk1h.js → strong-CcKSE5Jo.js} +2 -2
- package/dist/{table-DI25RphX.js → table-Bk4vJ8-K.js} +5 -5
- package/dist/tooltip-BElCxO8W.js +4 -0
- package/dist/{tooltip-CnO7OPL1.js → tooltip-DkCGsj0S.js} +2 -2
- package/dist/vanilla-79xxpygI.js +4 -0
- package/dist/{vanilla-YFxsSfhA.js → vanilla-D2g3JpWZ.js} +1 -1
- package/dist/zoom-container-C5vP44cr.js +7 -0
- package/dist/{zoom-container-CrKx_BbS.js → zoom-container-H5FZmzwY.js} +2 -2
- package/package.json +3 -3
- package/dist/button-CdUyT8T_.js +0 -6
- package/dist/code-block-Co2UoPPS.js +0 -10
- package/dist/dropdown-BB3nyts8.js +0 -6
- package/dist/error-component-biOT0E-h.js +0 -5
- package/dist/icon-mUoYnA6R.js +0 -4
- package/dist/image-B6Pw2YBI.js +0 -9
- package/dist/modal-BKzT1TQI.js +0 -4
- package/dist/node-list-DtNGUnnI.js +0 -4
- package/dist/segmented-6Ch-Ees3.js +0 -7
- package/dist/tooltip-CAyfm3_l.js +0 -4
- package/dist/vanilla-BZ1fQWZQ.js +0 -4
- package/dist/zoom-container-j4kY9qX_.js +0 -7
- /package/dist/{theme.css/theme.css → theme.css} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue209 from "vue";
|
|
2
2
|
import { CSSProperties, Component, MaybeRef, MaybeRefOrGetter } from "vue";
|
|
3
|
-
import * as
|
|
4
|
-
import { Placement } from "@floating-ui/
|
|
3
|
+
import * as _floating_ui_dom0 from "@floating-ui/dom";
|
|
4
|
+
import { Placement } from "@floating-ui/dom";
|
|
5
5
|
import { MarkdownItAsync } from "markdown-it-async";
|
|
6
6
|
import { KatexOptions as KatexOptions$1 } from "katex";
|
|
7
7
|
import remend from "remend";
|
|
@@ -261,30 +261,36 @@ declare const DEFAULT_HARDEN_OPTIONS: HardenOptions;
|
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region src/constants/icons.d.ts
|
|
263
263
|
declare const ICONS: {
|
|
264
|
-
readonly arrowLeft:
|
|
265
|
-
readonly check:
|
|
266
|
-
readonly code:
|
|
267
|
-
readonly collapse:
|
|
268
|
-
readonly copy:
|
|
269
|
-
readonly cornerDownLeft:
|
|
270
|
-
readonly download:
|
|
271
|
-
readonly error:
|
|
272
|
-
readonly flipHorizontal:
|
|
273
|
-
readonly image:
|
|
274
|
-
readonly link:
|
|
275
|
-
readonly maximize:
|
|
276
|
-
readonly mermaid:
|
|
277
|
-
readonly minimize:
|
|
278
|
-
readonly preview:
|
|
279
|
-
readonly rotateLeft:
|
|
280
|
-
readonly zoomIn:
|
|
281
|
-
readonly zoomOut:
|
|
264
|
+
readonly arrowLeft: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
265
|
+
readonly check: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
266
|
+
readonly code: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
267
|
+
readonly collapse: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
268
|
+
readonly copy: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
269
|
+
readonly cornerDownLeft: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
270
|
+
readonly download: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
271
|
+
readonly error: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
272
|
+
readonly flipHorizontal: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
273
|
+
readonly image: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
274
|
+
readonly link: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
275
|
+
readonly maximize: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
276
|
+
readonly mermaid: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
277
|
+
readonly minimize: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
278
|
+
readonly preview: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
279
|
+
readonly rotateLeft: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
280
|
+
readonly zoomIn: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
281
|
+
readonly zoomOut: vue209.FunctionalComponent<vue209.SVGAttributes, {}, any, {}>;
|
|
282
282
|
};
|
|
283
283
|
//#endregion
|
|
284
|
+
//#region src/constants/preload.d.ts
|
|
285
|
+
declare const PRELOAD_NODE_RENDERER: BuiltinNodeRenderers[];
|
|
286
|
+
//#endregion
|
|
284
287
|
//#region src/constants/theme.d.ts
|
|
285
288
|
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"];
|
|
286
289
|
//#endregion
|
|
287
290
|
//#region src/types/shared.d.ts
|
|
291
|
+
type BuiltinNodeRenderers = keyof typeof NODE_RENDERERS;
|
|
292
|
+
type BuiltinPreviewers = 'mermaid' | 'html';
|
|
293
|
+
type BuiltinUIComponents = keyof typeof UI;
|
|
288
294
|
type OptionalIconName = 'flipVertical' | 'rotateRight' | 'arrowRight';
|
|
289
295
|
type IconName = keyof typeof ICONS;
|
|
290
296
|
type Icons = Record<IconName, Component> & Partial<Record<OptionalIconName, Component>> & Record<string, Component>;
|
|
@@ -318,9 +324,13 @@ interface StreamMarkdownProps extends StreamMarkdownContext, MarkdownParserOptio
|
|
|
318
324
|
content?: string;
|
|
319
325
|
nodeRenderers?: NodeRenderers;
|
|
320
326
|
icons?: Partial<Icons>;
|
|
327
|
+
preload?: PreloadConfig;
|
|
321
328
|
locale?: string | LocaleConfig;
|
|
322
329
|
enableAnimate?: boolean;
|
|
323
330
|
}
|
|
331
|
+
interface PreloadConfig {
|
|
332
|
+
nodeRenderers?: BuiltinNodeRenderers[];
|
|
333
|
+
}
|
|
324
334
|
interface MarkdownParserOptions {
|
|
325
335
|
mdastOptions?: MdastOptions;
|
|
326
336
|
normalize?: (content: string) => string;
|
|
@@ -437,7 +447,417 @@ interface HardenOptions {
|
|
|
437
447
|
declare const NODE_RENDERERS: NodeRenderers;
|
|
438
448
|
//#endregion
|
|
439
449
|
//#region src/components/index.d.ts
|
|
440
|
-
declare const UI:
|
|
450
|
+
declare const UI: {
|
|
451
|
+
readonly Button: vue209.DefineComponent<ButtonProps, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {} & {
|
|
452
|
+
click: (event: MouseEvent, item?: SelectOption | undefined) => any;
|
|
453
|
+
}, string, vue209.PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
454
|
+
onClick?: ((event: MouseEvent, item?: SelectOption | undefined) => any) | undefined;
|
|
455
|
+
}>, {
|
|
456
|
+
variant: "icon" | "text";
|
|
457
|
+
buttonStyle: vue209.CSSProperties;
|
|
458
|
+
iconWidth: number;
|
|
459
|
+
iconHeight: number;
|
|
460
|
+
iconStyle: vue209.CSSProperties;
|
|
461
|
+
options: SelectOption[];
|
|
462
|
+
}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
|
|
463
|
+
readonly CodeBlock: {
|
|
464
|
+
new (...args: any[]): vue209.CreateComponentPublicInstanceWithMixins<Readonly<CodeNodeRendererProps> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, vue209.PublicProps, {}, false, {}, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, {}, any, vue209.ComponentProvideOptions, {
|
|
465
|
+
P: {};
|
|
466
|
+
B: {};
|
|
467
|
+
D: {};
|
|
468
|
+
C: {};
|
|
469
|
+
M: {};
|
|
470
|
+
Defaults: {};
|
|
471
|
+
}, Readonly<CodeNodeRendererProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
472
|
+
__isFragment?: never;
|
|
473
|
+
__isTeleport?: never;
|
|
474
|
+
__isSuspense?: never;
|
|
475
|
+
} & vue209.ComponentOptionsBase<Readonly<CodeNodeRendererProps> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, vue209.ComponentProvideOptions> & vue209.VNodeProps & vue209.AllowedComponentProps & vue209.ComponentCustomProps & (new () => {
|
|
476
|
+
$slots: {
|
|
477
|
+
title?: (props: {}) => any;
|
|
478
|
+
} & {
|
|
479
|
+
'header-center'?: (props: {}) => any;
|
|
480
|
+
} & {
|
|
481
|
+
actions?: (props: {}) => any;
|
|
482
|
+
} & {
|
|
483
|
+
default?: (props: {}) => any;
|
|
484
|
+
};
|
|
485
|
+
});
|
|
486
|
+
readonly Dropdown: {
|
|
487
|
+
new (...args: any[]): vue209.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
488
|
+
title?: string;
|
|
489
|
+
options?: SelectOption[];
|
|
490
|
+
}> & Readonly<{
|
|
491
|
+
onClick?: ((event: MouseEvent, item: SelectOption) => any) | undefined;
|
|
492
|
+
}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {} & {
|
|
493
|
+
click: (event: MouseEvent, item: SelectOption) => any;
|
|
494
|
+
}, vue209.PublicProps, {
|
|
495
|
+
options: SelectOption[];
|
|
496
|
+
}, false, {}, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, {}, any, vue209.ComponentProvideOptions, {
|
|
497
|
+
P: {};
|
|
498
|
+
B: {};
|
|
499
|
+
D: {};
|
|
500
|
+
C: {};
|
|
501
|
+
M: {};
|
|
502
|
+
Defaults: {};
|
|
503
|
+
}, Readonly<{
|
|
504
|
+
title?: string;
|
|
505
|
+
options?: SelectOption[];
|
|
506
|
+
}> & Readonly<{
|
|
507
|
+
onClick?: ((event: MouseEvent, item: SelectOption) => any) | undefined;
|
|
508
|
+
}>, {}, {}, {}, {}, {
|
|
509
|
+
options: SelectOption[];
|
|
510
|
+
}>;
|
|
511
|
+
__isFragment?: never;
|
|
512
|
+
__isTeleport?: never;
|
|
513
|
+
__isSuspense?: never;
|
|
514
|
+
} & vue209.ComponentOptionsBase<Readonly<{
|
|
515
|
+
title?: string;
|
|
516
|
+
options?: SelectOption[];
|
|
517
|
+
}> & Readonly<{
|
|
518
|
+
onClick?: ((event: MouseEvent, item: SelectOption) => any) | undefined;
|
|
519
|
+
}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {} & {
|
|
520
|
+
click: (event: MouseEvent, item: SelectOption) => any;
|
|
521
|
+
}, string, {
|
|
522
|
+
options: SelectOption[];
|
|
523
|
+
}, {}, string, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, vue209.ComponentProvideOptions> & vue209.VNodeProps & vue209.AllowedComponentProps & vue209.ComponentCustomProps & (new () => {
|
|
524
|
+
$slots: {
|
|
525
|
+
default?: (props: {}) => any;
|
|
526
|
+
};
|
|
527
|
+
});
|
|
528
|
+
readonly ErrorComponent: {
|
|
529
|
+
new (...args: any[]): vue209.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
530
|
+
variant?: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
531
|
+
icon?: string | vue209.Component;
|
|
532
|
+
message?: string;
|
|
533
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, vue209.PublicProps, {
|
|
534
|
+
variant: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
535
|
+
}, false, {}, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, {}, any, vue209.ComponentProvideOptions, {
|
|
536
|
+
P: {};
|
|
537
|
+
B: {};
|
|
538
|
+
D: {};
|
|
539
|
+
C: {};
|
|
540
|
+
M: {};
|
|
541
|
+
Defaults: {};
|
|
542
|
+
}, Readonly<{
|
|
543
|
+
variant?: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
544
|
+
icon?: string | vue209.Component;
|
|
545
|
+
message?: string;
|
|
546
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
547
|
+
variant: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
548
|
+
}>;
|
|
549
|
+
__isFragment?: never;
|
|
550
|
+
__isTeleport?: never;
|
|
551
|
+
__isSuspense?: never;
|
|
552
|
+
} & vue209.ComponentOptionsBase<Readonly<{
|
|
553
|
+
variant?: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
554
|
+
icon?: string | vue209.Component;
|
|
555
|
+
message?: string;
|
|
556
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, {
|
|
557
|
+
variant: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
558
|
+
}, {}, string, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, vue209.ComponentProvideOptions> & vue209.VNodeProps & vue209.AllowedComponentProps & vue209.ComponentCustomProps & (new () => {
|
|
559
|
+
$slots: {
|
|
560
|
+
default?: (props: {}) => any;
|
|
561
|
+
};
|
|
562
|
+
});
|
|
563
|
+
readonly Icon: vue209.DefineComponent<{
|
|
564
|
+
icon: string | vue209.Component;
|
|
565
|
+
width?: number;
|
|
566
|
+
height?: number;
|
|
567
|
+
class?: string | string[] | Record<string, unknown>;
|
|
568
|
+
style?: vue209.CSSProperties;
|
|
569
|
+
}, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, vue209.PublicProps, Readonly<{
|
|
570
|
+
icon: string | vue209.Component;
|
|
571
|
+
width?: number;
|
|
572
|
+
height?: number;
|
|
573
|
+
class?: string | string[] | Record<string, unknown>;
|
|
574
|
+
style?: vue209.CSSProperties;
|
|
575
|
+
}> & Readonly<{}>, {
|
|
576
|
+
width: number;
|
|
577
|
+
height: number;
|
|
578
|
+
}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
|
|
579
|
+
readonly Image: vue209.DefineComponent<{
|
|
580
|
+
src?: string;
|
|
581
|
+
alt?: string;
|
|
582
|
+
title?: string;
|
|
583
|
+
preview?: boolean;
|
|
584
|
+
margin?: number;
|
|
585
|
+
controls?: ControlsConfig;
|
|
586
|
+
transformHardenUrl?: (url: string) => string | null;
|
|
587
|
+
nodeProps: ImageNodeRendererProps;
|
|
588
|
+
}, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {} & {
|
|
589
|
+
load: (event: Event) => any;
|
|
590
|
+
error: (event: Event) => any;
|
|
591
|
+
}, string, vue209.PublicProps, Readonly<{
|
|
592
|
+
src?: string;
|
|
593
|
+
alt?: string;
|
|
594
|
+
title?: string;
|
|
595
|
+
preview?: boolean;
|
|
596
|
+
margin?: number;
|
|
597
|
+
controls?: ControlsConfig;
|
|
598
|
+
transformHardenUrl?: (url: string) => string | null;
|
|
599
|
+
nodeProps: ImageNodeRendererProps;
|
|
600
|
+
}> & Readonly<{
|
|
601
|
+
onLoad?: ((event: Event) => any) | undefined;
|
|
602
|
+
onError?: ((event: Event) => any) | undefined;
|
|
603
|
+
}>, {
|
|
604
|
+
controls: ControlsConfig;
|
|
605
|
+
preview: boolean;
|
|
606
|
+
margin: number;
|
|
607
|
+
}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
|
|
608
|
+
readonly Modal: {
|
|
609
|
+
new (...args: any[]): vue209.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
610
|
+
title?: string;
|
|
611
|
+
zIndex?: number;
|
|
612
|
+
modalStyle?: vue209.CSSProperties;
|
|
613
|
+
headerStyle?: vue209.CSSProperties;
|
|
614
|
+
transition?: string;
|
|
615
|
+
close?: () => void;
|
|
616
|
+
} & {
|
|
617
|
+
open?: boolean;
|
|
618
|
+
}> & Readonly<{
|
|
619
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
620
|
+
}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {
|
|
621
|
+
"update:open": (value: boolean) => any;
|
|
622
|
+
}, vue209.PublicProps, {
|
|
623
|
+
zIndex: number;
|
|
624
|
+
transition: string;
|
|
625
|
+
}, false, {}, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, {}, any, vue209.ComponentProvideOptions, {
|
|
626
|
+
P: {};
|
|
627
|
+
B: {};
|
|
628
|
+
D: {};
|
|
629
|
+
C: {};
|
|
630
|
+
M: {};
|
|
631
|
+
Defaults: {};
|
|
632
|
+
}, Readonly<{
|
|
633
|
+
title?: string;
|
|
634
|
+
zIndex?: number;
|
|
635
|
+
modalStyle?: vue209.CSSProperties;
|
|
636
|
+
headerStyle?: vue209.CSSProperties;
|
|
637
|
+
transition?: string;
|
|
638
|
+
close?: () => void;
|
|
639
|
+
} & {
|
|
640
|
+
open?: boolean;
|
|
641
|
+
}> & Readonly<{
|
|
642
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
643
|
+
}>, {}, {}, {}, {}, {
|
|
644
|
+
zIndex: number;
|
|
645
|
+
transition: string;
|
|
646
|
+
}>;
|
|
647
|
+
__isFragment?: never;
|
|
648
|
+
__isTeleport?: never;
|
|
649
|
+
__isSuspense?: never;
|
|
650
|
+
} & vue209.ComponentOptionsBase<Readonly<{
|
|
651
|
+
title?: string;
|
|
652
|
+
zIndex?: number;
|
|
653
|
+
modalStyle?: vue209.CSSProperties;
|
|
654
|
+
headerStyle?: vue209.CSSProperties;
|
|
655
|
+
transition?: string;
|
|
656
|
+
close?: () => void;
|
|
657
|
+
} & {
|
|
658
|
+
open?: boolean;
|
|
659
|
+
}> & Readonly<{
|
|
660
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
661
|
+
}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {
|
|
662
|
+
"update:open": (value: boolean) => any;
|
|
663
|
+
}, string, {
|
|
664
|
+
zIndex: number;
|
|
665
|
+
transition: string;
|
|
666
|
+
}, {}, string, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, vue209.ComponentProvideOptions> & vue209.VNodeProps & vue209.AllowedComponentProps & vue209.ComponentCustomProps & (new () => {
|
|
667
|
+
$slots: {
|
|
668
|
+
title?: (props: {}) => any;
|
|
669
|
+
} & {
|
|
670
|
+
'header-center'?: (props: {}) => any;
|
|
671
|
+
} & {
|
|
672
|
+
actions?: (props: {}) => any;
|
|
673
|
+
} & {
|
|
674
|
+
default?: (props: {}) => any;
|
|
675
|
+
};
|
|
676
|
+
});
|
|
677
|
+
readonly NodeList: vue209.DefineComponent<NodeRendererListProps, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, vue209.PublicProps, Readonly<NodeRendererListProps> & Readonly<{}>, {
|
|
678
|
+
nodes: ParsedNode[];
|
|
679
|
+
}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
|
|
680
|
+
readonly Segmented: vue209.DefineComponent<{
|
|
681
|
+
options?: SelectOption[];
|
|
682
|
+
buttonStyle?: vue209.CSSProperties;
|
|
683
|
+
} & {
|
|
684
|
+
value?: string;
|
|
685
|
+
}, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {
|
|
686
|
+
"update:value": (value: string) => any;
|
|
687
|
+
} & {
|
|
688
|
+
change: (value: string) => any;
|
|
689
|
+
}, string, vue209.PublicProps, Readonly<{
|
|
690
|
+
options?: SelectOption[];
|
|
691
|
+
buttonStyle?: vue209.CSSProperties;
|
|
692
|
+
} & {
|
|
693
|
+
value?: string;
|
|
694
|
+
}> & Readonly<{
|
|
695
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
696
|
+
onChange?: ((value: string) => any) | undefined;
|
|
697
|
+
}>, {
|
|
698
|
+
buttonStyle: vue209.CSSProperties;
|
|
699
|
+
options: SelectOption[];
|
|
700
|
+
}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
|
|
701
|
+
readonly Spin: vue209.DefineComponent<{}, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, vue209.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue209.ComponentProvideOptions, true, {}, any>;
|
|
702
|
+
readonly Table: {
|
|
703
|
+
new (...args: any[]): vue209.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
704
|
+
getAlign?: (index: number) => "left" | "center" | "right";
|
|
705
|
+
headers?: unknown[];
|
|
706
|
+
rows?: Array<{
|
|
707
|
+
children: unknown[];
|
|
708
|
+
}>;
|
|
709
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, vue209.PublicProps, {}, false, {}, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, {}, any, vue209.ComponentProvideOptions, {
|
|
710
|
+
P: {};
|
|
711
|
+
B: {};
|
|
712
|
+
D: {};
|
|
713
|
+
C: {};
|
|
714
|
+
M: {};
|
|
715
|
+
Defaults: {};
|
|
716
|
+
}, Readonly<{
|
|
717
|
+
getAlign?: (index: number) => "left" | "center" | "right";
|
|
718
|
+
headers?: unknown[];
|
|
719
|
+
rows?: Array<{
|
|
720
|
+
children: unknown[];
|
|
721
|
+
}>;
|
|
722
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
723
|
+
__isFragment?: never;
|
|
724
|
+
__isTeleport?: never;
|
|
725
|
+
__isSuspense?: never;
|
|
726
|
+
} & vue209.ComponentOptionsBase<Readonly<{
|
|
727
|
+
getAlign?: (index: number) => "left" | "center" | "right";
|
|
728
|
+
headers?: unknown[];
|
|
729
|
+
rows?: Array<{
|
|
730
|
+
children: unknown[];
|
|
731
|
+
}>;
|
|
732
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, vue209.ComponentProvideOptions> & vue209.VNodeProps & vue209.AllowedComponentProps & vue209.ComponentCustomProps & (new () => {
|
|
733
|
+
$slots: {
|
|
734
|
+
'header-cell'?: (props: {
|
|
735
|
+
cell: unknown;
|
|
736
|
+
cellIndex: number;
|
|
737
|
+
}) => any;
|
|
738
|
+
} & {
|
|
739
|
+
'body-cell'?: (props: {
|
|
740
|
+
cell: unknown;
|
|
741
|
+
rowIndex: number;
|
|
742
|
+
cellIndex: number;
|
|
743
|
+
}) => any;
|
|
744
|
+
};
|
|
745
|
+
});
|
|
746
|
+
readonly Tooltip: {
|
|
747
|
+
new (...args: any[]): vue209.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
748
|
+
content?: string;
|
|
749
|
+
trigger?: "hover" | "click";
|
|
750
|
+
placement?: _floating_ui_dom0.Placement;
|
|
751
|
+
delay?: number | [number, number];
|
|
752
|
+
}> & Readonly<{}>, {
|
|
753
|
+
show: () => void;
|
|
754
|
+
hide: () => void;
|
|
755
|
+
}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, vue209.PublicProps, {
|
|
756
|
+
trigger: "hover" | "click";
|
|
757
|
+
placement: _floating_ui_dom0.Placement;
|
|
758
|
+
delay: number | [number, number];
|
|
759
|
+
}, false, {}, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, {}, any, vue209.ComponentProvideOptions, {
|
|
760
|
+
P: {};
|
|
761
|
+
B: {};
|
|
762
|
+
D: {};
|
|
763
|
+
C: {};
|
|
764
|
+
M: {};
|
|
765
|
+
Defaults: {};
|
|
766
|
+
}, Readonly<{
|
|
767
|
+
content?: string;
|
|
768
|
+
trigger?: "hover" | "click";
|
|
769
|
+
placement?: _floating_ui_dom0.Placement;
|
|
770
|
+
delay?: number | [number, number];
|
|
771
|
+
}> & Readonly<{}>, {
|
|
772
|
+
show: () => void;
|
|
773
|
+
hide: () => void;
|
|
774
|
+
}, {}, {}, {}, {
|
|
775
|
+
trigger: "hover" | "click";
|
|
776
|
+
placement: _floating_ui_dom0.Placement;
|
|
777
|
+
delay: number | [number, number];
|
|
778
|
+
}>;
|
|
779
|
+
__isFragment?: never;
|
|
780
|
+
__isTeleport?: never;
|
|
781
|
+
__isSuspense?: never;
|
|
782
|
+
} & vue209.ComponentOptionsBase<Readonly<{
|
|
783
|
+
content?: string;
|
|
784
|
+
trigger?: "hover" | "click";
|
|
785
|
+
placement?: _floating_ui_dom0.Placement;
|
|
786
|
+
delay?: number | [number, number];
|
|
787
|
+
}> & Readonly<{}>, {
|
|
788
|
+
show: () => void;
|
|
789
|
+
hide: () => void;
|
|
790
|
+
}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, {
|
|
791
|
+
trigger: "hover" | "click";
|
|
792
|
+
placement: _floating_ui_dom0.Placement;
|
|
793
|
+
delay: number | [number, number];
|
|
794
|
+
}, {}, string, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, vue209.ComponentProvideOptions> & vue209.VNodeProps & vue209.AllowedComponentProps & vue209.ComponentCustomProps & (new () => {
|
|
795
|
+
$slots: {
|
|
796
|
+
default?: (props: {}) => any;
|
|
797
|
+
} & {
|
|
798
|
+
content?: (props: {}) => any;
|
|
799
|
+
};
|
|
800
|
+
});
|
|
801
|
+
readonly ZoomContainer: {
|
|
802
|
+
new (...args: any[]): vue209.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
803
|
+
showControl?: boolean;
|
|
804
|
+
controlSize?: "vanilla" | "large";
|
|
805
|
+
position?: ZoomControlPosition;
|
|
806
|
+
containerStyle?: vue209.CSSProperties;
|
|
807
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, vue209.PublicProps, {
|
|
808
|
+
showControl: boolean;
|
|
809
|
+
controlSize: "vanilla" | "large";
|
|
810
|
+
position: ZoomControlPosition;
|
|
811
|
+
containerStyle: vue209.CSSProperties;
|
|
812
|
+
}, false, {}, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, {}, any, vue209.ComponentProvideOptions, {
|
|
813
|
+
P: {};
|
|
814
|
+
B: {};
|
|
815
|
+
D: {};
|
|
816
|
+
C: {};
|
|
817
|
+
M: {};
|
|
818
|
+
Defaults: {};
|
|
819
|
+
}, Readonly<{
|
|
820
|
+
showControl?: boolean;
|
|
821
|
+
controlSize?: "vanilla" | "large";
|
|
822
|
+
position?: ZoomControlPosition;
|
|
823
|
+
containerStyle?: vue209.CSSProperties;
|
|
824
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
825
|
+
showControl: boolean;
|
|
826
|
+
controlSize: "vanilla" | "large";
|
|
827
|
+
position: ZoomControlPosition;
|
|
828
|
+
containerStyle: vue209.CSSProperties;
|
|
829
|
+
}>;
|
|
830
|
+
__isFragment?: never;
|
|
831
|
+
__isTeleport?: never;
|
|
832
|
+
__isSuspense?: never;
|
|
833
|
+
} & vue209.ComponentOptionsBase<Readonly<{
|
|
834
|
+
showControl?: boolean;
|
|
835
|
+
controlSize?: "vanilla" | "large";
|
|
836
|
+
position?: ZoomControlPosition;
|
|
837
|
+
containerStyle?: vue209.CSSProperties;
|
|
838
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, {
|
|
839
|
+
showControl: boolean;
|
|
840
|
+
controlSize: "vanilla" | "large";
|
|
841
|
+
position: ZoomControlPosition;
|
|
842
|
+
containerStyle: vue209.CSSProperties;
|
|
843
|
+
}, {}, string, {}, vue209.GlobalComponents, vue209.GlobalDirectives, string, vue209.ComponentProvideOptions> & vue209.VNodeProps & vue209.AllowedComponentProps & vue209.ComponentCustomProps & (new () => {
|
|
844
|
+
$slots: {
|
|
845
|
+
controls?: (props: {
|
|
846
|
+
iconWidth?: undefined;
|
|
847
|
+
iconHeight?: undefined;
|
|
848
|
+
buttonStyle?: undefined;
|
|
849
|
+
} | {
|
|
850
|
+
iconWidth: number;
|
|
851
|
+
iconHeight: number;
|
|
852
|
+
buttonStyle: {
|
|
853
|
+
fontSize: string;
|
|
854
|
+
};
|
|
855
|
+
}) => any;
|
|
856
|
+
} & {
|
|
857
|
+
default?: (props: {}) => any;
|
|
858
|
+
};
|
|
859
|
+
});
|
|
860
|
+
};
|
|
441
861
|
//#endregion
|
|
442
862
|
//#region src/composables/use-code-options.d.ts
|
|
443
863
|
interface UseCodeOptionsOptions {
|
|
@@ -445,16 +865,16 @@ interface UseCodeOptionsOptions {
|
|
|
445
865
|
language?: MaybeRef<string>;
|
|
446
866
|
}
|
|
447
867
|
declare function useCodeOptions(options: UseCodeOptionsOptions): {
|
|
448
|
-
languageCodeOptions:
|
|
449
|
-
languageIcon?: boolean |
|
|
868
|
+
languageCodeOptions: vue209.ComputedRef<{
|
|
869
|
+
languageIcon?: boolean | vue209.Component | undefined;
|
|
450
870
|
language?: Record<string, CodeOptionsLanguage>;
|
|
451
871
|
languageName?: boolean;
|
|
452
872
|
lineNumbers?: boolean;
|
|
453
873
|
maxHeight?: number | string;
|
|
454
874
|
}>;
|
|
455
|
-
showLanguageIcon:
|
|
456
|
-
showLanguageName:
|
|
457
|
-
showLineNumbers:
|
|
875
|
+
showLanguageIcon: vue209.ComputedRef<boolean>;
|
|
876
|
+
showLanguageName: vue209.ComputedRef<boolean>;
|
|
877
|
+
showLineNumbers: vue209.ComputedRef<boolean>;
|
|
458
878
|
};
|
|
459
879
|
//#endregion
|
|
460
880
|
//#region src/composables/use-context.d.ts
|
|
@@ -471,11 +891,11 @@ declare function useContext(): {
|
|
|
471
891
|
context: Context;
|
|
472
892
|
provideContext: (ctx: Partial<Context>) => void;
|
|
473
893
|
injectContext: () => Context;
|
|
474
|
-
mode:
|
|
475
|
-
icons:
|
|
476
|
-
isDark:
|
|
477
|
-
enableAnimate:
|
|
478
|
-
parsedNodes:
|
|
894
|
+
mode: vue209.ComputedRef<"streaming" | "static">;
|
|
895
|
+
icons: vue209.ComputedRef<Partial<Icons>>;
|
|
896
|
+
isDark: vue209.ComputedRef<boolean>;
|
|
897
|
+
enableAnimate: vue209.ComputedRef<boolean | undefined>;
|
|
898
|
+
parsedNodes: vue209.ComputedRef<ParsedNode[]>;
|
|
479
899
|
readonly getContainer: () => HTMLElement | undefined;
|
|
480
900
|
readonly onCopied: (content: string) => void;
|
|
481
901
|
};
|
|
@@ -490,20 +910,20 @@ declare function useControls(options: UseControlsOptions): {
|
|
|
490
910
|
resolveControls: <T extends NodeRendererProps = NodeRendererProps>(type: string, builtinControls: Control[], props: T) => Control[];
|
|
491
911
|
};
|
|
492
912
|
//#endregion
|
|
493
|
-
//#region src/composables/use-floating
|
|
494
|
-
interface
|
|
913
|
+
//#region src/composables/use-floating.d.ts
|
|
914
|
+
interface UseFloatingOptions {
|
|
495
915
|
trigger?: MaybeRef<'hover' | 'click'>;
|
|
496
916
|
placement?: MaybeRef<Placement>;
|
|
497
917
|
delay?: MaybeRef<number | [number, number]>;
|
|
498
918
|
getContainer?: () => HTMLElement | undefined;
|
|
499
919
|
}
|
|
500
|
-
declare function
|
|
501
|
-
referenceEl:
|
|
502
|
-
floatingEl:
|
|
503
|
-
open:
|
|
504
|
-
appendTo:
|
|
505
|
-
floatingStyle:
|
|
506
|
-
position:
|
|
920
|
+
declare function useFloating(options: UseFloatingOptions): {
|
|
921
|
+
referenceEl: vue209.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
922
|
+
floatingEl: vue209.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
923
|
+
open: vue209.Ref<boolean, boolean>;
|
|
924
|
+
appendTo: vue209.ComputedRef<HTMLElement | "body">;
|
|
925
|
+
floatingStyle: vue209.ComputedRef<{
|
|
926
|
+
position: "absolute" | "fixed";
|
|
507
927
|
top: string;
|
|
508
928
|
left: string;
|
|
509
929
|
}>;
|
|
@@ -523,7 +943,7 @@ declare function useI18n(): {
|
|
|
523
943
|
//#endregion
|
|
524
944
|
//#region src/composables/use-katex.d.ts
|
|
525
945
|
declare function useKatex(): {
|
|
526
|
-
installed:
|
|
946
|
+
installed: vue209.Ref<boolean, boolean>;
|
|
527
947
|
render: (code: string, options?: KatexOptions$1) => Promise<{
|
|
528
948
|
html?: string;
|
|
529
949
|
error?: string;
|
|
@@ -539,9 +959,9 @@ interface UseMathRendererOptions {
|
|
|
539
959
|
throttle?: MaybeRef<number>;
|
|
540
960
|
}
|
|
541
961
|
declare function useMathRenderer(options: UseMathRendererOptions): {
|
|
542
|
-
html:
|
|
543
|
-
error:
|
|
544
|
-
errorMessage:
|
|
962
|
+
html: vue209.Ref<string, string>;
|
|
963
|
+
error: vue209.ComputedRef<boolean>;
|
|
964
|
+
errorMessage: vue209.Ref<string, string>;
|
|
545
965
|
};
|
|
546
966
|
//#endregion
|
|
547
967
|
//#region src/composables/use-medium-zoom.d.ts
|
|
@@ -551,12 +971,12 @@ interface UseMediumZoomOptions {
|
|
|
551
971
|
close?: () => void;
|
|
552
972
|
}
|
|
553
973
|
declare function useMediumZoom(options: UseMediumZoomOptions): {
|
|
554
|
-
isAnimating:
|
|
555
|
-
elementStyle:
|
|
974
|
+
isAnimating: vue209.Ref<boolean, boolean>;
|
|
975
|
+
elementStyle: vue209.ComputedRef<{
|
|
556
976
|
opacity: number;
|
|
557
977
|
}>;
|
|
558
|
-
elementRef:
|
|
559
|
-
zoomElementRef:
|
|
978
|
+
elementRef: vue209.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
979
|
+
zoomElementRef: vue209.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
560
980
|
zoomIn: () => Promise<void>;
|
|
561
981
|
zoomOut: () => Promise<void>;
|
|
562
982
|
};
|
|
@@ -567,7 +987,7 @@ interface UseMermaidOptions {
|
|
|
567
987
|
isDark?: MaybeRef<boolean>;
|
|
568
988
|
}
|
|
569
989
|
declare function useMermaid(options?: UseMermaidOptions): {
|
|
570
|
-
installed:
|
|
990
|
+
installed: vue209.Ref<boolean, boolean>;
|
|
571
991
|
getMermaid: () => Promise<Mermaid>;
|
|
572
992
|
parseMermaid: (code: string) => Promise<boolean>;
|
|
573
993
|
renderMermaid: (code: string) => Promise<string | null>;
|
|
@@ -584,10 +1004,10 @@ interface UseSanitizersOptions {
|
|
|
584
1004
|
isImage?: MaybeRef<boolean | undefined>;
|
|
585
1005
|
}
|
|
586
1006
|
declare function useSanitizers(options: UseSanitizersOptions): {
|
|
587
|
-
hardenOptions:
|
|
1007
|
+
hardenOptions: vue209.ComputedRef<HardenOptions>;
|
|
588
1008
|
transformHardenUrl: (url: string) => string | null;
|
|
589
|
-
transformedUrl:
|
|
590
|
-
isHardenUrl:
|
|
1009
|
+
transformedUrl: vue209.ComputedRef<string | null>;
|
|
1010
|
+
isHardenUrl: vue209.ComputedRef<boolean>;
|
|
591
1011
|
};
|
|
592
1012
|
//#endregion
|
|
593
1013
|
//#region src/composables/use-shiki.d.ts
|
|
@@ -597,7 +1017,7 @@ interface UseShikiOptions {
|
|
|
597
1017
|
isDark?: MaybeRef<boolean>;
|
|
598
1018
|
}
|
|
599
1019
|
declare function useShiki(options?: UseShikiOptions): {
|
|
600
|
-
installed:
|
|
1020
|
+
installed: vue209.Ref<boolean, boolean>;
|
|
601
1021
|
getHighlighter: () => Promise<Highlighter>;
|
|
602
1022
|
codeToTokens: (code: string) => Promise<TokensResult>;
|
|
603
1023
|
preload: () => Promise<void>;
|
|
@@ -610,12 +1030,12 @@ interface UseTailwindV3ThemeOptions {
|
|
|
610
1030
|
styleScope?: MaybeRef<string>;
|
|
611
1031
|
}
|
|
612
1032
|
declare function useTailwindV3Theme(options: UseTailwindV3ThemeOptions): {
|
|
613
|
-
element:
|
|
1033
|
+
element: vue209.ComputedRef<Element | undefined>;
|
|
614
1034
|
id: string;
|
|
615
|
-
css:
|
|
1035
|
+
css: vue209.ShallowRef<string>;
|
|
616
1036
|
load: () => void;
|
|
617
1037
|
unload: () => void;
|
|
618
|
-
isLoaded: Readonly<
|
|
1038
|
+
isLoaded: Readonly<vue209.ShallowRef<boolean>>;
|
|
619
1039
|
generateCSS: () => void;
|
|
620
1040
|
};
|
|
621
1041
|
//#endregion
|
|
@@ -635,11 +1055,11 @@ interface ZoomState {
|
|
|
635
1055
|
translateY: number;
|
|
636
1056
|
}
|
|
637
1057
|
declare function useZoom(options?: UseZoomOptions): {
|
|
638
|
-
zoom:
|
|
639
|
-
translateX:
|
|
640
|
-
translateY:
|
|
641
|
-
isDragging:
|
|
642
|
-
transformStyle:
|
|
1058
|
+
zoom: vue209.Ref<number, number>;
|
|
1059
|
+
translateX: vue209.Ref<number, number>;
|
|
1060
|
+
translateY: vue209.Ref<number, number>;
|
|
1061
|
+
isDragging: vue209.Ref<boolean, boolean>;
|
|
1062
|
+
transformStyle: vue209.ComputedRef<{
|
|
643
1063
|
transform: string;
|
|
644
1064
|
}>;
|
|
645
1065
|
zoomIn: () => void;
|
|
@@ -658,32 +1078,32 @@ declare function useZoom(options?: UseZoomOptions): {
|
|
|
658
1078
|
};
|
|
659
1079
|
//#endregion
|
|
660
1080
|
//#region src/index.vue.d.ts
|
|
661
|
-
declare const __VLS_export:
|
|
1081
|
+
declare const __VLS_export: vue209.DefineComponent<StreamMarkdownProps, {
|
|
662
1082
|
getMarkdownParser: () => MarkdownParser;
|
|
663
1083
|
getParsedNodes: () => ParsedNode[];
|
|
664
1084
|
getProcessedContent: () => string;
|
|
665
|
-
}, {}, {}, {},
|
|
1085
|
+
}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {} & {
|
|
666
1086
|
copied: (content: string) => any;
|
|
667
|
-
}, string,
|
|
1087
|
+
}, string, vue209.PublicProps, Readonly<StreamMarkdownProps> & Readonly<{
|
|
668
1088
|
onCopied?: ((content: string) => any) | undefined;
|
|
669
1089
|
}>, {
|
|
670
|
-
|
|
1090
|
+
nodeRenderers: Partial<Record<"delete" | "text" | "blockquote" | "break" | "code" | "definition" | "emphasis" | "footnoteDefinition" | "footnoteReference" | "heading" | "html" | "image" | "imageReference" | "inlineCode" | "link" | "linkReference" | "list" | "listItem" | "paragraph" | "strong" | "table" | "tableCell" | "tableRow" | "thematicBreak" | "yaml" | "inlineMath" | "math", vue209.Component>>;
|
|
1091
|
+
controls: ControlsConfig;
|
|
1092
|
+
previewers: PreviewerConfig;
|
|
1093
|
+
isDark: boolean;
|
|
671
1094
|
content: string;
|
|
672
|
-
|
|
1095
|
+
mode: "static" | "streaming";
|
|
673
1096
|
icons: Partial<Icons>;
|
|
674
1097
|
locale: string | LocaleConfig;
|
|
675
1098
|
enableAnimate: boolean;
|
|
676
|
-
|
|
677
|
-
previewers: PreviewerConfig;
|
|
678
|
-
isDark: boolean;
|
|
679
|
-
}, {}, {}, {}, string, vue7.ComponentProvideOptions, false, {}, any>;
|
|
1099
|
+
}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
|
|
680
1100
|
declare const _default: typeof __VLS_export;
|
|
681
1101
|
//#endregion
|
|
682
1102
|
//#region src/locales/index.d.ts
|
|
683
1103
|
declare const SUPPORT_LANGUAGES: string[];
|
|
684
1104
|
declare const localesGlob: Record<string, () => Promise<unknown>>;
|
|
685
|
-
declare const localeMessages:
|
|
686
|
-
declare const currentLocale:
|
|
1105
|
+
declare const localeMessages: vue209.Ref<LocaleConfig | undefined, LocaleConfig | undefined>;
|
|
1106
|
+
declare const currentLocale: vue209.Ref<string, string>;
|
|
687
1107
|
declare function loadLocaleMessages(language: string | LocaleConfig): Promise<void>;
|
|
688
1108
|
//#endregion
|
|
689
1109
|
//#region src/postprocess/footnote.d.ts
|
|
@@ -967,6 +1387,9 @@ declare function findNodeParent(targetNode: ParsedNode, nodes: ParsedNode[], par
|
|
|
967
1387
|
index: number;
|
|
968
1388
|
} | null;
|
|
969
1389
|
//#endregion
|
|
1390
|
+
//#region src/utils/preload.d.ts
|
|
1391
|
+
declare function preloadAsyncComponents(components: Record<string, Component>, include?: string[], exclude?: string[]): Promise<void>;
|
|
1392
|
+
//#endregion
|
|
970
1393
|
//#region src/utils/table.d.ts
|
|
971
1394
|
interface TableData {
|
|
972
1395
|
headers: string[];
|
|
@@ -978,4 +1401,4 @@ declare function tableDataToTSV(data: TableData): string;
|
|
|
978
1401
|
declare function escapeMarkdownTableCell(cell: string): string;
|
|
979
1402
|
declare function tableDataToMarkdown(data: TableData): string;
|
|
980
1403
|
//#endregion
|
|
981
|
-
export { BlockquoteNode, BlockquoteNodeRendererProps, BreakNode, BreakNodeRendererProps, ButtonProps, CODE_PREVIEWERS, CodeControlsConfig, CodeNode, CodeNodeRendererProps, CodeOptions, CodeOptionsLanguage, Control, ControlTransformer, 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, IconName, 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, MermaidControlsConfig, MermaidOptions, NODE_RENDERERS, NodeRendererListProps, NodeRendererProps, NodeRenderers, NodeType, OptionalIconName, Options, ParagraphNode, ParagraphNodeRendererProps, ParsedNode, PreviewerConfig, SHADCN_SCHEMAS, SUPPORT_LANGUAGES, SelectOption, ShikiOptions, StreamMarkdownContext, StreamMarkdownProps, StrongNode, StrongNodeRendererProps, SyntaxTree, TableCellNode, TableCellNodeRendererProps, TableControlsConfig, TableData, TableNode, TableNodeRendererProps, TableRowNode, TableRowNodeRendererProps, TextNode, TextNodeRendererProps, ThematicBreakNode, ThematicBreakNodeRendererProps, UI, YamlNode, YamlNodeRendererProps, ZoomControlPosition, codeBlockPattern, crlfPattern, currentLocale, doubleAsteriskPattern, doubleDollarPattern, doubleTildePattern, doubleUnderscorePattern, escapeMarkdownTableCell, extractTableDataFromElement, findLastLeafNode, findNodeParent, fixCode, fixDelete, fixEmphasis, fixFootnote, fixLink, fixStrong, fixTable, fixTaskList, flow, footnoteDefLabelPattern, footnoteDefLinePattern, footnoteDefPattern, footnoteRefLabelPattern, footnoteRefPattern, hasKatex, hasMermaid, hasShiki, incompleteBracketPattern, incompleteFootnoteRefPattern, incompleteLinkTextPattern, incompleteTaskListPattern, incompleteUrlPattern, isClient, isServer, loadLocaleMessages, localeMessages, localesGlob, normalize, postFixFootnote, postFixText, postNormalize, postprocess, preprocess, preprocessLaTeX, proprocessContent, quoteIncompleteTaskListPattern, quoteStandaloneDashPattern, quoteTaskListPattern, remend, save, saveImage, separatorPattern, singleAsteriskPattern, singleBacktickPattern, singleUnderscorePattern, standaloneDashPattern, svgToPngBlob, tableDataToCSV, tableDataToMarkdown, tableDataToTSV, tableRowPattern, taskListPattern, trailingBackticksPattern, trailingStandaloneBracketPattern, trailingStandaloneDashWithNewlinesPattern, trailingWhitespacePattern, transformUrl, tripleBacktickPattern, useCodeOptions, useContext, useControls,
|
|
1404
|
+
export { BlockquoteNode, BlockquoteNodeRendererProps, BreakNode, BreakNodeRendererProps, BuiltinNodeRenderers, BuiltinPreviewers, BuiltinUIComponents, ButtonProps, CODE_PREVIEWERS, CodeControlsConfig, CodeNode, CodeNodeRendererProps, CodeOptions, CodeOptionsLanguage, Control, ControlTransformer, 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, IconName, 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, MermaidControlsConfig, MermaidOptions, NODE_RENDERERS, NodeRendererListProps, NodeRendererProps, NodeRenderers, NodeType, OptionalIconName, Options, PRELOAD_NODE_RENDERER, ParagraphNode, ParagraphNodeRendererProps, ParsedNode, PreloadConfig, PreviewerConfig, SHADCN_SCHEMAS, SUPPORT_LANGUAGES, SelectOption, ShikiOptions, StreamMarkdownContext, StreamMarkdownProps, StrongNode, StrongNodeRendererProps, SyntaxTree, TableCellNode, TableCellNodeRendererProps, TableControlsConfig, TableData, TableNode, TableNodeRendererProps, TableRowNode, TableRowNodeRendererProps, TextNode, TextNodeRendererProps, ThematicBreakNode, ThematicBreakNodeRendererProps, UI, YamlNode, YamlNodeRendererProps, ZoomControlPosition, codeBlockPattern, crlfPattern, currentLocale, doubleAsteriskPattern, doubleDollarPattern, doubleTildePattern, doubleUnderscorePattern, escapeMarkdownTableCell, extractTableDataFromElement, findLastLeafNode, findNodeParent, fixCode, fixDelete, fixEmphasis, fixFootnote, fixLink, fixStrong, fixTable, fixTaskList, flow, footnoteDefLabelPattern, footnoteDefLinePattern, footnoteDefPattern, footnoteRefLabelPattern, footnoteRefPattern, hasKatex, hasMermaid, hasShiki, incompleteBracketPattern, incompleteFootnoteRefPattern, incompleteLinkTextPattern, incompleteTaskListPattern, incompleteUrlPattern, isClient, isServer, loadLocaleMessages, localeMessages, localesGlob, normalize, postFixFootnote, postFixText, postNormalize, postprocess, preloadAsyncComponents, preprocess, preprocessLaTeX, proprocessContent, quoteIncompleteTaskListPattern, quoteStandaloneDashPattern, quoteTaskListPattern, remend, save, saveImage, separatorPattern, singleAsteriskPattern, singleBacktickPattern, singleUnderscorePattern, standaloneDashPattern, svgToPngBlob, tableDataToCSV, tableDataToMarkdown, tableDataToTSV, tableRowPattern, taskListPattern, trailingBackticksPattern, trailingStandaloneBracketPattern, trailingStandaloneDashWithNewlinesPattern, trailingWhitespacePattern, transformUrl, tripleBacktickPattern, useCodeOptions, useContext, useControls, useFloating, useI18n, useKatex, useMathRenderer, useMediumZoom, useMermaid, useSanitizers, useShiki, useTailwindV3Theme, useZoom };
|