vue-stream-markdown 0.2.2 → 0.2.3
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 +4 -0
- package/dist/{blockquote-CVFraiyL.js → blockquote-Crr-D7fY.js} +6 -2
- package/dist/{break-CzrM3nW0.js → break-DoDPjOA0.js} +4 -0
- package/dist/{button-CWSGNZmd.js → button-DVWlhfQ9.js} +2 -2
- package/dist/button-Dw4uJRaD.js +6 -0
- package/dist/{code-DwwmPoup.js → code-Bz8LM16H.js} +14 -10
- package/dist/code-block-Bitp8x1w.js +10 -0
- package/dist/{code-block-XfHjZodV.js → code-block-CmUZxKNr.js} +14 -9
- package/dist/{composables-BMXMKLLj.js → composables-CzUVrTt_.js} +14 -2
- package/dist/{delete-BRwEUU72.js → delete-DFoiOzHW.js} +6 -2
- package/dist/dropdown-CSRjqK0u.js +6 -0
- package/dist/{emphasis-DblyP-Vp.js → emphasis-DvaBuxeK.js} +6 -2
- package/dist/{error-component-CckClFee.js → error-component-BTe-SuY7.js} +2 -2
- package/dist/error-component-DDnC0bqw.js +5 -0
- package/dist/{footnote-definition-BvZNKSLa.js → footnote-definition-ByWh1N3S.js} +9 -5
- package/dist/{footnote-reference-DvAxMjRZ.js → footnote-reference-BJ4J7BFo.js} +5 -1
- package/dist/{heading-g87txbB0.js → heading-1fssqGGO.js} +6 -2
- package/dist/{html-BG83dEZJ.js → html-Be_6ezK6.js} +4 -0
- package/dist/{html-D7bGx0Cz.js → html-DfTs9nEm.js} +4 -0
- package/dist/icon-DE3AzDqz.js +4 -0
- package/dist/{icon-CpKYt1dR.js → icon-DcLTFhFW.js} +1 -1
- package/dist/{image-Dwe5A7RP.js → image-DXnmoID_.js} +4 -4
- package/dist/image-Dl-r78_E.js +9 -0
- package/dist/{image-CR28eDok.js → image-xPrAKT9D.js} +12 -8
- package/dist/index.css +130 -144
- package/dist/index.d.ts +170 -144
- package/dist/index.js +334 -219
- package/dist/{inline-code-E5uGvmnx.js → inline-code-B5lfHACE.js} +4 -0
- package/dist/{inline-math-BHDNxQ5R.js → inline-math-CPkpjl8t.js} +7 -3
- package/dist/{link-BiA46FMM.js → link-BACrkxRW.js} +8 -4
- package/dist/{list-D7QyoGUy.js → list-Cu8G46hK.js} +6 -2
- package/dist/{list-item-Cv8l3Ufd.js → list-item-BMgDS1tS.js} +6 -2
- package/dist/{math-BzuYH4PG.js → math-XsZX0VMw.js} +7 -3
- package/dist/{mermaid-BoiSJ4fF.js → mermaid-CQdSlhqn.js} +22 -8
- package/dist/{modal-DHGxvCt5.js → modal-C1riNMrs.js} +8 -5
- package/dist/modal-C7O4jt5-.js +4 -0
- package/dist/{node-list-D6zJX92N.js → node-list-7H-lIfUX.js} +10 -2
- package/dist/node-list-DMwAmH_n.js +4 -0
- package/dist/{paragraph-YTqe84Bm.js → paragraph-Cfd37HUK.js} +6 -2
- package/dist/previewers-C7PKsIbc.js +10 -0
- package/dist/segmented-BRTZXoDN.js +7 -0
- package/dist/{segmented-DDQZGL7l.js → segmented-C9j-IIDc.js} +1 -1
- package/dist/{shiki-DDfRFzy0.js → shiki-BoBbCakv.js} +7 -3
- package/dist/{strong-nPwCJEKq.js → strong-BzOBAWrG.js} +6 -2
- package/dist/{table-Dtpd-MnT.js → table-YY5M01Jm.js} +9 -5
- package/dist/{text-CfRWiRE0.js → text-DbHMEN3P.js} +4 -0
- package/dist/{thematic-break-DgOD2KmY.js → thematic-break-CdlhHAEZ.js} +4 -0
- package/dist/theme.css +2 -2
- package/dist/{tooltip-C4RiUZwy.js → tooltip-DarhJuZR.js} +3 -2
- package/dist/tooltip-vDDEbLwf.js +4 -0
- package/dist/vanilla-CzQw2_b4.js +4 -0
- package/dist/{vanilla-NR7MOE5P.js → vanilla-Z6d1vQmX.js} +1 -1
- package/dist/{yaml-DP0yfJyS.js → yaml-DL5ozHZ_.js} +4 -0
- package/dist/{zoom-container-CqZQ4X6w.js → zoom-container-DQMpHHGQ.js} +33 -9
- package/dist/zoom-container-JLbwB4gy.js +7 -0
- package/package.json +2 -1
- package/dist/button-BFS-gHGF.js +0 -6
- package/dist/code-block-CTM9VEwA.js +0 -10
- package/dist/dropdown-BQ3uynLf.js +0 -6
- package/dist/error-component-B_Vacrqa.js +0 -5
- package/dist/icon-BX3KKloR.js +0 -4
- package/dist/image-BtkXhzG1.js +0 -9
- package/dist/modal-CFOdkYNj.js +0 -4
- package/dist/node-list-BYDvt6bq.js +0 -4
- package/dist/previewers-Cpx1Wqu8.js +0 -10
- package/dist/segmented-CaVb5_Rp.js +0 -7
- package/dist/tooltip-BIvCaFUj.js +0 -4
- package/dist/vanilla-DfHiHWnr.js +0 -4
- package/dist/zoom-container-DtkZ07v1.js +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue210 from "vue";
|
|
2
2
|
import { CSSProperties, Component, MaybeRef, MaybeRefOrGetter } from "vue";
|
|
3
3
|
import * as _floating_ui_dom0 from "@floating-ui/dom";
|
|
4
4
|
import { Placement } from "@floating-ui/dom";
|
|
@@ -261,24 +261,24 @@ 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: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
265
|
+
readonly check: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
266
|
+
readonly code: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
267
|
+
readonly collapse: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
268
|
+
readonly copy: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
269
|
+
readonly cornerDownLeft: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
270
|
+
readonly download: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
271
|
+
readonly error: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
272
|
+
readonly flipHorizontal: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
273
|
+
readonly image: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
274
|
+
readonly link: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
275
|
+
readonly maximize: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
276
|
+
readonly mermaid: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
277
|
+
readonly minimize: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
278
|
+
readonly preview: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
279
|
+
readonly rotateLeft: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
280
|
+
readonly zoomIn: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
281
|
+
readonly zoomOut: vue210.FunctionalComponent<vue210.SVGAttributes, {}, any, {}>;
|
|
282
282
|
};
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region src/constants/preload.d.ts
|
|
@@ -353,6 +353,7 @@ interface StreamMarkdownContext {
|
|
|
353
353
|
hardenOptions?: HardenOptions;
|
|
354
354
|
codeOptions?: CodeOptions;
|
|
355
355
|
imageOptions?: ImageOptions;
|
|
356
|
+
uiOptions?: UIOptions;
|
|
356
357
|
isDark?: boolean;
|
|
357
358
|
}
|
|
358
359
|
type TableControlsConfig = boolean | {
|
|
@@ -377,6 +378,12 @@ type ImageControlsConfig = boolean | {
|
|
|
377
378
|
customize?: ControlTransformer<ImageNodeRendererProps>;
|
|
378
379
|
};
|
|
379
380
|
type MermaidControlsConfig = boolean | {
|
|
381
|
+
/**
|
|
382
|
+
* Disable drag/pan in page preview (but keep it in fullscreen preview)
|
|
383
|
+
* Useful for mobile devices where drag interactions can interfere with page scrolling
|
|
384
|
+
* @default true
|
|
385
|
+
*/
|
|
386
|
+
inlineInteractive?: boolean;
|
|
380
387
|
position?: ZoomControlPosition;
|
|
381
388
|
customize?: ControlTransformer<CodeNodeRendererProps>;
|
|
382
389
|
};
|
|
@@ -445,26 +452,34 @@ interface HardenOptions {
|
|
|
445
452
|
allowDataImages?: boolean;
|
|
446
453
|
errorComponent?: Component;
|
|
447
454
|
}
|
|
455
|
+
interface UIOptions {
|
|
456
|
+
/**
|
|
457
|
+
* Hide tooltips triggered by hover (but keep dropdowns triggered by click)
|
|
458
|
+
* Useful for mobile devices where hover interactions don't work well
|
|
459
|
+
* @default false
|
|
460
|
+
*/
|
|
461
|
+
hideTooltip?: boolean;
|
|
462
|
+
}
|
|
448
463
|
//#endregion
|
|
449
464
|
//#region src/components/renderers/index.d.ts
|
|
450
465
|
declare const NODE_RENDERERS: NodeRenderers;
|
|
451
466
|
//#endregion
|
|
452
467
|
//#region src/components/index.d.ts
|
|
453
468
|
declare const UI: {
|
|
454
|
-
readonly Button:
|
|
469
|
+
readonly Button: vue210.DefineComponent<ButtonProps, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {} & {
|
|
455
470
|
click: (event: MouseEvent, item?: SelectOption | undefined) => any;
|
|
456
|
-
}, string,
|
|
471
|
+
}, string, vue210.PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
457
472
|
onClick?: ((event: MouseEvent, item?: SelectOption | undefined) => any) | undefined;
|
|
458
473
|
}>, {
|
|
459
474
|
variant: "icon" | "text";
|
|
460
|
-
buttonStyle:
|
|
475
|
+
buttonStyle: vue210.CSSProperties;
|
|
461
476
|
iconWidth: number;
|
|
462
477
|
iconHeight: number;
|
|
463
|
-
iconStyle:
|
|
478
|
+
iconStyle: vue210.CSSProperties;
|
|
464
479
|
options: SelectOption[];
|
|
465
|
-
}, {}, {}, {}, string,
|
|
480
|
+
}, {}, {}, {}, string, vue210.ComponentProvideOptions, false, {}, any>;
|
|
466
481
|
readonly CodeBlock: {
|
|
467
|
-
new (...args: any[]):
|
|
482
|
+
new (...args: any[]): vue210.CreateComponentPublicInstanceWithMixins<Readonly<CodeNodeRendererProps> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, vue210.PublicProps, {}, false, {}, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, {}, any, vue210.ComponentProvideOptions, {
|
|
468
483
|
P: {};
|
|
469
484
|
B: {};
|
|
470
485
|
D: {};
|
|
@@ -475,7 +490,7 @@ declare const UI: {
|
|
|
475
490
|
__isFragment?: never;
|
|
476
491
|
__isTeleport?: never;
|
|
477
492
|
__isSuspense?: never;
|
|
478
|
-
} &
|
|
493
|
+
} & vue210.ComponentOptionsBase<Readonly<CodeNodeRendererProps> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, vue210.ComponentProvideOptions> & vue210.VNodeProps & vue210.AllowedComponentProps & vue210.ComponentCustomProps & (new () => {
|
|
479
494
|
$slots: {
|
|
480
495
|
title?: (props: {}) => any;
|
|
481
496
|
} & {
|
|
@@ -487,16 +502,16 @@ declare const UI: {
|
|
|
487
502
|
};
|
|
488
503
|
});
|
|
489
504
|
readonly Dropdown: {
|
|
490
|
-
new (...args: any[]):
|
|
505
|
+
new (...args: any[]): vue210.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
491
506
|
title?: string;
|
|
492
507
|
options?: SelectOption[];
|
|
493
508
|
}> & Readonly<{
|
|
494
509
|
onClick?: ((event: MouseEvent, item: SelectOption) => any) | undefined;
|
|
495
|
-
}>, {}, {}, {}, {},
|
|
510
|
+
}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {} & {
|
|
496
511
|
click: (event: MouseEvent, item: SelectOption) => any;
|
|
497
|
-
},
|
|
512
|
+
}, vue210.PublicProps, {
|
|
498
513
|
options: SelectOption[];
|
|
499
|
-
}, false, {}, {},
|
|
514
|
+
}, false, {}, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, {}, any, vue210.ComponentProvideOptions, {
|
|
500
515
|
P: {};
|
|
501
516
|
B: {};
|
|
502
517
|
D: {};
|
|
@@ -514,30 +529,30 @@ declare const UI: {
|
|
|
514
529
|
__isFragment?: never;
|
|
515
530
|
__isTeleport?: never;
|
|
516
531
|
__isSuspense?: never;
|
|
517
|
-
} &
|
|
532
|
+
} & vue210.ComponentOptionsBase<Readonly<{
|
|
518
533
|
title?: string;
|
|
519
534
|
options?: SelectOption[];
|
|
520
535
|
}> & Readonly<{
|
|
521
536
|
onClick?: ((event: MouseEvent, item: SelectOption) => any) | undefined;
|
|
522
|
-
}>, {}, {}, {}, {},
|
|
537
|
+
}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {} & {
|
|
523
538
|
click: (event: MouseEvent, item: SelectOption) => any;
|
|
524
539
|
}, string, {
|
|
525
540
|
options: SelectOption[];
|
|
526
|
-
}, {}, string, {},
|
|
541
|
+
}, {}, string, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, vue210.ComponentProvideOptions> & vue210.VNodeProps & vue210.AllowedComponentProps & vue210.ComponentCustomProps & (new () => {
|
|
527
542
|
$slots: {
|
|
528
543
|
default?: (props: {}) => any;
|
|
529
544
|
};
|
|
530
545
|
});
|
|
531
546
|
readonly ErrorComponent: {
|
|
532
|
-
new (...args: any[]):
|
|
547
|
+
new (...args: any[]): vue210.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
533
548
|
variant?: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
534
549
|
showIcon?: boolean;
|
|
535
|
-
icon?: string |
|
|
550
|
+
icon?: string | vue210.Component;
|
|
536
551
|
message?: string;
|
|
537
|
-
}> & Readonly<{}>, {}, {}, {}, {},
|
|
552
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, vue210.PublicProps, {
|
|
538
553
|
variant: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
539
554
|
showIcon: boolean;
|
|
540
|
-
}, false, {}, {},
|
|
555
|
+
}, false, {}, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, {}, any, vue210.ComponentProvideOptions, {
|
|
541
556
|
P: {};
|
|
542
557
|
B: {};
|
|
543
558
|
D: {};
|
|
@@ -547,7 +562,7 @@ declare const UI: {
|
|
|
547
562
|
}, Readonly<{
|
|
548
563
|
variant?: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
549
564
|
showIcon?: boolean;
|
|
550
|
-
icon?: string |
|
|
565
|
+
icon?: string | vue210.Component;
|
|
551
566
|
message?: string;
|
|
552
567
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
553
568
|
variant: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
@@ -556,36 +571,36 @@ declare const UI: {
|
|
|
556
571
|
__isFragment?: never;
|
|
557
572
|
__isTeleport?: never;
|
|
558
573
|
__isSuspense?: never;
|
|
559
|
-
} &
|
|
574
|
+
} & vue210.ComponentOptionsBase<Readonly<{
|
|
560
575
|
variant?: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
561
576
|
showIcon?: boolean;
|
|
562
|
-
icon?: string |
|
|
577
|
+
icon?: string | vue210.Component;
|
|
563
578
|
message?: string;
|
|
564
|
-
}> & Readonly<{}>, {}, {}, {}, {},
|
|
579
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, {
|
|
565
580
|
variant: "image" | "vanilla" | "mermaid" | "katex" | "harden-image" | "harden-link";
|
|
566
581
|
showIcon: boolean;
|
|
567
|
-
}, {}, string, {},
|
|
582
|
+
}, {}, string, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, vue210.ComponentProvideOptions> & vue210.VNodeProps & vue210.AllowedComponentProps & vue210.ComponentCustomProps & (new () => {
|
|
568
583
|
$slots: {
|
|
569
584
|
default?: (props: {}) => any;
|
|
570
585
|
};
|
|
571
586
|
});
|
|
572
|
-
readonly Icon:
|
|
573
|
-
icon: string |
|
|
587
|
+
readonly Icon: vue210.DefineComponent<{
|
|
588
|
+
icon: string | vue210.Component;
|
|
574
589
|
width?: number;
|
|
575
590
|
height?: number;
|
|
576
591
|
class?: string | string[] | Record<string, unknown>;
|
|
577
|
-
style?:
|
|
578
|
-
}, {}, {}, {}, {},
|
|
579
|
-
icon: string |
|
|
592
|
+
style?: vue210.CSSProperties;
|
|
593
|
+
}, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, vue210.PublicProps, Readonly<{
|
|
594
|
+
icon: string | vue210.Component;
|
|
580
595
|
width?: number;
|
|
581
596
|
height?: number;
|
|
582
597
|
class?: string | string[] | Record<string, unknown>;
|
|
583
|
-
style?:
|
|
598
|
+
style?: vue210.CSSProperties;
|
|
584
599
|
}> & Readonly<{}>, {
|
|
585
600
|
width: number;
|
|
586
601
|
height: number;
|
|
587
|
-
}, {}, {}, {}, string,
|
|
588
|
-
readonly Image:
|
|
602
|
+
}, {}, {}, {}, string, vue210.ComponentProvideOptions, false, {}, any>;
|
|
603
|
+
readonly Image: vue210.DefineComponent<{
|
|
589
604
|
src?: string;
|
|
590
605
|
alt?: string;
|
|
591
606
|
title?: string;
|
|
@@ -594,10 +609,10 @@ declare const UI: {
|
|
|
594
609
|
controls?: ControlsConfig;
|
|
595
610
|
transformHardenUrl?: (url: string) => string | null;
|
|
596
611
|
nodeProps: ImageNodeRendererProps;
|
|
597
|
-
}, {}, {}, {}, {},
|
|
612
|
+
}, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {} & {
|
|
598
613
|
load: (event: Event) => any;
|
|
599
614
|
error: (event: Event) => any;
|
|
600
|
-
}, string,
|
|
615
|
+
}, string, vue210.PublicProps, Readonly<{
|
|
601
616
|
src?: string;
|
|
602
617
|
alt?: string;
|
|
603
618
|
title?: string;
|
|
@@ -613,25 +628,25 @@ declare const UI: {
|
|
|
613
628
|
controls: ControlsConfig;
|
|
614
629
|
preview: boolean;
|
|
615
630
|
margin: number;
|
|
616
|
-
}, {}, {}, {}, string,
|
|
631
|
+
}, {}, {}, {}, string, vue210.ComponentProvideOptions, false, {}, any>;
|
|
617
632
|
readonly Modal: {
|
|
618
|
-
new (...args: any[]):
|
|
633
|
+
new (...args: any[]): vue210.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
619
634
|
title?: string;
|
|
620
635
|
zIndex?: number;
|
|
621
|
-
modalStyle?:
|
|
622
|
-
headerStyle?:
|
|
636
|
+
modalStyle?: vue210.CSSProperties;
|
|
637
|
+
headerStyle?: vue210.CSSProperties;
|
|
623
638
|
transition?: string;
|
|
624
639
|
close?: () => void;
|
|
625
640
|
} & {
|
|
626
641
|
open?: boolean;
|
|
627
642
|
}> & Readonly<{
|
|
628
643
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
629
|
-
}>, {}, {}, {}, {},
|
|
644
|
+
}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {
|
|
630
645
|
"update:open": (value: boolean) => any;
|
|
631
|
-
},
|
|
646
|
+
}, vue210.PublicProps, {
|
|
632
647
|
zIndex: number;
|
|
633
648
|
transition: string;
|
|
634
|
-
}, false, {}, {},
|
|
649
|
+
}, false, {}, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, {}, any, vue210.ComponentProvideOptions, {
|
|
635
650
|
P: {};
|
|
636
651
|
B: {};
|
|
637
652
|
D: {};
|
|
@@ -641,8 +656,8 @@ declare const UI: {
|
|
|
641
656
|
}, Readonly<{
|
|
642
657
|
title?: string;
|
|
643
658
|
zIndex?: number;
|
|
644
|
-
modalStyle?:
|
|
645
|
-
headerStyle?:
|
|
659
|
+
modalStyle?: vue210.CSSProperties;
|
|
660
|
+
headerStyle?: vue210.CSSProperties;
|
|
646
661
|
transition?: string;
|
|
647
662
|
close?: () => void;
|
|
648
663
|
} & {
|
|
@@ -656,23 +671,23 @@ declare const UI: {
|
|
|
656
671
|
__isFragment?: never;
|
|
657
672
|
__isTeleport?: never;
|
|
658
673
|
__isSuspense?: never;
|
|
659
|
-
} &
|
|
674
|
+
} & vue210.ComponentOptionsBase<Readonly<{
|
|
660
675
|
title?: string;
|
|
661
676
|
zIndex?: number;
|
|
662
|
-
modalStyle?:
|
|
663
|
-
headerStyle?:
|
|
677
|
+
modalStyle?: vue210.CSSProperties;
|
|
678
|
+
headerStyle?: vue210.CSSProperties;
|
|
664
679
|
transition?: string;
|
|
665
680
|
close?: () => void;
|
|
666
681
|
} & {
|
|
667
682
|
open?: boolean;
|
|
668
683
|
}> & Readonly<{
|
|
669
684
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
670
|
-
}>, {}, {}, {}, {},
|
|
685
|
+
}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {
|
|
671
686
|
"update:open": (value: boolean) => any;
|
|
672
687
|
}, string, {
|
|
673
688
|
zIndex: number;
|
|
674
689
|
transition: string;
|
|
675
|
-
}, {}, string, {},
|
|
690
|
+
}, {}, string, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, vue210.ComponentProvideOptions> & vue210.VNodeProps & vue210.AllowedComponentProps & vue210.ComponentCustomProps & (new () => {
|
|
676
691
|
$slots: {
|
|
677
692
|
title?: (props: {}) => any;
|
|
678
693
|
} & {
|
|
@@ -683,39 +698,39 @@ declare const UI: {
|
|
|
683
698
|
default?: (props: {}) => any;
|
|
684
699
|
};
|
|
685
700
|
});
|
|
686
|
-
readonly NodeList:
|
|
701
|
+
readonly NodeList: vue210.DefineComponent<NodeRendererListProps, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, vue210.PublicProps, Readonly<NodeRendererListProps> & Readonly<{}>, {
|
|
687
702
|
nodes: ParsedNode[];
|
|
688
|
-
}, {}, {}, {}, string,
|
|
689
|
-
readonly Segmented:
|
|
703
|
+
}, {}, {}, {}, string, vue210.ComponentProvideOptions, false, {}, any>;
|
|
704
|
+
readonly Segmented: vue210.DefineComponent<{
|
|
690
705
|
options?: SelectOption[];
|
|
691
|
-
buttonStyle?:
|
|
706
|
+
buttonStyle?: vue210.CSSProperties;
|
|
692
707
|
} & {
|
|
693
708
|
value?: string;
|
|
694
|
-
}, {}, {}, {}, {},
|
|
709
|
+
}, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {
|
|
695
710
|
"update:value": (value: string) => any;
|
|
696
711
|
} & {
|
|
697
712
|
change: (value: string) => any;
|
|
698
|
-
}, string,
|
|
713
|
+
}, string, vue210.PublicProps, Readonly<{
|
|
699
714
|
options?: SelectOption[];
|
|
700
|
-
buttonStyle?:
|
|
715
|
+
buttonStyle?: vue210.CSSProperties;
|
|
701
716
|
} & {
|
|
702
717
|
value?: string;
|
|
703
718
|
}> & Readonly<{
|
|
704
719
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
705
720
|
onChange?: ((value: string) => any) | undefined;
|
|
706
721
|
}>, {
|
|
707
|
-
buttonStyle:
|
|
722
|
+
buttonStyle: vue210.CSSProperties;
|
|
708
723
|
options: SelectOption[];
|
|
709
|
-
}, {}, {}, {}, string,
|
|
710
|
-
readonly Spin:
|
|
724
|
+
}, {}, {}, {}, string, vue210.ComponentProvideOptions, false, {}, any>;
|
|
725
|
+
readonly Spin: vue210.DefineComponent<{}, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, vue210.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue210.ComponentProvideOptions, true, {}, any>;
|
|
711
726
|
readonly Table: {
|
|
712
|
-
new (...args: any[]):
|
|
727
|
+
new (...args: any[]): vue210.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
713
728
|
getAlign?: (index: number) => "left" | "center" | "right";
|
|
714
729
|
headers?: unknown[];
|
|
715
730
|
rows?: Array<{
|
|
716
731
|
children: unknown[];
|
|
717
732
|
}>;
|
|
718
|
-
}> & Readonly<{}>, {}, {}, {}, {},
|
|
733
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, vue210.PublicProps, {}, false, {}, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, {}, any, vue210.ComponentProvideOptions, {
|
|
719
734
|
P: {};
|
|
720
735
|
B: {};
|
|
721
736
|
D: {};
|
|
@@ -732,13 +747,13 @@ declare const UI: {
|
|
|
732
747
|
__isFragment?: never;
|
|
733
748
|
__isTeleport?: never;
|
|
734
749
|
__isSuspense?: never;
|
|
735
|
-
} &
|
|
750
|
+
} & vue210.ComponentOptionsBase<Readonly<{
|
|
736
751
|
getAlign?: (index: number) => "left" | "center" | "right";
|
|
737
752
|
headers?: unknown[];
|
|
738
753
|
rows?: Array<{
|
|
739
754
|
children: unknown[];
|
|
740
755
|
}>;
|
|
741
|
-
}> & Readonly<{}>, {}, {}, {}, {},
|
|
756
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, vue210.ComponentProvideOptions> & vue210.VNodeProps & vue210.AllowedComponentProps & vue210.ComponentCustomProps & (new () => {
|
|
742
757
|
$slots: {
|
|
743
758
|
'header-cell'?: (props: {
|
|
744
759
|
cell: unknown;
|
|
@@ -753,7 +768,7 @@ declare const UI: {
|
|
|
753
768
|
};
|
|
754
769
|
});
|
|
755
770
|
readonly Tooltip: {
|
|
756
|
-
new (...args: any[]):
|
|
771
|
+
new (...args: any[]): vue210.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
757
772
|
content?: string;
|
|
758
773
|
trigger?: "hover" | "click";
|
|
759
774
|
placement?: _floating_ui_dom0.Placement;
|
|
@@ -761,11 +776,11 @@ declare const UI: {
|
|
|
761
776
|
}> & Readonly<{}>, {
|
|
762
777
|
show: () => void;
|
|
763
778
|
hide: () => void;
|
|
764
|
-
}, {}, {}, {},
|
|
779
|
+
}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, vue210.PublicProps, {
|
|
765
780
|
trigger: "hover" | "click";
|
|
766
781
|
placement: _floating_ui_dom0.Placement;
|
|
767
782
|
delay: number | [number, number];
|
|
768
|
-
}, false, {}, {},
|
|
783
|
+
}, false, {}, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, {}, any, vue210.ComponentProvideOptions, {
|
|
769
784
|
P: {};
|
|
770
785
|
B: {};
|
|
771
786
|
D: {};
|
|
@@ -788,7 +803,7 @@ declare const UI: {
|
|
|
788
803
|
__isFragment?: never;
|
|
789
804
|
__isTeleport?: never;
|
|
790
805
|
__isSuspense?: never;
|
|
791
|
-
} &
|
|
806
|
+
} & vue210.ComponentOptionsBase<Readonly<{
|
|
792
807
|
content?: string;
|
|
793
808
|
trigger?: "hover" | "click";
|
|
794
809
|
placement?: _floating_ui_dom0.Placement;
|
|
@@ -796,11 +811,11 @@ declare const UI: {
|
|
|
796
811
|
}> & Readonly<{}>, {
|
|
797
812
|
show: () => void;
|
|
798
813
|
hide: () => void;
|
|
799
|
-
}, {}, {}, {},
|
|
814
|
+
}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, {
|
|
800
815
|
trigger: "hover" | "click";
|
|
801
816
|
placement: _floating_ui_dom0.Placement;
|
|
802
817
|
delay: number | [number, number];
|
|
803
|
-
}, {}, string, {},
|
|
818
|
+
}, {}, string, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, vue210.ComponentProvideOptions> & vue210.VNodeProps & vue210.AllowedComponentProps & vue210.ComponentCustomProps & (new () => {
|
|
804
819
|
$slots: {
|
|
805
820
|
default?: (props: {}) => any;
|
|
806
821
|
} & {
|
|
@@ -808,17 +823,19 @@ declare const UI: {
|
|
|
808
823
|
};
|
|
809
824
|
});
|
|
810
825
|
readonly ZoomContainer: {
|
|
811
|
-
new (...args: any[]):
|
|
826
|
+
new (...args: any[]): vue210.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
827
|
+
interactive?: boolean;
|
|
812
828
|
showControl?: boolean;
|
|
813
829
|
controlSize?: "vanilla" | "large";
|
|
814
830
|
position?: ZoomControlPosition;
|
|
815
|
-
containerStyle?:
|
|
816
|
-
}> & Readonly<{}>, {}, {}, {}, {},
|
|
831
|
+
containerStyle?: vue210.CSSProperties;
|
|
832
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, vue210.PublicProps, {
|
|
833
|
+
interactive: boolean;
|
|
817
834
|
showControl: boolean;
|
|
818
835
|
controlSize: "vanilla" | "large";
|
|
819
836
|
position: ZoomControlPosition;
|
|
820
|
-
containerStyle:
|
|
821
|
-
}, false, {}, {},
|
|
837
|
+
containerStyle: vue210.CSSProperties;
|
|
838
|
+
}, false, {}, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, {}, any, vue210.ComponentProvideOptions, {
|
|
822
839
|
P: {};
|
|
823
840
|
B: {};
|
|
824
841
|
D: {};
|
|
@@ -826,30 +843,34 @@ declare const UI: {
|
|
|
826
843
|
M: {};
|
|
827
844
|
Defaults: {};
|
|
828
845
|
}, Readonly<{
|
|
846
|
+
interactive?: boolean;
|
|
829
847
|
showControl?: boolean;
|
|
830
848
|
controlSize?: "vanilla" | "large";
|
|
831
849
|
position?: ZoomControlPosition;
|
|
832
|
-
containerStyle?:
|
|
850
|
+
containerStyle?: vue210.CSSProperties;
|
|
833
851
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
852
|
+
interactive: boolean;
|
|
834
853
|
showControl: boolean;
|
|
835
854
|
controlSize: "vanilla" | "large";
|
|
836
855
|
position: ZoomControlPosition;
|
|
837
|
-
containerStyle:
|
|
856
|
+
containerStyle: vue210.CSSProperties;
|
|
838
857
|
}>;
|
|
839
858
|
__isFragment?: never;
|
|
840
859
|
__isTeleport?: never;
|
|
841
860
|
__isSuspense?: never;
|
|
842
|
-
} &
|
|
861
|
+
} & vue210.ComponentOptionsBase<Readonly<{
|
|
862
|
+
interactive?: boolean;
|
|
843
863
|
showControl?: boolean;
|
|
844
864
|
controlSize?: "vanilla" | "large";
|
|
845
865
|
position?: ZoomControlPosition;
|
|
846
|
-
containerStyle?:
|
|
847
|
-
}> & Readonly<{}>, {}, {}, {}, {},
|
|
866
|
+
containerStyle?: vue210.CSSProperties;
|
|
867
|
+
}> & Readonly<{}>, {}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {}, string, {
|
|
868
|
+
interactive: boolean;
|
|
848
869
|
showControl: boolean;
|
|
849
870
|
controlSize: "vanilla" | "large";
|
|
850
871
|
position: ZoomControlPosition;
|
|
851
|
-
containerStyle:
|
|
852
|
-
}, {}, string, {},
|
|
872
|
+
containerStyle: vue210.CSSProperties;
|
|
873
|
+
}, {}, string, {}, vue210.GlobalComponents, vue210.GlobalDirectives, string, vue210.ComponentProvideOptions> & vue210.VNodeProps & vue210.AllowedComponentProps & vue210.ComponentCustomProps & (new () => {
|
|
853
874
|
$slots: {
|
|
854
875
|
controls?: (props: {
|
|
855
876
|
iconWidth?: undefined;
|
|
@@ -874,38 +895,42 @@ interface UseCodeOptionsOptions {
|
|
|
874
895
|
language?: MaybeRef<string>;
|
|
875
896
|
}
|
|
876
897
|
declare function useCodeOptions(options: UseCodeOptionsOptions): {
|
|
877
|
-
languageCodeOptions:
|
|
878
|
-
languageIcon?: boolean |
|
|
898
|
+
languageCodeOptions: vue210.ComputedRef<{
|
|
899
|
+
languageIcon?: boolean | vue210.Component | undefined;
|
|
879
900
|
language?: Record<string, CodeOptionsLanguage>;
|
|
880
901
|
languageName?: boolean;
|
|
881
902
|
lineNumbers?: boolean;
|
|
882
903
|
maxHeight?: number | string;
|
|
883
904
|
}>;
|
|
884
|
-
showLanguageIcon:
|
|
885
|
-
showLanguageName:
|
|
886
|
-
showLineNumbers:
|
|
905
|
+
showLanguageIcon: vue210.ComputedRef<boolean>;
|
|
906
|
+
showLanguageName: vue210.ComputedRef<boolean>;
|
|
907
|
+
showLineNumbers: vue210.ComputedRef<boolean>;
|
|
887
908
|
};
|
|
888
909
|
//#endregion
|
|
889
910
|
//#region src/composables/use-context.d.ts
|
|
890
911
|
interface Context {
|
|
891
912
|
mode?: MaybeRef<'static' | 'streaming'>;
|
|
892
913
|
isDark?: MaybeRef<boolean>;
|
|
914
|
+
uiOptions?: MaybeRef<UIOptions | undefined>;
|
|
893
915
|
icons?: MaybeRef<Icons>;
|
|
894
916
|
enableAnimate?: MaybeRef<boolean | undefined>;
|
|
895
917
|
parsedNodes?: MaybeRef<ParsedNode[]>;
|
|
896
918
|
getContainer?: () => HTMLElement | undefined;
|
|
919
|
+
getOverlayContainer?: () => Element | null;
|
|
897
920
|
onCopied?: (content: string) => void;
|
|
898
921
|
}
|
|
899
922
|
declare function useContext(): {
|
|
900
923
|
context: Context;
|
|
901
924
|
provideContext: (ctx: Partial<Context>) => void;
|
|
902
925
|
injectContext: () => Context;
|
|
903
|
-
mode:
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
926
|
+
mode: vue210.ComputedRef<"streaming" | "static">;
|
|
927
|
+
hideTooltip: vue210.ComputedRef<boolean>;
|
|
928
|
+
icons: vue210.ComputedRef<Partial<Icons>>;
|
|
929
|
+
isDark: vue210.ComputedRef<boolean>;
|
|
930
|
+
enableAnimate: vue210.ComputedRef<boolean | undefined>;
|
|
931
|
+
parsedNodes: vue210.ComputedRef<ParsedNode[]>;
|
|
908
932
|
readonly getContainer: () => HTMLElement | undefined;
|
|
933
|
+
readonly getOverlayContainer: () => Element | null;
|
|
909
934
|
readonly onCopied: (content: string) => void;
|
|
910
935
|
};
|
|
911
936
|
//#endregion
|
|
@@ -921,17 +946,18 @@ declare function useControls(options: UseControlsOptions): {
|
|
|
921
946
|
//#endregion
|
|
922
947
|
//#region src/composables/use-floating.d.ts
|
|
923
948
|
interface UseFloatingOptions {
|
|
949
|
+
hideTooltip?: MaybeRef<boolean>;
|
|
924
950
|
trigger?: MaybeRef<'hover' | 'click'>;
|
|
925
951
|
placement?: MaybeRef<Placement>;
|
|
926
952
|
delay?: MaybeRef<number | [number, number]>;
|
|
927
953
|
getContainer?: () => HTMLElement | undefined;
|
|
928
954
|
}
|
|
929
955
|
declare function useFloating(options: UseFloatingOptions): {
|
|
930
|
-
referenceEl:
|
|
931
|
-
floatingEl:
|
|
932
|
-
open:
|
|
933
|
-
appendTo:
|
|
934
|
-
floatingStyle:
|
|
956
|
+
referenceEl: vue210.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
957
|
+
floatingEl: vue210.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
958
|
+
open: vue210.Ref<boolean, boolean>;
|
|
959
|
+
appendTo: vue210.ComputedRef<HTMLElement | "body">;
|
|
960
|
+
floatingStyle: vue210.ComputedRef<{
|
|
935
961
|
position: "absolute" | "fixed";
|
|
936
962
|
top: string;
|
|
937
963
|
left: string;
|
|
@@ -952,7 +978,7 @@ declare function useI18n(): {
|
|
|
952
978
|
//#endregion
|
|
953
979
|
//#region src/composables/use-katex.d.ts
|
|
954
980
|
declare function useKatex(): {
|
|
955
|
-
installed:
|
|
981
|
+
installed: vue210.Ref<boolean, boolean>;
|
|
956
982
|
render: (code: string, options?: KatexOptions$1) => Promise<{
|
|
957
983
|
html?: string;
|
|
958
984
|
error?: string;
|
|
@@ -968,9 +994,9 @@ interface UseMathRendererOptions {
|
|
|
968
994
|
throttle?: MaybeRef<number>;
|
|
969
995
|
}
|
|
970
996
|
declare function useMathRenderer(options: UseMathRendererOptions): {
|
|
971
|
-
html:
|
|
972
|
-
error:
|
|
973
|
-
errorMessage:
|
|
997
|
+
html: vue210.Ref<string, string>;
|
|
998
|
+
error: vue210.ComputedRef<boolean>;
|
|
999
|
+
errorMessage: vue210.Ref<string, string>;
|
|
974
1000
|
};
|
|
975
1001
|
//#endregion
|
|
976
1002
|
//#region src/composables/use-medium-zoom.d.ts
|
|
@@ -980,12 +1006,12 @@ interface UseMediumZoomOptions {
|
|
|
980
1006
|
close?: () => void;
|
|
981
1007
|
}
|
|
982
1008
|
declare function useMediumZoom(options: UseMediumZoomOptions): {
|
|
983
|
-
isAnimating:
|
|
984
|
-
elementStyle:
|
|
1009
|
+
isAnimating: vue210.Ref<boolean, boolean>;
|
|
1010
|
+
elementStyle: vue210.ComputedRef<{
|
|
985
1011
|
opacity: number;
|
|
986
1012
|
}>;
|
|
987
|
-
elementRef:
|
|
988
|
-
zoomElementRef:
|
|
1013
|
+
elementRef: vue210.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
1014
|
+
zoomElementRef: vue210.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
989
1015
|
zoomIn: () => Promise<void>;
|
|
990
1016
|
zoomOut: () => Promise<void>;
|
|
991
1017
|
};
|
|
@@ -996,7 +1022,7 @@ interface UseMermaidOptions {
|
|
|
996
1022
|
isDark?: MaybeRef<boolean>;
|
|
997
1023
|
}
|
|
998
1024
|
declare function useMermaid(options?: UseMermaidOptions): {
|
|
999
|
-
installed:
|
|
1025
|
+
installed: vue210.Ref<boolean, boolean>;
|
|
1000
1026
|
getMermaid: () => Promise<Mermaid>;
|
|
1001
1027
|
parseMermaid: (code: string) => Promise<{
|
|
1002
1028
|
valid: boolean;
|
|
@@ -1020,10 +1046,10 @@ interface UseSanitizersOptions {
|
|
|
1020
1046
|
isImage?: MaybeRef<boolean | undefined>;
|
|
1021
1047
|
}
|
|
1022
1048
|
declare function useSanitizers(options: UseSanitizersOptions): {
|
|
1023
|
-
hardenOptions:
|
|
1049
|
+
hardenOptions: vue210.ComputedRef<HardenOptions>;
|
|
1024
1050
|
transformHardenUrl: (url: string) => string | null;
|
|
1025
|
-
transformedUrl:
|
|
1026
|
-
isHardenUrl:
|
|
1051
|
+
transformedUrl: vue210.ComputedRef<string | null>;
|
|
1052
|
+
isHardenUrl: vue210.ComputedRef<boolean>;
|
|
1027
1053
|
};
|
|
1028
1054
|
//#endregion
|
|
1029
1055
|
//#region src/composables/use-shiki.d.ts
|
|
@@ -1033,7 +1059,7 @@ interface UseShikiOptions {
|
|
|
1033
1059
|
isDark?: MaybeRef<boolean>;
|
|
1034
1060
|
}
|
|
1035
1061
|
declare function useShiki(options?: UseShikiOptions): {
|
|
1036
|
-
installed:
|
|
1062
|
+
installed: vue210.Ref<boolean, boolean>;
|
|
1037
1063
|
getHighlighter: () => Promise<Highlighter>;
|
|
1038
1064
|
codeToTokens: (code: string) => Promise<TokensResult>;
|
|
1039
1065
|
preload: () => Promise<void>;
|
|
@@ -1043,15 +1069,15 @@ declare function useShiki(options?: UseShikiOptions): {
|
|
|
1043
1069
|
//#region src/composables/use-tailwind-v3-theme.d.ts
|
|
1044
1070
|
interface UseTailwindV3ThemeOptions {
|
|
1045
1071
|
element?: MaybeRefOrGetter<HTMLElement | undefined>;
|
|
1046
|
-
styleScope?: MaybeRef<string>;
|
|
1072
|
+
styleScope?: MaybeRef<string | string[]>;
|
|
1047
1073
|
}
|
|
1048
1074
|
declare function useTailwindV3Theme(options: UseTailwindV3ThemeOptions): {
|
|
1049
|
-
element:
|
|
1075
|
+
element: vue210.ComputedRef<Element | undefined>;
|
|
1050
1076
|
id: string;
|
|
1051
|
-
css:
|
|
1077
|
+
css: vue210.ShallowRef<string>;
|
|
1052
1078
|
load: () => void;
|
|
1053
1079
|
unload: () => void;
|
|
1054
|
-
isLoaded: Readonly<
|
|
1080
|
+
isLoaded: Readonly<vue210.ShallowRef<boolean>>;
|
|
1055
1081
|
generateCSS: () => void;
|
|
1056
1082
|
};
|
|
1057
1083
|
//#endregion
|
|
@@ -1071,11 +1097,11 @@ interface ZoomState {
|
|
|
1071
1097
|
translateY: number;
|
|
1072
1098
|
}
|
|
1073
1099
|
declare function useZoom(options?: UseZoomOptions): {
|
|
1074
|
-
zoom:
|
|
1075
|
-
translateX:
|
|
1076
|
-
translateY:
|
|
1077
|
-
isDragging:
|
|
1078
|
-
transformStyle:
|
|
1100
|
+
zoom: vue210.Ref<number, number>;
|
|
1101
|
+
translateX: vue210.Ref<number, number>;
|
|
1102
|
+
translateY: vue210.Ref<number, number>;
|
|
1103
|
+
isDragging: vue210.Ref<boolean, boolean>;
|
|
1104
|
+
transformStyle: vue210.ComputedRef<{
|
|
1079
1105
|
transform: string;
|
|
1080
1106
|
}>;
|
|
1081
1107
|
zoomIn: () => void;
|
|
@@ -1094,16 +1120,16 @@ declare function useZoom(options?: UseZoomOptions): {
|
|
|
1094
1120
|
};
|
|
1095
1121
|
//#endregion
|
|
1096
1122
|
//#region src/index.vue.d.ts
|
|
1097
|
-
declare const __VLS_export:
|
|
1123
|
+
declare const __VLS_export: vue210.DefineComponent<StreamMarkdownProps, {
|
|
1098
1124
|
getMarkdownParser: () => MarkdownParser;
|
|
1099
1125
|
getParsedNodes: () => ParsedNode[];
|
|
1100
1126
|
getProcessedContent: () => string;
|
|
1101
|
-
}, {}, {}, {},
|
|
1127
|
+
}, {}, {}, {}, vue210.ComponentOptionsMixin, vue210.ComponentOptionsMixin, {} & {
|
|
1102
1128
|
copied: (content: string) => any;
|
|
1103
|
-
}, string,
|
|
1129
|
+
}, string, vue210.PublicProps, Readonly<StreamMarkdownProps> & Readonly<{
|
|
1104
1130
|
onCopied?: ((content: string) => any) | undefined;
|
|
1105
1131
|
}>, {
|
|
1106
|
-
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",
|
|
1132
|
+
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", vue210.Component>>;
|
|
1107
1133
|
controls: ControlsConfig;
|
|
1108
1134
|
previewers: PreviewerConfig;
|
|
1109
1135
|
isDark: boolean;
|
|
@@ -1112,14 +1138,14 @@ declare const __VLS_export: vue209.DefineComponent<StreamMarkdownProps, {
|
|
|
1112
1138
|
icons: Partial<Icons>;
|
|
1113
1139
|
locale: string | LocaleConfig;
|
|
1114
1140
|
enableAnimate: boolean;
|
|
1115
|
-
}, {}, {}, {}, string,
|
|
1141
|
+
}, {}, {}, {}, string, vue210.ComponentProvideOptions, false, {}, any>;
|
|
1116
1142
|
declare const _default: typeof __VLS_export;
|
|
1117
1143
|
//#endregion
|
|
1118
1144
|
//#region src/locales/index.d.ts
|
|
1119
1145
|
declare const SUPPORT_LANGUAGES: string[];
|
|
1120
1146
|
declare const localesGlob: Record<string, () => Promise<unknown>>;
|
|
1121
|
-
declare const localeMessages:
|
|
1122
|
-
declare const currentLocale:
|
|
1147
|
+
declare const localeMessages: vue210.Ref<LocaleConfig | undefined, LocaleConfig | undefined>;
|
|
1148
|
+
declare const currentLocale: vue210.Ref<string, string>;
|
|
1123
1149
|
declare function loadLocaleMessages(language: string | LocaleConfig): Promise<void>;
|
|
1124
1150
|
//#endregion
|
|
1125
1151
|
//#region src/postprocess/footnote.d.ts
|
|
@@ -1370,7 +1396,7 @@ declare const trailingStandaloneDashWithNewlinesPattern: RegExp;
|
|
|
1370
1396
|
//#region src/preprocess/index.d.ts
|
|
1371
1397
|
declare function proprocessContent(content: string): string;
|
|
1372
1398
|
declare function normalize(content: string): string;
|
|
1373
|
-
declare function preprocess(content: string): string;
|
|
1399
|
+
declare function preprocess(content: string, streamdown?: boolean): string;
|
|
1374
1400
|
//#endregion
|
|
1375
1401
|
//#region src/utils/harden.d.ts
|
|
1376
1402
|
declare function transformUrl(url: unknown, allowedPrefixes: string[], defaultOrigin: string, allowDataImages?: boolean, isImage?: boolean, allowedProtocols?: string[]): string | null;
|
|
@@ -1417,4 +1443,4 @@ declare function tableDataToTSV(data: TableData): string;
|
|
|
1417
1443
|
declare function escapeMarkdownTableCell(cell: string): string;
|
|
1418
1444
|
declare function tableDataToMarkdown(data: TableData): string;
|
|
1419
1445
|
//#endregion
|
|
1420
|
-
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, PreviewSegmentedPlacement, 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 };
|
|
1446
|
+
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, PreviewSegmentedPlacement, 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, UIOptions, 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 };
|