@cloudcannon/configuration-types 0.0.32 → 0.0.33
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/dist/cloudcannon-config.latest.schema.json +443 -373
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +443 -373
- package/dist/cloudcannon-config.legacy-hugo.schema.json +443 -373
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +443 -373
- package/dist/cloudcannon-config.legacy-reader.schema.json +443 -373
- package/package.json +1 -1
- package/src/inputs.d.ts +42 -49
|
@@ -146,20 +146,20 @@
|
|
|
146
146
|
"properties": {
|
|
147
147
|
"disable_add": {
|
|
148
148
|
"default": false,
|
|
149
|
-
"description": "Hides the add button, and context menu actions on each
|
|
150
|
-
"markdownDescription": "Hides the add button, and context menu actions on each
|
|
149
|
+
"description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
150
|
+
"markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
151
151
|
"type": "boolean"
|
|
152
152
|
},
|
|
153
153
|
"disable_remove": {
|
|
154
154
|
"default": false,
|
|
155
|
-
"description": "Hides the context menu actions on each
|
|
156
|
-
"markdownDescription": "Hides the context menu actions on each
|
|
155
|
+
"description": "Hides the context menu actions on each item for removing them.",
|
|
156
|
+
"markdownDescription": "Hides the context menu actions on each item for removing them.",
|
|
157
157
|
"type": "boolean"
|
|
158
158
|
},
|
|
159
159
|
"disable_reorder": {
|
|
160
160
|
"default": false,
|
|
161
|
-
"description": "Hides the controls on each
|
|
162
|
-
"markdownDescription": "Hides the controls on each
|
|
161
|
+
"description": "Hides the controls on each item for moving them.",
|
|
162
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
163
163
|
"type": "boolean"
|
|
164
164
|
},
|
|
165
165
|
"empty_type": {
|
|
@@ -1030,156 +1030,159 @@
|
|
|
1030
1030
|
"type": "string"
|
|
1031
1031
|
},
|
|
1032
1032
|
"options": {
|
|
1033
|
-
"
|
|
1033
|
+
"$ref": "#/definitions/ChoiceInputOptions",
|
|
1034
1034
|
"description": "Options that are specific to Choice Inputs.",
|
|
1035
|
-
"markdownDescription": "Options that are specific to Choice Inputs."
|
|
1035
|
+
"markdownDescription": "Options that are specific to Choice Inputs."
|
|
1036
|
+
},
|
|
1037
|
+
"type": {
|
|
1038
|
+
"const": "choice",
|
|
1039
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
1040
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
1041
|
+
"type": "string"
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
"required": [
|
|
1045
|
+
"type"
|
|
1046
|
+
],
|
|
1047
|
+
"type": "object"
|
|
1048
|
+
},
|
|
1049
|
+
"ChoiceInputOptions": {
|
|
1050
|
+
"additionalProperties": false,
|
|
1051
|
+
"properties": {
|
|
1052
|
+
"allow_empty": {
|
|
1053
|
+
"default": true,
|
|
1054
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
1055
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
1056
|
+
"type": "boolean"
|
|
1057
|
+
},
|
|
1058
|
+
"empty_type": {
|
|
1059
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1060
|
+
"enum": [
|
|
1061
|
+
"null",
|
|
1062
|
+
"string"
|
|
1063
|
+
],
|
|
1064
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1065
|
+
"type": "string"
|
|
1066
|
+
},
|
|
1067
|
+
"max_length": {
|
|
1068
|
+
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1069
|
+
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1070
|
+
"type": "number"
|
|
1071
|
+
},
|
|
1072
|
+
"min_length": {
|
|
1073
|
+
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1074
|
+
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1075
|
+
"type": "number"
|
|
1076
|
+
},
|
|
1077
|
+
"pattern": {
|
|
1078
|
+
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1079
|
+
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
},
|
|
1082
|
+
"pattern_flags": {
|
|
1083
|
+
"additionalProperties": false,
|
|
1084
|
+
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1085
|
+
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1036
1086
|
"properties": {
|
|
1037
|
-
"
|
|
1038
|
-
"default":
|
|
1039
|
-
"description": "
|
|
1040
|
-
"markdownDescription": "
|
|
1087
|
+
"dot_all": {
|
|
1088
|
+
"default": false,
|
|
1089
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1090
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1041
1091
|
"type": "boolean"
|
|
1042
1092
|
},
|
|
1043
|
-
"
|
|
1044
|
-
"
|
|
1045
|
-
"
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
],
|
|
1049
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1050
|
-
"type": "string"
|
|
1051
|
-
},
|
|
1052
|
-
"max_length": {
|
|
1053
|
-
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1054
|
-
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1055
|
-
"type": "number"
|
|
1056
|
-
},
|
|
1057
|
-
"min_length": {
|
|
1058
|
-
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1059
|
-
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1060
|
-
"type": "number"
|
|
1061
|
-
},
|
|
1062
|
-
"pattern": {
|
|
1063
|
-
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1064
|
-
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1065
|
-
"type": "string"
|
|
1066
|
-
},
|
|
1067
|
-
"pattern_flags": {
|
|
1068
|
-
"additionalProperties": false,
|
|
1069
|
-
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1070
|
-
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1071
|
-
"properties": {
|
|
1072
|
-
"dot_all": {
|
|
1073
|
-
"default": false,
|
|
1074
|
-
"description": "`s` - `.` matches newline characters.",
|
|
1075
|
-
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1076
|
-
"type": "boolean"
|
|
1077
|
-
},
|
|
1078
|
-
"global": {
|
|
1079
|
-
"default": false,
|
|
1080
|
-
"description": "`g` - Search globally.",
|
|
1081
|
-
"markdownDescription": "`g` - Search globally.",
|
|
1082
|
-
"type": "boolean"
|
|
1083
|
-
},
|
|
1084
|
-
"ignore_case": {
|
|
1085
|
-
"default": false,
|
|
1086
|
-
"description": "`i` - Case-insensitive.",
|
|
1087
|
-
"markdownDescription": "`i` - Case-insensitive.",
|
|
1088
|
-
"type": "boolean"
|
|
1089
|
-
},
|
|
1090
|
-
"multiline": {
|
|
1091
|
-
"default": false,
|
|
1092
|
-
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1093
|
-
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1094
|
-
"type": "boolean"
|
|
1095
|
-
},
|
|
1096
|
-
"unicode": {
|
|
1097
|
-
"default": false,
|
|
1098
|
-
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1099
|
-
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1100
|
-
"type": "boolean"
|
|
1101
|
-
},
|
|
1102
|
-
"unicode_sets": {
|
|
1103
|
-
"default": false,
|
|
1104
|
-
"description": "`v` - Extended `unicode` mode.",
|
|
1105
|
-
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1106
|
-
"type": "boolean"
|
|
1107
|
-
}
|
|
1108
|
-
},
|
|
1109
|
-
"type": "object"
|
|
1110
|
-
},
|
|
1111
|
-
"pattern_message": {
|
|
1112
|
-
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1113
|
-
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1114
|
-
"type": "string"
|
|
1115
|
-
},
|
|
1116
|
-
"picker_preview": {
|
|
1117
|
-
"$ref": "#/definitions/Preview",
|
|
1118
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
1119
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
1120
|
-
},
|
|
1121
|
-
"picker_view": {
|
|
1122
|
-
"description": "Controls how selectable options are rendered.",
|
|
1123
|
-
"enum": [
|
|
1124
|
-
"card",
|
|
1125
|
-
"text",
|
|
1126
|
-
"gallery",
|
|
1127
|
-
"gallery-left"
|
|
1128
|
-
],
|
|
1129
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
1130
|
-
"type": "string"
|
|
1131
|
-
},
|
|
1132
|
-
"preview": {
|
|
1133
|
-
"$ref": "#/definitions/Preview",
|
|
1134
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
1135
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
1093
|
+
"global": {
|
|
1094
|
+
"default": false,
|
|
1095
|
+
"description": "`g` - Search globally.",
|
|
1096
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1097
|
+
"type": "boolean"
|
|
1136
1098
|
},
|
|
1137
|
-
"
|
|
1138
|
-
"
|
|
1139
|
-
"
|
|
1099
|
+
"ignore_case": {
|
|
1100
|
+
"default": false,
|
|
1101
|
+
"description": "`i` - Case-insensitive.",
|
|
1102
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1140
1103
|
"type": "boolean"
|
|
1141
1104
|
},
|
|
1142
|
-
"
|
|
1143
|
-
"
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1105
|
+
"multiline": {
|
|
1106
|
+
"default": false,
|
|
1107
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1108
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1109
|
+
"type": "boolean"
|
|
1146
1110
|
},
|
|
1147
|
-
"
|
|
1148
|
-
"
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
{
|
|
1153
|
-
"$ref": "#/definitions/SelectValues"
|
|
1154
|
-
}
|
|
1155
|
-
],
|
|
1156
|
-
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
1157
|
-
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
1111
|
+
"unicode": {
|
|
1112
|
+
"default": false,
|
|
1113
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1114
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1115
|
+
"type": "boolean"
|
|
1158
1116
|
},
|
|
1159
|
-
"
|
|
1160
|
-
"
|
|
1161
|
-
"
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
"gallery",
|
|
1165
|
-
"gallery-left"
|
|
1166
|
-
],
|
|
1167
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
1168
|
-
"type": "string"
|
|
1117
|
+
"unicode_sets": {
|
|
1118
|
+
"default": false,
|
|
1119
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1120
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1121
|
+
"type": "boolean"
|
|
1169
1122
|
}
|
|
1170
1123
|
},
|
|
1171
1124
|
"type": "object"
|
|
1172
1125
|
},
|
|
1173
|
-
"
|
|
1174
|
-
"
|
|
1175
|
-
"
|
|
1176
|
-
"
|
|
1126
|
+
"pattern_message": {
|
|
1127
|
+
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1128
|
+
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1129
|
+
"type": "string"
|
|
1130
|
+
},
|
|
1131
|
+
"picker_preview": {
|
|
1132
|
+
"$ref": "#/definitions/Preview",
|
|
1133
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
1134
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
1135
|
+
},
|
|
1136
|
+
"picker_view": {
|
|
1137
|
+
"description": "Controls how selectable options are rendered.",
|
|
1138
|
+
"enum": [
|
|
1139
|
+
"card",
|
|
1140
|
+
"text",
|
|
1141
|
+
"gallery",
|
|
1142
|
+
"gallery-left"
|
|
1143
|
+
],
|
|
1144
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
},
|
|
1147
|
+
"preview": {
|
|
1148
|
+
"$ref": "#/definitions/Preview",
|
|
1149
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
1150
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
1151
|
+
},
|
|
1152
|
+
"required": {
|
|
1153
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1154
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1155
|
+
"type": "boolean"
|
|
1156
|
+
},
|
|
1157
|
+
"value_key": {
|
|
1158
|
+
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
1159
|
+
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
1160
|
+
"type": "string"
|
|
1161
|
+
},
|
|
1162
|
+
"values": {
|
|
1163
|
+
"anyOf": [
|
|
1164
|
+
{
|
|
1165
|
+
"type": "string"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"$ref": "#/definitions/SelectValues"
|
|
1169
|
+
}
|
|
1170
|
+
],
|
|
1171
|
+
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
1172
|
+
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
1173
|
+
},
|
|
1174
|
+
"view": {
|
|
1175
|
+
"description": "Controls how selected items are rendered.",
|
|
1176
|
+
"enum": [
|
|
1177
|
+
"card",
|
|
1178
|
+
"text",
|
|
1179
|
+
"gallery",
|
|
1180
|
+
"gallery-left"
|
|
1181
|
+
],
|
|
1182
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
1177
1183
|
"type": "string"
|
|
1178
1184
|
}
|
|
1179
1185
|
},
|
|
1180
|
-
"required": [
|
|
1181
|
-
"type"
|
|
1182
|
-
],
|
|
1183
1186
|
"type": "object"
|
|
1184
1187
|
},
|
|
1185
1188
|
"CodeInput": {
|
|
@@ -7065,96 +7068,9 @@
|
|
|
7065
7068
|
"type": "string"
|
|
7066
7069
|
},
|
|
7067
7070
|
"options": {
|
|
7068
|
-
"
|
|
7071
|
+
"$ref": "#/definitions/MultichoiceInputOptions",
|
|
7069
7072
|
"description": "Options that are specific to Multichoice Inputs.",
|
|
7070
|
-
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
7071
|
-
"properties": {
|
|
7072
|
-
"allow_empty": {
|
|
7073
|
-
"default": true,
|
|
7074
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
7075
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7076
|
-
"type": "boolean"
|
|
7077
|
-
},
|
|
7078
|
-
"empty_type": {
|
|
7079
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7080
|
-
"enum": [
|
|
7081
|
-
"null",
|
|
7082
|
-
"array"
|
|
7083
|
-
],
|
|
7084
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7085
|
-
"type": "string"
|
|
7086
|
-
},
|
|
7087
|
-
"max_items": {
|
|
7088
|
-
"description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
|
|
7089
|
-
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
7090
|
-
"type": "number"
|
|
7091
|
-
},
|
|
7092
|
-
"min_items": {
|
|
7093
|
-
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
7094
|
-
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7095
|
-
"type": "number"
|
|
7096
|
-
},
|
|
7097
|
-
"picker_preview": {
|
|
7098
|
-
"$ref": "#/definitions/Preview",
|
|
7099
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7100
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7101
|
-
},
|
|
7102
|
-
"picker_view": {
|
|
7103
|
-
"description": "Controls how selectable options are rendered.",
|
|
7104
|
-
"enum": [
|
|
7105
|
-
"card",
|
|
7106
|
-
"text",
|
|
7107
|
-
"gallery",
|
|
7108
|
-
"gallery-left"
|
|
7109
|
-
],
|
|
7110
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7111
|
-
"type": "string"
|
|
7112
|
-
},
|
|
7113
|
-
"preview": {
|
|
7114
|
-
"$ref": "#/definitions/Preview",
|
|
7115
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
7116
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7117
|
-
},
|
|
7118
|
-
"required": {
|
|
7119
|
-
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7120
|
-
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7121
|
-
"type": "boolean"
|
|
7122
|
-
},
|
|
7123
|
-
"unique_on": {
|
|
7124
|
-
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7125
|
-
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7126
|
-
"type": "string"
|
|
7127
|
-
},
|
|
7128
|
-
"value_key": {
|
|
7129
|
-
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
7130
|
-
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
7131
|
-
"type": "string"
|
|
7132
|
-
},
|
|
7133
|
-
"values": {
|
|
7134
|
-
"anyOf": [
|
|
7135
|
-
{
|
|
7136
|
-
"type": "string"
|
|
7137
|
-
},
|
|
7138
|
-
{
|
|
7139
|
-
"$ref": "#/definitions/SelectValues"
|
|
7140
|
-
}
|
|
7141
|
-
],
|
|
7142
|
-
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
7143
|
-
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
7144
|
-
},
|
|
7145
|
-
"view": {
|
|
7146
|
-
"description": "Controls how selected items are rendered.",
|
|
7147
|
-
"enum": [
|
|
7148
|
-
"card",
|
|
7149
|
-
"text",
|
|
7150
|
-
"gallery",
|
|
7151
|
-
"gallery-left"
|
|
7152
|
-
],
|
|
7153
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
7154
|
-
"type": "string"
|
|
7155
|
-
}
|
|
7156
|
-
},
|
|
7157
|
-
"type": "object"
|
|
7073
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
7158
7074
|
},
|
|
7159
7075
|
"type": {
|
|
7160
7076
|
"const": "multichoice",
|
|
@@ -7168,6 +7084,96 @@
|
|
|
7168
7084
|
],
|
|
7169
7085
|
"type": "object"
|
|
7170
7086
|
},
|
|
7087
|
+
"MultichoiceInputOptions": {
|
|
7088
|
+
"additionalProperties": false,
|
|
7089
|
+
"properties": {
|
|
7090
|
+
"allow_empty": {
|
|
7091
|
+
"default": true,
|
|
7092
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7093
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7094
|
+
"type": "boolean"
|
|
7095
|
+
},
|
|
7096
|
+
"empty_type": {
|
|
7097
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7098
|
+
"enum": [
|
|
7099
|
+
"null",
|
|
7100
|
+
"array"
|
|
7101
|
+
],
|
|
7102
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7103
|
+
"type": "string"
|
|
7104
|
+
},
|
|
7105
|
+
"max_items": {
|
|
7106
|
+
"description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
|
|
7107
|
+
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
7108
|
+
"type": "number"
|
|
7109
|
+
},
|
|
7110
|
+
"min_items": {
|
|
7111
|
+
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
7112
|
+
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7113
|
+
"type": "number"
|
|
7114
|
+
},
|
|
7115
|
+
"picker_preview": {
|
|
7116
|
+
"$ref": "#/definitions/Preview",
|
|
7117
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7118
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7119
|
+
},
|
|
7120
|
+
"picker_view": {
|
|
7121
|
+
"description": "Controls how selectable options are rendered.",
|
|
7122
|
+
"enum": [
|
|
7123
|
+
"card",
|
|
7124
|
+
"text",
|
|
7125
|
+
"gallery",
|
|
7126
|
+
"gallery-left"
|
|
7127
|
+
],
|
|
7128
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7129
|
+
"type": "string"
|
|
7130
|
+
},
|
|
7131
|
+
"preview": {
|
|
7132
|
+
"$ref": "#/definitions/Preview",
|
|
7133
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7134
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7135
|
+
},
|
|
7136
|
+
"required": {
|
|
7137
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7138
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7139
|
+
"type": "boolean"
|
|
7140
|
+
},
|
|
7141
|
+
"unique_on": {
|
|
7142
|
+
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7143
|
+
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7144
|
+
"type": "string"
|
|
7145
|
+
},
|
|
7146
|
+
"value_key": {
|
|
7147
|
+
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
7148
|
+
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
7149
|
+
"type": "string"
|
|
7150
|
+
},
|
|
7151
|
+
"values": {
|
|
7152
|
+
"anyOf": [
|
|
7153
|
+
{
|
|
7154
|
+
"type": "string"
|
|
7155
|
+
},
|
|
7156
|
+
{
|
|
7157
|
+
"$ref": "#/definitions/SelectValues"
|
|
7158
|
+
}
|
|
7159
|
+
],
|
|
7160
|
+
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
7161
|
+
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
7162
|
+
},
|
|
7163
|
+
"view": {
|
|
7164
|
+
"description": "Controls how selected items are rendered.",
|
|
7165
|
+
"enum": [
|
|
7166
|
+
"card",
|
|
7167
|
+
"text",
|
|
7168
|
+
"gallery",
|
|
7169
|
+
"gallery-left"
|
|
7170
|
+
],
|
|
7171
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7172
|
+
"type": "string"
|
|
7173
|
+
}
|
|
7174
|
+
},
|
|
7175
|
+
"type": "object"
|
|
7176
|
+
},
|
|
7171
7177
|
"MultiselectInput": {
|
|
7172
7178
|
"additionalProperties": false,
|
|
7173
7179
|
"properties": {
|
|
@@ -7268,22 +7274,34 @@
|
|
|
7268
7274
|
"MultiselectInputOptions": {
|
|
7269
7275
|
"additionalProperties": false,
|
|
7270
7276
|
"properties": {
|
|
7277
|
+
"allow_create": {
|
|
7278
|
+
"default": false,
|
|
7279
|
+
"description": "Allows new text values to be created at edit time.",
|
|
7280
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
7281
|
+
"type": "boolean"
|
|
7282
|
+
},
|
|
7283
|
+
"allow_empty": {
|
|
7284
|
+
"default": true,
|
|
7285
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7286
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7287
|
+
"type": "boolean"
|
|
7288
|
+
},
|
|
7271
7289
|
"disable_add": {
|
|
7272
7290
|
"default": false,
|
|
7273
|
-
"description": "Hides the add button, and context menu actions on each
|
|
7274
|
-
"markdownDescription": "Hides the add button, and context menu actions on each
|
|
7291
|
+
"description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7292
|
+
"markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7275
7293
|
"type": "boolean"
|
|
7276
7294
|
},
|
|
7277
7295
|
"disable_remove": {
|
|
7278
7296
|
"default": false,
|
|
7279
|
-
"description": "Hides the context menu actions on each
|
|
7280
|
-
"markdownDescription": "Hides the context menu actions on each
|
|
7297
|
+
"description": "Hides the context menu actions on each item for removing them.",
|
|
7298
|
+
"markdownDescription": "Hides the context menu actions on each item for removing them.",
|
|
7281
7299
|
"type": "boolean"
|
|
7282
7300
|
},
|
|
7283
7301
|
"disable_reorder": {
|
|
7284
7302
|
"default": false,
|
|
7285
|
-
"description": "Hides the controls on each
|
|
7286
|
-
"markdownDescription": "Hides the controls on each
|
|
7303
|
+
"description": "Hides the controls on each item for moving them.",
|
|
7304
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
7287
7305
|
"type": "boolean"
|
|
7288
7306
|
},
|
|
7289
7307
|
"empty_type": {
|
|
@@ -7305,6 +7323,27 @@
|
|
|
7305
7323
|
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7306
7324
|
"type": "number"
|
|
7307
7325
|
},
|
|
7326
|
+
"picker_preview": {
|
|
7327
|
+
"$ref": "#/definitions/Preview",
|
|
7328
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7329
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7330
|
+
},
|
|
7331
|
+
"picker_view": {
|
|
7332
|
+
"description": "Controls how selectable options are rendered.",
|
|
7333
|
+
"enum": [
|
|
7334
|
+
"card",
|
|
7335
|
+
"text",
|
|
7336
|
+
"gallery",
|
|
7337
|
+
"gallery-left"
|
|
7338
|
+
],
|
|
7339
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7340
|
+
"type": "string"
|
|
7341
|
+
},
|
|
7342
|
+
"preview": {
|
|
7343
|
+
"$ref": "#/definitions/Preview",
|
|
7344
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7345
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7346
|
+
},
|
|
7308
7347
|
"required": {
|
|
7309
7348
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7310
7349
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
@@ -7314,6 +7353,34 @@
|
|
|
7314
7353
|
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7315
7354
|
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7316
7355
|
"type": "string"
|
|
7356
|
+
},
|
|
7357
|
+
"value_key": {
|
|
7358
|
+
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
7359
|
+
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
7360
|
+
"type": "string"
|
|
7361
|
+
},
|
|
7362
|
+
"values": {
|
|
7363
|
+
"anyOf": [
|
|
7364
|
+
{
|
|
7365
|
+
"type": "string"
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"$ref": "#/definitions/SelectValues"
|
|
7369
|
+
}
|
|
7370
|
+
],
|
|
7371
|
+
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
7372
|
+
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
7373
|
+
},
|
|
7374
|
+
"view": {
|
|
7375
|
+
"description": "Controls how selected items are rendered.",
|
|
7376
|
+
"enum": [
|
|
7377
|
+
"card",
|
|
7378
|
+
"text",
|
|
7379
|
+
"gallery",
|
|
7380
|
+
"gallery-left"
|
|
7381
|
+
],
|
|
7382
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7383
|
+
"type": "string"
|
|
7317
7384
|
}
|
|
7318
7385
|
},
|
|
7319
7386
|
"type": "object"
|
|
@@ -8720,162 +8787,165 @@
|
|
|
8720
8787
|
"type": "string"
|
|
8721
8788
|
},
|
|
8722
8789
|
"options": {
|
|
8723
|
-
"
|
|
8790
|
+
"$ref": "#/definitions/SelectInputOptions",
|
|
8724
8791
|
"description": "Options that are specific to Select Inputs.",
|
|
8725
|
-
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8792
|
+
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8793
|
+
},
|
|
8794
|
+
"type": {
|
|
8795
|
+
"const": "select",
|
|
8796
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
8797
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
8798
|
+
"type": "string"
|
|
8799
|
+
}
|
|
8800
|
+
},
|
|
8801
|
+
"required": [
|
|
8802
|
+
"type"
|
|
8803
|
+
],
|
|
8804
|
+
"type": "object"
|
|
8805
|
+
},
|
|
8806
|
+
"SelectInputOptions": {
|
|
8807
|
+
"additionalProperties": false,
|
|
8808
|
+
"properties": {
|
|
8809
|
+
"allow_create": {
|
|
8810
|
+
"default": false,
|
|
8811
|
+
"description": "Allows new text values to be created at edit time.",
|
|
8812
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
8813
|
+
"type": "boolean"
|
|
8814
|
+
},
|
|
8815
|
+
"allow_empty": {
|
|
8816
|
+
"default": true,
|
|
8817
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
8818
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
8819
|
+
"type": "boolean"
|
|
8820
|
+
},
|
|
8821
|
+
"empty_type": {
|
|
8822
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8823
|
+
"enum": [
|
|
8824
|
+
"null",
|
|
8825
|
+
"string"
|
|
8826
|
+
],
|
|
8827
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8828
|
+
"type": "string"
|
|
8829
|
+
},
|
|
8830
|
+
"max_length": {
|
|
8831
|
+
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8832
|
+
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8833
|
+
"type": "number"
|
|
8834
|
+
},
|
|
8835
|
+
"min_length": {
|
|
8836
|
+
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8837
|
+
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8838
|
+
"type": "number"
|
|
8839
|
+
},
|
|
8840
|
+
"pattern": {
|
|
8841
|
+
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8842
|
+
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8843
|
+
"type": "string"
|
|
8844
|
+
},
|
|
8845
|
+
"pattern_flags": {
|
|
8846
|
+
"additionalProperties": false,
|
|
8847
|
+
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8848
|
+
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8726
8849
|
"properties": {
|
|
8727
|
-
"
|
|
8850
|
+
"dot_all": {
|
|
8728
8851
|
"default": false,
|
|
8729
|
-
"description": "
|
|
8730
|
-
"markdownDescription": "
|
|
8852
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8853
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8731
8854
|
"type": "boolean"
|
|
8732
8855
|
},
|
|
8733
|
-
"
|
|
8734
|
-
"default":
|
|
8735
|
-
"description": "
|
|
8736
|
-
"markdownDescription": "
|
|
8856
|
+
"global": {
|
|
8857
|
+
"default": false,
|
|
8858
|
+
"description": "`g` - Search globally.",
|
|
8859
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8737
8860
|
"type": "boolean"
|
|
8738
8861
|
},
|
|
8739
|
-
"
|
|
8740
|
-
"
|
|
8741
|
-
"
|
|
8742
|
-
|
|
8743
|
-
"string"
|
|
8744
|
-
],
|
|
8745
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8746
|
-
"type": "string"
|
|
8747
|
-
},
|
|
8748
|
-
"max_length": {
|
|
8749
|
-
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8750
|
-
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8751
|
-
"type": "number"
|
|
8752
|
-
},
|
|
8753
|
-
"min_length": {
|
|
8754
|
-
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8755
|
-
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8756
|
-
"type": "number"
|
|
8757
|
-
},
|
|
8758
|
-
"pattern": {
|
|
8759
|
-
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8760
|
-
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8761
|
-
"type": "string"
|
|
8762
|
-
},
|
|
8763
|
-
"pattern_flags": {
|
|
8764
|
-
"additionalProperties": false,
|
|
8765
|
-
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8766
|
-
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8767
|
-
"properties": {
|
|
8768
|
-
"dot_all": {
|
|
8769
|
-
"default": false,
|
|
8770
|
-
"description": "`s` - `.` matches newline characters.",
|
|
8771
|
-
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8772
|
-
"type": "boolean"
|
|
8773
|
-
},
|
|
8774
|
-
"global": {
|
|
8775
|
-
"default": false,
|
|
8776
|
-
"description": "`g` - Search globally.",
|
|
8777
|
-
"markdownDescription": "`g` - Search globally.",
|
|
8778
|
-
"type": "boolean"
|
|
8779
|
-
},
|
|
8780
|
-
"ignore_case": {
|
|
8781
|
-
"default": false,
|
|
8782
|
-
"description": "`i` - Case-insensitive.",
|
|
8783
|
-
"markdownDescription": "`i` - Case-insensitive.",
|
|
8784
|
-
"type": "boolean"
|
|
8785
|
-
},
|
|
8786
|
-
"multiline": {
|
|
8787
|
-
"default": false,
|
|
8788
|
-
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8789
|
-
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8790
|
-
"type": "boolean"
|
|
8791
|
-
},
|
|
8792
|
-
"unicode": {
|
|
8793
|
-
"default": false,
|
|
8794
|
-
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8795
|
-
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8796
|
-
"type": "boolean"
|
|
8797
|
-
},
|
|
8798
|
-
"unicode_sets": {
|
|
8799
|
-
"default": false,
|
|
8800
|
-
"description": "`v` - Extended `unicode` mode.",
|
|
8801
|
-
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8802
|
-
"type": "boolean"
|
|
8803
|
-
}
|
|
8804
|
-
},
|
|
8805
|
-
"type": "object"
|
|
8806
|
-
},
|
|
8807
|
-
"pattern_message": {
|
|
8808
|
-
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8809
|
-
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8810
|
-
"type": "string"
|
|
8811
|
-
},
|
|
8812
|
-
"picker_preview": {
|
|
8813
|
-
"$ref": "#/definitions/Preview",
|
|
8814
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8815
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8816
|
-
},
|
|
8817
|
-
"picker_view": {
|
|
8818
|
-
"description": "Controls how selectable options are rendered.",
|
|
8819
|
-
"enum": [
|
|
8820
|
-
"card",
|
|
8821
|
-
"text",
|
|
8822
|
-
"gallery",
|
|
8823
|
-
"gallery-left"
|
|
8824
|
-
],
|
|
8825
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8826
|
-
"type": "string"
|
|
8827
|
-
},
|
|
8828
|
-
"preview": {
|
|
8829
|
-
"$ref": "#/definitions/Preview",
|
|
8830
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
8831
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8832
|
-
},
|
|
8833
|
-
"required": {
|
|
8834
|
-
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8835
|
-
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8862
|
+
"ignore_case": {
|
|
8863
|
+
"default": false,
|
|
8864
|
+
"description": "`i` - Case-insensitive.",
|
|
8865
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8836
8866
|
"type": "boolean"
|
|
8837
8867
|
},
|
|
8838
|
-
"
|
|
8839
|
-
"
|
|
8840
|
-
"
|
|
8841
|
-
"
|
|
8868
|
+
"multiline": {
|
|
8869
|
+
"default": false,
|
|
8870
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8871
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8872
|
+
"type": "boolean"
|
|
8842
8873
|
},
|
|
8843
|
-
"
|
|
8844
|
-
"
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
{
|
|
8849
|
-
"$ref": "#/definitions/SelectValues"
|
|
8850
|
-
}
|
|
8851
|
-
],
|
|
8852
|
-
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
8853
|
-
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
8874
|
+
"unicode": {
|
|
8875
|
+
"default": false,
|
|
8876
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8877
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8878
|
+
"type": "boolean"
|
|
8854
8879
|
},
|
|
8855
|
-
"
|
|
8856
|
-
"
|
|
8857
|
-
"
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
"gallery",
|
|
8861
|
-
"gallery-left"
|
|
8862
|
-
],
|
|
8863
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
8864
|
-
"type": "string"
|
|
8880
|
+
"unicode_sets": {
|
|
8881
|
+
"default": false,
|
|
8882
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8883
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8884
|
+
"type": "boolean"
|
|
8865
8885
|
}
|
|
8866
8886
|
},
|
|
8867
8887
|
"type": "object"
|
|
8868
8888
|
},
|
|
8869
|
-
"
|
|
8870
|
-
"
|
|
8871
|
-
"
|
|
8872
|
-
"
|
|
8889
|
+
"pattern_message": {
|
|
8890
|
+
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8891
|
+
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8892
|
+
"type": "string"
|
|
8893
|
+
},
|
|
8894
|
+
"picker_preview": {
|
|
8895
|
+
"$ref": "#/definitions/Preview",
|
|
8896
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8897
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8898
|
+
},
|
|
8899
|
+
"picker_view": {
|
|
8900
|
+
"description": "Controls how selectable options are rendered.",
|
|
8901
|
+
"enum": [
|
|
8902
|
+
"card",
|
|
8903
|
+
"text",
|
|
8904
|
+
"gallery",
|
|
8905
|
+
"gallery-left"
|
|
8906
|
+
],
|
|
8907
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8908
|
+
"type": "string"
|
|
8909
|
+
},
|
|
8910
|
+
"preview": {
|
|
8911
|
+
"$ref": "#/definitions/Preview",
|
|
8912
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
8913
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8914
|
+
},
|
|
8915
|
+
"required": {
|
|
8916
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8917
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8918
|
+
"type": "boolean"
|
|
8919
|
+
},
|
|
8920
|
+
"value_key": {
|
|
8921
|
+
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
8922
|
+
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
8923
|
+
"type": "string"
|
|
8924
|
+
},
|
|
8925
|
+
"values": {
|
|
8926
|
+
"anyOf": [
|
|
8927
|
+
{
|
|
8928
|
+
"type": "string"
|
|
8929
|
+
},
|
|
8930
|
+
{
|
|
8931
|
+
"$ref": "#/definitions/SelectValues"
|
|
8932
|
+
}
|
|
8933
|
+
],
|
|
8934
|
+
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
8935
|
+
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
8936
|
+
},
|
|
8937
|
+
"view": {
|
|
8938
|
+
"description": "Controls how selected items are rendered.",
|
|
8939
|
+
"enum": [
|
|
8940
|
+
"card",
|
|
8941
|
+
"text",
|
|
8942
|
+
"gallery",
|
|
8943
|
+
"gallery-left"
|
|
8944
|
+
],
|
|
8945
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
8873
8946
|
"type": "string"
|
|
8874
8947
|
}
|
|
8875
8948
|
},
|
|
8876
|
-
"required": [
|
|
8877
|
-
"type"
|
|
8878
|
-
],
|
|
8879
8949
|
"type": "object"
|
|
8880
8950
|
},
|
|
8881
8951
|
"SelectValues": {
|