@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.9 → 47.0.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.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5649e9}from'ckeditor5/src/core.js';import{ButtonView as _0x35432c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x35536c}from'ckeditor5/src/icons.js';import{createElement as _0x4e842b}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 _0x5649e9{['_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 _0x199e25=this['editor'];_0x199e25['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2c5d2e=>{const _0x2c8cbd=_0x199e25['commands']['get']('uploadcareImageEdit'),_0x428d6b=new _0x35432c(_0x2c5d2e),t=_0x2c5d2e['t'];return _0x428d6b['set']({'icon':_0x35536c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x428d6b['bind']('isEnabled')['to'](_0x2c8cbd),_0x428d6b['bind']('isOn')['to'](_0x2c8cbd,'isActive'),this['listenTo'](_0x428d6b,'execute',()=>{_0x199e25['execute']('uploadcareImageEdit'),_0x199e25['editing']['view']['focus']();}),_0x428d6b;}),this['_initConfig']();}['_initConfig'](){const _0x5c03c6=_0x4e842b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5c03c6),this['listenTo'](this['editor'],'destroy',()=>{_0x5c03c6['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x22e8(){var _0x51259b=['72233uGLOoa','11iJSVyH','bindTemplate','2217724ACMHli','focusCycler','4628096oEDMRR','fire','10089XQBwug','true','504990tKMNnF','focusTracker','635094qsAQOh','createCollection','22756128SgHBeB','getFocusableElement','5XHCULj','792ksYHda','div','20lWkJQp','forwardCycle','62fDYfVx'];_0x22e8=function(){return _0x51259b;};return _0x22e8();}var _0xedab4=_0x18a6;function _0x18a6(_0x3dd356,_0x2fe727){var _0x22e8fd=_0x22e8();return _0x18a6=function(_0x18a60e,_0x1cca01){_0x18a60e=_0x18a60e-0x76;var _0x434e3e=_0x22e8fd[_0x18a60e];return _0x434e3e;},_0x18a6(_0x3dd356,_0x2fe727);}(function(_0x43b4aa,_0xccc86e){var _0x4be2a4=_0x18a6,_0x413a76=_0x43b4aa();while(!![]){try{var _0x48dc2c=-parseInt(_0x4be2a4(0x85))/0x1*(-parseInt(_0x4be2a4(0x7d))/0x2)+-parseInt(_0x4be2a4(0x89))/0x3+parseInt(_0x4be2a4(0x81))/0x4*(parseInt(_0x4be2a4(0x78))/0x5)+parseInt(_0x4be2a4(0x79))/0x6*(-parseInt(_0x4be2a4(0x7e))/0x7)+-parseInt(_0x4be2a4(0x83))/0x8+-parseInt(_0x4be2a4(0x87))/0x9*(-parseInt(_0x4be2a4(0x7b))/0xa)+parseInt(_0x4be2a4(0x7f))/0xb*(parseInt(_0x4be2a4(0x76))/0xc);if(_0x48dc2c===_0xccc86e)break;else _0x413a76['push'](_0x413a76['shift']());}catch(_0x17d809){_0x413a76['push'](_0x413a76['shift']());}}}(_0x22e8,0xb09ec));import{FocusTracker as _0x18b2f6}from'ckeditor5/src/utils.js';import{View as _0x16a726,FocusCycler as _0x2c58d9}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x16a726{[_0xedab4(0x88)];[_0xedab4(0x82)];constructor(_0x3d4581){var _0x4967c0=_0xedab4;super(_0x3d4581),this[_0x4967c0(0x88)]=new _0x18b2f6(),this[_0x4967c0(0x82)]=new _0x2c58d9({'focusables':this[_0x4967c0(0x8a)](),'focusTracker':this[_0x4967c0(0x88)]});}[_0xedab4(0x77)](){var _0x47725e=_0xedab4;return{'tag':_0x47725e(0x7a),'attributes':{'aria-hidden':_0x47725e(0x86),'tabindex':'0'},'on':{'focus':this[_0x47725e(0x80)]['to'](()=>{var _0x80a724=_0x47725e;this[_0x80a724(0x82)][_0x80a724(0x84)](_0x80a724(0x7c));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x30523e,_0x5a44b8){const _0x4aca1a=_0x448f,_0x44ee98=_0x30523e();while(!![]){try{const _0x2a880d=parseInt(_0x4aca1a(0x156))/0x1+parseInt(_0x4aca1a(0x144))/0x2*(parseInt(_0x4aca1a(0x131))/0x3)+-parseInt(_0x4aca1a(0x168))/0x4*(parseInt(_0x4aca1a(0x13d))/0x5)+-parseInt(_0x4aca1a(0x158))/0x6*(-parseInt(_0x4aca1a(0x130))/0x7)+-parseInt(_0x4aca1a(0x142))/0x8*(parseInt(_0x4aca1a(0x13b))/0x9)+-parseInt(_0x4aca1a(0x133))/0xa*(-parseInt(_0x4aca1a(0x143))/0xb)+-parseInt(_0x4aca1a(0x135))/0xc;if(_0x2a880d===_0x5a44b8)break;else _0x44ee98['push'](_0x44ee98['shift']());}catch(_0x24c547){_0x44ee98['push'](_0x44ee98['shift']());}}}(_0x5f38,0xad47f));import{global as _0x27c35a,DomEmitterMixin as _0x5a636a}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0xa04262){const _0x538327=_0x448f,_0x55e094=G(_0xa04262);return _0x4c0b72=>!(!_0x4c0b72||!_0x4c0b72['is'](_0x538327(0x14f),_0x538327(0x14c))&&!_0x4c0b72['is'](_0x538327(0x14f),_0x538327(0x159)))&&(!!_0x4c0b72[_0x538327(0x13c)](_0x538327(0x134))||!!_0x4c0b72[_0x538327(0x13c)](_0x538327(0x14a))&&_0x55e094(_0x4c0b72[_0x538327(0x13e)](_0x538327(0x14a))));}export function getImageUrls(_0x2dcbfd,_0x2e93f6){const _0x4eee37=_0x448f,_0xdd060d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4eee37(0x15a)](_0x224671=>_0x224671<=_0x2e93f6)[_0x4eee37(0x141)](_0x176558=>_0x2dcbfd[_0x4eee37(0x169)](/\/$/,'')+_0x4eee37(0x151)+_0x176558+_0x4eee37(0x148)+_0x176558+'w');return{'imageFallbackUrl':_0x2dcbfd,'imageSources':[{'srcset':_0xdd060d[_0x4eee37(0x137)](',\x20'),'sizes':_0x4eee37(0x155)+_0x2e93f6+_0x4eee37(0x145)+_0x2e93f6+'px','type':_0x4eee37(0x149)}]};}function _0x448f(_0x104faf,_0x11765f){const _0x5f38c7=_0x5f38();return _0x448f=function(_0x448fd0,_0x526f55){_0x448fd0=_0x448fd0-0x12f;let _0x21549e=_0x5f38c7[_0x448fd0];return _0x21549e;},_0x448f(_0x104faf,_0x11765f);}function _0x5f38(){const _0x1c65af=['element','aspect-ratio','/-/resize/','window','load','listenTo','(max-width:\x20','190501CZuivn','baseURI','6tUYRGu','imageInline','filter','width','addClass','origin','ImageUtils','mapper','editing','domConverter','location','some','function','isArray','removeStyle','findViewImgElement','4mrOMAE','replace','view','7617743xAhYLw','15363CguBXW','get','110FpXPrw','uploadcareImageId','7758156lSWXMV','removeClass','join','change','stopListening','setStyle','4842rUVzkU','hasAttribute','2222540MsGKrz','getAttribute','height','toViewElement','map','7920JdhveU','178959nNbEFG','342jVIOji','px)\x20100vw,\x20','viewToDom','document','x/\x20','image/webp','src','image-processing','imageBlock','match','plugins'];_0x5f38=function(){return _0x1c65af;};return _0x5f38();}export function getImageDimension(_0x1e8070,_0x55440b,_0x39bef3){const _0x2336a8=_0x448f,_0x21f14a=_0x1e8070[_0x2336a8(0x14d)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x21f14a?parseInt(_0x21f14a[0x1],0xa):_0x55440b,'height':_0x21f14a?parseInt(_0x21f14a[0x2],0xa):_0x39bef3};}export function showImageProcessingIndicator(_0x1991e5,_0xe32b35){const _0x467099=_0x448f,_0xa5229=new(_0x5a636a())(),_0x1f7991=_0x1991e5[_0x467099(0x14e)][_0x467099(0x132)](_0x467099(0x15e)),_0x566b6c=_0x1991e5[_0x467099(0x160)][_0x467099(0x15f)][_0x467099(0x140)](_0xe32b35),_0x45c428=_0x1f7991[_0x467099(0x167)](_0x566b6c),_0x305d2a=_0x1991e5[_0x467099(0x160)][_0x467099(0x12f)][_0x467099(0x161)][_0x467099(0x146)](_0x45c428),_0x3f6c6e=_0xe32b35[_0x467099(0x13e)](_0x467099(0x15b)),_0x171d5c=_0xe32b35[_0x467099(0x13e)](_0x467099(0x13f)),_0x7b8355=_0x467099(0x14b);_0x1991e5[_0x467099(0x160)][_0x467099(0x12f)][_0x467099(0x138)](_0x16a9e9=>{const _0x4a2efe=_0x467099;_0x16a9e9[_0x4a2efe(0x15c)](_0x7b8355,_0x566b6c),_0x16a9e9[_0x4a2efe(0x13a)](_0x4a2efe(0x150),_0x3f6c6e+'/'+_0x171d5c,_0x45c428);}),_0xa5229[_0x467099(0x154)](_0x305d2a,_0x467099(0x153),()=>{const _0x234527=_0x467099;_0xa5229[_0x234527(0x139)](_0x305d2a,_0x234527(0x153)),_0x1991e5[_0x234527(0x160)][_0x234527(0x12f)][_0x234527(0x138)](_0x2beb3a=>{const _0x375846=_0x234527;_0x2beb3a[_0x375846(0x136)](_0x7b8355,_0x566b6c),_0x2beb3a[_0x375846(0x166)](_0x375846(0x150),_0x45c428);});});}function G(_0x296d6e){const _0x2c995e=_0x448f;if(Array[_0x2c995e(0x165)](_0x296d6e)){const _0x2b3ecf=_0x296d6e[_0x2c995e(0x141)](G);return _0x27e408=>_0x2b3ecf[_0x2c995e(0x163)](_0x15aee8=>_0x15aee8(_0x27e408));}if(_0x2c995e(0x15d)==_0x296d6e){const _0x41f09d=_0x27c35a[_0x2c995e(0x152)][_0x2c995e(0x162)][_0x2c995e(0x15d)];return _0x2a9b2e=>new URL(_0x2a9b2e,_0x27c35a[_0x2c995e(0x147)][_0x2c995e(0x157)])[_0x2c995e(0x15d)]==_0x41f09d;}return _0x2c995e(0x164)==typeof _0x296d6e?_0x296d6e:_0x296d6e instanceof RegExp?_0x3c76c1=>!(!_0x3c76c1[_0x2c995e(0x14d)](_0x296d6e)&&!_0x3c76c1[_0x2c995e(0x169)](/^https?:\/\//,'')[_0x2c995e(0x14d)](_0x296d6e)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4edd(_0x93fe46,_0x32bfc0){var _0x405b93=_0x405b();return _0x4edd=function(_0x4edd7e,_0x174e49){_0x4edd7e=_0x4edd7e-0x1cb;var _0x17d482=_0x405b93[_0x4edd7e];return _0x17d482;},_0x4edd(_0x93fe46,_0x32bfc0);}function _0x405b(){var _0x205299=['44860UVPXtE','42RQhssr','3154855ifpekk','4HEucZu','279kFVtQa','70qbtjBX','1185648LwvsuV','42145ApDYLa','includes','2513916IuoroM','18164454TfJBYU','target','5016bvRynO'];_0x405b=function(){return _0x205299;};return _0x405b();}(function(_0x2f1592,_0x2a54f8){var _0x5877c7=_0x4edd,_0x3d7f3c=_0x2f1592();while(!![]){try{var _0x1f9da5=-parseInt(_0x5877c7(0x1d0))/0x1*(parseInt(_0x5877c7(0x1d7))/0x2)+-parseInt(_0x5877c7(0x1d2))/0x3*(parseInt(_0x5877c7(0x1cc))/0x4)+parseInt(_0x5877c7(0x1cb))/0x5+parseInt(_0x5877c7(0x1cf))/0x6+parseInt(_0x5877c7(0x1ce))/0x7*(-parseInt(_0x5877c7(0x1d5))/0x8)+parseInt(_0x5877c7(0x1cd))/0x9*(-parseInt(_0x5877c7(0x1d6))/0xa)+parseInt(_0x5877c7(0x1d3))/0xb;if(_0x1f9da5===_0x2a54f8)break;else _0x3d7f3c['push'](_0x3d7f3c['shift']());}catch(_0x283789){_0x3d7f3c['push'](_0x3d7f3c['shift']());}}}(_0x405b,0x954d4));import{getAncestors as _0x20563d}from'ckeditor5/src/utils.js';export function isAncestor(_0x2423bb,_0x263c13){var _0x412e91=_0x4edd;return _0x20563d(_0x2423bb[_0x412e91(0x1d4)])[_0x412e91(0x1d1)](_0x263c13);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2188(_0x2fa624,_0x3acedb){var _0x2b55e6=_0x2b55();return _0x2188=function(_0x218838,_0x3bca6f){_0x218838=_0x218838-0x180;var _0x1795f3=_0x2b55e6[_0x218838];return _0x1795f3;},_0x2188(_0x2fa624,_0x3acedb);}var _0x1971a3=_0x2188;(function(_0x5735d6,_0x2a3891){var _0x18e6c0=_0x2188,_0x4b3aaf=_0x5735d6();while(!![]){try{var _0x28bc84=parseInt(_0x18e6c0(0x184))/0x1+-parseInt(_0x18e6c0(0x189))/0x2+parseInt(_0x18e6c0(0x187))/0x3+parseInt(_0x18e6c0(0x183))/0x4*(-parseInt(_0x18e6c0(0x180))/0x5)+-parseInt(_0x18e6c0(0x18a))/0x6+parseInt(_0x18e6c0(0x188))/0x7*(-parseInt(_0x18e6c0(0x185))/0x8)+parseInt(_0x18e6c0(0x181))/0x9;if(_0x28bc84===_0x2a3891)break;else _0x4b3aaf['push'](_0x4b3aaf['shift']());}catch(_0xb79ac4){_0x4b3aaf['push'](_0x4b3aaf['shift']());}}}(_0x2b55,0xd81cb));import{uploadFile as _0x357a1e,info as _0x5a4663}from'@uploadcare/upload-client';function _0x2b55(){var _0x35cee8=['18502407wlnnec','getInfo','8nmJYCZ','1381200NdIKtA','285072IkHbwm','upload','4892124LFJVUp','161PcTXuQ','1855876LkvAKE','5754216iBtoBl','3689950ZcJAGJ'];_0x2b55=function(){return _0x35cee8;};return _0x2b55();}export class UploadUtils{static[_0x1971a3(0x186)]({file:_0x85ea7c,..._0x68dfd2}){return _0x357a1e(_0x85ea7c,_0x68dfd2);}static[_0x1971a3(0x182)](_0x40503e,_0x413819){return _0x5a4663(_0x40503e,_0x413819);}}
|