@cloudcannon/configuration-types 0.0.28 → 0.0.32
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 +1034 -366
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +1034 -366
- package/dist/cloudcannon-config.legacy-hugo.schema.json +1034 -366
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +1034 -366
- package/dist/cloudcannon-config.legacy-reader.schema.json +1034 -366
- package/package.json +2 -2
- package/src/inputs.d.ts +350 -74
- package/src/javascript-api.d.ts +34 -10
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
},
|
|
127
127
|
"options": {
|
|
128
128
|
"$ref": "#/definitions/ArrayInputOptions",
|
|
129
|
-
"description": "Options that are specific to
|
|
130
|
-
"markdownDescription": "Options that are specific to
|
|
129
|
+
"description": "Options that are specific to Array Inputs.",
|
|
130
|
+
"markdownDescription": "Options that are specific to Array Inputs."
|
|
131
131
|
},
|
|
132
132
|
"type": {
|
|
133
133
|
"const": "array",
|
|
@@ -144,6 +144,24 @@
|
|
|
144
144
|
"ArrayInputOptions": {
|
|
145
145
|
"additionalProperties": false,
|
|
146
146
|
"properties": {
|
|
147
|
+
"disable_add": {
|
|
148
|
+
"default": false,
|
|
149
|
+
"description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
|
|
150
|
+
"markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
|
|
151
|
+
"type": "boolean"
|
|
152
|
+
},
|
|
153
|
+
"disable_remove": {
|
|
154
|
+
"default": false,
|
|
155
|
+
"description": "Hides the context menu actions on each array item for removing them.",
|
|
156
|
+
"markdownDescription": "Hides the context menu actions on each array item for removing them.",
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"disable_reorder": {
|
|
160
|
+
"default": false,
|
|
161
|
+
"description": "Hides the controls on each array item for moving them.",
|
|
162
|
+
"markdownDescription": "Hides the controls on each array item for moving them.",
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
},
|
|
147
165
|
"empty_type": {
|
|
148
166
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
149
167
|
"enum": [
|
|
@@ -153,6 +171,21 @@
|
|
|
153
171
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
154
172
|
"type": "string"
|
|
155
173
|
},
|
|
174
|
+
"max_items": {
|
|
175
|
+
"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.",
|
|
176
|
+
"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.",
|
|
177
|
+
"type": "number"
|
|
178
|
+
},
|
|
179
|
+
"min_items": {
|
|
180
|
+
"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.",
|
|
181
|
+
"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.",
|
|
182
|
+
"type": "number"
|
|
183
|
+
},
|
|
184
|
+
"required": {
|
|
185
|
+
"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).",
|
|
186
|
+
"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).",
|
|
187
|
+
"type": "boolean"
|
|
188
|
+
},
|
|
156
189
|
"structures": {
|
|
157
190
|
"anyOf": [
|
|
158
191
|
{
|
|
@@ -164,6 +197,11 @@
|
|
|
164
197
|
],
|
|
165
198
|
"description": "Provides data formats for value of this object. When choosing an item, team members are prompted to choose from a number of values you have defined.",
|
|
166
199
|
"markdownDescription": "Provides data formats for value of this object. When choosing an item, team members are\nprompted to choose from a number of values you have defined."
|
|
200
|
+
},
|
|
201
|
+
"unique_on": {
|
|
202
|
+
"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.",
|
|
203
|
+
"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.",
|
|
204
|
+
"type": "string"
|
|
167
205
|
}
|
|
168
206
|
},
|
|
169
207
|
"type": "object"
|
|
@@ -993,8 +1031,8 @@
|
|
|
993
1031
|
},
|
|
994
1032
|
"options": {
|
|
995
1033
|
"additionalProperties": false,
|
|
996
|
-
"description": "Options that are specific to
|
|
997
|
-
"markdownDescription": "Options that are specific to
|
|
1034
|
+
"description": "Options that are specific to Choice Inputs.",
|
|
1035
|
+
"markdownDescription": "Options that are specific to Choice Inputs.",
|
|
998
1036
|
"properties": {
|
|
999
1037
|
"allow_empty": {
|
|
1000
1038
|
"default": true,
|
|
@@ -1011,6 +1049,70 @@
|
|
|
1011
1049
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1012
1050
|
"type": "string"
|
|
1013
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
|
+
},
|
|
1014
1116
|
"picker_preview": {
|
|
1015
1117
|
"$ref": "#/definitions/Preview",
|
|
1016
1118
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -1032,6 +1134,11 @@
|
|
|
1032
1134
|
"description": "Changes the way items are previewed in the CMS.",
|
|
1033
1135
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
1034
1136
|
},
|
|
1137
|
+
"required": {
|
|
1138
|
+
"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).",
|
|
1139
|
+
"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).",
|
|
1140
|
+
"type": "boolean"
|
|
1141
|
+
},
|
|
1035
1142
|
"value_key": {
|
|
1036
1143
|
"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.",
|
|
1037
1144
|
"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.",
|
|
@@ -1157,8 +1264,8 @@
|
|
|
1157
1264
|
},
|
|
1158
1265
|
"options": {
|
|
1159
1266
|
"$ref": "#/definitions/CodeInputOptions",
|
|
1160
|
-
"description": "Options that are specific to
|
|
1161
|
-
"markdownDescription": "Options that are specific to
|
|
1267
|
+
"description": "Options that are specific to Code Inputs.",
|
|
1268
|
+
"markdownDescription": "Options that are specific to Code Inputs."
|
|
1162
1269
|
},
|
|
1163
1270
|
"type": {
|
|
1164
1271
|
"const": "code",
|
|
@@ -1184,18 +1291,87 @@
|
|
|
1184
1291
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1185
1292
|
"type": "string"
|
|
1186
1293
|
},
|
|
1294
|
+
"max_length": {
|
|
1295
|
+
"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.",
|
|
1296
|
+
"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.",
|
|
1297
|
+
"type": "number"
|
|
1298
|
+
},
|
|
1187
1299
|
"max_visible_lines": {
|
|
1188
1300
|
"default": 30,
|
|
1189
1301
|
"description": "Sets the maximum number of visible lines for this input, effectively controlling maximum height. When the containing text exceeds this number, the input becomes a scroll area.",
|
|
1190
1302
|
"markdownDescription": "Sets the maximum number of visible lines for this input, effectively controlling maximum\nheight. When the containing text exceeds this number, the input becomes a scroll area.",
|
|
1191
1303
|
"type": "number"
|
|
1192
1304
|
},
|
|
1305
|
+
"min_length": {
|
|
1306
|
+
"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.",
|
|
1307
|
+
"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.",
|
|
1308
|
+
"type": "number"
|
|
1309
|
+
},
|
|
1193
1310
|
"min_visible_lines": {
|
|
1194
1311
|
"default": 10,
|
|
1195
1312
|
"description": "Sets the minimum number of visible lines for this input, effectively controlling initial height. When the containing text exceeds this number, the input grows line by line to the lines defined by `max_visible_lines`.",
|
|
1196
1313
|
"markdownDescription": "Sets the minimum number of visible lines for this input, effectively controlling initial\nheight. When the containing text exceeds this number, the input grows line by line to the lines\ndefined by `max_visible_lines`.",
|
|
1197
1314
|
"type": "number"
|
|
1198
1315
|
},
|
|
1316
|
+
"pattern": {
|
|
1317
|
+
"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.",
|
|
1318
|
+
"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.",
|
|
1319
|
+
"type": "string"
|
|
1320
|
+
},
|
|
1321
|
+
"pattern_flags": {
|
|
1322
|
+
"additionalProperties": false,
|
|
1323
|
+
"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.",
|
|
1324
|
+
"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.",
|
|
1325
|
+
"properties": {
|
|
1326
|
+
"dot_all": {
|
|
1327
|
+
"default": false,
|
|
1328
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1329
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1330
|
+
"type": "boolean"
|
|
1331
|
+
},
|
|
1332
|
+
"global": {
|
|
1333
|
+
"default": false,
|
|
1334
|
+
"description": "`g` - Search globally.",
|
|
1335
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1336
|
+
"type": "boolean"
|
|
1337
|
+
},
|
|
1338
|
+
"ignore_case": {
|
|
1339
|
+
"default": false,
|
|
1340
|
+
"description": "`i` - Case-insensitive.",
|
|
1341
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1342
|
+
"type": "boolean"
|
|
1343
|
+
},
|
|
1344
|
+
"multiline": {
|
|
1345
|
+
"default": false,
|
|
1346
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1347
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1348
|
+
"type": "boolean"
|
|
1349
|
+
},
|
|
1350
|
+
"unicode": {
|
|
1351
|
+
"default": false,
|
|
1352
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1353
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1354
|
+
"type": "boolean"
|
|
1355
|
+
},
|
|
1356
|
+
"unicode_sets": {
|
|
1357
|
+
"default": false,
|
|
1358
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1359
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1360
|
+
"type": "boolean"
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"type": "object"
|
|
1364
|
+
},
|
|
1365
|
+
"pattern_message": {
|
|
1366
|
+
"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.",
|
|
1367
|
+
"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.",
|
|
1368
|
+
"type": "string"
|
|
1369
|
+
},
|
|
1370
|
+
"required": {
|
|
1371
|
+
"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).",
|
|
1372
|
+
"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).",
|
|
1373
|
+
"type": "boolean"
|
|
1374
|
+
},
|
|
1199
1375
|
"show_gutter": {
|
|
1200
1376
|
"default": true,
|
|
1201
1377
|
"description": "This key toggles the gutter on the left of the editing interface, displaying line numbers and code folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
|
|
@@ -1333,8 +1509,8 @@
|
|
|
1333
1509
|
},
|
|
1334
1510
|
"options": {
|
|
1335
1511
|
"$ref": "#/definitions/ColorInputOptions",
|
|
1336
|
-
"description": "Options that are specific to
|
|
1337
|
-
"markdownDescription": "Options that are specific to
|
|
1512
|
+
"description": "Options that are specific to Color Inputs.",
|
|
1513
|
+
"markdownDescription": "Options that are specific to Color Inputs."
|
|
1338
1514
|
},
|
|
1339
1515
|
"type": {
|
|
1340
1516
|
"const": "color",
|
|
@@ -1375,6 +1551,75 @@
|
|
|
1375
1551
|
],
|
|
1376
1552
|
"markdownDescription": "Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that\nis unset.",
|
|
1377
1553
|
"type": "string"
|
|
1554
|
+
},
|
|
1555
|
+
"max_length": {
|
|
1556
|
+
"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.",
|
|
1557
|
+
"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.",
|
|
1558
|
+
"type": "number"
|
|
1559
|
+
},
|
|
1560
|
+
"min_length": {
|
|
1561
|
+
"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.",
|
|
1562
|
+
"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.",
|
|
1563
|
+
"type": "number"
|
|
1564
|
+
},
|
|
1565
|
+
"pattern": {
|
|
1566
|
+
"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.",
|
|
1567
|
+
"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.",
|
|
1568
|
+
"type": "string"
|
|
1569
|
+
},
|
|
1570
|
+
"pattern_flags": {
|
|
1571
|
+
"additionalProperties": false,
|
|
1572
|
+
"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.",
|
|
1573
|
+
"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.",
|
|
1574
|
+
"properties": {
|
|
1575
|
+
"dot_all": {
|
|
1576
|
+
"default": false,
|
|
1577
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1578
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1579
|
+
"type": "boolean"
|
|
1580
|
+
},
|
|
1581
|
+
"global": {
|
|
1582
|
+
"default": false,
|
|
1583
|
+
"description": "`g` - Search globally.",
|
|
1584
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1585
|
+
"type": "boolean"
|
|
1586
|
+
},
|
|
1587
|
+
"ignore_case": {
|
|
1588
|
+
"default": false,
|
|
1589
|
+
"description": "`i` - Case-insensitive.",
|
|
1590
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1591
|
+
"type": "boolean"
|
|
1592
|
+
},
|
|
1593
|
+
"multiline": {
|
|
1594
|
+
"default": false,
|
|
1595
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1596
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1597
|
+
"type": "boolean"
|
|
1598
|
+
},
|
|
1599
|
+
"unicode": {
|
|
1600
|
+
"default": false,
|
|
1601
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1602
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1603
|
+
"type": "boolean"
|
|
1604
|
+
},
|
|
1605
|
+
"unicode_sets": {
|
|
1606
|
+
"default": false,
|
|
1607
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1608
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1609
|
+
"type": "boolean"
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
"type": "object"
|
|
1613
|
+
},
|
|
1614
|
+
"pattern_message": {
|
|
1615
|
+
"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.",
|
|
1616
|
+
"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.",
|
|
1617
|
+
"type": "string"
|
|
1618
|
+
},
|
|
1619
|
+
"required": {
|
|
1620
|
+
"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).",
|
|
1621
|
+
"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).",
|
|
1622
|
+
"type": "boolean"
|
|
1378
1623
|
}
|
|
1379
1624
|
},
|
|
1380
1625
|
"type": "object"
|
|
@@ -1581,6 +1826,18 @@
|
|
|
1581
1826
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1582
1827
|
"type": "string"
|
|
1583
1828
|
},
|
|
1829
|
+
"end_before": {
|
|
1830
|
+
"description": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting a later date and time. If the Input already contains a later date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be an earlier date and time.\n\nThis key has no default.",
|
|
1831
|
+
"format": "date-time",
|
|
1832
|
+
"markdownDescription": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from selecting a later date and time. If the Input\nalready contains a later date and time, CloudCannon will require you to change it to a valid\nvalue to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be\nan earlier date and time.\n\nThis key has no default.",
|
|
1833
|
+
"type": "string"
|
|
1834
|
+
},
|
|
1835
|
+
"start_from": {
|
|
1836
|
+
"description": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting an earlier date and time. If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be a later date and time.\n\nThis key has no default.",
|
|
1837
|
+
"format": "date-time",
|
|
1838
|
+
"markdownDescription": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an\nInput. When configured, CloudCannon will prevent you from selecting an earlier date and time.\nIf the Input already contains an earlier date and time, CloudCannon will require you to change\nit to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be\na later date and time.\n\nThis key has no default.",
|
|
1839
|
+
"type": "string"
|
|
1840
|
+
},
|
|
1584
1841
|
"timezone": {
|
|
1585
1842
|
"$ref": "#/definitions/Timezone",
|
|
1586
1843
|
"default": "Etc/UTC",
|
|
@@ -1813,14 +2070,15 @@
|
|
|
1813
2070
|
},
|
|
1814
2071
|
"options": {
|
|
1815
2072
|
"$ref": "#/definitions/FileInputOptions",
|
|
1816
|
-
"description": "Options that are specific to File inputs.",
|
|
1817
|
-
"markdownDescription": "Options that are specific to File inputs."
|
|
2073
|
+
"description": "Options that are specific to File, Image and Document inputs.",
|
|
2074
|
+
"markdownDescription": "Options that are specific to File, Image and Document inputs."
|
|
1818
2075
|
},
|
|
1819
2076
|
"type": {
|
|
1820
2077
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
1821
2078
|
"enum": [
|
|
1822
2079
|
"file",
|
|
1823
|
-
"document"
|
|
2080
|
+
"document",
|
|
2081
|
+
"image"
|
|
1824
2082
|
],
|
|
1825
2083
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
1826
2084
|
"type": "string"
|
|
@@ -1857,6 +2115,24 @@
|
|
|
1857
2115
|
"markdownDescription": "If you have one or more DAMs connected to your site, you can use this key to list which asset\nsources can be uploaded to and selected from.",
|
|
1858
2116
|
"type": "array"
|
|
1859
2117
|
},
|
|
2118
|
+
"disable_direct_input": {
|
|
2119
|
+
"default": false,
|
|
2120
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
2121
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
2122
|
+
"type": "boolean"
|
|
2123
|
+
},
|
|
2124
|
+
"disable_upload_file": {
|
|
2125
|
+
"default": false,
|
|
2126
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
2127
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
2128
|
+
"type": "boolean"
|
|
2129
|
+
},
|
|
2130
|
+
"disable_upload_file_in_file_browser": {
|
|
2131
|
+
"default": false,
|
|
2132
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
2133
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
2134
|
+
"type": "boolean"
|
|
2135
|
+
},
|
|
1860
2136
|
"empty_type": {
|
|
1861
2137
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1862
2138
|
"enum": [
|
|
@@ -1866,10 +2142,153 @@
|
|
|
1866
2142
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1867
2143
|
"type": "string"
|
|
1868
2144
|
},
|
|
2145
|
+
"expandable": {
|
|
2146
|
+
"default": false,
|
|
2147
|
+
"description": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to upload. Has no effect if files are not resized.",
|
|
2148
|
+
"markdownDescription": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to\nupload. Has no effect if files are not resized.",
|
|
2149
|
+
"type": "boolean"
|
|
2150
|
+
},
|
|
2151
|
+
"height": {
|
|
2152
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
2153
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
2154
|
+
"type": "number"
|
|
2155
|
+
},
|
|
2156
|
+
"image_size_attributes": {
|
|
2157
|
+
"default": true,
|
|
2158
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
2159
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
2160
|
+
"type": "boolean"
|
|
2161
|
+
},
|
|
2162
|
+
"max_length": {
|
|
2163
|
+
"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.",
|
|
2164
|
+
"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.",
|
|
2165
|
+
"type": "number"
|
|
2166
|
+
},
|
|
2167
|
+
"mime_type": {
|
|
2168
|
+
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
2169
|
+
"enum": [
|
|
2170
|
+
"image/jpeg",
|
|
2171
|
+
"image/png",
|
|
2172
|
+
"image/webp"
|
|
2173
|
+
],
|
|
2174
|
+
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
2175
|
+
"type": "string"
|
|
2176
|
+
},
|
|
2177
|
+
"min_length": {
|
|
2178
|
+
"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.",
|
|
2179
|
+
"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.",
|
|
2180
|
+
"type": "number"
|
|
2181
|
+
},
|
|
1869
2182
|
"paths": {
|
|
1870
2183
|
"$ref": "#/definitions/Paths",
|
|
1871
2184
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
1872
2185
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
2186
|
+
},
|
|
2187
|
+
"pattern": {
|
|
2188
|
+
"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.",
|
|
2189
|
+
"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.",
|
|
2190
|
+
"type": "string"
|
|
2191
|
+
},
|
|
2192
|
+
"pattern_flags": {
|
|
2193
|
+
"additionalProperties": false,
|
|
2194
|
+
"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.",
|
|
2195
|
+
"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.",
|
|
2196
|
+
"properties": {
|
|
2197
|
+
"dot_all": {
|
|
2198
|
+
"default": false,
|
|
2199
|
+
"description": "`s` - `.` matches newline characters.",
|
|
2200
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
2201
|
+
"type": "boolean"
|
|
2202
|
+
},
|
|
2203
|
+
"global": {
|
|
2204
|
+
"default": false,
|
|
2205
|
+
"description": "`g` - Search globally.",
|
|
2206
|
+
"markdownDescription": "`g` - Search globally.",
|
|
2207
|
+
"type": "boolean"
|
|
2208
|
+
},
|
|
2209
|
+
"ignore_case": {
|
|
2210
|
+
"default": false,
|
|
2211
|
+
"description": "`i` - Case-insensitive.",
|
|
2212
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
2213
|
+
"type": "boolean"
|
|
2214
|
+
},
|
|
2215
|
+
"multiline": {
|
|
2216
|
+
"default": false,
|
|
2217
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2218
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2219
|
+
"type": "boolean"
|
|
2220
|
+
},
|
|
2221
|
+
"unicode": {
|
|
2222
|
+
"default": false,
|
|
2223
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2224
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2225
|
+
"type": "boolean"
|
|
2226
|
+
},
|
|
2227
|
+
"unicode_sets": {
|
|
2228
|
+
"default": false,
|
|
2229
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
2230
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
2231
|
+
"type": "boolean"
|
|
2232
|
+
}
|
|
2233
|
+
},
|
|
2234
|
+
"type": "object"
|
|
2235
|
+
},
|
|
2236
|
+
"pattern_message": {
|
|
2237
|
+
"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.",
|
|
2238
|
+
"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.",
|
|
2239
|
+
"type": "string"
|
|
2240
|
+
},
|
|
2241
|
+
"prevent_resize_existing_files": {
|
|
2242
|
+
"default": false,
|
|
2243
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
2244
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
2245
|
+
"type": "boolean"
|
|
2246
|
+
},
|
|
2247
|
+
"required": {
|
|
2248
|
+
"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).",
|
|
2249
|
+
"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).",
|
|
2250
|
+
"type": "boolean"
|
|
2251
|
+
},
|
|
2252
|
+
"resize_style": {
|
|
2253
|
+
"default": "contain",
|
|
2254
|
+
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
2255
|
+
"enum": [
|
|
2256
|
+
"cover",
|
|
2257
|
+
"contain",
|
|
2258
|
+
"stretch",
|
|
2259
|
+
"crop"
|
|
2260
|
+
],
|
|
2261
|
+
"markdownDescription": "Sets how uploaded image files are resized with a bounding box defined by width and height prior\nto upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
2262
|
+
"type": "string"
|
|
2263
|
+
},
|
|
2264
|
+
"sizes": {
|
|
2265
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
2266
|
+
"items": {
|
|
2267
|
+
"additionalProperties": false,
|
|
2268
|
+
"properties": {
|
|
2269
|
+
"size": {
|
|
2270
|
+
"description": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).",
|
|
2271
|
+
"markdownDescription": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of\nthe image (e.g. 2x, 3x, 100w, 360w).",
|
|
2272
|
+
"type": "string"
|
|
2273
|
+
},
|
|
2274
|
+
"target": {
|
|
2275
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
2276
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
2277
|
+
"type": "string"
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
"required": [
|
|
2281
|
+
"size"
|
|
2282
|
+
],
|
|
2283
|
+
"type": "object"
|
|
2284
|
+
},
|
|
2285
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
2286
|
+
"type": "array"
|
|
2287
|
+
},
|
|
2288
|
+
"width": {
|
|
2289
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
2290
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
2291
|
+
"type": "number"
|
|
1873
2292
|
}
|
|
1874
2293
|
},
|
|
1875
2294
|
"type": "object"
|
|
@@ -5616,224 +6035,10 @@
|
|
|
5616
6035
|
},
|
|
5617
6036
|
"type": "object"
|
|
5618
6037
|
},
|
|
5619
|
-
"
|
|
5620
|
-
"
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
5624
|
-
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
5625
|
-
"type": "boolean"
|
|
5626
|
-
},
|
|
5627
|
-
"comment": {
|
|
5628
|
-
"description": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown: links, bold, italic, subscript, superscript, and inline code elements are allowed.",
|
|
5629
|
-
"markdownDescription": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown:\nlinks, bold, italic, subscript, superscript, and inline code elements are allowed.",
|
|
5630
|
-
"type": "string"
|
|
5631
|
-
},
|
|
5632
|
-
"context": {
|
|
5633
|
-
"additionalProperties": false,
|
|
5634
|
-
"description": "Adds an expandable section of rich text below the input.",
|
|
5635
|
-
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
5636
|
-
"properties": {
|
|
5637
|
-
"content": {
|
|
5638
|
-
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5639
|
-
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5640
|
-
"type": "string"
|
|
5641
|
-
},
|
|
5642
|
-
"icon": {
|
|
5643
|
-
"$ref": "#/definitions/Icon",
|
|
5644
|
-
"description": "The icon shown when not open.",
|
|
5645
|
-
"markdownDescription": "The icon shown when not open."
|
|
5646
|
-
},
|
|
5647
|
-
"open": {
|
|
5648
|
-
"description": "Makes the content visible initially.",
|
|
5649
|
-
"markdownDescription": "Makes the content visible initially.",
|
|
5650
|
-
"type": "boolean"
|
|
5651
|
-
},
|
|
5652
|
-
"title": {
|
|
5653
|
-
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5654
|
-
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5655
|
-
"type": "string"
|
|
5656
|
-
}
|
|
5657
|
-
},
|
|
5658
|
-
"type": "object"
|
|
5659
|
-
},
|
|
5660
|
-
"disable_instance_value_rehydration": {
|
|
5661
|
-
"default": false,
|
|
5662
|
-
"description": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new value when duplicated in the CMS.",
|
|
5663
|
-
"markdownDescription": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new\nvalue when duplicated in the CMS.",
|
|
5664
|
-
"type": "boolean"
|
|
5665
|
-
},
|
|
5666
|
-
"disabled": {
|
|
5667
|
-
"default": false,
|
|
5668
|
-
"description": "Toggles if this input can be edited.",
|
|
5669
|
-
"markdownDescription": "Toggles if this input can be edited.",
|
|
5670
|
-
"type": [
|
|
5671
|
-
"boolean",
|
|
5672
|
-
"string"
|
|
5673
|
-
]
|
|
5674
|
-
},
|
|
5675
|
-
"documentation": {
|
|
5676
|
-
"$ref": "#/definitions/Documentation",
|
|
5677
|
-
"description": "Provides a custom link for documentation for editors shown above input.",
|
|
5678
|
-
"markdownDescription": "Provides a custom link for documentation for editors shown above input."
|
|
5679
|
-
},
|
|
5680
|
-
"hidden": {
|
|
5681
|
-
"default": false,
|
|
5682
|
-
"description": "Toggles the visibility of this input.",
|
|
5683
|
-
"markdownDescription": "Toggles the visibility of this input.",
|
|
5684
|
-
"type": [
|
|
5685
|
-
"boolean",
|
|
5686
|
-
"string"
|
|
5687
|
-
]
|
|
5688
|
-
},
|
|
5689
|
-
"instance_value": {
|
|
5690
|
-
"$ref": "#/definitions/InstanceValue",
|
|
5691
|
-
"description": "Controls if and how the value of this input is instantiated when created. This occurs when creating files, or adding array items containing the configured input.",
|
|
5692
|
-
"markdownDescription": "Controls if and how the value of this input is instantiated when created. This occurs when\ncreating files, or adding array items containing the configured input."
|
|
5693
|
-
},
|
|
5694
|
-
"label": {
|
|
5695
|
-
"description": "Optionally changes the text above this input.",
|
|
5696
|
-
"markdownDescription": "Optionally changes the text above this input.",
|
|
5697
|
-
"type": "string"
|
|
5698
|
-
},
|
|
5699
|
-
"options": {
|
|
5700
|
-
"$ref": "#/definitions/ImageInputOptions",
|
|
5701
|
-
"description": "Options that are specific to Image inputs.",
|
|
5702
|
-
"markdownDescription": "Options that are specific to Image inputs."
|
|
5703
|
-
},
|
|
5704
|
-
"type": {
|
|
5705
|
-
"const": "image",
|
|
5706
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5707
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5708
|
-
"type": "string"
|
|
5709
|
-
}
|
|
5710
|
-
},
|
|
5711
|
-
"required": [
|
|
5712
|
-
"type"
|
|
5713
|
-
],
|
|
5714
|
-
"type": "object"
|
|
5715
|
-
},
|
|
5716
|
-
"ImageInputOptions": {
|
|
5717
|
-
"additionalProperties": false,
|
|
5718
|
-
"properties": {
|
|
5719
|
-
"accepts_mime_types": {
|
|
5720
|
-
"anyOf": [
|
|
5721
|
-
{
|
|
5722
|
-
"items": {
|
|
5723
|
-
"$ref": "#/definitions/MimeType"
|
|
5724
|
-
},
|
|
5725
|
-
"type": "array"
|
|
5726
|
-
},
|
|
5727
|
-
{
|
|
5728
|
-
"type": "string"
|
|
5729
|
-
}
|
|
5730
|
-
],
|
|
5731
|
-
"description": "Restricts which file types are available to select or upload to this input. Accepted format is an array or comma-separated string of MIME types. The special value '*' means any type is accepted.",
|
|
5732
|
-
"markdownDescription": "Restricts which file types are available to select or upload to this input. Accepted format is\nan array or comma-separated string of MIME types. The special value '*' means any type is\naccepted."
|
|
5733
|
-
},
|
|
5734
|
-
"allowed_sources": {
|
|
5735
|
-
"description": "If you have one or more DAMs connected to your site, you can use this key to list which asset sources can be uploaded to and selected from.",
|
|
5736
|
-
"items": {
|
|
5737
|
-
"type": "string"
|
|
5738
|
-
},
|
|
5739
|
-
"markdownDescription": "If you have one or more DAMs connected to your site, you can use this key to list which asset\nsources can be uploaded to and selected from.",
|
|
5740
|
-
"type": "array"
|
|
5741
|
-
},
|
|
5742
|
-
"empty_type": {
|
|
5743
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5744
|
-
"enum": [
|
|
5745
|
-
"null",
|
|
5746
|
-
"string"
|
|
5747
|
-
],
|
|
5748
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5749
|
-
"type": "string"
|
|
5750
|
-
},
|
|
5751
|
-
"expandable": {
|
|
5752
|
-
"default": false,
|
|
5753
|
-
"description": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to upload. Has no effect if files are not resized.",
|
|
5754
|
-
"markdownDescription": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to\nupload. Has no effect if files are not resized.",
|
|
5755
|
-
"type": "boolean"
|
|
5756
|
-
},
|
|
5757
|
-
"height": {
|
|
5758
|
-
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
5759
|
-
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5760
|
-
"type": "number"
|
|
5761
|
-
},
|
|
5762
|
-
"image_size_attributes": {
|
|
5763
|
-
"default": true,
|
|
5764
|
-
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
5765
|
-
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
5766
|
-
"type": "boolean"
|
|
5767
|
-
},
|
|
5768
|
-
"mime_type": {
|
|
5769
|
-
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
5770
|
-
"enum": [
|
|
5771
|
-
"image/jpeg",
|
|
5772
|
-
"image/png",
|
|
5773
|
-
"image/webp"
|
|
5774
|
-
],
|
|
5775
|
-
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
5776
|
-
"type": "string"
|
|
5777
|
-
},
|
|
5778
|
-
"paths": {
|
|
5779
|
-
"$ref": "#/definitions/Paths",
|
|
5780
|
-
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
5781
|
-
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
5782
|
-
},
|
|
5783
|
-
"prevent_resize_existing_files": {
|
|
5784
|
-
"default": false,
|
|
5785
|
-
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
5786
|
-
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
5787
|
-
"type": "boolean"
|
|
5788
|
-
},
|
|
5789
|
-
"resize_style": {
|
|
5790
|
-
"default": "contain",
|
|
5791
|
-
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
5792
|
-
"enum": [
|
|
5793
|
-
"cover",
|
|
5794
|
-
"contain",
|
|
5795
|
-
"stretch",
|
|
5796
|
-
"crop"
|
|
5797
|
-
],
|
|
5798
|
-
"markdownDescription": "Sets how uploaded image files are resized with a bounding box defined by width and height prior\nto upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
5799
|
-
"type": "string"
|
|
5800
|
-
},
|
|
5801
|
-
"sizes": {
|
|
5802
|
-
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
5803
|
-
"items": {
|
|
5804
|
-
"additionalProperties": false,
|
|
5805
|
-
"properties": {
|
|
5806
|
-
"size": {
|
|
5807
|
-
"description": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).",
|
|
5808
|
-
"markdownDescription": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of\nthe image (e.g. 2x, 3x, 100w, 360w).",
|
|
5809
|
-
"type": "string"
|
|
5810
|
-
},
|
|
5811
|
-
"target": {
|
|
5812
|
-
"description": "A reference to another input that is given the path to this additional image file.",
|
|
5813
|
-
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
5814
|
-
"type": "string"
|
|
5815
|
-
}
|
|
5816
|
-
},
|
|
5817
|
-
"required": [
|
|
5818
|
-
"size"
|
|
5819
|
-
],
|
|
5820
|
-
"type": "object"
|
|
5821
|
-
},
|
|
5822
|
-
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
5823
|
-
"type": "array"
|
|
5824
|
-
},
|
|
5825
|
-
"width": {
|
|
5826
|
-
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
5827
|
-
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5828
|
-
"type": "number"
|
|
5829
|
-
}
|
|
5830
|
-
},
|
|
5831
|
-
"type": "object"
|
|
5832
|
-
},
|
|
5833
|
-
"Input": {
|
|
5834
|
-
"anyOf": [
|
|
5835
|
-
{
|
|
5836
|
-
"$ref": "#/definitions/KnownInput"
|
|
6038
|
+
"Input": {
|
|
6039
|
+
"anyOf": [
|
|
6040
|
+
{
|
|
6041
|
+
"$ref": "#/definitions/KnownInput"
|
|
5837
6042
|
},
|
|
5838
6043
|
{
|
|
5839
6044
|
"$ref": "#/definitions/UnknownInput"
|
|
@@ -5966,21 +6171,6 @@
|
|
|
5966
6171
|
"$ref": "#/definitions/RangeInput"
|
|
5967
6172
|
}
|
|
5968
6173
|
},
|
|
5969
|
-
{
|
|
5970
|
-
"if": {
|
|
5971
|
-
"properties": {
|
|
5972
|
-
"type": {
|
|
5973
|
-
"const": "url",
|
|
5974
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5975
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5976
|
-
"type": "string"
|
|
5977
|
-
}
|
|
5978
|
-
}
|
|
5979
|
-
},
|
|
5980
|
-
"then": {
|
|
5981
|
-
"$ref": "#/definitions/UrlInput"
|
|
5982
|
-
}
|
|
5983
|
-
},
|
|
5984
6174
|
{
|
|
5985
6175
|
"if": {
|
|
5986
6176
|
"properties": {
|
|
@@ -6039,7 +6229,8 @@
|
|
|
6039
6229
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6040
6230
|
"enum": [
|
|
6041
6231
|
"file",
|
|
6042
|
-
"document"
|
|
6232
|
+
"document",
|
|
6233
|
+
"image"
|
|
6043
6234
|
],
|
|
6044
6235
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6045
6236
|
"type": "string"
|
|
@@ -6054,7 +6245,7 @@
|
|
|
6054
6245
|
"if": {
|
|
6055
6246
|
"properties": {
|
|
6056
6247
|
"type": {
|
|
6057
|
-
"const": "
|
|
6248
|
+
"const": "url",
|
|
6058
6249
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6059
6250
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6060
6251
|
"type": "string"
|
|
@@ -6062,7 +6253,7 @@
|
|
|
6062
6253
|
}
|
|
6063
6254
|
},
|
|
6064
6255
|
"then": {
|
|
6065
|
-
"$ref": "#/definitions/
|
|
6256
|
+
"$ref": "#/definitions/UrlInput"
|
|
6066
6257
|
}
|
|
6067
6258
|
},
|
|
6068
6259
|
{
|
|
@@ -6189,7 +6380,6 @@
|
|
|
6189
6380
|
"switch",
|
|
6190
6381
|
"number",
|
|
6191
6382
|
"range",
|
|
6192
|
-
"url",
|
|
6193
6383
|
"html",
|
|
6194
6384
|
"markdown",
|
|
6195
6385
|
"date",
|
|
@@ -6198,6 +6388,7 @@
|
|
|
6198
6388
|
"file",
|
|
6199
6389
|
"document",
|
|
6200
6390
|
"image",
|
|
6391
|
+
"url",
|
|
6201
6392
|
"select",
|
|
6202
6393
|
"multiselect",
|
|
6203
6394
|
"choice",
|
|
@@ -6875,8 +7066,8 @@
|
|
|
6875
7066
|
},
|
|
6876
7067
|
"options": {
|
|
6877
7068
|
"additionalProperties": false,
|
|
6878
|
-
"description": "Options that are specific to
|
|
6879
|
-
"markdownDescription": "Options that are specific to
|
|
7069
|
+
"description": "Options that are specific to Multichoice Inputs.",
|
|
7070
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs.",
|
|
6880
7071
|
"properties": {
|
|
6881
7072
|
"allow_empty": {
|
|
6882
7073
|
"default": true,
|
|
@@ -6893,6 +7084,16 @@
|
|
|
6893
7084
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6894
7085
|
"type": "string"
|
|
6895
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
|
+
},
|
|
6896
7097
|
"picker_preview": {
|
|
6897
7098
|
"$ref": "#/definitions/Preview",
|
|
6898
7099
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -6914,6 +7115,16 @@
|
|
|
6914
7115
|
"description": "Changes the way items are previewed in the CMS.",
|
|
6915
7116
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6916
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
|
+
},
|
|
6917
7128
|
"value_key": {
|
|
6918
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.",
|
|
6919
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.",
|
|
@@ -7038,82 +7249,9 @@
|
|
|
7038
7249
|
"type": "string"
|
|
7039
7250
|
},
|
|
7040
7251
|
"options": {
|
|
7041
|
-
"
|
|
7042
|
-
"description": "Options that are specific to
|
|
7043
|
-
"markdownDescription": "Options that are specific to
|
|
7044
|
-
"properties": {
|
|
7045
|
-
"allow_create": {
|
|
7046
|
-
"default": false,
|
|
7047
|
-
"description": "Allows new text values to be created at edit time.",
|
|
7048
|
-
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
7049
|
-
"type": "boolean"
|
|
7050
|
-
},
|
|
7051
|
-
"allow_empty": {
|
|
7052
|
-
"default": true,
|
|
7053
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
7054
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7055
|
-
"type": "boolean"
|
|
7056
|
-
},
|
|
7057
|
-
"empty_type": {
|
|
7058
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7059
|
-
"enum": [
|
|
7060
|
-
"null",
|
|
7061
|
-
"array"
|
|
7062
|
-
],
|
|
7063
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7064
|
-
"type": "string"
|
|
7065
|
-
},
|
|
7066
|
-
"picker_preview": {
|
|
7067
|
-
"$ref": "#/definitions/Preview",
|
|
7068
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7069
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7070
|
-
},
|
|
7071
|
-
"picker_view": {
|
|
7072
|
-
"description": "Controls how selectable options are rendered.",
|
|
7073
|
-
"enum": [
|
|
7074
|
-
"card",
|
|
7075
|
-
"text",
|
|
7076
|
-
"gallery",
|
|
7077
|
-
"gallery-left"
|
|
7078
|
-
],
|
|
7079
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7080
|
-
"type": "string"
|
|
7081
|
-
},
|
|
7082
|
-
"preview": {
|
|
7083
|
-
"$ref": "#/definitions/Preview",
|
|
7084
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
7085
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7086
|
-
},
|
|
7087
|
-
"value_key": {
|
|
7088
|
-
"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.",
|
|
7089
|
-
"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.",
|
|
7090
|
-
"type": "string"
|
|
7091
|
-
},
|
|
7092
|
-
"values": {
|
|
7093
|
-
"anyOf": [
|
|
7094
|
-
{
|
|
7095
|
-
"type": "string"
|
|
7096
|
-
},
|
|
7097
|
-
{
|
|
7098
|
-
"$ref": "#/definitions/SelectValues"
|
|
7099
|
-
}
|
|
7100
|
-
],
|
|
7101
|
-
"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).",
|
|
7102
|
-
"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)."
|
|
7103
|
-
},
|
|
7104
|
-
"view": {
|
|
7105
|
-
"description": "Controls how selected items are rendered.",
|
|
7106
|
-
"enum": [
|
|
7107
|
-
"card",
|
|
7108
|
-
"text",
|
|
7109
|
-
"gallery",
|
|
7110
|
-
"gallery-left"
|
|
7111
|
-
],
|
|
7112
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
7113
|
-
"type": "string"
|
|
7114
|
-
}
|
|
7115
|
-
},
|
|
7116
|
-
"type": "object"
|
|
7252
|
+
"$ref": "#/definitions/MultiselectInputOptions",
|
|
7253
|
+
"description": "Options that are specific to Multiselect Inputs.",
|
|
7254
|
+
"markdownDescription": "Options that are specific to Multiselect Inputs."
|
|
7117
7255
|
},
|
|
7118
7256
|
"type": {
|
|
7119
7257
|
"const": "multiselect",
|
|
@@ -7127,6 +7265,59 @@
|
|
|
7127
7265
|
],
|
|
7128
7266
|
"type": "object"
|
|
7129
7267
|
},
|
|
7268
|
+
"MultiselectInputOptions": {
|
|
7269
|
+
"additionalProperties": false,
|
|
7270
|
+
"properties": {
|
|
7271
|
+
"disable_add": {
|
|
7272
|
+
"default": false,
|
|
7273
|
+
"description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
|
|
7274
|
+
"markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
|
|
7275
|
+
"type": "boolean"
|
|
7276
|
+
},
|
|
7277
|
+
"disable_remove": {
|
|
7278
|
+
"default": false,
|
|
7279
|
+
"description": "Hides the context menu actions on each array item for removing them.",
|
|
7280
|
+
"markdownDescription": "Hides the context menu actions on each array item for removing them.",
|
|
7281
|
+
"type": "boolean"
|
|
7282
|
+
},
|
|
7283
|
+
"disable_reorder": {
|
|
7284
|
+
"default": false,
|
|
7285
|
+
"description": "Hides the controls on each array item for moving them.",
|
|
7286
|
+
"markdownDescription": "Hides the controls on each array item for moving them.",
|
|
7287
|
+
"type": "boolean"
|
|
7288
|
+
},
|
|
7289
|
+
"empty_type": {
|
|
7290
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7291
|
+
"enum": [
|
|
7292
|
+
"null",
|
|
7293
|
+
"array"
|
|
7294
|
+
],
|
|
7295
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7296
|
+
"type": "string"
|
|
7297
|
+
},
|
|
7298
|
+
"max_items": {
|
|
7299
|
+
"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.",
|
|
7300
|
+
"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.",
|
|
7301
|
+
"type": "number"
|
|
7302
|
+
},
|
|
7303
|
+
"min_items": {
|
|
7304
|
+
"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.",
|
|
7305
|
+
"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
|
+
"type": "number"
|
|
7307
|
+
},
|
|
7308
|
+
"required": {
|
|
7309
|
+
"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
|
+
"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).",
|
|
7311
|
+
"type": "boolean"
|
|
7312
|
+
},
|
|
7313
|
+
"unique_on": {
|
|
7314
|
+
"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
|
+
"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
|
+
"type": "string"
|
|
7317
|
+
}
|
|
7318
|
+
},
|
|
7319
|
+
"type": "object"
|
|
7320
|
+
},
|
|
7130
7321
|
"NumberInput": {
|
|
7131
7322
|
"additionalProperties": false,
|
|
7132
7323
|
"properties": {
|
|
@@ -7209,8 +7400,8 @@
|
|
|
7209
7400
|
},
|
|
7210
7401
|
"options": {
|
|
7211
7402
|
"$ref": "#/definitions/NumberInputOptions",
|
|
7212
|
-
"description": "Options that are specific to this
|
|
7213
|
-
"markdownDescription": "Options that are specific to this
|
|
7403
|
+
"description": "Options that are specific to this Number Inputs.",
|
|
7404
|
+
"markdownDescription": "Options that are specific to this Number Inputs."
|
|
7214
7405
|
},
|
|
7215
7406
|
"type": {
|
|
7216
7407
|
"const": "number",
|
|
@@ -7237,15 +7428,20 @@
|
|
|
7237
7428
|
"type": "string"
|
|
7238
7429
|
},
|
|
7239
7430
|
"max": {
|
|
7240
|
-
"description": "
|
|
7241
|
-
"markdownDescription": "
|
|
7431
|
+
"description": "This key defines the maximum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a greater numerical value. If the Input already contains a greater numerical value, CloudCannon will require you to enter a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
|
|
7432
|
+
"markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.\n\nThis key has no default.",
|
|
7242
7433
|
"type": "number"
|
|
7243
7434
|
},
|
|
7244
7435
|
"min": {
|
|
7245
|
-
"description": "
|
|
7246
|
-
"markdownDescription": "
|
|
7436
|
+
"description": "This key defines the minimum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a lesser numerical value. If the Input already contains a lesser numerical value, CloudCannon will require you to enter a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
7437
|
+
"markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.\n\nThis key has no default.",
|
|
7247
7438
|
"type": "number"
|
|
7248
7439
|
},
|
|
7440
|
+
"required": {
|
|
7441
|
+
"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).",
|
|
7442
|
+
"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).",
|
|
7443
|
+
"type": "boolean"
|
|
7444
|
+
},
|
|
7249
7445
|
"step": {
|
|
7250
7446
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
7251
7447
|
"markdownDescription": "A number that specifies the granularity that the value must adhere to, or the special value\nany, which allows any decimal value between `max` and `min`.",
|
|
@@ -7336,8 +7532,8 @@
|
|
|
7336
7532
|
},
|
|
7337
7533
|
"options": {
|
|
7338
7534
|
"$ref": "#/definitions/ObjectInputOptions",
|
|
7339
|
-
"description": "Options that are specific to
|
|
7340
|
-
"markdownDescription": "Options that are specific to
|
|
7535
|
+
"description": "Options that are specific to Object Inputs.",
|
|
7536
|
+
"markdownDescription": "Options that are specific to Object Inputs."
|
|
7341
7537
|
},
|
|
7342
7538
|
"type": {
|
|
7343
7539
|
"const": "object",
|
|
@@ -7462,6 +7658,11 @@
|
|
|
7462
7658
|
"description": "Changes the way items are previewed in the CMS.",
|
|
7463
7659
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7464
7660
|
},
|
|
7661
|
+
"required": {
|
|
7662
|
+
"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).",
|
|
7663
|
+
"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).",
|
|
7664
|
+
"type": "boolean"
|
|
7665
|
+
},
|
|
7465
7666
|
"structures": {
|
|
7466
7667
|
"anyOf": [
|
|
7467
7668
|
{
|
|
@@ -7807,8 +8008,8 @@
|
|
|
7807
8008
|
},
|
|
7808
8009
|
"options": {
|
|
7809
8010
|
"$ref": "#/definitions/RangeInputOptions",
|
|
7810
|
-
"description": "Options that are specific to
|
|
7811
|
-
"markdownDescription": "Options that are specific to
|
|
8011
|
+
"description": "Options that are specific to Range Inputs.",
|
|
8012
|
+
"markdownDescription": "Options that are specific to Range Inputs."
|
|
7812
8013
|
},
|
|
7813
8014
|
"type": {
|
|
7814
8015
|
"const": "range",
|
|
@@ -7836,16 +8037,21 @@
|
|
|
7836
8037
|
},
|
|
7837
8038
|
"max": {
|
|
7838
8039
|
"default": 10,
|
|
7839
|
-
"description": "
|
|
7840
|
-
"markdownDescription": "
|
|
8040
|
+
"description": "This key defines the maximum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a greater numerical value. If the Input already contains a greater numerical value, CloudCannon will require you to enter a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser number.",
|
|
8041
|
+
"markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.",
|
|
7841
8042
|
"type": "number"
|
|
7842
8043
|
},
|
|
7843
8044
|
"min": {
|
|
7844
8045
|
"default": 0,
|
|
7845
|
-
"description": "
|
|
7846
|
-
"markdownDescription": "
|
|
8046
|
+
"description": "This key defines the minimum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a lesser numerical value. If the Input already contains a lesser numerical value, CloudCannon will require you to enter a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater number.",
|
|
8047
|
+
"markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.",
|
|
7847
8048
|
"type": "number"
|
|
7848
8049
|
},
|
|
8050
|
+
"required": {
|
|
8051
|
+
"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).",
|
|
8052
|
+
"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).",
|
|
8053
|
+
"type": "boolean"
|
|
8054
|
+
},
|
|
7849
8055
|
"step": {
|
|
7850
8056
|
"default": 1,
|
|
7851
8057
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
@@ -7937,8 +8143,8 @@
|
|
|
7937
8143
|
},
|
|
7938
8144
|
"options": {
|
|
7939
8145
|
"$ref": "#/definitions/RichTextInputOptions",
|
|
7940
|
-
"description": "Options that are specific to
|
|
7941
|
-
"markdownDescription": "Options that are specific to
|
|
8146
|
+
"description": "Options that are specific to Rich Text Inputs.",
|
|
8147
|
+
"markdownDescription": "Options that are specific to Rich Text Inputs."
|
|
7942
8148
|
},
|
|
7943
8149
|
"type": {
|
|
7944
8150
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -8120,6 +8326,11 @@
|
|
|
8120
8326
|
"markdownDescription": "Enables a control to create hyperlinks around selected text.",
|
|
8121
8327
|
"type": "boolean"
|
|
8122
8328
|
},
|
|
8329
|
+
"max_length": {
|
|
8330
|
+
"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.",
|
|
8331
|
+
"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.",
|
|
8332
|
+
"type": "number"
|
|
8333
|
+
},
|
|
8123
8334
|
"mime_type": {
|
|
8124
8335
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
8125
8336
|
"enum": [
|
|
@@ -8130,6 +8341,11 @@
|
|
|
8130
8341
|
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
8131
8342
|
"type": "string"
|
|
8132
8343
|
},
|
|
8344
|
+
"min_length": {
|
|
8345
|
+
"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.",
|
|
8346
|
+
"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.",
|
|
8347
|
+
"type": "number"
|
|
8348
|
+
},
|
|
8133
8349
|
"numberedlist": {
|
|
8134
8350
|
"default": true,
|
|
8135
8351
|
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
@@ -8147,6 +8363,60 @@
|
|
|
8147
8363
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
8148
8364
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
8149
8365
|
},
|
|
8366
|
+
"pattern": {
|
|
8367
|
+
"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.",
|
|
8368
|
+
"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.",
|
|
8369
|
+
"type": "string"
|
|
8370
|
+
},
|
|
8371
|
+
"pattern_flags": {
|
|
8372
|
+
"additionalProperties": false,
|
|
8373
|
+
"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.",
|
|
8374
|
+
"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.",
|
|
8375
|
+
"properties": {
|
|
8376
|
+
"dot_all": {
|
|
8377
|
+
"default": false,
|
|
8378
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8379
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8380
|
+
"type": "boolean"
|
|
8381
|
+
},
|
|
8382
|
+
"global": {
|
|
8383
|
+
"default": false,
|
|
8384
|
+
"description": "`g` - Search globally.",
|
|
8385
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8386
|
+
"type": "boolean"
|
|
8387
|
+
},
|
|
8388
|
+
"ignore_case": {
|
|
8389
|
+
"default": false,
|
|
8390
|
+
"description": "`i` - Case-insensitive.",
|
|
8391
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8392
|
+
"type": "boolean"
|
|
8393
|
+
},
|
|
8394
|
+
"multiline": {
|
|
8395
|
+
"default": false,
|
|
8396
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8397
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8398
|
+
"type": "boolean"
|
|
8399
|
+
},
|
|
8400
|
+
"unicode": {
|
|
8401
|
+
"default": false,
|
|
8402
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8403
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8404
|
+
"type": "boolean"
|
|
8405
|
+
},
|
|
8406
|
+
"unicode_sets": {
|
|
8407
|
+
"default": false,
|
|
8408
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8409
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8410
|
+
"type": "boolean"
|
|
8411
|
+
}
|
|
8412
|
+
},
|
|
8413
|
+
"type": "object"
|
|
8414
|
+
},
|
|
8415
|
+
"pattern_message": {
|
|
8416
|
+
"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.",
|
|
8417
|
+
"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.",
|
|
8418
|
+
"type": "string"
|
|
8419
|
+
},
|
|
8150
8420
|
"prevent_resize_existing_files": {
|
|
8151
8421
|
"default": false,
|
|
8152
8422
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
@@ -8170,6 +8440,11 @@
|
|
|
8170
8440
|
"markdownDescription": "Enables the control to remove formatting from text. Applies to formatting from `bold`,\n`italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not remove other styles\nor formatting.",
|
|
8171
8441
|
"type": "boolean"
|
|
8172
8442
|
},
|
|
8443
|
+
"required": {
|
|
8444
|
+
"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).",
|
|
8445
|
+
"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).",
|
|
8446
|
+
"type": "boolean"
|
|
8447
|
+
},
|
|
8173
8448
|
"resize_style": {
|
|
8174
8449
|
"default": "contain",
|
|
8175
8450
|
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
@@ -8446,8 +8721,8 @@
|
|
|
8446
8721
|
},
|
|
8447
8722
|
"options": {
|
|
8448
8723
|
"additionalProperties": false,
|
|
8449
|
-
"description": "Options that are specific to
|
|
8450
|
-
"markdownDescription": "Options that are specific to
|
|
8724
|
+
"description": "Options that are specific to Select Inputs.",
|
|
8725
|
+
"markdownDescription": "Options that are specific to Select Inputs.",
|
|
8451
8726
|
"properties": {
|
|
8452
8727
|
"allow_create": {
|
|
8453
8728
|
"default": false,
|
|
@@ -8470,6 +8745,70 @@
|
|
|
8470
8745
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8471
8746
|
"type": "string"
|
|
8472
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
|
+
},
|
|
8473
8812
|
"picker_preview": {
|
|
8474
8813
|
"$ref": "#/definitions/Preview",
|
|
8475
8814
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -8491,6 +8830,11 @@
|
|
|
8491
8830
|
"description": "Changes the way items are previewed in the CMS.",
|
|
8492
8831
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8493
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).",
|
|
8836
|
+
"type": "boolean"
|
|
8837
|
+
},
|
|
8494
8838
|
"value_key": {
|
|
8495
8839
|
"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.",
|
|
8496
8840
|
"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.",
|
|
@@ -9826,8 +10170,8 @@
|
|
|
9826
10170
|
},
|
|
9827
10171
|
"options": {
|
|
9828
10172
|
"$ref": "#/definitions/TextInputOptions",
|
|
9829
|
-
"description": "Options that are specific to
|
|
9830
|
-
"markdownDescription": "Options that are specific to
|
|
10173
|
+
"description": "Options that are specific to Text Inputs.",
|
|
10174
|
+
"markdownDescription": "Options that are specific to Text Inputs."
|
|
9831
10175
|
},
|
|
9832
10176
|
"type": {
|
|
9833
10177
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -9867,10 +10211,79 @@
|
|
|
9867
10211
|
"description": "Icon shown beside the input.",
|
|
9868
10212
|
"markdownDescription": "Icon shown beside the input."
|
|
9869
10213
|
},
|
|
10214
|
+
"max_length": {
|
|
10215
|
+
"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.",
|
|
10216
|
+
"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.",
|
|
10217
|
+
"type": "number"
|
|
10218
|
+
},
|
|
10219
|
+
"min_length": {
|
|
10220
|
+
"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.",
|
|
10221
|
+
"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.",
|
|
10222
|
+
"type": "number"
|
|
10223
|
+
},
|
|
10224
|
+
"pattern": {
|
|
10225
|
+
"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.",
|
|
10226
|
+
"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.",
|
|
10227
|
+
"type": "string"
|
|
10228
|
+
},
|
|
10229
|
+
"pattern_flags": {
|
|
10230
|
+
"additionalProperties": false,
|
|
10231
|
+
"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.",
|
|
10232
|
+
"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.",
|
|
10233
|
+
"properties": {
|
|
10234
|
+
"dot_all": {
|
|
10235
|
+
"default": false,
|
|
10236
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10237
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10238
|
+
"type": "boolean"
|
|
10239
|
+
},
|
|
10240
|
+
"global": {
|
|
10241
|
+
"default": false,
|
|
10242
|
+
"description": "`g` - Search globally.",
|
|
10243
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10244
|
+
"type": "boolean"
|
|
10245
|
+
},
|
|
10246
|
+
"ignore_case": {
|
|
10247
|
+
"default": false,
|
|
10248
|
+
"description": "`i` - Case-insensitive.",
|
|
10249
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10250
|
+
"type": "boolean"
|
|
10251
|
+
},
|
|
10252
|
+
"multiline": {
|
|
10253
|
+
"default": false,
|
|
10254
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10255
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10256
|
+
"type": "boolean"
|
|
10257
|
+
},
|
|
10258
|
+
"unicode": {
|
|
10259
|
+
"default": false,
|
|
10260
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10261
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10262
|
+
"type": "boolean"
|
|
10263
|
+
},
|
|
10264
|
+
"unicode_sets": {
|
|
10265
|
+
"default": false,
|
|
10266
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10267
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10268
|
+
"type": "boolean"
|
|
10269
|
+
}
|
|
10270
|
+
},
|
|
10271
|
+
"type": "object"
|
|
10272
|
+
},
|
|
10273
|
+
"pattern_message": {
|
|
10274
|
+
"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.",
|
|
10275
|
+
"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.",
|
|
10276
|
+
"type": "string"
|
|
10277
|
+
},
|
|
9870
10278
|
"placeholder": {
|
|
9871
10279
|
"description": "Text shown when this input has no value.",
|
|
9872
10280
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9873
10281
|
"type": "string"
|
|
10282
|
+
},
|
|
10283
|
+
"required": {
|
|
10284
|
+
"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).",
|
|
10285
|
+
"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).",
|
|
10286
|
+
"type": "boolean"
|
|
9874
10287
|
}
|
|
9875
10288
|
},
|
|
9876
10289
|
"type": "object"
|
|
@@ -9957,8 +10370,8 @@
|
|
|
9957
10370
|
},
|
|
9958
10371
|
"options": {
|
|
9959
10372
|
"$ref": "#/definitions/TextareaInputOptions",
|
|
9960
|
-
"description": "Options that are specific to
|
|
9961
|
-
"markdownDescription": "Options that are specific to
|
|
10373
|
+
"description": "Options that are specific to Textarea Inputs.",
|
|
10374
|
+
"markdownDescription": "Options that are specific to Textarea Inputs."
|
|
9962
10375
|
},
|
|
9963
10376
|
"type": {
|
|
9964
10377
|
"const": "textarea",
|
|
@@ -9989,11 +10402,80 @@
|
|
|
9989
10402
|
"description": "Icon shown beside the input.",
|
|
9990
10403
|
"markdownDescription": "Icon shown beside the input."
|
|
9991
10404
|
},
|
|
10405
|
+
"max_length": {
|
|
10406
|
+
"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.",
|
|
10407
|
+
"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.",
|
|
10408
|
+
"type": "number"
|
|
10409
|
+
},
|
|
10410
|
+
"min_length": {
|
|
10411
|
+
"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.",
|
|
10412
|
+
"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.",
|
|
10413
|
+
"type": "number"
|
|
10414
|
+
},
|
|
10415
|
+
"pattern": {
|
|
10416
|
+
"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.",
|
|
10417
|
+
"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.",
|
|
10418
|
+
"type": "string"
|
|
10419
|
+
},
|
|
10420
|
+
"pattern_flags": {
|
|
10421
|
+
"additionalProperties": false,
|
|
10422
|
+
"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.",
|
|
10423
|
+
"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.",
|
|
10424
|
+
"properties": {
|
|
10425
|
+
"dot_all": {
|
|
10426
|
+
"default": false,
|
|
10427
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10428
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10429
|
+
"type": "boolean"
|
|
10430
|
+
},
|
|
10431
|
+
"global": {
|
|
10432
|
+
"default": false,
|
|
10433
|
+
"description": "`g` - Search globally.",
|
|
10434
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10435
|
+
"type": "boolean"
|
|
10436
|
+
},
|
|
10437
|
+
"ignore_case": {
|
|
10438
|
+
"default": false,
|
|
10439
|
+
"description": "`i` - Case-insensitive.",
|
|
10440
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10441
|
+
"type": "boolean"
|
|
10442
|
+
},
|
|
10443
|
+
"multiline": {
|
|
10444
|
+
"default": false,
|
|
10445
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10446
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10447
|
+
"type": "boolean"
|
|
10448
|
+
},
|
|
10449
|
+
"unicode": {
|
|
10450
|
+
"default": false,
|
|
10451
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10452
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10453
|
+
"type": "boolean"
|
|
10454
|
+
},
|
|
10455
|
+
"unicode_sets": {
|
|
10456
|
+
"default": false,
|
|
10457
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10458
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10459
|
+
"type": "boolean"
|
|
10460
|
+
}
|
|
10461
|
+
},
|
|
10462
|
+
"type": "object"
|
|
10463
|
+
},
|
|
10464
|
+
"pattern_message": {
|
|
10465
|
+
"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.",
|
|
10466
|
+
"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.",
|
|
10467
|
+
"type": "string"
|
|
10468
|
+
},
|
|
9992
10469
|
"placeholder": {
|
|
9993
10470
|
"description": "Text shown when this input has no value.",
|
|
9994
10471
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9995
10472
|
"type": "string"
|
|
9996
10473
|
},
|
|
10474
|
+
"required": {
|
|
10475
|
+
"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).",
|
|
10476
|
+
"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).",
|
|
10477
|
+
"type": "boolean"
|
|
10478
|
+
},
|
|
9997
10479
|
"show_count": {
|
|
9998
10480
|
"default": false,
|
|
9999
10481
|
"description": "Shows a character counter below the input if enabled.",
|
|
@@ -10127,9 +10609,26 @@
|
|
|
10127
10609
|
"type": "string"
|
|
10128
10610
|
},
|
|
10129
10611
|
"options": {
|
|
10130
|
-
"
|
|
10612
|
+
"additionalProperties": false,
|
|
10131
10613
|
"description": "Options that are specific to Time inputs.",
|
|
10132
|
-
"markdownDescription": "Options that are specific to Time inputs."
|
|
10614
|
+
"markdownDescription": "Options that are specific to Time inputs.",
|
|
10615
|
+
"properties": {
|
|
10616
|
+
"empty_type": {
|
|
10617
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10618
|
+
"enum": [
|
|
10619
|
+
"null",
|
|
10620
|
+
"string"
|
|
10621
|
+
],
|
|
10622
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10623
|
+
"type": "string"
|
|
10624
|
+
},
|
|
10625
|
+
"required": {
|
|
10626
|
+
"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).",
|
|
10627
|
+
"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).",
|
|
10628
|
+
"type": "boolean"
|
|
10629
|
+
}
|
|
10630
|
+
},
|
|
10631
|
+
"type": "object"
|
|
10133
10632
|
},
|
|
10134
10633
|
"type": {
|
|
10135
10634
|
"const": "time",
|
|
@@ -10912,8 +11411,8 @@
|
|
|
10912
11411
|
},
|
|
10913
11412
|
"options": {
|
|
10914
11413
|
"$ref": "#/definitions/UrlInputOptions",
|
|
10915
|
-
"description": "Options that are specific to
|
|
10916
|
-
"markdownDescription": "Options that are specific to
|
|
11414
|
+
"description": "Options that are specific to URL inputs.",
|
|
11415
|
+
"markdownDescription": "Options that are specific to URL inputs."
|
|
10917
11416
|
},
|
|
10918
11417
|
"type": {
|
|
10919
11418
|
"const": "url",
|
|
@@ -10930,6 +11429,47 @@
|
|
|
10930
11429
|
"UrlInputOptions": {
|
|
10931
11430
|
"additionalProperties": false,
|
|
10932
11431
|
"properties": {
|
|
11432
|
+
"accepts_mime_types": {
|
|
11433
|
+
"anyOf": [
|
|
11434
|
+
{
|
|
11435
|
+
"items": {
|
|
11436
|
+
"$ref": "#/definitions/MimeType"
|
|
11437
|
+
},
|
|
11438
|
+
"type": "array"
|
|
11439
|
+
},
|
|
11440
|
+
{
|
|
11441
|
+
"type": "string"
|
|
11442
|
+
}
|
|
11443
|
+
],
|
|
11444
|
+
"description": "Restricts which file types are available to select or upload to this input. Accepted format is an array or comma-separated string of MIME types. The special value '*' means any type is accepted.",
|
|
11445
|
+
"markdownDescription": "Restricts which file types are available to select or upload to this input. Accepted format is\nan array or comma-separated string of MIME types. The special value '*' means any type is\naccepted."
|
|
11446
|
+
},
|
|
11447
|
+
"allowed_sources": {
|
|
11448
|
+
"description": "If you have one or more DAMs connected to your site, you can use this key to list which asset sources can be uploaded to and selected from.",
|
|
11449
|
+
"items": {
|
|
11450
|
+
"type": "string"
|
|
11451
|
+
},
|
|
11452
|
+
"markdownDescription": "If you have one or more DAMs connected to your site, you can use this key to list which asset\nsources can be uploaded to and selected from.",
|
|
11453
|
+
"type": "array"
|
|
11454
|
+
},
|
|
11455
|
+
"disable_direct_input": {
|
|
11456
|
+
"default": false,
|
|
11457
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
11458
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
11459
|
+
"type": "boolean"
|
|
11460
|
+
},
|
|
11461
|
+
"disable_upload_file": {
|
|
11462
|
+
"default": false,
|
|
11463
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
11464
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
11465
|
+
"type": "boolean"
|
|
11466
|
+
},
|
|
11467
|
+
"disable_upload_file_in_file_browser": {
|
|
11468
|
+
"default": false,
|
|
11469
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
11470
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
11471
|
+
"type": "boolean"
|
|
11472
|
+
},
|
|
10933
11473
|
"empty_type": {
|
|
10934
11474
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10935
11475
|
"enum": [
|
|
@@ -10939,6 +11479,17 @@
|
|
|
10939
11479
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10940
11480
|
"type": "string"
|
|
10941
11481
|
},
|
|
11482
|
+
"expandable": {
|
|
11483
|
+
"default": false,
|
|
11484
|
+
"description": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to upload. Has no effect if files are not resized.",
|
|
11485
|
+
"markdownDescription": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to\nupload. Has no effect if files are not resized.",
|
|
11486
|
+
"type": "boolean"
|
|
11487
|
+
},
|
|
11488
|
+
"height": {
|
|
11489
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
11490
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
11491
|
+
"type": "number"
|
|
11492
|
+
},
|
|
10942
11493
|
"hide_link_to_email_address": {
|
|
10943
11494
|
"default": false,
|
|
10944
11495
|
"description": "Hides the option to link to an email address. This does not prevent typing a `mailto:` link in the input.",
|
|
@@ -10947,8 +11498,8 @@
|
|
|
10947
11498
|
},
|
|
10948
11499
|
"hide_link_to_file": {
|
|
10949
11500
|
"default": false,
|
|
10950
|
-
"description": "Hides the
|
|
10951
|
-
"markdownDescription": "Hides the
|
|
11501
|
+
"description": "Hides the options to link to an existing file, and upload a new file. This does not prevent typing a file path in the input.",
|
|
11502
|
+
"markdownDescription": "Hides the options to link to an existing file, and upload a new file. This does not prevent\ntyping a file path in the input.",
|
|
10952
11503
|
"type": "boolean"
|
|
10953
11504
|
},
|
|
10954
11505
|
"hide_link_to_page": {
|
|
@@ -10957,25 +11508,142 @@
|
|
|
10957
11508
|
"markdownDescription": "Hides the option to link to a page. This does not prevent typing a file's output URL in the\ninput.",
|
|
10958
11509
|
"type": "boolean"
|
|
10959
11510
|
},
|
|
11511
|
+
"image_size_attributes": {
|
|
11512
|
+
"default": true,
|
|
11513
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
11514
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
11515
|
+
"type": "boolean"
|
|
11516
|
+
},
|
|
11517
|
+
"max_length": {
|
|
11518
|
+
"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.",
|
|
11519
|
+
"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.",
|
|
11520
|
+
"type": "number"
|
|
11521
|
+
},
|
|
11522
|
+
"mime_type": {
|
|
11523
|
+
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
11524
|
+
"enum": [
|
|
11525
|
+
"image/jpeg",
|
|
11526
|
+
"image/png",
|
|
11527
|
+
"image/webp"
|
|
11528
|
+
],
|
|
11529
|
+
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
11530
|
+
"type": "string"
|
|
11531
|
+
},
|
|
11532
|
+
"min_length": {
|
|
11533
|
+
"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.",
|
|
11534
|
+
"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.",
|
|
11535
|
+
"type": "number"
|
|
11536
|
+
},
|
|
10960
11537
|
"paths": {
|
|
10961
11538
|
"$ref": "#/definitions/Paths",
|
|
10962
11539
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
10963
11540
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
10964
|
-
}
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
"description": "
|
|
11541
|
+
},
|
|
11542
|
+
"pattern": {
|
|
11543
|
+
"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.",
|
|
11544
|
+
"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.",
|
|
11545
|
+
"type": "string"
|
|
11546
|
+
},
|
|
11547
|
+
"pattern_flags": {
|
|
11548
|
+
"additionalProperties": false,
|
|
11549
|
+
"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.",
|
|
11550
|
+
"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.",
|
|
11551
|
+
"properties": {
|
|
11552
|
+
"dot_all": {
|
|
11553
|
+
"default": false,
|
|
11554
|
+
"description": "`s` - `.` matches newline characters.",
|
|
11555
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
11556
|
+
"type": "boolean"
|
|
11557
|
+
},
|
|
11558
|
+
"global": {
|
|
11559
|
+
"default": false,
|
|
11560
|
+
"description": "`g` - Search globally.",
|
|
11561
|
+
"markdownDescription": "`g` - Search globally.",
|
|
11562
|
+
"type": "boolean"
|
|
11563
|
+
},
|
|
11564
|
+
"ignore_case": {
|
|
11565
|
+
"default": false,
|
|
11566
|
+
"description": "`i` - Case-insensitive.",
|
|
11567
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
11568
|
+
"type": "boolean"
|
|
11569
|
+
},
|
|
11570
|
+
"multiline": {
|
|
11571
|
+
"default": false,
|
|
11572
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11573
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11574
|
+
"type": "boolean"
|
|
11575
|
+
},
|
|
11576
|
+
"unicode": {
|
|
11577
|
+
"default": false,
|
|
11578
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11579
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11580
|
+
"type": "boolean"
|
|
11581
|
+
},
|
|
11582
|
+
"unicode_sets": {
|
|
11583
|
+
"default": false,
|
|
11584
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
11585
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
11586
|
+
"type": "boolean"
|
|
11587
|
+
}
|
|
11588
|
+
},
|
|
11589
|
+
"type": "object"
|
|
11590
|
+
},
|
|
11591
|
+
"pattern_message": {
|
|
11592
|
+
"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.",
|
|
11593
|
+
"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.",
|
|
11594
|
+
"type": "string"
|
|
11595
|
+
},
|
|
11596
|
+
"prevent_resize_existing_files": {
|
|
11597
|
+
"default": false,
|
|
11598
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
11599
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
11600
|
+
"type": "boolean"
|
|
11601
|
+
},
|
|
11602
|
+
"required": {
|
|
11603
|
+
"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).",
|
|
11604
|
+
"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).",
|
|
11605
|
+
"type": "boolean"
|
|
11606
|
+
},
|
|
11607
|
+
"resize_style": {
|
|
11608
|
+
"default": "contain",
|
|
11609
|
+
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
10973
11610
|
"enum": [
|
|
10974
|
-
"
|
|
10975
|
-
"
|
|
11611
|
+
"cover",
|
|
11612
|
+
"contain",
|
|
11613
|
+
"stretch",
|
|
11614
|
+
"crop"
|
|
10976
11615
|
],
|
|
10977
|
-
"markdownDescription": "
|
|
11616
|
+
"markdownDescription": "Sets how uploaded image files are resized with a bounding box defined by width and height prior\nto upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
10978
11617
|
"type": "string"
|
|
11618
|
+
},
|
|
11619
|
+
"sizes": {
|
|
11620
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
11621
|
+
"items": {
|
|
11622
|
+
"additionalProperties": false,
|
|
11623
|
+
"properties": {
|
|
11624
|
+
"size": {
|
|
11625
|
+
"description": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).",
|
|
11626
|
+
"markdownDescription": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of\nthe image (e.g. 2x, 3x, 100w, 360w).",
|
|
11627
|
+
"type": "string"
|
|
11628
|
+
},
|
|
11629
|
+
"target": {
|
|
11630
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
11631
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
11632
|
+
"type": "string"
|
|
11633
|
+
}
|
|
11634
|
+
},
|
|
11635
|
+
"required": [
|
|
11636
|
+
"size"
|
|
11637
|
+
],
|
|
11638
|
+
"type": "object"
|
|
11639
|
+
},
|
|
11640
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
11641
|
+
"type": "array"
|
|
11642
|
+
},
|
|
11643
|
+
"width": {
|
|
11644
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
11645
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
11646
|
+
"type": "number"
|
|
10979
11647
|
}
|
|
10980
11648
|
},
|
|
10981
11649
|
"type": "object"
|