ckbox 2.2.0-rc.1 → 2.2.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 _0x4dfba9=_0x5751;(function(_0x12b7cf,_0x4ca5bb){const _0x53dd6e=_0x5751,_0x367739=_0x12b7cf();while(!![]){try{const _0x3349b4=-parseInt(_0x53dd6e(0xf5))/0x1*(-parseInt(_0x53dd6e(0xfb))/0x2)+parseInt(_0x53dd6e(0xf4))/0x3+-parseInt(_0x53dd6e(0xf1))/0x4+parseInt(_0x53dd6e(0xe5))/0x5*(-parseInt(_0x53dd6e(0xf0))/0x6)+parseInt(_0x53dd6e(0xf2))/0x7*(parseInt(_0x53dd6e(0xfa))/0x8)+parseInt(_0x53dd6e(0xef))/0x9+-parseInt(_0x53dd6e(0xf7))/0xa;if(_0x3349b4===_0x4ca5bb)break;else _0x367739['push'](_0x367739['shift']());}catch(_0x31b3e1){_0x367739['push'](_0x367739['shift']());}}}(_0x7b5e,0x4d70b));import*as _0x312d29 from'react';export{_0x312d29 as React};import*as _0x4229df from'react-dom/client';import{CKBox as _0x174393,CKBoxImageEditor,version}from'@ckbox/core';function _0x5751(_0x56ae6a,_0x585fb0){const _0x7b5e62=_0x7b5e();return _0x5751=function(_0x575151,_0x538ff7){_0x575151=_0x575151-0xe5;let _0x51824f=_0x7b5e62[_0x575151];return _0x51824f;},_0x5751(_0x56ae6a,_0x585fb0);}export{version}from'@ckbox/core';function _0x7b5e(){const _0xfd6132=['35CjEziV','boolean','bind','createRoot','assets','createElement','unmount','onChoose','onClose','CKBox','3917052sROEJd','386928qDfCtz','2037032WymGGb','49oekuoX','dialog','985878JdSUiO','2AMoYeg','render','132980zhiZqw','call','freeze','259544VcOQGe','300212MJPMup'];_0x7b5e=function(){return _0xfd6132;};return _0x7b5e();}const getDialogProps=(_0x5744aa,_0x56d64c)=>{const _0x54b9ea=_0x5751,_0x3fadc0=_0x5744aa[_0x54b9ea(0xf3)];if(!_0x3fadc0)return![];if(typeof _0x3fadc0===_0x54b9ea(0xe6)){const _0x30e74d=()=>{_0x56d64c();};return{'open':!![],'onClose':_0x30e74d};}const _0x4b2bc0=()=>{var _0x37c4c3;(_0x37c4c3=_0x3fadc0['onClose'])===null||_0x37c4c3===void 0x0?void 0x0:_0x37c4c3['call'](_0x3fadc0),_0x56d64c();};return{..._0x3fadc0,'open':!![],'onClose':_0x4b2bc0};},getAssetsProps=(_0x2abfa7,_0x256579)=>{const _0x5ad0ba=_0x5751;var _0x5092f3;const _0x1afe60=(_0x5092f3=_0x2abfa7[_0x5ad0ba(0xe9)])===null||_0x5092f3===void 0x0?void 0x0:_0x5092f3[_0x5ad0ba(0xec)];if(!_0x1afe60)return _0x2abfa7[_0x5ad0ba(0xe9)];const _0x3b9a09=_0x5c6778=>{const _0x57bd28=_0x5ad0ba;var _0x586621;_0x1afe60(_0x5c6778),_0x256579&&typeof _0x256579!==_0x57bd28(0xe6)&&((_0x586621=_0x256579['onClose'])===null||_0x586621===void 0x0?void 0x0:_0x586621[_0x57bd28(0xf8)](_0x256579));};return{..._0x2abfa7[_0x5ad0ba(0xe9)],'onChoose':_0x3b9a09};},mount=(_0x7f9832,_0x171e78)=>{const _0x1fcafd=_0x5751,_0x11713f=_0x4229df['createRoot'](_0x7f9832),_0x27de95=_0x11713f['unmount'][_0x1fcafd(0xe7)](_0x11713f),_0x352e2f=getDialogProps(_0x171e78,_0x27de95),_0x3e5aa0=getAssetsProps(_0x171e78,_0x352e2f);return _0x11713f[_0x1fcafd(0xf6)](_0x312d29[_0x1fcafd(0xea)](_0x174393,{..._0x171e78,'assets':_0x3e5aa0,'dialog':_0x352e2f})),{'unmount':_0x27de95};},mountImageEditor=(_0x3254e6,_0x16d798)=>{const _0x363d96=_0x5751,_0x4fd144=_0x4229df[_0x363d96(0xe8)](_0x3254e6),_0x2ed827=_0x4fd144[_0x363d96(0xeb)][_0x363d96(0xe7)](_0x4fd144),_0x335203=()=>{const _0x41e2d8=_0x363d96;var _0x36e46b;(_0x36e46b=_0x16d798[_0x41e2d8(0xed)])===null||_0x36e46b===void 0x0?void 0x0:_0x36e46b[_0x41e2d8(0xf8)](_0x16d798),_0x2ed827();};return _0x4fd144[_0x363d96(0xf6)](_0x312d29[_0x363d96(0xea)](CKBoxImageEditor,{..._0x16d798,'open':!![],'onClose':_0x335203})),{'unmount':_0x2ed827};};var CKBox=Object[_0x4dfba9(0xf9)]({'__proto__':null,'React':_0x312d29,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x3ba237=_0x4dfba9,_0x1352a4=globalThis;!_0x1352a4[_0x3ba237(0xee)]&&(_0x1352a4['CKBox']=CKBox);}());export{mount,mountImageEditor};
4
+ const _0x3d2733=_0x25f4;function _0x47df(){const _0x38fd28=['boolean','freeze','4raXfvx','createElement','render','1838082EbbcQH','unmount','createRoot','call','3448RvDAEc','11869758nXiQPD','4662470woRliE','73079mdEiks','assets','onClose','665868SnfwWd','18515ftiqvK','CKBox','dialog','668665irvyxj','34ktYYEH','bind'];_0x47df=function(){return _0x38fd28;};return _0x47df();}(function(_0x52575c,_0x109591){const _0x50324f=_0x25f4,_0x5b8d65=_0x52575c();while(!![]){try{const _0x5d3a55=-parseInt(_0x50324f(0x14b))/0x1*(parseInt(_0x50324f(0x153))/0x2)+-parseInt(_0x50324f(0x14e))/0x3+parseInt(_0x50324f(0x157))/0x4*(-parseInt(_0x50324f(0x152))/0x5)+parseInt(_0x50324f(0x15a))/0x6+-parseInt(_0x50324f(0x14f))/0x7*(-parseInt(_0x50324f(0x148))/0x8)+parseInt(_0x50324f(0x149))/0x9+-parseInt(_0x50324f(0x14a))/0xa;if(_0x5d3a55===_0x109591)break;else _0x5b8d65['push'](_0x5b8d65['shift']());}catch(_0x1065f4){_0x5b8d65['push'](_0x5b8d65['shift']());}}}(_0x47df,0xab1fd));import*as _0x9795 from'react';function _0x25f4(_0x345553,_0x4a826a){const _0x47df7d=_0x47df();return _0x25f4=function(_0x25f481,_0x2f972b){_0x25f481=_0x25f481-0x145;let _0x13304c=_0x47df7d[_0x25f481];return _0x13304c;},_0x25f4(_0x345553,_0x4a826a);}export{_0x9795 as React};import*as _0x54ea97 from'react-dom/client';import{CKBox as _0x12cbac,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x518fb3,_0x356d7b)=>{const _0x33ff3f=_0x25f4,_0x9d92cb=_0x518fb3[_0x33ff3f(0x151)];if(!_0x9d92cb)return![];if(typeof _0x9d92cb===_0x33ff3f(0x155)){const _0x1a008a=()=>{_0x356d7b();};return{'open':!![],'onClose':_0x1a008a};}const _0x517146=()=>{const _0x3fbd9a=_0x33ff3f;var _0x177682;(_0x177682=_0x9d92cb[_0x3fbd9a(0x14d)])===null||_0x177682===void 0x0?void 0x0:_0x177682['call'](_0x9d92cb),_0x356d7b();};return{..._0x9d92cb,'open':!![],'onClose':_0x517146};},getAssetsProps=(_0xd55fd4,_0x195391)=>{const _0x48eb9b=_0x25f4;var _0x324354;const _0x5decd6=(_0x324354=_0xd55fd4['assets'])===null||_0x324354===void 0x0?void 0x0:_0x324354['onChoose'];if(!_0x5decd6)return _0xd55fd4[_0x48eb9b(0x14c)];const _0x57faa8=_0x5c35e2=>{const _0x40d396=_0x48eb9b;var _0x2af210;_0x5decd6(_0x5c35e2),_0x195391&&typeof _0x195391!==_0x40d396(0x155)&&((_0x2af210=_0x195391['onClose'])===null||_0x2af210===void 0x0?void 0x0:_0x2af210[_0x40d396(0x147)](_0x195391));};return{..._0xd55fd4[_0x48eb9b(0x14c)],'onChoose':_0x57faa8};},mount=(_0x46321f,_0x802d22)=>{const _0x3bb1cc=_0x25f4,_0x3381a8=_0x54ea97['createRoot'](_0x46321f),_0x553ba9=_0x3381a8[_0x3bb1cc(0x145)][_0x3bb1cc(0x154)](_0x3381a8),_0x3b67ad=getDialogProps(_0x802d22,_0x553ba9),_0x8c4915=getAssetsProps(_0x802d22,_0x3b67ad);return _0x3381a8[_0x3bb1cc(0x159)](_0x9795[_0x3bb1cc(0x158)](_0x12cbac,{..._0x802d22,'assets':_0x8c4915,'dialog':_0x3b67ad})),{'unmount':_0x553ba9};},mountImageEditor=(_0x3c9f42,_0x3f9af6)=>{const _0x4b08dd=_0x25f4,_0x3c2006=_0x54ea97[_0x4b08dd(0x146)](_0x3c9f42),_0x414cd4=_0x3c2006['unmount'][_0x4b08dd(0x154)](_0x3c2006),_0x44ecbb=()=>{const _0x4a0697=_0x4b08dd;var _0x463ea4;(_0x463ea4=_0x3f9af6[_0x4a0697(0x14d)])===null||_0x463ea4===void 0x0?void 0x0:_0x463ea4[_0x4a0697(0x147)](_0x3f9af6),_0x414cd4();};return _0x3c2006[_0x4b08dd(0x159)](_0x9795[_0x4b08dd(0x158)](CKBoxImageEditor,{..._0x3f9af6,'open':!![],'onClose':_0x44ecbb})),{'unmount':_0x414cd4};};var CKBox=Object[_0x3d2733(0x156)]({'__proto__':null,'React':_0x9795,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0xba5634=_0x3d2733,_0x2e0a2c=globalThis;!_0x2e0a2c[_0xba5634(0x150)]&&(_0x2e0a2c['CKBox']=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.2.0-rc.1",
25
+ "version": "2.2.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": "^18.2.0",
33
33
  "react-dom": "^18.2.0",
34
34
  "tslib": "^2.6.2",
35
- "@ckbox/core": "2.2.0-rc.1"
35
+ "@ckbox/core": "2.2.0"
36
36
  }
37
37
  }