@sveltia/cms 0.124.2 → 0.126.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
@@ -956,9 +956,13 @@ export type NumberFieldProps = {
956
956
  */
957
957
  default?: number | string;
958
958
  /**
959
- * Type of value to be saved. Default: `int`.
959
+ * Type of the value. `int`
960
+ * makes the input accept only an integer value and saves it as a number. `float` makes the input
961
+ * accept only a floating-point value and saves it as a number. `int/string` and `float/string` make
962
+ * the input accept only an integer or floating-point value, respectively, but save it as a string.
963
+ * Default: `int`.
960
964
  */
961
- value_type?: "int" | "float" | string;
965
+ value_type?: "int" | "float" | "int/string" | "float/string";
962
966
  /**
963
967
  * Minimum value that can be entered in the input. Default: `-Infinity`.
964
968
  */
@@ -1371,7 +1375,7 @@ export type CollectionFile = {
1371
1375
  /**
1372
1376
  * Supported file extension. Actually it can be any string.
1373
1377
  */
1374
- export type FileExtension = "yml" | "yaml" | "toml" | "json" | "md" | "markdown" | "html" | string;
1378
+ export type FileExtension = "yml" | "yaml" | "toml" | "json" | "md" | "markdown" | "html" | "txt" | string;
1375
1379
  /**
1376
1380
  * Supported Markdown front matter format.
1377
1381
  */
@@ -1379,7 +1383,7 @@ export type FrontMatterFormat = "yaml-frontmatter" | "toml-frontmatter" | "json-
1379
1383
  /**
1380
1384
  * Supported file format. Actually it can be any string because of custom formats.
1381
1385
  */
1382
- export type FileFormat = "yml" | "yaml" | "toml" | "json" | "frontmatter" | FrontMatterFormat | string;
1386
+ export type FileFormat = "yml" | "yaml" | "toml" | "json" | "frontmatter" | FrontMatterFormat | "raw" | string;
1383
1387
  /**
1384
1388
  * Collection filter options.
1385
1389
  */