md-editor-v3 1.11.12 → 2.0.0-beta.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.
@@ -1,428 +0,0 @@
1
- import { PropType, CSSProperties } from 'vue';
2
- import { StaticTextDefaultValue, ToolbarNames, HeadList, PreviewThemes, MarkedHeading, MarkedHeadingId, MarkedImage, Themes } from './type';
3
- export declare const markedHeadingId: MarkedHeadingId;
4
- declare const _default: import("vue").DefineComponent<{
5
- modelValue: {
6
- type: PropType<string>;
7
- default: string;
8
- };
9
- theme: {
10
- type: PropType<Themes>;
11
- default: string;
12
- };
13
- editorClass: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
- hljs: {
18
- type: ObjectConstructor;
19
- default: null;
20
- };
21
- highlightJs: {
22
- type: PropType<string>;
23
- default: string;
24
- };
25
- highlightCss: {
26
- type: PropType<string>;
27
- default: string;
28
- };
29
- historyLength: {
30
- type: PropType<number>;
31
- default: number;
32
- };
33
- onChange: {
34
- type: PropType<(v: string) => void>;
35
- };
36
- onSave: {
37
- type: PropType<(v: string) => void>;
38
- };
39
- onUploadImg: {
40
- type: PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
41
- };
42
- pageFullScreen: {
43
- type: PropType<boolean>;
44
- default: boolean;
45
- };
46
- preview: {
47
- type: PropType<boolean>;
48
- default: boolean;
49
- };
50
- htmlPreview: {
51
- type: PropType<boolean>;
52
- default: boolean;
53
- };
54
- previewOnly: {
55
- type: PropType<boolean>;
56
- default: boolean;
57
- };
58
- language: {
59
- type: PropType<string>;
60
- default: string;
61
- };
62
- languageUserDefined: {
63
- type: PropType<{
64
- [key: string]: StaticTextDefaultValue;
65
- }>;
66
- default: () => {};
67
- };
68
- toolbars: {
69
- type: PropType<ToolbarNames[]>;
70
- default: string[];
71
- };
72
- toolbarsExclude: {
73
- type: PropType<ToolbarNames[]>;
74
- default: never[];
75
- };
76
- prettier: {
77
- type: PropType<boolean>;
78
- default: boolean;
79
- };
80
- prettierCDN: {
81
- type: PropType<string>;
82
- default: string;
83
- };
84
- prettierMDCDN: {
85
- type: PropType<string>;
86
- default: string;
87
- };
88
- onHtmlChanged: {
89
- type: PropType<(h: string) => void>;
90
- };
91
- Cropper: {
92
- type: FunctionConstructor;
93
- default: null;
94
- };
95
- cropperCss: {
96
- type: PropType<string>;
97
- default: string;
98
- };
99
- cropperJs: {
100
- type: PropType<string>;
101
- default: string;
102
- };
103
- iconfontJs: {
104
- type: PropType<string>;
105
- default: string;
106
- };
107
- onGetCatalog: {
108
- type: PropType<(list: HeadList[]) => void>;
109
- };
110
- editorId: {
111
- type: PropType<string>;
112
- default: string;
113
- };
114
- tabWidth: {
115
- type: PropType<number>;
116
- default: number;
117
- };
118
- showCodeRowNumber: {
119
- type: PropType<boolean>;
120
- default: boolean;
121
- };
122
- screenfull: {
123
- type: ObjectConstructor;
124
- default: null;
125
- };
126
- screenfullJs: {
127
- type: PropType<string>;
128
- default: string;
129
- };
130
- previewTheme: {
131
- type: PropType<PreviewThemes>;
132
- default: string;
133
- };
134
- markedHeading: {
135
- type: PropType<MarkedHeading>;
136
- default: (text: string, level: number, raw: string) => string;
137
- };
138
- style: {
139
- type: PropType<string | CSSProperties>;
140
- default: () => {};
141
- };
142
- markedHeadingId: {
143
- type: PropType<MarkedHeadingId>;
144
- default: MarkedHeadingId;
145
- };
146
- tableShape: {
147
- type: PropType<number[]>;
148
- default: () => number[];
149
- };
150
- mermaid: {
151
- type: ObjectConstructor;
152
- };
153
- mermaidJs: {
154
- type: PropType<string>;
155
- default: string;
156
- };
157
- noMermaid: {
158
- type: PropType<boolean>;
159
- default: boolean;
160
- };
161
- sanitize: {
162
- type: PropType<(html: string) => string>;
163
- default: (html: string) => string;
164
- };
165
- placeholder: {
166
- type: PropType<string>;
167
- default: string;
168
- };
169
- katex: {
170
- type: ObjectConstructor;
171
- };
172
- katexJs: {
173
- type: PropType<string>;
174
- default: string;
175
- };
176
- katexCss: {
177
- type: PropType<string>;
178
- default: string;
179
- };
180
- noKatex: {
181
- type: PropType<boolean>;
182
- default: boolean;
183
- };
184
- defToolbars: {
185
- type: PropType<string | JSX.Element>;
186
- };
187
- extensions: {
188
- type: PropType<any[]>;
189
- };
190
- markedImage: {
191
- type: PropType<MarkedImage>;
192
- default: (href: string, _: string, desc: string) => string;
193
- };
194
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
195
- modelValue: {
196
- type: PropType<string>;
197
- default: string;
198
- };
199
- theme: {
200
- type: PropType<Themes>;
201
- default: string;
202
- };
203
- editorClass: {
204
- type: StringConstructor;
205
- default: string;
206
- };
207
- hljs: {
208
- type: ObjectConstructor;
209
- default: null;
210
- };
211
- highlightJs: {
212
- type: PropType<string>;
213
- default: string;
214
- };
215
- highlightCss: {
216
- type: PropType<string>;
217
- default: string;
218
- };
219
- historyLength: {
220
- type: PropType<number>;
221
- default: number;
222
- };
223
- onChange: {
224
- type: PropType<(v: string) => void>;
225
- };
226
- onSave: {
227
- type: PropType<(v: string) => void>;
228
- };
229
- onUploadImg: {
230
- type: PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
231
- };
232
- pageFullScreen: {
233
- type: PropType<boolean>;
234
- default: boolean;
235
- };
236
- preview: {
237
- type: PropType<boolean>;
238
- default: boolean;
239
- };
240
- htmlPreview: {
241
- type: PropType<boolean>;
242
- default: boolean;
243
- };
244
- previewOnly: {
245
- type: PropType<boolean>;
246
- default: boolean;
247
- };
248
- language: {
249
- type: PropType<string>;
250
- default: string;
251
- };
252
- languageUserDefined: {
253
- type: PropType<{
254
- [key: string]: StaticTextDefaultValue;
255
- }>;
256
- default: () => {};
257
- };
258
- toolbars: {
259
- type: PropType<ToolbarNames[]>;
260
- default: string[];
261
- };
262
- toolbarsExclude: {
263
- type: PropType<ToolbarNames[]>;
264
- default: never[];
265
- };
266
- prettier: {
267
- type: PropType<boolean>;
268
- default: boolean;
269
- };
270
- prettierCDN: {
271
- type: PropType<string>;
272
- default: string;
273
- };
274
- prettierMDCDN: {
275
- type: PropType<string>;
276
- default: string;
277
- };
278
- onHtmlChanged: {
279
- type: PropType<(h: string) => void>;
280
- };
281
- Cropper: {
282
- type: FunctionConstructor;
283
- default: null;
284
- };
285
- cropperCss: {
286
- type: PropType<string>;
287
- default: string;
288
- };
289
- cropperJs: {
290
- type: PropType<string>;
291
- default: string;
292
- };
293
- iconfontJs: {
294
- type: PropType<string>;
295
- default: string;
296
- };
297
- onGetCatalog: {
298
- type: PropType<(list: HeadList[]) => void>;
299
- };
300
- editorId: {
301
- type: PropType<string>;
302
- default: string;
303
- };
304
- tabWidth: {
305
- type: PropType<number>;
306
- default: number;
307
- };
308
- showCodeRowNumber: {
309
- type: PropType<boolean>;
310
- default: boolean;
311
- };
312
- screenfull: {
313
- type: ObjectConstructor;
314
- default: null;
315
- };
316
- screenfullJs: {
317
- type: PropType<string>;
318
- default: string;
319
- };
320
- previewTheme: {
321
- type: PropType<PreviewThemes>;
322
- default: string;
323
- };
324
- markedHeading: {
325
- type: PropType<MarkedHeading>;
326
- default: (text: string, level: number, raw: string) => string;
327
- };
328
- style: {
329
- type: PropType<string | CSSProperties>;
330
- default: () => {};
331
- };
332
- markedHeadingId: {
333
- type: PropType<MarkedHeadingId>;
334
- default: MarkedHeadingId;
335
- };
336
- tableShape: {
337
- type: PropType<number[]>;
338
- default: () => number[];
339
- };
340
- mermaid: {
341
- type: ObjectConstructor;
342
- };
343
- mermaidJs: {
344
- type: PropType<string>;
345
- default: string;
346
- };
347
- noMermaid: {
348
- type: PropType<boolean>;
349
- default: boolean;
350
- };
351
- sanitize: {
352
- type: PropType<(html: string) => string>;
353
- default: (html: string) => string;
354
- };
355
- placeholder: {
356
- type: PropType<string>;
357
- default: string;
358
- };
359
- katex: {
360
- type: ObjectConstructor;
361
- };
362
- katexJs: {
363
- type: PropType<string>;
364
- default: string;
365
- };
366
- katexCss: {
367
- type: PropType<string>;
368
- default: string;
369
- };
370
- noKatex: {
371
- type: PropType<boolean>;
372
- default: boolean;
373
- };
374
- defToolbars: {
375
- type: PropType<string | JSX.Element>;
376
- };
377
- extensions: {
378
- type: PropType<any[]>;
379
- };
380
- markedImage: {
381
- type: PropType<MarkedImage>;
382
- default: (href: string, _: string, desc: string) => string;
383
- };
384
- }>>, {
385
- editorId: string;
386
- prettier: boolean;
387
- preview: boolean;
388
- htmlPreview: boolean;
389
- tabWidth: number;
390
- theme: Themes;
391
- historyLength: number;
392
- previewOnly: boolean;
393
- showCodeRowNumber: boolean;
394
- Cropper: Function;
395
- previewTheme: PreviewThemes;
396
- iconfontJs: string;
397
- prettierCDN: string;
398
- prettierMDCDN: string;
399
- cropperCss: string;
400
- cropperJs: string;
401
- style: string | CSSProperties;
402
- modelValue: string;
403
- editorClass: string;
404
- hljs: Record<string, any>;
405
- highlightJs: string;
406
- highlightCss: string;
407
- pageFullScreen: boolean;
408
- language: string;
409
- languageUserDefined: {
410
- [key: string]: StaticTextDefaultValue;
411
- };
412
- toolbars: ToolbarNames[];
413
- toolbarsExclude: ToolbarNames[];
414
- screenfull: Record<string, any>;
415
- screenfullJs: string;
416
- markedHeading: MarkedHeading;
417
- markedHeadingId: MarkedHeadingId;
418
- tableShape: number[];
419
- mermaidJs: string;
420
- noMermaid: boolean;
421
- sanitize: (html: string) => string;
422
- placeholder: string;
423
- katexJs: string;
424
- katexCss: string;
425
- noKatex: boolean;
426
- markedImage: MarkedImage;
427
- }>;
428
- export default _default;
@@ -1,30 +0,0 @@
1
- import { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- title: {
4
- type: PropType<string>;
5
- default: string;
6
- };
7
- trigger: {
8
- type: PropType<string | JSX.Element>;
9
- };
10
- onClick: {
11
- type: PropType<(e: MouseEvent) => void>;
12
- default: () => () => void;
13
- };
14
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
- title: {
16
- type: PropType<string>;
17
- default: string;
18
- };
19
- trigger: {
20
- type: PropType<string | JSX.Element>;
21
- };
22
- onClick: {
23
- type: PropType<(e: MouseEvent) => void>;
24
- default: () => () => void;
25
- };
26
- }>>, {
27
- title: string;
28
- onClick: (e: MouseEvent) => void;
29
- }>;
30
- export default _default;