@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.
Files changed (44) hide show
  1. package/README.md +4 -4
  2. package/dist/index.d.ts +26 -0
  3. package/dist/index.js +1 -1
  4. package/dist/translations/bg.js +1 -1
  5. package/dist/translations/bn.js +1 -1
  6. package/dist/translations/ca.js +1 -1
  7. package/dist/translations/cs.js +1 -1
  8. package/dist/translations/da.js +1 -1
  9. package/dist/translations/de.js +1 -1
  10. package/dist/translations/el.js +1 -1
  11. package/dist/translations/en.js +1 -1
  12. package/dist/translations/es-la.js +1 -1
  13. package/dist/translations/es-mx.js +1 -1
  14. package/dist/translations/es.js +1 -1
  15. package/dist/translations/et.js +1 -1
  16. package/dist/translations/fi.js +1 -1
  17. package/dist/translations/fr-ca.js +1 -1
  18. package/dist/translations/fr.js +1 -1
  19. package/dist/translations/hi.js +1 -1
  20. package/dist/translations/hu.js +1 -1
  21. package/dist/translations/id.js +1 -1
  22. package/dist/translations/it.js +1 -1
  23. package/dist/translations/ja.js +1 -1
  24. package/dist/translations/ko.js +1 -1
  25. package/dist/translations/lt.js +1 -1
  26. package/dist/translations/mr.js +1 -1
  27. package/dist/translations/ms.js +1 -1
  28. package/dist/translations/nl.js +1 -1
  29. package/dist/translations/no.js +1 -1
  30. package/dist/translations/pl.js +1 -1
  31. package/dist/translations/pt-br.js +1 -1
  32. package/dist/translations/pt.js +1 -1
  33. package/dist/translations/ro.js +1 -1
  34. package/dist/translations/ru.js +1 -1
  35. package/dist/translations/sk.js +1 -1
  36. package/dist/translations/sr.js +1 -1
  37. package/dist/translations/sv.js +1 -1
  38. package/dist/translations/th.js +1 -1
  39. package/dist/translations/tr.js +1 -1
  40. package/dist/translations/uk.js +1 -1
  41. package/dist/translations/vi.js +1 -1
  42. package/dist/translations/zh-tw.js +1 -1
  43. package/dist/translations/zh.js +1 -1
  44. 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.5.2/ckbox.js"></script>
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.5.2/ckbox.js"></script>
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.5.2/ckbox.js"></script>
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.5.2/styles/themes/lark.css"
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 {