@sveltia/cms 0.124.2 → 0.125.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 +6 -3
- package/dist/sveltia-cms.js +157 -157
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +142 -142
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +1 -1
- package/types/public.d.ts +6 -2
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
|
|
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
|
*/
|