@itshixun/qckeditor-vue3 1.1.3 → 1.1.5

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/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  export { default as CKEditor } from './src/components/CKEditor.vue';
2
2
  export { default as QCKClassic } from './src/components/QCKClassic.vue';
3
+ export { default as QCKEditor } from './src/components/QCKEditor.vue';
3
4
  export { default as QCKEditorPro } from './src/components/QCKEditorPro.vue';
4
5
  export { default as QCKContent } from './src/components/QCKContent.vue';
5
6
  export { default as QCKImageViewer } from './src/components/QCKImageViewer.vue';
6
- export type { Props, ExtractEditorType, QCKImagePreviewOptions } from './src/types';
7
+ export type { Props, ExtractEditorType, QCKImagePreviewOptions, QEditorType, QEditorInstance } from './src/types';
7
8
  export { createXHRUploadAdapter, createMockUploadAdapter, createAsyncUploadAdapter } from './src/utils/uploadAdapter';
8
9
  export type { UploadAdapterOptions } from './src/utils/uploadAdapter';
9
10
  declare const _default: {
@@ -40,9 +41,10 @@ declare const _default: {
40
41
  }>) => import('vue').VNode & {
41
42
  __ctx?: Awaited<typeof __VLS_setup>;
42
43
  };
43
- QCKClassic: import('vue').DefineComponent<{
44
+ QCKEditor: import('vue').DefineComponent<{
44
45
  modelValue?: string;
45
46
  } & {
47
+ type?: import('.').QEditorType;
46
48
  config?: import('ckeditor5').EditorConfig;
47
49
  tagName?: string;
48
50
  disabled?: boolean;
@@ -50,12 +52,62 @@ declare const _default: {
50
52
  dataNormalizer?: (data: string) => string;
51
53
  }, {
52
54
  ckeditorRef: import('vue').Ref<{
53
- instance: import('ckeditor5').ClassicEditor | undefined;
55
+ instance: import('.').QEditorInstance | undefined;
54
56
  lastEditorData: string | undefined;
55
57
  } | null, {
56
- instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined>;
58
+ instance: import('vue').Ref<import('.').QEditorInstance | undefined>;
57
59
  lastEditorData: import('vue').Ref<string | undefined>;
58
60
  } | {
61
+ instance: import('.').QEditorInstance | undefined;
62
+ lastEditorData: string | undefined;
63
+ } | null>;
64
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
65
+ blur: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
66
+ focus: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
67
+ input: (data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
68
+ "update:modelValue": (value: string) => any;
69
+ ready: (editor: import('.').QEditorInstance) => any;
70
+ destroy: () => any;
71
+ }, string, import('vue').PublicProps, Readonly<{
72
+ modelValue?: string;
73
+ } & {
74
+ type?: import('.').QEditorType;
75
+ config?: import('ckeditor5').EditorConfig;
76
+ tagName?: string;
77
+ disabled?: boolean;
78
+ disableTwoWayDataBinding?: boolean;
79
+ dataNormalizer?: (data: string) => string;
80
+ }> & Readonly<{
81
+ onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
82
+ onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
83
+ onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
84
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
85
+ onReady?: ((editor: import('.').QEditorInstance) => any) | undefined;
86
+ onDestroy?: (() => any) | undefined;
87
+ }>, {
88
+ type: import('.').QEditorType;
89
+ config: import('ckeditor5').EditorConfig;
90
+ tagName: string;
91
+ disabled: boolean;
92
+ disableTwoWayDataBinding: boolean;
93
+ dataNormalizer: (data: string) => string;
94
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
95
+ toolbarRef: HTMLDivElement;
96
+ ckeditorRef: import('vue').ShallowUnwrapRef<{
97
+ instance: import('vue').Ref<import('ckeditor5').ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined, import('ckeditor5').ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined>;
98
+ lastEditorData: import('vue').Ref<string, string>;
99
+ }> | null;
100
+ }, any>;
101
+ QCKClassic: import('vue').DefineComponent<{
102
+ modelValue?: string;
103
+ } & {
104
+ config?: import('ckeditor5').EditorConfig;
105
+ tagName?: string;
106
+ disabled?: boolean;
107
+ disableTwoWayDataBinding?: boolean;
108
+ dataNormalizer?: (data: string) => string;
109
+ }, {
110
+ ckeditorRef: import('vue').ComputedRef<{
59
111
  instance: import('ckeditor5').ClassicEditor | undefined;
60
112
  lastEditorData: string | undefined;
61
113
  } | null>;
@@ -88,9 +140,94 @@ declare const _default: {
88
140
  disableTwoWayDataBinding: boolean;
89
141
  dataNormalizer: (data: string) => string;
90
142
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
91
- ckeditorRef: import('vue').ShallowUnwrapRef<{
92
- instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined, import('ckeditor5').ClassicEditor | undefined>;
93
- lastEditorData: import('vue').Ref<string, string>;
143
+ qckEditorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
144
+ modelValue?: string;
145
+ } & {
146
+ type?: import('.').QEditorType;
147
+ config?: import('ckeditor5').EditorConfig;
148
+ tagName?: string;
149
+ disabled?: boolean;
150
+ disableTwoWayDataBinding?: boolean;
151
+ dataNormalizer?: (data: string) => string;
152
+ }> & Readonly<{
153
+ onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
154
+ onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
155
+ onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
156
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
157
+ onReady?: ((editor: import('.').QEditorInstance) => any) | undefined;
158
+ onDestroy?: (() => any) | undefined;
159
+ }>, {
160
+ ckeditorRef: import('vue').Ref<{
161
+ instance: import('.').QEditorInstance | undefined;
162
+ lastEditorData: string | undefined;
163
+ } | null, {
164
+ instance: import('vue').Ref<import('.').QEditorInstance | undefined>;
165
+ lastEditorData: import('vue').Ref<string | undefined>;
166
+ } | {
167
+ instance: import('.').QEditorInstance | undefined;
168
+ lastEditorData: string | undefined;
169
+ } | null>;
170
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
171
+ blur: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
172
+ focus: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
173
+ input: (data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
174
+ "update:modelValue": (value: string) => any;
175
+ ready: (editor: import('.').QEditorInstance) => any;
176
+ destroy: () => any;
177
+ }, import('vue').PublicProps, {
178
+ type: import('.').QEditorType;
179
+ config: import('ckeditor5').EditorConfig;
180
+ tagName: string;
181
+ disabled: boolean;
182
+ disableTwoWayDataBinding: boolean;
183
+ dataNormalizer: (data: string) => string;
184
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
185
+ toolbarRef: HTMLDivElement;
186
+ ckeditorRef: import('vue').ShallowUnwrapRef<{
187
+ instance: import('vue').Ref<import('ckeditor5').ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined, import('ckeditor5').ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined>;
188
+ lastEditorData: import('vue').Ref<string, string>;
189
+ }> | null;
190
+ }, any, import('vue').ComponentProvideOptions, {
191
+ P: {};
192
+ B: {};
193
+ D: {};
194
+ C: {};
195
+ M: {};
196
+ Defaults: {};
197
+ }, Readonly<{
198
+ modelValue?: string;
199
+ } & {
200
+ type?: import('.').QEditorType;
201
+ config?: import('ckeditor5').EditorConfig;
202
+ tagName?: string;
203
+ disabled?: boolean;
204
+ disableTwoWayDataBinding?: boolean;
205
+ dataNormalizer?: (data: string) => string;
206
+ }> & Readonly<{
207
+ onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
208
+ onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
209
+ onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
210
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
211
+ onReady?: ((editor: import('.').QEditorInstance) => any) | undefined;
212
+ onDestroy?: (() => any) | undefined;
213
+ }>, {
214
+ ckeditorRef: import('vue').Ref<{
215
+ instance: import('.').QEditorInstance | undefined;
216
+ lastEditorData: string | undefined;
217
+ } | null, {
218
+ instance: import('vue').Ref<import('.').QEditorInstance | undefined>;
219
+ lastEditorData: import('vue').Ref<string | undefined>;
220
+ } | {
221
+ instance: import('.').QEditorInstance | undefined;
222
+ lastEditorData: string | undefined;
223
+ } | null>;
224
+ }, {}, {}, {}, {
225
+ type: import('.').QEditorType;
226
+ config: import('ckeditor5').EditorConfig;
227
+ tagName: string;
228
+ disabled: boolean;
229
+ disableTwoWayDataBinding: boolean;
230
+ dataNormalizer: (data: string) => string;
94
231
  }> | null;
95
232
  }, any>;
96
233
  QCKEditorPro: import('vue').DefineComponent<{
@@ -185,13 +322,7 @@ declare const _default: {
185
322
  onReady?: ((editor: import('ckeditor5').ClassicEditor) => any) | undefined;
186
323
  onDestroy?: (() => any) | undefined;
187
324
  }>, {
188
- ckeditorRef: import('vue').Ref<{
189
- instance: import('ckeditor5').ClassicEditor | undefined;
190
- lastEditorData: string | undefined;
191
- } | null, {
192
- instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined>;
193
- lastEditorData: import('vue').Ref<string | undefined>;
194
- } | {
325
+ ckeditorRef: import('vue').ComputedRef<{
195
326
  instance: import('ckeditor5').ClassicEditor | undefined;
196
327
  lastEditorData: string | undefined;
197
328
  } | null>;
@@ -209,9 +340,94 @@ declare const _default: {
209
340
  disableTwoWayDataBinding: boolean;
210
341
  dataNormalizer: (data: string) => string;
211
342
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
212
- ckeditorRef: import('vue').ShallowUnwrapRef<{
213
- instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined, import('ckeditor5').ClassicEditor | undefined>;
214
- lastEditorData: import('vue').Ref<string, string>;
343
+ qckEditorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
344
+ modelValue?: string;
345
+ } & {
346
+ type?: import('.').QEditorType;
347
+ config?: import('ckeditor5').EditorConfig;
348
+ tagName?: string;
349
+ disabled?: boolean;
350
+ disableTwoWayDataBinding?: boolean;
351
+ dataNormalizer?: (data: string) => string;
352
+ }> & Readonly<{
353
+ onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
354
+ onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
355
+ onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
356
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
357
+ onReady?: ((editor: import('.').QEditorInstance) => any) | undefined;
358
+ onDestroy?: (() => any) | undefined;
359
+ }>, {
360
+ ckeditorRef: import('vue').Ref<{
361
+ instance: import('.').QEditorInstance | undefined;
362
+ lastEditorData: string | undefined;
363
+ } | null, {
364
+ instance: import('vue').Ref<import('.').QEditorInstance | undefined>;
365
+ lastEditorData: import('vue').Ref<string | undefined>;
366
+ } | {
367
+ instance: import('.').QEditorInstance | undefined;
368
+ lastEditorData: string | undefined;
369
+ } | null>;
370
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
371
+ blur: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
372
+ focus: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
373
+ input: (data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any;
374
+ "update:modelValue": (value: string) => any;
375
+ ready: (editor: import('.').QEditorInstance) => any;
376
+ destroy: () => any;
377
+ }, import('vue').PublicProps, {
378
+ type: import('.').QEditorType;
379
+ config: import('ckeditor5').EditorConfig;
380
+ tagName: string;
381
+ disabled: boolean;
382
+ disableTwoWayDataBinding: boolean;
383
+ dataNormalizer: (data: string) => string;
384
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
385
+ toolbarRef: HTMLDivElement;
386
+ ckeditorRef: import('vue').ShallowUnwrapRef<{
387
+ instance: import('vue').Ref<import('ckeditor5').ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined, import('ckeditor5').ClassicEditor | import('ckeditor5').InlineEditor | import('ckeditor5').DecoupledEditor | undefined>;
388
+ lastEditorData: import('vue').Ref<string, string>;
389
+ }> | null;
390
+ }, any, import('vue').ComponentProvideOptions, {
391
+ P: {};
392
+ B: {};
393
+ D: {};
394
+ C: {};
395
+ M: {};
396
+ Defaults: {};
397
+ }, Readonly<{
398
+ modelValue?: string;
399
+ } & {
400
+ type?: import('.').QEditorType;
401
+ config?: import('ckeditor5').EditorConfig;
402
+ tagName?: string;
403
+ disabled?: boolean;
404
+ disableTwoWayDataBinding?: boolean;
405
+ dataNormalizer?: (data: string) => string;
406
+ }> & Readonly<{
407
+ onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
408
+ onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
409
+ onInput?: ((data: string, event: import('ckeditor5').EventInfo<string, unknown>, editor: import('.').QEditorInstance) => any) | undefined;
410
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
411
+ onReady?: ((editor: import('.').QEditorInstance) => any) | undefined;
412
+ onDestroy?: (() => any) | undefined;
413
+ }>, {
414
+ ckeditorRef: import('vue').Ref<{
415
+ instance: import('.').QEditorInstance | undefined;
416
+ lastEditorData: string | undefined;
417
+ } | null, {
418
+ instance: import('vue').Ref<import('.').QEditorInstance | undefined>;
419
+ lastEditorData: import('vue').Ref<string | undefined>;
420
+ } | {
421
+ instance: import('.').QEditorInstance | undefined;
422
+ lastEditorData: string | undefined;
423
+ } | null>;
424
+ }, {}, {}, {}, {
425
+ type: import('.').QEditorType;
426
+ config: import('ckeditor5').EditorConfig;
427
+ tagName: string;
428
+ disabled: boolean;
429
+ disableTwoWayDataBinding: boolean;
430
+ dataNormalizer: (data: string) => string;
215
431
  }> | null;
216
432
  }, any, import('vue').ComponentProvideOptions, {
217
433
  P: {};
@@ -236,13 +452,7 @@ declare const _default: {
236
452
  onReady?: ((editor: import('ckeditor5').ClassicEditor) => any) | undefined;
237
453
  onDestroy?: (() => any) | undefined;
238
454
  }>, {
239
- ckeditorRef: import('vue').Ref<{
240
- instance: import('ckeditor5').ClassicEditor | undefined;
241
- lastEditorData: string | undefined;
242
- } | null, {
243
- instance: import('vue').Ref<import('ckeditor5').ClassicEditor | undefined>;
244
- lastEditorData: import('vue').Ref<string | undefined>;
245
- } | {
455
+ ckeditorRef: import('vue').ComputedRef<{
246
456
  instance: import('ckeditor5').ClassicEditor | undefined;
247
457
  lastEditorData: string | undefined;
248
458
  } | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM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