ckbox 2.2.0-rc.1 → 2.3.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/README.md +3 -3
- package/dist/ckbox.js +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +1 -1
- package/dist/translations/en.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import { Asset as Asset$1, Props as Props$1, ImageEditorProps as ImageEditorProps$1 } from '@ckbox/core';
|
|
4
|
+
import { Asset as Asset$1, Props as Props$1, ImageEditorProps as ImageEditorProps$1, ImageEditorFromUrlProps as ImageEditorFromUrlProps$1 } from '@ckbox/core';
|
|
5
5
|
export { version } from '@ckbox/core';
|
|
6
6
|
import * as react from 'react';
|
|
7
7
|
export { react as React };
|
|
@@ -14,7 +14,8 @@ type DialogProps = Omit<Exclude<CoreDialogProps, boolean>, 'open'>;
|
|
|
14
14
|
type Props = Omit<Props$1, 'dialog'> & {
|
|
15
15
|
dialog?: boolean | DialogProps;
|
|
16
16
|
};
|
|
17
|
-
type ImageEditorProps = Omit<
|
|
17
|
+
type ImageEditorProps = Omit<ImageEditorProps$1, 'open'>;
|
|
18
|
+
type ImageEditorFromUrlProps = Omit<ImageEditorFromUrlProps$1, 'open'>;
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Creates an instance of CKBox and mounts it at supplied node.
|
|
@@ -31,8 +32,8 @@ declare const mount: (root: Element, props: Props) => {
|
|
|
31
32
|
* @param root instance's root element
|
|
32
33
|
* @param props instance's config options
|
|
33
34
|
*/
|
|
34
|
-
declare const mountImageEditor: (root: Element, props: ImageEditorProps) => {
|
|
35
|
+
declare const mountImageEditor: (root: Element, props: ImageEditorProps | ImageEditorFromUrlProps) => {
|
|
35
36
|
unmount: () => void;
|
|
36
37
|
};
|
|
37
38
|
|
|
38
|
-
export { type Asset, type CoreAssetsConfigProps, type CoreAssetsOnChooseProps, type CoreDialogProps, type DialogProps, type ImageEditorProps, type Props, mount, mountImageEditor };
|
|
39
|
+
export { type Asset, type CoreAssetsConfigProps, type CoreAssetsOnChooseProps, type CoreDialogProps, type DialogProps, type ImageEditorFromUrlProps, type ImageEditorProps, type Props, mount, mountImageEditor };
|
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
|
-
|
|
4
|
+
(function(_0x29f943,_0x21dc44){const _0x4959bb=_0x1152,_0x3c7f06=_0x29f943();while(!![]){try{const _0x2fe8cc=parseInt(_0x4959bb(0xb4))/0x1+-parseInt(_0x4959bb(0xbe))/0x2*(parseInt(_0x4959bb(0xc2))/0x3)+-parseInt(_0x4959bb(0xaf))/0x4*(parseInt(_0x4959bb(0xbd))/0x5)+parseInt(_0x4959bb(0xc1))/0x6+-parseInt(_0x4959bb(0xb3))/0x7*(parseInt(_0x4959bb(0xbc))/0x8)+-parseInt(_0x4959bb(0xb7))/0x9*(-parseInt(_0x4959bb(0xbb))/0xa)+-parseInt(_0x4959bb(0xb5))/0xb;if(_0x2fe8cc===_0x21dc44)break;else _0x3c7f06['push'](_0x3c7f06['shift']());}catch(_0x177b6b){_0x3c7f06['push'](_0x3c7f06['shift']());}}}(_0x16b7,0x79814));import*as _0x1bbcae from'react';function _0x16b7(){const _0x559174=['boolean','1647vyKjFx','call','assets','createRoot','39330qLCJYd','119384NJtIVB','145MbWcMz','1443530NyPLwJ','unmount','dialog','4216116PqfCCa','3tdTIaB','onChoose','61216FxXDOJ','render','bind','onClose','7SxJMoE','452184UuCujG','2160631JPeOky'];_0x16b7=function(){return _0x559174;};return _0x16b7();}export{_0x1bbcae as React};import*as _0x13172b from'react-dom/client';import{CKBox as _0x36da46,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x5af52c,_0x261024)=>{const _0x208317=_0x1152,_0x23f5ba=_0x5af52c[_0x208317(0xc0)];if(!_0x23f5ba)return![];if(typeof _0x23f5ba===_0x208317(0xb6)){const _0x4fe061=()=>{_0x261024();};return{'open':!![],'onClose':_0x4fe061};}const _0x48a780=()=>{const _0x58db8f=_0x208317;var _0x27f723;(_0x27f723=_0x23f5ba[_0x58db8f(0xb2)])===null||_0x27f723===void 0x0?void 0x0:_0x27f723[_0x58db8f(0xb8)](_0x23f5ba),_0x261024();};return{..._0x23f5ba,'open':!![],'onClose':_0x48a780};},getAssetsProps=(_0x368c4c,_0x1daf50)=>{const _0x5bb840=_0x1152;var _0x389ddf;const _0xfbe07a=(_0x389ddf=_0x368c4c[_0x5bb840(0xb9)])===null||_0x389ddf===void 0x0?void 0x0:_0x389ddf[_0x5bb840(0xc3)];if(!_0xfbe07a)return _0x368c4c['assets'];const _0x353515=_0x48832c=>{const _0x1b8fc0=_0x5bb840;var _0x42515c;_0xfbe07a(_0x48832c),_0x1daf50&&typeof _0x1daf50!=='boolean'&&((_0x42515c=_0x1daf50[_0x1b8fc0(0xb2)])===null||_0x42515c===void 0x0?void 0x0:_0x42515c[_0x1b8fc0(0xb8)](_0x1daf50));};return{..._0x368c4c['assets'],'onChoose':_0x353515};},mount=(_0x5c7aad,_0x5ccc9c)=>{const _0x35613a=_0x1152,_0x5a5ca2=_0x13172b[_0x35613a(0xba)](_0x5c7aad),_0x3c7989=_0x5a5ca2[_0x35613a(0xbf)][_0x35613a(0xb1)](_0x5a5ca2),_0x4a4758=getDialogProps(_0x5ccc9c,_0x3c7989),_0x22d24e=getAssetsProps(_0x5ccc9c,_0x4a4758);return _0x5a5ca2[_0x35613a(0xb0)](_0x1bbcae['createElement'](_0x36da46,{..._0x5ccc9c,'assets':_0x22d24e,'dialog':_0x4a4758})),{'unmount':_0x3c7989};},mountImageEditor=(_0x4de3bb,_0x4531b7)=>{const _0x42535c=_0x1152,_0x270777=_0x13172b['createRoot'](_0x4de3bb),_0x15fd59=_0x270777[_0x42535c(0xbf)][_0x42535c(0xb1)](_0x270777),_0x15628b=()=>{const _0x5bd54f=_0x42535c;var _0x5b383a;(_0x5b383a=_0x4531b7[_0x5bd54f(0xb2)])===null||_0x5b383a===void 0x0?void 0x0:_0x5b383a['call'](_0x4531b7),_0x15fd59();};return _0x270777[_0x42535c(0xb0)](_0x1bbcae['createElement'](CKBoxImageEditor,{..._0x4531b7,'open':!![],'onClose':_0x15628b})),{'unmount':_0x15fd59};};function _0x1152(_0x204639,_0x2604a5){const _0x16b72a=_0x16b7();return _0x1152=function(_0x115291,_0x2b87bd){_0x115291=_0x115291-0xaf;let _0x5e442c=_0x16b72a[_0x115291];return _0x5e442c;},_0x1152(_0x204639,_0x2604a5);}var CKBox=Object['freeze']({'__proto__':null,'React':_0x1bbcae,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x55226d=globalThis;!_0x55226d['CKBox']&&(_0x55226d['CKBox']=CKBox);}());export{mount,mountImageEditor};
|