@sveltia/cms 0.100.0 → 0.100.2
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 +9 -8
- package/dist/sveltia-cms.js +201 -200
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +204 -203
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +21 -16
- package/types/public.d.ts +4 -0
package/package.json
CHANGED
package/schema/sveltia-cms.json
CHANGED
|
@@ -1034,6 +1034,11 @@
|
|
|
1034
1034
|
"$ref": "#/definitions/FieldKeyPath",
|
|
1035
1035
|
"description": "Date field name used for `preview_path`.",
|
|
1036
1036
|
"markdownDescription": "Date field name used for `preview_path`."
|
|
1037
|
+
},
|
|
1038
|
+
"editor": {
|
|
1039
|
+
"$ref": "#/definitions/EditorOptions",
|
|
1040
|
+
"description": "Editor view options.",
|
|
1041
|
+
"markdownDescription": "Editor view options."
|
|
1037
1042
|
}
|
|
1038
1043
|
},
|
|
1039
1044
|
"required": [
|
|
@@ -4328,6 +4333,22 @@
|
|
|
4328
4333
|
"description": "Internationalization (i18n) file structure type.",
|
|
4329
4334
|
"markdownDescription": "Internationalization (i18n) file structure type."
|
|
4330
4335
|
},
|
|
4336
|
+
"EditorOptions": {
|
|
4337
|
+
"type": "object",
|
|
4338
|
+
"properties": {
|
|
4339
|
+
"preview": {
|
|
4340
|
+
"type": "boolean",
|
|
4341
|
+
"description": "Whether to show the preview pane. Default: `true`.",
|
|
4342
|
+
"markdownDescription": "Whether to show the preview pane. Default: `true`."
|
|
4343
|
+
}
|
|
4344
|
+
},
|
|
4345
|
+
"required": [
|
|
4346
|
+
"preview"
|
|
4347
|
+
],
|
|
4348
|
+
"additionalProperties": false,
|
|
4349
|
+
"description": "Editor options.",
|
|
4350
|
+
"markdownDescription": "Editor options."
|
|
4351
|
+
},
|
|
4331
4352
|
"CollectionFilter": {
|
|
4332
4353
|
"type": "object",
|
|
4333
4354
|
"properties": {
|
|
@@ -4560,22 +4581,6 @@
|
|
|
4560
4581
|
"description": "A collection’s advanced group definition, which is compatible with Static CMS.",
|
|
4561
4582
|
"markdownDescription": "A collection’s advanced group definition, which is compatible with Static CMS."
|
|
4562
4583
|
},
|
|
4563
|
-
"EditorOptions": {
|
|
4564
|
-
"type": "object",
|
|
4565
|
-
"properties": {
|
|
4566
|
-
"preview": {
|
|
4567
|
-
"type": "boolean",
|
|
4568
|
-
"description": "Whether to show the preview pane. Default: `true`.",
|
|
4569
|
-
"markdownDescription": "Whether to show the preview pane. Default: `true`."
|
|
4570
|
-
}
|
|
4571
|
-
},
|
|
4572
|
-
"required": [
|
|
4573
|
-
"preview"
|
|
4574
|
-
],
|
|
4575
|
-
"additionalProperties": false,
|
|
4576
|
-
"description": "Editor options.",
|
|
4577
|
-
"markdownDescription": "Editor options."
|
|
4578
|
-
},
|
|
4579
4584
|
"NestedCollectionOptions": {
|
|
4580
4585
|
"type": "object",
|
|
4581
4586
|
"properties": {
|
package/types/public.d.ts
CHANGED
|
@@ -1226,6 +1226,10 @@ export type CollectionFile = {
|
|
|
1226
1226
|
* Date field name used for `preview_path`.
|
|
1227
1227
|
*/
|
|
1228
1228
|
preview_path_date_field?: FieldKeyPath;
|
|
1229
|
+
/**
|
|
1230
|
+
* Editor view options.
|
|
1231
|
+
*/
|
|
1232
|
+
editor?: EditorOptions;
|
|
1229
1233
|
};
|
|
1230
1234
|
/**
|
|
1231
1235
|
* Supported file extension. Actually it can be any string.
|