ckbox 2.10.0-rc.1 → 2.10.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/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 _0x13f052=_0x5b92;function _0x5b92(_0x2e04a9,_0x1132d3){_0x2e04a9=_0x2e04a9-0xa6;const _0x2cc5ea=_0x2cc5();let _0x5b9243=_0x2cc5ea[_0x2e04a9];return _0x5b9243;}(function(_0x8e3a4c,_0x19f512){const _0x27599d=_0x5b92,_0x32d746=_0x8e3a4c();while(!![]){try{const _0x4ea293=-parseInt(_0x27599d(0xb5))/0x1*(-parseInt(_0x27599d(0xaa))/0x2)+-parseInt(_0x27599d(0xb4))/0x3+parseInt(_0x27599d(0xb8))/0x4+parseInt(_0x27599d(0xb2))/0x5+parseInt(_0x27599d(0xab))/0x6+-parseInt(_0x27599d(0xad))/0x7+-parseInt(_0x27599d(0xb3))/0x8*(parseInt(_0x27599d(0xb1))/0x9);if(_0x4ea293===_0x19f512)break;else _0x32d746['push'](_0x32d746['shift']());}catch(_0x2461bf){_0x32d746['push'](_0x32d746['shift']());}}}(_0x2cc5,0x7ade2));import*as _0x4d8b89 from'react';export{_0x4d8b89 as React};import*as _0x46d898 from'react-dom/client';import{CKBox as _0x2fb1db,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x2adb5c,_0x497136)=>{const _0x206a2a=_0x5b92,_0x277f3a=_0x2adb5c['dialog'];if(!_0x277f3a)return![];if(typeof _0x277f3a===_0x206a2a(0xb6)){const _0x11cdbf=()=>{_0x497136();};return{'open':!![],'onClose':_0x11cdbf};}const _0x4ab1c4=()=>{const _0x368af1=_0x206a2a;var _0x2cb745;(_0x2cb745=_0x277f3a[_0x368af1(0xa9)])===null||_0x2cb745===void 0x0?void 0x0:_0x2cb745[_0x368af1(0xa6)](_0x277f3a),_0x497136();};return{..._0x277f3a,'open':!![],'onClose':_0x4ab1c4};},getAssetsProps=(_0x4f6d94,_0x521b42)=>{const _0x595f02=_0x5b92;var _0x3d3c1e;const _0x3a179d=(_0x3d3c1e=_0x4f6d94[_0x595f02(0xb7)])===null||_0x3d3c1e===void 0x0?void 0x0:_0x3d3c1e[_0x595f02(0xa8)];if(!_0x3a179d)return _0x4f6d94[_0x595f02(0xb7)];const _0x1c459c=_0x2967ed=>{const _0xcd85bf=_0x595f02;var _0x4ed238;_0x3a179d(_0x2967ed),_0x521b42&&typeof _0x521b42!==_0xcd85bf(0xb6)&&((_0x4ed238=_0x521b42[_0xcd85bf(0xa9)])===null||_0x4ed238===void 0x0?void 0x0:_0x4ed238[_0xcd85bf(0xa6)](_0x521b42));};return{..._0x4f6d94[_0x595f02(0xb7)],'onChoose':_0x1c459c};},mount=(_0x4d6b8b,_0x24df07)=>{const _0x2372ae=_0x5b92,_0x56fff1=_0x46d898['createRoot'](_0x4d6b8b),_0x59a70e=_0x56fff1['unmount'][_0x2372ae(0xac)](_0x56fff1),_0x48f57e=getDialogProps(_0x24df07,_0x59a70e),_0x536857=getAssetsProps(_0x24df07,_0x48f57e);return _0x56fff1[_0x2372ae(0xa7)](_0x4d8b89[_0x2372ae(0xaf)](_0x2fb1db,{..._0x24df07,'assets':_0x536857,'dialog':_0x48f57e})),{'unmount':_0x59a70e};},mountImageEditor=(_0xc68ae0,_0x27c92b)=>{const _0x22439c=_0x5b92,_0x4b547d=_0x46d898['createRoot'](_0xc68ae0),_0x199ac7=_0x4b547d[_0x22439c(0xb9)][_0x22439c(0xac)](_0x4b547d),_0x1aa2fd=()=>{const _0x465fa1=_0x22439c;var _0x47ccdf;(_0x47ccdf=_0x27c92b[_0x465fa1(0xa9)])===null||_0x47ccdf===void 0x0?void 0x0:_0x47ccdf[_0x465fa1(0xa6)](_0x27c92b),_0x199ac7();};return _0x4b547d[_0x22439c(0xa7)](_0x4d8b89['createElement'](CKBoxImageEditor,{..._0x27c92b,'open':!![],'onClose':_0x1aa2fd})),{'unmount':_0x199ac7};};var CKBox=Object[_0x13f052(0xae)]({'__proto__':null,'React':_0x4d8b89,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x5cc178=_0x13f052,_0x25c11c=globalThis;!_0x25c11c[_0x5cc178(0xb0)]&&(_0x25c11c[_0x5cc178(0xb0)]=CKBox);}());export{mount,mountImageEditor};function _0x2cc5(){const _0x93a8d2=['createElement','CKBox','1179hcLDsi','3238425xZqZoa','27808fPQhMX','2352288ldzBFs','245437bRXjeQ','boolean','assets','1286392wTtqXk','unmount','call','render','onChoose','onClose','8iywwiF','2234160AIlvEn','bind','4064711zufyxZ','freeze'];_0x2cc5=function(){return _0x93a8d2;};return _0x2cc5();}
4
+ (function(_0x59e5c8,_0x3f5e73){const _0x256189=_0x8311,_0x43419e=_0x59e5c8();while(!![]){try{const _0x5b1806=parseInt(_0x256189(0x159))/0x1*(-parseInt(_0x256189(0x161))/0x2)+-parseInt(_0x256189(0x160))/0x3*(parseInt(_0x256189(0x16a))/0x4)+parseInt(_0x256189(0x16b))/0x5*(-parseInt(_0x256189(0x168))/0x6)+parseInt(_0x256189(0x15d))/0x7+-parseInt(_0x256189(0x158))/0x8+parseInt(_0x256189(0x15a))/0x9*(-parseInt(_0x256189(0x166))/0xa)+parseInt(_0x256189(0x164))/0xb;if(_0x5b1806===_0x3f5e73)break;else _0x43419e['push'](_0x43419e['shift']());}catch(_0x30d7dc){_0x43419e['push'](_0x43419e['shift']());}}}(_0x1276,0x1de71));import*as _0x4beb96 from'react';export{_0x4beb96 as React};function _0x8311(_0x1a8288,_0x1ff6d0){_0x1a8288=_0x1a8288-0x156;const _0x127673=_0x1276();let _0x83119d=_0x127673[_0x1a8288];return _0x83119d;}import*as _0x3e8d96 from'react-dom/client';import{CKBox as _0x3c4e12,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x23d493,_0x385448)=>{const _0x3f9478=_0x8311,_0x55ab0f=_0x23d493[_0x3f9478(0x15f)];if(!_0x55ab0f)return![];if(typeof _0x55ab0f==='boolean'){const _0x51b61d=()=>{_0x385448();};return{'open':!![],'onClose':_0x51b61d};}const _0x26efaa=()=>{const _0x173e40=_0x3f9478;var _0x13910d;(_0x13910d=_0x55ab0f['onClose'])===null||_0x13910d===void 0x0?void 0x0:_0x13910d[_0x173e40(0x165)](_0x55ab0f),_0x385448();};return{..._0x55ab0f,'open':!![],'onClose':_0x26efaa};},getAssetsProps=(_0x21de24,_0x2d0d58)=>{const _0x56f158=_0x8311;var _0x3fb210;const _0x30a92d=(_0x3fb210=_0x21de24[_0x56f158(0x15b)])===null||_0x3fb210===void 0x0?void 0x0:_0x3fb210[_0x56f158(0x16c)];if(!_0x30a92d)return _0x21de24[_0x56f158(0x15b)];const _0x52f2f0=_0x43c149=>{const _0x9934b4=_0x56f158;var _0x519cbd;_0x30a92d(_0x43c149),_0x2d0d58&&typeof _0x2d0d58!==_0x9934b4(0x156)&&((_0x519cbd=_0x2d0d58['onClose'])===null||_0x519cbd===void 0x0?void 0x0:_0x519cbd[_0x9934b4(0x165)](_0x2d0d58));};return{..._0x21de24[_0x56f158(0x15b)],'onChoose':_0x52f2f0};},mount=(_0x55a1b6,_0x5c246d)=>{const _0xb169e6=_0x8311,_0x400f81=_0x3e8d96[_0xb169e6(0x15e)](_0x55a1b6),_0x2d3529=_0x400f81[_0xb169e6(0x163)][_0xb169e6(0x169)](_0x400f81),_0x24724c=getDialogProps(_0x5c246d,_0x2d3529),_0x2559ff=getAssetsProps(_0x5c246d,_0x24724c);return _0x400f81[_0xb169e6(0x167)](_0x4beb96[_0xb169e6(0x15c)](_0x3c4e12,{..._0x5c246d,'assets':_0x2559ff,'dialog':_0x24724c})),{'unmount':_0x2d3529};},mountImageEditor=(_0x351846,_0x1bfd49)=>{const _0x43c0e0=_0x8311,_0x1da8ac=_0x3e8d96[_0x43c0e0(0x15e)](_0x351846),_0x37bd8f=_0x1da8ac[_0x43c0e0(0x163)][_0x43c0e0(0x169)](_0x1da8ac),_0x328640=()=>{const _0x8c5ed7=_0x43c0e0;var _0x3619f8;(_0x3619f8=_0x1bfd49[_0x8c5ed7(0x157)])===null||_0x3619f8===void 0x0?void 0x0:_0x3619f8[_0x8c5ed7(0x165)](_0x1bfd49),_0x37bd8f();};return _0x1da8ac[_0x43c0e0(0x167)](_0x4beb96[_0x43c0e0(0x15c)](CKBoxImageEditor,{..._0x1bfd49,'open':!![],'onClose':_0x328640})),{'unmount':_0x37bd8f};};function _0x1276(){const _0x4a3bee=['bind','16UFfOCV','10545HMKSii','onChoose','boolean','onClose','232536Pbaoju','4NQQRyy','34812MUqyRT','assets','createElement','1635193tGoksW','createRoot','dialog','109374CvHqoz','106588oKVewk','CKBox','unmount','7010498UiFeWH','call','490eGCwTm','render','486EzAAcB'];_0x1276=function(){return _0x4a3bee;};return _0x1276();}var CKBox=Object['freeze']({'__proto__':null,'React':_0x4beb96,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x47efae=_0x8311,_0x2c777f=globalThis;!_0x2c777f[_0x47efae(0x162)]&&(_0x2c777f[_0x47efae(0x162)]=CKBox);}());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.10.0-rc.1",
25
+ "version": "2.10.0",
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": "^19.2.3",
33
33
  "react-dom": "^19.2.3",
34
34
  "tslib": "^2.8.1",
35
- "@ckbox/core": "2.10.0-rc.1"
35
+ "@ckbox/core": "2.10.0"
36
36
  }
37
37
  }