@sveltia/cms 0.119.1 → 0.120.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/types/public.d.ts CHANGED
@@ -1334,9 +1334,9 @@ export type FileExtension = "yml" | "yaml" | "toml" | "json" | "md" | "markdown"
1334
1334
  */
1335
1335
  export type FrontMatterFormat = "yaml-frontmatter" | "toml-frontmatter" | "json-frontmatter";
1336
1336
  /**
1337
- * Supported file format.
1337
+ * Supported file format. Actually it can be any string because of custom formats.
1338
1338
  */
1339
- export type FileFormat = "yml" | "yaml" | "toml" | "json" | "frontmatter" | FrontMatterFormat;
1339
+ export type FileFormat = "yml" | "yaml" | "toml" | "json" | "frontmatter" | FrontMatterFormat | string;
1340
1340
  /**
1341
1341
  * Collection filter options.
1342
1342
  */
@@ -1650,7 +1650,8 @@ export type CommonCollectionProps = {
1650
1650
  */
1651
1651
  export type EntryCollectionProps = {
1652
1652
  /**
1653
- * Base folder path relative to the project root.
1653
+ * Base folder path relative to the project root. It can contain slashes
1654
+ * to create subfolders.
1654
1655
  */
1655
1656
  folder: string;
1656
1657
  /**
@@ -1658,7 +1659,9 @@ export type EntryCollectionProps = {
1658
1659
  */
1659
1660
  fields: Field[];
1660
1661
  /**
1661
- * File path relative to `folder`, without a file extension.
1662
+ * File path relative to `folder`, without a file extension. It can
1663
+ * contain slashes to create subfolders. Default: `{{slug}}`. To use Hugo’s page bundle, set this to
1664
+ * `{{slug}}/index`.
1662
1665
  */
1663
1666
  path?: string;
1664
1667
  /**
@@ -1685,10 +1688,11 @@ export type EntryCollectionProps = {
1685
1688
  */
1686
1689
  identifier_field?: FieldKeyPath;
1687
1690
  /**
1688
- * Item slug template. Default: `identifier_field` option value. It’s
1689
- * possible to [localize the slug](https://github.com/sveltia/sveltia-cms#localizing-entry-slugs) or
1690
- * [use a random ID](https://github.com/sveltia/sveltia-cms#using-a-random-id-for-an-entry-slug).
1691
- * Also, it’s possible to show a special slug editor field in initial entry drafts by using
1691
+ * Item slug template. Default: `identifier_field` option value. It cannot
1692
+ * contain slashes; to organize entries in subfolders, use the `path` option instead. It’s possible
1693
+ * to [localize the slug](https://github.com/sveltia/sveltia-cms#localizing-entry-slugs) or [use a
1694
+ * random ID](https://github.com/sveltia/sveltia-cms#using-a-random-id-for-an-entry-slug). Also,
1695
+ * it’s possible to show a special slug editor field in initial entry drafts by using
1692
1696
  * `{{fields._slug}}` (with an underscore prefix) or `{{fields._slug | localize}}` (to localize the
1693
1697
  * slug).
1694
1698
  */