md-editor-v3 4.13.2 → 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.
Files changed (51) hide show
  1. package/lib/cjs/MdEditor.cjs +17 -4
  2. package/lib/cjs/chunks/index2.cjs +10 -2
  3. package/lib/es/MdEditor.mjs +17 -4
  4. package/lib/es/chunks/index2.mjs +10 -2
  5. package/lib/preview.css +1 -1
  6. package/lib/style.css +1 -1
  7. package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +17 -9
  8. package/lib/types/DropdownToolbar/index.d.ts +112 -126
  9. package/lib/types/MdCatalog/CatalogLink.d.ts +2 -2
  10. package/lib/types/MdCatalog/MdCatalog.d.ts +2 -2
  11. package/lib/types/MdCatalog/index.d.ts +114 -144
  12. package/lib/types/MdEditor/Editor.d.ts +129 -121
  13. package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -2
  14. package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
  15. package/lib/types/MdEditor/components/Dropdown/index.d.ts +13 -7
  16. package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -2
  17. package/lib/types/MdEditor/components/Icon/index.d.ts +4 -2
  18. package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -2
  19. package/lib/types/MdEditor/components/Modal/index.d.ts +133 -163
  20. package/lib/types/MdEditor/components/Popper/index.d.ts +2 -2
  21. package/lib/types/MdEditor/index.d.ts +643 -657
  22. package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +31 -31
  23. package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -1
  24. package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -1
  25. package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +1 -1
  26. package/lib/types/MdEditor/layouts/Content/index.d.ts +72 -72
  27. package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +2 -0
  28. package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +1 -1
  29. package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +1 -1
  30. package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +1 -0
  31. package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +1 -0
  32. package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -2
  33. package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -2
  34. package/lib/types/MdEditor/layouts/Footer/index.d.ts +4 -4
  35. package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -2
  36. package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -2
  37. package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -2
  38. package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -2
  39. package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +24 -24
  40. package/lib/types/MdEditor/props.d.ts +7 -3
  41. package/lib/types/MdEditor/type.d.ts +3 -3
  42. package/lib/types/MdEditor/utils/dom.d.ts +1 -1
  43. package/lib/types/MdEditor/utils/vue-tsx.d.ts +2 -11
  44. package/lib/types/MdPreview/MdPreview.d.ts +52 -52
  45. package/lib/types/MdPreview/index.d.ts +310 -340
  46. package/lib/types/ModalToolbar/ModalToolbar.d.ts +9 -5
  47. package/lib/types/ModalToolbar/index.d.ts +168 -190
  48. package/lib/types/NormalToolbar/NormalToolbar.d.ts +9 -5
  49. package/lib/types/NormalToolbar/index.d.ts +80 -102
  50. package/lib/umd/index.js +48 -42
  51. package/package.json +18 -18
@@ -6,12 +6,14 @@ declare const _default: import('vue').DefineComponent<{
6
6
  type: PropType<IconName>;
7
7
  default: string;
8
8
  };
9
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
12
  name: {
11
13
  type: PropType<IconName>;
12
14
  default: string;
13
15
  };
14
16
  }>>, {
15
17
  name: IconName;
16
- }>;
18
+ }, {}>;
17
19
  export default _default;
@@ -39,7 +39,7 @@ declare const _default: import('vue').DefineComponent<{
39
39
  type: PropType<CSSProperties>;
40
40
  default: () => {};
41
41
  };
42
- }, () => "" | JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
42
+ }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "onClose"[], "onClose", import('vue').PublicProps, Readonly<ExtractPropTypes<{
43
43
  title: {
44
44
  type: PropType<string>;
45
45
  default: string;
@@ -89,5 +89,5 @@ declare const _default: import('vue').DefineComponent<{
89
89
  showAdjust: boolean;
90
90
  isFullscreen: boolean;
91
91
  onAdjust: (val: boolean) => void;
92
- }>;
92
+ }, {}>;
93
93
  export default _default;
@@ -1,239 +1,209 @@
1
1
  import { App } from 'vue';
2
2
 
3
3
  declare const _default: {
4
- new (...args: any[]): {
5
- $: import('vue').ComponentInternalInstance;
6
- $data: {};
7
- $props: Partial<{
8
- title: string;
9
- style: import('vue').CSSProperties;
10
- visible: boolean;
11
- height: string;
12
- width: string;
13
- showAdjust: boolean;
14
- isFullscreen: boolean;
15
- onAdjust: (val: boolean) => void;
16
- }> & Omit<Readonly<import('vue').ExtractPropTypes<{
17
- title: {
18
- type: import("vue").PropType<string>;
19
- default: string;
20
- };
21
- visible: {
22
- type: import("vue").PropType<boolean>;
23
- default: boolean;
24
- };
25
- width: {
26
- type: import("vue").PropType<string>;
27
- default: string;
28
- };
29
- height: {
30
- type: import("vue").PropType<string>;
31
- default: string;
32
- };
33
- onClose: {
34
- type: import("vue").PropType<() => void>;
35
- };
36
- showAdjust: {
37
- type: import("vue").PropType<boolean>;
38
- default: boolean;
39
- };
40
- isFullscreen: {
41
- type: import("vue").PropType<boolean>;
42
- default: boolean;
43
- };
44
- onAdjust: {
45
- type: import("vue").PropType<(val: boolean) => void>;
46
- default: () => void;
47
- };
48
- class: {
49
- type: import("vue").PropType<string>;
50
- };
51
- style: {
52
- type: import("vue").PropType<import("vue").CSSProperties>;
53
- default: () => {};
54
- };
55
- }>> & {
56
- onOnClose?: ((...args: any[]) => any) | undefined;
57
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "style" | "visible" | "height" | "width" | "showAdjust" | "isFullscreen" | "onAdjust">;
58
- $attrs: {
59
- [x: string]: unknown;
60
- };
61
- $refs: {
62
- [x: string]: unknown;
63
- };
64
- $slots: Readonly<{
65
- [name: string]: import('vue').Slot | undefined;
66
- }>;
67
- $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
68
- $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
69
- $emit: (event: "onClose", ...args: any[]) => void;
70
- $el: any;
71
- $options: import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
72
- title: {
73
- type: import("vue").PropType<string>;
74
- default: string;
75
- };
76
- visible: {
77
- type: import("vue").PropType<boolean>;
78
- default: boolean;
79
- };
80
- width: {
81
- type: import("vue").PropType<string>;
82
- default: string;
83
- };
84
- height: {
85
- type: import("vue").PropType<string>;
86
- default: string;
87
- };
88
- onClose: {
89
- type: import("vue").PropType<() => void>;
90
- };
91
- showAdjust: {
92
- type: import("vue").PropType<boolean>;
93
- default: boolean;
94
- };
95
- isFullscreen: {
96
- type: import("vue").PropType<boolean>;
97
- default: boolean;
98
- };
99
- onAdjust: {
100
- type: import("vue").PropType<(val: boolean) => void>;
101
- default: () => void;
102
- };
103
- class: {
104
- type: import("vue").PropType<string>;
105
- };
106
- style: {
107
- type: import("vue").PropType<import("vue").CSSProperties>;
108
- default: () => {};
109
- };
110
- }>> & {
111
- onOnClose?: ((...args: any[]) => any) | undefined;
112
- }, () => "" | JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], string, {
113
- title: string;
114
- style: import("vue").CSSProperties;
115
- visible: boolean;
116
- height: string;
117
- width: string;
118
- showAdjust: boolean;
119
- isFullscreen: boolean;
120
- onAdjust: (val: boolean) => void;
121
- }, {}, string> & {
122
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
123
- created?: ((() => void) | (() => void)[]) | undefined;
124
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
125
- mounted?: ((() => void) | (() => void)[]) | undefined;
126
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
127
- updated?: ((() => void) | (() => void)[]) | undefined;
128
- activated?: ((() => void) | (() => void)[]) | undefined;
129
- deactivated?: ((() => void) | (() => void)[]) | undefined;
130
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
131
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
132
- destroyed?: ((() => void) | (() => void)[]) | undefined;
133
- unmounted?: ((() => void) | (() => void)[]) | undefined;
134
- renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
135
- renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
136
- errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
137
- };
138
- $forceUpdate: () => void;
139
- $nextTick: typeof import('vue').nextTick;
140
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
141
- } & Readonly<import('vue').ExtractPropTypes<{
4
+ new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
142
5
  title: {
143
- type: import("vue").PropType<string>;
6
+ type: import('vue').PropType<string>;
144
7
  default: string;
145
8
  };
146
9
  visible: {
147
- type: import("vue").PropType<boolean>;
10
+ type: import('vue').PropType<boolean>;
148
11
  default: boolean;
149
12
  };
150
13
  width: {
151
- type: import("vue").PropType<string>;
14
+ type: import('vue').PropType<string>;
152
15
  default: string;
153
16
  };
154
17
  height: {
155
- type: import("vue").PropType<string>;
18
+ type: import('vue').PropType<string>;
156
19
  default: string;
157
20
  };
158
21
  onClose: {
159
- type: import("vue").PropType<() => void>;
22
+ type: import('vue').PropType<() => void>;
160
23
  };
161
24
  showAdjust: {
162
- type: import("vue").PropType<boolean>;
25
+ type: import('vue').PropType<boolean>;
163
26
  default: boolean;
164
27
  };
165
28
  isFullscreen: {
166
- type: import("vue").PropType<boolean>;
29
+ type: import('vue').PropType<boolean>;
167
30
  default: boolean;
168
31
  };
169
32
  onAdjust: {
170
- type: import("vue").PropType<(val: boolean) => void>;
33
+ type: import('vue').PropType<(val: boolean) => void>;
171
34
  default: () => void;
172
35
  };
173
36
  class: {
174
- type: import("vue").PropType<string>;
37
+ type: import('vue').PropType<string>;
175
38
  };
176
39
  style: {
177
- type: import("vue").PropType<import("vue").CSSProperties>;
40
+ type: import('vue').PropType<import('vue').CSSProperties>;
178
41
  default: () => {};
179
42
  };
180
43
  }>> & {
181
44
  onOnClose?: ((...args: any[]) => any) | undefined;
182
- } & import('vue').ShallowUnwrapRef<() => "" | JSX.Element> & {} & import('vue').ComponentCustomProperties & {};
45
+ }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "onClose"[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
46
+ title: {
47
+ type: import('vue').PropType<string>;
48
+ default: string;
49
+ };
50
+ visible: {
51
+ type: import('vue').PropType<boolean>;
52
+ default: boolean;
53
+ };
54
+ width: {
55
+ type: import('vue').PropType<string>;
56
+ default: string;
57
+ };
58
+ height: {
59
+ type: import('vue').PropType<string>;
60
+ default: string;
61
+ };
62
+ onClose: {
63
+ type: import('vue').PropType<() => void>;
64
+ };
65
+ showAdjust: {
66
+ type: import('vue').PropType<boolean>;
67
+ default: boolean;
68
+ };
69
+ isFullscreen: {
70
+ type: import('vue').PropType<boolean>;
71
+ default: boolean;
72
+ };
73
+ onAdjust: {
74
+ type: import('vue').PropType<(val: boolean) => void>;
75
+ default: () => void;
76
+ };
77
+ class: {
78
+ type: import('vue').PropType<string>;
79
+ };
80
+ style: {
81
+ type: import('vue').PropType<import('vue').CSSProperties>;
82
+ default: () => {};
83
+ };
84
+ }>> & {
85
+ onOnClose?: ((...args: any[]) => any) | undefined;
86
+ }, {
87
+ title: string;
88
+ style: import('vue').CSSProperties;
89
+ visible: boolean;
90
+ height: string;
91
+ width: string;
92
+ showAdjust: boolean;
93
+ isFullscreen: boolean;
94
+ onAdjust: (val: boolean) => void;
95
+ }, true, {}, {}, {
96
+ P: {};
97
+ B: {};
98
+ D: {};
99
+ C: {};
100
+ M: {};
101
+ Defaults: {};
102
+ }, Readonly<import('vue').ExtractPropTypes<{
103
+ title: {
104
+ type: import('vue').PropType<string>;
105
+ default: string;
106
+ };
107
+ visible: {
108
+ type: import('vue').PropType<boolean>;
109
+ default: boolean;
110
+ };
111
+ width: {
112
+ type: import('vue').PropType<string>;
113
+ default: string;
114
+ };
115
+ height: {
116
+ type: import('vue').PropType<string>;
117
+ default: string;
118
+ };
119
+ onClose: {
120
+ type: import('vue').PropType<() => void>;
121
+ };
122
+ showAdjust: {
123
+ type: import('vue').PropType<boolean>;
124
+ default: boolean;
125
+ };
126
+ isFullscreen: {
127
+ type: import('vue').PropType<boolean>;
128
+ default: boolean;
129
+ };
130
+ onAdjust: {
131
+ type: import('vue').PropType<(val: boolean) => void>;
132
+ default: () => void;
133
+ };
134
+ class: {
135
+ type: import('vue').PropType<string>;
136
+ };
137
+ style: {
138
+ type: import('vue').PropType<import('vue').CSSProperties>;
139
+ default: () => {};
140
+ };
141
+ }>> & {
142
+ onOnClose?: ((...args: any[]) => any) | undefined;
143
+ }, () => "" | import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
144
+ title: string;
145
+ style: import('vue').CSSProperties;
146
+ visible: boolean;
147
+ height: string;
148
+ width: string;
149
+ showAdjust: boolean;
150
+ isFullscreen: boolean;
151
+ onAdjust: (val: boolean) => void;
152
+ }>;
183
153
  __isFragment?: undefined;
184
154
  __isTeleport?: undefined;
185
155
  __isSuspense?: undefined;
186
- } & import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
156
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
187
157
  title: {
188
- type: import("vue").PropType<string>;
158
+ type: import('vue').PropType<string>;
189
159
  default: string;
190
160
  };
191
161
  visible: {
192
- type: import("vue").PropType<boolean>;
162
+ type: import('vue').PropType<boolean>;
193
163
  default: boolean;
194
164
  };
195
165
  width: {
196
- type: import("vue").PropType<string>;
166
+ type: import('vue').PropType<string>;
197
167
  default: string;
198
168
  };
199
169
  height: {
200
- type: import("vue").PropType<string>;
170
+ type: import('vue').PropType<string>;
201
171
  default: string;
202
172
  };
203
173
  onClose: {
204
- type: import("vue").PropType<() => void>;
174
+ type: import('vue').PropType<() => void>;
205
175
  };
206
176
  showAdjust: {
207
- type: import("vue").PropType<boolean>;
177
+ type: import('vue').PropType<boolean>;
208
178
  default: boolean;
209
179
  };
210
180
  isFullscreen: {
211
- type: import("vue").PropType<boolean>;
181
+ type: import('vue').PropType<boolean>;
212
182
  default: boolean;
213
183
  };
214
184
  onAdjust: {
215
- type: import("vue").PropType<(val: boolean) => void>;
185
+ type: import('vue').PropType<(val: boolean) => void>;
216
186
  default: () => void;
217
187
  };
218
188
  class: {
219
- type: import("vue").PropType<string>;
189
+ type: import('vue').PropType<string>;
220
190
  };
221
191
  style: {
222
- type: import("vue").PropType<import("vue").CSSProperties>;
192
+ type: import('vue').PropType<import('vue').CSSProperties>;
223
193
  default: () => {};
224
194
  };
225
195
  }>> & {
226
196
  onOnClose?: ((...args: any[]) => any) | undefined;
227
- }, () => "" | JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", {
197
+ }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "onClose"[], "onClose", {
228
198
  title: string;
229
- style: import("vue").CSSProperties;
199
+ style: import('vue').CSSProperties;
230
200
  visible: boolean;
231
201
  height: string;
232
202
  width: string;
233
203
  showAdjust: boolean;
234
204
  isFullscreen: boolean;
235
205
  onAdjust: (val: boolean) => void;
236
- }, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
206
+ }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
237
207
  install: (app: App) => App;
238
208
  };
239
209
  export default _default;
@@ -5,12 +5,12 @@ declare const Popper: import('vue').DefineComponent<{
5
5
  type: PropType<string>;
6
6
  default: string;
7
7
  };
8
- }, () => any[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ }, () => any[], unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
9
  title: {
10
10
  type: PropType<string>;
11
11
  default: string;
12
12
  };
13
13
  }>>, {
14
14
  title: string;
15
- }>;
15
+ }, {}>;
16
16
  export default Popper;