markstream-vue 0.0.2-beta.3 → 0.0.2-beta.5

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/index.d.ts CHANGED
@@ -4,62 +4,6 @@ import { BaseNode, ParseOptions, MarkdownIt } from 'stream-markdown-parser';
4
4
  export * from 'stream-markdown-parser';
5
5
  export { KATEX_COMMANDS, MathOptions, normalizeStandaloneBackslashT, setDefaultMathOptions } from 'stream-markdown-parser';
6
6
 
7
- type AdmonitionKind = 'note' | 'info' | 'tip' | 'warning' | 'danger' | 'caution' | 'error';
8
- interface AdmonitionNode {
9
- type: 'admonition';
10
- kind: AdmonitionKind;
11
- title?: string;
12
- children: {
13
- type: string;
14
- raw: string;
15
- }[];
16
- raw: string;
17
- collapsible?: boolean;
18
- open?: boolean;
19
- }
20
- type __VLS_Props$l = {
21
- node: AdmonitionNode;
22
- indexKey: number | string;
23
- isDark?: boolean;
24
- typewriter?: boolean;
25
- };
26
- declare const _default$u: vue.DefineComponent<__VLS_Props$l, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
27
- copy: (...args: any[]) => void;
28
- }, string, vue.PublicProps, Readonly<__VLS_Props$l> & Readonly<{
29
- onCopy?: (...args: any[]) => any;
30
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLDivElement>;
31
-
32
- interface NodeChild$9 {
33
- type: string;
34
- raw: string;
35
- [key: string]: unknown;
36
- }
37
- interface BlockquoteNode {
38
- type: 'blockquote';
39
- children: NodeChild$9[];
40
- raw: string;
41
- cite?: string;
42
- }
43
- type __VLS_Props$k = {
44
- node: BlockquoteNode;
45
- indexKey: string | number;
46
- typewriter?: boolean;
47
- };
48
- declare const _default$t: vue.DefineComponent<__VLS_Props$k, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
49
- copy: (text: string) => any;
50
- }, string, vue.PublicProps, Readonly<__VLS_Props$k> & Readonly<{
51
- onCopy?: (text: string) => any;
52
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLQuoteElement>;
53
-
54
- type __VLS_Props$j = {
55
- node: {
56
- type: 'checkbox';
57
- checked: boolean;
58
- raw: string;
59
- };
60
- };
61
- declare const _default$s: vue.DefineComponent<__VLS_Props$j, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$j> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLSpanElement>;
62
-
63
7
  interface CodeBlockNodeProps {
64
8
  node: {
65
9
  type: 'code_block';
@@ -141,6 +85,13 @@ interface MermaidBlockNodeProps {
141
85
  parseTimeoutMs?: number;
142
86
  renderTimeoutMs?: number;
143
87
  fullRenderTimeoutMs?: number;
88
+ showHeader?: boolean;
89
+ showModeToggle?: boolean;
90
+ showCopyButton?: boolean;
91
+ showExportButton?: boolean;
92
+ showFullscreenButton?: boolean;
93
+ showCollapseButton?: boolean;
94
+ showZoomControls?: boolean;
144
95
  }
145
96
  interface MathBlockNodeProps {
146
97
  node: {
@@ -159,54 +110,61 @@ interface MathInlineNodeProps {
159
110
  };
160
111
  }
161
112
 
162
- declare function __VLS_template$4(): {
163
- attrs: Partial<{}>;
164
- slots: {
165
- 'header-left'?(_: {}): any;
166
- 'header-right'?(_: {}): any;
167
- loading?(_: {
168
- loading: boolean;
169
- stream: boolean;
170
- }): any;
171
- };
172
- refs: {
173
- container: HTMLDivElement;
174
- codeEditor: HTMLDivElement;
175
- };
176
- rootEl: any;
113
+ type AdmonitionKind = 'note' | 'info' | 'tip' | 'warning' | 'danger' | 'caution' | 'error';
114
+ interface AdmonitionNode {
115
+ type: 'admonition';
116
+ kind: AdmonitionKind;
117
+ title?: string;
118
+ children: {
119
+ type: string;
120
+ raw: string;
121
+ }[];
122
+ raw: string;
123
+ collapsible?: boolean;
124
+ open?: boolean;
125
+ }
126
+ type __VLS_Props$m = {
127
+ node: AdmonitionNode;
128
+ indexKey: number | string;
129
+ isDark?: boolean;
130
+ typewriter?: boolean;
177
131
  };
178
- type __VLS_TemplateResult$4 = ReturnType<typeof __VLS_template$4>;
179
- declare const __VLS_component$4: vue.DefineComponent<CodeBlockNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
132
+ declare const _default$s: vue.DefineComponent<__VLS_Props$m, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
180
133
  copy: (...args: any[]) => void;
181
- previewCode: (...args: any[]) => void;
182
- }, string, vue.PublicProps, Readonly<CodeBlockNodeProps> & Readonly<{
134
+ }, string, vue.PublicProps, Readonly<__VLS_Props$m> & Readonly<{
183
135
  onCopy?: (...args: any[]) => any;
184
- onPreviewCode?: (...args: any[]) => any;
185
- }>, {
186
- loading: boolean;
187
- stream: boolean;
188
- darkTheme: any;
189
- lightTheme: any;
190
- isShowPreview: boolean;
191
- enableFontSizeControl: boolean;
192
- minWidth: string | number;
193
- maxWidth: string | number;
194
- showHeader: boolean;
195
- showCopyButton: boolean;
196
- showExpandButton: boolean;
197
- showPreviewButton: boolean;
198
- showFontSizeButtons: boolean;
199
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
200
- container: HTMLDivElement;
201
- codeEditor: HTMLDivElement;
202
- }, any>;
203
- declare const _default$r: __VLS_WithTemplateSlots$4<typeof __VLS_component$4, __VLS_TemplateResult$4["slots"]>;
136
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLDivElement>;
204
137
 
205
- type __VLS_WithTemplateSlots$4<T, S> = T & {
206
- new (): {
207
- $slots: S;
138
+ interface NodeChild$9 {
139
+ type: string;
140
+ raw: string;
141
+ [key: string]: unknown;
142
+ }
143
+ interface BlockquoteNode {
144
+ type: 'blockquote';
145
+ children: NodeChild$9[];
146
+ raw: string;
147
+ cite?: string;
148
+ }
149
+ type __VLS_Props$l = {
150
+ node: BlockquoteNode;
151
+ indexKey: string | number;
152
+ typewriter?: boolean;
153
+ };
154
+ declare const _default$r: vue.DefineComponent<__VLS_Props$l, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
155
+ copy: (text: string) => any;
156
+ }, string, vue.PublicProps, Readonly<__VLS_Props$l> & Readonly<{
157
+ onCopy?: (text: string) => any;
158
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLQuoteElement>;
159
+
160
+ type __VLS_Props$k = {
161
+ node: {
162
+ type: 'checkbox';
163
+ checked: boolean;
164
+ raw: string;
208
165
  };
209
166
  };
167
+ declare const _default$q: vue.DefineComponent<__VLS_Props$k, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$k> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLSpanElement>;
210
168
 
211
169
  interface DefinitionItemNode {
212
170
  type: 'definition_item';
@@ -225,18 +183,18 @@ interface DefinitionListNode {
225
183
  items: DefinitionItemNode[];
226
184
  raw: string;
227
185
  }
228
- type __VLS_Props$i = {
186
+ type __VLS_Props$j = {
229
187
  node: DefinitionListNode;
230
188
  indexKey: string | number;
231
189
  typewriter?: boolean;
232
190
  };
233
- declare const _default$q: vue.DefineComponent<__VLS_Props$i, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
191
+ declare const _default$p: vue.DefineComponent<__VLS_Props$j, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
234
192
  copy: (...args: any[]) => void;
235
- }, string, vue.PublicProps, Readonly<__VLS_Props$i> & Readonly<{
193
+ }, string, vue.PublicProps, Readonly<__VLS_Props$j> & Readonly<{
236
194
  onCopy?: (...args: any[]) => any;
237
195
  }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLDListElement>;
238
196
 
239
- type __VLS_Props$h = {
197
+ type __VLS_Props$i = {
240
198
  node: {
241
199
  type: 'emoji';
242
200
  name: string;
@@ -244,7 +202,7 @@ type __VLS_Props$h = {
244
202
  raw: string;
245
203
  };
246
204
  };
247
- declare const _default$p: vue.DefineComponent<__VLS_Props$h, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$h> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLSpanElement>;
205
+ declare const _default$o: vue.DefineComponent<__VLS_Props$i, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$i> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLSpanElement>;
248
206
 
249
207
  interface FootnoteNode {
250
208
  type: 'footnote';
@@ -255,14 +213,14 @@ interface FootnoteNode {
255
213
  }[];
256
214
  raw: string;
257
215
  }
258
- type __VLS_Props$g = {
216
+ type __VLS_Props$h = {
259
217
  node: FootnoteNode;
260
218
  indexKey: string | number;
261
219
  typewriter?: boolean;
262
220
  };
263
- declare const _default$o: vue.DefineComponent<__VLS_Props$g, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
221
+ declare const _default$n: vue.DefineComponent<__VLS_Props$h, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
264
222
  copy: (...args: any[]) => void;
265
- }, string, vue.PublicProps, Readonly<__VLS_Props$g> & Readonly<{
223
+ }, string, vue.PublicProps, Readonly<__VLS_Props$h> & Readonly<{
266
224
  onCopy?: (...args: any[]) => any;
267
225
  }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLDivElement>;
268
226
 
@@ -271,10 +229,19 @@ interface FootnoteReferenceNode {
271
229
  id: string;
272
230
  raw: string;
273
231
  }
274
- type __VLS_Props$f = {
232
+ type __VLS_Props$g = {
275
233
  node: FootnoteReferenceNode;
276
234
  };
277
- declare const _default$n: vue.DefineComponent<__VLS_Props$f, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$f> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLElement>;
235
+ declare const _default$m: vue.DefineComponent<__VLS_Props$g, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$g> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLElement>;
236
+
237
+ type __VLS_Props$f = {
238
+ node: {
239
+ type: 'footnote_anchor';
240
+ id: string;
241
+ raw?: string;
242
+ };
243
+ };
244
+ declare const _default$l: vue.DefineComponent<__VLS_Props$f, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$f> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLAnchorElement>;
278
245
 
279
246
  interface HardBreakNode {
280
247
  type: 'hardbreak';
@@ -283,7 +250,7 @@ interface HardBreakNode {
283
250
  type __VLS_Props$e = {
284
251
  node: HardBreakNode;
285
252
  };
286
- declare const _default$m: vue.DefineComponent<__VLS_Props$e, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$e> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLBRElement>;
253
+ declare const _default$k: vue.DefineComponent<__VLS_Props$e, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$e> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLBRElement>;
287
254
 
288
255
  declare const _HeadingNode: any;
289
256
 
@@ -301,7 +268,7 @@ type __VLS_Props$d = {
301
268
  customId?: string;
302
269
  indexKey?: number | string;
303
270
  };
304
- declare const _default$l: vue.DefineComponent<__VLS_Props$d, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$d> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLElement>;
271
+ declare const _default$j: vue.DefineComponent<__VLS_Props$d, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$d> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLElement>;
305
272
 
306
273
  declare function __VLS_template$3(): {
307
274
  attrs: Partial<{}>;
@@ -362,7 +329,7 @@ declare const __VLS_component$3: vue.DefineComponent<ImageNodeProps, {}, {}, {},
362
329
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
363
330
  figureRef: HTMLElement;
364
331
  }, HTMLElement>;
365
- declare const _default$k: __VLS_WithTemplateSlots$3<typeof __VLS_component$3, __VLS_TemplateResult$3["slots"]>;
332
+ declare const _default$i: __VLS_WithTemplateSlots$3<typeof __VLS_component$3, __VLS_TemplateResult$3["slots"]>;
366
333
 
367
334
  type __VLS_WithTemplateSlots$3<T, S> = T & {
368
335
  new (): {
@@ -377,7 +344,7 @@ type __VLS_Props$c = {
377
344
  raw: string;
378
345
  };
379
346
  };
380
- declare const _default$j: vue.DefineComponent<__VLS_Props$c, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$c> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLElement>;
347
+ declare const _default$h: vue.DefineComponent<__VLS_Props$c, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$c> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLElement>;
381
348
 
382
349
  interface NodeChild$7 {
383
350
  type: string;
@@ -393,9 +360,9 @@ type __VLS_Props$b = {
393
360
  customId?: string;
394
361
  indexKey?: number | string;
395
362
  };
396
- declare const _default$i: vue.DefineComponent<__VLS_Props$b, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$b> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLModElement>;
363
+ declare const _default$g: vue.DefineComponent<__VLS_Props$b, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$b> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLModElement>;
397
364
 
398
- declare const _default$h: vue.DefineComponent<LinkNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LinkNodeProps> & Readonly<{}>, {
365
+ declare const _default$f: vue.DefineComponent<LinkNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LinkNodeProps> & Readonly<{}>, {
399
366
  showTooltip: boolean;
400
367
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
401
368
 
@@ -416,7 +383,7 @@ type __VLS_Props$a = {
416
383
  /** Forwarded flag to enable/disable non-code node enter transition */
417
384
  typewriter?: boolean;
418
385
  };
419
- declare const _default$g: vue.DefineComponent<__VLS_Props$a, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
386
+ declare const _default$e: vue.DefineComponent<__VLS_Props$a, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
420
387
  copy: (text: string) => any;
421
388
  }, string, vue.PublicProps, Readonly<__VLS_Props$a> & Readonly<{
422
389
  onCopy?: (text: string) => any;
@@ -444,7 +411,7 @@ type __VLS_Props$9 = {
444
411
  indexKey?: number | string;
445
412
  typewriter?: boolean;
446
413
  };
447
- declare const _default$f: vue.DefineComponent<__VLS_Props$9, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
414
+ declare const _default$d: vue.DefineComponent<__VLS_Props$9, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
448
415
  copy: (...args: any[]) => void;
449
416
  }, string, vue.PublicProps, Readonly<__VLS_Props$9> & Readonly<{
450
417
  onCopy?: (...args: any[]) => any;
@@ -507,6 +474,8 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$8, {}, {}, {},
507
474
  onPreviewCode?: (...args: any[]) => any;
508
475
  }>, {
509
476
  loading: boolean;
477
+ showHeader: boolean;
478
+ showCopyButton: boolean;
510
479
  stream: boolean;
511
480
  darkTheme: string;
512
481
  lightTheme: string;
@@ -514,15 +483,13 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$8, {}, {}, {},
514
483
  enableFontSizeControl: boolean;
515
484
  minWidth: string | number;
516
485
  maxWidth: string | number;
517
- showHeader: boolean;
518
- showCopyButton: boolean;
519
486
  showExpandButton: boolean;
520
487
  showPreviewButton: boolean;
521
488
  showFontSizeButtons: boolean;
522
489
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
523
490
  codeBlockContent: HTMLDivElement;
524
491
  }, any>;
525
- declare const _default$e: __VLS_WithTemplateSlots$2<typeof __VLS_component$2, __VLS_TemplateResult$2["slots"]>;
492
+ declare const _default$c: __VLS_WithTemplateSlots$2<typeof __VLS_component$2, __VLS_TemplateResult$2["slots"]>;
526
493
 
527
494
  type __VLS_WithTemplateSlots$2<T, S> = T & {
528
495
  new (): {
@@ -530,41 +497,33 @@ type __VLS_WithTemplateSlots$2<T, S> = T & {
530
497
  };
531
498
  };
532
499
 
533
- declare const _default$d: vue.DefineComponent<MathBlockNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<MathBlockNodeProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
534
- containerEl: HTMLDivElement;
535
- mathBlockElement: HTMLDivElement;
536
- }, HTMLDivElement>;
537
-
538
500
  declare function __VLS_template$1(): {
539
501
  attrs: Partial<{}>;
540
502
  slots: {
541
- loading?(_: {
542
- isLoading: true;
543
- }): any;
503
+ 'header-left'?(_: {}): any;
504
+ 'header-center'?(_: {}): any;
505
+ 'header-right'?(_: {}): any;
544
506
  };
545
507
  refs: {
546
- containerEl: HTMLSpanElement;
547
- mathElement: HTMLSpanElement;
508
+ modeContainerRef: HTMLDivElement;
509
+ mermaidContainer: HTMLDivElement;
510
+ mermaidWrapper: HTMLDivElement;
511
+ mermaidContent: HTMLDivElement;
512
+ modalContent: HTMLDivElement;
548
513
  };
549
- rootEl: HTMLSpanElement;
514
+ rootEl: HTMLDivElement;
550
515
  };
551
516
  type __VLS_TemplateResult$1 = ReturnType<typeof __VLS_template$1>;
552
- declare const __VLS_component$1: vue.DefineComponent<MathInlineNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<MathInlineNodeProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
553
- containerEl: HTMLSpanElement;
554
- mathElement: HTMLSpanElement;
555
- }, HTMLSpanElement>;
556
- declare const _default$c: __VLS_WithTemplateSlots$1<typeof __VLS_component$1, __VLS_TemplateResult$1["slots"]>;
557
-
558
- type __VLS_WithTemplateSlots$1<T, S> = T & {
559
- new (): {
560
- $slots: S;
561
- };
562
- };
563
-
564
- declare const _default$b: vue.DefineComponent<MermaidBlockNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
517
+ declare const __VLS_component$1: vue.DefineComponent<MermaidBlockNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
565
518
  copy: (...args: any[]) => void;
519
+ export: (...args: any[]) => void;
520
+ openModal: (...args: any[]) => void;
521
+ toggleMode: (...args: any[]) => void;
566
522
  }, string, vue.PublicProps, Readonly<MermaidBlockNodeProps> & Readonly<{
567
523
  onCopy?: (...args: any[]) => any;
524
+ onExport?: (...args: any[]) => any;
525
+ onOpenModal?: (...args: any[]) => any;
526
+ onToggleMode?: (...args: any[]) => any;
568
527
  }>, {
569
528
  loading: boolean;
570
529
  maxHeight: string | null;
@@ -572,6 +531,13 @@ declare const _default$b: vue.DefineComponent<MermaidBlockNodeProps, {}, {}, {},
572
531
  parseTimeoutMs: number;
573
532
  renderTimeoutMs: number;
574
533
  fullRenderTimeoutMs: number;
534
+ showHeader: boolean;
535
+ showModeToggle: boolean;
536
+ showCopyButton: boolean;
537
+ showExportButton: boolean;
538
+ showFullscreenButton: boolean;
539
+ showCollapseButton: boolean;
540
+ showZoomControls: boolean;
575
541
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
576
542
  modeContainerRef: HTMLDivElement;
577
543
  mermaidContainer: HTMLDivElement;
@@ -579,6 +545,13 @@ declare const _default$b: vue.DefineComponent<MermaidBlockNodeProps, {}, {}, {},
579
545
  mermaidContent: HTMLDivElement;
580
546
  modalContent: HTMLDivElement;
581
547
  }, HTMLDivElement>;
548
+ declare const _default$b: __VLS_WithTemplateSlots$1<typeof __VLS_component$1, __VLS_TemplateResult$1["slots"]>;
549
+
550
+ type __VLS_WithTemplateSlots$1<T, S> = T & {
551
+ new (): {
552
+ $slots: S;
553
+ };
554
+ };
582
555
 
583
556
  interface NodeRendererProps {
584
557
  content?: string;
@@ -961,6 +934,115 @@ declare function canParseOffthread(code: string, theme: Theme, timeout?: number)
961
934
  declare function findPrefixOffthread(code: string, theme: Theme, timeout?: number): Promise<string>;
962
935
  declare function terminateWorker(): void;
963
936
 
937
+ declare const CodeBlockNode: {
938
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<CodeBlockNodeProps> & Readonly<{
939
+ onCopy?: (...args: any[]) => any;
940
+ onPreviewCode?: (...args: any[]) => any;
941
+ }>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
942
+ copy: (...args: any[]) => void;
943
+ previewCode: (...args: any[]) => void;
944
+ }, vue.PublicProps, {
945
+ loading: boolean;
946
+ showHeader: boolean;
947
+ showCopyButton: boolean;
948
+ stream: boolean;
949
+ darkTheme: any;
950
+ lightTheme: any;
951
+ isShowPreview: boolean;
952
+ enableFontSizeControl: boolean;
953
+ minWidth: string | number;
954
+ maxWidth: string | number;
955
+ showExpandButton: boolean;
956
+ showPreviewButton: boolean;
957
+ showFontSizeButtons: boolean;
958
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
959
+ container: HTMLDivElement;
960
+ codeEditor: HTMLDivElement;
961
+ }, any, vue.ComponentProvideOptions, {
962
+ P: {};
963
+ B: {};
964
+ D: {};
965
+ C: {};
966
+ M: {};
967
+ Defaults: {};
968
+ }, Readonly<CodeBlockNodeProps> & Readonly<{
969
+ onCopy?: (...args: any[]) => any;
970
+ onPreviewCode?: (...args: any[]) => any;
971
+ }>, {}, {}, {}, {}, {
972
+ loading: boolean;
973
+ showHeader: boolean;
974
+ showCopyButton: boolean;
975
+ stream: boolean;
976
+ darkTheme: any;
977
+ lightTheme: any;
978
+ isShowPreview: boolean;
979
+ enableFontSizeControl: boolean;
980
+ minWidth: string | number;
981
+ maxWidth: string | number;
982
+ showExpandButton: boolean;
983
+ showPreviewButton: boolean;
984
+ showFontSizeButtons: boolean;
985
+ }>;
986
+ __isFragment?: never;
987
+ __isTeleport?: never;
988
+ __isSuspense?: never;
989
+ } & vue.ComponentOptionsBase<Readonly<CodeBlockNodeProps> & Readonly<{
990
+ onCopy?: (...args: any[]) => any;
991
+ onPreviewCode?: (...args: any[]) => any;
992
+ }>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
993
+ copy: (...args: any[]) => void;
994
+ previewCode: (...args: any[]) => void;
995
+ }, string, {
996
+ loading: boolean;
997
+ showHeader: boolean;
998
+ showCopyButton: boolean;
999
+ stream: boolean;
1000
+ darkTheme: any;
1001
+ lightTheme: any;
1002
+ isShowPreview: boolean;
1003
+ enableFontSizeControl: boolean;
1004
+ minWidth: string | number;
1005
+ maxWidth: string | number;
1006
+ showExpandButton: boolean;
1007
+ showPreviewButton: boolean;
1008
+ showFontSizeButtons: boolean;
1009
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new () => {
1010
+ $slots: {
1011
+ 'header-left'?(_: {}): any;
1012
+ 'header-right'?(_: {}): any;
1013
+ loading?(_: {
1014
+ loading: boolean;
1015
+ stream: boolean;
1016
+ }): any;
1017
+ };
1018
+ });
1019
+ declare const MathBlockNode: vue.DefineComponent<MathBlockNodeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<MathBlockNodeProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
1020
+ containerEl: HTMLDivElement;
1021
+ mathBlockElement: HTMLDivElement;
1022
+ }, HTMLDivElement>;
1023
+ declare const MathInlineNode: {
1024
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<MathInlineNodeProps> & Readonly<{}>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
1025
+ containerEl: HTMLSpanElement;
1026
+ mathElement: HTMLSpanElement;
1027
+ }, HTMLSpanElement, vue.ComponentProvideOptions, {
1028
+ P: {};
1029
+ B: {};
1030
+ D: {};
1031
+ C: {};
1032
+ M: {};
1033
+ Defaults: {};
1034
+ }, Readonly<MathInlineNodeProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
1035
+ __isFragment?: never;
1036
+ __isTeleport?: never;
1037
+ __isSuspense?: never;
1038
+ } & vue.ComponentOptionsBase<Readonly<MathInlineNodeProps> & Readonly<{}>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new () => {
1039
+ $slots: {
1040
+ loading?(_: {
1041
+ isLoading: true;
1042
+ }): any;
1043
+ };
1044
+ });
1045
+
964
1046
  declare const VueRendererMarkdown: Plugin;
965
1047
 
966
- export { _default$u as AdmonitionNode, BackpressureOptions, _default$t as BlockquoteNode, _default$s as CheckboxNode, _default$r as CodeBlockNode, _default$q as DefinitionListNode, _default$p as EmojiNode, _default$o as FootnoteNode, _default$n as FootnoteReferenceNode, _default$m as HardBreakNode, _HeadingNode as HeadingNode, _default$l as HighlightNode, _default$k as ImageNode, _default$j as InlineCodeNode, _default$i as InsertNode, LanguageIconResolver, _default$h as LinkNode, _default$g as ListItemNode, _default$f as ListNode, MERMAID_WORKER_BUSY_CODE, _default$e as MarkdownCodeBlockNode, _default$a as MarkdownRender, _default$d as MathBlockNode, _default$c as MathInlineNode, _default$b as MermaidBlockNode, _default$9 as ParagraphNode, _default$8 as PreCodeNode, _default$7 as ReferenceNode, _default$6 as StrikethroughNode, _default$5 as StrongNode, _default$4 as SubscriptNode, _default$3 as SuperscriptNode, _default$2 as TableNode, _default$1 as TextNode, _default as ThematicBreakNode, VueRendererMarkdown, WORKER_BUSY_CODE, canParseOffthread, clearGlobalCustomComponents, clearKaTeXWorker, clearMermaidWorker, _default$a as default, findPrefixOffthread, getCustomNodeComponents, getKaTeXBackpressureDefaults, getKaTeXWorkerLoad, getLanguageIcon, getMermaidWorkerLoad, getUseMonaco, isKaTeXWorkerBusy, languageMap, removeCustomComponents, renderKaTeXInWorker, renderKaTeXWithBackpressure, setCustomComponents, setDefaultI18nMap, setKaTeXBackpressureDefaults, setKaTeXCache, setKaTeXWorker, setKaTeXWorkerDebug, setKaTeXWorkerMaxConcurrency, setLanguageIconResolver, setMermaidWorker, setMermaidWorkerClientDebug, setMermaidWorkerMaxConcurrency, terminateWorker, waitForKaTeXWorkerSlot };
1048
+ export { _default$s as AdmonitionNode, BackpressureOptions, _default$r as BlockquoteNode, _default$q as CheckboxNode, CodeBlockNode, _default$p as DefinitionListNode, _default$o as EmojiNode, _default$l as FootnoteAnchorNode, _default$n as FootnoteNode, _default$m as FootnoteReferenceNode, _default$k as HardBreakNode, _HeadingNode as HeadingNode, _default$j as HighlightNode, _default$i as ImageNode, _default$h as InlineCodeNode, _default$g as InsertNode, LanguageIconResolver, _default$f as LinkNode, _default$e as ListItemNode, _default$d as ListNode, MERMAID_WORKER_BUSY_CODE, _default$c as MarkdownCodeBlockNode, _default$a as MarkdownRender, MathBlockNode, MathInlineNode, _default$b as MermaidBlockNode, _default$9 as ParagraphNode, _default$8 as PreCodeNode, _default$7 as ReferenceNode, _default$6 as StrikethroughNode, _default$5 as StrongNode, _default$4 as SubscriptNode, _default$3 as SuperscriptNode, _default$2 as TableNode, _default$1 as TextNode, _default as ThematicBreakNode, VueRendererMarkdown, WORKER_BUSY_CODE, canParseOffthread, clearGlobalCustomComponents, clearKaTeXWorker, clearMermaidWorker, _default$a as default, findPrefixOffthread, getCustomNodeComponents, getKaTeXBackpressureDefaults, getKaTeXWorkerLoad, getLanguageIcon, getMermaidWorkerLoad, getUseMonaco, isKaTeXWorkerBusy, languageMap, removeCustomComponents, renderKaTeXInWorker, renderKaTeXWithBackpressure, setCustomComponents, setDefaultI18nMap, setKaTeXBackpressureDefaults, setKaTeXCache, setKaTeXWorker, setKaTeXWorkerDebug, setKaTeXWorkerMaxConcurrency, setLanguageIconResolver, setMermaidWorker, setMermaidWorkerClientDebug, setMermaidWorkerMaxConcurrency, terminateWorker, waitForKaTeXWorkerSlot };