@ckbox/core 2.5.2 → 2.6.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 +26 -0
- 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 +6 -6
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.6.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.6.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.6.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.6.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
|
@@ -9,6 +9,24 @@ type ApiAssetImageProcessingStatus = 'queued' | 'success' | 'error';
|
|
|
9
9
|
type TokenCallback = () => Promise<string>;
|
|
10
10
|
type TokenUrl = string | TokenCallback;
|
|
11
11
|
|
|
12
|
+
type ParsedAssetThumbnailMetadata = {
|
|
13
|
+
/**
|
|
14
|
+
* Thumbnail blurhash.
|
|
15
|
+
*/
|
|
16
|
+
blurHash?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Thumbnail width.
|
|
19
|
+
*/
|
|
20
|
+
width?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Thumbnail height.
|
|
23
|
+
*/
|
|
24
|
+
height?: number;
|
|
25
|
+
/**
|
|
26
|
+
* MIME type of underlying file.
|
|
27
|
+
*/
|
|
28
|
+
mimeType?: string;
|
|
29
|
+
};
|
|
12
30
|
interface ParsedAssetMetadata extends Record<string, unknown> {
|
|
13
31
|
/**
|
|
14
32
|
* Asset blurhash.
|
|
@@ -30,6 +48,10 @@ interface ParsedAssetMetadata extends Record<string, unknown> {
|
|
|
30
48
|
* Asset height in px.
|
|
31
49
|
*/
|
|
32
50
|
height?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Custom thumbnail metadata.
|
|
53
|
+
*/
|
|
54
|
+
thumbnailMetadata?: ParsedAssetThumbnailMetadata;
|
|
33
55
|
/**
|
|
34
56
|
* Set of custom attributes.
|
|
35
57
|
*/
|
|
@@ -109,6 +131,10 @@ interface ParsedCategory {
|
|
|
109
131
|
* Allowed extensions.
|
|
110
132
|
*/
|
|
111
133
|
extensions: string[];
|
|
134
|
+
/**
|
|
135
|
+
* Indicates whether category is private.
|
|
136
|
+
*/
|
|
137
|
+
isPrivate: boolean;
|
|
112
138
|
}
|
|
113
139
|
|
|
114
140
|
interface ParsedFolder {
|