ckbox 1.2.0-dev.0 → 1.2.0-dev.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 +3 -3
- package/dist/ckbox.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/ckbox.d.ts +0 -16
- package/dist/types.d.ts +0 -8
- package/dist/utils.d.ts +0 -22
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
(function(_0x37a96e,_0x4f92ed){const _0x1100cf=_0x3a62,_0x116fd6=_0x37a96e();while(!![]){try{const _0x44c03f=parseInt(_0x1100cf(0x1d7))/0x1*(-parseInt(_0x1100cf(0x1da))/0x2)+parseInt(_0x1100cf(0x1dc))/0x3*(parseInt(_0x1100cf(0x1df))/0x4)+-parseInt(_0x1100cf(0x1e1))/0x5+-parseInt(_0x1100cf(0x1e5))/0x6+-parseInt(_0x1100cf(0x1e0))/0x7+parseInt(_0x1100cf(0x1e4))/0x8+parseInt(_0x1100cf(0x1db))/0x9;if(_0x44c03f===_0x4f92ed)break;else _0x116fd6['push'](_0x116fd6['shift']());}catch(_0x237a1b){_0x116fd6['push'](_0x116fd6['shift']());}}}(_0x5b73,0x765d1));function _0x3a62(_0x4b1637,_0x57cfcd){const _0x5b7351=_0x5b73();return _0x3a62=function(_0x3a622f,_0x37c332){_0x3a622f=_0x3a622f-0x1d5;let _0x28507a=_0x5b7351[_0x3a622f];return _0x28507a;},_0x3a62(_0x4b1637,_0x57cfcd);}import*as _0x5bf763 from'react';export{_0x5bf763 as React};import*as _0x4c74f4 from'react-dom/client';import{CKBox as _0x3a7093,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x562b61,_0x47bb2f)=>{const _0x412630=_0x3a62,_0xa62e4c=_0x562b61[_0x412630(0x1d6)];if(!_0xa62e4c)return![];if(typeof _0xa62e4c===_0x412630(0x1d8)){const _0x476414=()=>{_0x47bb2f();};return{'open':!![],'onClose':_0x476414};}const _0x3b8eeb=()=>{const _0x4a8066=_0x412630;var _0x653e4a;(_0x653e4a=_0xa62e4c['onClose'])===null||_0x653e4a===void 0x0?void 0x0:_0x653e4a[_0x4a8066(0x1dd)](_0xa62e4c),_0x47bb2f();};return{..._0xa62e4c,'open':!![],'onClose':_0x3b8eeb};},getAssetsProps=(_0x2de31a,_0x76c19b)=>{const _0x1f4873=_0x3a62;var _0x430f0c;const _0x2d6d5b=(_0x430f0c=_0x2de31a['assets'])===null||_0x430f0c===void 0x0?void 0x0:_0x430f0c['onChoose'];if(!_0x2d6d5b)return _0x2de31a[_0x1f4873(0x1d9)];const _0x41415a=_0xb5b469=>{const _0x96678e=_0x1f4873;var _0x47a64e;_0x2d6d5b(_0xb5b469),_0x76c19b&&typeof _0x76c19b!=='boolean'&&((_0x47a64e=_0x76c19b[_0x96678e(0x1de)])===null||_0x47a64e===void 0x0?void 0x0:_0x47a64e['call'](_0x76c19b));};return{..._0x2de31a[_0x1f4873(0x1d9)],'onChoose':_0x41415a};},mount=(_0x5df67a,_0x58c96f)=>{const _0x15995c=_0x3a62,_0x5b8938=_0x4c74f4['createRoot'](_0x5df67a),_0x33169d=_0x5b8938['unmount'][_0x15995c(0x1e2)](_0x5b8938),_0x40c06d=getDialogProps(_0x58c96f,_0x33169d),_0x51c07d=getAssetsProps(_0x58c96f,_0x40c06d);return _0x5b8938['render'](_0x5bf763[_0x15995c(0x1e3)](_0x3a7093,{..._0x58c96f,'assets':_0x51c07d,'dialog':_0x40c06d})),{'unmount':_0x33169d};};function _0x5b73(){const _0x5d050c=['28042ShiObe','17854047WLnDix','2838129ogCfXa','call','onClose','4Uohatu','5477178LJGQpg','4707995pfgjtf','bind','createElement','1349392ehJqxN','3907638WPWZpL','CKBox','dialog','17tKlCJv','boolean','assets'];_0x5b73=function(){return _0x5d050c;};return _0x5b73();}var CKBox=Object['freeze']({'__proto__':null,'mount':mount,'React':_0x5bf763,'version':version});(function(){const _0x247767=_0x3a62,_0x468b64=globalThis;!_0x468b64[_0x247767(0x1d5)]&&(_0x468b64[_0x247767(0x1d5)]=CKBox);}());export{mount};
|
package/package.json
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"name": "ckbox",
|
|
23
|
-
"version": "1.2.0-dev.
|
|
23
|
+
"version": "1.2.0-dev.1",
|
|
24
24
|
"description": "Main CKBox package",
|
|
25
25
|
"main": "dist/index.js",
|
|
26
26
|
"types": "dist/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ckbox/core": "1.2.0-dev.
|
|
28
|
+
"@ckbox/core": "1.2.0-dev.1",
|
|
29
29
|
"@types/react": "^18.0.24",
|
|
30
30
|
"@types/react-dom": "^18.0.8",
|
|
31
31
|
"react": "^18.2.0",
|
package/dist/ckbox.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { version } from '@ckbox/core';
|
|
3
|
-
import { Props } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Creates an instance and mounts it at supplied node.
|
|
6
|
-
*
|
|
7
|
-
* @param root instance's root element
|
|
8
|
-
* @param props instance's config options
|
|
9
|
-
*/
|
|
10
|
-
export declare const mount: (root: Element, props: Props) => {
|
|
11
|
-
unmount: () => void;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Expose React object so that it can be used to create custom components.
|
|
15
|
-
*/
|
|
16
|
-
export { React, version };
|
package/dist/types.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Core from '@ckbox/core';
|
|
2
|
-
export declare type Asset = Core.Asset;
|
|
3
|
-
export declare type CoreDialogProps = Required<Core.Props>['dialog'];
|
|
4
|
-
export declare type CoreAssetsProps = Core.Props['assets'];
|
|
5
|
-
export declare type DialogProps = Omit<Exclude<CoreDialogProps, boolean>, 'open'>;
|
|
6
|
-
export declare type Props = Omit<Core.Props, 'dialog'> & {
|
|
7
|
-
dialog?: boolean | DialogProps;
|
|
8
|
-
};
|
package/dist/utils.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CoreAssetsProps, CoreDialogProps, Props } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Enhances instance's dialog props with ability to close dialog.
|
|
4
|
-
*
|
|
5
|
-
* @param props instance's config options
|
|
6
|
-
* @param unmount function which unmounts component
|
|
7
|
-
* @returns enhanced dialog options
|
|
8
|
-
*/
|
|
9
|
-
export declare const getDialogProps: (props: Props, unmount: () => void) => false | {
|
|
10
|
-
open: boolean;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
height?: string | number | undefined;
|
|
13
|
-
width?: string | number | undefined;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Enhances instance's `assets.onChoose` option with ability to close dialog.
|
|
17
|
-
*
|
|
18
|
-
* @param props instance's config options
|
|
19
|
-
* @param dialogProps enhanced dialog props
|
|
20
|
-
* @returns enhanced assets props
|
|
21
|
-
*/
|
|
22
|
-
export declare const getAssetsProps: (props: Props, dialogProps: CoreDialogProps) => CoreAssetsProps;
|