@sveltia/cms 0.70.7 → 0.71.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/cms",
3
- "version": "0.70.7",
3
+ "version": "0.71.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
package/types/public.d.ts CHANGED
@@ -1184,6 +1184,24 @@ export type CollectionMetaData = {
1184
1184
  */
1185
1185
  path?: CollectionMetaDataPath;
1186
1186
  };
1187
+ /**
1188
+ * Index file editing options.
1189
+ */
1190
+ export type CollectionIndexFile = {
1191
+ /**
1192
+ * Index file name. Use `_index` for Hugo’s special index file.
1193
+ */
1194
+ name: string;
1195
+ /**
1196
+ * Set of fields for the index file. If omitted, the regular entry
1197
+ * collection `fields` will be used instead.
1198
+ */
1199
+ fields?: Field[];
1200
+ /**
1201
+ * Editor view options.
1202
+ */
1203
+ editor?: EditorOptions;
1204
+ };
1187
1205
  /**
1188
1206
  * A raw collection defined in the configuration file. Note: In Sveltia CMS, a folder collection is
1189
1207
  * called an entry collection.
@@ -1337,6 +1355,10 @@ export type Collection = {
1337
1355
  * Meta data for a nested collection. Entry collection only.
1338
1356
  */
1339
1357
  meta?: CollectionMetaData;
1358
+ /**
1359
+ * Index file editing options. Entry collection only.
1360
+ */
1361
+ index_file?: CollectionIndexFile;
1340
1362
  /**
1341
1363
  * Whether to double-quote all the strings values if the YAML
1342
1364
  * format is used for file output. Default: `false`. DEPRECATED in favor of the global YAML format