@ckeditor/ckeditor5-uploadcare 47.6.0-alpha.9 → 47.6.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 _0x28bbbb}from'ckeditor5/src/core.js';import{ButtonView as _0x5e3b77}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x19ad0e}from'ckeditor5/src/icons.js';import{createElement as _0x52faa2}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 _0x28bbbb{['_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 _0x393efd=this['editor'];_0x393efd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4710b5=>{const _0x2e0baf=_0x393efd['commands']['get']('uploadcareImageEdit'),_0x3a21c1=new _0x5e3b77(_0x4710b5),t=_0x4710b5['t'];return _0x3a21c1['set']({'icon':_0x19ad0e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a21c1['bind']('isEnabled')['to'](_0x2e0baf),_0x3a21c1['bind']('isOn')['to'](_0x2e0baf,'isActive'),this['listenTo'](_0x3a21c1,'execute',()=>{_0x393efd['execute']('uploadcareImageEdit'),_0x393efd['editing']['view']['focus']();}),_0x3a21c1;}),this['_initConfig']();}['_initConfig'](){const _0x296df5=_0x52faa2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x296df5),this['listenTo'](this['editor'],'destroy',()=>{_0x296df5['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x18f134=_0x36da;function _0x36da(_0x58e4ad,_0x32e7e0){var _0xf07971=_0xf079();return _0x36da=function(_0x36da39,_0xafc7b9){_0x36da39=_0x36da39-0x7b;var _0x593fb5=_0xf07971[_0x36da39];return _0x593fb5;},_0x36da(_0x58e4ad,_0x32e7e0);}(function(_0xc3623a,_0x4eccdc){var _0x573681=_0x36da,_0x5123ac=_0xc3623a();while(!![]){try{var _0x4824a9=parseInt(_0x573681(0x87))/0x1+-parseInt(_0x573681(0x7f))/0x2+-parseInt(_0x573681(0x8b))/0x3+-parseInt(_0x573681(0x80))/0x4*(-parseInt(_0x573681(0x81))/0x5)+-parseInt(_0x573681(0x82))/0x6+-parseInt(_0x573681(0x7b))/0x7+parseInt(_0x573681(0x88))/0x8*(parseInt(_0x573681(0x7e))/0x9);if(_0x4824a9===_0x4eccdc)break;else _0x5123ac['push'](_0x5123ac['shift']());}catch(_0x554818){_0x5123ac['push'](_0x5123ac['shift']());}}}(_0xf079,0xc6ba4));import{FocusTracker as _0xb87aab}from'ckeditor5/src/utils.js';function _0xf079(){var _0x42282a=['div','forwardCycle','898737DknyHf','createCollection','5085227jfFWwS','bindTemplate','getFocusableElement','288VNbHCk','1829416qOGgZH','38384Wjmcct','830nlJeeo','2797608Uovvfb','focusTracker','true','focusCycler','fire','789284DeGIfo','209696hrnVFh'];_0xf079=function(){return _0x42282a;};return _0xf079();}import{View as _0x6f304c,FocusCycler as _0x1c07f9}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x6f304c{[_0x18f134(0x83)];[_0x18f134(0x85)];constructor(_0x4d5dab){var _0x42599c=_0x18f134;super(_0x4d5dab),this[_0x42599c(0x83)]=new _0xb87aab(),this[_0x42599c(0x85)]=new _0x1c07f9({'focusables':this[_0x42599c(0x8c)](),'focusTracker':this[_0x42599c(0x83)]});}[_0x18f134(0x7d)](){var _0x3e15ff=_0x18f134;return{'tag':_0x3e15ff(0x89),'attributes':{'aria-hidden':_0x3e15ff(0x84),'tabindex':'0'},'on':{'focus':this[_0x3e15ff(0x7c)]['to'](()=>{var _0x197c7d=_0x3e15ff;this[_0x197c7d(0x85)][_0x197c7d(0x86)](_0x197c7d(0x8a));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x413538,_0x495b3c){const _0x5d205c=_0x132e,_0x36685c=_0x413538();while(!![]){try{const _0x356b76=parseInt(_0x5d205c(0x1f1))/0x1*(parseInt(_0x5d205c(0x20f))/0x2)+parseInt(_0x5d205c(0x207))/0x3+-parseInt(_0x5d205c(0x219))/0x4*(parseInt(_0x5d205c(0x226))/0x5)+-parseInt(_0x5d205c(0x1f9))/0x6*(-parseInt(_0x5d205c(0x1ff))/0x7)+-parseInt(_0x5d205c(0x215))/0x8*(-parseInt(_0x5d205c(0x1f8))/0x9)+-parseInt(_0x5d205c(0x21c))/0xa+parseInt(_0x5d205c(0x227))/0xb*(-parseInt(_0x5d205c(0x1fd))/0xc);if(_0x356b76===_0x495b3c)break;else _0x36685c['push'](_0x36685c['shift']());}catch(_0x212b06){_0x36685c['push'](_0x36685c['shift']());}}}(_0x5ac7,0xdd5d0));function _0x132e(_0x9921,_0x20c534){const _0x5ac71c=_0x5ac7();return _0x132e=function(_0x132e52,_0x5910d7){_0x132e52=_0x132e52-0x1ee;let _0x3e8303=_0x5ac71c[_0x132e52];return _0x3e8303;},_0x132e(_0x9921,_0x20c534);}function _0x5ac7(){const _0xf0cb10=['join','9KDtLCU','276WktqcZ','location','findViewImgElement','image-processing','108qDAtBp','getAttribute','3521yUvKha','element','px)\x20100vw,\x20','match','setStyle','uploadcareImageId','addClass','change','2597574qjHWJi','aspect-ratio','(max-width:\x20','map','/-/resize/','imageInline','removeClass','isArray','2jyveBz','plugins','listenTo','replace','some','stopListening','11556136mUVZKF','hasAttribute','x/\x20','width','672888ikQhLt','imageBlock','toViewElement','12760830nDVduw','mapper','image/webp','removeStyle','document','editing','src','function','height','load','25oWqeaD','456566fwSXHX','ImageUtils','window','get','viewToDom','1063938EBrBMc','baseURI','domConverter','filter','view','origin'];_0x5ac7=function(){return _0xf0cb10;};return _0x5ac7();}import{global as _0xd85306,DomEmitterMixin as _0x468763}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x14a95d){const _0x435b62=_0x132e,_0x4acd76=G(_0x14a95d);return _0x134407=>!(!_0x134407||!_0x134407['is'](_0x435b62(0x200),_0x435b62(0x21a))&&!_0x134407['is'](_0x435b62(0x200),_0x435b62(0x20c)))&&(!!_0x134407[_0x435b62(0x216)](_0x435b62(0x204))||!!_0x134407[_0x435b62(0x216)](_0x435b62(0x222))&&_0x4acd76(_0x134407[_0x435b62(0x1fe)](_0x435b62(0x222))));}export function getImageUrls(_0x5e1295,_0x253f47){const _0xac708=_0x132e,_0x4b4606=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0xac708(0x1f4)](_0x196aec=>_0x196aec<=_0x253f47)[_0xac708(0x20a)](_0x1660a0=>_0x5e1295[_0xac708(0x212)](/\/$/,'')+_0xac708(0x20b)+_0x1660a0+_0xac708(0x217)+_0x1660a0+'w');return{'imageFallbackUrl':_0x5e1295,'imageSources':[{'srcset':_0x4b4606[_0xac708(0x1f7)](',\x20'),'sizes':_0xac708(0x209)+_0x253f47+_0xac708(0x201)+_0x253f47+'px','type':_0xac708(0x21e)}]};}export function getImageDimension(_0x98b942,_0x474bef,_0x1a456a){const _0x15ebc6=_0x132e,_0x6dec39=_0x98b942[_0x15ebc6(0x202)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x6dec39?parseInt(_0x6dec39[0x1],0xa):_0x474bef,'height':_0x6dec39?parseInt(_0x6dec39[0x2],0xa):_0x1a456a};}export function showImageProcessingIndicator(_0x503889,_0x1f2dd9){const _0x1779f2=_0x132e,_0x4b4459=new(_0x468763())(),_0x14e421=_0x503889[_0x1779f2(0x210)][_0x1779f2(0x1ef)](_0x1779f2(0x228)),_0x1819cd=_0x503889[_0x1779f2(0x221)][_0x1779f2(0x21d)][_0x1779f2(0x21b)](_0x1f2dd9),_0x48be40=_0x14e421[_0x1779f2(0x1fb)](_0x1819cd),_0x4ec410=_0x503889[_0x1779f2(0x221)][_0x1779f2(0x1f5)][_0x1779f2(0x1f3)][_0x1779f2(0x1f0)](_0x48be40),_0x183b42=_0x1f2dd9[_0x1779f2(0x1fe)](_0x1779f2(0x218)),_0x579fd6=_0x1f2dd9[_0x1779f2(0x1fe)](_0x1779f2(0x224)),_0x2ebece=_0x1779f2(0x1fc);_0x503889[_0x1779f2(0x221)][_0x1779f2(0x1f5)][_0x1779f2(0x206)](_0x4b1125=>{const _0xd8d97c=_0x1779f2;_0x4b1125[_0xd8d97c(0x205)](_0x2ebece,_0x1819cd),_0x4b1125[_0xd8d97c(0x203)](_0xd8d97c(0x208),_0x183b42+'/'+_0x579fd6,_0x48be40);}),_0x4b4459[_0x1779f2(0x211)](_0x4ec410,_0x1779f2(0x225),()=>{const _0x26a350=_0x1779f2;_0x4b4459[_0x26a350(0x214)](_0x4ec410,_0x26a350(0x225)),_0x503889[_0x26a350(0x221)][_0x26a350(0x1f5)][_0x26a350(0x206)](_0x4daf62=>{const _0x45636e=_0x26a350;_0x4daf62[_0x45636e(0x20d)](_0x2ebece,_0x1819cd),_0x4daf62[_0x45636e(0x21f)](_0x45636e(0x208),_0x48be40);});});}function G(_0x39c1f4){const _0x39ed87=_0x132e;if(Array[_0x39ed87(0x20e)](_0x39c1f4)){const _0x3ed325=_0x39c1f4[_0x39ed87(0x20a)](G);return _0x40b3f0=>_0x3ed325[_0x39ed87(0x213)](_0x23cdd0=>_0x23cdd0(_0x40b3f0));}if(_0x39ed87(0x1f6)==_0x39c1f4){const _0x38d8a1=_0xd85306[_0x39ed87(0x1ee)][_0x39ed87(0x1fa)][_0x39ed87(0x1f6)];return _0x1a9091=>new URL(_0x1a9091,_0xd85306[_0x39ed87(0x220)][_0x39ed87(0x1f2)])[_0x39ed87(0x1f6)]==_0x38d8a1;}return _0x39ed87(0x223)==typeof _0x39c1f4?_0x39c1f4:_0x39c1f4 instanceof RegExp?_0x3aeb05=>!(!_0x3aeb05[_0x39ed87(0x202)](_0x39c1f4)&&!_0x3aeb05[_0x39ed87(0x212)](/^https?:\/\//,'')[_0x39ed87(0x202)](_0x39c1f4)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1774(){var _0x55fa2a=['1eoGWZO','1489770YSepfF','2874430kTAtRj','7jNHQWm','3294090nroRXb','239804qXNDAV','1052wMWRNv','includes','target','114QpDYWP','1721936NBSzOK','671352zyUMrU'];_0x1774=function(){return _0x55fa2a;};return _0x1774();}(function(_0x34eb6f,_0x3e4b10){var _0x1e087d=_0x28ee,_0x3c3f54=_0x34eb6f();while(!![]){try{var _0x3c3601=-parseInt(_0x1e087d(0x145))/0x1*(-parseInt(_0x1e087d(0x13e))/0x2)+-parseInt(_0x1e087d(0x142))/0x3*(-parseInt(_0x1e087d(0x13f))/0x4)+parseInt(_0x1e087d(0x146))/0x5+parseInt(_0x1e087d(0x144))/0x6+parseInt(_0x1e087d(0x148))/0x7*(-parseInt(_0x1e087d(0x143))/0x8)+-parseInt(_0x1e087d(0x149))/0x9+parseInt(_0x1e087d(0x147))/0xa;if(_0x3c3601===_0x3e4b10)break;else _0x3c3f54['push'](_0x3c3f54['shift']());}catch(_0x2d3b39){_0x3c3f54['push'](_0x3c3f54['shift']());}}}(_0x1774,0x3c0ad));function _0x28ee(_0x5ca415,_0xb39082){var _0x1774ca=_0x1774();return _0x28ee=function(_0x28ee39,_0xbb56b1){_0x28ee39=_0x28ee39-0x13e;var _0x8a96ef=_0x1774ca[_0x28ee39];return _0x8a96ef;},_0x28ee(_0x5ca415,_0xb39082);}import{getAncestors as _0x1d3904}from'ckeditor5/src/utils.js';export function isAncestor(_0x42ea25,_0x72349c){var _0x41d599=_0x28ee;return _0x1d3904(_0x42ea25[_0x41d599(0x141)])[_0x41d599(0x140)](_0x72349c);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3165(){var _0x58d4e5=['1195187jfdCTs','835cUMKHh','4964QsCPJM','32280AiXXUT','8921925nESzbG','upload','2322084UzmbDz','getInfo','155148brzMhE','1216455YamkyH','16MEOIrl'];_0x3165=function(){return _0x58d4e5;};return _0x3165();}var _0x1d11a9=_0x24b1;(function(_0x51fd54,_0x2d3abc){var _0x58d88b=_0x24b1,_0x4ca9b3=_0x51fd54();while(!![]){try{var _0x2ee73c=parseInt(_0x58d88b(0x113))/0x1+-parseInt(_0x58d88b(0x119))/0x2+-parseInt(_0x58d88b(0x114))/0x3+-parseInt(_0x58d88b(0x118))/0x4*(-parseInt(_0x58d88b(0x117))/0x5)+-parseInt(_0x58d88b(0x111))/0x6+-parseInt(_0x58d88b(0x116))/0x7*(parseInt(_0x58d88b(0x115))/0x8)+parseInt(_0x58d88b(0x11a))/0x9;if(_0x2ee73c===_0x2d3abc)break;else _0x4ca9b3['push'](_0x4ca9b3['shift']());}catch(_0x2cf1c9){_0x4ca9b3['push'](_0x4ca9b3['shift']());}}}(_0x3165,0x31b4f));function _0x24b1(_0x537bb6,_0x458e5d){var _0x316556=_0x3165();return _0x24b1=function(_0x24b13d,_0xbccf8b){_0x24b13d=_0x24b13d-0x111;var _0x5a0db6=_0x316556[_0x24b13d];return _0x5a0db6;},_0x24b1(_0x537bb6,_0x458e5d);}import{uploadFile as _0x464d0c,info as _0x378a78}from'@uploadcare/upload-client';export class UploadUtils{static[_0x1d11a9(0x11b)]({file:_0x3bef01,..._0x37b811}){return _0x464d0c(_0x3bef01,_0x37b811);}static[_0x1d11a9(0x112)](_0x4317fd,_0x4374f5){return _0x378a78(_0x4317fd,_0x4374f5);}}
|