ckbox 1.6.0 → 2.0.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/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 _0x46192a=_0x3fac;(function(_0x5d3e2d,_0x4ffc76){const _0x4a7bab=_0x3fac,_0x7ad5b1=_0x5d3e2d();while(!![]){try{const _0x58dda5=parseInt(_0x4a7bab(0xd6))/0x1+parseInt(_0x4a7bab(0xd4))/0x2+-parseInt(_0x4a7bab(0xd7))/0x3+parseInt(_0x4a7bab(0xcd))/0x4*(-parseInt(_0x4a7bab(0xd1))/0x5)+parseInt(_0x4a7bab(0xd0))/0x6*(parseInt(_0x4a7bab(0xcb))/0x7)+parseInt(_0x4a7bab(0xd9))/0x8+-parseInt(_0x4a7bab(0xdd))/0x9;if(_0x58dda5===_0x4ffc76)break;else _0x7ad5b1['push'](_0x7ad5b1['shift']());}catch(_0x3df934){_0x7ad5b1['push'](_0x7ad5b1['shift']());}}}(_0x3ec3,0x21b0d));import*as _0x3f1a08 from'react';function _0x3fac(_0x344433,_0x2e7434){const _0x3ec3b3=_0x3ec3();return _0x3fac=function(_0x3fac62,_0x5df1e2){_0x3fac62=_0x3fac62-0xc8;let _0x15b30f=_0x3ec3b3[_0x3fac62];return _0x15b30f;},_0x3fac(_0x344433,_0x2e7434);}export{_0x3f1a08 as React};import*as _0x5ccb12 from'react-dom/client';import{CKBox as _0x3298ba,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x454591,_0x1ca812)=>{const _0x4967f2=_0x3fac,_0x41efae=_0x454591[_0x4967f2(0xdb)];if(!_0x41efae)return![];if(typeof _0x41efae==='boolean'){const _0x63e8f8=()=>{_0x1ca812();};return{'open':!![],'onClose':_0x63e8f8};}const _0x98b29e=()=>{const _0x4cb4cc=_0x4967f2;var _0x11fede;(_0x11fede=_0x41efae['onClose'])===null||_0x11fede===void 0x0?void 0x0:_0x11fede[_0x4cb4cc(0xda)](_0x41efae),_0x1ca812();};return{..._0x41efae,'open':!![],'onClose':_0x98b29e};},getAssetsProps=(_0x185ddf,_0x32eae7)=>{const _0x271aac=_0x3fac;var _0x286cca;const _0x13c8d5=(_0x286cca=_0x185ddf[_0x271aac(0xcc)])===null||_0x286cca===void 0x0?void 0x0:_0x286cca[_0x271aac(0xd2)];if(!_0x13c8d5)return _0x185ddf[_0x271aac(0xcc)];const _0x59d416=_0x45234e=>{const _0x4de9cf=_0x271aac;var _0x4d5ce5;_0x13c8d5(_0x45234e),_0x32eae7&&typeof _0x32eae7!==_0x4de9cf(0xd8)&&((_0x4d5ce5=_0x32eae7[_0x4de9cf(0xca)])===null||_0x4d5ce5===void 0x0?void 0x0:_0x4d5ce5[_0x4de9cf(0xda)](_0x32eae7));};return{..._0x185ddf[_0x271aac(0xcc)],'onChoose':_0x59d416};},mount=(_0x589538,_0x42ac51)=>{const _0x174ef3=_0x3fac,_0x569285=_0x5ccb12[_0x174ef3(0xc8)](_0x589538),_0x2eb6b7=_0x569285[_0x174ef3(0xc9)][_0x174ef3(0xcf)](_0x569285),_0x2146a4=getDialogProps(_0x42ac51,_0x2eb6b7),_0x1d1f27=getAssetsProps(_0x42ac51,_0x2146a4);return _0x569285[_0x174ef3(0xd3)](_0x3f1a08[_0x174ef3(0xce)](_0x3298ba,{..._0x42ac51,'assets':_0x1d1f27,'dialog':_0x2146a4})),{'unmount':_0x2eb6b7};};var CKBox=Object[_0x46192a(0xdc)]({'__proto__':null,'React':_0x3f1a08,'mount':mount,'version':version});(function(){const _0x4e8482=_0x46192a,_0x3436e7=globalThis;!_0x3436e7[_0x4e8482(0xd5)]&&(_0x3436e7['CKBox']=CKBox);}());function _0x3ec3(){const _0x2c6256=['18186pgvLzx','assets','398676fUOAGP','createElement','bind','636SqFoIz','5kujxec','onChoose','render','532664VjXmVe','CKBox','219318VtuByT','563949GLZyAt','boolean','988168pMJDVt','call','dialog','freeze','4130190mmDNHE','createRoot','unmount','onClose'];_0x3ec3=function(){return _0x2c6256;};return _0x3ec3();}export{mount};
4
+ const _0x38e996=_0x3be9;(function(_0x5edc64,_0x1f5b58){const _0x3c85ca=_0x3be9,_0x38aa92=_0x5edc64();while(!![]){try{const _0x366e21=-parseInt(_0x3c85ca(0x200))/0x1+-parseInt(_0x3c85ca(0x1f9))/0x2*(-parseInt(_0x3c85ca(0x1fc))/0x3)+-parseInt(_0x3c85ca(0x1f6))/0x4*(-parseInt(_0x3c85ca(0x1f2))/0x5)+parseInt(_0x3c85ca(0x1f1))/0x6*(parseInt(_0x3c85ca(0x1ff))/0x7)+-parseInt(_0x3c85ca(0x205))/0x8+parseInt(_0x3c85ca(0x202))/0x9+-parseInt(_0x3c85ca(0x1f4))/0xa*(-parseInt(_0x3c85ca(0x201))/0xb);if(_0x366e21===_0x1f5b58)break;else _0x38aa92['push'](_0x38aa92['shift']());}catch(_0x1133a4){_0x38aa92['push'](_0x38aa92['shift']());}}}(_0x4b62,0x9fe3f));import*as _0x3404a7 from'react';export{_0x3404a7 as React};import*as _0x720f2c from'react-dom/client';import{CKBox as _0x3aa378,version}from'@ckbox/core';function _0x3be9(_0x4cf02b,_0x2d82a1){const _0x4b629e=_0x4b62();return _0x3be9=function(_0x3be96c,_0x13adc1){_0x3be96c=_0x3be96c-0x1f0;let _0x20bb12=_0x4b629e[_0x3be96c];return _0x20bb12;},_0x3be9(_0x4cf02b,_0x2d82a1);}export{version}from'@ckbox/core';const getDialogProps=(_0x424996,_0x162643)=>{const _0x5801b3=_0x3be9,_0x53e27=_0x424996['dialog'];if(!_0x53e27)return![];if(typeof _0x53e27===_0x5801b3(0x1f5)){const _0x213230=()=>{_0x162643();};return{'open':!![],'onClose':_0x213230};}const _0x4b1196=()=>{const _0x3b77a7=_0x5801b3;var _0x1e829c;(_0x1e829c=_0x53e27[_0x3b77a7(0x1fe)])===null||_0x1e829c===void 0x0?void 0x0:_0x1e829c[_0x3b77a7(0x1fb)](_0x53e27),_0x162643();};return{..._0x53e27,'open':!![],'onClose':_0x4b1196};},getAssetsProps=(_0x29a2eb,_0x20b8b3)=>{const _0xf1bece=_0x3be9;var _0x477351;const _0x37e85c=(_0x477351=_0x29a2eb[_0xf1bece(0x203)])===null||_0x477351===void 0x0?void 0x0:_0x477351[_0xf1bece(0x1fd)];if(!_0x37e85c)return _0x29a2eb[_0xf1bece(0x203)];const _0x12ef59=_0x20d9b7=>{const _0x8ca097=_0xf1bece;var _0x3f61e1;_0x37e85c(_0x20d9b7),_0x20b8b3&&typeof _0x20b8b3!=='boolean'&&((_0x3f61e1=_0x20b8b3[_0x8ca097(0x1fe)])===null||_0x3f61e1===void 0x0?void 0x0:_0x3f61e1[_0x8ca097(0x1fb)](_0x20b8b3));};return{..._0x29a2eb[_0xf1bece(0x203)],'onChoose':_0x12ef59};},mount=(_0x55b9e3,_0x250f5a)=>{const _0x9185fd=_0x3be9,_0x3dd699=_0x720f2c[_0x9185fd(0x1f0)](_0x55b9e3),_0x27e957=_0x3dd699[_0x9185fd(0x1fa)][_0x9185fd(0x1f8)](_0x3dd699),_0x403abb=getDialogProps(_0x250f5a,_0x27e957),_0x55f1c9=getAssetsProps(_0x250f5a,_0x403abb);return _0x3dd699['render'](_0x3404a7[_0x9185fd(0x1f3)](_0x3aa378,{..._0x250f5a,'assets':_0x55f1c9,'dialog':_0x403abb})),{'unmount':_0x27e957};};var CKBox=Object[_0x38e996(0x204)]({'__proto__':null,'React':_0x3404a7,'mount':mount,'version':version});(function(){const _0x1a17d8=_0x38e996,_0x51757d=globalThis;!_0x51757d['CKBox']&&(_0x51757d[_0x1a17d8(0x1f7)]=CKBox);}());export{mount};function _0x4b62(){const _0x2b5e73=['boolean','155328bQlBPy','CKBox','bind','2ScCsaf','unmount','call','415119pmRAKf','onChoose','onClose','7tOfZFJ','927874zweVOM','723316zOVvEu','4558347JuXRIt','assets','freeze','3871984IHhfnT','createRoot','4837842FmUFKS','20zevFQf','createElement','70QmbZOE'];_0x4b62=function(){return _0x2b5e73;};return _0x4b62();}