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/README.md +3 -3
- package/dist/ckbox.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
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
|
|
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
|
|
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
|
|
35
|
+
"@ckbox/core": "2.2.0"
|
|
36
36
|
}
|
|
37
37
|
}
|