@ckbox/components 2.3.1 → 2.4.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 +13 -0
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +1 -1
- package/package.json +4 -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.4.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.4.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.4.0/ckbox.js"></script>
|
|
53
53
|
</head>
|
|
54
54
|
<body>
|
|
55
55
|
<div id="editor"></div>
|
package/dist/index.d.ts
CHANGED
|
@@ -900,6 +900,10 @@ interface Props$2O {
|
|
|
900
900
|
* Toggles loading.
|
|
901
901
|
*/
|
|
902
902
|
loading?: boolean;
|
|
903
|
+
/**
|
|
904
|
+
* Sets item as disabled.
|
|
905
|
+
*/
|
|
906
|
+
disabled?: boolean;
|
|
903
907
|
/**
|
|
904
908
|
* Main content of the component.
|
|
905
909
|
*/
|
|
@@ -2453,6 +2457,7 @@ declare const uiContextInitProps: {
|
|
|
2453
2457
|
navbarCollapsed: boolean;
|
|
2454
2458
|
isMaximized: boolean;
|
|
2455
2459
|
hideMaximizeButton: boolean;
|
|
2460
|
+
choosableFileExtensions: undefined;
|
|
2456
2461
|
onIsMaximizedChange: () => void;
|
|
2457
2462
|
onNavbarCollapseChange: () => void;
|
|
2458
2463
|
onNavbarPreviewChange: () => void;
|
|
@@ -2493,6 +2498,10 @@ interface UIContext {
|
|
|
2493
2498
|
* Determines whether UI should be maximized.
|
|
2494
2499
|
*/
|
|
2495
2500
|
isMaximized: boolean;
|
|
2501
|
+
/**
|
|
2502
|
+
* Defines list of choosable file extensions.
|
|
2503
|
+
*/
|
|
2504
|
+
choosableFileExtensions?: string[];
|
|
2496
2505
|
/**
|
|
2497
2506
|
* Callback invoked whenever maximize mode is toggled.
|
|
2498
2507
|
*/
|
|
@@ -3627,6 +3636,10 @@ interface Props$1M {
|
|
|
3627
3636
|
* Determines if maximize button should be hidden.
|
|
3628
3637
|
*/
|
|
3629
3638
|
hideMaximizeButton?: boolean;
|
|
3639
|
+
/**
|
|
3640
|
+
* Sets list of choosable file extensions.
|
|
3641
|
+
*/
|
|
3642
|
+
choosableFileExtensions?: string[];
|
|
3630
3643
|
}
|
|
3631
3644
|
|
|
3632
3645
|
declare const View: React$1.FC<Props$1L>;
|