@ckeditor/ckeditor5-uploadcare 46.1.0-alpha.2 → 46.1.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 _0x397281}from'ckeditor5/src/core.js';import{ButtonView as _0x58a7ab}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x43436d}from'ckeditor5/src/icons.js';import{createElement as _0x5ef8c8}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 _0x397281{['_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 _0xfe7bd5=this['editor'];_0xfe7bd5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x194f24=>{const _0x2e45ff=_0xfe7bd5['commands']['get']('uploadcareImageEdit'),_0x35eb14=new _0x58a7ab(_0x194f24),t=_0x194f24['t'];return _0x35eb14['set']({'icon':_0x43436d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x35eb14['bind']('isEnabled')['to'](_0x2e45ff),_0x35eb14['bind']('isOn')['to'](_0x2e45ff,'isActive'),this['listenTo'](_0x35eb14,'execute',()=>{_0xfe7bd5['execute']('uploadcareImageEdit'),_0xfe7bd5['editing']['view']['focus']();}),_0x35eb14;}),this['_initConfig']();}['_initConfig'](){const _0xc1a205=_0x5ef8c8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xc1a205),this['listenTo'](this['editor'],'destroy',()=>{_0xc1a205['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x197aae=_0x3cf1;(function(_0x62d751,_0x405cac){var _0x47c538=_0x3cf1,_0x595f19=_0x62d751();while(!![]){try{var _0x3eef24=parseInt(_0x47c538(0x1a1))/0x1+parseInt(_0x47c538(0x192))/0x2*(parseInt(_0x47c538(0x19e))/0x3)+-parseInt(_0x47c538(0x19b))/0x4*(parseInt(_0x47c538(0x193))/0x5)+parseInt(_0x47c538(0x19f))/0x6*(-parseInt(_0x47c538(0x194))/0x7)+-parseInt(_0x47c538(0x1a0))/0x8+parseInt(_0x47c538(0x190))/0x9*(parseInt(_0x47c538(0x195))/0xa)+-parseInt(_0x47c538(0x18f))/0xb*(-parseInt(_0x47c538(0x19c))/0xc);if(_0x3eef24===_0x405cac)break;else _0x595f19['push'](_0x595f19['shift']());}catch(_0x5bebb3){_0x595f19['push'](_0x595f19['shift']());}}}(_0x8e6f,0xcbda6));import{FocusTracker as _0x4d322f}from'ckeditor5/src/utils.js';import{View as _0x20ef93,FocusCycler as _0x4744da}from'ckeditor5/src/ui.js';function _0x3cf1(_0x117074,_0x223e49){var _0x8e6f31=_0x8e6f();return _0x3cf1=function(_0x3cf1f3,_0x15a11d){_0x3cf1f3=_0x3cf1f3-0x18e;var _0x1dfa8a=_0x8e6f31[_0x3cf1f3];return _0x1dfa8a;},_0x3cf1(_0x117074,_0x223e49);}import'../../theme/uploadcare-form.css';function _0x8e6f(){var _0x299aa0=['focusTracker','bindTemplate','12kTdWrz','108YQDTlX','createCollection','40422cqMRgN','12ubcSVe','3757192lsUzeE','1307693TOXNte','getFocusableElement','focusCycler','154935zMazKZ','9bvjTMY','forwardCycle','8AHMLxf','1529210BWBCBT','1255149tmiLag','10924170XYKRYJ','fire','true','div'];_0x8e6f=function(){return _0x299aa0;};return _0x8e6f();}export class DialogFocusManagerView extends _0x20ef93{[_0x197aae(0x199)];[_0x197aae(0x18e)];constructor(_0x5ae517){var _0x5ce407=_0x197aae;super(_0x5ae517),this[_0x5ce407(0x199)]=new _0x4d322f(),this[_0x5ce407(0x18e)]=new _0x4744da({'focusables':this[_0x5ce407(0x19d)](),'focusTracker':this[_0x5ce407(0x199)]});}[_0x197aae(0x1a2)](){var _0x2827a8=_0x197aae;return{'tag':_0x2827a8(0x198),'attributes':{'aria-hidden':_0x2827a8(0x197),'tabindex':'0'},'on':{'focus':this[_0x2827a8(0x19a)]['to'](()=>{var _0x3e9629=_0x2827a8;this[_0x3e9629(0x18e)][_0x3e9629(0x196)](_0x3e9629(0x191));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x576d62,_0x3a5653){const _0x3b78c9=_0x5cbd,_0x590e04=_0x576d62();while(!![]){try{const _0x264fd0=parseInt(_0x3b78c9(0x113))/0x1*(-parseInt(_0x3b78c9(0x127))/0x2)+-parseInt(_0x3b78c9(0x104))/0x3*(-parseInt(_0x3b78c9(0x116))/0x4)+parseInt(_0x3b78c9(0x114))/0x5+parseInt(_0x3b78c9(0x10b))/0x6+-parseInt(_0x3b78c9(0x12c))/0x7*(-parseInt(_0x3b78c9(0x109))/0x8)+parseInt(_0x3b78c9(0x123))/0x9+parseInt(_0x3b78c9(0x10c))/0xa*(-parseInt(_0x3b78c9(0x10a))/0xb);if(_0x264fd0===_0x3a5653)break;else _0x590e04['push'](_0x590e04['shift']());}catch(_0x54ba19){_0x590e04['push'](_0x590e04['shift']());}}}(_0x5649,0x63214));import{global as _0x400a90,DomEmitterMixin as _0x22c656}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x40f279){const _0xcb6161=_0x5cbd,_0x5b3c83=G(_0x40f279);return _0x4603aa=>!(!_0x4603aa||!_0x4603aa['is'](_0xcb6161(0x106),_0xcb6161(0x110))&&!_0x4603aa['is'](_0xcb6161(0x106),_0xcb6161(0x12b)))&&(!!_0x4603aa[_0xcb6161(0x11d)](_0xcb6161(0xff))||!!_0x4603aa[_0xcb6161(0x11d)](_0xcb6161(0xfd))&&_0x5b3c83(_0x4603aa[_0xcb6161(0x11c)](_0xcb6161(0xfd))));}function _0x5649(){const _0xca38a4=['2202486YMUKpy','408110xYqpJX','listenTo','document','function','imageBlock','addClass','editing','2MbvhWP','706635ktzpQh','plugins','8LGTqww','load','window','location','/-/resize/','toViewElement','getAttribute','hasAttribute','setStyle','some','change','aspect-ratio','map','2929122TQJJCN','domConverter','findViewImgElement','isArray','211942xiJpRl','filter','baseURI','height','imageInline','4179NgbtFj','replace','stopListening','view','ImageUtils','match','x/\x20','mapper','get','image-processing','image/webp','src','join','uploadcareImageId','width','removeClass','origin','removeStyle','19254ihDQNa','(max-width:\x20','element','px)\x20100vw,\x20','viewToDom','6232GRTBMw','187FLjcXU'];_0x5649=function(){return _0xca38a4;};return _0x5649();}export function getImageUrls(_0x1b09ed,_0x1f134f){const _0x1dd5bb=_0x5cbd,_0x2b0b37=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1dd5bb(0x128)](_0x4c4336=>_0x4c4336<=_0x1f134f)[_0x1dd5bb(0x122)](_0x21d761=>_0x1b09ed[_0x1dd5bb(0x12d)](/\/$/,'')+_0x1dd5bb(0x11a)+_0x21d761+_0x1dd5bb(0xf8)+_0x21d761+'w');return{'imageFallbackUrl':_0x1b09ed,'imageSources':[{'srcset':_0x2b0b37[_0x1dd5bb(0xfe)](',\x20'),'sizes':_0x1dd5bb(0x105)+_0x1f134f+_0x1dd5bb(0x107)+_0x1f134f+'px','type':_0x1dd5bb(0xfc)}]};}export function getImageDimension(_0x1302c9,_0x56631e,_0x459afd){const _0x34ece5=_0x5cbd,_0x213e5a=_0x1302c9[_0x34ece5(0x131)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x213e5a?parseInt(_0x213e5a[0x1],0xa):_0x56631e,'height':_0x213e5a?parseInt(_0x213e5a[0x2],0xa):_0x459afd};}export function showImageProcessingIndicator(_0x9c0625,_0xa65a7a){const _0x8b889f=_0x5cbd,_0x2a7244=new(_0x22c656())(),_0x216387=_0x9c0625[_0x8b889f(0x115)][_0x8b889f(0xfa)](_0x8b889f(0x130)),_0x42e624=_0x9c0625[_0x8b889f(0x112)][_0x8b889f(0xf9)][_0x8b889f(0x11b)](_0xa65a7a),_0x4e5b19=_0x216387[_0x8b889f(0x125)](_0x42e624),_0x66d561=_0x9c0625[_0x8b889f(0x112)][_0x8b889f(0x12f)][_0x8b889f(0x124)][_0x8b889f(0x108)](_0x4e5b19),_0x42de46=_0xa65a7a[_0x8b889f(0x11c)](_0x8b889f(0x100)),_0x2fef97=_0xa65a7a[_0x8b889f(0x11c)](_0x8b889f(0x12a)),_0xce2cf7=_0x8b889f(0xfb);_0x9c0625[_0x8b889f(0x112)][_0x8b889f(0x12f)][_0x8b889f(0x120)](_0x1ddb5a=>{const _0x4d0c5b=_0x8b889f;_0x1ddb5a[_0x4d0c5b(0x111)](_0xce2cf7,_0x42e624),_0x1ddb5a[_0x4d0c5b(0x11e)](_0x4d0c5b(0x121),_0x42de46+'/'+_0x2fef97,_0x4e5b19);}),_0x2a7244[_0x8b889f(0x10d)](_0x66d561,_0x8b889f(0x117),()=>{const _0x55aeed=_0x8b889f;_0x2a7244[_0x55aeed(0x12e)](_0x66d561,_0x55aeed(0x117)),_0x9c0625[_0x55aeed(0x112)][_0x55aeed(0x12f)][_0x55aeed(0x120)](_0x888607=>{const _0x3adb39=_0x55aeed;_0x888607[_0x3adb39(0x101)](_0xce2cf7,_0x42e624),_0x888607[_0x3adb39(0x103)](_0x3adb39(0x121),_0x4e5b19);});});}function _0x5cbd(_0x5acd1a,_0xe9be4b){const _0x5649c2=_0x5649();return _0x5cbd=function(_0x5cbd1b,_0x3f79bf){_0x5cbd1b=_0x5cbd1b-0xf8;let _0x3892c0=_0x5649c2[_0x5cbd1b];return _0x3892c0;},_0x5cbd(_0x5acd1a,_0xe9be4b);}function G(_0x25f5f4){const _0x3fb8f9=_0x5cbd;if(Array[_0x3fb8f9(0x126)](_0x25f5f4)){const _0x48bbe3=_0x25f5f4[_0x3fb8f9(0x122)](G);return _0x2ccfab=>_0x48bbe3[_0x3fb8f9(0x11f)](_0x31c2f0=>_0x31c2f0(_0x2ccfab));}if(_0x3fb8f9(0x102)==_0x25f5f4){const _0x33ed6a=_0x400a90[_0x3fb8f9(0x118)][_0x3fb8f9(0x119)][_0x3fb8f9(0x102)];return _0x5c0579=>new URL(_0x5c0579,_0x400a90[_0x3fb8f9(0x10e)][_0x3fb8f9(0x129)])[_0x3fb8f9(0x102)]==_0x33ed6a;}return _0x3fb8f9(0x10f)==typeof _0x25f5f4?_0x25f5f4:_0x25f5f4 instanceof RegExp?_0x5ac231=>!(!_0x5ac231[_0x3fb8f9(0x131)](_0x25f5f4)&&!_0x5ac231[_0x3fb8f9(0x12d)](/^https?:\/\//,'')[_0x3fb8f9(0x131)](_0x25f5f4)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5b0b(_0x57258d,_0xf8b95e){var _0x215dff=_0x215d();return _0x5b0b=function(_0x5b0bb0,_0x197d8d){_0x5b0bb0=_0x5b0bb0-0xcb;var _0x4c0b00=_0x215dff[_0x5b0bb0];return _0x4c0b00;},_0x5b0b(_0x57258d,_0xf8b95e);}function _0x215d(){var _0x5632f9=['2089782MyWEJC','9120139egHMtD','includes','3324864wFuBpH','6575740lEqAfh','2263838eFZuBK','target','6pmaQYr','8muHHZd','4213gphDvn','3kYqpMB','582641UOCcnt','38910FoWfio'];_0x215d=function(){return _0x5632f9;};return _0x215d();}(function(_0xea945f,_0x253aab){var _0x43fa39=_0x5b0b,_0x1f4484=_0xea945f();while(!![]){try{var _0x37f00e=-parseInt(_0x43fa39(0xce))/0x1+-parseInt(_0x43fa39(0xd5))/0x2*(parseInt(_0x43fa39(0xcd))/0x3)+parseInt(_0x43fa39(0xd3))/0x4+parseInt(_0x43fa39(0xd4))/0x5*(-parseInt(_0x43fa39(0xd7))/0x6)+parseInt(_0x43fa39(0xd1))/0x7*(parseInt(_0x43fa39(0xcb))/0x8)+parseInt(_0x43fa39(0xd0))/0x9+parseInt(_0x43fa39(0xcf))/0xa*(parseInt(_0x43fa39(0xcc))/0xb);if(_0x37f00e===_0x253aab)break;else _0x1f4484['push'](_0x1f4484['shift']());}catch(_0x30eed4){_0x1f4484['push'](_0x1f4484['shift']());}}}(_0x215d,0xc9dd4));import{getAncestors as _0x3024f8}from'ckeditor5/src/utils.js';export function isAncestor(_0x3beb6e,_0x45ff71){var _0x55b7bd=_0x5b0b;return _0x3024f8(_0x3beb6e[_0x55b7bd(0xd6)])[_0x55b7bd(0xd2)](_0x45ff71);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x25ad(_0x286e7d,_0x20f4dd){var _0x152e33=_0x152e();return _0x25ad=function(_0x25ad9b,_0x1d7789){_0x25ad9b=_0x25ad9b-0xec;var _0x3072a8=_0x152e33[_0x25ad9b];return _0x3072a8;},_0x25ad(_0x286e7d,_0x20f4dd);}function _0x152e(){var _0x2ca7f3=['739071BomQyq','592742SnFrhd','getInfo','upload','30204DraYPo','1146658XbMfOw','835788rFPTVY','12160566FcXasr','11540256BFeykG','905RHKXbK','8wwRdbb'];_0x152e=function(){return _0x2ca7f3;};return _0x152e();}var _0x26cde0=_0x25ad;(function(_0x34c7ae,_0xb92a3f){var _0x30511a=_0x25ad,_0x50f33e=_0x34c7ae();while(!![]){try{var _0x1151d3=-parseInt(_0x30511a(0xef))/0x1+parseInt(_0x30511a(0xf6))/0x2+parseInt(_0x30511a(0xf5))/0x3+parseInt(_0x30511a(0xee))/0x4*(parseInt(_0x30511a(0xf3))/0x5)+-parseInt(_0x30511a(0xf0))/0x6+parseInt(_0x30511a(0xf2))/0x7+parseInt(_0x30511a(0xf4))/0x8*(-parseInt(_0x30511a(0xf1))/0x9);if(_0x1151d3===_0xb92a3f)break;else _0x50f33e['push'](_0x50f33e['shift']());}catch(_0x3f944e){_0x50f33e['push'](_0x50f33e['shift']());}}}(_0x152e,0xe0d69));import{uploadFile as _0x4935c9,info as _0x4fc742}from'@uploadcare/upload-client';export class UploadUtils{static[_0x26cde0(0xed)]({file:_0x19c504,..._0x3a045e}){return _0x4935c9(_0x19c504,_0x3a045e);}static[_0x26cde0(0xec)](_0x20de21,_0x41a5aa){return _0x4fc742(_0x20de21,_0x41a5aa);}}
|