md-editor-v3 4.16.7 → 4.16.8

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 (80) hide show
  1. package/README.md +13 -4
  2. package/lib/cjs/MdEditor.cjs +1 -0
  3. package/lib/cjs/ModalToolbar.cjs +12 -0
  4. package/lib/cjs/chunks/index3.cjs +22 -6
  5. package/lib/es/MdEditor.mjs +1 -0
  6. package/lib/es/ModalToolbar.mjs +12 -0
  7. package/lib/es/chunks/index3.mjs +22 -6
  8. package/lib/preview.css +5 -0
  9. package/lib/style.css +6 -3
  10. package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +7 -8
  11. package/lib/types/DropdownToolbar/index.d.ts +46 -47
  12. package/lib/types/MdCatalog/CatalogLink.d.ts +5 -6
  13. package/lib/types/MdCatalog/MdCatalog.d.ts +3 -4
  14. package/lib/types/MdCatalog/index.d.ts +44 -45
  15. package/lib/types/MdEditor/Editor.d.ts +125 -125
  16. package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -3
  17. package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
  18. package/lib/types/MdEditor/components/Dropdown/index.d.ts +5 -6
  19. package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -3
  20. package/lib/types/MdEditor/components/Icon/Str.d.ts +0 -1
  21. package/lib/types/MdEditor/components/Icon/index.d.ts +4 -5
  22. package/lib/types/MdEditor/components/Modal/Modal.d.ts +14 -6
  23. package/lib/types/MdEditor/components/Modal/index.d.ts +68 -50
  24. package/lib/types/MdEditor/components/Popper/index.d.ts +2 -3
  25. package/lib/types/MdEditor/composition.d.ts +3 -4
  26. package/lib/types/MdEditor/config.d.ts +0 -1
  27. package/lib/types/MdEditor/index.d.ts +259 -260
  28. package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +37 -38
  29. package/lib/types/MdEditor/layouts/Content/codemirror/autocompletion.d.ts +1 -2
  30. package/lib/types/MdEditor/layouts/Content/codemirror/commands.d.ts +1 -2
  31. package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +2 -3
  32. package/lib/types/MdEditor/layouts/Content/codemirror/themeLight.d.ts +1 -2
  33. package/lib/types/MdEditor/layouts/Content/codemirror/themeOneDark.d.ts +4 -2
  34. package/lib/types/MdEditor/layouts/Content/composition/index.d.ts +6 -7
  35. package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +1 -2
  36. package/lib/types/MdEditor/layouts/Content/composition/useAutoScroll.d.ts +2 -3
  37. package/lib/types/MdEditor/layouts/Content/composition/useCodeMirror.d.ts +3 -4
  38. package/lib/types/MdEditor/layouts/Content/composition/useCopyCode.d.ts +1 -2
  39. package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -2
  40. package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -2
  41. package/lib/types/MdEditor/layouts/Content/composition/useMarkdownIt.d.ts +2 -3
  42. package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +2 -3
  43. package/lib/types/MdEditor/layouts/Content/composition/usePasteUpload.d.ts +2 -3
  44. package/lib/types/MdEditor/layouts/Content/composition/useResize.d.ts +1 -2
  45. package/lib/types/MdEditor/layouts/Content/composition/userZoom.d.ts +1 -2
  46. package/lib/types/MdEditor/layouts/Content/index.d.ts +76 -76
  47. package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +6 -2
  48. package/lib/types/MdEditor/layouts/Content/markdownIt/code/index.d.ts +10 -3
  49. package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +2 -3
  50. package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +6 -2
  51. package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +2 -3
  52. package/lib/types/MdEditor/layouts/Content/markdownIt/xss/index.d.ts +1 -1
  53. package/lib/types/MdEditor/layouts/Content/props.d.ts +3 -4
  54. package/lib/types/MdEditor/layouts/Content/type.d.ts +0 -1
  55. package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -3
  56. package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -3
  57. package/lib/types/MdEditor/layouts/Footer/index.d.ts +5 -6
  58. package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -3
  59. package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -3
  60. package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -3
  61. package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -3
  62. package/lib/types/MdEditor/layouts/Toolbar/composition.d.ts +0 -1
  63. package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +25 -26
  64. package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +3 -4
  65. package/lib/types/MdEditor/props.d.ts +4 -5
  66. package/lib/types/MdEditor/type.d.ts +7 -8
  67. package/lib/types/MdEditor/utils/content-help.d.ts +1 -2
  68. package/lib/types/MdEditor/utils/md-it.d.ts +1 -5
  69. package/lib/types/MdEditor/utils/scroll-auto.d.ts +1 -2
  70. package/lib/types/MdEditor/utils/vue-tsx.d.ts +0 -1
  71. package/lib/types/MdPreview/MdPreview.d.ts +56 -56
  72. package/lib/types/MdPreview/composition/useExpose.d.ts +1 -2
  73. package/lib/types/MdPreview/index.d.ts +118 -119
  74. package/lib/types/ModalToolbar/ModalToolbar.d.ts +23 -6
  75. package/lib/types/ModalToolbar/index.d.ts +102 -67
  76. package/lib/types/NormalToolbar/NormalToolbar.d.ts +5 -6
  77. package/lib/types/NormalToolbar/index.d.ts +30 -31
  78. package/lib/types/config.d.ts +2 -2
  79. package/lib/umd/index.js +29 -29
  80. package/package.json +4 -5
@@ -1,276 +1,276 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  updateModelValue: {
3
- type: import('vue').PropType<(v: string) => void>;
3
+ type: import("vue").PropType<(v: string) => void>;
4
4
  default: () => void;
5
5
  };
6
6
  onChange: {
7
- type: import('vue').PropType<(v: string) => void>;
7
+ type: import("vue").PropType<(v: string) => void>;
8
8
  default: () => void;
9
9
  };
10
10
  placeholder: {
11
- type: import('vue').PropType<string>;
11
+ type: import("vue").PropType<string>;
12
12
  default: string;
13
13
  };
14
14
  scrollAuto: {
15
- type: import('vue').PropType<boolean>;
15
+ type: import("vue").PropType<boolean>;
16
16
  };
17
17
  autofocus: {
18
- type: import('vue').PropType<boolean>;
18
+ type: import("vue").PropType<boolean>;
19
19
  };
20
20
  disabled: {
21
- type: import('vue').PropType<boolean>;
21
+ type: import("vue").PropType<boolean>;
22
22
  };
23
23
  readonly: {
24
- type: import('vue').PropType<boolean>;
24
+ type: import("vue").PropType<boolean>;
25
25
  };
26
26
  maxlength: {
27
- type: import('vue').PropType<number>;
27
+ type: import("vue").PropType<number>;
28
28
  };
29
29
  autoDetectCode: {
30
- type: import('vue').PropType<boolean>;
30
+ type: import("vue").PropType<boolean>;
31
31
  };
32
32
  onBlur: {
33
- type: import('vue').PropType<(event: FocusEvent) => void>;
33
+ type: import("vue").PropType<(event: FocusEvent) => void>;
34
34
  default: () => void;
35
35
  };
36
36
  onFocus: {
37
- type: import('vue').PropType<(event: FocusEvent) => void>;
37
+ type: import("vue").PropType<(event: FocusEvent) => void>;
38
38
  default: () => void;
39
39
  };
40
40
  noPrettier: {
41
- type: import('vue').PropType<boolean>;
41
+ type: import("vue").PropType<boolean>;
42
42
  };
43
43
  completions: {
44
- type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
44
+ type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
45
45
  };
46
46
  catalogVisible: {
47
- type: import('vue').PropType<boolean>;
47
+ type: import("vue").PropType<boolean>;
48
48
  };
49
49
  theme: {
50
- type: import('vue').PropType<import('../../type').Themes>;
50
+ type: import("vue").PropType<import("../../type").Themes>;
51
51
  default: string;
52
52
  };
53
53
  onInput: {
54
- type: import('vue').PropType<(event: Event) => void>;
54
+ type: import("vue").PropType<(event: Event) => void>;
55
55
  };
56
56
  onDrop: {
57
- type: import('vue').PropType<(event: DragEvent) => void>;
57
+ type: import("vue").PropType<(event: DragEvent) => void>;
58
58
  default: () => void;
59
59
  };
60
60
  inputBoxWitdh: {
61
- type: import('vue').PropType<string>;
61
+ type: import("vue").PropType<string>;
62
62
  };
63
63
  onInputBoxWitdhChange: {
64
- type: import('vue').PropType<(width: string) => void>;
64
+ type: import("vue").PropType<(width: string) => void>;
65
65
  };
66
66
  transformImgUrl: {
67
- type: import('vue').PropType<(t: string) => string | Promise<string>>;
67
+ type: import("vue").PropType<(t: string) => string | Promise<string>>;
68
68
  default: (t: string) => string;
69
69
  };
70
70
  modelValue: {
71
- type: import('vue').PropType<string>;
71
+ type: import("vue").PropType<string>;
72
72
  default: string;
73
73
  };
74
74
  setting: {
75
- type: import('vue').PropType<import('../../type').SettingType>;
75
+ type: import("vue").PropType<import("../../type").SettingType>;
76
76
  default: () => {
77
77
  preview: boolean;
78
78
  };
79
79
  };
80
80
  onHtmlChanged: {
81
- type: import('vue').PropType<(h: string) => void>;
81
+ type: import("vue").PropType<(h: string) => void>;
82
82
  default: () => void;
83
83
  };
84
84
  onGetCatalog: {
85
- type: import('vue').PropType<(list: import('../../type').HeadList[]) => void>;
85
+ type: import("vue").PropType<(list: import("../../type").HeadList[]) => void>;
86
86
  default: () => void;
87
87
  };
88
88
  mdHeadingId: {
89
- type: import('vue').PropType<import('../../type').MdHeadingId>;
89
+ type: import("vue").PropType<import("../../type").MdHeadingId>;
90
90
  default: () => string;
91
91
  };
92
92
  noMermaid: {
93
- type: import('vue').PropType<boolean>;
93
+ type: import("vue").PropType<boolean>;
94
94
  default: boolean;
95
95
  };
96
96
  sanitize: {
97
- type: import('vue').PropType<(html: string) => string>;
97
+ type: import("vue").PropType<(html: string) => string>;
98
98
  default: (html: string) => string;
99
99
  };
100
100
  noKatex: {
101
- type: import('vue').PropType<boolean>;
101
+ type: import("vue").PropType<boolean>;
102
102
  default: boolean;
103
103
  };
104
104
  formatCopiedText: {
105
- type: import('vue').PropType<(text: string) => string>;
105
+ type: import("vue").PropType<(text: string) => string>;
106
106
  default: (text: string) => string;
107
107
  };
108
108
  noHighlight: {
109
- type: import('vue').PropType<boolean>;
109
+ type: import("vue").PropType<boolean>;
110
110
  default: boolean;
111
111
  };
112
112
  previewOnly: {
113
- type: import('vue').PropType<boolean>;
113
+ type: import("vue").PropType<boolean>;
114
114
  default: boolean;
115
115
  };
116
116
  noImgZoomIn: {
117
- type: import('vue').PropType<boolean>;
117
+ type: import("vue").PropType<boolean>;
118
118
  };
119
119
  sanitizeMermaid: {
120
- type: import('vue').PropType<(h: string) => Promise<string>>;
120
+ type: import("vue").PropType<(h: string) => Promise<string>>;
121
121
  };
122
122
  codeFoldable: {
123
- type: import('vue').PropType<boolean>;
123
+ type: import("vue").PropType<boolean>;
124
124
  };
125
125
  autoFoldThreshold: {
126
- type: import('vue').PropType<number>;
126
+ type: import("vue").PropType<number>;
127
127
  };
128
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
128
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
129
129
  updateModelValue: {
130
- type: import('vue').PropType<(v: string) => void>;
130
+ type: import("vue").PropType<(v: string) => void>;
131
131
  default: () => void;
132
132
  };
133
133
  onChange: {
134
- type: import('vue').PropType<(v: string) => void>;
134
+ type: import("vue").PropType<(v: string) => void>;
135
135
  default: () => void;
136
136
  };
137
137
  placeholder: {
138
- type: import('vue').PropType<string>;
138
+ type: import("vue").PropType<string>;
139
139
  default: string;
140
140
  };
141
141
  scrollAuto: {
142
- type: import('vue').PropType<boolean>;
142
+ type: import("vue").PropType<boolean>;
143
143
  };
144
144
  autofocus: {
145
- type: import('vue').PropType<boolean>;
145
+ type: import("vue").PropType<boolean>;
146
146
  };
147
147
  disabled: {
148
- type: import('vue').PropType<boolean>;
148
+ type: import("vue").PropType<boolean>;
149
149
  };
150
150
  readonly: {
151
- type: import('vue').PropType<boolean>;
151
+ type: import("vue").PropType<boolean>;
152
152
  };
153
153
  maxlength: {
154
- type: import('vue').PropType<number>;
154
+ type: import("vue").PropType<number>;
155
155
  };
156
156
  autoDetectCode: {
157
- type: import('vue').PropType<boolean>;
157
+ type: import("vue").PropType<boolean>;
158
158
  };
159
159
  onBlur: {
160
- type: import('vue').PropType<(event: FocusEvent) => void>;
160
+ type: import("vue").PropType<(event: FocusEvent) => void>;
161
161
  default: () => void;
162
162
  };
163
163
  onFocus: {
164
- type: import('vue').PropType<(event: FocusEvent) => void>;
164
+ type: import("vue").PropType<(event: FocusEvent) => void>;
165
165
  default: () => void;
166
166
  };
167
167
  noPrettier: {
168
- type: import('vue').PropType<boolean>;
168
+ type: import("vue").PropType<boolean>;
169
169
  };
170
170
  completions: {
171
- type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
171
+ type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
172
172
  };
173
173
  catalogVisible: {
174
- type: import('vue').PropType<boolean>;
174
+ type: import("vue").PropType<boolean>;
175
175
  };
176
176
  theme: {
177
- type: import('vue').PropType<import('../../type').Themes>;
177
+ type: import("vue").PropType<import("../../type").Themes>;
178
178
  default: string;
179
179
  };
180
180
  onInput: {
181
- type: import('vue').PropType<(event: Event) => void>;
181
+ type: import("vue").PropType<(event: Event) => void>;
182
182
  };
183
183
  onDrop: {
184
- type: import('vue').PropType<(event: DragEvent) => void>;
184
+ type: import("vue").PropType<(event: DragEvent) => void>;
185
185
  default: () => void;
186
186
  };
187
187
  inputBoxWitdh: {
188
- type: import('vue').PropType<string>;
188
+ type: import("vue").PropType<string>;
189
189
  };
190
190
  onInputBoxWitdhChange: {
191
- type: import('vue').PropType<(width: string) => void>;
191
+ type: import("vue").PropType<(width: string) => void>;
192
192
  };
193
193
  transformImgUrl: {
194
- type: import('vue').PropType<(t: string) => string | Promise<string>>;
194
+ type: import("vue").PropType<(t: string) => string | Promise<string>>;
195
195
  default: (t: string) => string;
196
196
  };
197
197
  modelValue: {
198
- type: import('vue').PropType<string>;
198
+ type: import("vue").PropType<string>;
199
199
  default: string;
200
200
  };
201
201
  setting: {
202
- type: import('vue').PropType<import('../../type').SettingType>;
202
+ type: import("vue").PropType<import("../../type").SettingType>;
203
203
  default: () => {
204
204
  preview: boolean;
205
205
  };
206
206
  };
207
207
  onHtmlChanged: {
208
- type: import('vue').PropType<(h: string) => void>;
208
+ type: import("vue").PropType<(h: string) => void>;
209
209
  default: () => void;
210
210
  };
211
211
  onGetCatalog: {
212
- type: import('vue').PropType<(list: import('../../type').HeadList[]) => void>;
212
+ type: import("vue").PropType<(list: import("../../type").HeadList[]) => void>;
213
213
  default: () => void;
214
214
  };
215
215
  mdHeadingId: {
216
- type: import('vue').PropType<import('../../type').MdHeadingId>;
216
+ type: import("vue").PropType<import("../../type").MdHeadingId>;
217
217
  default: () => string;
218
218
  };
219
219
  noMermaid: {
220
- type: import('vue').PropType<boolean>;
220
+ type: import("vue").PropType<boolean>;
221
221
  default: boolean;
222
222
  };
223
223
  sanitize: {
224
- type: import('vue').PropType<(html: string) => string>;
224
+ type: import("vue").PropType<(html: string) => string>;
225
225
  default: (html: string) => string;
226
226
  };
227
227
  noKatex: {
228
- type: import('vue').PropType<boolean>;
228
+ type: import("vue").PropType<boolean>;
229
229
  default: boolean;
230
230
  };
231
231
  formatCopiedText: {
232
- type: import('vue').PropType<(text: string) => string>;
232
+ type: import("vue").PropType<(text: string) => string>;
233
233
  default: (text: string) => string;
234
234
  };
235
235
  noHighlight: {
236
- type: import('vue').PropType<boolean>;
236
+ type: import("vue").PropType<boolean>;
237
237
  default: boolean;
238
238
  };
239
239
  previewOnly: {
240
- type: import('vue').PropType<boolean>;
240
+ type: import("vue").PropType<boolean>;
241
241
  default: boolean;
242
242
  };
243
243
  noImgZoomIn: {
244
- type: import('vue').PropType<boolean>;
244
+ type: import("vue").PropType<boolean>;
245
245
  };
246
246
  sanitizeMermaid: {
247
- type: import('vue').PropType<(h: string) => Promise<string>>;
247
+ type: import("vue").PropType<(h: string) => Promise<string>>;
248
248
  };
249
249
  codeFoldable: {
250
- type: import('vue').PropType<boolean>;
250
+ type: import("vue").PropType<boolean>;
251
251
  };
252
252
  autoFoldThreshold: {
253
- type: import('vue').PropType<number>;
253
+ type: import("vue").PropType<number>;
254
254
  };
255
255
  }>>, {
256
256
  previewOnly: boolean;
257
257
  onChange: (v: string) => void;
258
258
  onHtmlChanged: (h: string) => void;
259
- onGetCatalog: (list: import('../../type').HeadList[]) => void;
259
+ onGetCatalog: (list: import("../../type").HeadList[]) => void;
260
260
  onBlur: (event: FocusEvent) => void;
261
261
  onFocus: (event: FocusEvent) => void;
262
262
  onDrop: (event: DragEvent) => void;
263
263
  placeholder: string;
264
264
  transformImgUrl: (t: string) => string | Promise<string>;
265
265
  modelValue: string;
266
- theme: import('../../type').Themes;
267
- mdHeadingId: import('../../type').MdHeadingId;
266
+ theme: import("../../type").Themes;
267
+ mdHeadingId: import("../../type").MdHeadingId;
268
268
  sanitize: (html: string) => string;
269
269
  noMermaid: boolean;
270
270
  noKatex: boolean;
271
271
  formatCopiedText: (text: string) => string;
272
272
  noHighlight: boolean;
273
- setting: import('../../type').SettingType;
273
+ setting: import("../../type").SettingType;
274
274
  updateModelValue: (v: string) => void;
275
275
  }, {}>;
276
276
  export default _default;
@@ -1,5 +1,9 @@
1
- import { default as markdownit } from 'markdown-it';
2
-
1
+ /**
2
+ * 源码来自https://github.com/docarys/markdown-it-admonition
3
+ *
4
+ * 该代码只是正对md-editor-v3系列功能做了适配
5
+ */
6
+ import markdownit from 'markdown-it';
3
7
  export interface AdmonitionPluginOps {
4
8
  marker: string;
5
9
  }
@@ -1,7 +1,14 @@
1
- import { CustomIcon, StaticTextDefaultValue } from '../../../../type';
1
+ /**
2
+ * 折叠代码源码来自:https://github.com/cncws/markdown-it-codetabs
3
+ *
4
+ * 该扩展添加了编辑器适配和折叠代码功能
5
+ *
6
+ * 源码如果在页面中存在多个编辑器,但是内容又是相同的时候,第二个开始的内容有点混乱
7
+ * 需要与编辑器的editorId绑定
8
+ */
9
+ import markdownit from 'markdown-it';
2
10
  import { ComputedRef, Ref } from 'vue';
3
- import { default as markdownit } from 'markdown-it';
4
-
11
+ import { CustomIcon, StaticTextDefaultValue } from '../../../../type';
5
12
  export interface CodeTabsPluginOps extends markdownit.Options {
6
13
  editorId: string;
7
14
  usedLanguageTextRef: Ref<StaticTextDefaultValue>;
@@ -1,7 +1,6 @@
1
- import { HeadList, MdHeadingId } from '../../../../type';
1
+ import markdownit from 'markdown-it';
2
2
  import { Ref } from 'vue';
3
- import { default as markdownit } from 'markdown-it';
4
-
3
+ import { HeadList, MdHeadingId } from '../../../../type';
5
4
  export interface HeadingPluginOps extends markdownit.Options {
6
5
  mdHeadingId: MdHeadingId;
7
6
  headsRef: Ref<HeadList[]>;
@@ -1,6 +1,10 @@
1
- import { default as markdownit } from 'markdown-it';
1
+ /**
2
+ * 源码来自https://github.com/waylonflinn/markdown-it-katex
3
+ *
4
+ * 该代码只是正对md-editor-v3系列功能做了适配
5
+ */
2
6
  import { ShallowRef } from 'vue';
3
-
7
+ import markdownit from 'markdown-it';
4
8
  declare const KatexPlugin: (md: markdownit, { katexRef }: {
5
9
  katexRef: ShallowRef;
6
10
  }) => void;
@@ -1,7 +1,6 @@
1
- import { default as markdownit } from 'markdown-it';
2
- import { Themes } from '../../../../type';
3
1
  import { ComputedRef } from 'vue';
4
-
2
+ import { Themes } from '../../../../type';
3
+ import markdownit from 'markdown-it';
5
4
  declare const MermaidPlugin: (md: markdownit, options: {
6
5
  themeRef: ComputedRef<Themes>;
7
6
  }) => void;
@@ -1,8 +1,8 @@
1
- import { default as markdownit } from 'markdown-it';
2
1
  /**
3
2
  * 重写markdown-it-xss,它的作者好像不维护了
4
3
  */
5
4
  import * as xss from 'xss';
5
+ import markdownit from 'markdown-it';
6
6
  export interface XSSPluginType {
7
7
  xss?: (_xss: typeof xss) => XSS.IFilterXSSOptions | xss.IFilterXSSOptions;
8
8
  /**
@@ -1,8 +1,7 @@
1
- import { HeadList, SettingType, MdHeadingId, Themes } from '../../type';
2
- import { LooseRequired } from '@vue/shared';
3
- import { CompletionSource } from '@codemirror/autocomplete';
4
1
  import { ExtractPropTypes, PropType } from 'vue';
5
-
2
+ import { CompletionSource } from '@codemirror/autocomplete';
3
+ import { LooseRequired } from '@vue/shared';
4
+ import { HeadList, SettingType, MdHeadingId, Themes } from '../../type';
6
5
  export declare const contentPreviewProps: {
7
6
  modelValue: {
8
7
  type: PropType<string>;
@@ -1,5 +1,4 @@
1
1
  import { FocusOption } from '../../type';
2
-
3
2
  export interface ContentExposeParam {
4
3
  /**
5
4
  * 手动聚焦
@@ -1,11 +1,10 @@
1
1
  import { PropType } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
4
3
  modelValue: {
5
4
  type: PropType<string>;
6
5
  default: string;
7
6
  };
8
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
8
  modelValue: {
10
9
  type: PropType<string>;
11
10
  default: string;
@@ -1,6 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
4
3
  scrollAuto: {
5
4
  type: PropType<boolean>;
6
5
  };
@@ -8,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
8
7
  type: PropType<(v: boolean) => void>;
9
8
  default: () => void;
10
9
  };
11
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
10
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
12
11
  scrollAuto: {
13
12
  type: PropType<boolean>;
14
13
  };
@@ -1,7 +1,6 @@
1
- import { Footers } from '../../type';
2
1
  import { PropType, VNode, ExtractPropTypes } from 'vue';
3
-
4
- declare const _default: import('vue').DefineComponent<{
2
+ import { Footers } from '../../type';
3
+ declare const _default: import("vue").DefineComponent<{
5
4
  modelValue: {
6
5
  type: PropType<string>;
7
6
  default: string;
@@ -18,11 +17,11 @@ declare const _default: import('vue').DefineComponent<{
18
17
  default: () => void;
19
18
  };
20
19
  defFooters: {
21
- type: PropType<VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
+ type: PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
21
  [key: string]: any;
23
22
  }>>;
24
23
  };
25
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
24
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
26
25
  modelValue: {
27
26
  type: PropType<string>;
28
27
  default: string;
@@ -39,7 +38,7 @@ declare const _default: import('vue').DefineComponent<{
39
38
  default: () => void;
40
39
  };
41
40
  defFooters: {
42
- type: PropType<VNode<import('vue').RendererNode, import('vue').RendererElement, {
41
+ type: PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
42
  [key: string]: any;
44
43
  }>>;
45
44
  };
@@ -1,6 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
4
3
  visible: {
5
4
  type: PropType<boolean>;
6
5
  default: boolean;
@@ -13,7 +12,7 @@ declare const _default: import('vue').DefineComponent<{
13
12
  type: PropType<(data?: any) => void>;
14
13
  default: () => void;
15
14
  };
16
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
15
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
17
16
  visible: {
18
17
  type: PropType<boolean>;
19
18
  default: boolean;
@@ -1,6 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
4
3
  type: {
5
4
  type: PropType<"link" | "image" | "help">;
6
5
  default: string;
@@ -17,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
17
16
  type: PropType<(data?: any) => void>;
18
17
  default: () => void;
19
18
  };
20
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
19
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
21
20
  type: {
22
21
  type: PropType<"link" | "image" | "help">;
23
22
  default: string;
@@ -1,6 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
4
3
  type: {
5
4
  type: PropType<"link" | "image" | "help">;
6
5
  default: string;
@@ -21,7 +20,7 @@ declare const _default: import('vue').DefineComponent<{
21
20
  type: PropType<(data?: any) => void>;
22
21
  default: () => void;
23
22
  };
24
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
23
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
25
24
  type: {
26
25
  type: PropType<"link" | "image" | "help">;
27
26
  default: string;
@@ -1,10 +1,9 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
-
3
2
  interface HoverData {
4
3
  x: number;
5
4
  y: number;
6
5
  }
7
- declare const TableShape: import('vue').DefineComponent<{
6
+ declare const TableShape: import("vue").DefineComponent<{
8
7
  tableShape: {
9
8
  type: PropType<number[]>;
10
9
  default: () => number[];
@@ -13,7 +12,7 @@ declare const TableShape: import('vue').DefineComponent<{
13
12
  type: PropType<(data: HoverData) => void>;
14
13
  default: () => void;
15
14
  };
16
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
15
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
17
16
  tableShape: {
18
17
  type: PropType<number[]>;
19
18
  default: () => number[];
@@ -1,5 +1,4 @@
1
1
  import { ToolbarProps } from './props';
2
-
3
2
  export declare const useSreenfull: (props: ToolbarProps) => {
4
3
  fullscreenHandler: (status?: boolean) => void;
5
4
  };