@simon_he/vue-tui 1.0.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +44 -26
  2. package/dist/TMermaidText-CXm_L969.js +885 -0
  3. package/dist/{TSelect-DR0FomSu.js → TSelect-CiyMvwl-.js} +60 -81
  4. package/dist/{TTree-kzhlB5P0.js → TTree-DKGiuIcM.js} +140 -103
  5. package/dist/agent/mermaid.cjs +2 -0
  6. package/dist/agent/mermaid.d.cts +2 -0
  7. package/dist/agent/mermaid.d.ts +2 -0
  8. package/dist/agent/mermaid.js +1 -0
  9. package/dist/agent.cjs +31184 -24907
  10. package/dist/agent.d.cts +11 -1
  11. package/dist/agent.d.ts +11 -1
  12. package/dist/agent.js +1700 -13
  13. package/dist/block-source-5CQp4tF8.js +3230 -0
  14. package/dist/cli/stdin-buffer.d.ts +1 -1
  15. package/dist/cli.cjs +5037 -6767
  16. package/dist/cli.d.cts +4 -0
  17. package/dist/cli.d.ts +4 -0
  18. package/dist/cli.js +2733 -148
  19. package/dist/core/buffer/eaw-ranges-unicode-17.d.ts +14 -0
  20. package/dist/core/perf/instrumentation-noop.d.ts +48 -0
  21. package/dist/core/perf/instrumentation.d.ts +136 -0
  22. package/dist/core/terminal/create-terminal.d.ts +1 -0
  23. package/dist/core.cjs +843 -1469
  24. package/dist/core.js +6 -6
  25. package/dist/{create-terminal-DBFNYr8f.js → create-terminal-DXuZ2fci.js} +39 -13
  26. package/dist/debug-logger-ChY_PXVk.js +74 -0
  27. package/dist/{dom-renderer-BniJSQyX.js → dom-renderer-DNzmg2As.js} +2 -2
  28. package/dist/experimental.cjs +4115 -5928
  29. package/dist/experimental.d.cts +2 -0
  30. package/dist/experimental.d.ts +2 -0
  31. package/dist/experimental.js +1490 -9
  32. package/dist/frame-perf-BBhE-iuS.js +111 -0
  33. package/dist/{sgr-BmzxEjAO.js → hyperlink-B35-O-cW.js} +100 -1
  34. package/dist/index.cjs +5017 -10339
  35. package/dist/index.js +16 -14
  36. package/dist/{linkify-D_gzn9Xq.js → linkify-CuuquMQT.js} +32 -3
  37. package/dist/markdown.cjs +21295 -12691
  38. package/dist/markdown.d.cts +1 -1
  39. package/dist/markdown.d.ts +1 -1
  40. package/dist/markdown.js +211 -51
  41. package/dist/mermaid-CWto52Wk.js +123 -0
  42. package/dist/mermaid.cjs +1707 -0
  43. package/dist/mermaid.d.cts +3 -0
  44. package/dist/mermaid.d.ts +3 -0
  45. package/dist/mermaid.js +6 -0
  46. package/dist/observability/frame-perf-store.d.ts +2 -1
  47. package/dist/observability/frame-perf.d.ts +33 -0
  48. package/dist/observability.cjs +106 -107
  49. package/dist/observability.d.cts +2 -2
  50. package/dist/observability.d.ts +2 -2
  51. package/dist/observability.js +3 -3
  52. package/dist/{path-suggest-BNqcuE3-.js → path-suggest-fPzRsgPv.js} +1 -1
  53. package/dist/{wheel-scroll-vBRaQ7p-.js → rect-Ng-3eKzF.js} +253 -117
  54. package/dist/renderer/cli/stdout-metrics.d.ts +10 -0
  55. package/dist/renderer/cli/stdout-renderer.d.ts +3 -0
  56. package/dist/renderer/terminal-graphic-render-queue.d.ts +50 -0
  57. package/dist/renderer/terminal-graphics-trace.d.ts +53 -0
  58. package/dist/renderer/terminal-graphics.d.ts +146 -0
  59. package/dist/renderer-dom.cjs +364 -903
  60. package/dist/renderer-dom.js +4 -4
  61. package/dist/runtime/index.d.ts +2 -0
  62. package/dist/{runtime-rfcZCyJq.js → runtime-D77C03RM.js} +28 -15
  63. package/dist/runtime.cjs +427 -889
  64. package/dist/runtime.js +2 -2
  65. package/dist/{terminal-selection-DBinO6p5.js → terminal-selection-CQYr--26.js} +4 -1
  66. package/dist/{tlog-theme-CvLFNMwk.js → tlog-theme-CopRt9SC.js} +37 -6
  67. package/dist/{trace-CjzYeIxN.js → trace-CYHDKM1m.js} +5 -0
  68. package/dist/vue/agent/create-png-terminal-graphic-renderer.d.ts +19 -0
  69. package/dist/vue/components/TAgentTerminalGraphic.d.ts +481 -0
  70. package/dist/vue/components/TCharts.d.ts +1121 -0
  71. package/dist/vue/components/TFeedback.d.ts +1 -1
  72. package/dist/vue/components/TFlex.d.ts +389 -0
  73. package/dist/vue/components/TForm.d.ts +4 -4
  74. package/dist/vue/components/TLogSearchBar.d.ts +3 -3
  75. package/dist/vue/components/TLogSearchPager.d.ts +2 -2
  76. package/dist/vue/components/TMarkdownText.d.ts +162 -4
  77. package/dist/vue/components/TMermaidText.d.ts +900 -0
  78. package/dist/vue/components/TVirtualList.d.ts +9 -0
  79. package/dist/vue/components/TVirtualMarkdown.d.ts +170 -9
  80. package/dist/vue/components/TVirtualRows.d.ts +9 -0
  81. package/dist/vue/components/TerminalProvider.d.ts +2 -0
  82. package/dist/vue/context.d.ts +24 -0
  83. package/dist/vue/index.d.ts +5 -0
  84. package/dist/vue/layout/flex.d.ts +67 -0
  85. package/dist/vue/markdown/ast.d.ts +5 -2
  86. package/dist/vue/markdown/document.d.ts +5 -0
  87. package/dist/vue/markdown/image-actions.d.ts +14 -0
  88. package/dist/vue/markdown/image.d.ts +11 -0
  89. package/dist/vue/markdown/link-actions.d.ts +14 -0
  90. package/dist/vue/markdown/math-actions.d.ts +14 -0
  91. package/dist/vue/markdown/math.d.ts +6 -0
  92. package/dist/vue/markdown/render.d.ts +28 -0
  93. package/dist/vue/markdown/types.d.ts +78 -0
  94. package/dist/vue/mermaid/beautiful-mermaid.d.ts +1436 -0
  95. package/dist/vue/render/render-manager.d.ts +7 -0
  96. package/dist/vue.cjs +7207 -12437
  97. package/dist/vue.js +706 -39
  98. package/dist/wheel-scroll-CQ22Hcyj.js +106 -0
  99. package/dist/{hyperlink-Bn02UXJb.js → width-GqllnV8C.js} +166 -111
  100. package/package.json +85 -14
  101. package/dist/block-source-CKUOnkgT.js +0 -1663
  102. package/dist/frame-perf-C6Xfg85O.js +0 -24
  103. /package/dist/{env-Cl8qmNFN.js → env-DNCzvX8b.js} +0 -0
  104. /package/dist/{path-mnSgEpCm.js → path-BI9W15Zt.js} +0 -0
@@ -0,0 +1,900 @@
1
+ import type { ExtractPublicPropTypes, PropType } from "vue";
2
+ import type { Style } from "../../core/types.js";
3
+ export type TMermaidAsciiTheme = Readonly<Partial<{
4
+ fg: string;
5
+ border: string;
6
+ line: string;
7
+ arrow: string;
8
+ accent: string;
9
+ bg: string;
10
+ corner: string;
11
+ junction: string;
12
+ }>>;
13
+ export type TMermaidAsciiOptions = Readonly<{
14
+ paddingX?: number;
15
+ paddingY?: number;
16
+ boxBorderPadding?: number;
17
+ theme?: TMermaidAsciiTheme;
18
+ }>;
19
+ export type TMermaidResolvedAsciiOptions = TMermaidAsciiOptions & Readonly<{
20
+ useAscii: boolean;
21
+ colorMode: "none";
22
+ }>;
23
+ export type TMermaidRenderer = (code: string, options: TMermaidResolvedAsciiOptions) => string | Promise<string>;
24
+ export type TMermaidTransientErrorContext = Readonly<{
25
+ code: string;
26
+ final: boolean;
27
+ streaming: boolean;
28
+ }>;
29
+ export type TMermaidTransientErrorClassifier = (error: unknown, context: TMermaidTransientErrorContext) => boolean;
30
+ export type TMermaidCopyPayload = Readonly<{
31
+ text: string;
32
+ ok: boolean;
33
+ error?: unknown;
34
+ }>;
35
+ export type TMermaidRenderEligibilityContext = Readonly<{
36
+ final: boolean;
37
+ streaming: boolean;
38
+ }>;
39
+ export type TMermaidRenderEligibility = (code: string, context: TMermaidRenderEligibilityContext) => boolean;
40
+ export declare function isSimpleMermaidFlowchartSource(code: string): boolean;
41
+ export declare function markMermaidRenderErrorFatal(error: unknown): Error;
42
+ export declare const tMermaidTextProps: {
43
+ readonly x: {
44
+ readonly type: NumberConstructor;
45
+ readonly required: true;
46
+ };
47
+ readonly y: {
48
+ readonly type: NumberConstructor;
49
+ readonly required: true;
50
+ };
51
+ readonly w: {
52
+ readonly type: NumberConstructor;
53
+ readonly required: true;
54
+ };
55
+ readonly h: {
56
+ readonly type: NumberConstructor;
57
+ readonly default: undefined;
58
+ };
59
+ readonly zIndex: {
60
+ readonly type: NumberConstructor;
61
+ readonly default: 0;
62
+ };
63
+ readonly content: {
64
+ readonly type: StringConstructor;
65
+ readonly default: "";
66
+ };
67
+ readonly code: {
68
+ readonly type: StringConstructor;
69
+ readonly default: undefined;
70
+ };
71
+ readonly style: {
72
+ readonly type: PropType<Style>;
73
+ readonly default: undefined;
74
+ };
75
+ readonly loadingStyle: {
76
+ readonly type: PropType<Style>;
77
+ readonly default: undefined;
78
+ };
79
+ readonly errorStyle: {
80
+ readonly type: PropType<Style>;
81
+ readonly default: undefined;
82
+ };
83
+ readonly clear: {
84
+ readonly type: BooleanConstructor;
85
+ readonly default: true;
86
+ };
87
+ readonly final: {
88
+ readonly type: BooleanConstructor;
89
+ readonly default: true;
90
+ };
91
+ readonly streaming: {
92
+ readonly type: BooleanConstructor;
93
+ readonly default: false;
94
+ };
95
+ readonly ascii: {
96
+ readonly type: BooleanConstructor;
97
+ readonly default: false;
98
+ };
99
+ readonly paddingX: {
100
+ readonly type: NumberConstructor;
101
+ readonly default: undefined;
102
+ };
103
+ readonly paddingY: {
104
+ readonly type: NumberConstructor;
105
+ readonly default: undefined;
106
+ };
107
+ readonly boxBorderPadding: {
108
+ readonly type: NumberConstructor;
109
+ readonly default: undefined;
110
+ };
111
+ readonly options: {
112
+ readonly type: PropType<TMermaidAsciiOptions>;
113
+ readonly default: undefined;
114
+ };
115
+ readonly renderer: {
116
+ readonly type: PropType<TMermaidRenderer>;
117
+ readonly default: undefined;
118
+ };
119
+ readonly isTransientError: {
120
+ readonly type: PropType<TMermaidTransientErrorClassifier>;
121
+ readonly default: undefined;
122
+ };
123
+ readonly shouldRenderSource: {
124
+ readonly type: PropType<TMermaidRenderEligibility>;
125
+ readonly default: undefined;
126
+ };
127
+ readonly loadingText: {
128
+ readonly type: StringConstructor;
129
+ readonly default: "Rendering Mermaid diagram...";
130
+ };
131
+ readonly incompleteText: {
132
+ readonly type: StringConstructor;
133
+ readonly default: "Waiting for complete Mermaid diagram...";
134
+ };
135
+ readonly missingDependencyText: {
136
+ readonly type: StringConstructor;
137
+ readonly default: "Install the Mermaid renderer package and use TMermaidText from @simon_he/vue-tui/mermaid or @simon_he/vue-tui/agent/mermaid, or pass a renderer prop.";
138
+ };
139
+ readonly errorText: {
140
+ readonly type: StringConstructor;
141
+ readonly default: "Mermaid render failed";
142
+ };
143
+ readonly showErrorDetails: {
144
+ readonly type: BooleanConstructor;
145
+ readonly default: true;
146
+ };
147
+ readonly box: {
148
+ readonly type: BooleanConstructor;
149
+ readonly default: true;
150
+ };
151
+ readonly title: {
152
+ readonly type: StringConstructor;
153
+ readonly default: "mermaid";
154
+ };
155
+ readonly copyButton: {
156
+ readonly type: BooleanConstructor;
157
+ readonly default: true;
158
+ };
159
+ readonly copyText: {
160
+ readonly type: StringConstructor;
161
+ readonly default: "copy";
162
+ };
163
+ readonly copiedText: {
164
+ readonly type: StringConstructor;
165
+ readonly default: "copied";
166
+ };
167
+ readonly renderTimeoutMs: {
168
+ readonly type: NumberConstructor;
169
+ readonly default: 2500;
170
+ };
171
+ readonly maxRenderSourceChars: {
172
+ readonly type: NumberConstructor;
173
+ readonly default: 20000;
174
+ };
175
+ readonly maxRenderSourceLines: {
176
+ readonly type: NumberConstructor;
177
+ readonly default: 400;
178
+ };
179
+ readonly copiedDurationMs: {
180
+ readonly type: NumberConstructor;
181
+ readonly default: 1200;
182
+ };
183
+ };
184
+ export type TMermaidTextProps = ExtractPublicPropTypes<typeof tMermaidTextProps>;
185
+ export declare const TMermaidText: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
186
+ readonly x: {
187
+ readonly type: NumberConstructor;
188
+ readonly required: true;
189
+ };
190
+ readonly y: {
191
+ readonly type: NumberConstructor;
192
+ readonly required: true;
193
+ };
194
+ readonly w: {
195
+ readonly type: NumberConstructor;
196
+ readonly required: true;
197
+ };
198
+ readonly h: {
199
+ readonly type: NumberConstructor;
200
+ readonly default: undefined;
201
+ };
202
+ readonly zIndex: {
203
+ readonly type: NumberConstructor;
204
+ readonly default: 0;
205
+ };
206
+ readonly content: {
207
+ readonly type: StringConstructor;
208
+ readonly default: "";
209
+ };
210
+ readonly code: {
211
+ readonly type: StringConstructor;
212
+ readonly default: undefined;
213
+ };
214
+ readonly style: {
215
+ readonly type: PropType<Style>;
216
+ readonly default: undefined;
217
+ };
218
+ readonly loadingStyle: {
219
+ readonly type: PropType<Style>;
220
+ readonly default: undefined;
221
+ };
222
+ readonly errorStyle: {
223
+ readonly type: PropType<Style>;
224
+ readonly default: undefined;
225
+ };
226
+ readonly clear: {
227
+ readonly type: BooleanConstructor;
228
+ readonly default: true;
229
+ };
230
+ readonly final: {
231
+ readonly type: BooleanConstructor;
232
+ readonly default: true;
233
+ };
234
+ readonly streaming: {
235
+ readonly type: BooleanConstructor;
236
+ readonly default: false;
237
+ };
238
+ readonly ascii: {
239
+ readonly type: BooleanConstructor;
240
+ readonly default: false;
241
+ };
242
+ readonly paddingX: {
243
+ readonly type: NumberConstructor;
244
+ readonly default: undefined;
245
+ };
246
+ readonly paddingY: {
247
+ readonly type: NumberConstructor;
248
+ readonly default: undefined;
249
+ };
250
+ readonly boxBorderPadding: {
251
+ readonly type: NumberConstructor;
252
+ readonly default: undefined;
253
+ };
254
+ readonly options: {
255
+ readonly type: PropType<TMermaidAsciiOptions>;
256
+ readonly default: undefined;
257
+ };
258
+ readonly renderer: {
259
+ readonly type: PropType<TMermaidRenderer>;
260
+ readonly default: undefined;
261
+ };
262
+ readonly isTransientError: {
263
+ readonly type: PropType<TMermaidTransientErrorClassifier>;
264
+ readonly default: undefined;
265
+ };
266
+ readonly shouldRenderSource: {
267
+ readonly type: PropType<TMermaidRenderEligibility>;
268
+ readonly default: undefined;
269
+ };
270
+ readonly loadingText: {
271
+ readonly type: StringConstructor;
272
+ readonly default: "Rendering Mermaid diagram...";
273
+ };
274
+ readonly incompleteText: {
275
+ readonly type: StringConstructor;
276
+ readonly default: "Waiting for complete Mermaid diagram...";
277
+ };
278
+ readonly missingDependencyText: {
279
+ readonly type: StringConstructor;
280
+ readonly default: "Install the Mermaid renderer package and use TMermaidText from @simon_he/vue-tui/mermaid or @simon_he/vue-tui/agent/mermaid, or pass a renderer prop.";
281
+ };
282
+ readonly errorText: {
283
+ readonly type: StringConstructor;
284
+ readonly default: "Mermaid render failed";
285
+ };
286
+ readonly showErrorDetails: {
287
+ readonly type: BooleanConstructor;
288
+ readonly default: true;
289
+ };
290
+ readonly box: {
291
+ readonly type: BooleanConstructor;
292
+ readonly default: true;
293
+ };
294
+ readonly title: {
295
+ readonly type: StringConstructor;
296
+ readonly default: "mermaid";
297
+ };
298
+ readonly copyButton: {
299
+ readonly type: BooleanConstructor;
300
+ readonly default: true;
301
+ };
302
+ readonly copyText: {
303
+ readonly type: StringConstructor;
304
+ readonly default: "copy";
305
+ };
306
+ readonly copiedText: {
307
+ readonly type: StringConstructor;
308
+ readonly default: "copied";
309
+ };
310
+ readonly renderTimeoutMs: {
311
+ readonly type: NumberConstructor;
312
+ readonly default: 2500;
313
+ };
314
+ readonly maxRenderSourceChars: {
315
+ readonly type: NumberConstructor;
316
+ readonly default: 20000;
317
+ };
318
+ readonly maxRenderSourceLines: {
319
+ readonly type: NumberConstructor;
320
+ readonly default: 400;
321
+ };
322
+ readonly copiedDurationMs: {
323
+ readonly type: NumberConstructor;
324
+ readonly default: 1200;
325
+ };
326
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
327
+ [key: string]: any;
328
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
329
+ copy: (_payload: TMermaidCopyPayload) => true;
330
+ }, string, (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
331
+ readonly x: {
332
+ readonly type: NumberConstructor;
333
+ readonly required: true;
334
+ };
335
+ readonly y: {
336
+ readonly type: NumberConstructor;
337
+ readonly required: true;
338
+ };
339
+ readonly w: {
340
+ readonly type: NumberConstructor;
341
+ readonly required: true;
342
+ };
343
+ readonly h: {
344
+ readonly type: NumberConstructor;
345
+ readonly default: undefined;
346
+ };
347
+ readonly zIndex: {
348
+ readonly type: NumberConstructor;
349
+ readonly default: 0;
350
+ };
351
+ readonly content: {
352
+ readonly type: StringConstructor;
353
+ readonly default: "";
354
+ };
355
+ readonly code: {
356
+ readonly type: StringConstructor;
357
+ readonly default: undefined;
358
+ };
359
+ readonly style: {
360
+ readonly type: PropType<Style>;
361
+ readonly default: undefined;
362
+ };
363
+ readonly loadingStyle: {
364
+ readonly type: PropType<Style>;
365
+ readonly default: undefined;
366
+ };
367
+ readonly errorStyle: {
368
+ readonly type: PropType<Style>;
369
+ readonly default: undefined;
370
+ };
371
+ readonly clear: {
372
+ readonly type: BooleanConstructor;
373
+ readonly default: true;
374
+ };
375
+ readonly final: {
376
+ readonly type: BooleanConstructor;
377
+ readonly default: true;
378
+ };
379
+ readonly streaming: {
380
+ readonly type: BooleanConstructor;
381
+ readonly default: false;
382
+ };
383
+ readonly ascii: {
384
+ readonly type: BooleanConstructor;
385
+ readonly default: false;
386
+ };
387
+ readonly paddingX: {
388
+ readonly type: NumberConstructor;
389
+ readonly default: undefined;
390
+ };
391
+ readonly paddingY: {
392
+ readonly type: NumberConstructor;
393
+ readonly default: undefined;
394
+ };
395
+ readonly boxBorderPadding: {
396
+ readonly type: NumberConstructor;
397
+ readonly default: undefined;
398
+ };
399
+ readonly options: {
400
+ readonly type: PropType<TMermaidAsciiOptions>;
401
+ readonly default: undefined;
402
+ };
403
+ readonly renderer: {
404
+ readonly type: PropType<TMermaidRenderer>;
405
+ readonly default: undefined;
406
+ };
407
+ readonly isTransientError: {
408
+ readonly type: PropType<TMermaidTransientErrorClassifier>;
409
+ readonly default: undefined;
410
+ };
411
+ readonly shouldRenderSource: {
412
+ readonly type: PropType<TMermaidRenderEligibility>;
413
+ readonly default: undefined;
414
+ };
415
+ readonly loadingText: {
416
+ readonly type: StringConstructor;
417
+ readonly default: "Rendering Mermaid diagram...";
418
+ };
419
+ readonly incompleteText: {
420
+ readonly type: StringConstructor;
421
+ readonly default: "Waiting for complete Mermaid diagram...";
422
+ };
423
+ readonly missingDependencyText: {
424
+ readonly type: StringConstructor;
425
+ readonly default: "Install the Mermaid renderer package and use TMermaidText from @simon_he/vue-tui/mermaid or @simon_he/vue-tui/agent/mermaid, or pass a renderer prop.";
426
+ };
427
+ readonly errorText: {
428
+ readonly type: StringConstructor;
429
+ readonly default: "Mermaid render failed";
430
+ };
431
+ readonly showErrorDetails: {
432
+ readonly type: BooleanConstructor;
433
+ readonly default: true;
434
+ };
435
+ readonly box: {
436
+ readonly type: BooleanConstructor;
437
+ readonly default: true;
438
+ };
439
+ readonly title: {
440
+ readonly type: StringConstructor;
441
+ readonly default: "mermaid";
442
+ };
443
+ readonly copyButton: {
444
+ readonly type: BooleanConstructor;
445
+ readonly default: true;
446
+ };
447
+ readonly copyText: {
448
+ readonly type: StringConstructor;
449
+ readonly default: "copy";
450
+ };
451
+ readonly copiedText: {
452
+ readonly type: StringConstructor;
453
+ readonly default: "copied";
454
+ };
455
+ readonly renderTimeoutMs: {
456
+ readonly type: NumberConstructor;
457
+ readonly default: 2500;
458
+ };
459
+ readonly maxRenderSourceChars: {
460
+ readonly type: NumberConstructor;
461
+ readonly default: 20000;
462
+ };
463
+ readonly maxRenderSourceLines: {
464
+ readonly type: NumberConstructor;
465
+ readonly default: 400;
466
+ };
467
+ readonly copiedDurationMs: {
468
+ readonly type: NumberConstructor;
469
+ readonly default: 1200;
470
+ };
471
+ }>> & Readonly<{
472
+ onCopy?: ((_payload: Readonly<{
473
+ text: string;
474
+ ok: boolean;
475
+ error?: unknown;
476
+ }>) => any) | undefined;
477
+ }>, {
478
+ readonly style: Readonly<{
479
+ fg?: string;
480
+ bg?: string;
481
+ bold?: boolean;
482
+ dim?: boolean;
483
+ italic?: boolean;
484
+ underline?: boolean;
485
+ inverse?: boolean;
486
+ href?: string;
487
+ }>;
488
+ readonly code: string;
489
+ readonly title: string;
490
+ readonly h: number;
491
+ readonly zIndex: number;
492
+ readonly clear: boolean;
493
+ readonly renderer: TMermaidRenderer;
494
+ readonly content: string;
495
+ readonly options: Readonly<{
496
+ paddingX?: number;
497
+ paddingY?: number;
498
+ boxBorderPadding?: number;
499
+ theme?: TMermaidAsciiTheme;
500
+ }>;
501
+ readonly loadingText: string;
502
+ readonly errorText: string;
503
+ readonly loadingStyle: Readonly<{
504
+ fg?: string;
505
+ bg?: string;
506
+ bold?: boolean;
507
+ dim?: boolean;
508
+ italic?: boolean;
509
+ underline?: boolean;
510
+ inverse?: boolean;
511
+ href?: string;
512
+ }>;
513
+ readonly errorStyle: Readonly<{
514
+ fg?: string;
515
+ bg?: string;
516
+ bold?: boolean;
517
+ dim?: boolean;
518
+ italic?: boolean;
519
+ underline?: boolean;
520
+ inverse?: boolean;
521
+ href?: string;
522
+ }>;
523
+ readonly final: boolean;
524
+ readonly streaming: boolean;
525
+ readonly paddingX: number;
526
+ readonly paddingY: number;
527
+ readonly boxBorderPadding: number;
528
+ readonly ascii: boolean;
529
+ readonly isTransientError: TMermaidTransientErrorClassifier;
530
+ readonly shouldRenderSource: TMermaidRenderEligibility;
531
+ readonly incompleteText: string;
532
+ readonly missingDependencyText: string;
533
+ readonly showErrorDetails: boolean;
534
+ readonly box: boolean;
535
+ readonly copyButton: boolean;
536
+ readonly copyText: string;
537
+ readonly copiedText: string;
538
+ readonly renderTimeoutMs: number;
539
+ readonly maxRenderSourceChars: number;
540
+ readonly maxRenderSourceLines: number;
541
+ readonly copiedDurationMs: number;
542
+ }, {}>;
543
+ export declare const TMermaid: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
544
+ readonly x: {
545
+ readonly type: NumberConstructor;
546
+ readonly required: true;
547
+ };
548
+ readonly y: {
549
+ readonly type: NumberConstructor;
550
+ readonly required: true;
551
+ };
552
+ readonly w: {
553
+ readonly type: NumberConstructor;
554
+ readonly required: true;
555
+ };
556
+ readonly h: {
557
+ readonly type: NumberConstructor;
558
+ readonly default: undefined;
559
+ };
560
+ readonly zIndex: {
561
+ readonly type: NumberConstructor;
562
+ readonly default: 0;
563
+ };
564
+ readonly content: {
565
+ readonly type: StringConstructor;
566
+ readonly default: "";
567
+ };
568
+ readonly code: {
569
+ readonly type: StringConstructor;
570
+ readonly default: undefined;
571
+ };
572
+ readonly style: {
573
+ readonly type: PropType<Style>;
574
+ readonly default: undefined;
575
+ };
576
+ readonly loadingStyle: {
577
+ readonly type: PropType<Style>;
578
+ readonly default: undefined;
579
+ };
580
+ readonly errorStyle: {
581
+ readonly type: PropType<Style>;
582
+ readonly default: undefined;
583
+ };
584
+ readonly clear: {
585
+ readonly type: BooleanConstructor;
586
+ readonly default: true;
587
+ };
588
+ readonly final: {
589
+ readonly type: BooleanConstructor;
590
+ readonly default: true;
591
+ };
592
+ readonly streaming: {
593
+ readonly type: BooleanConstructor;
594
+ readonly default: false;
595
+ };
596
+ readonly ascii: {
597
+ readonly type: BooleanConstructor;
598
+ readonly default: false;
599
+ };
600
+ readonly paddingX: {
601
+ readonly type: NumberConstructor;
602
+ readonly default: undefined;
603
+ };
604
+ readonly paddingY: {
605
+ readonly type: NumberConstructor;
606
+ readonly default: undefined;
607
+ };
608
+ readonly boxBorderPadding: {
609
+ readonly type: NumberConstructor;
610
+ readonly default: undefined;
611
+ };
612
+ readonly options: {
613
+ readonly type: PropType<TMermaidAsciiOptions>;
614
+ readonly default: undefined;
615
+ };
616
+ readonly renderer: {
617
+ readonly type: PropType<TMermaidRenderer>;
618
+ readonly default: undefined;
619
+ };
620
+ readonly isTransientError: {
621
+ readonly type: PropType<TMermaidTransientErrorClassifier>;
622
+ readonly default: undefined;
623
+ };
624
+ readonly shouldRenderSource: {
625
+ readonly type: PropType<TMermaidRenderEligibility>;
626
+ readonly default: undefined;
627
+ };
628
+ readonly loadingText: {
629
+ readonly type: StringConstructor;
630
+ readonly default: "Rendering Mermaid diagram...";
631
+ };
632
+ readonly incompleteText: {
633
+ readonly type: StringConstructor;
634
+ readonly default: "Waiting for complete Mermaid diagram...";
635
+ };
636
+ readonly missingDependencyText: {
637
+ readonly type: StringConstructor;
638
+ readonly default: "Install the Mermaid renderer package and use TMermaidText from @simon_he/vue-tui/mermaid or @simon_he/vue-tui/agent/mermaid, or pass a renderer prop.";
639
+ };
640
+ readonly errorText: {
641
+ readonly type: StringConstructor;
642
+ readonly default: "Mermaid render failed";
643
+ };
644
+ readonly showErrorDetails: {
645
+ readonly type: BooleanConstructor;
646
+ readonly default: true;
647
+ };
648
+ readonly box: {
649
+ readonly type: BooleanConstructor;
650
+ readonly default: true;
651
+ };
652
+ readonly title: {
653
+ readonly type: StringConstructor;
654
+ readonly default: "mermaid";
655
+ };
656
+ readonly copyButton: {
657
+ readonly type: BooleanConstructor;
658
+ readonly default: true;
659
+ };
660
+ readonly copyText: {
661
+ readonly type: StringConstructor;
662
+ readonly default: "copy";
663
+ };
664
+ readonly copiedText: {
665
+ readonly type: StringConstructor;
666
+ readonly default: "copied";
667
+ };
668
+ readonly renderTimeoutMs: {
669
+ readonly type: NumberConstructor;
670
+ readonly default: 2500;
671
+ };
672
+ readonly maxRenderSourceChars: {
673
+ readonly type: NumberConstructor;
674
+ readonly default: 20000;
675
+ };
676
+ readonly maxRenderSourceLines: {
677
+ readonly type: NumberConstructor;
678
+ readonly default: 400;
679
+ };
680
+ readonly copiedDurationMs: {
681
+ readonly type: NumberConstructor;
682
+ readonly default: 1200;
683
+ };
684
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
685
+ [key: string]: any;
686
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
687
+ copy: (_payload: TMermaidCopyPayload) => true;
688
+ }, string, (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
689
+ readonly x: {
690
+ readonly type: NumberConstructor;
691
+ readonly required: true;
692
+ };
693
+ readonly y: {
694
+ readonly type: NumberConstructor;
695
+ readonly required: true;
696
+ };
697
+ readonly w: {
698
+ readonly type: NumberConstructor;
699
+ readonly required: true;
700
+ };
701
+ readonly h: {
702
+ readonly type: NumberConstructor;
703
+ readonly default: undefined;
704
+ };
705
+ readonly zIndex: {
706
+ readonly type: NumberConstructor;
707
+ readonly default: 0;
708
+ };
709
+ readonly content: {
710
+ readonly type: StringConstructor;
711
+ readonly default: "";
712
+ };
713
+ readonly code: {
714
+ readonly type: StringConstructor;
715
+ readonly default: undefined;
716
+ };
717
+ readonly style: {
718
+ readonly type: PropType<Style>;
719
+ readonly default: undefined;
720
+ };
721
+ readonly loadingStyle: {
722
+ readonly type: PropType<Style>;
723
+ readonly default: undefined;
724
+ };
725
+ readonly errorStyle: {
726
+ readonly type: PropType<Style>;
727
+ readonly default: undefined;
728
+ };
729
+ readonly clear: {
730
+ readonly type: BooleanConstructor;
731
+ readonly default: true;
732
+ };
733
+ readonly final: {
734
+ readonly type: BooleanConstructor;
735
+ readonly default: true;
736
+ };
737
+ readonly streaming: {
738
+ readonly type: BooleanConstructor;
739
+ readonly default: false;
740
+ };
741
+ readonly ascii: {
742
+ readonly type: BooleanConstructor;
743
+ readonly default: false;
744
+ };
745
+ readonly paddingX: {
746
+ readonly type: NumberConstructor;
747
+ readonly default: undefined;
748
+ };
749
+ readonly paddingY: {
750
+ readonly type: NumberConstructor;
751
+ readonly default: undefined;
752
+ };
753
+ readonly boxBorderPadding: {
754
+ readonly type: NumberConstructor;
755
+ readonly default: undefined;
756
+ };
757
+ readonly options: {
758
+ readonly type: PropType<TMermaidAsciiOptions>;
759
+ readonly default: undefined;
760
+ };
761
+ readonly renderer: {
762
+ readonly type: PropType<TMermaidRenderer>;
763
+ readonly default: undefined;
764
+ };
765
+ readonly isTransientError: {
766
+ readonly type: PropType<TMermaidTransientErrorClassifier>;
767
+ readonly default: undefined;
768
+ };
769
+ readonly shouldRenderSource: {
770
+ readonly type: PropType<TMermaidRenderEligibility>;
771
+ readonly default: undefined;
772
+ };
773
+ readonly loadingText: {
774
+ readonly type: StringConstructor;
775
+ readonly default: "Rendering Mermaid diagram...";
776
+ };
777
+ readonly incompleteText: {
778
+ readonly type: StringConstructor;
779
+ readonly default: "Waiting for complete Mermaid diagram...";
780
+ };
781
+ readonly missingDependencyText: {
782
+ readonly type: StringConstructor;
783
+ readonly default: "Install the Mermaid renderer package and use TMermaidText from @simon_he/vue-tui/mermaid or @simon_he/vue-tui/agent/mermaid, or pass a renderer prop.";
784
+ };
785
+ readonly errorText: {
786
+ readonly type: StringConstructor;
787
+ readonly default: "Mermaid render failed";
788
+ };
789
+ readonly showErrorDetails: {
790
+ readonly type: BooleanConstructor;
791
+ readonly default: true;
792
+ };
793
+ readonly box: {
794
+ readonly type: BooleanConstructor;
795
+ readonly default: true;
796
+ };
797
+ readonly title: {
798
+ readonly type: StringConstructor;
799
+ readonly default: "mermaid";
800
+ };
801
+ readonly copyButton: {
802
+ readonly type: BooleanConstructor;
803
+ readonly default: true;
804
+ };
805
+ readonly copyText: {
806
+ readonly type: StringConstructor;
807
+ readonly default: "copy";
808
+ };
809
+ readonly copiedText: {
810
+ readonly type: StringConstructor;
811
+ readonly default: "copied";
812
+ };
813
+ readonly renderTimeoutMs: {
814
+ readonly type: NumberConstructor;
815
+ readonly default: 2500;
816
+ };
817
+ readonly maxRenderSourceChars: {
818
+ readonly type: NumberConstructor;
819
+ readonly default: 20000;
820
+ };
821
+ readonly maxRenderSourceLines: {
822
+ readonly type: NumberConstructor;
823
+ readonly default: 400;
824
+ };
825
+ readonly copiedDurationMs: {
826
+ readonly type: NumberConstructor;
827
+ readonly default: 1200;
828
+ };
829
+ }>> & Readonly<{
830
+ onCopy?: ((_payload: Readonly<{
831
+ text: string;
832
+ ok: boolean;
833
+ error?: unknown;
834
+ }>) => any) | undefined;
835
+ }>, {
836
+ readonly style: Readonly<{
837
+ fg?: string;
838
+ bg?: string;
839
+ bold?: boolean;
840
+ dim?: boolean;
841
+ italic?: boolean;
842
+ underline?: boolean;
843
+ inverse?: boolean;
844
+ href?: string;
845
+ }>;
846
+ readonly code: string;
847
+ readonly title: string;
848
+ readonly h: number;
849
+ readonly zIndex: number;
850
+ readonly clear: boolean;
851
+ readonly renderer: TMermaidRenderer;
852
+ readonly content: string;
853
+ readonly options: Readonly<{
854
+ paddingX?: number;
855
+ paddingY?: number;
856
+ boxBorderPadding?: number;
857
+ theme?: TMermaidAsciiTheme;
858
+ }>;
859
+ readonly loadingText: string;
860
+ readonly errorText: string;
861
+ readonly loadingStyle: Readonly<{
862
+ fg?: string;
863
+ bg?: string;
864
+ bold?: boolean;
865
+ dim?: boolean;
866
+ italic?: boolean;
867
+ underline?: boolean;
868
+ inverse?: boolean;
869
+ href?: string;
870
+ }>;
871
+ readonly errorStyle: Readonly<{
872
+ fg?: string;
873
+ bg?: string;
874
+ bold?: boolean;
875
+ dim?: boolean;
876
+ italic?: boolean;
877
+ underline?: boolean;
878
+ inverse?: boolean;
879
+ href?: string;
880
+ }>;
881
+ readonly final: boolean;
882
+ readonly streaming: boolean;
883
+ readonly paddingX: number;
884
+ readonly paddingY: number;
885
+ readonly boxBorderPadding: number;
886
+ readonly ascii: boolean;
887
+ readonly isTransientError: TMermaidTransientErrorClassifier;
888
+ readonly shouldRenderSource: TMermaidRenderEligibility;
889
+ readonly incompleteText: string;
890
+ readonly missingDependencyText: string;
891
+ readonly showErrorDetails: boolean;
892
+ readonly box: boolean;
893
+ readonly copyButton: boolean;
894
+ readonly copyText: string;
895
+ readonly copiedText: string;
896
+ readonly renderTimeoutMs: number;
897
+ readonly maxRenderSourceChars: number;
898
+ readonly maxRenderSourceLines: number;
899
+ readonly copiedDurationMs: number;
900
+ }, {}>;