md-editor-v3 2.9.3 → 2.10.0-beta.1

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.
@@ -166,7 +166,7 @@ declare const Editor: import("vue").DefineComponent<{
166
166
  onFocus: {
167
167
  type: import("vue").PropType<(event: FocusEvent) => void>;
168
168
  };
169
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "onBlur" | "onFocus" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
169
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "onBlur" | "onFocus" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
170
170
  modelValue: {
171
171
  type: import("vue").PropType<string>;
172
172
  default: string;
@@ -334,7 +334,17 @@ declare const Editor: import("vue").DefineComponent<{
334
334
  onFocus: {
335
335
  type: import("vue").PropType<(event: FocusEvent) => void>;
336
336
  };
337
- }>>, {
337
+ }>> & {
338
+ onOnChange?: ((...args: any[]) => any) | undefined;
339
+ onOnSave?: ((...args: any[]) => any) | undefined;
340
+ onOnUploadImg?: ((...args: any[]) => any) | undefined;
341
+ onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
342
+ onOnGetCatalog?: ((...args: any[]) => any) | undefined;
343
+ onOnError?: ((...args: any[]) => any) | undefined;
344
+ onOnBlur?: ((...args: any[]) => any) | undefined;
345
+ onOnFocus?: ((...args: any[]) => any) | undefined;
346
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
347
+ }, {
338
348
  pageFullscreen: boolean;
339
349
  preview: boolean;
340
350
  htmlPreview: boolean;
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
16
16
  overlay: {
17
17
  type: PropType<string | JSX.Element>;
18
18
  };
19
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
20
20
  title: {
21
21
  type: PropType<string>;
22
22
  default: string;
@@ -33,7 +33,9 @@ declare const _default: import("vue").DefineComponent<{
33
33
  overlay: {
34
34
  type: PropType<string | JSX.Element>;
35
35
  };
36
- }>>, {
36
+ }>> & {
37
+ onOnChange?: ((...args: any[]) => any) | undefined;
38
+ }, {
37
39
  title: string;
38
40
  }>;
39
41
  export default _default;
@@ -24,7 +24,7 @@ declare const catalogLinkProps: () => {
24
24
  default: number;
25
25
  };
26
26
  };
27
- export declare type CatalogLinkProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<ReturnType<typeof catalogLinkProps>>>>>;
27
+ export type CatalogLinkProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<ReturnType<typeof catalogLinkProps>>>>>;
28
28
  declare const CatalogLink: import("vue").DefineComponent<{
29
29
  tocItem: {
30
30
  type: PropType<TocItem>;
@@ -46,7 +46,7 @@ declare const CatalogLink: import("vue").DefineComponent<{
46
46
  type: PropType<number>;
47
47
  default: number;
48
48
  };
49
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
49
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
50
50
  tocItem: {
51
51
  type: PropType<TocItem>;
52
52
  default: () => {};
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{
42
42
  onAdjust: {
43
43
  type: PropType<(val: boolean) => void>;
44
44
  };
45
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "onClick" | "onClose" | "onAdjust", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
45
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onClose" | "onAdjust")[], "onClick" | "onClose" | "onAdjust", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
46
46
  title: {
47
47
  type: PropType<string>;
48
48
  default: string;
@@ -85,7 +85,11 @@ declare const _default: import("vue").DefineComponent<{
85
85
  onAdjust: {
86
86
  type: PropType<(val: boolean) => void>;
87
87
  };
88
- }>>, {
88
+ }>> & {
89
+ onOnClick?: ((...args: any[]) => any) | undefined;
90
+ onOnClose?: ((...args: any[]) => any) | undefined;
91
+ onOnAdjust?: ((...args: any[]) => any) | undefined;
92
+ }, {
89
93
  title: string;
90
94
  modalTitle: string;
91
95
  width: string;
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
10
10
  onClick: {
11
11
  type: PropType<(e: MouseEvent) => void>;
12
12
  };
13
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "onClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
13
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
14
14
  title: {
15
15
  type: PropType<string>;
16
16
  default: string;
@@ -21,7 +21,9 @@ declare const _default: import("vue").DefineComponent<{
21
21
  onClick: {
22
22
  type: PropType<(e: MouseEvent) => void>;
23
23
  };
24
- }>>, {
24
+ }>> & {
25
+ onOnClick?: ((...args: any[]) => any) | undefined;
26
+ }, {
25
27
  title: string;
26
28
  }>;
27
29
  export default _default;
@@ -206,7 +206,17 @@ declare const _default: {
206
206
  onFocus: {
207
207
  type: import("vue").PropType<(event: FocusEvent) => void>;
208
208
  };
209
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "pageFullscreen" | "preview" | "htmlPreview" | "modelValue" | "theme" | "class" | "historyLength" | "previewOnly" | "language" | "toolbars" | "toolbarsExclude" | "noPrettier" | "editorId" | "tabWidth" | "showCodeRowNumber" | "previewTheme" | "style" | "markedHeadingId" | "tableShape" | "noMermaid" | "sanitize" | "placeholder" | "noKatex" | "codeTheme" | "footers" | "scrollAuto" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList">;
209
+ }>> & {
210
+ onOnChange?: ((...args: any[]) => any) | undefined;
211
+ onOnSave?: ((...args: any[]) => any) | undefined;
212
+ onOnUploadImg?: ((...args: any[]) => any) | undefined;
213
+ onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
214
+ onOnGetCatalog?: ((...args: any[]) => any) | undefined;
215
+ onOnError?: ((...args: any[]) => any) | undefined;
216
+ onOnBlur?: ((...args: any[]) => any) | undefined;
217
+ onOnFocus?: ((...args: any[]) => any) | undefined;
218
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
219
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "pageFullscreen" | "preview" | "htmlPreview" | "modelValue" | "theme" | "class" | "historyLength" | "previewOnly" | "language" | "toolbars" | "toolbarsExclude" | "noPrettier" | "editorId" | "tabWidth" | "showCodeRowNumber" | "previewTheme" | "style" | "markedHeadingId" | "tableShape" | "noMermaid" | "sanitize" | "placeholder" | "noKatex" | "codeTheme" | "footers" | "scrollAuto" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList">;
210
220
  $attrs: {
211
221
  [x: string]: unknown;
212
222
  };
@@ -216,9 +226,9 @@ declare const _default: {
216
226
  $slots: Readonly<{
217
227
  [name: string]: import("vue").Slot | undefined;
218
228
  }>;
219
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
220
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
221
- $emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
229
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
230
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
231
+ $emit: (event: "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "onBlur" | "onFocus" | "update:modelValue", ...args: any[]) => void;
222
232
  $el: any;
223
233
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
224
234
  modelValue: {
@@ -388,7 +398,17 @@ declare const _default: {
388
398
  onFocus: {
389
399
  type: import("vue").PropType<(event: FocusEvent) => void>;
390
400
  };
391
- }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
401
+ }>> & {
402
+ onOnChange?: ((...args: any[]) => any) | undefined;
403
+ onOnSave?: ((...args: any[]) => any) | undefined;
404
+ onOnUploadImg?: ((...args: any[]) => any) | undefined;
405
+ onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
406
+ onOnGetCatalog?: ((...args: any[]) => any) | undefined;
407
+ onOnError?: ((...args: any[]) => any) | undefined;
408
+ onOnBlur?: ((...args: any[]) => any) | undefined;
409
+ onOnFocus?: ((...args: any[]) => any) | undefined;
410
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
411
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, string, {
392
412
  pageFullscreen: boolean;
393
413
  preview: boolean;
394
414
  htmlPreview: boolean;
@@ -418,7 +438,7 @@ declare const _default: {
418
438
  formatCopiedText: (text: string) => string;
419
439
  codeStyleReverse: boolean;
420
440
  codeStyleReverseList: string[];
421
- }> & {
441
+ }, {}, string> & {
422
442
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
423
443
  created?: ((() => void) | (() => void)[]) | undefined;
424
444
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -433,11 +453,11 @@ declare const _default: {
433
453
  unmounted?: ((() => void) | (() => void)[]) | undefined;
434
454
  renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
435
455
  renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
436
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
456
+ 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;
437
457
  };
438
458
  $forceUpdate: () => void;
439
459
  $nextTick: typeof import("vue").nextTick;
440
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
460
+ $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;
441
461
  } & Readonly<import("vue").ExtractPropTypes<{
442
462
  modelValue: {
443
463
  type: import("vue").PropType<string>;
@@ -606,7 +626,17 @@ declare const _default: {
606
626
  onFocus: {
607
627
  type: import("vue").PropType<(event: FocusEvent) => void>;
608
628
  };
609
- }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
629
+ }>> & {
630
+ onOnChange?: ((...args: any[]) => any) | undefined;
631
+ onOnSave?: ((...args: any[]) => any) | undefined;
632
+ onOnUploadImg?: ((...args: any[]) => any) | undefined;
633
+ onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
634
+ onOnGetCatalog?: ((...args: any[]) => any) | undefined;
635
+ onOnError?: ((...args: any[]) => any) | undefined;
636
+ onOnBlur?: ((...args: any[]) => any) | undefined;
637
+ onOnFocus?: ((...args: any[]) => any) | undefined;
638
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
639
+ } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
610
640
  __isFragment?: undefined;
611
641
  __isTeleport?: undefined;
612
642
  __isSuspense?: undefined;
@@ -778,7 +808,17 @@ declare const _default: {
778
808
  onFocus: {
779
809
  type: import("vue").PropType<(event: FocusEvent) => void>;
780
810
  };
781
- }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "onBlur" | "onFocus" | "update:modelValue", {
811
+ }>> & {
812
+ onOnChange?: ((...args: any[]) => any) | undefined;
813
+ onOnSave?: ((...args: any[]) => any) | undefined;
814
+ onOnUploadImg?: ((...args: any[]) => any) | undefined;
815
+ onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
816
+ onOnGetCatalog?: ((...args: any[]) => any) | undefined;
817
+ onOnError?: ((...args: any[]) => any) | undefined;
818
+ onOnBlur?: ((...args: any[]) => any) | undefined;
819
+ onOnFocus?: ((...args: any[]) => any) | undefined;
820
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
821
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "onBlur" | "onFocus" | "update:modelValue", {
782
822
  pageFullscreen: boolean;
783
823
  preview: boolean;
784
824
  htmlPreview: boolean;
@@ -808,7 +848,7 @@ declare const _default: {
808
848
  formatCopiedText: (text: string) => string;
809
849
  codeStyleReverse: boolean;
810
850
  codeStyleReverseList: string[];
811
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
851
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
812
852
  /**
813
853
  * 默认工具栏组件
814
854
  */
@@ -1,4 +1,7 @@
1
1
  import { marked, Renderer, Slugger } from 'marked';
2
+ import { LooseRequired } from '@vue/shared';
3
+ import { ExtractPropTypes, SetupContext } from 'vue';
4
+ import { editorProps } from './props';
2
5
  declare global {
3
6
  interface Window {
4
7
  hljs: any;
@@ -98,28 +101,28 @@ export interface StaticTextDefault {
98
101
  'zh-CN': StaticTextDefaultValue;
99
102
  'en-US': StaticTextDefaultValue;
100
103
  }
101
- export declare type StaticTextDefaultKey = keyof StaticTextDefault;
102
- export declare type ToolbarNames = keyof ToolbarTips | number;
103
- export declare type Footers = '=' | 'markdownTotal' | 'scrollSwitch' | number;
104
+ export type StaticTextDefaultKey = keyof StaticTextDefault;
105
+ export type ToolbarNames = keyof ToolbarTips | number;
106
+ export type Footers = '=' | 'markdownTotal' | 'scrollSwitch' | number;
104
107
  export interface SettingType {
105
108
  pageFullscreen: boolean;
106
109
  fullscreen: boolean;
107
110
  preview: boolean;
108
111
  htmlPreview: boolean;
109
112
  }
110
- export declare type Themes = 'light' | 'dark';
113
+ export type Themes = 'light' | 'dark';
111
114
  /**
112
115
  * 预览主题
113
116
  *
114
117
  * @list ['default', 'github', 'vuepress', 'mk-cute', 'smart-blue', 'cyanosis']
115
118
  */
116
- export declare type PreviewThemes = string;
119
+ export type PreviewThemes = string;
117
120
  export interface HeadList {
118
121
  text: string;
119
122
  level: 1 | 2 | 3 | 4 | 5 | 6;
120
123
  active?: boolean;
121
124
  }
122
- export declare type MarkedHeadingId = (text: string, level: number, index: number) => string;
125
+ export type MarkedHeadingId = (text: string, level: number, index: number) => string;
123
126
  export interface MermaidTemplate {
124
127
  /**
125
128
  * 流程图
@@ -154,7 +157,7 @@ export interface MermaidTemplate {
154
157
  */
155
158
  journey?: string;
156
159
  }
157
- export declare type RewriteHeading = (text: string, level: 1 | 2 | 3 | 4 | 5 | 6, raw: string, slugger: Slugger, index: number, headingId: string) => string;
160
+ export type RewriteHeading = (text: string, level: 1 | 2 | 3 | 4 | 5 | 6, raw: string, slugger: Slugger, index: number, headingId: string) => string;
158
161
  export interface RewriteRenderer extends Omit<Renderer, 'heading'> {
159
162
  heading: RewriteHeading;
160
163
  }
@@ -229,7 +232,7 @@ export interface ConfigOption {
229
232
  /**
230
233
  * 扩展编辑器内部功能,包括marked和一些内部依赖实例,如highlight、cropper等
231
234
  */
232
- export declare type Config = (options: ConfigOption) => void;
235
+ export type Config = (options: ConfigOption) => void;
233
236
  /**
234
237
  * 编辑器操作潜在的错误
235
238
  */
@@ -243,13 +246,13 @@ export interface CodeCss {
243
246
  dark: string;
244
247
  };
245
248
  }
246
- export declare type UpdateSetting = (k: keyof SettingType, v?: boolean) => void;
247
- export declare type ChangeEvent = (v: string) => void;
248
- export declare type SaveEvent = (v: string, h: Promise<string>) => void;
249
- export declare type UploadImgEvent = (files: Array<File>, callBack: (urls: string[]) => void) => void;
250
- export declare type HtmlChangedEvent = (h: string) => void;
251
- export declare type GetCatalogEvent = (list: HeadList[]) => void;
252
- export declare type ErrorEvent = (err: InnerError) => void;
249
+ export type UpdateSetting = (k: keyof SettingType, v?: boolean) => void;
250
+ export type ChangeEvent = (v: string) => void;
251
+ export type SaveEvent = (v: string, h: Promise<string>) => void;
252
+ export type UploadImgEvent = (files: Array<File>, callBack: (urls: string[]) => void) => void;
253
+ export type HtmlChangedEvent = (h: string) => void;
254
+ export type GetCatalogEvent = (list: HeadList[]) => void;
255
+ export type ErrorEvent = (err: InnerError) => void;
253
256
  export interface ExposeEvent {
254
257
  pageFullscreen(status: boolean): void;
255
258
  fullscreen(status: boolean): void;
@@ -263,7 +266,7 @@ export interface InsertParam {
263
266
  deviationStart: number;
264
267
  deviationEnd: number;
265
268
  }
266
- export declare type InsertContentGenerator = (selectedText: string) => InsertParam;
269
+ export type InsertContentGenerator = (selectedText: string) => InsertParam;
267
270
  export interface ExposeParam {
268
271
  /**
269
272
  * 添加事件监听
@@ -326,3 +329,6 @@ export interface ExposeParam {
326
329
  */
327
330
  focus(): void;
328
331
  }
332
+ export type EditorProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof editorProps>>>>;
333
+ export type EditorEmits = Array<'onChange' | 'onSave' | 'onUploadImg' | 'onHtmlChanged' | 'onGetCatalog' | 'onError' | 'update:modelValue' | 'onBlur' | 'onFocus'>;
334
+ export type EditorContext = SetupContext<EditorEmits>;