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/README.md +4 -4
- package/dist/ckbox.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +1 -1
- package/dist/translations/en.js +1 -1
- package/package.json +7 -7
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 {
|
|
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
|
|
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};
|