ckbox 2.6.1 → 2.8.0-rc.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/dist/index.d.ts CHANGED
@@ -36,4 +36,5 @@ declare const mountImageEditor: (root: Element, props: ImageEditorProps | ImageE
36
36
  unmount: () => void;
37
37
  };
38
38
 
39
- export { type Asset, type CoreAssetsConfigProps, type CoreAssetsOnChooseProps, type CoreDialogProps, type DialogProps, type ImageEditorFromUrlProps, type ImageEditorProps, type Props, mount, mountImageEditor };
39
+ export { mount, mountImageEditor };
40
+ export type { Asset, CoreAssetsConfigProps, CoreAssetsOnChooseProps, CoreDialogProps, DialogProps, ImageEditorFromUrlProps, ImageEditorProps, Props };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  */
4
- const _0x1ae85a=_0x1008;(function(_0x412805,_0x2c6767){const _0x40d300=_0x1008,_0x14995e=_0x412805();while(!![]){try{const _0x3b0d48=parseInt(_0x40d300(0x1d4))/0x1*(-parseInt(_0x40d300(0x1e6))/0x2)+parseInt(_0x40d300(0x1e0))/0x3*(parseInt(_0x40d300(0x1da))/0x4)+parseInt(_0x40d300(0x1e4))/0x5+parseInt(_0x40d300(0x1dd))/0x6+parseInt(_0x40d300(0x1e2))/0x7*(parseInt(_0x40d300(0x1d6))/0x8)+-parseInt(_0x40d300(0x1db))/0x9+parseInt(_0x40d300(0x1d8))/0xa*(-parseInt(_0x40d300(0x1e5))/0xb);if(_0x3b0d48===_0x2c6767)break;else _0x14995e['push'](_0x14995e['shift']());}catch(_0x86fc3b){_0x14995e['push'](_0x14995e['shift']());}}}(_0x3f69,0x36290));import*as _0x372e6d from'react';export{_0x372e6d as React};import*as _0x19d5e8 from'react-dom/client';function _0x1008(_0x438182,_0x4000b5){const _0x3f69fb=_0x3f69();return _0x1008=function(_0x1008fe,_0x2fa0f6){_0x1008fe=_0x1008fe-0x1d4;let _0x3e2520=_0x3f69fb[_0x1008fe];return _0x3e2520;},_0x1008(_0x438182,_0x4000b5);}import{CKBox as _0x418e13,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x20cfba,_0x29c60e)=>{const _0x35bed7=_0x1008,_0x47471e=_0x20cfba[_0x35bed7(0x1d7)];if(!_0x47471e)return![];if(typeof _0x47471e===_0x35bed7(0x1e7)){const _0x580cdf=()=>{_0x29c60e();};return{'open':!![],'onClose':_0x580cdf};}const _0x1dacf0=()=>{const _0x36c5ba=_0x35bed7;var _0x3853cd;(_0x3853cd=_0x47471e[_0x36c5ba(0x1dc)])===null||_0x3853cd===void 0x0?void 0x0:_0x3853cd[_0x36c5ba(0x1ea)](_0x47471e),_0x29c60e();};return{..._0x47471e,'open':!![],'onClose':_0x1dacf0};},getAssetsProps=(_0x50e0b8,_0x34b767)=>{const _0x2f2ac9=_0x1008;var _0x1be25e;const _0x4d730f=(_0x1be25e=_0x50e0b8['assets'])===null||_0x1be25e===void 0x0?void 0x0:_0x1be25e[_0x2f2ac9(0x1e3)];if(!_0x4d730f)return _0x50e0b8[_0x2f2ac9(0x1d5)];const _0x38f655=_0x3713da=>{const _0x38596b=_0x2f2ac9;var _0x5d0e42;_0x4d730f(_0x3713da),_0x34b767&&typeof _0x34b767!=='boolean'&&((_0x5d0e42=_0x34b767[_0x38596b(0x1dc)])===null||_0x5d0e42===void 0x0?void 0x0:_0x5d0e42[_0x38596b(0x1ea)](_0x34b767));};return{..._0x50e0b8[_0x2f2ac9(0x1d5)],'onChoose':_0x38f655};},mount=(_0xa6dd63,_0x3782f1)=>{const _0xa7234a=_0x1008,_0xd7f800=_0x19d5e8[_0xa7234a(0x1df)](_0xa6dd63),_0x362367=_0xd7f800[_0xa7234a(0x1d9)][_0xa7234a(0x1e8)](_0xd7f800),_0x5f1dd0=getDialogProps(_0x3782f1,_0x362367),_0x1e6a10=getAssetsProps(_0x3782f1,_0x5f1dd0);return _0xd7f800[_0xa7234a(0x1e1)](_0x372e6d[_0xa7234a(0x1de)](_0x418e13,{..._0x3782f1,'assets':_0x1e6a10,'dialog':_0x5f1dd0})),{'unmount':_0x362367};},mountImageEditor=(_0x190671,_0x2c5093)=>{const _0x281fbb=_0x1008,_0x265889=_0x19d5e8[_0x281fbb(0x1df)](_0x190671),_0x2dafe7=_0x265889[_0x281fbb(0x1d9)]['bind'](_0x265889),_0x29b6c4=()=>{const _0x58f381=_0x281fbb;var _0x1ada92;(_0x1ada92=_0x2c5093[_0x58f381(0x1dc)])===null||_0x1ada92===void 0x0?void 0x0:_0x1ada92[_0x58f381(0x1ea)](_0x2c5093),_0x2dafe7();};return _0x265889['render'](_0x372e6d[_0x281fbb(0x1de)](CKBoxImageEditor,{..._0x2c5093,'open':!![],'onClose':_0x29b6c4})),{'unmount':_0x2dafe7};};var CKBox=Object[_0x1ae85a(0x1eb)]({'__proto__':null,'React':_0x372e6d,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x328916=_0x1ae85a,_0xa3b081=globalThis;!_0xa3b081[_0x328916(0x1e9)]&&(_0xa3b081[_0x328916(0x1e9)]=CKBox);}());function _0x3f69(){const _0x4f3fb8=['unmount','232268yrcsMV','862758afIZBv','onClose','1619952BSLXxe','createElement','createRoot','6uybTEl','render','49aqnAyQ','onChoose','1588375UlDkmd','28039qTZAEj','12CGagMu','boolean','bind','CKBox','call','freeze','50443keEQuN','assets','91080tDynPR','dialog','640xiIxFY'];_0x3f69=function(){return _0x4f3fb8;};return _0x3f69();}export{mount,mountImageEditor};
4
+ const _0x693d2a=_0x124b;(function(_0x3a0db4,_0x313242){const _0x1eaf32=_0x124b,_0x4f0560=_0x3a0db4();while(!![]){try{const _0x1204c6=-parseInt(_0x1eaf32(0x110))/0x1*(-parseInt(_0x1eaf32(0x10a))/0x2)+parseInt(_0x1eaf32(0x104))/0x3*(-parseInt(_0x1eaf32(0x10d))/0x4)+-parseInt(_0x1eaf32(0x10f))/0x5+-parseInt(_0x1eaf32(0x103))/0x6*(-parseInt(_0x1eaf32(0xfe))/0x7)+parseInt(_0x1eaf32(0x109))/0x8*(parseInt(_0x1eaf32(0xff))/0x9)+parseInt(_0x1eaf32(0xfa))/0xa*(parseInt(_0x1eaf32(0x100))/0xb)+-parseInt(_0x1eaf32(0xfc))/0xc;if(_0x1204c6===_0x313242)break;else _0x4f0560['push'](_0x4f0560['shift']());}catch(_0x373069){_0x4f0560['push'](_0x4f0560['shift']());}}}(_0x4bfd,0x960c6));import*as _0x235a76 from'react';export{_0x235a76 as React};import*as _0x3197f4 from'react-dom/client';import{CKBox as _0x3f3989,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';function _0x4bfd(){const _0x145f4f=['bind','842570VDOWbR','9488mlYsCa','70IJbaIy','onChoose','13093080XdLIkC','onClose','7NgOcGd','246663Cecaob','261085upwPCV','CKBox','createRoot','5418582KwhwBl','9QQdJfE','createElement','render','call','dialog','280pnOZCU','74BzAUxD','assets','freeze','673788zozohu'];_0x4bfd=function(){return _0x145f4f;};return _0x4bfd();}const getDialogProps=(_0x3ed739,_0x530316)=>{const _0x2c55a3=_0x124b,_0x189592=_0x3ed739[_0x2c55a3(0x108)];if(!_0x189592)return![];if(typeof _0x189592==='boolean'){const _0x5f2a33=()=>{_0x530316();};return{'open':!![],'onClose':_0x5f2a33};}const _0x47089c=()=>{const _0x557d00=_0x2c55a3;var _0x32be84;(_0x32be84=_0x189592[_0x557d00(0xfd)])===null||_0x32be84===void 0x0?void 0x0:_0x32be84[_0x557d00(0x107)](_0x189592),_0x530316();};return{..._0x189592,'open':!![],'onClose':_0x47089c};},getAssetsProps=(_0x45bb52,_0x4f8690)=>{const _0xc25770=_0x124b;var _0x1323e9;const _0x4e3809=(_0x1323e9=_0x45bb52[_0xc25770(0x10b)])===null||_0x1323e9===void 0x0?void 0x0:_0x1323e9[_0xc25770(0xfb)];if(!_0x4e3809)return _0x45bb52[_0xc25770(0x10b)];const _0x567eb5=_0x5bbfc7=>{const _0x21f402=_0xc25770;var _0x25af56;_0x4e3809(_0x5bbfc7),_0x4f8690&&typeof _0x4f8690!=='boolean'&&((_0x25af56=_0x4f8690[_0x21f402(0xfd)])===null||_0x25af56===void 0x0?void 0x0:_0x25af56[_0x21f402(0x107)](_0x4f8690));};return{..._0x45bb52['assets'],'onChoose':_0x567eb5};},mount=(_0xab15ba,_0x20aa67)=>{const _0x3a315b=_0x124b,_0x1f06bf=_0x3197f4[_0x3a315b(0x102)](_0xab15ba),_0x3e4923=_0x1f06bf['unmount'][_0x3a315b(0x10e)](_0x1f06bf),_0x1dcc13=getDialogProps(_0x20aa67,_0x3e4923),_0x5308d8=getAssetsProps(_0x20aa67,_0x1dcc13);return _0x1f06bf[_0x3a315b(0x106)](_0x235a76[_0x3a315b(0x105)](_0x3f3989,{..._0x20aa67,'assets':_0x5308d8,'dialog':_0x1dcc13})),{'unmount':_0x3e4923};},mountImageEditor=(_0x37dc3f,_0x589fd4)=>{const _0x17a77a=_0x124b,_0x1fb317=_0x3197f4[_0x17a77a(0x102)](_0x37dc3f),_0x4f25f6=_0x1fb317['unmount'][_0x17a77a(0x10e)](_0x1fb317),_0x408173=()=>{const _0x3442bc=_0x17a77a;var _0x3c26b7;(_0x3c26b7=_0x589fd4['onClose'])===null||_0x3c26b7===void 0x0?void 0x0:_0x3c26b7[_0x3442bc(0x107)](_0x589fd4),_0x4f25f6();};return _0x1fb317[_0x17a77a(0x106)](_0x235a76['createElement'](CKBoxImageEditor,{..._0x589fd4,'open':!![],'onClose':_0x408173})),{'unmount':_0x4f25f6};};function _0x124b(_0x4eeede,_0x5d8030){const _0x4bfd9d=_0x4bfd();return _0x124b=function(_0x124bde,_0x421eb5){_0x124bde=_0x124bde-0xfa;let _0x87160e=_0x4bfd9d[_0x124bde];return _0x87160e;},_0x124b(_0x4eeede,_0x5d8030);}var CKBox=Object[_0x693d2a(0x10c)]({'__proto__':null,'React':_0x235a76,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x8f3e16=_0x693d2a,_0x39020c=globalThis;!_0x39020c[_0x8f3e16(0x101)]&&(_0x39020c[_0x8f3e16(0x101)]=CKBox);}());export{mount,mountImageEditor};