@ckeditor/ckeditor5-uploadcare 48.2.0-alpha.7 → 48.3.0-alpha.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/dist/augmentation.d.ts +28 -28
- package/dist/index.d.ts +16 -16
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/uploadcarecontroller.d.ts +20 -22
- package/dist/ui/uploadcareformview.d.ts +18 -18
- package/dist/uploadcare.d.ts +41 -41
- package/dist/uploadcarecommand.d.ts +33 -33
- package/dist/uploadcareconfig.d.ts +246 -246
- package/dist/uploadcareediting.d.ts +55 -55
- package/dist/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +75 -74
- package/dist/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +20 -20
- package/dist/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +20 -20
- package/dist/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +19 -19
- package/dist/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +27 -27
- package/dist/uploadcareimageedit/uploadcareimageeditcommand.d.ts +44 -44
- package/dist/uploadcareimageedit/uploadcareimageeditediting.d.ts +34 -34
- package/dist/uploadcareimageedit/uploadcareimageeditui.d.ts +40 -40
- package/dist/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +18 -18
- package/dist/uploadcareimageedit.d.ts +27 -27
- package/dist/uploadcareui.d.ts +36 -36
- package/dist/uploadcareuploadadapter.d.ts +35 -35
- package/dist/utils/common-translations.d.ts +0 -4
- package/dist/utils/dialogfocusmanagerview.d.ts +24 -24
- package/dist/utils/editingutils.d.ts +0 -4
- package/dist/utils/isancestor.d.ts +5 -5
- package/dist/utils/uploadutils.d.ts +0 -4
- package/package.json +8 -8
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin, type Editor } from
|
|
10
|
-
import { Dialog } from
|
|
11
|
-
import { PictureEditing } from
|
|
12
|
-
import { UploadcareUploadAdapter } from
|
|
13
|
-
import type { UploadCtxProvider } from
|
|
6
|
+
* @module uploadcare/uploadcareediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { Dialog } from "@ckeditor/ckeditor5-ui";
|
|
11
|
+
import { PictureEditing } from "@ckeditor/ckeditor5-image";
|
|
12
|
+
import { UploadcareUploadAdapter } from "./uploadcareuploadadapter.js";
|
|
13
|
+
import type { UploadCtxProvider } from "@uploadcare/file-uploader/web/file-uploader.min.js";
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* The Uploadcare editing feature. It introduces the {@link module:uploadcare/uploadcarecommand~UploadcareCommand command}.
|
|
16
|
+
*/
|
|
17
17
|
export declare class UploadcareEditing extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "UploadcareEditing";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): PluginDependenciesOf<[PictureEditing, UploadcareUploadAdapter, Dialog]>;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isPremiumPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* A unique ID used to make the `ctx-name` property distinct.
|
|
36
|
+
*
|
|
37
|
+
* This ID ensures that each editor instance references to a different Uploadcare web components.
|
|
38
|
+
*/
|
|
39
|
+
ucContextId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the DOM element that represents the Uploadcare config web component.
|
|
42
|
+
*/
|
|
43
|
+
get configElement(): HTMLElement | null;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the DOM element associated with the Uploadcare context web component.
|
|
46
|
+
*/
|
|
47
|
+
get ctxElement(): UploadCtxProvider | null;
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
constructor(editor: Editor);
|
|
52
|
+
/**
|
|
53
|
+
* @inheritDoc
|
|
54
|
+
*/
|
|
55
|
+
init(): void;
|
|
56
|
+
/**
|
|
57
|
+
* @inheritDoc
|
|
58
|
+
*/
|
|
59
|
+
afterInit(): void;
|
|
60
60
|
}
|
|
@@ -1,78 +1,79 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { type Dialog } from '@ckeditor/ckeditor5-ui';
|
|
6
|
-
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
7
|
-
import type { ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
8
|
-
declare const UploadcareImageEditController_base: {
|
|
9
|
-
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
10
|
-
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
11
|
-
};
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
12
5
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditcontroller
|
|
7
|
+
*/
|
|
8
|
+
import { type ObservableMixinConstructor } from "@ckeditor/ckeditor5-utils";
|
|
9
|
+
import { type Dialog } from "@ckeditor/ckeditor5-ui";
|
|
10
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
11
|
+
import type { ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
12
|
+
declare const UploadcareImageEditControllerBase: ObservableMixinConstructor;
|
|
13
|
+
/**
|
|
14
|
+
* Controller for the Image Edit Dialog.
|
|
15
|
+
*
|
|
16
|
+
* It manages the dialog and all the related actions during dialog instance lifecycle. It is bound to a dialog instance
|
|
17
|
+
* and an active image element and destroyed when dialog instance is closed.
|
|
18
|
+
*/
|
|
19
|
+
export declare class UploadcareImageEditController extends UploadcareImageEditControllerBase {
|
|
20
|
+
/**
|
|
21
|
+
* Whenever the controller is active and dialog UI visible.
|
|
22
|
+
*
|
|
23
|
+
* @observable
|
|
24
|
+
* @readonly
|
|
25
|
+
*/
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Status of the selected image when command is executed:
|
|
29
|
+
*
|
|
30
|
+
* * `uploading` - image is being uploaded to Uploadcare,
|
|
31
|
+
* * `ready` - image is ready to be edited (already in Uploadcare or just uploaded to it),
|
|
32
|
+
* * `error` - error occurred during image upload.
|
|
33
|
+
*
|
|
34
|
+
* @observable
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
imageStatus: "uploading" | "ready" | "error";
|
|
38
|
+
imageErrorType: "Network" | "NotFound" | null;
|
|
39
|
+
/**
|
|
40
|
+
* The Uploadcare image ID.
|
|
41
|
+
*
|
|
42
|
+
* @observable
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
imageId: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The Uploadcare image source URL.
|
|
48
|
+
*
|
|
49
|
+
* @observable
|
|
50
|
+
* @readonly
|
|
51
|
+
*/
|
|
52
|
+
imageSrc: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The image width and height. It is used to calculate proper `srcset` attributes and aspect ratio.
|
|
55
|
+
*
|
|
56
|
+
* @observable
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
imageDimension: {
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
} | null;
|
|
63
|
+
/**
|
|
64
|
+
* The Uploadcare image upload progress.
|
|
65
|
+
*
|
|
66
|
+
* @observable
|
|
67
|
+
* @readonly
|
|
68
|
+
*/
|
|
69
|
+
imageUploadProgress: number | null;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a new instance of `UploadcareImageEditController`.
|
|
72
|
+
*/
|
|
73
|
+
constructor(editor: Editor, dialog: Dialog, imageElement: ModelElement);
|
|
74
|
+
/**
|
|
75
|
+
* Destroys `UploadcareImageEditController` instance.
|
|
76
|
+
*/
|
|
77
|
+
destroy(): void;
|
|
77
78
|
}
|
|
78
79
|
export {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { type Locale } from
|
|
9
|
-
import { View } from
|
|
10
|
-
import type { UploadcareEditorConfig } from
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformeditingview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from "@ckeditor/ckeditor5-utils";
|
|
9
|
+
import { View } from "@ckeditor/ckeditor5-ui";
|
|
10
|
+
import type { UploadcareEditorConfig } from "../../uploadcareconfig.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* A class representing the form editing view of the Uploadcare image edit feature.
|
|
13
|
+
*/
|
|
14
14
|
export declare class UploadcareImageEditFormEditingView extends View {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Image source URL.
|
|
17
|
+
*
|
|
18
|
+
* @observable
|
|
19
|
+
*/
|
|
20
|
+
imageSrc: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
constructor(locale: Locale, attributes: UploadcareEditorConfig);
|
|
25
25
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { View } from
|
|
6
|
-
import type { Locale } from
|
|
7
|
-
import { type UploadcareImageEditController } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { View } from "@ckeditor/ckeditor5-ui";
|
|
6
|
+
import type { Locale } from "@ckeditor/ckeditor5-utils";
|
|
7
|
+
import { type UploadcareImageEditController } from "./uploadcareimageeditcontroller.js";
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* A class representing the form error view of the Uploadcare image edit feature.
|
|
10
|
+
*/
|
|
11
11
|
export declare class UploadcareImageEditFormErrorView extends View {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The image upload error details.
|
|
14
|
+
*
|
|
15
|
+
* @observable
|
|
16
|
+
*/
|
|
17
|
+
errorType: UploadcareImageEditController["imageErrorType"];
|
|
18
|
+
/**
|
|
19
|
+
* Creates an instance of the UploadcareImageEditFormErrorView view.
|
|
20
|
+
*
|
|
21
|
+
* @fires retry
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale);
|
|
24
24
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { type Locale } from
|
|
9
|
-
import { View } from
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformloadingview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from "@ckeditor/ckeditor5-utils";
|
|
9
|
+
import { View } from "@ckeditor/ckeditor5-ui";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* A class representing the form loading view of the Uploadcare image edit feature.
|
|
12
|
+
*/
|
|
13
13
|
export declare class UploadcareImageEditFormLoadingView extends View {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The image upload progress.
|
|
16
|
+
*
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
imageUploadProgress: number | null;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale);
|
|
24
24
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { type Locale } from
|
|
9
|
-
import { type UploadcareImageEditController } from
|
|
10
|
-
import { DialogFocusManagerView } from
|
|
11
|
-
import type { UploadcareEditorConfig } from
|
|
12
|
-
import
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from "@ckeditor/ckeditor5-utils";
|
|
9
|
+
import { type UploadcareImageEditController } from "./uploadcareimageeditcontroller.js";
|
|
10
|
+
import { DialogFocusManagerView } from "../../utils/dialogfocusmanagerview.js";
|
|
11
|
+
import type { UploadcareEditorConfig } from "../../uploadcareconfig.js";
|
|
12
|
+
import "../../../theme/uploadcare-form.css";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* A class representing the form view of the Uploadcare image edit feature.
|
|
15
|
+
*/
|
|
16
16
|
export declare class UploadcareImageEditFormView extends DialogFocusManagerView {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Status of the image passed to the view;
|
|
19
|
+
*
|
|
20
|
+
* @observable
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
status: ThisType<UploadcareImageEditController["imageStatus"]>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
constructor(locale: Locale, imageStatus: string, attributes: UploadcareEditorConfig);
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
focus(): void;
|
|
32
32
|
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command, type Editor } from
|
|
10
|
-
import { Dialog } from
|
|
11
|
-
import { UploadcareImageEditController } from
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/uploadcareimageeditcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { Dialog } from "@ckeditor/ckeditor5-ui";
|
|
11
|
+
import { UploadcareImageEditController } from "./ui/uploadcareimageeditcontroller.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
* The Uploadcare edit image command.
|
|
14
|
+
*
|
|
15
|
+
* It opens the Uploadcare dialog for editing the image.
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* editor.execute( 'uploadcareImageEdit' );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
21
|
export declare class UploadcareImageEditCommand extends Command {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Whenever the controller is active and dialog UI visible.
|
|
24
|
+
*
|
|
25
|
+
* @observable
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
isActive: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The Uploadcare image edit controller instance.
|
|
31
|
+
*/
|
|
32
|
+
imageEditController: UploadcareImageEditController | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
static get requires(): PluginDependenciesOf<[Dialog]>;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
constructor(editor: Editor);
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
override refresh(): void;
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
override execute(): void;
|
|
49
49
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { Notification } from
|
|
11
|
-
import { ImageEditing, ImageUtils } from
|
|
12
|
-
import { UploadcareEditing } from
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/uploadcareimageeditediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { Notification } from "@ckeditor/ckeditor5-ui";
|
|
11
|
+
import { ImageEditing, ImageUtils } from "@ckeditor/ckeditor5-image";
|
|
12
|
+
import { UploadcareEditing } from "../uploadcareediting.js";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
* The Uploadcare image editing plugin.
|
|
15
|
+
*
|
|
16
|
+
* It complements the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature} by adding editing capabilities for uploaded images.
|
|
17
|
+
*/
|
|
18
18
|
export declare class UploadcareImageEditEditing extends Plugin {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "UploadcareImageEditEditing";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get requires(): PluginDependenciesOf<[UploadcareEditing, Notification, ImageUtils, ImageEditing]>;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static override get isOfficialPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static override get isPremiumPlugin(): true;
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
init(): void;
|
|
39
39
|
}
|