ckbox 2.9.2 → 2.10.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 +4 -4
- package/dist/ckbox.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +1 -1
- package/dist/styles/themes/lark.css +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/es-la.js +1 -1
- package/dist/translations/es-mx.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fr-ca.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/mr.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/zh-tw.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/package.json +6 -6
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,
|
|
4
|
+
import { Asset as Asset$1, Props as Props$1, ImageEditorFromUrlProps as ImageEditorFromUrlProps$1, ImageEditorProps as ImageEditorProps$1 } from '@ckbox/core';
|
|
5
5
|
export { version } from '@ckbox/core';
|
|
6
6
|
import * as react from 'react';
|
|
7
7
|
export { react as React };
|
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
|
-
(function(
|
|
4
|
+
(function(_0x59e5c8,_0x3f5e73){const _0x256189=_0x8311,_0x43419e=_0x59e5c8();while(!![]){try{const _0x5b1806=parseInt(_0x256189(0x159))/0x1*(-parseInt(_0x256189(0x161))/0x2)+-parseInt(_0x256189(0x160))/0x3*(parseInt(_0x256189(0x16a))/0x4)+parseInt(_0x256189(0x16b))/0x5*(-parseInt(_0x256189(0x168))/0x6)+parseInt(_0x256189(0x15d))/0x7+-parseInt(_0x256189(0x158))/0x8+parseInt(_0x256189(0x15a))/0x9*(-parseInt(_0x256189(0x166))/0xa)+parseInt(_0x256189(0x164))/0xb;if(_0x5b1806===_0x3f5e73)break;else _0x43419e['push'](_0x43419e['shift']());}catch(_0x30d7dc){_0x43419e['push'](_0x43419e['shift']());}}}(_0x1276,0x1de71));import*as _0x4beb96 from'react';export{_0x4beb96 as React};function _0x8311(_0x1a8288,_0x1ff6d0){_0x1a8288=_0x1a8288-0x156;const _0x127673=_0x1276();let _0x83119d=_0x127673[_0x1a8288];return _0x83119d;}import*as _0x3e8d96 from'react-dom/client';import{CKBox as _0x3c4e12,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x23d493,_0x385448)=>{const _0x3f9478=_0x8311,_0x55ab0f=_0x23d493[_0x3f9478(0x15f)];if(!_0x55ab0f)return![];if(typeof _0x55ab0f==='boolean'){const _0x51b61d=()=>{_0x385448();};return{'open':!![],'onClose':_0x51b61d};}const _0x26efaa=()=>{const _0x173e40=_0x3f9478;var _0x13910d;(_0x13910d=_0x55ab0f['onClose'])===null||_0x13910d===void 0x0?void 0x0:_0x13910d[_0x173e40(0x165)](_0x55ab0f),_0x385448();};return{..._0x55ab0f,'open':!![],'onClose':_0x26efaa};},getAssetsProps=(_0x21de24,_0x2d0d58)=>{const _0x56f158=_0x8311;var _0x3fb210;const _0x30a92d=(_0x3fb210=_0x21de24[_0x56f158(0x15b)])===null||_0x3fb210===void 0x0?void 0x0:_0x3fb210[_0x56f158(0x16c)];if(!_0x30a92d)return _0x21de24[_0x56f158(0x15b)];const _0x52f2f0=_0x43c149=>{const _0x9934b4=_0x56f158;var _0x519cbd;_0x30a92d(_0x43c149),_0x2d0d58&&typeof _0x2d0d58!==_0x9934b4(0x156)&&((_0x519cbd=_0x2d0d58['onClose'])===null||_0x519cbd===void 0x0?void 0x0:_0x519cbd[_0x9934b4(0x165)](_0x2d0d58));};return{..._0x21de24[_0x56f158(0x15b)],'onChoose':_0x52f2f0};},mount=(_0x55a1b6,_0x5c246d)=>{const _0xb169e6=_0x8311,_0x400f81=_0x3e8d96[_0xb169e6(0x15e)](_0x55a1b6),_0x2d3529=_0x400f81[_0xb169e6(0x163)][_0xb169e6(0x169)](_0x400f81),_0x24724c=getDialogProps(_0x5c246d,_0x2d3529),_0x2559ff=getAssetsProps(_0x5c246d,_0x24724c);return _0x400f81[_0xb169e6(0x167)](_0x4beb96[_0xb169e6(0x15c)](_0x3c4e12,{..._0x5c246d,'assets':_0x2559ff,'dialog':_0x24724c})),{'unmount':_0x2d3529};},mountImageEditor=(_0x351846,_0x1bfd49)=>{const _0x43c0e0=_0x8311,_0x1da8ac=_0x3e8d96[_0x43c0e0(0x15e)](_0x351846),_0x37bd8f=_0x1da8ac[_0x43c0e0(0x163)][_0x43c0e0(0x169)](_0x1da8ac),_0x328640=()=>{const _0x8c5ed7=_0x43c0e0;var _0x3619f8;(_0x3619f8=_0x1bfd49[_0x8c5ed7(0x157)])===null||_0x3619f8===void 0x0?void 0x0:_0x3619f8[_0x8c5ed7(0x165)](_0x1bfd49),_0x37bd8f();};return _0x1da8ac[_0x43c0e0(0x167)](_0x4beb96[_0x43c0e0(0x15c)](CKBoxImageEditor,{..._0x1bfd49,'open':!![],'onClose':_0x328640})),{'unmount':_0x37bd8f};};function _0x1276(){const _0x4a3bee=['bind','16UFfOCV','10545HMKSii','onChoose','boolean','onClose','232536Pbaoju','4NQQRyy','34812MUqyRT','assets','createElement','1635193tGoksW','createRoot','dialog','109374CvHqoz','106588oKVewk','CKBox','unmount','7010498UiFeWH','call','490eGCwTm','render','486EzAAcB'];_0x1276=function(){return _0x4a3bee;};return _0x1276();}var CKBox=Object['freeze']({'__proto__':null,'React':_0x4beb96,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x47efae=_0x8311,_0x2c777f=globalThis;!_0x2c777f[_0x47efae(0x162)]&&(_0x2c777f[_0x47efae(0x162)]=CKBox);}());export{mount,mountImageEditor};
|