@itshixun/qckeditor-vue2 1.0.17 → 1.1.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.
- package/README.md +30 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +87 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4891 -4610
- 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 +23 -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 +6 -6
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,10 @@ declare const _default: {
|
|
|
192
193
|
type: BooleanConstructor;
|
|
193
194
|
default: boolean;
|
|
194
195
|
};
|
|
196
|
+
disableExit: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
195
200
|
content: {
|
|
196
201
|
type: StringConstructor;
|
|
197
202
|
default: undefined;
|
|
@@ -232,6 +237,10 @@ declare const _default: {
|
|
|
232
237
|
type: NumberConstructor;
|
|
233
238
|
default: number;
|
|
234
239
|
};
|
|
240
|
+
imagePreview: {
|
|
241
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
242
|
+
default: boolean;
|
|
243
|
+
};
|
|
235
244
|
}, {
|
|
236
245
|
currentValue: import('vue').Ref<string>;
|
|
237
246
|
isActive: import('vue').Ref<boolean>;
|
|
@@ -253,6 +262,7 @@ declare const _default: {
|
|
|
253
262
|
contentProps: import('vue').ComputedRef<{
|
|
254
263
|
containerClass: string;
|
|
255
264
|
sanitize: boolean;
|
|
265
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
256
266
|
}>;
|
|
257
267
|
shouldApplyMinHeight: import('vue').ComputedRef<boolean>;
|
|
258
268
|
activate: () => void;
|
|
@@ -262,8 +272,10 @@ declare const _default: {
|
|
|
262
272
|
handleClickOutside: (event: MouseEvent) => void;
|
|
263
273
|
handleReady: (editor: import('ckeditor5').ClassicEditor) => void;
|
|
264
274
|
handleDestroy: () => void;
|
|
275
|
+
exitBlocked: import('vue').ComputedRef<boolean>;
|
|
276
|
+
unbindPendingActions: () => void;
|
|
265
277
|
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<{
|
|
278
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue" | "exit-blocked")[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
267
279
|
value: {
|
|
268
280
|
type: StringConstructor;
|
|
269
281
|
default: string;
|
|
@@ -288,6 +300,10 @@ declare const _default: {
|
|
|
288
300
|
type: BooleanConstructor;
|
|
289
301
|
default: boolean;
|
|
290
302
|
};
|
|
303
|
+
disableExit: {
|
|
304
|
+
type: BooleanConstructor;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
291
307
|
content: {
|
|
292
308
|
type: StringConstructor;
|
|
293
309
|
default: undefined;
|
|
@@ -328,6 +344,10 @@ declare const _default: {
|
|
|
328
344
|
type: NumberConstructor;
|
|
329
345
|
default: number;
|
|
330
346
|
};
|
|
347
|
+
imagePreview: {
|
|
348
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
349
|
+
default: boolean;
|
|
350
|
+
};
|
|
331
351
|
}>>, {
|
|
332
352
|
value: string;
|
|
333
353
|
config: import('ckeditor5').EditorConfig;
|
|
@@ -339,6 +359,8 @@ declare const _default: {
|
|
|
339
359
|
content: string;
|
|
340
360
|
containerClass: string;
|
|
341
361
|
sanitize: boolean;
|
|
362
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
363
|
+
disableExit: boolean;
|
|
342
364
|
minHeight: number;
|
|
343
365
|
height: number;
|
|
344
366
|
fitHeight: boolean;
|
|
@@ -379,12 +401,22 @@ declare const _default: {
|
|
|
379
401
|
type: import('vue').PropType<number>;
|
|
380
402
|
default: undefined;
|
|
381
403
|
};
|
|
404
|
+
imagePreview: {
|
|
405
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
406
|
+
default: boolean;
|
|
407
|
+
};
|
|
382
408
|
}, {
|
|
383
409
|
container: import('vue').Ref<HTMLDivElement | null>;
|
|
384
410
|
renderHtml: import('vue').ComputedRef<string>;
|
|
385
411
|
containerStyle: import('vue').ComputedRef<{
|
|
386
412
|
'--ck-content-font-size': string;
|
|
387
413
|
} | undefined>;
|
|
414
|
+
previewEnabled: import('vue').ComputedRef<boolean>;
|
|
415
|
+
viewerOptions: import('vue').ComputedRef<Required<import('.').QCKImagePreviewOptions>>;
|
|
416
|
+
viewerVisible: import('vue').Ref<boolean>;
|
|
417
|
+
viewerImages: import('vue').Ref<string[]>;
|
|
418
|
+
viewerIndex: import('vue').Ref<number>;
|
|
419
|
+
handleContainerClick: (event: MouseEvent) => void;
|
|
388
420
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
389
421
|
value: {
|
|
390
422
|
type: StringConstructor;
|
|
@@ -418,6 +450,10 @@ declare const _default: {
|
|
|
418
450
|
type: import('vue').PropType<number>;
|
|
419
451
|
default: undefined;
|
|
420
452
|
};
|
|
453
|
+
imagePreview: {
|
|
454
|
+
type: import('vue').PropType<boolean | import('.').QCKImagePreviewOptions>;
|
|
455
|
+
default: boolean;
|
|
456
|
+
};
|
|
421
457
|
}>>, {
|
|
422
458
|
value: string;
|
|
423
459
|
fontSize: number;
|
|
@@ -427,7 +463,56 @@ declare const _default: {
|
|
|
427
463
|
containerClass: string;
|
|
428
464
|
sanitize: boolean;
|
|
429
465
|
highlightCode: boolean;
|
|
466
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
430
467
|
}>;
|
|
468
|
+
QCKImageViewer: import('vue').DefineComponent<{
|
|
469
|
+
images: {
|
|
470
|
+
type: import('vue').PropType<string[]>;
|
|
471
|
+
required: true;
|
|
472
|
+
};
|
|
473
|
+
initialIndex: {
|
|
474
|
+
type: NumberConstructor;
|
|
475
|
+
required: true;
|
|
476
|
+
};
|
|
477
|
+
options: {
|
|
478
|
+
type: import('vue').PropType<Required<import('.').QCKImagePreviewOptions>>;
|
|
479
|
+
required: true;
|
|
480
|
+
};
|
|
481
|
+
}, {
|
|
482
|
+
overlayRef: import('vue').Ref<HTMLElement | null>;
|
|
483
|
+
currentIndex: import('vue').Ref<number>;
|
|
484
|
+
scale: import('vue').Ref<number>;
|
|
485
|
+
isFullscreen: import('vue').Ref<boolean>;
|
|
486
|
+
imgStyle: import('vue').ComputedRef<{
|
|
487
|
+
transform: string;
|
|
488
|
+
}>;
|
|
489
|
+
resetTransform: () => void;
|
|
490
|
+
close: () => void;
|
|
491
|
+
goTo: (index: number) => void;
|
|
492
|
+
prev: () => void;
|
|
493
|
+
next: () => void;
|
|
494
|
+
zoomIn: () => void;
|
|
495
|
+
zoomOut: () => void;
|
|
496
|
+
onWheel: (event: WheelEvent) => void;
|
|
497
|
+
onPointerDown: (event: PointerEvent) => void;
|
|
498
|
+
resetDragFlag: () => void;
|
|
499
|
+
handleOverlayClick: (event: MouseEvent) => void;
|
|
500
|
+
stop: (event: MouseEvent) => void;
|
|
501
|
+
toggleFullscreen: () => void;
|
|
502
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
503
|
+
images: {
|
|
504
|
+
type: import('vue').PropType<string[]>;
|
|
505
|
+
required: true;
|
|
506
|
+
};
|
|
507
|
+
initialIndex: {
|
|
508
|
+
type: NumberConstructor;
|
|
509
|
+
required: true;
|
|
510
|
+
};
|
|
511
|
+
options: {
|
|
512
|
+
type: import('vue').PropType<Required<import('.').QCKImagePreviewOptions>>;
|
|
513
|
+
required: true;
|
|
514
|
+
};
|
|
515
|
+
}>>, {}>;
|
|
431
516
|
};
|
|
432
517
|
export default _default;
|
|
433
518
|
//# 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,OAAO,wBAAwB,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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