md-editor-v3 4.13.1 → 4.13.3-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.
- package/lib/cjs/MdEditor.cjs +16 -3
- package/lib/cjs/chunks/index2.cjs +10 -2
- package/lib/es/MdEditor.mjs +16 -3
- package/lib/es/chunks/index2.mjs +10 -2
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +17 -9
- package/lib/types/DropdownToolbar/index.d.ts +112 -126
- package/lib/types/MdCatalog/CatalogLink.d.ts +2 -2
- package/lib/types/MdCatalog/MdCatalog.d.ts +2 -2
- package/lib/types/MdCatalog/index.d.ts +114 -144
- package/lib/types/MdEditor/Editor.d.ts +129 -121
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -2
- package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +13 -7
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -2
- package/lib/types/MdEditor/components/Icon/index.d.ts +4 -2
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -2
- package/lib/types/MdEditor/components/Modal/index.d.ts +133 -163
- package/lib/types/MdEditor/components/Popper/index.d.ts +2 -2
- package/lib/types/MdEditor/index.d.ts +643 -657
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +31 -31
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/index.d.ts +72 -72
- package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +2 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +4 -4
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +24 -24
- package/lib/types/MdEditor/props.d.ts +7 -3
- package/lib/types/MdEditor/type.d.ts +3 -3
- package/lib/types/MdEditor/utils/dom.d.ts +1 -1
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +2 -11
- package/lib/types/MdPreview/MdPreview.d.ts +52 -52
- package/lib/types/MdPreview/index.d.ts +310 -340
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +9 -5
- package/lib/types/ModalToolbar/index.d.ts +168 -190
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +9 -5
- package/lib/types/NormalToolbar/index.d.ts +80 -102
- package/lib/umd/index.js +48 -42
- package/package.json +18 -18
|
@@ -1,120 +1,124 @@
|
|
|
1
1
|
declare const Editor: import('vue').DefineComponent<{
|
|
2
2
|
onChange: {
|
|
3
|
-
type: import(
|
|
3
|
+
type: import('vue').PropType<import('./type').ChangeEvent>;
|
|
4
4
|
};
|
|
5
5
|
onSave: {
|
|
6
|
-
type: import(
|
|
6
|
+
type: import('vue').PropType<import('./type').SaveEvent>;
|
|
7
7
|
};
|
|
8
8
|
onUploadImg: {
|
|
9
|
-
type: import(
|
|
9
|
+
type: import('vue').PropType<import('./type').UploadImgEvent>;
|
|
10
10
|
};
|
|
11
11
|
pageFullscreen: {
|
|
12
|
-
type: import(
|
|
12
|
+
type: import('vue').PropType<boolean>;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
preview: {
|
|
16
|
-
type: import(
|
|
16
|
+
type: import('vue').PropType<boolean>;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
19
|
htmlPreview: {
|
|
20
|
-
type: import(
|
|
20
|
+
type: import('vue').PropType<boolean>;
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
toolbars: {
|
|
24
|
-
type: import(
|
|
24
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
25
25
|
default: string[];
|
|
26
26
|
};
|
|
27
27
|
toolbarsExclude: {
|
|
28
|
-
type: import(
|
|
28
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
29
29
|
default: never[];
|
|
30
30
|
};
|
|
31
31
|
noPrettier: {
|
|
32
|
-
type: import(
|
|
32
|
+
type: import('vue').PropType<boolean>;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
35
|
tabWidth: {
|
|
36
|
-
type: import(
|
|
36
|
+
type: import('vue').PropType<number>;
|
|
37
37
|
default: number;
|
|
38
38
|
};
|
|
39
39
|
tableShape: {
|
|
40
|
-
type: import(
|
|
40
|
+
type: import('vue').PropType<number[]>;
|
|
41
41
|
default: () => number[];
|
|
42
42
|
};
|
|
43
43
|
placeholder: {
|
|
44
|
-
type: import(
|
|
44
|
+
type: import('vue').PropType<string>;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
defToolbars: {
|
|
48
|
-
type: import(
|
|
48
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>>;
|
|
49
51
|
};
|
|
50
52
|
onError: {
|
|
51
|
-
type: import(
|
|
53
|
+
type: import('vue').PropType<import('./type').ErrorEvent>;
|
|
52
54
|
};
|
|
53
55
|
footers: {
|
|
54
|
-
type: import(
|
|
55
|
-
default: import(
|
|
56
|
+
type: import('vue').PropType<import('./type').Footers[]>;
|
|
57
|
+
default: import('./type').Footers[];
|
|
56
58
|
};
|
|
57
59
|
scrollAuto: {
|
|
58
|
-
type: import(
|
|
60
|
+
type: import('vue').PropType<boolean>;
|
|
59
61
|
default: boolean;
|
|
60
62
|
};
|
|
61
63
|
defFooters: {
|
|
62
|
-
type: import(
|
|
64
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
}>>;
|
|
63
67
|
};
|
|
64
68
|
noUploadImg: {
|
|
65
|
-
type: import(
|
|
69
|
+
type: import('vue').PropType<boolean>;
|
|
66
70
|
};
|
|
67
71
|
autoFocus: {
|
|
68
|
-
type: import(
|
|
72
|
+
type: import('vue').PropType<boolean>;
|
|
69
73
|
};
|
|
70
74
|
disabled: {
|
|
71
|
-
type: import(
|
|
75
|
+
type: import('vue').PropType<boolean>;
|
|
72
76
|
};
|
|
73
77
|
readOnly: {
|
|
74
|
-
type: import(
|
|
78
|
+
type: import('vue').PropType<boolean>;
|
|
75
79
|
};
|
|
76
80
|
maxLength: {
|
|
77
|
-
type: import(
|
|
81
|
+
type: import('vue').PropType<number>;
|
|
78
82
|
};
|
|
79
83
|
autoDetectCode: {
|
|
80
|
-
type: import(
|
|
84
|
+
type: import('vue').PropType<boolean>;
|
|
81
85
|
};
|
|
82
86
|
onBlur: {
|
|
83
|
-
type: import(
|
|
87
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
84
88
|
};
|
|
85
89
|
onFocus: {
|
|
86
|
-
type: import(
|
|
90
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
87
91
|
};
|
|
88
92
|
completions: {
|
|
89
|
-
type: import(
|
|
93
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
90
94
|
};
|
|
91
95
|
showToolbarName: {
|
|
92
|
-
type: import(
|
|
96
|
+
type: import('vue').PropType<boolean>;
|
|
93
97
|
default: boolean;
|
|
94
98
|
};
|
|
95
99
|
onInput: {
|
|
96
|
-
type: import(
|
|
100
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
97
101
|
};
|
|
98
102
|
onDrop: {
|
|
99
|
-
type: import(
|
|
103
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
100
104
|
};
|
|
101
105
|
inputBoxWitdh: {
|
|
102
|
-
type: import(
|
|
106
|
+
type: import('vue').PropType<string>;
|
|
103
107
|
default: string;
|
|
104
108
|
};
|
|
105
109
|
onInputBoxWitdhChange: {
|
|
106
|
-
type: import(
|
|
110
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
107
111
|
};
|
|
108
112
|
transformImgUrl: {
|
|
109
|
-
type: import(
|
|
113
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
110
114
|
default: (t: string) => string;
|
|
111
115
|
};
|
|
112
116
|
modelValue: {
|
|
113
|
-
type: import(
|
|
117
|
+
type: import('vue').PropType<string>;
|
|
114
118
|
default: string;
|
|
115
119
|
};
|
|
116
120
|
theme: {
|
|
117
|
-
type: import(
|
|
121
|
+
type: import('vue').PropType<import('./type').Themes>;
|
|
118
122
|
default: string;
|
|
119
123
|
};
|
|
120
124
|
class: {
|
|
@@ -122,199 +126,203 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
122
126
|
default: string;
|
|
123
127
|
};
|
|
124
128
|
language: {
|
|
125
|
-
type: import(
|
|
129
|
+
type: import('vue').PropType<string>;
|
|
126
130
|
default: string;
|
|
127
131
|
};
|
|
128
132
|
onHtmlChanged: {
|
|
129
|
-
type: import(
|
|
133
|
+
type: import('vue').PropType<import('./type').HtmlChangedEvent>;
|
|
130
134
|
};
|
|
131
135
|
onGetCatalog: {
|
|
132
|
-
type: import(
|
|
136
|
+
type: import('vue').PropType<import('./type').GetCatalogEvent>;
|
|
133
137
|
};
|
|
134
138
|
editorId: {
|
|
135
|
-
type: import(
|
|
139
|
+
type: import('vue').PropType<string>;
|
|
136
140
|
default: () => string;
|
|
137
141
|
};
|
|
138
142
|
showCodeRowNumber: {
|
|
139
|
-
type: import(
|
|
143
|
+
type: import('vue').PropType<boolean>;
|
|
140
144
|
default: boolean;
|
|
141
145
|
};
|
|
142
146
|
previewTheme: {
|
|
143
|
-
type: import(
|
|
147
|
+
type: import('vue').PropType<string>;
|
|
144
148
|
default: string;
|
|
145
149
|
};
|
|
146
150
|
style: {
|
|
147
|
-
type: import(
|
|
151
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
148
152
|
default: () => {};
|
|
149
153
|
};
|
|
150
154
|
mdHeadingId: {
|
|
151
|
-
type: import(
|
|
152
|
-
default: import(
|
|
155
|
+
type: import('vue').PropType<import('./type').MdHeadingId>;
|
|
156
|
+
default: import('./type').MdHeadingId;
|
|
153
157
|
};
|
|
154
158
|
sanitize: {
|
|
155
|
-
type: import(
|
|
159
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
156
160
|
default: (html: string) => string;
|
|
157
161
|
};
|
|
158
162
|
noMermaid: {
|
|
159
|
-
type: import(
|
|
163
|
+
type: import('vue').PropType<boolean>;
|
|
160
164
|
default: boolean;
|
|
161
165
|
};
|
|
162
166
|
noKatex: {
|
|
163
|
-
type: import(
|
|
167
|
+
type: import('vue').PropType<boolean>;
|
|
164
168
|
default: boolean;
|
|
165
169
|
};
|
|
166
170
|
codeTheme: {
|
|
167
|
-
type: import(
|
|
171
|
+
type: import('vue').PropType<string>;
|
|
168
172
|
default: string;
|
|
169
173
|
};
|
|
170
174
|
noIconfont: {
|
|
171
|
-
type: import(
|
|
175
|
+
type: import('vue').PropType<boolean>;
|
|
172
176
|
};
|
|
173
177
|
formatCopiedText: {
|
|
174
|
-
type: import(
|
|
178
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
175
179
|
default: (text: string) => string;
|
|
176
180
|
};
|
|
177
181
|
codeStyleReverse: {
|
|
178
|
-
type: import(
|
|
182
|
+
type: import('vue').PropType<boolean>;
|
|
179
183
|
default: boolean;
|
|
180
184
|
};
|
|
181
185
|
codeStyleReverseList: {
|
|
182
|
-
type: import(
|
|
186
|
+
type: import('vue').PropType<string[]>;
|
|
183
187
|
default: string[];
|
|
184
188
|
};
|
|
185
189
|
noHighlight: {
|
|
186
|
-
type: import(
|
|
190
|
+
type: import('vue').PropType<boolean>;
|
|
187
191
|
default: boolean;
|
|
188
192
|
};
|
|
189
193
|
noImgZoomIn: {
|
|
190
|
-
type: import(
|
|
194
|
+
type: import('vue').PropType<boolean>;
|
|
191
195
|
default: boolean;
|
|
192
196
|
};
|
|
193
197
|
customIcon: {
|
|
194
|
-
type: import(
|
|
198
|
+
type: import('vue').PropType<import('./type').CustomIcon>;
|
|
195
199
|
default: {};
|
|
196
200
|
};
|
|
197
201
|
sanitizeMermaid: {
|
|
198
|
-
type: import(
|
|
202
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
199
203
|
default: (h: string) => Promise<string>;
|
|
200
204
|
};
|
|
201
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
205
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('./type').EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
202
206
|
onChange: {
|
|
203
|
-
type: import(
|
|
207
|
+
type: import('vue').PropType<import('./type').ChangeEvent>;
|
|
204
208
|
};
|
|
205
209
|
onSave: {
|
|
206
|
-
type: import(
|
|
210
|
+
type: import('vue').PropType<import('./type').SaveEvent>;
|
|
207
211
|
};
|
|
208
212
|
onUploadImg: {
|
|
209
|
-
type: import(
|
|
213
|
+
type: import('vue').PropType<import('./type').UploadImgEvent>;
|
|
210
214
|
};
|
|
211
215
|
pageFullscreen: {
|
|
212
|
-
type: import(
|
|
216
|
+
type: import('vue').PropType<boolean>;
|
|
213
217
|
default: boolean;
|
|
214
218
|
};
|
|
215
219
|
preview: {
|
|
216
|
-
type: import(
|
|
220
|
+
type: import('vue').PropType<boolean>;
|
|
217
221
|
default: boolean;
|
|
218
222
|
};
|
|
219
223
|
htmlPreview: {
|
|
220
|
-
type: import(
|
|
224
|
+
type: import('vue').PropType<boolean>;
|
|
221
225
|
default: boolean;
|
|
222
226
|
};
|
|
223
227
|
toolbars: {
|
|
224
|
-
type: import(
|
|
228
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
225
229
|
default: string[];
|
|
226
230
|
};
|
|
227
231
|
toolbarsExclude: {
|
|
228
|
-
type: import(
|
|
232
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
229
233
|
default: never[];
|
|
230
234
|
};
|
|
231
235
|
noPrettier: {
|
|
232
|
-
type: import(
|
|
236
|
+
type: import('vue').PropType<boolean>;
|
|
233
237
|
default: boolean;
|
|
234
238
|
};
|
|
235
239
|
tabWidth: {
|
|
236
|
-
type: import(
|
|
240
|
+
type: import('vue').PropType<number>;
|
|
237
241
|
default: number;
|
|
238
242
|
};
|
|
239
243
|
tableShape: {
|
|
240
|
-
type: import(
|
|
244
|
+
type: import('vue').PropType<number[]>;
|
|
241
245
|
default: () => number[];
|
|
242
246
|
};
|
|
243
247
|
placeholder: {
|
|
244
|
-
type: import(
|
|
248
|
+
type: import('vue').PropType<string>;
|
|
245
249
|
default: string;
|
|
246
250
|
};
|
|
247
251
|
defToolbars: {
|
|
248
|
-
type: import(
|
|
252
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
253
|
+
[key: string]: any;
|
|
254
|
+
}>>;
|
|
249
255
|
};
|
|
250
256
|
onError: {
|
|
251
|
-
type: import(
|
|
257
|
+
type: import('vue').PropType<import('./type').ErrorEvent>;
|
|
252
258
|
};
|
|
253
259
|
footers: {
|
|
254
|
-
type: import(
|
|
255
|
-
default: import(
|
|
260
|
+
type: import('vue').PropType<import('./type').Footers[]>;
|
|
261
|
+
default: import('./type').Footers[];
|
|
256
262
|
};
|
|
257
263
|
scrollAuto: {
|
|
258
|
-
type: import(
|
|
264
|
+
type: import('vue').PropType<boolean>;
|
|
259
265
|
default: boolean;
|
|
260
266
|
};
|
|
261
267
|
defFooters: {
|
|
262
|
-
type: import(
|
|
268
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
269
|
+
[key: string]: any;
|
|
270
|
+
}>>;
|
|
263
271
|
};
|
|
264
272
|
noUploadImg: {
|
|
265
|
-
type: import(
|
|
273
|
+
type: import('vue').PropType<boolean>;
|
|
266
274
|
};
|
|
267
275
|
autoFocus: {
|
|
268
|
-
type: import(
|
|
276
|
+
type: import('vue').PropType<boolean>;
|
|
269
277
|
};
|
|
270
278
|
disabled: {
|
|
271
|
-
type: import(
|
|
279
|
+
type: import('vue').PropType<boolean>;
|
|
272
280
|
};
|
|
273
281
|
readOnly: {
|
|
274
|
-
type: import(
|
|
282
|
+
type: import('vue').PropType<boolean>;
|
|
275
283
|
};
|
|
276
284
|
maxLength: {
|
|
277
|
-
type: import(
|
|
285
|
+
type: import('vue').PropType<number>;
|
|
278
286
|
};
|
|
279
287
|
autoDetectCode: {
|
|
280
|
-
type: import(
|
|
288
|
+
type: import('vue').PropType<boolean>;
|
|
281
289
|
};
|
|
282
290
|
onBlur: {
|
|
283
|
-
type: import(
|
|
291
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
284
292
|
};
|
|
285
293
|
onFocus: {
|
|
286
|
-
type: import(
|
|
294
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
287
295
|
};
|
|
288
296
|
completions: {
|
|
289
|
-
type: import(
|
|
297
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
290
298
|
};
|
|
291
299
|
showToolbarName: {
|
|
292
|
-
type: import(
|
|
300
|
+
type: import('vue').PropType<boolean>;
|
|
293
301
|
default: boolean;
|
|
294
302
|
};
|
|
295
303
|
onInput: {
|
|
296
|
-
type: import(
|
|
304
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
297
305
|
};
|
|
298
306
|
onDrop: {
|
|
299
|
-
type: import(
|
|
307
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
300
308
|
};
|
|
301
309
|
inputBoxWitdh: {
|
|
302
|
-
type: import(
|
|
310
|
+
type: import('vue').PropType<string>;
|
|
303
311
|
default: string;
|
|
304
312
|
};
|
|
305
313
|
onInputBoxWitdhChange: {
|
|
306
|
-
type: import(
|
|
314
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
307
315
|
};
|
|
308
316
|
transformImgUrl: {
|
|
309
|
-
type: import(
|
|
317
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
310
318
|
default: (t: string) => string;
|
|
311
319
|
};
|
|
312
320
|
modelValue: {
|
|
313
|
-
type: import(
|
|
321
|
+
type: import('vue').PropType<string>;
|
|
314
322
|
default: string;
|
|
315
323
|
};
|
|
316
324
|
theme: {
|
|
317
|
-
type: import(
|
|
325
|
+
type: import('vue').PropType<import('./type').Themes>;
|
|
318
326
|
default: string;
|
|
319
327
|
};
|
|
320
328
|
class: {
|
|
@@ -322,80 +330,80 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
322
330
|
default: string;
|
|
323
331
|
};
|
|
324
332
|
language: {
|
|
325
|
-
type: import(
|
|
333
|
+
type: import('vue').PropType<string>;
|
|
326
334
|
default: string;
|
|
327
335
|
};
|
|
328
336
|
onHtmlChanged: {
|
|
329
|
-
type: import(
|
|
337
|
+
type: import('vue').PropType<import('./type').HtmlChangedEvent>;
|
|
330
338
|
};
|
|
331
339
|
onGetCatalog: {
|
|
332
|
-
type: import(
|
|
340
|
+
type: import('vue').PropType<import('./type').GetCatalogEvent>;
|
|
333
341
|
};
|
|
334
342
|
editorId: {
|
|
335
|
-
type: import(
|
|
343
|
+
type: import('vue').PropType<string>;
|
|
336
344
|
default: () => string;
|
|
337
345
|
};
|
|
338
346
|
showCodeRowNumber: {
|
|
339
|
-
type: import(
|
|
347
|
+
type: import('vue').PropType<boolean>;
|
|
340
348
|
default: boolean;
|
|
341
349
|
};
|
|
342
350
|
previewTheme: {
|
|
343
|
-
type: import(
|
|
351
|
+
type: import('vue').PropType<string>;
|
|
344
352
|
default: string;
|
|
345
353
|
};
|
|
346
354
|
style: {
|
|
347
|
-
type: import(
|
|
355
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
348
356
|
default: () => {};
|
|
349
357
|
};
|
|
350
358
|
mdHeadingId: {
|
|
351
|
-
type: import(
|
|
352
|
-
default: import(
|
|
359
|
+
type: import('vue').PropType<import('./type').MdHeadingId>;
|
|
360
|
+
default: import('./type').MdHeadingId;
|
|
353
361
|
};
|
|
354
362
|
sanitize: {
|
|
355
|
-
type: import(
|
|
363
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
356
364
|
default: (html: string) => string;
|
|
357
365
|
};
|
|
358
366
|
noMermaid: {
|
|
359
|
-
type: import(
|
|
367
|
+
type: import('vue').PropType<boolean>;
|
|
360
368
|
default: boolean;
|
|
361
369
|
};
|
|
362
370
|
noKatex: {
|
|
363
|
-
type: import(
|
|
371
|
+
type: import('vue').PropType<boolean>;
|
|
364
372
|
default: boolean;
|
|
365
373
|
};
|
|
366
374
|
codeTheme: {
|
|
367
|
-
type: import(
|
|
375
|
+
type: import('vue').PropType<string>;
|
|
368
376
|
default: string;
|
|
369
377
|
};
|
|
370
378
|
noIconfont: {
|
|
371
|
-
type: import(
|
|
379
|
+
type: import('vue').PropType<boolean>;
|
|
372
380
|
};
|
|
373
381
|
formatCopiedText: {
|
|
374
|
-
type: import(
|
|
382
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
375
383
|
default: (text: string) => string;
|
|
376
384
|
};
|
|
377
385
|
codeStyleReverse: {
|
|
378
|
-
type: import(
|
|
386
|
+
type: import('vue').PropType<boolean>;
|
|
379
387
|
default: boolean;
|
|
380
388
|
};
|
|
381
389
|
codeStyleReverseList: {
|
|
382
|
-
type: import(
|
|
390
|
+
type: import('vue').PropType<string[]>;
|
|
383
391
|
default: string[];
|
|
384
392
|
};
|
|
385
393
|
noHighlight: {
|
|
386
|
-
type: import(
|
|
394
|
+
type: import('vue').PropType<boolean>;
|
|
387
395
|
default: boolean;
|
|
388
396
|
};
|
|
389
397
|
noImgZoomIn: {
|
|
390
|
-
type: import(
|
|
398
|
+
type: import('vue').PropType<boolean>;
|
|
391
399
|
default: boolean;
|
|
392
400
|
};
|
|
393
401
|
customIcon: {
|
|
394
|
-
type: import(
|
|
402
|
+
type: import('vue').PropType<import('./type').CustomIcon>;
|
|
395
403
|
default: {};
|
|
396
404
|
};
|
|
397
405
|
sanitizeMermaid: {
|
|
398
|
-
type: import(
|
|
406
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
399
407
|
default: (h: string) => Promise<string>;
|
|
400
408
|
};
|
|
401
409
|
}>> & {
|
|
@@ -416,25 +424,25 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
416
424
|
pageFullscreen: boolean;
|
|
417
425
|
htmlPreview: boolean;
|
|
418
426
|
class: string;
|
|
419
|
-
style: string | import(
|
|
427
|
+
style: string | import('vue').CSSProperties;
|
|
420
428
|
language: string;
|
|
421
|
-
toolbars: import(
|
|
422
|
-
toolbarsExclude: import(
|
|
429
|
+
toolbars: import('./type').ToolbarNames[];
|
|
430
|
+
toolbarsExclude: import('./type').ToolbarNames[];
|
|
423
431
|
noPrettier: boolean;
|
|
424
432
|
tabWidth: number;
|
|
425
433
|
tableShape: number[];
|
|
426
434
|
placeholder: string;
|
|
427
|
-
footers: import(
|
|
435
|
+
footers: import('./type').Footers[];
|
|
428
436
|
scrollAuto: boolean;
|
|
429
437
|
showToolbarName: boolean;
|
|
430
438
|
inputBoxWitdh: string;
|
|
431
439
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
432
440
|
modelValue: string;
|
|
433
|
-
theme: import(
|
|
441
|
+
theme: import('./type').Themes;
|
|
434
442
|
editorId: string;
|
|
435
443
|
showCodeRowNumber: boolean;
|
|
436
444
|
previewTheme: string;
|
|
437
|
-
mdHeadingId: import(
|
|
445
|
+
mdHeadingId: import('./type').MdHeadingId;
|
|
438
446
|
sanitize: (html: string) => string;
|
|
439
447
|
noMermaid: boolean;
|
|
440
448
|
noKatex: boolean;
|
|
@@ -444,7 +452,7 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
444
452
|
codeStyleReverseList: string[];
|
|
445
453
|
noHighlight: boolean;
|
|
446
454
|
noImgZoomIn: boolean;
|
|
447
|
-
customIcon: import(
|
|
455
|
+
customIcon: import('./type').CustomIcon;
|
|
448
456
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
449
|
-
}>;
|
|
457
|
+
}, {}>;
|
|
450
458
|
export default Editor;
|
|
@@ -9,7 +9,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
9
9
|
type: PropType<(checked: boolean) => void>;
|
|
10
10
|
default: () => void;
|
|
11
11
|
};
|
|
12
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
12
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
13
13
|
checked: {
|
|
14
14
|
type: PropType<boolean>;
|
|
15
15
|
default: boolean;
|
|
@@ -21,5 +21,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
21
21
|
}>>, {
|
|
22
22
|
onChange: (checked: boolean) => void;
|
|
23
23
|
checked: boolean;
|
|
24
|
-
}>;
|
|
24
|
+
}, {}>;
|
|
25
25
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, () => JSX.Element, {}, {}, {}, import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { PropType, EmitsOptions, ExtractPropTypes } from 'vue';
|
|
1
|
+
import { PropType, EmitsOptions, ExtractPropTypes, VNode } from 'vue';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<{
|
|
4
4
|
overlay: {
|
|
5
|
-
type: PropType<string |
|
|
5
|
+
type: PropType<string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>>;
|
|
6
8
|
default: string;
|
|
7
9
|
};
|
|
8
10
|
visible: {
|
|
@@ -17,11 +19,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
17
19
|
type: PropType<string>;
|
|
18
20
|
default: string;
|
|
19
21
|
};
|
|
20
|
-
}, () =>
|
|
22
|
+
}, () => VNode<unknown, unknown, {
|
|
21
23
|
[key: string]: any;
|
|
22
|
-
}>[], unknown, {}, {}, import(
|
|
24
|
+
}>[], unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, EmitsOptions, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
23
25
|
overlay: {
|
|
24
|
-
type: PropType<string |
|
|
26
|
+
type: PropType<string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>>;
|
|
25
29
|
default: string;
|
|
26
30
|
};
|
|
27
31
|
visible: {
|
|
@@ -38,8 +42,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
38
42
|
};
|
|
39
43
|
}>>, {
|
|
40
44
|
onChange: (v: boolean) => void;
|
|
41
|
-
overlay: string |
|
|
45
|
+
overlay: string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>;
|
|
42
48
|
visible: boolean;
|
|
43
49
|
relative: string;
|
|
44
|
-
}>;
|
|
50
|
+
}, {}>;
|
|
45
51
|
export default _default;
|
|
@@ -6,12 +6,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
6
6
|
type: PropType<IconName>;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
9
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
10
|
name: {
|
|
11
11
|
type: PropType<IconName>;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
}>>, {
|
|
15
15
|
name: IconName;
|
|
16
|
-
}>;
|
|
16
|
+
}, {}>;
|
|
17
17
|
export default _default;
|