@ckeditor/ckeditor5-uploadcare 45.2.1 → 46.0.0-alpha.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.
- 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 _0x46a924}from'ckeditor5/src/core.js';import{ButtonView as _0x3c730b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2aa462}from'ckeditor5/src/icons.js';import{createElement as _0x24adab}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 _0x46a924{['_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 _0x3f93cc=this['editor'];_0x3f93cc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x406139=>{const _0x241bf7=_0x3f93cc['commands']['get']('uploadcareImageEdit'),_0x3c6a66=new _0x3c730b(_0x406139),t=_0x406139['t'];return _0x3c6a66['set']({'icon':_0x2aa462,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3c6a66['bind']('isEnabled')['to'](_0x241bf7),_0x3c6a66['bind']('isOn')['to'](_0x241bf7,'isActive'),this['listenTo'](_0x3c6a66,'execute',()=>{_0x3f93cc['execute']('uploadcareImageEdit'),_0x3f93cc['editing']['view']['focus']();}),_0x3c6a66;}),this['_initConfig']();}['_initConfig'](){const _0x423c00=_0x24adab(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x423c00),this['listenTo'](this['editor'],'destroy',()=>{_0x423c00['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 _0x2edbee=_0x517c;function _0x517c(_0x198a05,_0xf12362){var _0x57174a=_0x5717();return _0x517c=function(_0x517c40,_0x5647c1){_0x517c40=_0x517c40-0x1ae;var _0x19d142=_0x57174a[_0x517c40];return _0x19d142;},_0x517c(_0x198a05,_0xf12362);}(function(_0x36f461,_0x4a0292){var _0x32589b=_0x517c,_0x5592aa=_0x36f461();while(!![]){try{var _0x5756ef=-parseInt(_0x32589b(0x1bc))/0x1+-parseInt(_0x32589b(0x1b6))/0x2+parseInt(_0x32589b(0x1b8))/0x3+-parseInt(_0x32589b(0x1b0))/0x4+-parseInt(_0x32589b(0x1b4))/0x5*(-parseInt(_0x32589b(0x1bd))/0x6)+-parseInt(_0x32589b(0x1be))/0x7+parseInt(_0x32589b(0x1b1))/0x8;if(_0x5756ef===_0x4a0292)break;else _0x5592aa['push'](_0x5592aa['shift']());}catch(_0x5c2a24){_0x5592aa['push'](_0x5592aa['shift']());}}}(_0x5717,0x1f557));import{FocusTracker as _0x2c8690}from'ckeditor5/src/utils.js';import{View as _0x1845f7,FocusCycler as _0x40b8fa}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5717(){var _0x4285ed=['true','forwardCycle','159402wgxEJj','6pcZNeH','1448174fAwwBo','focusCycler','bindTemplate','1014876wPeeVZ','3901904Syovtz','fire','div','625385odgCma','focusTracker','33250tPqgLi','createCollection','456468XAvYMO','getFocusableElement'];_0x5717=function(){return _0x4285ed;};return _0x5717();}export class DialogFocusManagerView extends _0x1845f7{[_0x2edbee(0x1b5)];[_0x2edbee(0x1ae)];constructor(_0x16c8e6){var _0x37780f=_0x2edbee;super(_0x16c8e6),this[_0x37780f(0x1b5)]=new _0x2c8690(),this[_0x37780f(0x1ae)]=new _0x40b8fa({'focusables':this[_0x37780f(0x1b7)](),'focusTracker':this[_0x37780f(0x1b5)]});}[_0x2edbee(0x1b9)](){var _0x3834b4=_0x2edbee;return{'tag':_0x3834b4(0x1b3),'attributes':{'aria-hidden':_0x3834b4(0x1ba),'tabindex':'0'},'on':{'focus':this[_0x3834b4(0x1af)]['to'](()=>{var _0x30305c=_0x3834b4;this[_0x30305c(0x1ae)][_0x30305c(0x1b2)](_0x30305c(0x1bb));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
(function(_0x7189ed,_0x228f24){const _0x5df2dd=_0x175f,_0x6256fa=_0x7189ed();while(!![]){try{const _0x4d1924=-parseInt(_0x5df2dd(0xb3))/0x1*(-parseInt(_0x5df2dd(0x90))/0x2)+parseInt(_0x5df2dd(0xb2))/0x3+-parseInt(_0x5df2dd(0x83))/0x4*(-parseInt(_0x5df2dd(0x95))/0x5)+-parseInt(_0x5df2dd(0x97))/0x6*(parseInt(_0x5df2dd(0x87))/0x7)+-parseInt(_0x5df2dd(0x82))/0x8*(parseInt(_0x5df2dd(0xad))/0x9)+-parseInt(_0x5df2dd(0x8b))/0xa*(-parseInt(_0x5df2dd(0x85))/0xb)+-parseInt(_0x5df2dd(0xa4))/0xc*(parseInt(_0x5df2dd(0x88))/0xd);if(_0x4d1924===_0x228f24)break;else _0x6256fa['push'](_0x6256fa['shift']());}catch(_0x2849d3){_0x6256fa['push'](_0x6256fa['shift']());}}}(_0x5376,0xcb650));function _0x5376(){const _0x40c642=['height','viewToDom','baseURI','9wfqBZb','removeStyle','filter','mapper','removeClass','3400974XpqaDo','51061QarxCw','imageInline','/-/resize/','getAttribute','get','isArray','hasAttribute','document','some','map','x/\x20','8390296xPpirg','1436CoGUcj','uploadcareImageId','918159ZZwWwI','ImageUtils','49ftYWHv','3784456JNIVfc','addClass','origin','90BmmnML','function','replace','width','location','26fmEnoU','src','(max-width:\x20','image/webp','editing','8835pBOJty','window','366684EsxCxk','px)\x20100vw,\x20','image-processing','match','domConverter','stopListening','listenTo','toViewElement','change','join','view','findViewImgElement','plugins','36ypcvoX','element','setStyle','load','aspect-ratio','imageBlock'];_0x5376=function(){return _0x40c642;};return _0x5376();}import{global as _0x17f638,DomEmitterMixin as _0x4bcf7d}from'ckeditor5/src/utils.js';function _0x175f(_0x5c45b5,_0xed2b5){const _0x5376e6=_0x5376();return _0x175f=function(_0x175f36,_0x54aba1){_0x175f36=_0x175f36-0x7d;let _0x20b984=_0x5376e6[_0x175f36];return _0x20b984;},_0x175f(_0x5c45b5,_0xed2b5);}export function createEditabilityChecker(_0x2fe4c0){const _0x10aa5a=_0x175f,_0xa98c9d=z(_0x2fe4c0);return _0x8b3d0c=>!(!_0x8b3d0c||!_0x8b3d0c['is'](_0x10aa5a(0xa5),_0x10aa5a(0xa9))&&!_0x8b3d0c['is'](_0x10aa5a(0xa5),_0x10aa5a(0xb4)))&&(!!_0x8b3d0c[_0x10aa5a(0x7d)](_0x10aa5a(0x84))||!!_0x8b3d0c[_0x10aa5a(0x7d)](_0x10aa5a(0x91))&&_0xa98c9d(_0x8b3d0c[_0x10aa5a(0xb6)](_0x10aa5a(0x91))));}export function getImageUrls(_0x595430,_0x40900e){const _0x61780e=_0x175f,_0x99b720=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x61780e(0xaf)](_0x292ac6=>_0x292ac6<=_0x40900e)[_0x61780e(0x80)](_0x15f10b=>_0x595430[_0x61780e(0x8d)](/\/$/,'')+_0x61780e(0xb5)+_0x15f10b+_0x61780e(0x81)+_0x15f10b+'w');return{'imageFallbackUrl':_0x595430,'imageSources':[{'srcset':_0x99b720[_0x61780e(0xa0)](',\x20'),'sizes':_0x61780e(0x92)+_0x40900e+_0x61780e(0x98)+_0x40900e+'px','type':_0x61780e(0x93)}]};}export function getImageDimension(_0x162d82,_0x51d2bc,_0x3efb34){const _0x360be9=_0x175f,_0xcc571d=_0x162d82[_0x360be9(0x9a)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xcc571d?parseInt(_0xcc571d[0x1],0xa):_0x51d2bc,'height':_0xcc571d?parseInt(_0xcc571d[0x2],0xa):_0x3efb34};}export function showImageProcessingIndicator(_0x37ef2c,_0x5244e7){const _0x5abc38=_0x175f,_0x4081a1=new(_0x4bcf7d())(),_0x5217ba=_0x37ef2c[_0x5abc38(0xa3)][_0x5abc38(0xb7)](_0x5abc38(0x86)),_0x5b4f6c=_0x37ef2c[_0x5abc38(0x94)][_0x5abc38(0xb0)][_0x5abc38(0x9e)](_0x5244e7),_0x4be1dc=_0x5217ba[_0x5abc38(0xa2)](_0x5b4f6c),_0x8630ee=_0x37ef2c[_0x5abc38(0x94)][_0x5abc38(0xa1)][_0x5abc38(0x9b)][_0x5abc38(0xab)](_0x4be1dc),_0x3ab015=_0x5244e7[_0x5abc38(0xb6)](_0x5abc38(0x8e)),_0x437068=_0x5244e7[_0x5abc38(0xb6)](_0x5abc38(0xaa)),_0x47d3cd=_0x5abc38(0x99);_0x37ef2c[_0x5abc38(0x94)][_0x5abc38(0xa1)][_0x5abc38(0x9f)](_0x458467=>{const _0x1ab7da=_0x5abc38;_0x458467[_0x1ab7da(0x89)](_0x47d3cd,_0x5b4f6c),_0x458467[_0x1ab7da(0xa6)](_0x1ab7da(0xa8),_0x3ab015+'/'+_0x437068,_0x4be1dc);}),_0x4081a1[_0x5abc38(0x9d)](_0x8630ee,_0x5abc38(0xa7),()=>{const _0x5902ba=_0x5abc38;_0x4081a1[_0x5902ba(0x9c)](_0x8630ee,_0x5902ba(0xa7)),_0x37ef2c[_0x5902ba(0x94)][_0x5902ba(0xa1)][_0x5902ba(0x9f)](_0x191dd0=>{const _0x3c5eb3=_0x5902ba;_0x191dd0[_0x3c5eb3(0xb1)](_0x47d3cd,_0x5b4f6c),_0x191dd0[_0x3c5eb3(0xae)](_0x3c5eb3(0xa8),_0x4be1dc);});});}function z(_0x558f2d){const _0x3dee75=_0x175f;if(Array[_0x3dee75(0xb8)](_0x558f2d)){const _0x32051d=_0x558f2d[_0x3dee75(0x80)](z);return _0x265a23=>_0x32051d[_0x3dee75(0x7f)](_0x44a1b4=>_0x44a1b4(_0x265a23));}if(_0x3dee75(0x8a)==_0x558f2d){const _0x3e5e89=_0x17f638[_0x3dee75(0x96)][_0x3dee75(0x8f)][_0x3dee75(0x8a)];return _0x37a9e6=>new URL(_0x37a9e6,_0x17f638[_0x3dee75(0x7e)][_0x3dee75(0xac)])[_0x3dee75(0x8a)]==_0x3e5e89;}return _0x3dee75(0x8c)==typeof _0x558f2d?_0x558f2d:_0x558f2d instanceof RegExp?_0x67784b=>!(!_0x67784b[_0x3dee75(0x9a)](_0x558f2d)&&!_0x67784b[_0x3dee75(0x8d)](/^https?:\/\//,'')[_0x3dee75(0x9a)](_0x558f2d)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x55c782,_0x44f59b){var _0x334727=_0x2238,_0x80046=_0x55c782();while(!![]){try{var _0x4096ee=-parseInt(_0x334727(0x1db))/0x1*(-parseInt(_0x334727(0x1d2))/0x2)+-parseInt(_0x334727(0x1da))/0x3*(-parseInt(_0x334727(0x1d9))/0x4)+-parseInt(_0x334727(0x1d8))/0x5*(parseInt(_0x334727(0x1d4))/0x6)+-parseInt(_0x334727(0x1d5))/0x7+-parseInt(_0x334727(0x1d7))/0x8+parseInt(_0x334727(0x1dc))/0x9+-parseInt(_0x334727(0x1d3))/0xa;if(_0x4096ee===_0x44f59b)break;else _0x80046['push'](_0x80046['shift']());}catch(_0x56b2f7){_0x80046['push'](_0x80046['shift']());}}}(_0x2d7e,0x77a69));import{getAncestors as _0x37a35a}from'ckeditor5/src/utils.js';function _0x2238(_0xe3e51d,_0x2d816f){var _0x2d7e12=_0x2d7e();return _0x2238=function(_0x223883,_0xa234db){_0x223883=_0x223883-0x1d1;var _0x3e3dd2=_0x2d7e12[_0x223883];return _0x3e3dd2;},_0x2238(_0xe3e51d,_0x2d816f);}export function isAncestor(_0x71c3d8,_0x418e53){var _0x31c995=_0x2238;return _0x37a35a(_0x71c3d8[_0x31c995(0x1d6)])[_0x31c995(0x1d1)](_0x418e53);}function _0x2d7e(){var _0x1360f5=['includes','704AlBHwk','574870WgkYtK','4082220FKgTfC','4153884pTOVJa','target','1109512nZyDVL','5IjzsgL','908CZFcfo','12582mEeZTo','2670PLUyyW','613521pRjWTK'];_0x2d7e=function(){return _0x1360f5;};return _0x2d7e();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x35c140=_0x5aab;(function(_0x4af775,_0x4c400e){var _0x25c1e7=_0x5aab,_0xe6c70c=_0x4af775();while(!![]){try{var _0x556933=-parseInt(_0x25c1e7(0xb9))/0x1+-parseInt(_0x25c1e7(0xb6))/0x2*(-parseInt(_0x25c1e7(0xbd))/0x3)+-parseInt(_0x25c1e7(0xb8))/0x4+parseInt(_0x25c1e7(0xb7))/0x5*(-parseInt(_0x25c1e7(0xba))/0x6)+parseInt(_0x25c1e7(0xbc))/0x7+parseInt(_0x25c1e7(0xb3))/0x8+parseInt(_0x25c1e7(0xb5))/0x9;if(_0x556933===_0x4c400e)break;else _0xe6c70c['push'](_0xe6c70c['shift']());}catch(_0x3dd7e8){_0xe6c70c['push'](_0xe6c70c['shift']());}}}(_0x3642,0x9054f));import{uploadFile as _0x37a0af,info as _0x455fad}from'@uploadcare/upload-client';function _0x5aab(_0x3e2ca3,_0x564e6e){var _0x364222=_0x3642();return _0x5aab=function(_0x5aab98,_0x9d634f){_0x5aab98=_0x5aab98-0xb3;var _0x2bad9f=_0x364222[_0x5aab98];return _0x2bad9f;},_0x5aab(_0x3e2ca3,_0x564e6e);}function _0x3642(){var _0x3816e2=['249586SYbZeH','1173045zmNDQt','4493924MnIynw','207209xfPFem','18Afwrng','getInfo','8146243xiubGX','15hVXSmy','upload','5951536mgawsp','auto','846396AkSFHD'];_0x3642=function(){return _0x3816e2;};return _0x3642();}export class UploadUtils{static[_0x35c140(0xbe)]({file:_0x2577f8,publicKey:_0x4ba35c,signal:_0x2c54ed,onProgress:_0x379a88}){var _0x335da8=_0x35c140;return _0x37a0af(_0x2577f8,{'publicKey':_0x4ba35c,'store':_0x335da8(0xb4),'signal':_0x2c54ed,'onProgress':_0x379a88});}static[_0x35c140(0xbb)](_0x49e5fd,_0x5822ce){return _0x455fad(_0x49e5fd,_0x5822ce);}}
|