@ckbox/core 1.4.0 → 1.4.1-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 +20 -3
- package/dist/index.js +1 -1
- package/dist/translations/en.js +1 -1
- package/package.json +7 -7
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.4.0/ckbox.js"></script>
|
|
15
|
+
<script src="https://cdn.ckbox.io/ckbox/1.4.1-rc.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.4.0/ckbox.js"></script>
|
|
25
|
+
<script src="https://cdn.ckbox.io/ckbox/1.4.1-rc.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/36.0.0/classic/ckeditor.js"></script>
|
|
51
|
-
<script src="https://cdn.ckbox.io/ckbox/1.4.0/ckbox.js"></script>
|
|
51
|
+
<script src="https://cdn.ckbox.io/ckbox/1.4.1-rc.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,9 @@ interface ParsedAsset {
|
|
|
58
58
|
*/
|
|
59
59
|
metadata: ParsedAssetMetadata;
|
|
60
60
|
/**
|
|
61
|
-
* Asset category
|
|
61
|
+
* Asset category ID.
|
|
62
62
|
*/
|
|
63
|
-
categoryId
|
|
63
|
+
categoryId: string;
|
|
64
64
|
/**
|
|
65
65
|
* Asset folder ID. Present only if asset belongs to a folder.
|
|
66
66
|
*/
|
|
@@ -117,6 +117,23 @@ interface LanguageConfig {
|
|
|
117
117
|
}
|
|
118
118
|
type LanguageConfigProp = string | LanguageConfig;
|
|
119
119
|
|
|
120
|
+
interface NavigationProviderConfig {
|
|
121
|
+
/**
|
|
122
|
+
* If set to `false`, last selected view will not be re-opened on startup.
|
|
123
|
+
*/
|
|
124
|
+
openLastView?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* ID of the folder that will be opened on startup.
|
|
127
|
+
* This option can be paired with setting `openLastView` to `false` to enforce CKBox to always open in a given folder at start.
|
|
128
|
+
*/
|
|
129
|
+
startupFolderId?: string;
|
|
130
|
+
/**
|
|
131
|
+
* ID of the category that will be opened on startup.
|
|
132
|
+
* This option can be paired with setting `openLastView` to `false` to enforce CKBox to always open in a given category at start.
|
|
133
|
+
*/
|
|
134
|
+
startupCategoryId?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
120
137
|
interface DialogModeProps {
|
|
121
138
|
/**
|
|
122
139
|
* Initial dialog height.
|
|
@@ -138,7 +155,7 @@ interface DialogModeProps {
|
|
|
138
155
|
type DialogProps = boolean | DialogModeProps;
|
|
139
156
|
|
|
140
157
|
type Asset = Asset$1;
|
|
141
|
-
interface CoreContext {
|
|
158
|
+
interface CoreContext extends NavigationProviderConfig {
|
|
142
159
|
/**
|
|
143
160
|
* Configures assets options.
|
|
144
161
|
*/
|