@ckeditor/ckeditor5-uploadcare 45.2.1 → 46.0.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/build/uploadcare.js +1 -1
- package/dist/index-editor.css +2 -2
- package/dist/index.css +2 -2
- 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/package.json +11 -11
- package/src/augmentation.d.ts +4 -4
- package/src/index.d.ts +10 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -2
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.d.ts +3 -3
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.d.ts +3 -3
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.d.ts +2 -2
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +2 -3
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.d.ts +13 -3
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +3 -3
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +3 -4
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.d.ts +3 -3
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.d.ts +2 -2
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.d.ts +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
|
@@ -15,7 +15,7 @@ import '../../theme/uploadcare-theme.css';
|
|
|
15
15
|
* It registers the `'uploadcareImageEdit'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
|
|
16
16
|
* that allows you to open the Uploadcare dialog and edit the image.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class UploadcareImageEditUI extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
@@ -31,13 +31,13 @@ export default class UploadcareImageEditUI extends Plugin {
|
|
|
31
31
|
/**
|
|
32
32
|
* The cache of image URLs that had been uploaded to Uploadcare.
|
|
33
33
|
*/
|
|
34
|
-
get imageCache():
|
|
34
|
+
get imageCache(): UploadcareImageCache;
|
|
35
35
|
/**
|
|
36
36
|
* @inheritDoc
|
|
37
37
|
*/
|
|
38
38
|
init(): void;
|
|
39
39
|
}
|
|
40
|
-
type
|
|
40
|
+
export type UploadcareImageCache = Map<string, {
|
|
41
41
|
id: string;
|
|
42
42
|
url: string;
|
|
43
43
|
dimension: {
|
|
@@ -45,4 +45,3 @@ type ImageCache = Map<string, {
|
|
|
45
45
|
height: number;
|
|
46
46
|
};
|
|
47
47
|
}>;
|
|
48
|
-
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x57baf0}from'ckeditor5/src/core.js';import{ButtonView as _0x1ed3c4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x34b0af}from'ckeditor5/src/icons.js';import{createElement as _0xe79a77}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x57baf0{['_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 _0x4c1b2c=this['editor'];_0x4c1b2c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1eec14=>{const _0x3e37bb=_0x4c1b2c['commands']['get']('uploadcareImageEdit'),_0x3b4576=new _0x1ed3c4(_0x1eec14),t=_0x1eec14['t'];return _0x3b4576['set']({'icon':_0x34b0af,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b4576['bind']('isEnabled')['to'](_0x3e37bb),_0x3b4576['bind']('isOn')['to'](_0x3e37bb,'isActive'),this['listenTo'](_0x3b4576,'execute',()=>{_0x4c1b2c['execute']('uploadcareImageEdit'),_0x4c1b2c['editing']['view']['focus']();}),_0x3b4576;}),this['_initConfig']();}['_initConfig'](){const _0x5944cc=_0xe79a77(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5944cc),this['listenTo'](this['editor'],'destroy',()=>{_0x5944cc['remove']();});}}
|
|
@@ -11,7 +11,7 @@ import { Command } from 'ckeditor5/src/core.js';
|
|
|
11
11
|
*
|
|
12
12
|
* It replaces given image element attributes.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class UploadcareImageReplaceCommand extends Command {
|
|
15
15
|
/**
|
|
16
16
|
* @inheritDoc
|
|
17
17
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x6e08(_0x425855,_0x43ff14){const _0xb95c53=_0xb95c();return _0x6e08=function(_0x6e08d8,_0x320baa){_0x6e08d8=_0x6e08d8-0x1e4;let _0x43729d=_0xb95c53[_0x6e08d8];return _0x43729d;},_0x6e08(_0x425855,_0x43ff14);}const _0x2b407a=_0x6e08;function _0xb95c(){const _0x26fadd=['1940541ZqryqN','document','getSelectedElement','execute','64274irWFHk','isEnabled','sizes','setAttributes','removeAttribute','7342408kvSPya','60950LPYYxx','editor','element','4986216ACqPmc','509536sUoaqE','5CPorEO','change','model','908352uzXWvw','srcset','imageInline','refresh','imageBlock','selection'];_0xb95c=function(){return _0x26fadd;};return _0xb95c();}(function(_0x204ba6,_0x82e3f){const _0x2762e4=_0x6e08,_0x1f688a=_0x204ba6();while(!![]){try{const _0x1426c7=parseInt(_0x2762e4(0x1f9))/0x1+-parseInt(_0x2762e4(0x1e5))/0x2+-parseInt(_0x2762e4(0x1ef))/0x3+-parseInt(_0x2762e4(0x1e9))/0x4*(parseInt(_0x2762e4(0x1e6))/0x5)+parseInt(_0x2762e4(0x1e4))/0x6+-parseInt(_0x2762e4(0x1f3))/0x7+parseInt(_0x2762e4(0x1f8))/0x8;if(_0x1426c7===_0x82e3f)break;else _0x1f688a['push'](_0x1f688a['shift']());}catch(_0x357ef0){_0x1f688a['push'](_0x1f688a['shift']());}}}(_0xb95c,0xa409e));import{Command as _0xe65e1c}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0xe65e1c{[_0x2b407a(0x1ec)](){const _0x557f80=_0x2b407a,_0x59b76a=this[_0x557f80(0x1fa)][_0x557f80(0x1e8)][_0x557f80(0x1f0)][_0x557f80(0x1ee)][_0x557f80(0x1f1)]();this[_0x557f80(0x1f4)]=Boolean(_0x59b76a&&(_0x59b76a['is'](_0x557f80(0x1fb),_0x557f80(0x1ed))||_0x59b76a['is'](_0x557f80(0x1fb),_0x557f80(0x1eb))));}[_0x2b407a(0x1f2)](_0x3ce4aa){const _0xd370f2=_0x2b407a,_0x25e2af=this[_0xd370f2(0x1fa)][_0xd370f2(0x1e8)][_0xd370f2(0x1f0)][_0xd370f2(0x1ee)][_0xd370f2(0x1f1)]();this[_0xd370f2(0x1fa)][_0xd370f2(0x1e8)][_0xd370f2(0x1e7)](_0x43d915=>{const _0x189f7a=_0xd370f2;_0x43d915[_0x189f7a(0x1f6)](_0x3ce4aa,_0x25e2af),_0x43d915[_0x189f7a(0x1f7)](_0x189f7a(0x1ea),_0x25e2af),_0x43d915[_0x189f7a(0x1f7)](_0x189f7a(0x1f5),_0x25e2af);});}}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import UploadcareImageEditEditing from './uploadcareimageedit/uploadcareimageeditediting.js';
|
|
11
|
-
import UploadcareImageEditUI from './uploadcareimageedit/uploadcareimageeditui.js';
|
|
10
|
+
import { UploadcareImageEditEditing } from './uploadcareimageedit/uploadcareimageeditediting.js';
|
|
11
|
+
import { UploadcareImageEditUI } from './uploadcareimageedit/uploadcareimageeditui.js';
|
|
12
12
|
/**
|
|
13
13
|
* The Uploadcare image edit feature.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class UploadcareImageEdit extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5c35(_0x32d0f5,_0x4e9939){var _0x4950b4=_0x4950();return _0x5c35=function(_0x5c3584,_0x390475){_0x5c3584=_0x5c3584-0x97;var _0x2b764b=_0x4950b4[_0x5c3584];return _0x2b764b;},_0x5c35(_0x32d0f5,_0x4e9939);}var _0x20209c=_0x5c35;(function(_0x2dde03,_0x54a910){var _0x15e5d2=_0x5c35,_0x512324=_0x2dde03();while(!![]){try{var _0x56e224=-parseInt(_0x15e5d2(0x9a))/0x1+-parseInt(_0x15e5d2(0xa1))/0x2+-parseInt(_0x15e5d2(0xa3))/0x3*(parseInt(_0x15e5d2(0xa4))/0x4)+parseInt(_0x15e5d2(0xa2))/0x5*(parseInt(_0x15e5d2(0x98))/0x6)+-parseInt(_0x15e5d2(0x9f))/0x7+parseInt(_0x15e5d2(0x9e))/0x8+-parseInt(_0x15e5d2(0x9c))/0x9;if(_0x56e224===_0x54a910)break;else _0x512324['push'](_0x512324['shift']());}catch(_0x166042){_0x512324['push'](_0x512324['shift']());}}}(_0x4950,0x25deb));function _0x4950(){var _0x2a1184=['105819PeMxCO','isPremiumPlugin','78624CVsHVD','5jfyBjp','3lIoEkE','75316HZlVEg','UploadcareImageEdit','1558818KqCfXv','isOfficialPlugin','40141IEnlbW','pluginName','605826HxJLwE','requires','608200XSKhkf'];_0x4950=function(){return _0x2a1184;};return _0x4950();}import{Plugin as _0x3e7e4}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x6545}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x442c49}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x3e7e4{static get[_0x20209c(0x9b)](){var _0x52e2df=_0x20209c;return _0x52e2df(0x97);}static get[_0x20209c(0x9d)](){return[_0x6545,_0x442c49];}static get[_0x20209c(0x99)](){return!0x0;}static get[_0x20209c(0xa0)](){return!0x0;}}
|
package/src/uploadcareui.d.ts
CHANGED
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x349d(_0x2bc5bf,_0x6a4922){const _0x19c3a2=_0x19c3();return _0x349d=function(_0x349d87,_0x1845f2){_0x349d87=_0x349d87-0x1f4;let _0x39a567=_0x19c3a2[_0x349d87];return _0x39a567;},_0x349d(_0x2bc5bf,_0x6a4922);}const _0x59cc01=_0x349d;(function(_0x2dee15,_0x4ecdf6){const _0xdc97f9=_0x349d,_0x183d9b=_0x2dee15();while(!![]){try{const _0x459b69=parseInt(_0xdc97f9(0x221))/0x1+-parseInt(_0xdc97f9(0x22e))/0x2+-parseInt(_0xdc97f9(0x23c))/0x3+-parseInt(_0xdc97f9(0x23f))/0x4*(-parseInt(_0xdc97f9(0x207))/0x5)+parseInt(_0xdc97f9(0x231))/0x6+-parseInt(_0xdc97f9(0x233))/0x7*(parseInt(_0xdc97f9(0x22c))/0x8)+parseInt(_0xdc97f9(0x20b))/0x9*(parseInt(_0xdc97f9(0x1f7))/0xa);if(_0x459b69===_0x4ecdf6)break;else _0x183d9b['push'](_0x183d9b['shift']());}catch(_0x5a8976){_0x183d9b['push'](_0x183d9b['shift']());}}}(_0x19c3,0x3d601));function _0x19c3(){const _0x269c63=['bind','forEach','entries','GDrive','OneDrive','featureNotAllowed','init','config','_getIntegrationKey','map','registerIntegration','ImageInsertUI','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyEvaluationLimit','_showLicenseError','icon','shortText','uploadcareLicenseKeyInvalid','expired','editor','61376TxbLLB','commands','pluginName','isImageSelected','Uploadcare','URL','Replace','has','uploadcareLicenseKeyNotAllowed','afterInit','evaluationLimit','200mTUBhg','_createButton','811334cvqela','_createDropdownButtons','isOfficialPlugin','1352394UKpogp','usageLimit','117803EjHTQK','_normalizeConfigSourceList','uploadcare','UploadcareUI','execute','Facebook','Local','isPremiumPlugin','tooltip','695139dFscpc','reduce','uploadcareLicenseKeyTrialLimit','304uIMibC','_createMenuBarButtons','trialLimit','label','GPhotos','locale','get','url','licenseKey','1290JiOvdZ','Dropbox','text','plugins','uploadcareLicenseKeyExpired','push','upload','_licenseKeyCheckInterval','assetManager','domainLimit','withText','type','invalid','Insert','destroy','uploadcareLicenseKeyUsageLimit','20785WjBmyk','uploadcare.uploader.sourceList','isEnabled','_createToolbarButton','49311YvhHLI','uploadcareLicenseKeyValid'];_0x19c3=function(){return _0x269c63;};return _0x19c3();}import{Plugin as _0x40c32f}from'ckeditor5/src/core.js';import{IconDropbox as _0x2ada58,IconFacebook as _0x239685,IconGoogleDrive as _0x1e2032,IconGooglePhotos as _0x3b556e,IconUploadcareImageUpload as _0x4c3812,IconUploadcareLink as _0x4aadb3,IconOneDrive as _0x162e2a}from'ckeditor5/src/icons.js';import{ButtonView as _0x3c5979,MenuBarMenuListItemButtonView as _0x4a235b}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5dd43f}from'./uploadcareconfig.js';import{getTranslation as _0x2f9e9c}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 class UploadcareUI extends _0x40c32f{[_0x59cc01(0x1f6)];[_0x59cc01(0x1fe)];static get[_0x59cc01(0x223)](){const _0x16757c=_0x59cc01;return _0x16757c(0x236);}static get[_0x59cc01(0x230)](){return!0x0;}static get[_0x59cc01(0x23a)](){return!0x0;}[_0x59cc01(0x213)](){const _0x56efc4=_0x59cc01;this[_0x56efc4(0x1f6)]=this[_0x56efc4(0x220)][_0x56efc4(0x214)][_0x56efc4(0x1f4)](_0x56efc4(0x1f6));const _0x117586=this[_0x56efc4(0x220)];this[_0x56efc4(0x1fe)]=setInterval(()=>{const _0x27cb02=_0x56efc4;let _0x2c1cf9;for(const _0x430b9a in _0x117586){const _0xcacc96=_0x430b9a,_0x54073e=_0x117586[_0xcacc96];if(_0x27cb02(0x20c)==_0x54073e||_0x27cb02(0x21e)==_0x54073e||_0x27cb02(0x1fb)==_0x54073e||_0x27cb02(0x219)==_0x54073e||_0x27cb02(0x229)==_0x54073e||_0x27cb02(0x21a)==_0x54073e||_0x27cb02(0x23e)==_0x54073e||_0x27cb02(0x206)==_0x54073e){delete _0x117586[_0xcacc96],_0x2c1cf9=_0x54073e,clearInterval(this[_0x27cb02(0x1fe)]),this[_0x27cb02(0x1fe)]=void 0x0;break;}}_0x27cb02(0x21e)==_0x2c1cf9&&_0x117586[_0x27cb02(0x21b)](_0x27cb02(0x203)),_0x27cb02(0x1fb)==_0x2c1cf9&&_0x117586[_0x27cb02(0x21b)](_0x27cb02(0x21f)),_0x27cb02(0x219)==_0x2c1cf9&&_0x117586[_0x27cb02(0x21b)](_0x27cb02(0x200)),_0x27cb02(0x229)==_0x2c1cf9&&_0x117586[_0x27cb02(0x21b)](_0x27cb02(0x212),_0x27cb02(0x225)),_0x27cb02(0x21a)==_0x2c1cf9&&_0x117586[_0x27cb02(0x21b)](_0x27cb02(0x22b)),_0x27cb02(0x23e)==_0x2c1cf9&&_0x117586[_0x27cb02(0x21b)](_0x27cb02(0x241)),_0x27cb02(0x206)==_0x2c1cf9&&_0x117586[_0x27cb02(0x21b)](_0x27cb02(0x232));},0x3e8);}[_0x59cc01(0x22a)](){const _0x3941b3=_0x59cc01,{editor:_0x26afdf}=this,_0x44d6a8=_0x26afdf[_0x3941b3(0x222)][_0x3941b3(0x1f4)](_0x3941b3(0x235));if(!_0x44d6a8)return;const _0x407645=this[_0x3941b3(0x234)](_0x26afdf[_0x3941b3(0x214)][_0x3941b3(0x1f4)](_0x3941b3(0x208)))[_0x3941b3(0x23d)]((_0x6e7172,_0x98ef20)=>{const _0x34c84c=_0x3941b3,_0x5591d2=this[_0x34c84c(0x215)](_0x98ef20[_0x34c84c(0x202)]);return _0x6e7172[_0x5591d2]||(_0x6e7172[_0x5591d2]=[]),_0x6e7172[_0x5591d2][_0x34c84c(0x1fc)](_0x98ef20),_0x6e7172;},{});_0x26afdf[_0x3941b3(0x1fa)][_0x3941b3(0x228)](_0x3941b3(0x218))&&_0x26afdf[_0x3941b3(0x222)][_0x3941b3(0x1f4)](_0x3941b3(0x235))&&Object[_0x3941b3(0x20f)](_0x407645)[_0x3941b3(0x20e)](([_0x344abe,_0x15618d])=>{const _0x418004=_0x3941b3;_0x26afdf[_0x418004(0x1fa)][_0x418004(0x1f4)](_0x418004(0x218))[_0x418004(0x217)]({'name':_0x344abe,'observable':()=>_0x44d6a8,'buttonViewCreator':()=>this[_0x418004(0x20a)](_0x15618d),'formViewCreator':()=>this[_0x418004(0x22f)](_0x15618d),'menuBarButtonViewCreator':()=>this[_0x418004(0x240)](_0x15618d),'override':_0x418004(0x1ff)!==_0x344abe});});}[_0x59cc01(0x205)](){const _0x591a8c=_0x59cc01;super[_0x591a8c(0x205)](),this[_0x591a8c(0x1fe)]&&clearInterval(this[_0x591a8c(0x1fe)]);}[_0x59cc01(0x234)](_0x4c6767){const _0x4f66fd=_0x59cc01,{locale:_0xb57ad7}=this[_0x4f66fd(0x220)];return _0x4c6767[_0x4f66fd(0x216)](_0xbcd950=>{const _0x111f2c=_0x4f66fd,_0xadfa7d=_0x2f9e9c(_0xb57ad7,_0xbcd950,_0x111f2c(0x204));switch(_0xbcd950){case _0x5dd43f[_0x111f2c(0x239)]:return{'icon':_0x4c3812,'type':_0x5dd43f[_0x111f2c(0x239)],..._0xadfa7d};case _0x5dd43f[_0x111f2c(0x226)]:return{'icon':_0x4aadb3,'type':_0x5dd43f[_0x111f2c(0x226)],..._0xadfa7d};case _0x5dd43f[_0x111f2c(0x1f8)]:return{'icon':_0x2ada58,'type':_0x5dd43f[_0x111f2c(0x1f8)],..._0xadfa7d};case _0x5dd43f[_0x111f2c(0x238)]:return{'icon':_0x239685,'type':_0x5dd43f[_0x111f2c(0x238)],..._0xadfa7d};case _0x5dd43f[_0x111f2c(0x210)]:return{'icon':_0x1e2032,'type':_0x5dd43f[_0x111f2c(0x210)],..._0xadfa7d};case _0x5dd43f[_0x111f2c(0x243)]:return{'icon':_0x3b556e,'type':_0x5dd43f[_0x111f2c(0x243)],..._0xadfa7d};case _0x5dd43f[_0x111f2c(0x211)]:return{'icon':_0x162e2a,'type':_0x5dd43f[_0x111f2c(0x211)],..._0xadfa7d};}});}[_0x59cc01(0x215)](_0x3afb14){const _0x1953eb=_0x59cc01;switch(_0x3afb14){case _0x5dd43f[_0x1953eb(0x239)]:return _0x1953eb(0x1fd);case _0x5dd43f[_0x1953eb(0x226)]:return _0x1953eb(0x1f5);default:return _0x1953eb(0x1ff);}}[_0x59cc01(0x22d)](_0xc96607,_0x33e803){const _0x5547a5=_0x59cc01,_0x1bfa27=this[_0x5547a5(0x220)],_0x31a1cc=new _0xc96607(_0x1bfa27[_0x5547a5(0x244)]),_0x513aaa=_0x1bfa27[_0x5547a5(0x222)][_0x5547a5(0x1f4)](_0x5547a5(0x235));return _0x31a1cc[_0x5547a5(0x20d)](_0x5547a5(0x209))['to'](_0x513aaa),_0x31a1cc['on'](_0x5547a5(0x237),()=>{const _0x48faa1=_0x5547a5;_0x513aaa[_0x48faa1(0x237)](_0x33e803);}),_0x31a1cc;}[_0x59cc01(0x20a)](_0x1aa7fd){const _0x47b73e=_0x59cc01,{locale:_0x29341e}=this[_0x47b73e(0x220)],_0xf5aa2a=this[_0x47b73e(0x220)][_0x47b73e(0x1fa)][_0x47b73e(0x1f4)](_0x47b73e(0x218)),_0x141ef3=_0x1aa7fd[0x0],_0x4468a7=this[_0x47b73e(0x22d)](_0x3c5979,_0x141ef3[_0x47b73e(0x202)]);return _0x4468a7[_0x47b73e(0x21c)]=_0x141ef3[_0x47b73e(0x21c)],_0x4468a7[_0x47b73e(0x20d)](_0x47b73e(0x242))['to'](_0xf5aa2a,_0x47b73e(0x224),_0x27f544=>_0x2f9e9c(_0x29341e,_0x141ef3[_0x47b73e(0x202)],_0x27f544?_0x47b73e(0x227):_0x47b73e(0x204))[_0x47b73e(0x1f9)]),_0x4468a7[_0x47b73e(0x23b)]=!0x0,_0x4468a7;}[_0x59cc01(0x22f)](_0xd4992){const _0x289be0=_0x59cc01,{locale:_0x996e11}=this[_0x289be0(0x220)],_0x3b225a=this[_0x289be0(0x220)][_0x289be0(0x1fa)][_0x289be0(0x1f4)](_0x289be0(0x218));return _0xd4992[_0x289be0(0x216)](_0x51d108=>{const _0x515593=_0x289be0,_0x5eeb3a=this[_0x515593(0x22d)](_0x3c5979,_0x51d108[_0x515593(0x202)]);return _0x5eeb3a[_0x515593(0x201)]=!0x0,_0x5eeb3a[_0x515593(0x21c)]=_0x51d108[_0x515593(0x21c)],_0x5eeb3a[_0x515593(0x20d)](_0x515593(0x242))['to'](_0x3b225a,_0x515593(0x224),_0xb815bc=>_0x2f9e9c(_0x996e11,_0x51d108[_0x515593(0x202)],_0xb815bc?_0x515593(0x227):_0x515593(0x204))[_0x515593(0x1f9)]),_0x5eeb3a;});}[_0x59cc01(0x240)](_0xb08323){const _0x58bf62=_0x59cc01;return _0xb08323[_0x58bf62(0x216)](_0x15a1d4=>{const _0x35ecc2=_0x58bf62,_0x345570=this[_0x35ecc2(0x22d)](_0x4a235b,_0x15a1d4[_0x35ecc2(0x202)]);return _0x345570[_0x35ecc2(0x21c)]=_0x15a1d4[_0x35ecc2(0x21c)],_0x345570[_0x35ecc2(0x242)]=_0x15a1d4[_0x35ecc2(0x21d)],_0x345570;});}}
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { FileRepository } from 'ckeditor5/src/upload.js';
|
|
11
|
-
import UploadcareEditing from './uploadcareediting.js';
|
|
11
|
+
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* A plugin that enables file uploads in CKEditor 5 using the Uploadcare server–side connector.
|
|
14
14
|
*
|
|
15
15
|
* Check out the {@glink features/images/image-upload/image-upload Image upload overview} guide to learn about
|
|
16
16
|
* other ways to upload images into CKEditor 5.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class UploadcareUploadAdapter extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3af14c}from'ckeditor5/src/core.js';import{FileRepository as _0xbf8570}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x31cb68}from'./uploadcareediting.js';import{UploadUtils as _0x339bcb}from'./utils/uploadutils.js';import{getImageUrls as _0x2dc0b7}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3af14c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbf8570,_0x31cb68];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x31e844=this['editor'];if(!!!_0x31e844['config']['get']('uploadcare'))return;_0x31e844['plugins']['get'](_0xbf8570)['createUploadAdapter']=_0x376196=>new A(_0x376196,_0x31e844),_0x31e844['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x29ef7f,{imageElement:_0x160550,data:_0x1ccf4b})=>{_0x31e844['model']['change'](_0x318c9a=>{_0x318c9a['setAttribute']('uploadcareImageId',_0x1ccf4b['uploadcareImageId'],_0x160550);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xf600b,_0x95d9cb){this['loader']=_0xf600b,this['editor']=_0x95d9cb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27460f=this['editor']['config']['get']('uploadcare.pubkey'),_0x25bfb5=await this['loader']['file'];return _0x339bcb['upload']({'file':_0x25bfb5,'publicKey':_0x27460f,'signal':this['controller']['signal'],'onProgress':_0x1fb6b5=>{_0x1fb6b5&&_0x1fb6b5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1fb6b5['value']);}})['then'](async _0x146e63=>{const {imageFallbackUrl:_0x59eacc,imageSources:_0x12854c}=_0x2dc0b7(_0x146e63['cdnUrl'],_0x146e63['imageInfo']['width']);return{'uploadcareImageId':_0x146e63['uuid'],'default':_0x59eacc,'sources':_0x12854c};})['catch'](()=>{const _0x1d73b4=t('Cannot\x20upload\x20file:')+('\x20'+_0x25bfb5['name']+'.');return Promise['reject'](_0x1d73b4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x292efe}from'../uploadcareconfig.js';export function getTranslation(_0x4184f2,_0x4bc987,_0x54703e){const t=_0x4184f2['t'],_0x3921dd=_0x4184f2['t'];switch(_0x4bc987){case _0x292efe['Local']:return{'text':_0x3921dd('Insert'===_0x54703e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3921dd('From\x20computer')};case _0x292efe['URL']:return{'text':'Insert'===_0x54703e?_0x3921dd('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3921dd('Via\x20URL')};case _0x292efe['Dropbox']:return{'text':t('Insert'===_0x54703e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x292efe['Facebook']:return{'text':t('Insert'===_0x54703e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x292efe['GDrive']:return{'text':t('Insert'===_0x54703e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x292efe['GPhotos']:return{'text':t('Insert'===_0x54703e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x292efe['OneDrive']:return{'text':t('Insert'===_0x54703e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4bc987;}}
|
|
@@ -16,7 +16,7 @@ import '../../theme/uploadcare-form.css';
|
|
|
16
16
|
* especially during keyboard navigation, which can result in users losing the ability to cycle through
|
|
17
17
|
* dialog elements.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare abstract class DialogFocusManagerView extends View {
|
|
20
20
|
/**
|
|
21
21
|
* @inheritDoc
|
|
22
22
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2c2533=_0x2e5b;(function(_0x433951,_0x1e86b1){var _0x3f07de=_0x2e5b,_0x1e3eb6=_0x433951();while(!![]){try{var _0x547394=-parseInt(_0x3f07de(0x194))/0x1+-parseInt(_0x3f07de(0x198))/0x2*(parseInt(_0x3f07de(0x19a))/0x3)+-parseInt(_0x3f07de(0x192))/0x4+-parseInt(_0x3f07de(0x193))/0x5+-parseInt(_0x3f07de(0x19b))/0x6+-parseInt(_0x3f07de(0x191))/0x7+parseInt(_0x3f07de(0x19e))/0x8;if(_0x547394===_0x1e86b1)break;else _0x1e3eb6['push'](_0x1e3eb6['shift']());}catch(_0x130e49){_0x1e3eb6['push'](_0x1e3eb6['shift']());}}}(_0x1baa,0x33138));import{FocusTracker as _0x45d2ab}from'ckeditor5/src/utils.js';import{View as _0x44ff10,FocusCycler as _0xb1c2b2}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x2e5b(_0x4bb8c1,_0x1b9ce8){var _0x1baa96=_0x1baa();return _0x2e5b=function(_0x2e5b8b,_0x19679e){_0x2e5b8b=_0x2e5b8b-0x18e;var _0x5f35e0=_0x1baa96[_0x2e5b8b];return _0x5f35e0;},_0x2e5b(_0x4bb8c1,_0x1b9ce8);}export class DialogFocusManagerView extends _0x44ff10{[_0x2c2533(0x19d)];[_0x2c2533(0x19c)];constructor(_0x2224c6){var _0x58e266=_0x2c2533;super(_0x2224c6),this[_0x58e266(0x19d)]=new _0x45d2ab(),this[_0x58e266(0x19c)]=new _0xb1c2b2({'focusables':this[_0x58e266(0x195)](),'focusTracker':this[_0x58e266(0x19d)]});}[_0x2c2533(0x190)](){var _0x3ebc8f=_0x2c2533;return{'tag':_0x3ebc8f(0x18f),'attributes':{'aria-hidden':_0x3ebc8f(0x18e),'tabindex':'0'},'on':{'focus':this[_0x3ebc8f(0x197)]['to'](()=>{var _0x5e63b7=_0x3ebc8f;this[_0x5e63b7(0x19c)][_0x5e63b7(0x199)](_0x5e63b7(0x196));})}};}}function _0x1baa(){var _0x5a529a=['createCollection','forwardCycle','bindTemplate','3636Sadfpt','fire','123CCNBgj','1085178xBmLhF','focusCycler','focusTracker','10712840azdGvV','true','div','getFocusableElement','2117892iINtTT','706636OaBQdW','649150NVJowu','265451NITbUg'];_0x1baa=function(){return _0x5a529a;};return _0x1baa();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1cea(_0x2fc823,_0x32111a){const _0x31cad1=_0x31ca();return _0x1cea=function(_0x1cea60,_0x30ff36){_0x1cea60=_0x1cea60-0x1a2;let _0x584ee3=_0x31cad1[_0x1cea60];return _0x584ee3;},_0x1cea(_0x2fc823,_0x32111a);}(function(_0x254381,_0x5b7dba){const _0x594fe0=_0x1cea,_0x745f07=_0x254381();while(!![]){try{const _0x406db9=parseInt(_0x594fe0(0x1b7))/0x1+parseInt(_0x594fe0(0x1cb))/0x2*(parseInt(_0x594fe0(0x1ae))/0x3)+-parseInt(_0x594fe0(0x1ba))/0x4*(-parseInt(_0x594fe0(0x1c5))/0x5)+-parseInt(_0x594fe0(0x1b5))/0x6*(parseInt(_0x594fe0(0x1b4))/0x7)+parseInt(_0x594fe0(0x1cd))/0x8*(-parseInt(_0x594fe0(0x1d4))/0x9)+-parseInt(_0x594fe0(0x1c2))/0xa+parseInt(_0x594fe0(0x1d2))/0xb;if(_0x406db9===_0x5b7dba)break;else _0x745f07['push'](_0x745f07['shift']());}catch(_0x90d93e){_0x745f07['push'](_0x745f07['shift']());}}}(_0x31ca,0x41d61));function _0x31ca(){const _0x2679d9=['listenTo','view','isArray','plugins','toViewElement','filter','width','mapper','origin','addClass','removeStyle','hasAttribute','window','get','406647hCYNYP','editing','domConverter','map','setStyle','aspect-ratio','150962uRQuIE','12tUexjV','image/webp','276830XmBdTS','match','/-/resize/','80toGTjl','load','change','src','baseURI','imageInline','image-processing','findViewImgElement','3794950wBUFch','imageBlock','ImageUtils','87545NFcuyS','height','join','x/\x20','some','viewToDom','2QjuvgU','(max-width:\x20','464tSFdEG','location','replace','element','function','4777663FDMRfc','stopListening','78300FkVGiq','document','removeClass','px)\x20100vw,\x20','uploadcareImageId','getAttribute'];_0x31ca=function(){return _0x2679d9;};return _0x31ca();}import{global as _0x4c03f0,DomEmitterMixin as _0xc3ad2a}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5577cd){const _0xd809c6=_0x1cea,_0x4830d8=G(_0x5577cd);return _0x17cd8f=>!(!_0x17cd8f||!_0x17cd8f['is'](_0xd809c6(0x1d0),_0xd809c6(0x1c3))&&!_0x17cd8f['is'](_0xd809c6(0x1d0),_0xd809c6(0x1bf)))&&(!!_0x17cd8f[_0xd809c6(0x1ab)](_0xd809c6(0x1d8))||!!_0x17cd8f[_0xd809c6(0x1ab)](_0xd809c6(0x1bd))&&_0x4830d8(_0x17cd8f[_0xd809c6(0x1d9)](_0xd809c6(0x1bd))));}export function getImageUrls(_0xe7c13e,_0x3bdc12){const _0x355b23=_0x1cea,_0x213b24=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x355b23(0x1a5)](_0x1d60ce=>_0x1d60ce<=_0x3bdc12)[_0x355b23(0x1b1)](_0x835026=>_0xe7c13e[_0x355b23(0x1cf)](/\/$/,'')+_0x355b23(0x1b9)+_0x835026+_0x355b23(0x1c8)+_0x835026+'w');return{'imageFallbackUrl':_0xe7c13e,'imageSources':[{'srcset':_0x213b24[_0x355b23(0x1c7)](',\x20'),'sizes':_0x355b23(0x1cc)+_0x3bdc12+_0x355b23(0x1d7)+_0x3bdc12+'px','type':_0x355b23(0x1b6)}]};}export function getImageDimension(_0xccedec,_0x3af59d,_0xf91315){const _0x298ed3=_0x1cea,_0x48a998=_0xccedec[_0x298ed3(0x1b8)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48a998?parseInt(_0x48a998[0x1],0xa):_0x3af59d,'height':_0x48a998?parseInt(_0x48a998[0x2],0xa):_0xf91315};}export function showImageProcessingIndicator(_0x280b4b,_0x4b99c3){const _0x372cc7=_0x1cea,_0x4613c0=new(_0xc3ad2a())(),_0x4d5b59=_0x280b4b[_0x372cc7(0x1a3)][_0x372cc7(0x1ad)](_0x372cc7(0x1c4)),_0xcca20d=_0x280b4b[_0x372cc7(0x1af)][_0x372cc7(0x1a7)][_0x372cc7(0x1a4)](_0x4b99c3),_0x812091=_0x4d5b59[_0x372cc7(0x1c1)](_0xcca20d),_0x536fd1=_0x280b4b[_0x372cc7(0x1af)][_0x372cc7(0x1db)][_0x372cc7(0x1b0)][_0x372cc7(0x1ca)](_0x812091),_0x3d47ef=_0x4b99c3[_0x372cc7(0x1d9)](_0x372cc7(0x1a6)),_0x17a3da=_0x4b99c3[_0x372cc7(0x1d9)](_0x372cc7(0x1c6)),_0x2c7269=_0x372cc7(0x1c0);_0x280b4b[_0x372cc7(0x1af)][_0x372cc7(0x1db)][_0x372cc7(0x1bc)](_0x520142=>{const _0x3eaec4=_0x372cc7;_0x520142[_0x3eaec4(0x1a9)](_0x2c7269,_0xcca20d),_0x520142[_0x3eaec4(0x1b2)](_0x3eaec4(0x1b3),_0x3d47ef+'/'+_0x17a3da,_0x812091);}),_0x4613c0[_0x372cc7(0x1da)](_0x536fd1,_0x372cc7(0x1bb),()=>{const _0x5dab97=_0x372cc7;_0x4613c0[_0x5dab97(0x1d3)](_0x536fd1,_0x5dab97(0x1bb)),_0x280b4b[_0x5dab97(0x1af)][_0x5dab97(0x1db)][_0x5dab97(0x1bc)](_0xbc3765=>{const _0x38d077=_0x5dab97;_0xbc3765[_0x38d077(0x1d6)](_0x2c7269,_0xcca20d),_0xbc3765[_0x38d077(0x1aa)](_0x38d077(0x1b3),_0x812091);});});}function G(_0x56bc47){const _0x413aa6=_0x1cea;if(Array[_0x413aa6(0x1a2)](_0x56bc47)){const _0x3a9381=_0x56bc47[_0x413aa6(0x1b1)](G);return _0x281a5f=>_0x3a9381[_0x413aa6(0x1c9)](_0x4fcaa3=>_0x4fcaa3(_0x281a5f));}if(_0x413aa6(0x1a8)==_0x56bc47){const _0x5b912e=_0x4c03f0[_0x413aa6(0x1ac)][_0x413aa6(0x1ce)][_0x413aa6(0x1a8)];return _0x3e5271=>new URL(_0x3e5271,_0x4c03f0[_0x413aa6(0x1d5)][_0x413aa6(0x1be)])[_0x413aa6(0x1a8)]==_0x5b912e;}return _0x413aa6(0x1d1)==typeof _0x56bc47?_0x56bc47:_0x56bc47 instanceof RegExp?_0x3980a8=>!(!_0x3980a8[_0x413aa6(0x1b8)](_0x56bc47)&&!_0x3980a8[_0x413aa6(0x1cf)](/^https?:\/\//,'')[_0x413aa6(0x1b8)](_0x56bc47)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5276(){var _0x4c48b0=['11HxHIzn','7xEQbSs','23972mUTHPW','2721805sYRpLk','1113198ODvzoF','target','8PlmLeH','1860273HbDbXa','includes','322182JdIztq','1629410ZDYASq','135576OGBJBu','177bOpeho'];_0x5276=function(){return _0x4c48b0;};return _0x5276();}(function(_0x2ee07e,_0x460d84){var _0x2ad749=_0x386d,_0x2f59da=_0x2ee07e();while(!![]){try{var _0x1615bb=-parseInt(_0x2ad749(0x117))/0x1+-parseInt(_0x2ad749(0x119))/0x2+parseInt(_0x2ad749(0x11a))/0x3*(-parseInt(_0x2ad749(0x11d))/0x4)+parseInt(_0x2ad749(0x111))/0x5+parseInt(_0x2ad749(0x112))/0x6*(parseInt(_0x2ad749(0x11c))/0x7)+-parseInt(_0x2ad749(0x114))/0x8*(-parseInt(_0x2ad749(0x115))/0x9)+-parseInt(_0x2ad749(0x118))/0xa*(-parseInt(_0x2ad749(0x11b))/0xb);if(_0x1615bb===_0x460d84)break;else _0x2f59da['push'](_0x2f59da['shift']());}catch(_0x338d7f){_0x2f59da['push'](_0x2f59da['shift']());}}}(_0x5276,0x56e87));import{getAncestors as _0x252f6f}from'ckeditor5/src/utils.js';function _0x386d(_0x39dae6,_0x359ddc){var _0x527680=_0x5276();return _0x386d=function(_0x386da2,_0x3a694f){_0x386da2=_0x386da2-0x111;var _0x39dff0=_0x527680[_0x386da2];return _0x39dff0;},_0x386d(_0x39dae6,_0x359ddc);}export function isAncestor(_0xeafb15,_0x32b526){var _0x2dfce4=_0x386d;return _0x252f6f(_0xeafb15[_0x2dfce4(0x113)])[_0x2dfce4(0x116)](_0x32b526);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x124987=_0x23b6;function _0x2740(){var _0x33d5ed=['3837792AVGwYh','5MfFPnB','upload','getInfo','71931XiaBXO','16BySRqz','6500515DALGtn','1772690LUfFYD','8642416wSwNzr','42224963mmcxSD','27565TlnMiB','auto','9OLjnHK','96tHUZiJ'];_0x2740=function(){return _0x33d5ed;};return _0x2740();}(function(_0x2d4812,_0x2b30cd){var _0x1b129a=_0x23b6,_0x5484d6=_0x2d4812();while(!![]){try{var _0x12e0cb=-parseInt(_0x1b129a(0xc2))/0x1*(-parseInt(_0x1b129a(0xcb))/0x2)+-parseInt(_0x1b129a(0xca))/0x3*(parseInt(_0x1b129a(0xc5))/0x4)+-parseInt(_0x1b129a(0xc7))/0x5*(parseInt(_0x1b129a(0xc6))/0x6)+-parseInt(_0x1b129a(0xcc))/0x7+-parseInt(_0x1b129a(0xce))/0x8+parseInt(_0x1b129a(0xc4))/0x9*(-parseInt(_0x1b129a(0xcd))/0xa)+parseInt(_0x1b129a(0xc1))/0xb;if(_0x12e0cb===_0x2b30cd)break;else _0x5484d6['push'](_0x5484d6['shift']());}catch(_0x369b9c){_0x5484d6['push'](_0x5484d6['shift']());}}}(_0x2740,0xa09c1));function _0x23b6(_0xe8d27,_0x57344a){var _0x2740a7=_0x2740();return _0x23b6=function(_0x23b68b,_0x3f5f6d){_0x23b68b=_0x23b68b-0xc1;var _0x6a2071=_0x2740a7[_0x23b68b];return _0x6a2071;},_0x23b6(_0xe8d27,_0x57344a);}import{uploadFile as _0xa127da,info as _0x26cfb3}from'@uploadcare/upload-client';export class UploadUtils{static[_0x124987(0xc8)]({file:_0xbd269,publicKey:_0x3ba219,signal:_0x5e4598,onProgress:_0x4618ce}){var _0x4f5bec=_0x124987;return _0xa127da(_0xbd269,{'publicKey':_0x3ba219,'store':_0x4f5bec(0xc3),'signal':_0x5e4598,'onProgress':_0x4618ce});}static[_0x124987(0xc9)](_0x35fea8,_0xb27c2d){return _0x26cfb3(_0x35fea8,_0xb27c2d);}}
|