ckbox 2.6.0 → 2.6.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.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
- (function(_0x212758,_0x441e19){const _0x44a6ce=_0x268d,_0xbe167d=_0x212758();while(!![]){try{const _0x438d3f=-parseInt(_0x44a6ce(0x149))/0x1+-parseInt(_0x44a6ce(0x147))/0x2+-parseInt(_0x44a6ce(0x146))/0x3+parseInt(_0x44a6ce(0x143))/0x4+-parseInt(_0x44a6ce(0x140))/0x5+-parseInt(_0x44a6ce(0x14c))/0x6*(parseInt(_0x44a6ce(0x142))/0x7)+parseInt(_0x44a6ce(0x144))/0x8;if(_0x438d3f===_0x441e19)break;else _0xbe167d['push'](_0xbe167d['shift']());}catch(_0x1fa8d6){_0xbe167d['push'](_0xbe167d['shift']());}}}(_0x62d3,0xd1a91));import*as _0x2e66c8 from'react';function _0x62d3(){const _0x17fb11=['call','676028OBUfSD','onChoose','createElement','6FRXSEl','CKBox','assets','createRoot','boolean','onClose','bind','7338675gQZYsc','render','8407483KdDqbe','5456988LkPTrg','45509096DUWfHc','unmount','3763914QmtyFe','3189290oreCAY'];_0x62d3=function(){return _0x17fb11;};return _0x62d3();}export{_0x2e66c8 as React};import*as _0x35cf64 from'react-dom/client';import{CKBox as _0x584b58,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x358fbf,_0x15266c)=>{const _0x50c622=_0x268d,_0x59318f=_0x358fbf['dialog'];if(!_0x59318f)return![];if(typeof _0x59318f===_0x50c622(0x13d)){const _0x2dae88=()=>{_0x15266c();};return{'open':!![],'onClose':_0x2dae88};}const _0x1ff424=()=>{const _0x2e8452=_0x50c622;var _0x2250eb;(_0x2250eb=_0x59318f[_0x2e8452(0x13e)])===null||_0x2250eb===void 0x0?void 0x0:_0x2250eb[_0x2e8452(0x148)](_0x59318f),_0x15266c();};return{..._0x59318f,'open':!![],'onClose':_0x1ff424};},getAssetsProps=(_0x5181b5,_0x341bdc)=>{const _0x2c5b6e=_0x268d;var _0x4cd537;const _0x3ea1e9=(_0x4cd537=_0x5181b5['assets'])===null||_0x4cd537===void 0x0?void 0x0:_0x4cd537[_0x2c5b6e(0x14a)];if(!_0x3ea1e9)return _0x5181b5[_0x2c5b6e(0x14e)];const _0x5474d4=_0x43391e=>{const _0x47f685=_0x2c5b6e;var _0x2b3a6b;_0x3ea1e9(_0x43391e),_0x341bdc&&typeof _0x341bdc!==_0x47f685(0x13d)&&((_0x2b3a6b=_0x341bdc['onClose'])===null||_0x2b3a6b===void 0x0?void 0x0:_0x2b3a6b[_0x47f685(0x148)](_0x341bdc));};return{..._0x5181b5['assets'],'onChoose':_0x5474d4};},mount=(_0x1ea86f,_0x476067)=>{const _0xc32142=_0x268d,_0x327d46=_0x35cf64[_0xc32142(0x13c)](_0x1ea86f),_0x313265=_0x327d46[_0xc32142(0x145)][_0xc32142(0x13f)](_0x327d46),_0x15878c=getDialogProps(_0x476067,_0x313265),_0x5f09c1=getAssetsProps(_0x476067,_0x15878c);return _0x327d46['render'](_0x2e66c8['createElement'](_0x584b58,{..._0x476067,'assets':_0x5f09c1,'dialog':_0x15878c})),{'unmount':_0x313265};},mountImageEditor=(_0x18e303,_0x53c3a2)=>{const _0x365fad=_0x268d,_0x5d9272=_0x35cf64['createRoot'](_0x18e303),_0x53f939=_0x5d9272[_0x365fad(0x145)][_0x365fad(0x13f)](_0x5d9272),_0x5cf72c=()=>{const _0x416618=_0x365fad;var _0x3264cd;(_0x3264cd=_0x53c3a2['onClose'])===null||_0x3264cd===void 0x0?void 0x0:_0x3264cd[_0x416618(0x148)](_0x53c3a2),_0x53f939();};return _0x5d9272[_0x365fad(0x141)](_0x2e66c8[_0x365fad(0x14b)](CKBoxImageEditor,{..._0x53c3a2,'open':!![],'onClose':_0x5cf72c})),{'unmount':_0x53f939};};function _0x268d(_0x1e1802,_0x49db3c){const _0x62d354=_0x62d3();return _0x268d=function(_0x268db5,_0x7f0bc6){_0x268db5=_0x268db5-0x13c;let _0x191ed8=_0x62d354[_0x268db5];return _0x191ed8;},_0x268d(_0x1e1802,_0x49db3c);}var CKBox=Object['freeze']({'__proto__':null,'React':_0x2e66c8,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x159aaf=_0x268d,_0x25ca23=globalThis;!_0x25ca23[_0x159aaf(0x14d)]&&(_0x25ca23[_0x159aaf(0x14d)]=CKBox);}());export{mount,mountImageEditor};
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};
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "name": "ckbox",
25
- "version": "2.6.0",
25
+ "version": "2.6.1",
26
26
  "description": "Main CKBox package",
27
27
  "main": "dist/index.js",
28
28
  "types": "dist/index.d.ts",
@@ -32,6 +32,6 @@
32
32
  "react": "^18.3.1",
33
33
  "react-dom": "^18.3.1",
34
34
  "tslib": "^2.7.0",
35
- "@ckbox/core": "2.6.0"
35
+ "@ckbox/core": "2.6.1"
36
36
  }
37
37
  }