@ckbox/core 1.2.1 → 1.3.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 +3 -3
- package/dist/index.d.ts +12 -8
- package/dist/index.js +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 +5 -6
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Using a build served from the CDN is the simplest and fastest way of embedding C
|
|
|
12
12
|
To start using CKBox on your website, embed the following `script` element in the HTML code of the page:
|
|
13
13
|
|
|
14
14
|
```html
|
|
15
|
-
<script src="https://cdn.ckbox.io/CKBox/1.
|
|
15
|
+
<script src="https://cdn.ckbox.io/CKBox/1.3.0-dev.0/ckbox.js"></script>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Quick implementation example:
|
|
@@ -22,7 +22,7 @@ Quick implementation example:
|
|
|
22
22
|
<html>
|
|
23
23
|
<head>
|
|
24
24
|
<meta charset="UTF-8" />
|
|
25
|
-
<script src="https://cdn.ckbox.io/CKBox/1.
|
|
25
|
+
<script src="https://cdn.ckbox.io/CKBox/1.3.0-dev.0/ckbox.js"></script>
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
28
28
|
<div id="ckbox"></div>
|
|
@@ -48,7 +48,7 @@ The code snippet below presents the simplest scenario for integration of CKEdito
|
|
|
48
48
|
<head>
|
|
49
49
|
<meta charset="UTF-8" />
|
|
50
50
|
<script src="https://cdn.ckeditor.com/ckeditor5/35.3.1/classic/ckeditor.js"></script>
|
|
51
|
-
<script src="https://cdn.ckbox.io/CKBox/1.
|
|
51
|
+
<script src="https://cdn.ckbox.io/CKBox/1.3.0-dev.0/ckbox.js"></script>
|
|
52
52
|
</head>
|
|
53
53
|
<body>
|
|
54
54
|
<div id="editor"></div>
|
package/dist/index.d.ts
CHANGED
|
@@ -58,9 +58,13 @@ interface ParsedAsset {
|
|
|
58
58
|
*/
|
|
59
59
|
metadata: ParsedAssetMetadata;
|
|
60
60
|
/**
|
|
61
|
-
* Asset category id.
|
|
61
|
+
* Asset category id. Present only if asset belongs directly to a category.
|
|
62
62
|
*/
|
|
63
|
-
categoryId
|
|
63
|
+
categoryId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Asset folder ID. Present only if asset belongs to a folder.
|
|
66
|
+
*/
|
|
67
|
+
folderId?: string;
|
|
64
68
|
/**
|
|
65
69
|
* Asset tags.
|
|
66
70
|
*/
|
|
@@ -85,7 +89,7 @@ interface AssetExtraProps {
|
|
|
85
89
|
interface Asset$1 extends AssetExtraProps {
|
|
86
90
|
data: ParsedAsset;
|
|
87
91
|
}
|
|
88
|
-
|
|
92
|
+
type AssetsConfigOnChooseEnhanced = (assets: Asset$1[]) => void;
|
|
89
93
|
interface AssetsConfig {
|
|
90
94
|
/**
|
|
91
95
|
* Callback invoked upon clicking on `Choose` button.
|
|
@@ -94,7 +98,7 @@ interface AssetsConfig {
|
|
|
94
98
|
onChoose?: AssetsConfigOnChooseEnhanced;
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
|
|
101
|
+
type CategoriesConfig = {
|
|
98
102
|
/**
|
|
99
103
|
* Maps category names to custom icons.
|
|
100
104
|
*/
|
|
@@ -111,7 +115,7 @@ interface LanguageConfig {
|
|
|
111
115
|
*/
|
|
112
116
|
ui?: string;
|
|
113
117
|
}
|
|
114
|
-
|
|
118
|
+
type LanguageConfigProp = string | LanguageConfig;
|
|
115
119
|
|
|
116
120
|
interface DialogModeProps {
|
|
117
121
|
/**
|
|
@@ -131,9 +135,9 @@ interface DialogModeProps {
|
|
|
131
135
|
*/
|
|
132
136
|
width?: string | number;
|
|
133
137
|
}
|
|
134
|
-
|
|
138
|
+
type DialogProps = boolean | DialogModeProps;
|
|
135
139
|
|
|
136
|
-
|
|
140
|
+
type Asset = Asset$1;
|
|
137
141
|
interface CoreContext {
|
|
138
142
|
/**
|
|
139
143
|
* Configures assets options.
|
|
@@ -176,7 +180,7 @@ interface CoreContext {
|
|
|
176
180
|
declare const CoreContext: React.Context<CoreContext>;
|
|
177
181
|
|
|
178
182
|
declare const Core: React.FC<Props>;
|
|
179
|
-
|
|
183
|
+
type Props = CoreContext;
|
|
180
184
|
|
|
181
185
|
/**
|
|
182
186
|
* Current version of the package.
|