@sveltia/cms 0.94.1 → 0.95.1
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 +60 -38
- package/dist/sveltia-cms.js +220 -220
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +218 -218
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +7 -2
- package/types/public.d.ts +19 -1
package/package.json
CHANGED
package/schema/sveltia-cms.json
CHANGED
|
@@ -2533,8 +2533,13 @@
|
|
|
2533
2533
|
},
|
|
2534
2534
|
"allow_add": {
|
|
2535
2535
|
"type": "boolean",
|
|
2536
|
-
"description": "Whether to allow users to add new
|
|
2537
|
-
"markdownDescription": "Whether to allow users to add new
|
|
2536
|
+
"description": "Whether to allow users to add new items to the list. Default: `true`.",
|
|
2537
|
+
"markdownDescription": "Whether to allow users to add new items to the list. Default: `true`."
|
|
2538
|
+
},
|
|
2539
|
+
"allow_remove": {
|
|
2540
|
+
"type": "boolean",
|
|
2541
|
+
"description": "Whether to allow users to remove items from the list. Default: `true`.",
|
|
2542
|
+
"markdownDescription": "Whether to allow users to remove items from the list. Default: `true`."
|
|
2538
2543
|
},
|
|
2539
2544
|
"add_to_top": {
|
|
2540
2545
|
"type": "boolean",
|
package/types/public.d.ts
CHANGED
|
@@ -693,9 +693,15 @@ export type ListFieldProps = {
|
|
|
693
693
|
*/
|
|
694
694
|
default?: string[] | Record<string, any>[] | Record<string, any>;
|
|
695
695
|
/**
|
|
696
|
-
* Whether to allow users to add new
|
|
696
|
+
* Whether to allow users to add new items to the list. Default:
|
|
697
|
+
* `true`.
|
|
697
698
|
*/
|
|
698
699
|
allow_add?: boolean;
|
|
700
|
+
/**
|
|
701
|
+
* Whether to allow users to remove items from the list. Default:
|
|
702
|
+
* `true`.
|
|
703
|
+
*/
|
|
704
|
+
allow_remove?: boolean;
|
|
699
705
|
/**
|
|
700
706
|
* Whether to add new items to the top of the list instead of the
|
|
701
707
|
* bottom. Default: `false`.
|
|
@@ -1062,6 +1068,18 @@ export type UuidField = CommonFieldProps & StandardFieldProps & UuidFieldProps;
|
|
|
1062
1068
|
* Entry field using a built-in widget.
|
|
1063
1069
|
*/
|
|
1064
1070
|
export type StandardField = BooleanField | CodeField | ColorField | ComputeField | DateTimeField | FileField | HiddenField | ImageField | KeyValueField | ListField | MapField | MarkdownField | NumberField | ObjectField | RelationField | SelectField | StringField | TextField | UuidField;
|
|
1071
|
+
/**
|
|
1072
|
+
* Media field types.
|
|
1073
|
+
*/
|
|
1074
|
+
export type MediaField = FileField | ImageField;
|
|
1075
|
+
/**
|
|
1076
|
+
* Field types that have the `multiple` option.
|
|
1077
|
+
*/
|
|
1078
|
+
export type MultiValueField = MediaField | RelationField | SelectField;
|
|
1079
|
+
/**
|
|
1080
|
+
* Field types that have the `min` and `max` options.
|
|
1081
|
+
*/
|
|
1082
|
+
export type MinMaxValueField = MultiValueField | ListField | NumberField;
|
|
1065
1083
|
/**
|
|
1066
1084
|
* Name of a built-in widget. Sveltia CMS supports all the built-in widgets provided by Decap CMS as
|
|
1067
1085
|
* well as some new widgets.
|