@ckbox/core 2.8.2-rc.0 → 2.9.0-dev.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/index.d.ts +24 -2
- package/dist/index.js +1 -1
- package/dist/translations/en.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Using a build served from the CDN is the simplest and fastest way of embedding C
|
|
|
13
13
|
To start using CKBox on your website, embed the following `script` element in the HTML code of the page:
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<script src="https://cdn.ckbox.io/ckbox/2.
|
|
16
|
+
<script src="https://cdn.ckbox.io/ckbox/2.9.0-dev.0/ckbox.js"></script>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Quick implementation example:
|
|
@@ -23,7 +23,7 @@ Quick implementation example:
|
|
|
23
23
|
<html>
|
|
24
24
|
<head>
|
|
25
25
|
<meta charset="UTF-8" />
|
|
26
|
-
<script src="https://cdn.ckbox.io/ckbox/2.
|
|
26
|
+
<script src="https://cdn.ckbox.io/ckbox/2.9.0-dev.0/ckbox.js"></script>
|
|
27
27
|
</head>
|
|
28
28
|
<body>
|
|
29
29
|
<div id="ckbox"></div>
|
|
@@ -48,10 +48,10 @@ The code snippet below presents the simplest scenario for integration of CKEdito
|
|
|
48
48
|
<html>
|
|
49
49
|
<head>
|
|
50
50
|
<meta charset="UTF-8" />
|
|
51
|
-
<script src="https://cdn.ckbox.io/ckbox/2.
|
|
51
|
+
<script src="https://cdn.ckbox.io/ckbox/2.9.0-dev.0/ckbox.js"></script>
|
|
52
52
|
<link
|
|
53
53
|
rel="stylesheet"
|
|
54
|
-
href="https://cdn.ckbox.io/ckbox/2.
|
|
54
|
+
href="https://cdn.ckbox.io/ckbox/2.9.0-dev.0/styles/themes/lark.css"
|
|
55
55
|
/>
|
|
56
56
|
<link rel="stylesheet" href="https://cdn.ckeditor.com/ckeditor5/42.0.0/ckeditor5.css" />
|
|
57
57
|
</head>
|
package/dist/index.d.ts
CHANGED
|
@@ -405,9 +405,31 @@ type CoreImageEditorFromUrlProps = {
|
|
|
405
405
|
} & CoreImageEditorBaseProps;
|
|
406
406
|
type ImageEditorProps = CoreImageEditorProps & CoreBaseProps;
|
|
407
407
|
type ImageEditorFromUrlProps = CoreImageEditorFromUrlProps & CoreBaseProps;
|
|
408
|
+
type UploaderWidgetProps = {
|
|
409
|
+
/**
|
|
410
|
+
* Callback invoked upon successfully uploading asset.
|
|
411
|
+
*
|
|
412
|
+
* @param asset uploaded asset
|
|
413
|
+
*/
|
|
414
|
+
onUpload?: (asset: ParsedAsset) => void;
|
|
415
|
+
/**
|
|
416
|
+
* ID of a category to which assets will be uploaded.
|
|
417
|
+
*/
|
|
418
|
+
uploadCategoryId?: string;
|
|
419
|
+
/**
|
|
420
|
+
* ID of a folder to which assets will be uploaded.
|
|
421
|
+
*/
|
|
422
|
+
uploadFolderId?: string;
|
|
423
|
+
/**
|
|
424
|
+
* ID of a workspace to which assets will be uploaded.
|
|
425
|
+
*/
|
|
426
|
+
workspaceId: string;
|
|
427
|
+
} & CoreBaseProps;
|
|
408
428
|
|
|
409
429
|
declare const CoreImageEditor: React.FC<ImageEditorProps | ImageEditorFromUrlProps>;
|
|
410
430
|
|
|
431
|
+
declare const CoreUploaderWidget: React.FC<UploaderWidgetProps>;
|
|
432
|
+
|
|
411
433
|
/**
|
|
412
434
|
* `CoreApp` is meant to hold all providers that are workspace-agnostic.
|
|
413
435
|
* These providers should be mounted once in CKBox instance's lifetime.
|
|
@@ -419,5 +441,5 @@ declare const CoreApp: React.FC<Props>;
|
|
|
419
441
|
*/
|
|
420
442
|
declare const CKBOX_VERSION: string | undefined;
|
|
421
443
|
|
|
422
|
-
export { CoreApp as CKBox, CoreImageEditor as CKBoxImageEditor, CKBOX_VERSION as version };
|
|
423
|
-
export type { Asset, ImageEditorFromUrlProps, ImageEditorProps, Props };
|
|
444
|
+
export { CoreApp as CKBox, CoreImageEditor as CKBoxImageEditor, CoreUploaderWidget as CKBoxWidget, CKBOX_VERSION as version };
|
|
445
|
+
export type { Asset, ImageEditorFromUrlProps, ImageEditorProps, Props, UploaderWidgetProps };
|