markview-vue 0.1.0
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/LICENSE +21 -0
- package/README.md +195 -0
- package/dist/assets/bash-DYWjN7qW.cjs +1 -0
- package/dist/assets/bash-InADTalH.js +6 -0
- package/dist/assets/css-CECN5uSL.js +6 -0
- package/dist/assets/css-Do0mp2lm.cjs +1 -0
- package/dist/assets/go-CvFNMTvu.js +6 -0
- package/dist/assets/go-j_hH531s.cjs +1 -0
- package/dist/assets/html-B50bmoVb.js +10 -0
- package/dist/assets/html-C62Zf2h4.cjs +1 -0
- package/dist/assets/java--6gf61wy.cjs +1 -0
- package/dist/assets/java-DY6VlHhP.js +6 -0
- package/dist/assets/javascript-C25yR2R2.js +6 -0
- package/dist/assets/javascript-DgmXW4Ha.cjs +1 -0
- package/dist/assets/json-DxJze_jm.js +6 -0
- package/dist/assets/json-YkPizm35.cjs +1 -0
- package/dist/assets/jsx-BtKADgXT.js +6 -0
- package/dist/assets/jsx-DLX6UGgg.cjs +1 -0
- package/dist/assets/markview-vue-DsYXcYAT.css +1 -0
- package/dist/assets/python-BFNSHbwJ.js +6 -0
- package/dist/assets/python-s9jfVbew.cjs +1 -0
- package/dist/assets/scss-B1FaCqwR.js +8 -0
- package/dist/assets/scss-CKlduTMv.cjs +1 -0
- package/dist/assets/sql-Cn_v3PB0.js +6 -0
- package/dist/assets/sql-DhUUVgH1.cjs +1 -0
- package/dist/assets/tsx-B8rCNbgL.js +6 -0
- package/dist/assets/tsx-DIpfUf9u.cjs +1 -0
- package/dist/assets/typescript-RycA9KXf.js +6 -0
- package/dist/assets/typescript-b48wo4zk.cjs +1 -0
- package/dist/assets/vue-B_DTExBK.js +33 -0
- package/dist/assets/vue-HUYrLYE5.cjs +1 -0
- package/dist/assets/wasm-DQxwEHae.js +7 -0
- package/dist/assets/wasm-Dw4u1m6u.cjs +1 -0
- package/dist/assets/yaml-DaO7k5B1.js +6 -0
- package/dist/assets/yaml-XVBmpKh-.cjs +1 -0
- package/dist/index.cjs +528 -0
- package/dist/index.d.ts +967 -0
- package/dist/index.js +38171 -0
- package/package.json +83 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,967 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { FunctionalComponent } from 'vue';
|
|
5
|
+
import { HighlighterCore } from 'shiki/core';
|
|
6
|
+
import { InjectionKey } from 'vue';
|
|
7
|
+
import { LucideProps } from 'lucide-vue-next';
|
|
8
|
+
import { MDXComponents } from 'mdx/types';
|
|
9
|
+
import { MDXProps } from 'mdx/types';
|
|
10
|
+
import { PluggableList } from '@mdx-js/mdx/lib/core';
|
|
11
|
+
import { Plugin as Plugin_2 } from 'vue';
|
|
12
|
+
import { PublicProps } from 'vue';
|
|
13
|
+
import { Ref } from 'vue';
|
|
14
|
+
import { RendererElement } from 'vue';
|
|
15
|
+
import { RendererNode } from 'vue';
|
|
16
|
+
import { VNode } from 'vue';
|
|
17
|
+
|
|
18
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
showExternalIcon: boolean;
|
|
20
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
|
|
22
|
+
declare const __VLS_component_10: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
|
|
23
|
+
defaultExpanded: boolean;
|
|
24
|
+
collapsible: boolean | "auto";
|
|
25
|
+
maxHeight: number;
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
+
blockquoteRef: HTMLQuoteElement;
|
|
28
|
+
}, HTMLQuoteElement>;
|
|
29
|
+
|
|
30
|
+
declare const __VLS_component_11: DefineComponent<__VLS_Props_7, {
|
|
31
|
+
copied: Ref<boolean, boolean>;
|
|
32
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
33
|
+
copy: () => any;
|
|
34
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
35
|
+
onCopy?: (() => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
|
|
38
|
+
declare const __VLS_component_12: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
|
|
39
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
40
|
+
showAnchor: boolean;
|
|
41
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, any, any>;
|
|
42
|
+
|
|
43
|
+
declare const __VLS_component_13: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {
|
|
44
|
+
ordered: boolean;
|
|
45
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
|
|
47
|
+
declare const __VLS_component_14: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
48
|
+
motionEnd: () => any;
|
|
49
|
+
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
50
|
+
onMotionEnd?: (() => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
duration: number;
|
|
53
|
+
isOpen: boolean;
|
|
54
|
+
keepDOM: boolean;
|
|
55
|
+
collapseHeight: number;
|
|
56
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
57
|
+
contentRef: HTMLDivElement;
|
|
58
|
+
}, HTMLDivElement>;
|
|
59
|
+
|
|
60
|
+
declare const __VLS_component_15: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
61
|
+
change: (expanded: boolean) => any;
|
|
62
|
+
motionEnd: () => any;
|
|
63
|
+
"update:expanded": (value: boolean) => any;
|
|
64
|
+
}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
|
|
65
|
+
onChange?: ((expanded: boolean) => any) | undefined;
|
|
66
|
+
onMotionEnd?: (() => any) | undefined;
|
|
67
|
+
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
duration: number;
|
|
70
|
+
keepDOM: boolean;
|
|
71
|
+
collapseHeight: number;
|
|
72
|
+
defaultExpanded: boolean;
|
|
73
|
+
showIcon: boolean;
|
|
74
|
+
clickable: boolean;
|
|
75
|
+
expandText: string;
|
|
76
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
77
|
+
|
|
78
|
+
declare const __VLS_component_16: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
position: TooltipPosition;
|
|
81
|
+
trigger: "hover" | "focus" | "both";
|
|
82
|
+
showArrow: boolean;
|
|
83
|
+
theme: "light" | "dark";
|
|
84
|
+
mouseEnterDelay: number;
|
|
85
|
+
mouseLeaveDelay: number;
|
|
86
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
87
|
+
triggerRef: HTMLSpanElement;
|
|
88
|
+
tooltipRef: HTMLDivElement;
|
|
89
|
+
}, any>;
|
|
90
|
+
|
|
91
|
+
declare const __VLS_component_17: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
92
|
+
change: (checked: boolean) => any;
|
|
93
|
+
"update:modelValue": (value: boolean) => any;
|
|
94
|
+
}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
|
|
95
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
96
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
disabled: boolean;
|
|
99
|
+
modelValue: boolean;
|
|
100
|
+
indeterminate: boolean;
|
|
101
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
102
|
+
|
|
103
|
+
declare const __VLS_component_18: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
104
|
+
close: () => any;
|
|
105
|
+
click: (e: MouseEvent) => any;
|
|
106
|
+
}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
|
|
107
|
+
onClose?: (() => any) | undefined;
|
|
108
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
109
|
+
}>, {
|
|
110
|
+
type: TagType;
|
|
111
|
+
size: TagSize;
|
|
112
|
+
color: TagColor;
|
|
113
|
+
closable: boolean;
|
|
114
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
115
|
+
|
|
116
|
+
declare const __VLS_component_19: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {
|
|
117
|
+
layout: "horizontal" | "vertical";
|
|
118
|
+
dashed: boolean;
|
|
119
|
+
align: "left" | "center" | "right";
|
|
120
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
121
|
+
|
|
122
|
+
declare const __VLS_component_2: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
|
|
124
|
+
declare const __VLS_component_3: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
|
|
125
|
+
|
|
126
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
127
|
+
|
|
128
|
+
declare const __VLS_component_5: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
|
|
129
|
+
|
|
130
|
+
declare const __VLS_component_6: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
|
|
131
|
+
|
|
132
|
+
declare const __VLS_component_7: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLModElement>;
|
|
133
|
+
|
|
134
|
+
declare const __VLS_component_8: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
|
|
135
|
+
|
|
136
|
+
declare const __VLS_component_9: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
137
|
+
tableRef: HTMLDivElement;
|
|
138
|
+
}, HTMLDivElement>;
|
|
139
|
+
|
|
140
|
+
declare type __VLS_Props = {
|
|
141
|
+
href?: string;
|
|
142
|
+
showExternalIcon?: boolean;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
declare type __VLS_Props_10 = {
|
|
146
|
+
active?: boolean;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
declare type __VLS_Props_11 = {
|
|
150
|
+
src?: string;
|
|
151
|
+
alt?: string;
|
|
152
|
+
width?: string | number;
|
|
153
|
+
height?: string | number;
|
|
154
|
+
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare type __VLS_Props_12 = {
|
|
158
|
+
visible: boolean;
|
|
159
|
+
src: string;
|
|
160
|
+
title?: string;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
declare type __VLS_Props_13 = {
|
|
164
|
+
isOpen?: boolean;
|
|
165
|
+
duration?: number;
|
|
166
|
+
keepDOM?: boolean;
|
|
167
|
+
collapseHeight?: number;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
declare type __VLS_Props_14 = {
|
|
171
|
+
title?: string;
|
|
172
|
+
defaultExpanded?: boolean;
|
|
173
|
+
expanded?: boolean;
|
|
174
|
+
duration?: number;
|
|
175
|
+
showIcon?: boolean;
|
|
176
|
+
clickable?: boolean;
|
|
177
|
+
keepDOM?: boolean;
|
|
178
|
+
collapseHeight?: number;
|
|
179
|
+
expandText?: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
declare type __VLS_Props_15 = {
|
|
183
|
+
name: IconName;
|
|
184
|
+
size?: number;
|
|
185
|
+
strokeWidth?: number;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare type __VLS_Props_16 = {
|
|
189
|
+
content: string;
|
|
190
|
+
position?: TooltipPosition;
|
|
191
|
+
trigger?: 'hover' | 'focus' | 'both';
|
|
192
|
+
showArrow?: boolean;
|
|
193
|
+
theme?: 'light' | 'dark';
|
|
194
|
+
mouseEnterDelay?: number;
|
|
195
|
+
mouseLeaveDelay?: number;
|
|
196
|
+
disabled?: boolean;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
declare type __VLS_Props_17 = {
|
|
200
|
+
href: string;
|
|
201
|
+
alwaysVisible?: boolean;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
declare type __VLS_Props_18 = {
|
|
205
|
+
modelValue?: boolean;
|
|
206
|
+
disabled?: boolean;
|
|
207
|
+
indeterminate?: boolean;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
declare type __VLS_Props_19 = {
|
|
211
|
+
size?: TagSize;
|
|
212
|
+
type?: TagType;
|
|
213
|
+
color?: TagColor;
|
|
214
|
+
closable?: boolean;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
declare type __VLS_Props_2 = {
|
|
218
|
+
src?: string;
|
|
219
|
+
alt?: string;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
declare type __VLS_Props_20 = {
|
|
223
|
+
layout?: 'horizontal' | 'vertical';
|
|
224
|
+
dashed?: boolean;
|
|
225
|
+
align?: 'left' | 'center' | 'right';
|
|
226
|
+
margin?: string | number;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
declare type __VLS_Props_3 = {
|
|
230
|
+
checked?: boolean | null;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
declare type __VLS_Props_4 = {
|
|
234
|
+
dashed?: boolean;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
declare type __VLS_Props_5 = {
|
|
238
|
+
className?: string;
|
|
239
|
+
showLineNumbers?: boolean;
|
|
240
|
+
collapsible?: boolean | 'auto';
|
|
241
|
+
maxHeight?: number;
|
|
242
|
+
maxLines?: number;
|
|
243
|
+
defaultExpanded?: boolean;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
declare type __VLS_Props_6 = {
|
|
247
|
+
collapsible?: boolean | 'auto';
|
|
248
|
+
maxHeight?: number;
|
|
249
|
+
defaultExpanded?: boolean;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
declare type __VLS_Props_7 = {
|
|
253
|
+
label: string;
|
|
254
|
+
copyable?: boolean;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
declare type __VLS_Props_8 = {
|
|
258
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
259
|
+
showAnchor?: boolean;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
declare type __VLS_Props_9 = {
|
|
263
|
+
ordered?: boolean;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
declare function __VLS_template(): {
|
|
267
|
+
attrs: Partial<{}>;
|
|
268
|
+
slots: {
|
|
269
|
+
default?(_: {}): any;
|
|
270
|
+
};
|
|
271
|
+
refs: {};
|
|
272
|
+
rootEl: any;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
declare function __VLS_template_10(): {
|
|
276
|
+
attrs: Partial<{}>;
|
|
277
|
+
slots: {
|
|
278
|
+
default?(_: {}): any;
|
|
279
|
+
};
|
|
280
|
+
refs: {
|
|
281
|
+
blockquoteRef: HTMLQuoteElement;
|
|
282
|
+
};
|
|
283
|
+
rootEl: HTMLQuoteElement;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
declare function __VLS_template_11(): {
|
|
287
|
+
attrs: Partial<{}>;
|
|
288
|
+
slots: {
|
|
289
|
+
extra?(_: {}): any;
|
|
290
|
+
actions?(_: {}): any;
|
|
291
|
+
};
|
|
292
|
+
refs: {};
|
|
293
|
+
rootEl: HTMLDivElement;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
declare function __VLS_template_12(): any;
|
|
297
|
+
|
|
298
|
+
declare function __VLS_template_13(): {
|
|
299
|
+
attrs: Partial<{}>;
|
|
300
|
+
slots: {
|
|
301
|
+
default?(_: {}): any;
|
|
302
|
+
};
|
|
303
|
+
refs: {};
|
|
304
|
+
rootEl: any;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
declare function __VLS_template_14(): {
|
|
308
|
+
attrs: Partial<{}>;
|
|
309
|
+
slots: {
|
|
310
|
+
default?(_: {}): any;
|
|
311
|
+
};
|
|
312
|
+
refs: {
|
|
313
|
+
contentRef: HTMLDivElement;
|
|
314
|
+
};
|
|
315
|
+
rootEl: HTMLDivElement;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
declare function __VLS_template_15(): {
|
|
319
|
+
attrs: Partial<{}>;
|
|
320
|
+
slots: {
|
|
321
|
+
header?(_: {}): any;
|
|
322
|
+
extra?(_: {}): any;
|
|
323
|
+
default?(_: {}): any;
|
|
324
|
+
};
|
|
325
|
+
refs: {};
|
|
326
|
+
rootEl: HTMLDivElement;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
declare function __VLS_template_16(): {
|
|
330
|
+
attrs: Partial<{}>;
|
|
331
|
+
slots: {
|
|
332
|
+
default?(_: {}): any;
|
|
333
|
+
};
|
|
334
|
+
refs: {
|
|
335
|
+
triggerRef: HTMLSpanElement;
|
|
336
|
+
tooltipRef: HTMLDivElement;
|
|
337
|
+
};
|
|
338
|
+
rootEl: any;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
declare function __VLS_template_17(): {
|
|
342
|
+
attrs: Partial<{}>;
|
|
343
|
+
slots: {
|
|
344
|
+
default?(_: {}): any;
|
|
345
|
+
};
|
|
346
|
+
refs: {};
|
|
347
|
+
rootEl: HTMLSpanElement;
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
declare function __VLS_template_18(): {
|
|
351
|
+
attrs: Partial<{}>;
|
|
352
|
+
slots: {
|
|
353
|
+
prefix?(_: {}): any;
|
|
354
|
+
default?(_: {}): any;
|
|
355
|
+
};
|
|
356
|
+
refs: {};
|
|
357
|
+
rootEl: any;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
declare function __VLS_template_19(): {
|
|
361
|
+
attrs: Partial<{}>;
|
|
362
|
+
slots: {
|
|
363
|
+
default?(_: {}): any;
|
|
364
|
+
};
|
|
365
|
+
refs: {};
|
|
366
|
+
rootEl: HTMLDivElement;
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
declare function __VLS_template_2(): {
|
|
370
|
+
attrs: Partial<{}>;
|
|
371
|
+
slots: {
|
|
372
|
+
default?(_: {}): any;
|
|
373
|
+
};
|
|
374
|
+
refs: {};
|
|
375
|
+
rootEl: any;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
declare function __VLS_template_3(): {
|
|
379
|
+
attrs: Partial<{}>;
|
|
380
|
+
slots: {
|
|
381
|
+
default?(_: {}): any;
|
|
382
|
+
};
|
|
383
|
+
refs: {};
|
|
384
|
+
rootEl: HTMLElement;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
declare function __VLS_template_4(): {
|
|
388
|
+
attrs: Partial<{}>;
|
|
389
|
+
slots: {
|
|
390
|
+
default?(_: {}): any;
|
|
391
|
+
};
|
|
392
|
+
refs: {};
|
|
393
|
+
rootEl: HTMLLIElement;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
declare function __VLS_template_5(): {
|
|
397
|
+
attrs: Partial<{}>;
|
|
398
|
+
slots: {
|
|
399
|
+
default?(_: {}): any;
|
|
400
|
+
};
|
|
401
|
+
refs: {};
|
|
402
|
+
rootEl: HTMLElement;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
declare function __VLS_template_6(): {
|
|
406
|
+
attrs: Partial<{}>;
|
|
407
|
+
slots: {
|
|
408
|
+
default?(_: {}): any;
|
|
409
|
+
};
|
|
410
|
+
refs: {};
|
|
411
|
+
rootEl: HTMLElement;
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
declare function __VLS_template_7(): {
|
|
415
|
+
attrs: Partial<{}>;
|
|
416
|
+
slots: {
|
|
417
|
+
default?(_: {}): any;
|
|
418
|
+
};
|
|
419
|
+
refs: {};
|
|
420
|
+
rootEl: HTMLModElement;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
declare function __VLS_template_8(): {
|
|
424
|
+
attrs: Partial<{}>;
|
|
425
|
+
slots: {
|
|
426
|
+
default?(_: {}): any;
|
|
427
|
+
};
|
|
428
|
+
refs: {};
|
|
429
|
+
rootEl: HTMLElement;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
declare function __VLS_template_9(): {
|
|
433
|
+
attrs: Partial<{}>;
|
|
434
|
+
slots: {
|
|
435
|
+
default?(_: {}): any;
|
|
436
|
+
};
|
|
437
|
+
refs: {
|
|
438
|
+
tableRef: HTMLDivElement;
|
|
439
|
+
};
|
|
440
|
+
rootEl: HTMLDivElement;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
444
|
+
|
|
445
|
+
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
446
|
+
|
|
447
|
+
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
448
|
+
|
|
449
|
+
declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
450
|
+
|
|
451
|
+
declare type __VLS_TemplateResult_13 = ReturnType<typeof __VLS_template_13>;
|
|
452
|
+
|
|
453
|
+
declare type __VLS_TemplateResult_14 = ReturnType<typeof __VLS_template_14>;
|
|
454
|
+
|
|
455
|
+
declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
|
|
456
|
+
|
|
457
|
+
declare type __VLS_TemplateResult_16 = ReturnType<typeof __VLS_template_16>;
|
|
458
|
+
|
|
459
|
+
declare type __VLS_TemplateResult_17 = ReturnType<typeof __VLS_template_17>;
|
|
460
|
+
|
|
461
|
+
declare type __VLS_TemplateResult_18 = ReturnType<typeof __VLS_template_18>;
|
|
462
|
+
|
|
463
|
+
declare type __VLS_TemplateResult_19 = ReturnType<typeof __VLS_template_19>;
|
|
464
|
+
|
|
465
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
466
|
+
|
|
467
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
468
|
+
|
|
469
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
470
|
+
|
|
471
|
+
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
472
|
+
|
|
473
|
+
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
474
|
+
|
|
475
|
+
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
476
|
+
|
|
477
|
+
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
478
|
+
|
|
479
|
+
declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
|
|
480
|
+
|
|
481
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
482
|
+
new (): {
|
|
483
|
+
$slots: S;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
488
|
+
new (): {
|
|
489
|
+
$slots: S;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
494
|
+
new (): {
|
|
495
|
+
$slots: S;
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
declare type __VLS_WithTemplateSlots_12<T, S> = T & {
|
|
500
|
+
new (): {
|
|
501
|
+
$slots: S;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
declare type __VLS_WithTemplateSlots_13<T, S> = T & {
|
|
506
|
+
new (): {
|
|
507
|
+
$slots: S;
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
declare type __VLS_WithTemplateSlots_14<T, S> = T & {
|
|
512
|
+
new (): {
|
|
513
|
+
$slots: S;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
declare type __VLS_WithTemplateSlots_15<T, S> = T & {
|
|
518
|
+
new (): {
|
|
519
|
+
$slots: S;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
declare type __VLS_WithTemplateSlots_16<T, S> = T & {
|
|
524
|
+
new (): {
|
|
525
|
+
$slots: S;
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
declare type __VLS_WithTemplateSlots_17<T, S> = T & {
|
|
530
|
+
new (): {
|
|
531
|
+
$slots: S;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
declare type __VLS_WithTemplateSlots_18<T, S> = T & {
|
|
536
|
+
new (): {
|
|
537
|
+
$slots: S;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
declare type __VLS_WithTemplateSlots_19<T, S> = T & {
|
|
542
|
+
new (): {
|
|
543
|
+
$slots: S;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
548
|
+
new (): {
|
|
549
|
+
$slots: S;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
554
|
+
new (): {
|
|
555
|
+
$slots: S;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
560
|
+
new (): {
|
|
561
|
+
$slots: S;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
566
|
+
new (): {
|
|
567
|
+
$slots: S;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
572
|
+
new (): {
|
|
573
|
+
$slots: S;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
578
|
+
new (): {
|
|
579
|
+
$slots: S;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
584
|
+
new (): {
|
|
585
|
+
$slots: S;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
590
|
+
new (): {
|
|
591
|
+
$slots: S;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
export declare const a: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
596
|
+
|
|
597
|
+
export declare const Anchor: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
598
|
+
|
|
599
|
+
export declare const BlockHeader: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
600
|
+
|
|
601
|
+
export declare const Blockquote: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
602
|
+
|
|
603
|
+
export declare const Checkbox: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
|
|
604
|
+
|
|
605
|
+
export declare const code: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
606
|
+
|
|
607
|
+
export declare const CodeBlock: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
|
|
608
|
+
defaultExpanded: boolean;
|
|
609
|
+
showLineNumbers: boolean;
|
|
610
|
+
collapsible: boolean | "auto";
|
|
611
|
+
maxHeight: number;
|
|
612
|
+
maxLines: number;
|
|
613
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
614
|
+
bodyRef: HTMLDivElement;
|
|
615
|
+
}, HTMLDivElement>;
|
|
616
|
+
|
|
617
|
+
export declare const CollapseSection: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
618
|
+
|
|
619
|
+
export declare const Collapsible: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* 复制文本到剪贴板
|
|
623
|
+
*/
|
|
624
|
+
export declare function copyToClipboard(text: string): Promise<boolean>;
|
|
625
|
+
|
|
626
|
+
declare const _default: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
627
|
+
export { _default as ListItem }
|
|
628
|
+
export { _default as li }
|
|
629
|
+
|
|
630
|
+
declare const _default_2: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
|
|
631
|
+
dashed: boolean;
|
|
632
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLHRElement>;
|
|
633
|
+
export { _default_2 as HorizontalRule }
|
|
634
|
+
export { _default_2 as hr }
|
|
635
|
+
|
|
636
|
+
declare const _default_3: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
637
|
+
export { _default_3 as Strong }
|
|
638
|
+
export { _default_3 as strong }
|
|
639
|
+
|
|
640
|
+
declare const _default_4: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
641
|
+
export { _default_4 as Emphasis }
|
|
642
|
+
export { _default_4 as em }
|
|
643
|
+
|
|
644
|
+
declare const _default_5: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
645
|
+
export { _default_5 as Delete }
|
|
646
|
+
export { _default_5 as del }
|
|
647
|
+
|
|
648
|
+
declare const _default_6: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
649
|
+
export { _default_6 as Mark }
|
|
650
|
+
export { _default_6 as mark }
|
|
651
|
+
|
|
652
|
+
export declare const Divider: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* 从 VNode 中提取语言标识(用于代码块)
|
|
656
|
+
*/
|
|
657
|
+
export declare function extractLanguageFromVNode(vnode: VNode | VNode[] | null | undefined): string;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* 从 VNode 递归提取纯文本内容
|
|
661
|
+
*/
|
|
662
|
+
export declare function extractTextFromVNode(vnode: VNode | VNode[] | string | number | null | undefined): string;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* 生成唯一的标题 ID(文本前缀 + 随机 hash)
|
|
666
|
+
*/
|
|
667
|
+
export declare function generateHeadingId(text: string): string;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* 获取 highlighter 实例(单例模式)
|
|
671
|
+
*/
|
|
672
|
+
export declare function getHighlighter(): Promise<HighlighterCore>;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* 获取已加载的语言列表
|
|
676
|
+
*/
|
|
677
|
+
export declare function getLoadedLanguages(): Promise<string[]>;
|
|
678
|
+
|
|
679
|
+
export declare const h1: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
680
|
+
[key: string]: any;
|
|
681
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
682
|
+
|
|
683
|
+
export declare const h2: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
684
|
+
[key: string]: any;
|
|
685
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
686
|
+
|
|
687
|
+
export declare const h3: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
688
|
+
[key: string]: any;
|
|
689
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
690
|
+
|
|
691
|
+
export declare const h4: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
692
|
+
[key: string]: any;
|
|
693
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
694
|
+
|
|
695
|
+
export declare const h5: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
696
|
+
[key: string]: any;
|
|
697
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
698
|
+
|
|
699
|
+
export declare const h6: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
700
|
+
[key: string]: any;
|
|
701
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
702
|
+
|
|
703
|
+
export declare const Heading: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
704
|
+
|
|
705
|
+
export declare const HeadingCollapseKey: InjectionKey<HeadingCollapseState>;
|
|
706
|
+
|
|
707
|
+
export declare interface HeadingCollapseState {
|
|
708
|
+
collapsedIds: Ref<Set<string>>;
|
|
709
|
+
toggle: (id: string) => void;
|
|
710
|
+
isCollapsed: (id: string) => boolean;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
declare function hide(): void;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* 高亮代码
|
|
717
|
+
*/
|
|
718
|
+
export declare function highlightCode(code: string, lang: string): Promise<string>;
|
|
719
|
+
|
|
720
|
+
export declare const Icon: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {
|
|
721
|
+
size: number;
|
|
722
|
+
strokeWidth: number;
|
|
723
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
724
|
+
|
|
725
|
+
declare const iconMap: {
|
|
726
|
+
readonly copy: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
727
|
+
readonly check: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
728
|
+
readonly close: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
729
|
+
readonly x: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
730
|
+
readonly 'chevron-right': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
731
|
+
readonly 'chevron-down': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
732
|
+
readonly 'chevron-up': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
733
|
+
readonly 'chevrons-up-down': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
734
|
+
readonly expand: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
735
|
+
readonly shrink: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
736
|
+
readonly maximize: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
737
|
+
readonly minimize: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
738
|
+
readonly 'rotate-cw': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
739
|
+
readonly 'rotate-ccw': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
740
|
+
readonly 'zoom-in': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
741
|
+
readonly 'zoom-out': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
742
|
+
readonly refresh: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
743
|
+
readonly download: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
744
|
+
readonly 'external-link': FunctionalComponent<LucideProps, {}, any, {}>;
|
|
745
|
+
readonly success: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
746
|
+
readonly error: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
747
|
+
readonly warning: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
748
|
+
readonly info: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
749
|
+
readonly code: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
750
|
+
readonly table: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
751
|
+
readonly quote: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
752
|
+
readonly image: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
753
|
+
readonly link: FunctionalComponent<LucideProps, {}, any, {}>;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
export declare type IconName = keyof typeof iconMap;
|
|
757
|
+
|
|
758
|
+
declare const Image_2: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {
|
|
759
|
+
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
760
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
761
|
+
export { Image_2 as Image }
|
|
762
|
+
|
|
763
|
+
export declare const ImagePreview: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
764
|
+
close: () => any;
|
|
765
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
766
|
+
onClose?: (() => any) | undefined;
|
|
767
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
768
|
+
|
|
769
|
+
export declare const img: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* 语言别名映射表
|
|
773
|
+
*/
|
|
774
|
+
export declare const LANGUAGE_ALIASES: Record<string, string>;
|
|
775
|
+
|
|
776
|
+
export declare const List: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
777
|
+
|
|
778
|
+
export declare const MarkdownRender: DefineComponent<MarkdownRenderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
779
|
+
error: (error: Error) => any;
|
|
780
|
+
rendered: () => any;
|
|
781
|
+
"toc-change": (toc: TocItem[]) => any;
|
|
782
|
+
"scroll-to-top": () => any;
|
|
783
|
+
"toc-click": (item: TocItem) => any;
|
|
784
|
+
}, string, PublicProps, Readonly<MarkdownRenderProps> & Readonly<{
|
|
785
|
+
onError?: ((error: Error) => any) | undefined;
|
|
786
|
+
onRendered?: (() => any) | undefined;
|
|
787
|
+
"onToc-change"?: ((toc: TocItem[]) => any) | undefined;
|
|
788
|
+
"onScroll-to-top"?: (() => any) | undefined;
|
|
789
|
+
"onToc-click"?: ((item: TocItem) => any) | undefined;
|
|
790
|
+
}>, {
|
|
791
|
+
format: "md" | "mdx";
|
|
792
|
+
theme: "light" | "dark";
|
|
793
|
+
components: MDXComponents;
|
|
794
|
+
raw: string;
|
|
795
|
+
remarkGfm: boolean;
|
|
796
|
+
prefix: string;
|
|
797
|
+
showToc: boolean;
|
|
798
|
+
tocMinLevel: number;
|
|
799
|
+
tocMaxLevel: number;
|
|
800
|
+
tocMode: "sidebar" | "embedded";
|
|
801
|
+
showBackTop: boolean;
|
|
802
|
+
backTopThreshold: number;
|
|
803
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
804
|
+
wrapperRef: HTMLDivElement;
|
|
805
|
+
contentRef: HTMLDivElement;
|
|
806
|
+
}, HTMLDivElement>;
|
|
807
|
+
|
|
808
|
+
export declare interface MarkdownRenderProps {
|
|
809
|
+
/** Markdown/MDX 原始内容 */
|
|
810
|
+
raw?: string;
|
|
811
|
+
/** 自定义组件映射 */
|
|
812
|
+
components?: MDXProps['components'];
|
|
813
|
+
/** 内容格式 */
|
|
814
|
+
format?: 'md' | 'mdx';
|
|
815
|
+
/** remark 插件列表 */
|
|
816
|
+
remarkPlugins?: PluggableList;
|
|
817
|
+
/** rehype 插件列表 */
|
|
818
|
+
rehypePlugins?: PluggableList;
|
|
819
|
+
/** 是否启用 GFM 扩展 */
|
|
820
|
+
remarkGfm?: boolean;
|
|
821
|
+
/** 自定义样式 */
|
|
822
|
+
style?: Record<string, any>;
|
|
823
|
+
/** 自定义类名 */
|
|
824
|
+
className?: string;
|
|
825
|
+
/** CSS 类名前缀 */
|
|
826
|
+
prefix?: string;
|
|
827
|
+
/** 主题模式 */
|
|
828
|
+
theme?: 'light' | 'dark';
|
|
829
|
+
/** 固定高度(设置后启用内部滚动模式),如 '500px' 或 'calc(100vh - 60px)' */
|
|
830
|
+
height?: string;
|
|
831
|
+
/** 最大高度(设置后超出部分可滚动),如 '80vh' */
|
|
832
|
+
maxHeight?: string;
|
|
833
|
+
/** 是否显示 TOC */
|
|
834
|
+
showToc?: boolean;
|
|
835
|
+
/** TOC 最小层级(默认 2,即 H2) */
|
|
836
|
+
tocMinLevel?: number;
|
|
837
|
+
/** TOC 最大层级(默认 4,即 H4) */
|
|
838
|
+
tocMaxLevel?: number;
|
|
839
|
+
/** TOC 文档标题(H1 内容,显示在 TOC 顶部) */
|
|
840
|
+
docTitle?: string;
|
|
841
|
+
/** TOC 布局模式:sidebar 固定侧边栏 / embedded 嵌入式 */
|
|
842
|
+
tocMode?: 'sidebar' | 'embedded';
|
|
843
|
+
/** 是否显示回到顶部按钮 */
|
|
844
|
+
showBackTop?: boolean;
|
|
845
|
+
/** 回到顶部按钮显示阈值(滚动距离) */
|
|
846
|
+
backTopThreshold?: number;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* 规范化语言标识
|
|
851
|
+
*/
|
|
852
|
+
export declare function normalizeLanguage(lang: string): string;
|
|
853
|
+
|
|
854
|
+
export declare const ol: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
855
|
+
[key: string]: any;
|
|
856
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
857
|
+
|
|
858
|
+
export declare const p: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* 提供标题折叠状态(在 MarkdownRender 中调用)
|
|
862
|
+
*/
|
|
863
|
+
export declare function provideHeadingCollapse(): HeadingCollapseState;
|
|
864
|
+
|
|
865
|
+
declare function show(msg: string, toastType?: ToastType_2, duration?: number): void;
|
|
866
|
+
|
|
867
|
+
export declare const Skeleton: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {
|
|
868
|
+
active: boolean;
|
|
869
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
870
|
+
|
|
871
|
+
export declare const Table: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
872
|
+
|
|
873
|
+
export declare const Tag: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
|
|
874
|
+
|
|
875
|
+
export declare type TagColor = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
876
|
+
|
|
877
|
+
export declare type TagSize = 'small' | 'default' | 'large';
|
|
878
|
+
|
|
879
|
+
export declare type TagType = 'light' | 'solid' | 'ghost';
|
|
880
|
+
|
|
881
|
+
export declare const Toast: DefineComponent<{}, {
|
|
882
|
+
show: typeof show;
|
|
883
|
+
hide: typeof hide;
|
|
884
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
885
|
+
|
|
886
|
+
export declare const toast: {
|
|
887
|
+
success: (msg: string, duration?: number) => void;
|
|
888
|
+
error: (msg: string, duration?: number) => void;
|
|
889
|
+
warning: (msg: string, duration?: number) => void;
|
|
890
|
+
info: (msg: string, duration?: number) => void;
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
export declare type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
894
|
+
|
|
895
|
+
declare type ToastType_2 = 'success' | 'error' | 'warning' | 'info';
|
|
896
|
+
|
|
897
|
+
export declare const Toc: DefineComponent<TocProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
898
|
+
click: (item: TocItem_2) => any;
|
|
899
|
+
"update:activeId": (id: string) => any;
|
|
900
|
+
}, string, PublicProps, Readonly<TocProps> & Readonly<{
|
|
901
|
+
onClick?: ((item: TocItem_2) => any) | undefined;
|
|
902
|
+
"onUpdate:activeId"?: ((id: string) => any) | undefined;
|
|
903
|
+
}>, {
|
|
904
|
+
mode: "sidebar" | "embedded";
|
|
905
|
+
minLevel: number;
|
|
906
|
+
maxLevel: number;
|
|
907
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
908
|
+
|
|
909
|
+
export declare interface TocItem {
|
|
910
|
+
level: number;
|
|
911
|
+
text: string;
|
|
912
|
+
id: string;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/** TOC 目录项类型 */
|
|
916
|
+
declare interface TocItem_2 {
|
|
917
|
+
level: number;
|
|
918
|
+
text: string;
|
|
919
|
+
id: string;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
export declare interface TocProps {
|
|
923
|
+
/** 目录项列表 */
|
|
924
|
+
items: TocItem_2[];
|
|
925
|
+
/** 文档标题(H1) */
|
|
926
|
+
docTitle?: string;
|
|
927
|
+
/** 最小层级,默认 2 */
|
|
928
|
+
minLevel?: number;
|
|
929
|
+
/** 最大层级,默认 4 */
|
|
930
|
+
maxLevel?: number;
|
|
931
|
+
/** 当前激活项 ID */
|
|
932
|
+
activeId?: string;
|
|
933
|
+
/** 布局模式:sidebar 固定侧边栏 / embedded 嵌入式 */
|
|
934
|
+
mode?: 'sidebar' | 'embedded';
|
|
935
|
+
/** 自定义类名 */
|
|
936
|
+
className?: string;
|
|
937
|
+
/** 滚动容器(默认 window,固定高度模式下传入容器元素) */
|
|
938
|
+
scrollContainer?: HTMLElement | null;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export declare const Tooltip: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
|
|
942
|
+
|
|
943
|
+
declare type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* 清理代码首尾空行
|
|
947
|
+
*/
|
|
948
|
+
export declare function trimCodeLines(code: string): string;
|
|
949
|
+
|
|
950
|
+
/** 列表组件工厂 */
|
|
951
|
+
export declare const ul: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
952
|
+
[key: string]: any;
|
|
953
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* 获取标题折叠状态(在 Heading 中调用)
|
|
957
|
+
*/
|
|
958
|
+
export declare function useHeadingCollapse(): HeadingCollapseState | null;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Vue 插件安装方法,支持 app.use() 方式全局注册
|
|
962
|
+
*/
|
|
963
|
+
declare const VueMarkdownRender: Plugin_2;
|
|
964
|
+
export { VueMarkdownRender }
|
|
965
|
+
export default VueMarkdownRender;
|
|
966
|
+
|
|
967
|
+
export { }
|