ckbox 1.6.0-rc.3 → 2.0.0-rc.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.d.ts CHANGED
@@ -1,16 +1,17 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  */
4
- import * as Core from '@ckbox/core';
4
+ import { Asset as Asset$1, Props as Props$1 } from '@ckbox/core';
5
5
  export { version } from '@ckbox/core';
6
6
  import * as react from 'react';
7
7
  export { react as React };
8
8
 
9
- type Asset = Core.Asset;
10
- type CoreDialogProps = Required<Core.Props>['dialog'];
11
- type CoreAssetsProps = Core.Props['assets'];
9
+ type Asset = Asset$1;
10
+ type CoreDialogProps = Required<Props$1>['dialog'];
11
+ type CoreAssetsConfigProps = Props$1['assets'];
12
+ type CoreAssetsOnChooseProps = Required<Required<Props$1>['assets']>['onChoose'];
12
13
  type DialogProps = Omit<Exclude<CoreDialogProps, boolean>, 'open'>;
13
- type Props = Omit<Core.Props, 'dialog'> & {
14
+ type Props = Omit<Props$1, 'dialog'> & {
14
15
  dialog?: boolean | DialogProps;
15
16
  };
16
17
 
@@ -24,4 +25,4 @@ declare const mount: (root: Element, props: Props) => {
24
25
  unmount: () => void;
25
26
  };
26
27
 
27
- export { Asset, CoreAssetsProps, CoreDialogProps, DialogProps, Props, mount };
28
+ export { Asset, CoreAssetsConfigProps, CoreAssetsOnChooseProps, CoreDialogProps, DialogProps, Props, mount };
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 _0xe38a7a=_0x4a1f;(function(_0x49d296,_0x3adb4e){const _0x3fcb40=_0x4a1f,_0x814752=_0x49d296();while(!![]){try{const _0x409736=parseInt(_0x3fcb40(0x1ed))/0x1+-parseInt(_0x3fcb40(0x1f6))/0x2*(parseInt(_0x3fcb40(0x1ee))/0x3)+parseInt(_0x3fcb40(0x1ea))/0x4+-parseInt(_0x3fcb40(0x1e8))/0x5+-parseInt(_0x3fcb40(0x1f4))/0x6+parseInt(_0x3fcb40(0x1f0))/0x7+-parseInt(_0x3fcb40(0x1ef))/0x8*(-parseInt(_0x3fcb40(0x1e5))/0x9);if(_0x409736===_0x3adb4e)break;else _0x814752['push'](_0x814752['shift']());}catch(_0xaaaa01){_0x814752['push'](_0x814752['shift']());}}}(_0x7fb1,0xc8cc7));function _0x7fb1(){const _0x46750e=['createRoot','boolean','6388224umtCUr','assets','2VbNiWS','unmount','onClose','1044711TVNEaa','freeze','CKBox','5365495zTpqxC','bind','3272060pITrFb','createElement','render','565950cXzljR','2041428bzCskc','72zjijFp','8484518lPOUqq','call'];_0x7fb1=function(){return _0x46750e;};return _0x7fb1();}import*as _0x141532 from'react';export{_0x141532 as React};function _0x4a1f(_0x4c5b41,_0x4a806d){const _0x7fb12e=_0x7fb1();return _0x4a1f=function(_0x4a1fda,_0x412cd5){_0x4a1fda=_0x4a1fda-0x1e4;let _0x1ca80d=_0x7fb12e[_0x4a1fda];return _0x1ca80d;},_0x4a1f(_0x4c5b41,_0x4a806d);}import*as _0x31a434 from'react-dom/client';import{CKBox as _0x384729,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x4bedbb,_0x114bd4)=>{const _0x56cd1b=_0x4a1f,_0x5925ef=_0x4bedbb['dialog'];if(!_0x5925ef)return![];if(typeof _0x5925ef===_0x56cd1b(0x1f3)){const _0x5b3cae=()=>{_0x114bd4();};return{'open':!![],'onClose':_0x5b3cae};}const _0x4f492e=()=>{const _0x2e7cee=_0x56cd1b;var _0x481f3c;(_0x481f3c=_0x5925ef[_0x2e7cee(0x1e4)])===null||_0x481f3c===void 0x0?void 0x0:_0x481f3c[_0x2e7cee(0x1f1)](_0x5925ef),_0x114bd4();};return{..._0x5925ef,'open':!![],'onClose':_0x4f492e};},getAssetsProps=(_0x504e12,_0x204a4c)=>{const _0x183035=_0x4a1f;var _0x584528;const _0x150c30=(_0x584528=_0x504e12[_0x183035(0x1f5)])===null||_0x584528===void 0x0?void 0x0:_0x584528['onChoose'];if(!_0x150c30)return _0x504e12[_0x183035(0x1f5)];const _0x551708=_0x132abd=>{const _0x2b1564=_0x183035;var _0x2abd21;_0x150c30(_0x132abd),_0x204a4c&&typeof _0x204a4c!==_0x2b1564(0x1f3)&&((_0x2abd21=_0x204a4c['onClose'])===null||_0x2abd21===void 0x0?void 0x0:_0x2abd21[_0x2b1564(0x1f1)](_0x204a4c));};return{..._0x504e12['assets'],'onChoose':_0x551708};},mount=(_0x231db8,_0x229406)=>{const _0x8fc278=_0x4a1f,_0x59d77f=_0x31a434[_0x8fc278(0x1f2)](_0x231db8),_0x5a78ff=_0x59d77f[_0x8fc278(0x1f7)][_0x8fc278(0x1e9)](_0x59d77f),_0x45d986=getDialogProps(_0x229406,_0x5a78ff),_0x5b3ad7=getAssetsProps(_0x229406,_0x45d986);return _0x59d77f[_0x8fc278(0x1ec)](_0x141532[_0x8fc278(0x1eb)](_0x384729,{..._0x229406,'assets':_0x5b3ad7,'dialog':_0x45d986})),{'unmount':_0x5a78ff};};var CKBox=Object[_0xe38a7a(0x1e6)]({'__proto__':null,'React':_0x141532,'mount':mount,'version':version});(function(){const _0x17ac43=_0xe38a7a,_0x501b94=globalThis;!_0x501b94['CKBox']&&(_0x501b94[_0x17ac43(0x1e7)]=CKBox);}());export{mount};
4
+ const _0x4b6c26=_0x5564;(function(_0x2e166c,_0x147ce1){const _0x3bd231=_0x5564,_0x4116b2=_0x2e166c();while(!![]){try{const _0x30cdf7=-parseInt(_0x3bd231(0x148))/0x1+-parseInt(_0x3bd231(0x147))/0x2*(-parseInt(_0x3bd231(0x146))/0x3)+parseInt(_0x3bd231(0x14a))/0x4+parseInt(_0x3bd231(0x142))/0x5+-parseInt(_0x3bd231(0x13c))/0x6*(parseInt(_0x3bd231(0x145))/0x7)+-parseInt(_0x3bd231(0x14e))/0x8+parseInt(_0x3bd231(0x14b))/0x9*(parseInt(_0x3bd231(0x143))/0xa);if(_0x30cdf7===_0x147ce1)break;else _0x4116b2['push'](_0x4116b2['shift']());}catch(_0x3f54ca){_0x4116b2['push'](_0x4116b2['shift']());}}}(_0x2bf5,0xab87e));function _0x2bf5(){const _0x483480=['13644UPtckf','onClose','onChoose','5988872CUJjle','unmount','render','createRoot','2603964zjcEIW','boolean','dialog','freeze','call','bind','522950VLVfYl','13140FAdIvz','assets','7SosTLQ','30066nmDSRJ','34vEsUXm','1304149zwPXWJ','CKBox','3689416dWojkt'];_0x2bf5=function(){return _0x483480;};return _0x2bf5();}import*as _0x343c1e from'react';export{_0x343c1e as React};import*as _0x36c42b from'react-dom/client';import{CKBox as _0xbfe8fc,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x2eea3e,_0x2da403)=>{const _0x34731d=_0x5564,_0x59e3f7=_0x2eea3e[_0x34731d(0x13e)];if(!_0x59e3f7)return![];if(typeof _0x59e3f7==='boolean'){const _0x25515d=()=>{_0x2da403();};return{'open':!![],'onClose':_0x25515d};}const _0x5a4dde=()=>{const _0xde93=_0x34731d;var _0x5e8e53;(_0x5e8e53=_0x59e3f7[_0xde93(0x14c)])===null||_0x5e8e53===void 0x0?void 0x0:_0x5e8e53['call'](_0x59e3f7),_0x2da403();};return{..._0x59e3f7,'open':!![],'onClose':_0x5a4dde};},getAssetsProps=(_0x3de748,_0x412d7b)=>{const _0x41781c=_0x5564;var _0x3ddfdf;const _0x1bec2b=(_0x3ddfdf=_0x3de748[_0x41781c(0x144)])===null||_0x3ddfdf===void 0x0?void 0x0:_0x3ddfdf[_0x41781c(0x14d)];if(!_0x1bec2b)return _0x3de748[_0x41781c(0x144)];const _0x1c30f2=_0x5d73dd=>{const _0x2b8071=_0x41781c;var _0x5d4d56;_0x1bec2b(_0x5d73dd),_0x412d7b&&typeof _0x412d7b!==_0x2b8071(0x13d)&&((_0x5d4d56=_0x412d7b['onClose'])===null||_0x5d4d56===void 0x0?void 0x0:_0x5d4d56[_0x2b8071(0x140)](_0x412d7b));};return{..._0x3de748[_0x41781c(0x144)],'onChoose':_0x1c30f2};},mount=(_0x81ab7a,_0x1487be)=>{const _0x4f2b87=_0x5564,_0x14ca5e=_0x36c42b[_0x4f2b87(0x13b)](_0x81ab7a),_0x257e7a=_0x14ca5e[_0x4f2b87(0x14f)][_0x4f2b87(0x141)](_0x14ca5e),_0x2ff549=getDialogProps(_0x1487be,_0x257e7a),_0xfc6a52=getAssetsProps(_0x1487be,_0x2ff549);return _0x14ca5e[_0x4f2b87(0x13a)](_0x343c1e['createElement'](_0xbfe8fc,{..._0x1487be,'assets':_0xfc6a52,'dialog':_0x2ff549})),{'unmount':_0x257e7a};};var CKBox=Object[_0x4b6c26(0x13f)]({'__proto__':null,'React':_0x343c1e,'mount':mount,'version':version});(function(){const _0x59cc8a=_0x4b6c26,_0xd029=globalThis;!_0xd029[_0x59cc8a(0x149)]&&(_0xd029['CKBox']=CKBox);}());function _0x5564(_0xa0aad,_0x1c84f9){const _0x2bf547=_0x2bf5();return _0x5564=function(_0x5564e0,_0x2c26e5){_0x5564e0=_0x5564e0-0x13a;let _0x1e7e29=_0x2bf547[_0x5564e0];return _0x1e7e29;},_0x5564(_0xa0aad,_0x1c84f9);}export{mount};