@itshixun/qckeditor-vue2 1.0.18 → 1.1.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.
- package/README.md +30 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +96 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4897 -4611
- package/dist/src/components/QCKContent.d.ts +16 -0
- package/dist/src/components/QCKContent.d.ts.map +1 -1
- package/dist/src/components/QCKEditorPro.d.ts +32 -2
- package/dist/src/components/QCKEditorPro.d.ts.map +1 -1
- package/dist/src/components/QCKImageViewer.d.ts +52 -0
- package/dist/src/components/QCKImageViewer.d.ts.map +1 -0
- package/dist/src/types.d.ts +14 -0
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export { default as CKEditor } from './src/components/CKEditor';
|
|
|
2
2
|
export { default as QCKClassic } from './src/components/QCKClassic';
|
|
3
3
|
export { default as QCKEditorPro } from './src/components/QCKEditorPro';
|
|
4
4
|
export { default as QCKContent } from './src/components/QCKContent';
|
|
5
|
-
export
|
|
5
|
+
export { default as QCKImageViewer } from './src/components/QCKImageViewer';
|
|
6
|
+
export type { Props, ExtractEditorType, QCKImagePreviewOptions } from './src/types';
|
|
6
7
|
export { createXHRUploadAdapter, createMockUploadAdapter, createAsyncUploadAdapter } from './src/utils/uploadAdapter';
|
|
7
8
|
export type { UploadAdapterOptions } from './src/utils/uploadAdapter';
|
|
8
9
|
declare const _default: {
|
|
@@ -192,6 +193,14 @@ declare const _default: {
|
|
|
192
193
|
type: BooleanConstructor;
|
|
193
194
|
default: boolean;
|
|
194
195
|
};
|
|
196
|
+
dataNormalizer: {
|
|
197
|
+
type: import('vue').PropType<(data: string) => string>;
|
|
198
|
+
default: (data: string) => string;
|
|
199
|
+
};
|
|
200
|
+
disableExit: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
195
204
|
content: {
|
|
196
205
|
type: StringConstructor;
|
|
197
206
|
default: undefined;
|
|
@@ -232,6 +241,10 @@ declare const _default: {
|
|
|
232
241
|
type: NumberConstructor;
|
|
233
242
|
default: number;
|
|
234
243
|
};
|
|
244
|
+
imagePreview: {
|
|
245
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
246
|
+
default: boolean;
|
|
247
|
+
};
|
|
235
248
|
}, {
|
|
236
249
|
currentValue: import('vue').Ref<string>;
|
|
237
250
|
isActive: import('vue').Ref<boolean>;
|
|
@@ -253,6 +266,7 @@ declare const _default: {
|
|
|
253
266
|
contentProps: import('vue').ComputedRef<{
|
|
254
267
|
containerClass: string;
|
|
255
268
|
sanitize: boolean;
|
|
269
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
256
270
|
}>;
|
|
257
271
|
shouldApplyMinHeight: import('vue').ComputedRef<boolean>;
|
|
258
272
|
activate: () => void;
|
|
@@ -262,8 +276,10 @@ declare const _default: {
|
|
|
262
276
|
handleClickOutside: (event: MouseEvent) => void;
|
|
263
277
|
handleReady: (editor: import('ckeditor5').ClassicEditor) => void;
|
|
264
278
|
handleDestroy: () => void;
|
|
279
|
+
exitBlocked: import('vue').ComputedRef<boolean>;
|
|
280
|
+
unbindPendingActions: () => void;
|
|
265
281
|
handleInput: (data: string, event: import('ckeditor5').EventInfo, editor: import('ckeditor5').ClassicEditor) => void;
|
|
266
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
282
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue" | "exit-blocked")[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
267
283
|
value: {
|
|
268
284
|
type: StringConstructor;
|
|
269
285
|
default: string;
|
|
@@ -288,6 +304,14 @@ declare const _default: {
|
|
|
288
304
|
type: BooleanConstructor;
|
|
289
305
|
default: boolean;
|
|
290
306
|
};
|
|
307
|
+
dataNormalizer: {
|
|
308
|
+
type: import('vue').PropType<(data: string) => string>;
|
|
309
|
+
default: (data: string) => string;
|
|
310
|
+
};
|
|
311
|
+
disableExit: {
|
|
312
|
+
type: BooleanConstructor;
|
|
313
|
+
default: boolean;
|
|
314
|
+
};
|
|
291
315
|
content: {
|
|
292
316
|
type: StringConstructor;
|
|
293
317
|
default: undefined;
|
|
@@ -328,17 +352,24 @@ declare const _default: {
|
|
|
328
352
|
type: NumberConstructor;
|
|
329
353
|
default: number;
|
|
330
354
|
};
|
|
355
|
+
imagePreview: {
|
|
356
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
357
|
+
default: boolean;
|
|
358
|
+
};
|
|
331
359
|
}>>, {
|
|
332
360
|
value: string;
|
|
333
361
|
config: import('ckeditor5').EditorConfig;
|
|
334
362
|
tagName: string;
|
|
335
363
|
disabled: boolean;
|
|
336
364
|
disableTwoWayDataBinding: boolean;
|
|
365
|
+
dataNormalizer: (data: string) => string;
|
|
337
366
|
modelValue: string;
|
|
338
367
|
placeholder: string;
|
|
339
368
|
content: string;
|
|
340
369
|
containerClass: string;
|
|
341
370
|
sanitize: boolean;
|
|
371
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
372
|
+
disableExit: boolean;
|
|
342
373
|
minHeight: number;
|
|
343
374
|
height: number;
|
|
344
375
|
fitHeight: boolean;
|
|
@@ -379,12 +410,22 @@ declare const _default: {
|
|
|
379
410
|
type: import('vue').PropType<number>;
|
|
380
411
|
default: undefined;
|
|
381
412
|
};
|
|
413
|
+
imagePreview: {
|
|
414
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
415
|
+
default: boolean;
|
|
416
|
+
};
|
|
382
417
|
}, {
|
|
383
418
|
container: import('vue').Ref<HTMLDivElement | null>;
|
|
384
419
|
renderHtml: import('vue').ComputedRef<string>;
|
|
385
420
|
containerStyle: import('vue').ComputedRef<{
|
|
386
421
|
'--ck-content-font-size': string;
|
|
387
422
|
} | undefined>;
|
|
423
|
+
previewEnabled: import('vue').ComputedRef<boolean>;
|
|
424
|
+
viewerOptions: import('vue').ComputedRef<Required<import('.').QCKImagePreviewOptions>>;
|
|
425
|
+
viewerVisible: import('vue').Ref<boolean>;
|
|
426
|
+
viewerImages: import('vue').Ref<string[]>;
|
|
427
|
+
viewerIndex: import('vue').Ref<number>;
|
|
428
|
+
handleContainerClick: (event: MouseEvent) => void;
|
|
388
429
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
389
430
|
value: {
|
|
390
431
|
type: StringConstructor;
|
|
@@ -418,6 +459,10 @@ declare const _default: {
|
|
|
418
459
|
type: import('vue').PropType<number>;
|
|
419
460
|
default: undefined;
|
|
420
461
|
};
|
|
462
|
+
imagePreview: {
|
|
463
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
464
|
+
default: boolean;
|
|
465
|
+
};
|
|
421
466
|
}>>, {
|
|
422
467
|
value: string;
|
|
423
468
|
fontSize: number;
|
|
@@ -427,7 +472,56 @@ declare const _default: {
|
|
|
427
472
|
containerClass: string;
|
|
428
473
|
sanitize: boolean;
|
|
429
474
|
highlightCode: boolean;
|
|
475
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
430
476
|
}>;
|
|
477
|
+
QCKImageViewer: import('vue').DefineComponent<{
|
|
478
|
+
images: {
|
|
479
|
+
type: import('vue').PropType<string[]>;
|
|
480
|
+
required: true;
|
|
481
|
+
};
|
|
482
|
+
initialIndex: {
|
|
483
|
+
type: NumberConstructor;
|
|
484
|
+
required: true;
|
|
485
|
+
};
|
|
486
|
+
options: {
|
|
487
|
+
type: import('vue').PropType<Required<import('.').QCKImagePreviewOptions>>;
|
|
488
|
+
required: true;
|
|
489
|
+
};
|
|
490
|
+
}, {
|
|
491
|
+
overlayRef: import('vue').Ref<HTMLElement | null>;
|
|
492
|
+
currentIndex: import('vue').Ref<number>;
|
|
493
|
+
scale: import('vue').Ref<number>;
|
|
494
|
+
isFullscreen: import('vue').Ref<boolean>;
|
|
495
|
+
imgStyle: import('vue').ComputedRef<{
|
|
496
|
+
transform: string;
|
|
497
|
+
}>;
|
|
498
|
+
resetTransform: () => void;
|
|
499
|
+
close: () => void;
|
|
500
|
+
goTo: (index: number) => void;
|
|
501
|
+
prev: () => void;
|
|
502
|
+
next: () => void;
|
|
503
|
+
zoomIn: () => void;
|
|
504
|
+
zoomOut: () => void;
|
|
505
|
+
onWheel: (event: WheelEvent) => void;
|
|
506
|
+
onPointerDown: (event: PointerEvent) => void;
|
|
507
|
+
resetDragFlag: () => void;
|
|
508
|
+
handleOverlayClick: (event: MouseEvent) => void;
|
|
509
|
+
stop: (event: MouseEvent) => void;
|
|
510
|
+
toggleFullscreen: () => void;
|
|
511
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
512
|
+
images: {
|
|
513
|
+
type: import('vue').PropType<string[]>;
|
|
514
|
+
required: true;
|
|
515
|
+
};
|
|
516
|
+
initialIndex: {
|
|
517
|
+
type: NumberConstructor;
|
|
518
|
+
required: true;
|
|
519
|
+
};
|
|
520
|
+
options: {
|
|
521
|
+
type: import('vue').PropType<Required<import('.').QCKImagePreviewOptions>>;
|
|
522
|
+
required: true;
|
|
523
|
+
};
|
|
524
|
+
}>>, {}>;
|
|
431
525
|
};
|
|
432
526
|
export default _default;
|
|
433
527
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAA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