@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250216.0 → 0.0.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.
Files changed (64) hide show
  1. package/LICENSE.md +6 -5
  2. package/README.md +3 -35
  3. package/package.json +7 -74
  4. package/CHANGELOG.md +0 -6
  5. package/build/uploadcare.js +0 -4
  6. package/ckeditor5-metadata.json +0 -47
  7. package/dist/index-content.css +0 -5
  8. package/dist/index-editor.css +0 -265
  9. package/dist/index.css +0 -315
  10. package/dist/index.js +0 -25
  11. package/lang/contexts.json +0 -27
  12. package/src/augmentation.d.ts +0 -30
  13. package/src/augmentation.js +0 -23
  14. package/src/index.d.ts +0 -16
  15. package/src/index.js +0 -23
  16. package/src/ui/uploadcarecontroller.d.ts +0 -26
  17. package/src/ui/uploadcarecontroller.js +0 -24
  18. package/src/ui/uploadcareformview.d.ts +0 -23
  19. package/src/ui/uploadcareformview.js +0 -23
  20. package/src/uploadcare.d.ts +0 -48
  21. package/src/uploadcare.js +0 -23
  22. package/src/uploadcarecommand.d.ts +0 -38
  23. package/src/uploadcarecommand.js +0 -23
  24. package/src/uploadcareconfig.d.ts +0 -227
  25. package/src/uploadcareconfig.js +0 -23
  26. package/src/uploadcareediting.d.ts +0 -49
  27. package/src/uploadcareediting.js +0 -23
  28. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +0 -78
  29. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +0 -24
  30. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +0 -25
  31. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +0 -23
  32. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +0 -24
  33. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +0 -23
  34. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +0 -24
  35. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +0 -23
  36. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +0 -32
  37. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +0 -23
  38. package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +0 -49
  39. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +0 -23
  40. package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +0 -38
  41. package/src/uploadcareimageedit/uploadcareimageeditediting.js +0 -23
  42. package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +0 -48
  43. package/src/uploadcareimageedit/uploadcareimageeditui.js +0 -23
  44. package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +0 -23
  45. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +0 -23
  46. package/src/uploadcareimageedit.d.ts +0 -32
  47. package/src/uploadcareimageedit.js +0 -23
  48. package/src/uploadcareui.d.ts +0 -41
  49. package/src/uploadcareui.js +0 -23
  50. package/src/uploadcareuploadadapter.d.ts +0 -39
  51. package/src/uploadcareuploadadapter.js +0 -23
  52. package/src/utils/common-translations.d.ts +0 -5
  53. package/src/utils/common-translations.js +0 -23
  54. package/src/utils/dialogfocusmanagerview.d.ts +0 -29
  55. package/src/utils/dialogfocusmanagerview.js +0 -23
  56. package/src/utils/editingutils.d.ts +0 -5
  57. package/src/utils/editingutils.js +0 -23
  58. package/src/utils/isancestor.d.ts +0 -8
  59. package/src/utils/isancestor.js +0 -23
  60. package/src/utils/uploadutils.d.ts +0 -5
  61. package/src/utils/uploadutils.js +0 -23
  62. package/theme/uploadcare-form.css +0 -198
  63. package/theme/uploadcare-theme.css +0 -20
  64. package/theme/uploadcareimageedit.css +0 -64
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{SpinnerView as _0x3f68bf,View as _0x462a6f}from'ckeditor5/src/ui.js';export default class ta extends _0x462a6f{constructor(_0x27bc4b){super(_0x27bc4b);const t=_0x27bc4b['t'],_0x26f694=this['bindTemplate'],_0x17386a=new _0x3f68bf();_0x17386a['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x17386a,{'text':_0x26f694['to']('imageUploadProgress',_0x1104fa=>t('Loading\x20image...')+'\x20('+(_0x1104fa||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
7
- */
8
- import { type Locale } from 'ckeditor5/src/utils.js';
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
- /**
14
- * A class representing the form view of the Uploadcare image edit feature.
15
- */
16
- export default class UploadcareImageEditFormView extends DialogFocusManagerView {
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
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x4c82(_0x529c6c,_0x7ac290){const _0xb22b3a=_0xb22b();return _0x4c82=function(_0x4c8273,_0x4f6a83){_0x4c8273=_0x4c8273-0x15c;let _0x5cd88e=_0xb22b3a[_0x4c8273];return _0x5cd88e;},_0x4c82(_0x529c6c,_0x7ac290);}const _0x4ed12c=_0x4c82;(function(_0x3fba05,_0x5e7e0c){const _0x26f824=_0x4c82,_0x18e73e=_0x3fba05();while(!![]){try{const _0x2b0e61=parseInt(_0x26f824(0x17f))/0x1+parseInt(_0x26f824(0x170))/0x2*(-parseInt(_0x26f824(0x178))/0x3)+-parseInt(_0x26f824(0x187))/0x4+parseInt(_0x26f824(0x17c))/0x5*(-parseInt(_0x26f824(0x184))/0x6)+parseInt(_0x26f824(0x16e))/0x7*(parseInt(_0x26f824(0x16f))/0x8)+-parseInt(_0x26f824(0x163))/0x9*(-parseInt(_0x26f824(0x15e))/0xa)+-parseInt(_0x26f824(0x16a))/0xb;if(_0x2b0e61===_0x5e7e0c)break;else _0x18e73e['push'](_0x18e73e['shift']());}catch(_0x45f8ce){_0x18e73e['push'](_0x18e73e['shift']());}}}(_0xb22b,0x22807));function _0xb22b(){const _0x3d6ea6=['532564zexnZO','once','toLowerCase','uploading','addEventListener','status','cancel','addMany','_addUploadcareImageEditorListeners','nodeName','cdnUrl','retry','_items','getFocusableElement','_waitForImageEditorComponent','120DajJeF','_editingView','filter','div','apply','101169ZXlBql','uc-cloud-image-editor','_addErrorViewListeners','ck-uploadcare-form','length','ck-reset_all-excluded','_errorView','1010493UmKkLq','_focusableView','error','render','33733mALoao','184aSAfXZ','88sxoqyQ','addedNodes','element','_loadingView','detail','disconnect','target','add','3540usYVYq','focus','ready','setTemplate','35LNyzgY','querySelector','_setView','211987hZGzZK','fire','observe','set','clear','33834UIVzFx','change:status','createCollection'];_0xb22b=function(){return _0x3d6ea6;};return _0xb22b();}import{View as _0x101a92}from'ckeditor5/src/ui.js';import _0x5538ea from'./uploadcareimageeditformloadingview.js';import _0x220e67 from'./uploadcareimageeditformerrorview.js';import _0x30cdc9 from'./uploadcareimageeditformeditingview.js';import _0x5c18ae from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x5c18ae{[_0x4ed12c(0x193)];[_0x4ed12c(0x173)];[_0x4ed12c(0x169)];[_0x4ed12c(0x15f)];[_0x4ed12c(0x16b)];constructor(_0x54f11f,_0x553f0c,_0x5ce7ee){const _0x111fc0=_0x4ed12c;super(_0x54f11f),this[_0x111fc0(0x193)]=this[_0x111fc0(0x186)](),this[_0x111fc0(0x173)]=new _0x5538ea(_0x54f11f),this[_0x111fc0(0x169)]=new _0x220e67(_0x54f11f),this[_0x111fc0(0x15f)]=new _0x30cdc9(_0x54f11f,_0x5ce7ee),this[_0x111fc0(0x16b)]=new _0x101a92(_0x54f11f),this[_0x111fc0(0x16b)][_0x111fc0(0x17b)](this[_0x111fc0(0x15c)]()),this[_0x111fc0(0x182)](_0x111fc0(0x18c),_0x553f0c),this[_0x111fc0(0x17b)]({'tag':_0x111fc0(0x161),'attributes':{'class':['ck',_0x111fc0(0x168),_0x111fc0(0x166)],'tabindex':'-1'},'children':this[_0x111fc0(0x193)]}),this[_0x111fc0(0x17e)](),this[_0x111fc0(0x188)](_0x111fc0(0x16d),()=>{const _0x9f6308=_0x111fc0;this[_0x9f6308(0x15d)](this[_0x9f6308(0x172)],_0x8202b1=>{const _0xb244c0=_0x9f6308;this[_0xb244c0(0x18f)](_0x8202b1);});}),this['on'](_0x111fc0(0x185),()=>{const _0x185105=_0x111fc0;this[_0x185105(0x17e)]();}),this[_0x111fc0(0x165)]();}[_0x4ed12c(0x179)](){const _0x465f57=_0x4ed12c;this[_0x465f57(0x172)][_0x465f57(0x179)]();}[_0x4ed12c(0x17e)](){const _0x44171b=_0x4ed12c;switch(this[_0x44171b(0x193)][_0x44171b(0x183)](),this[_0x44171b(0x18c)]){case _0x44171b(0x18a):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x173)]);break;case _0x44171b(0x16c):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x169)]);break;case _0x44171b(0x17a):this[_0x44171b(0x193)][_0x44171b(0x18e)]([this[_0x44171b(0x15f)],this[_0x44171b(0x16b)]]);}}[_0x4ed12c(0x15d)](_0x3df9d4,_0x452f24){const _0x2aaaae=_0x4ed12c,_0x128938=_0x2aaaae(0x164),_0x42ec8f=_0x3df9d4[_0x2aaaae(0x17d)](_0x128938);if(_0x42ec8f)return _0x452f24(_0x42ec8f);const _0xbca1ae=new MutationObserver(_0x231183=>{const _0x29d069=_0x2aaaae,_0x2a2e48=_0x231183[_0x29d069(0x160)](_0x7cb922=>_0x7cb922[_0x29d069(0x176)]===_0x3df9d4&&_0x7cb922[_0x29d069(0x171)][_0x29d069(0x167)]>0x0&&_0x7cb922[_0x29d069(0x171)][0x0][_0x29d069(0x190)][_0x29d069(0x189)]()===_0x128938);_0x2a2e48[_0x29d069(0x167)]&&(_0xbca1ae[_0x29d069(0x175)](),_0x452f24(_0x2a2e48[0x0][_0x29d069(0x171)][0x0]));});_0xbca1ae[_0x2aaaae(0x181)](_0x3df9d4,{'childList':!0x0,'subtree':!0x0});}[_0x4ed12c(0x18f)](_0x228809){const _0x53116c=_0x4ed12c;_0x228809[_0x53116c(0x18b)](_0x53116c(0x162),_0x3fd4bb=>{const _0x5625ce=_0x53116c;this[_0x5625ce(0x180)](_0x5625ce(0x162),{'imageSrc':_0x3fd4bb[_0x5625ce(0x174)][_0x5625ce(0x191)]});}),_0x228809[_0x53116c(0x18b)](_0x53116c(0x18d),()=>{const _0x4608b1=_0x53116c;this[_0x4608b1(0x180)](_0x4608b1(0x18d));});}[_0x4ed12c(0x165)](){const _0x46b470=_0x4ed12c;this[_0x46b470(0x169)]['on'](_0x46b470(0x192),()=>{const _0xd1399d=_0x46b470;this[_0xd1399d(0x180)](_0xd1399d(0x192));});}}
@@ -1,49 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimageeditcommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core.js';
10
- import { Dialog } from 'ckeditor5/src/ui.js';
11
- import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js';
12
- /**
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
- export default class UploadcareImageEditCommand extends Command {
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(): readonly [typeof Dialog];
37
- /**
38
- * @inheritDoc
39
- */
40
- constructor(editor: Editor);
41
- /**
42
- * @inheritDoc
43
- */
44
- refresh(): void;
45
- /**
46
- * @inheritDoc
47
- */
48
- execute(): void;
49
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x14cb(_0xdba84b,_0x5e7948){const _0x565a23=_0x565a();return _0x14cb=function(_0x14cbe8,_0x195a59){_0x14cbe8=_0x14cbe8-0x75;let _0x9df335=_0x565a23[_0x14cbe8];return _0x9df335;},_0x14cb(_0xdba84b,_0x5e7948);}const _0x16145b=_0x14cb;(function(_0x2c2687,_0x5a8876){const _0x1413b2=_0x14cb,_0x12a02a=_0x2c2687();while(!![]){try{const _0x4de972=-parseInt(_0x1413b2(0x8a))/0x1*(-parseInt(_0x1413b2(0x94))/0x2)+parseInt(_0x1413b2(0x80))/0x3*(parseInt(_0x1413b2(0x8c))/0x4)+-parseInt(_0x1413b2(0x8f))/0x5*(-parseInt(_0x1413b2(0x81))/0x6)+parseInt(_0x1413b2(0x7b))/0x7*(-parseInt(_0x1413b2(0x85))/0x8)+-parseInt(_0x1413b2(0x87))/0x9+parseInt(_0x1413b2(0x7d))/0xa+parseInt(_0x1413b2(0x89))/0xb*(-parseInt(_0x1413b2(0x7f))/0xc);if(_0x4de972===_0x5a8876)break;else _0x12a02a['push'](_0x12a02a['shift']());}catch(_0x2350c3){_0x12a02a['push'](_0x12a02a['shift']());}}}(_0x565a,0x2c81e));function _0x565a(){const _0x4bb00f=['get','4SwzzJn','refresh','model','293815jXCNEO','editor','document','imageBlock','isActive','1468eOHFMu','requires','_isEditable','getSelectedElement','isEnabled','bind','plugins','uploadcare.allowExternalImagesEditing','element','340970WYWAVr','unbind','2038720YrlTxi','set','12EpuEke','1033347uaVkLQ','30BAcTPN','imageEditController','imageInline','selection','32evsXdL','execute','594819aRKqwg','config','8110047lkoBnn','461uWOBHc'];_0x565a=function(){return _0x4bb00f;};return _0x565a();}import{Command as _0xf3efea}from'ckeditor5/src/core.js';import{Dialog as _0x214f8c}from'ckeditor5/src/ui.js';import _0x4e6a26 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3a8cdd}from'../utils/editingutils.js';export default class D extends _0xf3efea{[_0x16145b(0x82)];static get[_0x16145b(0x95)](){return[_0x214f8c];}[_0x16145b(0x96)];constructor(_0x4cc9ea){const _0x195d39=_0x16145b;super(_0x4cc9ea),this[_0x195d39(0x82)]=void 0x0,this[_0x195d39(0x96)]=_0x3a8cdd(_0x4cc9ea[_0x195d39(0x88)][_0x195d39(0x8b)](_0x195d39(0x79))||[]),this[_0x195d39(0x7e)]({'isActive':!0x1});}[_0x16145b(0x8d)](){const _0x2b6335=_0x16145b,_0x149cad=this[_0x2b6335(0x90)][_0x2b6335(0x8e)][_0x2b6335(0x91)][_0x2b6335(0x84)][_0x2b6335(0x75)]();this[_0x2b6335(0x76)]=this[_0x2b6335(0x96)](_0x149cad);}[_0x16145b(0x86)](){const _0x5d7c69=_0x16145b;this[_0x5d7c69(0x82)]&&(this[_0x5d7c69(0x7c)](_0x5d7c69(0x93)),this[_0x5d7c69(0x82)]=void 0x0);const _0x3b386d=this[_0x5d7c69(0x90)][_0x5d7c69(0x8e)][_0x5d7c69(0x91)][_0x5d7c69(0x84)][_0x5d7c69(0x75)]();_0x3b386d&&(_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x92))||_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x83)))&&(this[_0x5d7c69(0x82)]=new _0x4e6a26(this[_0x5d7c69(0x90)],this[_0x5d7c69(0x90)][_0x5d7c69(0x78)][_0x5d7c69(0x8b)](_0x214f8c),_0x3b386d),this[_0x5d7c69(0x77)](_0x5d7c69(0x93))['to'](this[_0x5d7c69(0x82)],_0x5d7c69(0x93)));}}
@@ -1,38 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimageeditediting
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import { Notification } from 'ckeditor5/src/ui.js';
11
- import UploadcareEditing from '../uploadcareediting.js';
12
- /**
13
- * The Uploadcare image editing plugin.
14
- *
15
- * It complements the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature} by adding editing capabilities for uploaded images.
16
- */
17
- export default class UploadcareImageEditEditing extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "UploadcareImageEditEditing";
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires(): readonly [typeof UploadcareEditing, typeof Notification, "ImageUtils", "ImageEditing"];
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isPremiumPlugin(): true;
34
- /**
35
- * @inheritDoc
36
- */
37
- init(): void;
38
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x760032=_0x2efd;(function(_0x3d0710,_0x2eae43){const _0x552ccf=_0x2efd,_0x2573f4=_0x3d0710();while(!![]){try{const _0x16a771=-parseInt(_0x552ccf(0x15f))/0x1*(-parseInt(_0x552ccf(0x160))/0x2)+-parseInt(_0x552ccf(0x164))/0x3*(-parseInt(_0x552ccf(0x155))/0x4)+parseInt(_0x552ccf(0x157))/0x5*(-parseInt(_0x552ccf(0x156))/0x6)+-parseInt(_0x552ccf(0x15e))/0x7+parseInt(_0x552ccf(0x167))/0x8*(-parseInt(_0x552ccf(0x159))/0x9)+-parseInt(_0x552ccf(0x165))/0xa+parseInt(_0x552ccf(0x158))/0xb;if(_0x16a771===_0x2eae43)break;else _0x2573f4['push'](_0x2573f4['shift']());}catch(_0x56b231){_0x2573f4['push'](_0x2573f4['shift']());}}}(_0x4395,0x61750));function _0x4395(){const _0x55955b=['uploadcareImageReplace','15dngeap','1422090EGMvYl','ImageEditing','1550032EUSFeL','UploadcareImageEditEditing','pluginName','init','requires','2476xSNdHl','222zDqInT','79115xFCUsI','13738846lSPPOC','9USjzIl','commands','uploadcareImageEdit','ImageUtils','add','3870125BBhSNq','310696RrrykZ','4AWQwiG','isOfficialPlugin','isPremiumPlugin'];_0x4395=function(){return _0x55955b;};return _0x4395();}import{Plugin as _0x352768}from'ckeditor5/src/core.js';import{Notification as _0x13c21a}from'ckeditor5/src/ui.js';import _0xb689a8 from'./uploadcareimageeditcommand.js';function _0x2efd(_0x2c4300,_0x50a38f){const _0x43952c=_0x4395();return _0x2efd=function(_0x2efd69,_0x52f289){_0x2efd69=_0x2efd69-0x154;let _0x1cad41=_0x43952c[_0x2efd69];return _0x1cad41;},_0x2efd(_0x2c4300,_0x50a38f);}import _0x420d6a from'./uploadcareimagereplacecommand.js';import _0x37bb87 from'../uploadcareediting.js';export default class g extends _0x352768{static get[_0x760032(0x169)](){const _0x112fad=_0x760032;return _0x112fad(0x168);}static get[_0x760032(0x154)](){const _0x50dec0=_0x760032;return[_0x37bb87,_0x13c21a,_0x50dec0(0x15c),_0x50dec0(0x166)];}static get[_0x760032(0x161)](){return!0x0;}static get[_0x760032(0x162)](){return!0x0;}[_0x760032(0x16a)](){const _0x9dd3e7=_0x760032,{editor:_0x3bf73b}=this;_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x15b),new _0xb689a8(_0x3bf73b)),_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x163),new _0x420d6a(_0x3bf73b));}}
@@ -1,48 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimageeditui
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import '@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';
11
- import '../../theme/uploadcare-theme.css';
12
- /**
13
- * The UI plugin of the Uploadcare image edit feature.
14
- *
15
- * It registers the `'uploadcareImageEdit'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
16
- * that allows you to open the Uploadcare dialog and edit the image.
17
- */
18
- export default class UploadcareImageEditUI extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get pluginName(): "UploadcareImageEditUI";
23
- /**
24
- * @inheritDoc
25
- */
26
- static get isOfficialPlugin(): true;
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isPremiumPlugin(): true;
31
- /**
32
- * The cache of image URLs that had been uploaded to Uploadcare.
33
- */
34
- get imageCache(): ImageCache;
35
- /**
36
- * @inheritDoc
37
- */
38
- init(): void;
39
- }
40
- type ImageCache = Map<string, {
41
- id: string;
42
- url: string;
43
- dimension: {
44
- width: number;
45
- height: number;
46
- };
47
- }>;
48
- export {};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{Plugin as _0x51e677}from'ckeditor5/src/core.js';import{ButtonView as _0x9c1631}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d2524}from'ckeditor5/src/icons.js';import{createElement as _0x2a610f}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x51e677{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x131f8e=this['editor'];_0x131f8e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x128f2b=>{const _0x3927b7=_0x131f8e['commands']['get']('uploadcareImageEdit'),_0x34272a=new _0x9c1631(_0x128f2b),t=_0x128f2b['t'];return _0x34272a['set']({'icon':_0x4d2524,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34272a['bind']('isEnabled')['to'](_0x3927b7),_0x34272a['bind']('isOn')['to'](_0x3927b7,'isActive'),this['listenTo'](_0x34272a,'execute',()=>{_0x131f8e['execute']('uploadcareImageEdit'),_0x131f8e['editing']['view']['focus']();}),_0x34272a;}),this['_initConfig']();}['_initConfig'](){const _0x10bdac=_0x2a610f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10bdac),this['listenTo'](this['editor'],'destroy',()=>{_0x10bdac['remove']();});}}
@@ -1,23 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareimageedit/uploadcareimagereplacecommand
7
- */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- /**
10
- * The Uploadcare replace image command.
11
- *
12
- * It replaces given image element attributes.
13
- */
14
- export default class UploadcareImageReplaceCommand extends Command {
15
- /**
16
- * @inheritDoc
17
- */
18
- refresh(): void;
19
- /**
20
- * @inheritDoc
21
- */
22
- execute(attributes: Record<string, string | number | any>): void;
23
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x13c087=_0x4fbb;(function(_0x41a7d1,_0x4e1179){const _0x2d113e=_0x4fbb,_0x28de9a=_0x41a7d1();while(!![]){try{const _0x21e30e=parseInt(_0x2d113e(0x1f2))/0x1*(-parseInt(_0x2d113e(0x1e1))/0x2)+parseInt(_0x2d113e(0x1ed))/0x3+-parseInt(_0x2d113e(0x1e8))/0x4+parseInt(_0x2d113e(0x1ec))/0x5*(parseInt(_0x2d113e(0x1ee))/0x6)+parseInt(_0x2d113e(0x1e5))/0x7+parseInt(_0x2d113e(0x1dd))/0x8+parseInt(_0x2d113e(0x1de))/0x9*(parseInt(_0x2d113e(0x1f0))/0xa);if(_0x21e30e===_0x4e1179)break;else _0x28de9a['push'](_0x28de9a['shift']());}catch(_0x41f516){_0x28de9a['push'](_0x28de9a['shift']());}}}(_0x4b2c,0xd04b2));import{Command as _0x34454e}from'ckeditor5/src/core.js';function _0x4fbb(_0x3501ca,_0x5518fe){const _0x4b2ccf=_0x4b2c();return _0x4fbb=function(_0x4fbb7d,_0x43c968){_0x4fbb7d=_0x4fbb7d-0x1dd;let _0x1b5f9d=_0x4b2ccf[_0x4fbb7d];return _0x1b5f9d;},_0x4fbb(_0x3501ca,_0x5518fe);}export default class O extends _0x34454e{[_0x13c087(0x1f4)](){const _0x57b8b9=_0x13c087,_0x23e594=this[_0x57b8b9(0x1e7)][_0x57b8b9(0x1e2)][_0x57b8b9(0x1e6)][_0x57b8b9(0x1f3)][_0x57b8b9(0x1eb)]();this[_0x57b8b9(0x1e0)]=Boolean(_0x23e594&&(_0x23e594['is'](_0x57b8b9(0x1e9),_0x57b8b9(0x1f5))||_0x23e594['is'](_0x57b8b9(0x1e9),_0x57b8b9(0x1e3))));}[_0x13c087(0x1f6)](_0x5df961){const _0x507db8=_0x13c087,_0x2fd92d=this[_0x507db8(0x1e7)][_0x507db8(0x1e2)][_0x507db8(0x1e6)][_0x507db8(0x1f3)][_0x507db8(0x1eb)]();this[_0x507db8(0x1e7)][_0x507db8(0x1e2)][_0x507db8(0x1f1)](_0x194ac3=>{const _0x5f1787=_0x507db8;_0x194ac3[_0x5f1787(0x1ea)](_0x5df961,_0x2fd92d),_0x194ac3[_0x5f1787(0x1df)](_0x5f1787(0x1e4),_0x2fd92d),_0x194ac3[_0x5f1787(0x1df)](_0x5f1787(0x1ef),_0x2fd92d);});}}function _0x4b2c(){const _0xb6c78d=['521248KVdMjU','document','editor','3706984ToYmeS','element','setAttributes','getSelectedElement','135RfLvez','1453179iYtiJs','174216RDwmfS','sizes','5986690PEneKO','change','840943yRYgwD','selection','refresh','imageBlock','execute','2583728AJWHGF','27oepFZi','removeAttribute','isEnabled','4DzAHVa','model','imageInline','srcset'];_0x4b2c=function(){return _0xb6c78d;};return _0x4b2c();}
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareimageedit
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import UploadcareImageEditEditing from './uploadcareimageedit/uploadcareimageeditediting.js';
11
- import UploadcareImageEditUI from './uploadcareimageedit/uploadcareimageeditui.js';
12
- /**
13
- * The Uploadcare image edit feature.
14
- */
15
- export default class UploadcareImageEdit extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): "UploadcareImageEdit";
20
- /**
21
- * @inheritDoc
22
- */
23
- static get requires(): readonly [typeof UploadcareImageEditEditing, typeof UploadcareImageEditUI];
24
- /**
25
- * @inheritDoc
26
- */
27
- static get isOfficialPlugin(): true;
28
- /**
29
- * @inheritDoc
30
- */
31
- static get isPremiumPlugin(): true;
32
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x8fa0(_0x55b70e,_0x326b1a){var _0x4378fe=_0x4378();return _0x8fa0=function(_0x8fa0b4,_0x449f68){_0x8fa0b4=_0x8fa0b4-0x143;var _0x1d77ec=_0x4378fe[_0x8fa0b4];return _0x1d77ec;},_0x8fa0(_0x55b70e,_0x326b1a);}function _0x4378(){var _0x483b1b=['47194NFCKbE','40580ieQXJg','26ejkHIE','231ziqimJ','isOfficialPlugin','187576mTvYPj','requires','1689721sGajvC','pluginName','117cforJQ','UploadcareImageEdit','isPremiumPlugin','1769040apZNmx','150vHyDmL','5106983CPqeQK','1902018lziETC'];_0x4378=function(){return _0x483b1b;};return _0x4378();}var _0xe71b71=_0x8fa0;(function(_0x5d1742,_0x30baeb){var _0x6743aa=_0x8fa0,_0x222ed6=_0x5d1742();while(!![]){try{var _0x419315=parseInt(_0x6743aa(0x144))/0x1*(-parseInt(_0x6743aa(0x146))/0x2)+parseInt(_0x6743aa(0x147))/0x3*(-parseInt(_0x6743aa(0x145))/0x4)+parseInt(_0x6743aa(0x150))/0x5+-parseInt(_0x6743aa(0x143))/0x6+-parseInt(_0x6743aa(0x152))/0x7+-parseInt(_0x6743aa(0x149))/0x8*(-parseInt(_0x6743aa(0x14d))/0x9)+-parseInt(_0x6743aa(0x151))/0xa*(-parseInt(_0x6743aa(0x14b))/0xb);if(_0x419315===_0x30baeb)break;else _0x222ed6['push'](_0x222ed6['shift']());}catch(_0x277eb2){_0x222ed6['push'](_0x222ed6['shift']());}}}(_0x4378,0x7f535));import{Plugin as _0x1a34c2}from'ckeditor5/src/core.js';import _0x2acd74 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1c03de from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x1a34c2{static get[_0xe71b71(0x14c)](){var _0x3cd9bb=_0xe71b71;return _0x3cd9bb(0x14e);}static get[_0xe71b71(0x14a)](){return[_0x2acd74,_0x1c03de];}static get[_0xe71b71(0x148)](){return!0x0;}static get[_0xe71b71(0x14f)](){return!0x0;}}
@@ -1,41 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareui
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import '@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';
11
- import '../theme/uploadcare-theme.css';
12
- import '../theme/uploadcareimageedit.css';
13
- /**
14
- * The UI plugin of the AI assistant.
15
- */
16
- export default class UploadcareUI extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "UploadcareUI";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get isOfficialPlugin(): true;
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isPremiumPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- init(): void;
33
- /**
34
- * @inheritDoc
35
- */
36
- afterInit(): void;
37
- /**
38
- * @inheritDoc
39
- */
40
- destroy(): void;
41
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x11b573=_0x46e0;(function(_0x19d96d,_0x2af587){const _0x358c00=_0x46e0,_0x3fdee1=_0x19d96d();while(!![]){try{const _0xb94836=-parseInt(_0x358c00(0x171))/0x1+-parseInt(_0x358c00(0x17a))/0x2+parseInt(_0x358c00(0x16e))/0x3*(-parseInt(_0x358c00(0x182))/0x4)+parseInt(_0x358c00(0x140))/0x5+-parseInt(_0x358c00(0x143))/0x6*(-parseInt(_0x358c00(0x14d))/0x7)+parseInt(_0x358c00(0x180))/0x8+-parseInt(_0x358c00(0x16d))/0x9*(-parseInt(_0x358c00(0x13e))/0xa);if(_0xb94836===_0x2af587)break;else _0x3fdee1['push'](_0x3fdee1['shift']());}catch(_0x2cc4a0){_0x3fdee1['push'](_0x3fdee1['shift']());}}}(_0x3b8a,0xba6ca));import{Plugin as _0x294094}from'ckeditor5/src/core.js';function _0x3b8a(){const _0x4b98d0=['2553940bYibHe','config','init','6846gdYJrD','get','Insert','uploadcareLicenseKeyNotAllowed','_createDropdownButtons','uploadcareLicenseKeyDomainLimit','URL','Dropbox','destroy','GPhotos','3780LHujQM','text','featureNotAllowed','pluginName','_createButton','execute','_createMenuBarButtons','plugins','isEnabled','uploadcare.uploader.sourceList','upload','_normalizeConfigSourceList','forEach','trialLimit','reduce','_createToolbarButton','commands','domainLimit','shortText','icon','has','expired','Uploadcare','invalid','uploadcareLicenseKeyEvaluationLimit','usageLimit','entries','licenseKey','url','isImageSelected','assetManager','isPremiumPlugin','139149ZYqGUv','16374AONreX','UploadcareUI','editor','157295naXTqO','withText','GDrive','uploadcare','bind','label','map','OneDrive','Instagram','1068550UechLK','_getIntegrationKey','isOfficialPlugin','Facebook','tooltip','evaluationLimit','3179872XVXPXk','uploadcareLicenseKeyInvalid','436TFEhck','uploadcareLicenseKeyTrialLimit','_showLicenseError','_licenseKeyCheckInterval','locale','Local','uploadcareLicenseKeyExpired','ImageInsertUI','afterInit','type','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyValid','registerIntegration','push','340chdDNH','Replace'];_0x3b8a=function(){return _0x4b98d0;};return _0x3b8a();}import{IconDropbox as _0x3bb9cd,IconFacebook as _0x4c3831,IconGoogleDrive as _0x858ee3,IconGooglePhotos as _0x4c70ec,IconUploadcareImageUpload as _0xc68339,IconInstagram as _0x456f2b,IconUploadcareLink as _0x349808,IconOneDrive as _0x1c4968}from'ckeditor5/src/icons.js';import{ButtonView as _0x3a5a84,MenuBarMenuListItemButtonView as _0x32f2c3}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x29b6e6}from'./uploadcareconfig.js';function _0x46e0(_0x26c129,_0x2f5c7c){const _0x3b8a20=_0x3b8a();return _0x46e0=function(_0x46e0d6,_0x2f89af){_0x46e0d6=_0x46e0d6-0x13c;let _0x4c1d61=_0x3b8a20[_0x46e0d6];return _0x4c1d61;},_0x46e0(_0x26c129,_0x2f5c7c);}import{getTranslation as _0x436051}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x294094{[_0x11b573(0x168)];[_0x11b573(0x185)];static get[_0x11b573(0x150)](){const _0x3bf759=_0x11b573;return _0x3bf759(0x16f);}static get[_0x11b573(0x17c)](){return!0x0;}static get[_0x11b573(0x16c)](){return!0x0;}[_0x11b573(0x142)](){const _0x5676bc=_0x11b573;this[_0x5676bc(0x168)]=this[_0x5676bc(0x170)][_0x5676bc(0x141)][_0x5676bc(0x144)](_0x5676bc(0x168));const _0x16cb44=this[_0x5676bc(0x170)];this[_0x5676bc(0x185)]=setInterval(()=>{const _0x93e774=_0x5676bc;let _0x253b87;for(const _0x3c7dfa in _0x16cb44){const _0x5b541f=_0x3c7dfa,_0x55bbf8=_0x16cb44[_0x5b541f];if(_0x93e774(0x18d)==_0x55bbf8||_0x93e774(0x181)==_0x55bbf8||_0x93e774(0x188)==_0x55bbf8||_0x93e774(0x148)==_0x55bbf8||_0x93e774(0x146)==_0x55bbf8||_0x93e774(0x165)==_0x55bbf8||_0x93e774(0x183)==_0x55bbf8||_0x93e774(0x18c)==_0x55bbf8){delete _0x16cb44[_0x5b541f],_0x253b87=_0x55bbf8,clearInterval(this[_0x93e774(0x185)]),this[_0x93e774(0x185)]=void 0x0;break;}}_0x93e774(0x181)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x164)),_0x93e774(0x188)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x162)),_0x93e774(0x148)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x15e)),_0x93e774(0x146)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x14f),_0x93e774(0x163)),_0x93e774(0x165)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x17f)),_0x93e774(0x183)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x15a)),_0x93e774(0x18c)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x166));},0x3e8);}[_0x11b573(0x18a)](){const _0x5ca118=_0x11b573,{editor:_0x565867}=this,_0x3db466=_0x565867[_0x5ca118(0x15d)][_0x5ca118(0x144)](_0x5ca118(0x174));if(!_0x3db466)return;const _0x485d9a=this[_0x5ca118(0x158)](_0x565867[_0x5ca118(0x141)][_0x5ca118(0x144)](_0x5ca118(0x156)))[_0x5ca118(0x15b)]((_0x461a53,_0x2b3b8b)=>{const _0x56f232=_0x5ca118,_0x13c49b=this[_0x56f232(0x17b)](_0x2b3b8b[_0x56f232(0x18b)]);return _0x461a53[_0x13c49b]||(_0x461a53[_0x13c49b]=[]),_0x461a53[_0x13c49b][_0x56f232(0x13d)](_0x2b3b8b),_0x461a53;},{});_0x565867[_0x5ca118(0x154)][_0x5ca118(0x161)](_0x5ca118(0x189))&&_0x565867[_0x5ca118(0x15d)][_0x5ca118(0x144)](_0x5ca118(0x174))&&Object[_0x5ca118(0x167)](_0x485d9a)[_0x5ca118(0x159)](([_0x6a53ac,_0x345481])=>{const _0x277108=_0x5ca118;_0x565867[_0x277108(0x154)][_0x277108(0x144)](_0x277108(0x189))[_0x277108(0x13c)]({'name':_0x6a53ac,'observable':()=>_0x3db466,'buttonViewCreator':()=>this[_0x277108(0x15c)](_0x345481),'formViewCreator':()=>this[_0x277108(0x147)](_0x345481),'menuBarButtonViewCreator':()=>this[_0x277108(0x153)](_0x345481),'override':_0x277108(0x16b)!==_0x6a53ac});});}[_0x11b573(0x14b)](){const _0x29edec=_0x11b573;super[_0x29edec(0x14b)](),this[_0x29edec(0x185)]&&clearInterval(this[_0x29edec(0x185)]);}[_0x11b573(0x158)](_0x527a87){const _0x5eeeb4=_0x11b573,{locale:_0x4ff76e}=this[_0x5eeeb4(0x170)];return _0x527a87[_0x5eeeb4(0x177)](_0x459bfc=>{const _0x55140f=_0x5eeeb4,_0x3f7805=_0x436051(_0x4ff76e,_0x459bfc,_0x55140f(0x145));switch(_0x459bfc){case _0x29b6e6[_0x55140f(0x187)]:return{'icon':_0xc68339,'type':_0x29b6e6[_0x55140f(0x187)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x149)]:return{'icon':_0x349808,'type':_0x29b6e6[_0x55140f(0x149)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x14a)]:return{'icon':_0x3bb9cd,'type':_0x29b6e6[_0x55140f(0x14a)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x17d)]:return{'icon':_0x4c3831,'type':_0x29b6e6[_0x55140f(0x17d)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x173)]:return{'icon':_0x858ee3,'type':_0x29b6e6[_0x55140f(0x173)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x14c)]:return{'icon':_0x4c70ec,'type':_0x29b6e6[_0x55140f(0x14c)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x179)]:return{'icon':_0x456f2b,'type':_0x29b6e6[_0x55140f(0x179)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x178)]:return{'icon':_0x1c4968,'type':_0x29b6e6[_0x55140f(0x178)],..._0x3f7805};}});}[_0x11b573(0x17b)](_0x131b10){const _0x2b3138=_0x11b573;switch(_0x131b10){case _0x29b6e6[_0x2b3138(0x187)]:return _0x2b3138(0x157);case _0x29b6e6[_0x2b3138(0x149)]:return _0x2b3138(0x169);default:return _0x2b3138(0x16b);}}[_0x11b573(0x151)](_0x2e6f83,_0x14a4db){const _0x158a6d=_0x11b573,_0x10b196=this[_0x158a6d(0x170)],_0x18ec1d=new _0x2e6f83(_0x10b196[_0x158a6d(0x186)]),_0x1f7c30=_0x10b196[_0x158a6d(0x15d)][_0x158a6d(0x144)](_0x158a6d(0x174));return _0x18ec1d[_0x158a6d(0x175)](_0x158a6d(0x155))['to'](_0x1f7c30),_0x18ec1d['on'](_0x158a6d(0x152),()=>{const _0x2b0938=_0x158a6d;_0x1f7c30[_0x2b0938(0x152)](_0x14a4db);}),_0x18ec1d;}[_0x11b573(0x15c)](_0x45979a){const _0x1edc1c=_0x11b573,{locale:_0x26b0c5}=this[_0x1edc1c(0x170)],_0x5370f3=this[_0x1edc1c(0x170)][_0x1edc1c(0x154)][_0x1edc1c(0x144)](_0x1edc1c(0x189)),_0x471fac=_0x45979a[0x0],_0x2382f8=this[_0x1edc1c(0x151)](_0x3a5a84,_0x471fac[_0x1edc1c(0x18b)]);return _0x2382f8[_0x1edc1c(0x160)]=_0x471fac[_0x1edc1c(0x160)],_0x2382f8[_0x1edc1c(0x175)](_0x1edc1c(0x176))['to'](_0x5370f3,_0x1edc1c(0x16a),_0x1b0ca9=>_0x436051(_0x26b0c5,_0x471fac[_0x1edc1c(0x18b)],_0x1b0ca9?_0x1edc1c(0x13f):_0x1edc1c(0x145))[_0x1edc1c(0x14e)]),_0x2382f8[_0x1edc1c(0x17e)]=!0x0,_0x2382f8;}[_0x11b573(0x147)](_0x47b2f5){const _0x446473=_0x11b573,{locale:_0x599a7c}=this[_0x446473(0x170)],_0x41ff37=this[_0x446473(0x170)][_0x446473(0x154)][_0x446473(0x144)](_0x446473(0x189));return _0x47b2f5[_0x446473(0x177)](_0x325aa0=>{const _0x53f0e4=_0x446473,_0x51753d=this[_0x53f0e4(0x151)](_0x3a5a84,_0x325aa0[_0x53f0e4(0x18b)]);return _0x51753d[_0x53f0e4(0x172)]=!0x0,_0x51753d[_0x53f0e4(0x160)]=_0x325aa0[_0x53f0e4(0x160)],_0x51753d[_0x53f0e4(0x175)](_0x53f0e4(0x176))['to'](_0x41ff37,_0x53f0e4(0x16a),_0x2a49e1=>_0x436051(_0x599a7c,_0x325aa0[_0x53f0e4(0x18b)],_0x2a49e1?_0x53f0e4(0x13f):_0x53f0e4(0x145))[_0x53f0e4(0x14e)]),_0x51753d;});}[_0x11b573(0x153)](_0x13cf93){const _0x4f5d0f=_0x11b573;return _0x13cf93[_0x4f5d0f(0x177)](_0x3ee24d=>{const _0x526680=_0x4f5d0f,_0x3a4ea8=this[_0x526680(0x151)](_0x32f2c3,_0x3ee24d[_0x526680(0x18b)]);return _0x3a4ea8[_0x526680(0x160)]=_0x3ee24d[_0x526680(0x160)],_0x3a4ea8[_0x526680(0x176)]=_0x3ee24d[_0x526680(0x15f)],_0x3a4ea8;});}}
@@ -1,39 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- /**
6
- * @module uploadcare/uploadcareuploadadapter
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core.js';
10
- import { FileRepository } from 'ckeditor5/src/upload.js';
11
- import UploadcareEditing from './uploadcareediting.js';
12
- /**
13
- * A plugin that enables file uploads in CKEditor 5 using the Uploadcare server–side connector.
14
- *
15
- * Check out the {@glink features/images/image-upload/image-upload Image upload overview} guide to learn about
16
- * other ways to upload images into CKEditor 5.
17
- */
18
- export default class UploadcareUploadAdapter extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get requires(): readonly ["ImageUploadEditing", "ImageUploadProgress", typeof FileRepository, typeof UploadcareEditing];
23
- /**
24
- * @inheritDoc
25
- */
26
- static get pluginName(): "UploadcareUploadAdapter";
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isOfficialPlugin(): true;
31
- /**
32
- * @inheritDoc
33
- */
34
- static get isPremiumPlugin(): true;
35
- /**
36
- * @inheritDoc
37
- */
38
- afterInit(): Promise<void>;
39
- }
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{Plugin as _0x4f4d60}from'ckeditor5/src/core.js';import{FileRepository as _0x27dd10}from'ckeditor5/src/upload.js';import _0x59b544 from'./uploadcareediting.js';import _0x2a6d3c from'./utils/uploadutils.js';import{getImageUrls as _0x2d48a8}from'./utils/editingutils.js';export default class p extends _0x4f4d60{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x27dd10,_0x59b544];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xea18ea=this['editor'];if(!!!_0xea18ea['config']['get']('uploadcare'))return;_0xea18ea['plugins']['get'](_0x27dd10)['createUploadAdapter']=_0x734dc7=>new A(_0x734dc7,_0xea18ea),_0xea18ea['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x55ac5a,{imageElement:_0x3813b0,data:_0x2e1f4c})=>{_0xea18ea['model']['change'](_0x4cb712=>{_0x4cb712['setAttribute']('uploadcareImageId',_0x2e1f4c['uploadcareImageId'],_0x3813b0);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x3a80d6,_0x6b136d){this['loader']=_0x3a80d6,this['editor']=_0x6b136d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4c4637=this['editor']['config']['get']('uploadcare.pubkey'),_0x506f3a=await this['loader']['file'];return _0x2a6d3c['upload']({'file':_0x506f3a,'publicKey':_0x4c4637,'signal':this['controller']['signal'],'onProgress':_0x142fc7=>{_0x142fc7&&_0x142fc7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x142fc7['value']);}})['then'](async _0xe3cab2=>{const {imageFallbackUrl:_0x592c00,imageSources:_0x368f97}=_0x2d48a8(_0xe3cab2['cdnUrl'],_0xe3cab2['imageInfo']['width']);return{'uploadcareImageId':_0xe3cab2['uuid'],'default':_0x592c00,'sources':_0x368f97};})['catch'](()=>{const _0x53e97d=t('Cannot\x20upload\x20file:')+('\x20'+_0x506f3a['name']+'.');return Promise['reject'](_0x53e97d);});}['abort'](){this['controller']['abort']();}}
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2025, 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
- export {};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{UploadcareSource as _0x32a9c1}from'../uploadcareconfig.js';export function getTranslation(_0x1f4598,_0x110178,_0x3bb9b0){const t=_0x1f4598['t'],_0x440b0e=_0x1f4598['t'];switch(_0x110178){case _0x32a9c1['Local']:return{'text':_0x440b0e('Insert'===_0x3bb9b0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x440b0e('From\x20computer')};case _0x32a9c1['URL']:return{'text':'Insert'===_0x3bb9b0?_0x440b0e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x440b0e('Via\x20URL')};case _0x32a9c1['Dropbox']:return{'text':t('Insert'===_0x3bb9b0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x32a9c1['Facebook']:return{'text':t('Insert'===_0x3bb9b0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x32a9c1['GDrive']:return{'text':t('Insert'===_0x3bb9b0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x32a9c1['GPhotos']:return{'text':t('Insert'===_0x3bb9b0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x32a9c1['Instagram']:return{'text':t('Insert'===_0x3bb9b0?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x32a9c1['OneDrive']:return{'text':t('Insert'===_0x3bb9b0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x110178;}}