@itshixun/qckeditor-vue3 1.0.16 → 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 +28 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +30 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4778 -4402
- package/dist/src/components/QCKContent.vue.d.ts +4 -1
- package/dist/src/components/QCKContent.vue.d.ts.map +1 -1
- package/dist/src/components/QCKEditorPro.vue.d.ts +10 -1
- package/dist/src/components/QCKEditorPro.vue.d.ts.map +1 -1
- package/dist/src/components/QCKImageViewer.vue.d.ts +15 -0
- package/dist/src/components/QCKImageViewer.vue.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 +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export { default as CKEditor } from './src/components/CKEditor.vue';
|
|
|
2
2
|
export { default as QCKClassic } from './src/components/QCKClassic.vue';
|
|
3
3
|
export { default as QCKEditorPro } from './src/components/QCKEditorPro.vue';
|
|
4
4
|
export { default as QCKContent } from './src/components/QCKContent.vue';
|
|
5
|
-
export
|
|
5
|
+
export { default as QCKImageViewer } from './src/components/QCKImageViewer.vue';
|
|
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: {
|
|
@@ -99,6 +100,7 @@ declare const _default: {
|
|
|
99
100
|
tagName?: string;
|
|
100
101
|
disabled?: boolean;
|
|
101
102
|
disableTwoWayDataBinding?: boolean;
|
|
103
|
+
disableExit?: boolean;
|
|
102
104
|
content?: string;
|
|
103
105
|
containerClass?: string;
|
|
104
106
|
sanitize?: boolean;
|
|
@@ -109,6 +111,7 @@ declare const _default: {
|
|
|
109
111
|
contentBgColor?: string;
|
|
110
112
|
contentBgHoverColor?: string;
|
|
111
113
|
borderRadius?: number;
|
|
114
|
+
imagePreview?: boolean | import('.').QCKImagePreviewOptions;
|
|
112
115
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
113
116
|
blur: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
114
117
|
focus: (event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any;
|
|
@@ -116,6 +119,7 @@ declare const _default: {
|
|
|
116
119
|
"update:modelValue": (value: string) => any;
|
|
117
120
|
ready: (editor: import('ckeditor5').ClassicEditor) => any;
|
|
118
121
|
destroy: () => any;
|
|
122
|
+
"exit-blocked": (reason: "pending-actions" | "prop") => any;
|
|
119
123
|
}, string, import('vue').PublicProps, Readonly<{
|
|
120
124
|
modelValue?: string;
|
|
121
125
|
} & {
|
|
@@ -123,6 +127,7 @@ declare const _default: {
|
|
|
123
127
|
tagName?: string;
|
|
124
128
|
disabled?: boolean;
|
|
125
129
|
disableTwoWayDataBinding?: boolean;
|
|
130
|
+
disableExit?: boolean;
|
|
126
131
|
content?: string;
|
|
127
132
|
containerClass?: string;
|
|
128
133
|
sanitize?: boolean;
|
|
@@ -133,6 +138,7 @@ declare const _default: {
|
|
|
133
138
|
contentBgColor?: string;
|
|
134
139
|
contentBgHoverColor?: string;
|
|
135
140
|
borderRadius?: number;
|
|
141
|
+
imagePreview?: boolean | import('.').QCKImagePreviewOptions;
|
|
136
142
|
}> & Readonly<{
|
|
137
143
|
onBlur?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
138
144
|
onFocus?: ((event: import('ckeditor5').EventInfo<string, unknown>, editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
@@ -140,17 +146,20 @@ declare const _default: {
|
|
|
140
146
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
141
147
|
onReady?: ((editor: import('ckeditor5').ClassicEditor) => any) | undefined;
|
|
142
148
|
onDestroy?: (() => any) | undefined;
|
|
149
|
+
"onExit-blocked"?: ((reason: "pending-actions" | "prop") => any) | undefined;
|
|
143
150
|
}>, {
|
|
144
151
|
config: import('ckeditor5').EditorConfig;
|
|
145
152
|
tagName: string;
|
|
146
153
|
disabled: boolean;
|
|
147
154
|
disableTwoWayDataBinding: boolean;
|
|
148
155
|
placeholder: string;
|
|
156
|
+
height: number;
|
|
149
157
|
content: string;
|
|
150
158
|
containerClass: string;
|
|
151
159
|
sanitize: boolean;
|
|
160
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
161
|
+
disableExit: boolean;
|
|
152
162
|
minHeight: number;
|
|
153
|
-
height: number;
|
|
154
163
|
fitHeight: boolean;
|
|
155
164
|
contentBgColor: string;
|
|
156
165
|
contentBgHoverColor: string;
|
|
@@ -251,6 +260,7 @@ declare const _default: {
|
|
|
251
260
|
math?: boolean;
|
|
252
261
|
highlightCode?: boolean;
|
|
253
262
|
fontSize?: number;
|
|
263
|
+
imagePreview?: boolean | import('.').QCKImagePreviewOptions;
|
|
254
264
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
255
265
|
"update:modelValue": (value: string) => any;
|
|
256
266
|
}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -262,6 +272,7 @@ declare const _default: {
|
|
|
262
272
|
math?: boolean;
|
|
263
273
|
highlightCode?: boolean;
|
|
264
274
|
fontSize?: number;
|
|
275
|
+
imagePreview?: boolean | import('.').QCKImagePreviewOptions;
|
|
265
276
|
}> & Readonly<{
|
|
266
277
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
267
278
|
}>, {
|
|
@@ -271,9 +282,25 @@ declare const _default: {
|
|
|
271
282
|
sanitize: boolean;
|
|
272
283
|
math: boolean;
|
|
273
284
|
highlightCode: boolean;
|
|
285
|
+
imagePreview: boolean | import('.').QCKImagePreviewOptions;
|
|
274
286
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
275
287
|
container: HTMLDivElement;
|
|
276
|
-
},
|
|
288
|
+
}, any>;
|
|
289
|
+
QCKImageViewer: import('vue').DefineComponent<{
|
|
290
|
+
images: string[];
|
|
291
|
+
initialIndex: number;
|
|
292
|
+
options: Required<import('.').QCKImagePreviewOptions>;
|
|
293
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
294
|
+
close: () => any;
|
|
295
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
296
|
+
images: string[];
|
|
297
|
+
initialIndex: number;
|
|
298
|
+
options: Required<import('.').QCKImagePreviewOptions>;
|
|
299
|
+
}> & Readonly<{
|
|
300
|
+
onClose?: (() => any) | undefined;
|
|
301
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
302
|
+
overlayRef: HTMLDivElement;
|
|
303
|
+
}, any>;
|
|
277
304
|
};
|
|
278
305
|
export default _default;
|
|
279
306
|
//# 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,+BAA+B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAC;A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