@ckbox/core 2.2.0 → 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/index.d.ts +26 -7
- 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.3.0-rc.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.3.0-rc.0/ckbox.js"></script>
|
|
27
27
|
</head>
|
|
28
28
|
<body>
|
|
29
29
|
<div id="ckbox"></div>
|
|
@@ -49,7 +49,7 @@ The code snippet below presents the simplest scenario for integration of CKEdito
|
|
|
49
49
|
<head>
|
|
50
50
|
<meta charset="UTF-8" />
|
|
51
51
|
<script src="https://cdn.ckeditor.com/ckeditor5/39.0.0/classic/ckeditor.js"></script>
|
|
52
|
-
<script src="https://cdn.ckbox.io/ckbox/2.
|
|
52
|
+
<script src="https://cdn.ckbox.io/ckbox/2.3.0-rc.0/ckbox.js"></script>
|
|
53
53
|
</head>
|
|
54
54
|
<body>
|
|
55
55
|
<div id="editor"></div>
|
package/dist/index.d.ts
CHANGED
|
@@ -229,6 +229,10 @@ interface NavigationProviderConfig {
|
|
|
229
229
|
* This option can be paired with setting `openLastView` to `false` to enforce CKBox to always open in a given category at start.
|
|
230
230
|
*/
|
|
231
231
|
startupCategoryId?: string;
|
|
232
|
+
/**
|
|
233
|
+
* If set to `true`, maximize button will be hidden.
|
|
234
|
+
*/
|
|
235
|
+
hideMaximizeButton?: boolean;
|
|
232
236
|
}
|
|
233
237
|
|
|
234
238
|
interface DialogModeProps {
|
|
@@ -335,11 +339,7 @@ type CoreCKBoxProps = {
|
|
|
335
339
|
};
|
|
336
340
|
};
|
|
337
341
|
type Props = CoreCKBoxProps & CoreBaseProps;
|
|
338
|
-
type
|
|
339
|
-
/**
|
|
340
|
-
* ID of an asset to open.
|
|
341
|
-
*/
|
|
342
|
-
assetId: string;
|
|
342
|
+
type CoreImageEditorBaseProps = {
|
|
343
343
|
/**
|
|
344
344
|
* Whether image editor should be open.
|
|
345
345
|
*/
|
|
@@ -355,9 +355,28 @@ type CoreImageEditorProps = {
|
|
|
355
355
|
*/
|
|
356
356
|
onSave?: (data: ImageEditingOnSaveParams) => void;
|
|
357
357
|
};
|
|
358
|
+
type CoreImageEditorProps = {
|
|
359
|
+
/**
|
|
360
|
+
* ID of an asset to open.
|
|
361
|
+
*/
|
|
362
|
+
assetId: string;
|
|
363
|
+
} & CoreImageEditorBaseProps;
|
|
364
|
+
type CoreImageEditorFromUrlProps = {
|
|
365
|
+
/**
|
|
366
|
+
* URL of an external image.
|
|
367
|
+
* It must have a supported `Content-Type` header.
|
|
368
|
+
* CORS restrictions apply.
|
|
369
|
+
*/
|
|
370
|
+
imageUrl: string;
|
|
371
|
+
/**
|
|
372
|
+
* ID of a category to which image will be uploaded.
|
|
373
|
+
*/
|
|
374
|
+
uploadCategoryId: string;
|
|
375
|
+
} & CoreImageEditorBaseProps;
|
|
358
376
|
type ImageEditorProps = CoreImageEditorProps & CoreBaseProps;
|
|
377
|
+
type ImageEditorFromUrlProps = CoreImageEditorFromUrlProps & CoreBaseProps;
|
|
359
378
|
|
|
360
|
-
declare const CoreImageEditor: React.FC<ImageEditorProps>;
|
|
379
|
+
declare const CoreImageEditor: React.FC<ImageEditorProps | ImageEditorFromUrlProps>;
|
|
361
380
|
|
|
362
381
|
/**
|
|
363
382
|
* `CoreApp` is meant to hold all providers that are workspace-agnostic.
|
|
@@ -370,4 +389,4 @@ declare const CoreApp: React.FC<Props>;
|
|
|
370
389
|
*/
|
|
371
390
|
declare const CKBOX_VERSION: string | undefined;
|
|
372
391
|
|
|
373
|
-
export { type Asset, CoreApp as CKBox, CoreImageEditor as CKBoxImageEditor, type ImageEditorProps, type Props, CKBOX_VERSION as version };
|
|
392
|
+
export { type Asset, CoreApp as CKBox, CoreImageEditor as CKBoxImageEditor, type ImageEditorFromUrlProps, type ImageEditorProps, type Props, CKBOX_VERSION as version };
|