@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"
|
|
@@ -804,8 +842,8 @@
|
|
|
804
842
|
},
|
|
805
843
|
"options": {
|
|
806
844
|
"additionalProperties": false,
|
|
807
|
-
"description": "Options that are specific to
|
|
808
|
-
"markdownDescription": "Options that are specific to
|
|
845
|
+
"description": "Options that are specific to Choice Inputs.",
|
|
846
|
+
"markdownDescription": "Options that are specific to Choice Inputs.",
|
|
809
847
|
"properties": {
|
|
810
848
|
"allow_empty": {
|
|
811
849
|
"default": true,
|
|
@@ -822,6 +860,70 @@
|
|
|
822
860
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
823
861
|
"type": "string"
|
|
824
862
|
},
|
|
863
|
+
"max_length": {
|
|
864
|
+
"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.",
|
|
865
|
+
"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.",
|
|
866
|
+
"type": "number"
|
|
867
|
+
},
|
|
868
|
+
"min_length": {
|
|
869
|
+
"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.",
|
|
870
|
+
"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.",
|
|
871
|
+
"type": "number"
|
|
872
|
+
},
|
|
873
|
+
"pattern": {
|
|
874
|
+
"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.",
|
|
875
|
+
"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.",
|
|
876
|
+
"type": "string"
|
|
877
|
+
},
|
|
878
|
+
"pattern_flags": {
|
|
879
|
+
"additionalProperties": false,
|
|
880
|
+
"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.",
|
|
881
|
+
"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.",
|
|
882
|
+
"properties": {
|
|
883
|
+
"dot_all": {
|
|
884
|
+
"default": false,
|
|
885
|
+
"description": "`s` - `.` matches newline characters.",
|
|
886
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
887
|
+
"type": "boolean"
|
|
888
|
+
},
|
|
889
|
+
"global": {
|
|
890
|
+
"default": false,
|
|
891
|
+
"description": "`g` - Search globally.",
|
|
892
|
+
"markdownDescription": "`g` - Search globally.",
|
|
893
|
+
"type": "boolean"
|
|
894
|
+
},
|
|
895
|
+
"ignore_case": {
|
|
896
|
+
"default": false,
|
|
897
|
+
"description": "`i` - Case-insensitive.",
|
|
898
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
},
|
|
901
|
+
"multiline": {
|
|
902
|
+
"default": false,
|
|
903
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
904
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
905
|
+
"type": "boolean"
|
|
906
|
+
},
|
|
907
|
+
"unicode": {
|
|
908
|
+
"default": false,
|
|
909
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
910
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
911
|
+
"type": "boolean"
|
|
912
|
+
},
|
|
913
|
+
"unicode_sets": {
|
|
914
|
+
"default": false,
|
|
915
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
916
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
917
|
+
"type": "boolean"
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"type": "object"
|
|
921
|
+
},
|
|
922
|
+
"pattern_message": {
|
|
923
|
+
"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.",
|
|
924
|
+
"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.",
|
|
925
|
+
"type": "string"
|
|
926
|
+
},
|
|
825
927
|
"picker_preview": {
|
|
826
928
|
"$ref": "#/definitions/Preview",
|
|
827
929
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -843,6 +945,11 @@
|
|
|
843
945
|
"description": "Changes the way items are previewed in the CMS.",
|
|
844
946
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
845
947
|
},
|
|
948
|
+
"required": {
|
|
949
|
+
"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).",
|
|
950
|
+
"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).",
|
|
951
|
+
"type": "boolean"
|
|
952
|
+
},
|
|
846
953
|
"value_key": {
|
|
847
954
|
"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.",
|
|
848
955
|
"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.",
|
|
@@ -968,8 +1075,8 @@
|
|
|
968
1075
|
},
|
|
969
1076
|
"options": {
|
|
970
1077
|
"$ref": "#/definitions/CodeInputOptions",
|
|
971
|
-
"description": "Options that are specific to
|
|
972
|
-
"markdownDescription": "Options that are specific to
|
|
1078
|
+
"description": "Options that are specific to Code Inputs.",
|
|
1079
|
+
"markdownDescription": "Options that are specific to Code Inputs."
|
|
973
1080
|
},
|
|
974
1081
|
"type": {
|
|
975
1082
|
"const": "code",
|
|
@@ -995,18 +1102,87 @@
|
|
|
995
1102
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
996
1103
|
"type": "string"
|
|
997
1104
|
},
|
|
1105
|
+
"max_length": {
|
|
1106
|
+
"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.",
|
|
1107
|
+
"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.",
|
|
1108
|
+
"type": "number"
|
|
1109
|
+
},
|
|
998
1110
|
"max_visible_lines": {
|
|
999
1111
|
"default": 30,
|
|
1000
1112
|
"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.",
|
|
1001
1113
|
"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.",
|
|
1002
1114
|
"type": "number"
|
|
1003
1115
|
},
|
|
1116
|
+
"min_length": {
|
|
1117
|
+
"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.",
|
|
1118
|
+
"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.",
|
|
1119
|
+
"type": "number"
|
|
1120
|
+
},
|
|
1004
1121
|
"min_visible_lines": {
|
|
1005
1122
|
"default": 10,
|
|
1006
1123
|
"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`.",
|
|
1007
1124
|
"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`.",
|
|
1008
1125
|
"type": "number"
|
|
1009
1126
|
},
|
|
1127
|
+
"pattern": {
|
|
1128
|
+
"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.",
|
|
1129
|
+
"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.",
|
|
1130
|
+
"type": "string"
|
|
1131
|
+
},
|
|
1132
|
+
"pattern_flags": {
|
|
1133
|
+
"additionalProperties": false,
|
|
1134
|
+
"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.",
|
|
1135
|
+
"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.",
|
|
1136
|
+
"properties": {
|
|
1137
|
+
"dot_all": {
|
|
1138
|
+
"default": false,
|
|
1139
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1140
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1141
|
+
"type": "boolean"
|
|
1142
|
+
},
|
|
1143
|
+
"global": {
|
|
1144
|
+
"default": false,
|
|
1145
|
+
"description": "`g` - Search globally.",
|
|
1146
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1147
|
+
"type": "boolean"
|
|
1148
|
+
},
|
|
1149
|
+
"ignore_case": {
|
|
1150
|
+
"default": false,
|
|
1151
|
+
"description": "`i` - Case-insensitive.",
|
|
1152
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1153
|
+
"type": "boolean"
|
|
1154
|
+
},
|
|
1155
|
+
"multiline": {
|
|
1156
|
+
"default": false,
|
|
1157
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1158
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1159
|
+
"type": "boolean"
|
|
1160
|
+
},
|
|
1161
|
+
"unicode": {
|
|
1162
|
+
"default": false,
|
|
1163
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1164
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1165
|
+
"type": "boolean"
|
|
1166
|
+
},
|
|
1167
|
+
"unicode_sets": {
|
|
1168
|
+
"default": false,
|
|
1169
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1170
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1171
|
+
"type": "boolean"
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"type": "object"
|
|
1175
|
+
},
|
|
1176
|
+
"pattern_message": {
|
|
1177
|
+
"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.",
|
|
1178
|
+
"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.",
|
|
1179
|
+
"type": "string"
|
|
1180
|
+
},
|
|
1181
|
+
"required": {
|
|
1182
|
+
"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).",
|
|
1183
|
+
"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).",
|
|
1184
|
+
"type": "boolean"
|
|
1185
|
+
},
|
|
1010
1186
|
"show_gutter": {
|
|
1011
1187
|
"default": true,
|
|
1012
1188
|
"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",
|
|
@@ -1144,8 +1320,8 @@
|
|
|
1144
1320
|
},
|
|
1145
1321
|
"options": {
|
|
1146
1322
|
"$ref": "#/definitions/ColorInputOptions",
|
|
1147
|
-
"description": "Options that are specific to
|
|
1148
|
-
"markdownDescription": "Options that are specific to
|
|
1323
|
+
"description": "Options that are specific to Color Inputs.",
|
|
1324
|
+
"markdownDescription": "Options that are specific to Color Inputs."
|
|
1149
1325
|
},
|
|
1150
1326
|
"type": {
|
|
1151
1327
|
"const": "color",
|
|
@@ -1186,6 +1362,75 @@
|
|
|
1186
1362
|
],
|
|
1187
1363
|
"markdownDescription": "Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that\nis unset.",
|
|
1188
1364
|
"type": "string"
|
|
1365
|
+
},
|
|
1366
|
+
"max_length": {
|
|
1367
|
+
"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.",
|
|
1368
|
+
"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.",
|
|
1369
|
+
"type": "number"
|
|
1370
|
+
},
|
|
1371
|
+
"min_length": {
|
|
1372
|
+
"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.",
|
|
1373
|
+
"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.",
|
|
1374
|
+
"type": "number"
|
|
1375
|
+
},
|
|
1376
|
+
"pattern": {
|
|
1377
|
+
"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.",
|
|
1378
|
+
"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.",
|
|
1379
|
+
"type": "string"
|
|
1380
|
+
},
|
|
1381
|
+
"pattern_flags": {
|
|
1382
|
+
"additionalProperties": false,
|
|
1383
|
+
"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.",
|
|
1384
|
+
"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.",
|
|
1385
|
+
"properties": {
|
|
1386
|
+
"dot_all": {
|
|
1387
|
+
"default": false,
|
|
1388
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1389
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1390
|
+
"type": "boolean"
|
|
1391
|
+
},
|
|
1392
|
+
"global": {
|
|
1393
|
+
"default": false,
|
|
1394
|
+
"description": "`g` - Search globally.",
|
|
1395
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1396
|
+
"type": "boolean"
|
|
1397
|
+
},
|
|
1398
|
+
"ignore_case": {
|
|
1399
|
+
"default": false,
|
|
1400
|
+
"description": "`i` - Case-insensitive.",
|
|
1401
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1402
|
+
"type": "boolean"
|
|
1403
|
+
},
|
|
1404
|
+
"multiline": {
|
|
1405
|
+
"default": false,
|
|
1406
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1407
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1408
|
+
"type": "boolean"
|
|
1409
|
+
},
|
|
1410
|
+
"unicode": {
|
|
1411
|
+
"default": false,
|
|
1412
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1413
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1414
|
+
"type": "boolean"
|
|
1415
|
+
},
|
|
1416
|
+
"unicode_sets": {
|
|
1417
|
+
"default": false,
|
|
1418
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1419
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1420
|
+
"type": "boolean"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"type": "object"
|
|
1424
|
+
},
|
|
1425
|
+
"pattern_message": {
|
|
1426
|
+
"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.",
|
|
1427
|
+
"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.",
|
|
1428
|
+
"type": "string"
|
|
1429
|
+
},
|
|
1430
|
+
"required": {
|
|
1431
|
+
"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).",
|
|
1432
|
+
"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).",
|
|
1433
|
+
"type": "boolean"
|
|
1189
1434
|
}
|
|
1190
1435
|
},
|
|
1191
1436
|
"type": "object"
|
|
@@ -1392,6 +1637,18 @@
|
|
|
1392
1637
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1393
1638
|
"type": "string"
|
|
1394
1639
|
},
|
|
1640
|
+
"end_before": {
|
|
1641
|
+
"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.",
|
|
1642
|
+
"format": "date-time",
|
|
1643
|
+
"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.",
|
|
1644
|
+
"type": "string"
|
|
1645
|
+
},
|
|
1646
|
+
"start_from": {
|
|
1647
|
+
"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.",
|
|
1648
|
+
"format": "date-time",
|
|
1649
|
+
"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.",
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
},
|
|
1395
1652
|
"timezone": {
|
|
1396
1653
|
"$ref": "#/definitions/Timezone",
|
|
1397
1654
|
"default": "Etc/UTC",
|
|
@@ -1624,14 +1881,15 @@
|
|
|
1624
1881
|
},
|
|
1625
1882
|
"options": {
|
|
1626
1883
|
"$ref": "#/definitions/FileInputOptions",
|
|
1627
|
-
"description": "Options that are specific to File inputs.",
|
|
1628
|
-
"markdownDescription": "Options that are specific to File inputs."
|
|
1884
|
+
"description": "Options that are specific to File, Image and Document inputs.",
|
|
1885
|
+
"markdownDescription": "Options that are specific to File, Image and Document inputs."
|
|
1629
1886
|
},
|
|
1630
1887
|
"type": {
|
|
1631
1888
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
1632
1889
|
"enum": [
|
|
1633
1890
|
"file",
|
|
1634
|
-
"document"
|
|
1891
|
+
"document",
|
|
1892
|
+
"image"
|
|
1635
1893
|
],
|
|
1636
1894
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
1637
1895
|
"type": "string"
|
|
@@ -1668,6 +1926,24 @@
|
|
|
1668
1926
|
"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.",
|
|
1669
1927
|
"type": "array"
|
|
1670
1928
|
},
|
|
1929
|
+
"disable_direct_input": {
|
|
1930
|
+
"default": false,
|
|
1931
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
1932
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
1933
|
+
"type": "boolean"
|
|
1934
|
+
},
|
|
1935
|
+
"disable_upload_file": {
|
|
1936
|
+
"default": false,
|
|
1937
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
1938
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
1939
|
+
"type": "boolean"
|
|
1940
|
+
},
|
|
1941
|
+
"disable_upload_file_in_file_browser": {
|
|
1942
|
+
"default": false,
|
|
1943
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
1944
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
1945
|
+
"type": "boolean"
|
|
1946
|
+
},
|
|
1671
1947
|
"empty_type": {
|
|
1672
1948
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1673
1949
|
"enum": [
|
|
@@ -1677,10 +1953,153 @@
|
|
|
1677
1953
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1678
1954
|
"type": "string"
|
|
1679
1955
|
},
|
|
1956
|
+
"expandable": {
|
|
1957
|
+
"default": false,
|
|
1958
|
+
"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.",
|
|
1959
|
+
"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.",
|
|
1960
|
+
"type": "boolean"
|
|
1961
|
+
},
|
|
1962
|
+
"height": {
|
|
1963
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
1964
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
1965
|
+
"type": "number"
|
|
1966
|
+
},
|
|
1967
|
+
"image_size_attributes": {
|
|
1968
|
+
"default": true,
|
|
1969
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
1970
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
1971
|
+
"type": "boolean"
|
|
1972
|
+
},
|
|
1973
|
+
"max_length": {
|
|
1974
|
+
"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.",
|
|
1975
|
+
"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.",
|
|
1976
|
+
"type": "number"
|
|
1977
|
+
},
|
|
1978
|
+
"mime_type": {
|
|
1979
|
+
"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.",
|
|
1980
|
+
"enum": [
|
|
1981
|
+
"image/jpeg",
|
|
1982
|
+
"image/png",
|
|
1983
|
+
"image/webp"
|
|
1984
|
+
],
|
|
1985
|
+
"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.",
|
|
1986
|
+
"type": "string"
|
|
1987
|
+
},
|
|
1988
|
+
"min_length": {
|
|
1989
|
+
"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.",
|
|
1990
|
+
"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.",
|
|
1991
|
+
"type": "number"
|
|
1992
|
+
},
|
|
1680
1993
|
"paths": {
|
|
1681
1994
|
"$ref": "#/definitions/Paths",
|
|
1682
1995
|
"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`.",
|
|
1683
1996
|
"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`."
|
|
1997
|
+
},
|
|
1998
|
+
"pattern": {
|
|
1999
|
+
"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.",
|
|
2000
|
+
"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.",
|
|
2001
|
+
"type": "string"
|
|
2002
|
+
},
|
|
2003
|
+
"pattern_flags": {
|
|
2004
|
+
"additionalProperties": false,
|
|
2005
|
+
"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.",
|
|
2006
|
+
"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.",
|
|
2007
|
+
"properties": {
|
|
2008
|
+
"dot_all": {
|
|
2009
|
+
"default": false,
|
|
2010
|
+
"description": "`s` - `.` matches newline characters.",
|
|
2011
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
2012
|
+
"type": "boolean"
|
|
2013
|
+
},
|
|
2014
|
+
"global": {
|
|
2015
|
+
"default": false,
|
|
2016
|
+
"description": "`g` - Search globally.",
|
|
2017
|
+
"markdownDescription": "`g` - Search globally.",
|
|
2018
|
+
"type": "boolean"
|
|
2019
|
+
},
|
|
2020
|
+
"ignore_case": {
|
|
2021
|
+
"default": false,
|
|
2022
|
+
"description": "`i` - Case-insensitive.",
|
|
2023
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
2024
|
+
"type": "boolean"
|
|
2025
|
+
},
|
|
2026
|
+
"multiline": {
|
|
2027
|
+
"default": false,
|
|
2028
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2029
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2030
|
+
"type": "boolean"
|
|
2031
|
+
},
|
|
2032
|
+
"unicode": {
|
|
2033
|
+
"default": false,
|
|
2034
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2035
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2036
|
+
"type": "boolean"
|
|
2037
|
+
},
|
|
2038
|
+
"unicode_sets": {
|
|
2039
|
+
"default": false,
|
|
2040
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
2041
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
2042
|
+
"type": "boolean"
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
"type": "object"
|
|
2046
|
+
},
|
|
2047
|
+
"pattern_message": {
|
|
2048
|
+
"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.",
|
|
2049
|
+
"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.",
|
|
2050
|
+
"type": "string"
|
|
2051
|
+
},
|
|
2052
|
+
"prevent_resize_existing_files": {
|
|
2053
|
+
"default": false,
|
|
2054
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
2055
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
2056
|
+
"type": "boolean"
|
|
2057
|
+
},
|
|
2058
|
+
"required": {
|
|
2059
|
+
"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).",
|
|
2060
|
+
"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).",
|
|
2061
|
+
"type": "boolean"
|
|
2062
|
+
},
|
|
2063
|
+
"resize_style": {
|
|
2064
|
+
"default": "contain",
|
|
2065
|
+
"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.",
|
|
2066
|
+
"enum": [
|
|
2067
|
+
"cover",
|
|
2068
|
+
"contain",
|
|
2069
|
+
"stretch",
|
|
2070
|
+
"crop"
|
|
2071
|
+
],
|
|
2072
|
+
"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.",
|
|
2073
|
+
"type": "string"
|
|
2074
|
+
},
|
|
2075
|
+
"sizes": {
|
|
2076
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
2077
|
+
"items": {
|
|
2078
|
+
"additionalProperties": false,
|
|
2079
|
+
"properties": {
|
|
2080
|
+
"size": {
|
|
2081
|
+
"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).",
|
|
2082
|
+
"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).",
|
|
2083
|
+
"type": "string"
|
|
2084
|
+
},
|
|
2085
|
+
"target": {
|
|
2086
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
2087
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
2088
|
+
"type": "string"
|
|
2089
|
+
}
|
|
2090
|
+
},
|
|
2091
|
+
"required": [
|
|
2092
|
+
"size"
|
|
2093
|
+
],
|
|
2094
|
+
"type": "object"
|
|
2095
|
+
},
|
|
2096
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
2097
|
+
"type": "array"
|
|
2098
|
+
},
|
|
2099
|
+
"width": {
|
|
2100
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
2101
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
2102
|
+
"type": "number"
|
|
1684
2103
|
}
|
|
1685
2104
|
},
|
|
1686
2105
|
"type": "object"
|
|
@@ -5623,224 +6042,10 @@
|
|
|
5623
6042
|
},
|
|
5624
6043
|
"type": "object"
|
|
5625
6044
|
},
|
|
5626
|
-
"
|
|
5627
|
-
"
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
5631
|
-
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
5632
|
-
"type": "boolean"
|
|
5633
|
-
},
|
|
5634
|
-
"comment": {
|
|
5635
|
-
"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.",
|
|
5636
|
-
"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.",
|
|
5637
|
-
"type": "string"
|
|
5638
|
-
},
|
|
5639
|
-
"context": {
|
|
5640
|
-
"additionalProperties": false,
|
|
5641
|
-
"description": "Adds an expandable section of rich text below the input.",
|
|
5642
|
-
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
5643
|
-
"properties": {
|
|
5644
|
-
"content": {
|
|
5645
|
-
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5646
|
-
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5647
|
-
"type": "string"
|
|
5648
|
-
},
|
|
5649
|
-
"icon": {
|
|
5650
|
-
"$ref": "#/definitions/Icon",
|
|
5651
|
-
"description": "The icon shown when not open.",
|
|
5652
|
-
"markdownDescription": "The icon shown when not open."
|
|
5653
|
-
},
|
|
5654
|
-
"open": {
|
|
5655
|
-
"description": "Makes the content visible initially.",
|
|
5656
|
-
"markdownDescription": "Makes the content visible initially.",
|
|
5657
|
-
"type": "boolean"
|
|
5658
|
-
},
|
|
5659
|
-
"title": {
|
|
5660
|
-
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5661
|
-
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5662
|
-
"type": "string"
|
|
5663
|
-
}
|
|
5664
|
-
},
|
|
5665
|
-
"type": "object"
|
|
5666
|
-
},
|
|
5667
|
-
"disable_instance_value_rehydration": {
|
|
5668
|
-
"default": false,
|
|
5669
|
-
"description": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new value when duplicated in the CMS.",
|
|
5670
|
-
"markdownDescription": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new\nvalue when duplicated in the CMS.",
|
|
5671
|
-
"type": "boolean"
|
|
5672
|
-
},
|
|
5673
|
-
"disabled": {
|
|
5674
|
-
"default": false,
|
|
5675
|
-
"description": "Toggles if this input can be edited.",
|
|
5676
|
-
"markdownDescription": "Toggles if this input can be edited.",
|
|
5677
|
-
"type": [
|
|
5678
|
-
"boolean",
|
|
5679
|
-
"string"
|
|
5680
|
-
]
|
|
5681
|
-
},
|
|
5682
|
-
"documentation": {
|
|
5683
|
-
"$ref": "#/definitions/Documentation",
|
|
5684
|
-
"description": "Provides a custom link for documentation for editors shown above input.",
|
|
5685
|
-
"markdownDescription": "Provides a custom link for documentation for editors shown above input."
|
|
5686
|
-
},
|
|
5687
|
-
"hidden": {
|
|
5688
|
-
"default": false,
|
|
5689
|
-
"description": "Toggles the visibility of this input.",
|
|
5690
|
-
"markdownDescription": "Toggles the visibility of this input.",
|
|
5691
|
-
"type": [
|
|
5692
|
-
"boolean",
|
|
5693
|
-
"string"
|
|
5694
|
-
]
|
|
5695
|
-
},
|
|
5696
|
-
"instance_value": {
|
|
5697
|
-
"$ref": "#/definitions/InstanceValue",
|
|
5698
|
-
"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.",
|
|
5699
|
-
"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."
|
|
5700
|
-
},
|
|
5701
|
-
"label": {
|
|
5702
|
-
"description": "Optionally changes the text above this input.",
|
|
5703
|
-
"markdownDescription": "Optionally changes the text above this input.",
|
|
5704
|
-
"type": "string"
|
|
5705
|
-
},
|
|
5706
|
-
"options": {
|
|
5707
|
-
"$ref": "#/definitions/ImageInputOptions",
|
|
5708
|
-
"description": "Options that are specific to Image inputs.",
|
|
5709
|
-
"markdownDescription": "Options that are specific to Image inputs."
|
|
5710
|
-
},
|
|
5711
|
-
"type": {
|
|
5712
|
-
"const": "image",
|
|
5713
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5714
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5715
|
-
"type": "string"
|
|
5716
|
-
}
|
|
5717
|
-
},
|
|
5718
|
-
"required": [
|
|
5719
|
-
"type"
|
|
5720
|
-
],
|
|
5721
|
-
"type": "object"
|
|
5722
|
-
},
|
|
5723
|
-
"ImageInputOptions": {
|
|
5724
|
-
"additionalProperties": false,
|
|
5725
|
-
"properties": {
|
|
5726
|
-
"accepts_mime_types": {
|
|
5727
|
-
"anyOf": [
|
|
5728
|
-
{
|
|
5729
|
-
"items": {
|
|
5730
|
-
"$ref": "#/definitions/MimeType"
|
|
5731
|
-
},
|
|
5732
|
-
"type": "array"
|
|
5733
|
-
},
|
|
5734
|
-
{
|
|
5735
|
-
"type": "string"
|
|
5736
|
-
}
|
|
5737
|
-
],
|
|
5738
|
-
"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.",
|
|
5739
|
-
"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."
|
|
5740
|
-
},
|
|
5741
|
-
"allowed_sources": {
|
|
5742
|
-
"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.",
|
|
5743
|
-
"items": {
|
|
5744
|
-
"type": "string"
|
|
5745
|
-
},
|
|
5746
|
-
"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.",
|
|
5747
|
-
"type": "array"
|
|
5748
|
-
},
|
|
5749
|
-
"empty_type": {
|
|
5750
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5751
|
-
"enum": [
|
|
5752
|
-
"null",
|
|
5753
|
-
"string"
|
|
5754
|
-
],
|
|
5755
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5756
|
-
"type": "string"
|
|
5757
|
-
},
|
|
5758
|
-
"expandable": {
|
|
5759
|
-
"default": false,
|
|
5760
|
-
"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.",
|
|
5761
|
-
"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.",
|
|
5762
|
-
"type": "boolean"
|
|
5763
|
-
},
|
|
5764
|
-
"height": {
|
|
5765
|
-
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
5766
|
-
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5767
|
-
"type": "number"
|
|
5768
|
-
},
|
|
5769
|
-
"image_size_attributes": {
|
|
5770
|
-
"default": true,
|
|
5771
|
-
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
5772
|
-
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
5773
|
-
"type": "boolean"
|
|
5774
|
-
},
|
|
5775
|
-
"mime_type": {
|
|
5776
|
-
"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.",
|
|
5777
|
-
"enum": [
|
|
5778
|
-
"image/jpeg",
|
|
5779
|
-
"image/png",
|
|
5780
|
-
"image/webp"
|
|
5781
|
-
],
|
|
5782
|
-
"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.",
|
|
5783
|
-
"type": "string"
|
|
5784
|
-
},
|
|
5785
|
-
"paths": {
|
|
5786
|
-
"$ref": "#/definitions/Paths",
|
|
5787
|
-
"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`.",
|
|
5788
|
-
"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`."
|
|
5789
|
-
},
|
|
5790
|
-
"prevent_resize_existing_files": {
|
|
5791
|
-
"default": false,
|
|
5792
|
-
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
5793
|
-
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
5794
|
-
"type": "boolean"
|
|
5795
|
-
},
|
|
5796
|
-
"resize_style": {
|
|
5797
|
-
"default": "contain",
|
|
5798
|
-
"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.",
|
|
5799
|
-
"enum": [
|
|
5800
|
-
"cover",
|
|
5801
|
-
"contain",
|
|
5802
|
-
"stretch",
|
|
5803
|
-
"crop"
|
|
5804
|
-
],
|
|
5805
|
-
"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.",
|
|
5806
|
-
"type": "string"
|
|
5807
|
-
},
|
|
5808
|
-
"sizes": {
|
|
5809
|
-
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
5810
|
-
"items": {
|
|
5811
|
-
"additionalProperties": false,
|
|
5812
|
-
"properties": {
|
|
5813
|
-
"size": {
|
|
5814
|
-
"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).",
|
|
5815
|
-
"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).",
|
|
5816
|
-
"type": "string"
|
|
5817
|
-
},
|
|
5818
|
-
"target": {
|
|
5819
|
-
"description": "A reference to another input that is given the path to this additional image file.",
|
|
5820
|
-
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
5821
|
-
"type": "string"
|
|
5822
|
-
}
|
|
5823
|
-
},
|
|
5824
|
-
"required": [
|
|
5825
|
-
"size"
|
|
5826
|
-
],
|
|
5827
|
-
"type": "object"
|
|
5828
|
-
},
|
|
5829
|
-
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
5830
|
-
"type": "array"
|
|
5831
|
-
},
|
|
5832
|
-
"width": {
|
|
5833
|
-
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
5834
|
-
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5835
|
-
"type": "number"
|
|
5836
|
-
}
|
|
5837
|
-
},
|
|
5838
|
-
"type": "object"
|
|
5839
|
-
},
|
|
5840
|
-
"Input": {
|
|
5841
|
-
"anyOf": [
|
|
5842
|
-
{
|
|
5843
|
-
"$ref": "#/definitions/KnownInput"
|
|
6045
|
+
"Input": {
|
|
6046
|
+
"anyOf": [
|
|
6047
|
+
{
|
|
6048
|
+
"$ref": "#/definitions/KnownInput"
|
|
5844
6049
|
},
|
|
5845
6050
|
{
|
|
5846
6051
|
"$ref": "#/definitions/UnknownInput"
|
|
@@ -5973,21 +6178,6 @@
|
|
|
5973
6178
|
"$ref": "#/definitions/RangeInput"
|
|
5974
6179
|
}
|
|
5975
6180
|
},
|
|
5976
|
-
{
|
|
5977
|
-
"if": {
|
|
5978
|
-
"properties": {
|
|
5979
|
-
"type": {
|
|
5980
|
-
"const": "url",
|
|
5981
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5982
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5983
|
-
"type": "string"
|
|
5984
|
-
}
|
|
5985
|
-
}
|
|
5986
|
-
},
|
|
5987
|
-
"then": {
|
|
5988
|
-
"$ref": "#/definitions/UrlInput"
|
|
5989
|
-
}
|
|
5990
|
-
},
|
|
5991
6181
|
{
|
|
5992
6182
|
"if": {
|
|
5993
6183
|
"properties": {
|
|
@@ -6046,7 +6236,8 @@
|
|
|
6046
6236
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6047
6237
|
"enum": [
|
|
6048
6238
|
"file",
|
|
6049
|
-
"document"
|
|
6239
|
+
"document",
|
|
6240
|
+
"image"
|
|
6050
6241
|
],
|
|
6051
6242
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6052
6243
|
"type": "string"
|
|
@@ -6061,7 +6252,7 @@
|
|
|
6061
6252
|
"if": {
|
|
6062
6253
|
"properties": {
|
|
6063
6254
|
"type": {
|
|
6064
|
-
"const": "
|
|
6255
|
+
"const": "url",
|
|
6065
6256
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6066
6257
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6067
6258
|
"type": "string"
|
|
@@ -6069,7 +6260,7 @@
|
|
|
6069
6260
|
}
|
|
6070
6261
|
},
|
|
6071
6262
|
"then": {
|
|
6072
|
-
"$ref": "#/definitions/
|
|
6263
|
+
"$ref": "#/definitions/UrlInput"
|
|
6073
6264
|
}
|
|
6074
6265
|
},
|
|
6075
6266
|
{
|
|
@@ -6196,7 +6387,6 @@
|
|
|
6196
6387
|
"switch",
|
|
6197
6388
|
"number",
|
|
6198
6389
|
"range",
|
|
6199
|
-
"url",
|
|
6200
6390
|
"html",
|
|
6201
6391
|
"markdown",
|
|
6202
6392
|
"date",
|
|
@@ -6205,6 +6395,7 @@
|
|
|
6205
6395
|
"file",
|
|
6206
6396
|
"document",
|
|
6207
6397
|
"image",
|
|
6398
|
+
"url",
|
|
6208
6399
|
"select",
|
|
6209
6400
|
"multiselect",
|
|
6210
6401
|
"choice",
|
|
@@ -6882,8 +7073,8 @@
|
|
|
6882
7073
|
},
|
|
6883
7074
|
"options": {
|
|
6884
7075
|
"additionalProperties": false,
|
|
6885
|
-
"description": "Options that are specific to
|
|
6886
|
-
"markdownDescription": "Options that are specific to
|
|
7076
|
+
"description": "Options that are specific to Multichoice Inputs.",
|
|
7077
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs.",
|
|
6887
7078
|
"properties": {
|
|
6888
7079
|
"allow_empty": {
|
|
6889
7080
|
"default": true,
|
|
@@ -6900,6 +7091,16 @@
|
|
|
6900
7091
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6901
7092
|
"type": "string"
|
|
6902
7093
|
},
|
|
7094
|
+
"max_items": {
|
|
7095
|
+
"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.",
|
|
7096
|
+
"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.",
|
|
7097
|
+
"type": "number"
|
|
7098
|
+
},
|
|
7099
|
+
"min_items": {
|
|
7100
|
+
"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.",
|
|
7101
|
+
"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.",
|
|
7102
|
+
"type": "number"
|
|
7103
|
+
},
|
|
6903
7104
|
"picker_preview": {
|
|
6904
7105
|
"$ref": "#/definitions/Preview",
|
|
6905
7106
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -6921,6 +7122,16 @@
|
|
|
6921
7122
|
"description": "Changes the way items are previewed in the CMS.",
|
|
6922
7123
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6923
7124
|
},
|
|
7125
|
+
"required": {
|
|
7126
|
+
"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).",
|
|
7127
|
+
"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).",
|
|
7128
|
+
"type": "boolean"
|
|
7129
|
+
},
|
|
7130
|
+
"unique_on": {
|
|
7131
|
+
"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.",
|
|
7132
|
+
"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.",
|
|
7133
|
+
"type": "string"
|
|
7134
|
+
},
|
|
6924
7135
|
"value_key": {
|
|
6925
7136
|
"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.",
|
|
6926
7137
|
"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.",
|
|
@@ -7045,82 +7256,9 @@
|
|
|
7045
7256
|
"type": "string"
|
|
7046
7257
|
},
|
|
7047
7258
|
"options": {
|
|
7048
|
-
"
|
|
7049
|
-
"description": "Options that are specific to
|
|
7050
|
-
"markdownDescription": "Options that are specific to
|
|
7051
|
-
"properties": {
|
|
7052
|
-
"allow_create": {
|
|
7053
|
-
"default": false,
|
|
7054
|
-
"description": "Allows new text values to be created at edit time.",
|
|
7055
|
-
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
7056
|
-
"type": "boolean"
|
|
7057
|
-
},
|
|
7058
|
-
"allow_empty": {
|
|
7059
|
-
"default": true,
|
|
7060
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
7061
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7062
|
-
"type": "boolean"
|
|
7063
|
-
},
|
|
7064
|
-
"empty_type": {
|
|
7065
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7066
|
-
"enum": [
|
|
7067
|
-
"null",
|
|
7068
|
-
"array"
|
|
7069
|
-
],
|
|
7070
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7071
|
-
"type": "string"
|
|
7072
|
-
},
|
|
7073
|
-
"picker_preview": {
|
|
7074
|
-
"$ref": "#/definitions/Preview",
|
|
7075
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7076
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7077
|
-
},
|
|
7078
|
-
"picker_view": {
|
|
7079
|
-
"description": "Controls how selectable options are rendered.",
|
|
7080
|
-
"enum": [
|
|
7081
|
-
"card",
|
|
7082
|
-
"text",
|
|
7083
|
-
"gallery",
|
|
7084
|
-
"gallery-left"
|
|
7085
|
-
],
|
|
7086
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7087
|
-
"type": "string"
|
|
7088
|
-
},
|
|
7089
|
-
"preview": {
|
|
7090
|
-
"$ref": "#/definitions/Preview",
|
|
7091
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
7092
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7093
|
-
},
|
|
7094
|
-
"value_key": {
|
|
7095
|
-
"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.",
|
|
7096
|
-
"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.",
|
|
7097
|
-
"type": "string"
|
|
7098
|
-
},
|
|
7099
|
-
"values": {
|
|
7100
|
-
"anyOf": [
|
|
7101
|
-
{
|
|
7102
|
-
"type": "string"
|
|
7103
|
-
},
|
|
7104
|
-
{
|
|
7105
|
-
"$ref": "#/definitions/SelectValues"
|
|
7106
|
-
}
|
|
7107
|
-
],
|
|
7108
|
-
"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).",
|
|
7109
|
-
"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)."
|
|
7110
|
-
},
|
|
7111
|
-
"view": {
|
|
7112
|
-
"description": "Controls how selected items are rendered.",
|
|
7113
|
-
"enum": [
|
|
7114
|
-
"card",
|
|
7115
|
-
"text",
|
|
7116
|
-
"gallery",
|
|
7117
|
-
"gallery-left"
|
|
7118
|
-
],
|
|
7119
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
7120
|
-
"type": "string"
|
|
7121
|
-
}
|
|
7122
|
-
},
|
|
7123
|
-
"type": "object"
|
|
7259
|
+
"$ref": "#/definitions/MultiselectInputOptions",
|
|
7260
|
+
"description": "Options that are specific to Multiselect Inputs.",
|
|
7261
|
+
"markdownDescription": "Options that are specific to Multiselect Inputs."
|
|
7124
7262
|
},
|
|
7125
7263
|
"type": {
|
|
7126
7264
|
"const": "multiselect",
|
|
@@ -7134,6 +7272,59 @@
|
|
|
7134
7272
|
],
|
|
7135
7273
|
"type": "object"
|
|
7136
7274
|
},
|
|
7275
|
+
"MultiselectInputOptions": {
|
|
7276
|
+
"additionalProperties": false,
|
|
7277
|
+
"properties": {
|
|
7278
|
+
"disable_add": {
|
|
7279
|
+
"default": false,
|
|
7280
|
+
"description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
|
|
7281
|
+
"markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
|
|
7282
|
+
"type": "boolean"
|
|
7283
|
+
},
|
|
7284
|
+
"disable_remove": {
|
|
7285
|
+
"default": false,
|
|
7286
|
+
"description": "Hides the context menu actions on each array item for removing them.",
|
|
7287
|
+
"markdownDescription": "Hides the context menu actions on each array item for removing them.",
|
|
7288
|
+
"type": "boolean"
|
|
7289
|
+
},
|
|
7290
|
+
"disable_reorder": {
|
|
7291
|
+
"default": false,
|
|
7292
|
+
"description": "Hides the controls on each array item for moving them.",
|
|
7293
|
+
"markdownDescription": "Hides the controls on each array item for moving them.",
|
|
7294
|
+
"type": "boolean"
|
|
7295
|
+
},
|
|
7296
|
+
"empty_type": {
|
|
7297
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7298
|
+
"enum": [
|
|
7299
|
+
"null",
|
|
7300
|
+
"array"
|
|
7301
|
+
],
|
|
7302
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7303
|
+
"type": "string"
|
|
7304
|
+
},
|
|
7305
|
+
"max_items": {
|
|
7306
|
+
"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.",
|
|
7307
|
+
"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.",
|
|
7308
|
+
"type": "number"
|
|
7309
|
+
},
|
|
7310
|
+
"min_items": {
|
|
7311
|
+
"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.",
|
|
7312
|
+
"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.",
|
|
7313
|
+
"type": "number"
|
|
7314
|
+
},
|
|
7315
|
+
"required": {
|
|
7316
|
+
"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).",
|
|
7317
|
+
"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).",
|
|
7318
|
+
"type": "boolean"
|
|
7319
|
+
},
|
|
7320
|
+
"unique_on": {
|
|
7321
|
+
"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.",
|
|
7322
|
+
"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.",
|
|
7323
|
+
"type": "string"
|
|
7324
|
+
}
|
|
7325
|
+
},
|
|
7326
|
+
"type": "object"
|
|
7327
|
+
},
|
|
7137
7328
|
"NumberInput": {
|
|
7138
7329
|
"additionalProperties": false,
|
|
7139
7330
|
"properties": {
|
|
@@ -7216,8 +7407,8 @@
|
|
|
7216
7407
|
},
|
|
7217
7408
|
"options": {
|
|
7218
7409
|
"$ref": "#/definitions/NumberInputOptions",
|
|
7219
|
-
"description": "Options that are specific to this
|
|
7220
|
-
"markdownDescription": "Options that are specific to this
|
|
7410
|
+
"description": "Options that are specific to this Number Inputs.",
|
|
7411
|
+
"markdownDescription": "Options that are specific to this Number Inputs."
|
|
7221
7412
|
},
|
|
7222
7413
|
"type": {
|
|
7223
7414
|
"const": "number",
|
|
@@ -7244,15 +7435,20 @@
|
|
|
7244
7435
|
"type": "string"
|
|
7245
7436
|
},
|
|
7246
7437
|
"max": {
|
|
7247
|
-
"description": "
|
|
7248
|
-
"markdownDescription": "
|
|
7438
|
+
"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.",
|
|
7439
|
+
"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.",
|
|
7249
7440
|
"type": "number"
|
|
7250
7441
|
},
|
|
7251
7442
|
"min": {
|
|
7252
|
-
"description": "
|
|
7253
|
-
"markdownDescription": "
|
|
7443
|
+
"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.",
|
|
7444
|
+
"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.",
|
|
7254
7445
|
"type": "number"
|
|
7255
7446
|
},
|
|
7447
|
+
"required": {
|
|
7448
|
+
"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).",
|
|
7449
|
+
"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).",
|
|
7450
|
+
"type": "boolean"
|
|
7451
|
+
},
|
|
7256
7452
|
"step": {
|
|
7257
7453
|
"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`.",
|
|
7258
7454
|
"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`.",
|
|
@@ -7343,8 +7539,8 @@
|
|
|
7343
7539
|
},
|
|
7344
7540
|
"options": {
|
|
7345
7541
|
"$ref": "#/definitions/ObjectInputOptions",
|
|
7346
|
-
"description": "Options that are specific to
|
|
7347
|
-
"markdownDescription": "Options that are specific to
|
|
7542
|
+
"description": "Options that are specific to Object Inputs.",
|
|
7543
|
+
"markdownDescription": "Options that are specific to Object Inputs."
|
|
7348
7544
|
},
|
|
7349
7545
|
"type": {
|
|
7350
7546
|
"const": "object",
|
|
@@ -7469,6 +7665,11 @@
|
|
|
7469
7665
|
"description": "Changes the way items are previewed in the CMS.",
|
|
7470
7666
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7471
7667
|
},
|
|
7668
|
+
"required": {
|
|
7669
|
+
"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).",
|
|
7670
|
+
"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).",
|
|
7671
|
+
"type": "boolean"
|
|
7672
|
+
},
|
|
7472
7673
|
"structures": {
|
|
7473
7674
|
"anyOf": [
|
|
7474
7675
|
{
|
|
@@ -7814,8 +8015,8 @@
|
|
|
7814
8015
|
},
|
|
7815
8016
|
"options": {
|
|
7816
8017
|
"$ref": "#/definitions/RangeInputOptions",
|
|
7817
|
-
"description": "Options that are specific to
|
|
7818
|
-
"markdownDescription": "Options that are specific to
|
|
8018
|
+
"description": "Options that are specific to Range Inputs.",
|
|
8019
|
+
"markdownDescription": "Options that are specific to Range Inputs."
|
|
7819
8020
|
},
|
|
7820
8021
|
"type": {
|
|
7821
8022
|
"const": "range",
|
|
@@ -7843,16 +8044,21 @@
|
|
|
7843
8044
|
},
|
|
7844
8045
|
"max": {
|
|
7845
8046
|
"default": 10,
|
|
7846
|
-
"description": "
|
|
7847
|
-
"markdownDescription": "
|
|
8047
|
+
"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.",
|
|
8048
|
+
"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.",
|
|
7848
8049
|
"type": "number"
|
|
7849
8050
|
},
|
|
7850
8051
|
"min": {
|
|
7851
8052
|
"default": 0,
|
|
7852
|
-
"description": "
|
|
7853
|
-
"markdownDescription": "
|
|
8053
|
+
"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.",
|
|
8054
|
+
"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.",
|
|
7854
8055
|
"type": "number"
|
|
7855
8056
|
},
|
|
8057
|
+
"required": {
|
|
8058
|
+
"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).",
|
|
8059
|
+
"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).",
|
|
8060
|
+
"type": "boolean"
|
|
8061
|
+
},
|
|
7856
8062
|
"step": {
|
|
7857
8063
|
"default": 1,
|
|
7858
8064
|
"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`.",
|
|
@@ -7944,8 +8150,8 @@
|
|
|
7944
8150
|
},
|
|
7945
8151
|
"options": {
|
|
7946
8152
|
"$ref": "#/definitions/RichTextInputOptions",
|
|
7947
|
-
"description": "Options that are specific to
|
|
7948
|
-
"markdownDescription": "Options that are specific to
|
|
8153
|
+
"description": "Options that are specific to Rich Text Inputs.",
|
|
8154
|
+
"markdownDescription": "Options that are specific to Rich Text Inputs."
|
|
7949
8155
|
},
|
|
7950
8156
|
"type": {
|
|
7951
8157
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -8127,6 +8333,11 @@
|
|
|
8127
8333
|
"markdownDescription": "Enables a control to create hyperlinks around selected text.",
|
|
8128
8334
|
"type": "boolean"
|
|
8129
8335
|
},
|
|
8336
|
+
"max_length": {
|
|
8337
|
+
"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.",
|
|
8338
|
+
"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.",
|
|
8339
|
+
"type": "number"
|
|
8340
|
+
},
|
|
8130
8341
|
"mime_type": {
|
|
8131
8342
|
"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.",
|
|
8132
8343
|
"enum": [
|
|
@@ -8137,6 +8348,11 @@
|
|
|
8137
8348
|
"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.",
|
|
8138
8349
|
"type": "string"
|
|
8139
8350
|
},
|
|
8351
|
+
"min_length": {
|
|
8352
|
+
"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.",
|
|
8353
|
+
"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.",
|
|
8354
|
+
"type": "number"
|
|
8355
|
+
},
|
|
8140
8356
|
"numberedlist": {
|
|
8141
8357
|
"default": true,
|
|
8142
8358
|
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
@@ -8154,6 +8370,60 @@
|
|
|
8154
8370
|
"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`.",
|
|
8155
8371
|
"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`."
|
|
8156
8372
|
},
|
|
8373
|
+
"pattern": {
|
|
8374
|
+
"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.",
|
|
8375
|
+
"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.",
|
|
8376
|
+
"type": "string"
|
|
8377
|
+
},
|
|
8378
|
+
"pattern_flags": {
|
|
8379
|
+
"additionalProperties": false,
|
|
8380
|
+
"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.",
|
|
8381
|
+
"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.",
|
|
8382
|
+
"properties": {
|
|
8383
|
+
"dot_all": {
|
|
8384
|
+
"default": false,
|
|
8385
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8386
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8387
|
+
"type": "boolean"
|
|
8388
|
+
},
|
|
8389
|
+
"global": {
|
|
8390
|
+
"default": false,
|
|
8391
|
+
"description": "`g` - Search globally.",
|
|
8392
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8393
|
+
"type": "boolean"
|
|
8394
|
+
},
|
|
8395
|
+
"ignore_case": {
|
|
8396
|
+
"default": false,
|
|
8397
|
+
"description": "`i` - Case-insensitive.",
|
|
8398
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8399
|
+
"type": "boolean"
|
|
8400
|
+
},
|
|
8401
|
+
"multiline": {
|
|
8402
|
+
"default": false,
|
|
8403
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8404
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8405
|
+
"type": "boolean"
|
|
8406
|
+
},
|
|
8407
|
+
"unicode": {
|
|
8408
|
+
"default": false,
|
|
8409
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8410
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8411
|
+
"type": "boolean"
|
|
8412
|
+
},
|
|
8413
|
+
"unicode_sets": {
|
|
8414
|
+
"default": false,
|
|
8415
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8416
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8417
|
+
"type": "boolean"
|
|
8418
|
+
}
|
|
8419
|
+
},
|
|
8420
|
+
"type": "object"
|
|
8421
|
+
},
|
|
8422
|
+
"pattern_message": {
|
|
8423
|
+
"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.",
|
|
8424
|
+
"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.",
|
|
8425
|
+
"type": "string"
|
|
8426
|
+
},
|
|
8157
8427
|
"prevent_resize_existing_files": {
|
|
8158
8428
|
"default": false,
|
|
8159
8429
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
@@ -8177,6 +8447,11 @@
|
|
|
8177
8447
|
"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.",
|
|
8178
8448
|
"type": "boolean"
|
|
8179
8449
|
},
|
|
8450
|
+
"required": {
|
|
8451
|
+
"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).",
|
|
8452
|
+
"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).",
|
|
8453
|
+
"type": "boolean"
|
|
8454
|
+
},
|
|
8180
8455
|
"resize_style": {
|
|
8181
8456
|
"default": "contain",
|
|
8182
8457
|
"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.",
|
|
@@ -8453,8 +8728,8 @@
|
|
|
8453
8728
|
},
|
|
8454
8729
|
"options": {
|
|
8455
8730
|
"additionalProperties": false,
|
|
8456
|
-
"description": "Options that are specific to
|
|
8457
|
-
"markdownDescription": "Options that are specific to
|
|
8731
|
+
"description": "Options that are specific to Select Inputs.",
|
|
8732
|
+
"markdownDescription": "Options that are specific to Select Inputs.",
|
|
8458
8733
|
"properties": {
|
|
8459
8734
|
"allow_create": {
|
|
8460
8735
|
"default": false,
|
|
@@ -8477,6 +8752,70 @@
|
|
|
8477
8752
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8478
8753
|
"type": "string"
|
|
8479
8754
|
},
|
|
8755
|
+
"max_length": {
|
|
8756
|
+
"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.",
|
|
8757
|
+
"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.",
|
|
8758
|
+
"type": "number"
|
|
8759
|
+
},
|
|
8760
|
+
"min_length": {
|
|
8761
|
+
"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.",
|
|
8762
|
+
"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.",
|
|
8763
|
+
"type": "number"
|
|
8764
|
+
},
|
|
8765
|
+
"pattern": {
|
|
8766
|
+
"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.",
|
|
8767
|
+
"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.",
|
|
8768
|
+
"type": "string"
|
|
8769
|
+
},
|
|
8770
|
+
"pattern_flags": {
|
|
8771
|
+
"additionalProperties": false,
|
|
8772
|
+
"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.",
|
|
8773
|
+
"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.",
|
|
8774
|
+
"properties": {
|
|
8775
|
+
"dot_all": {
|
|
8776
|
+
"default": false,
|
|
8777
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8778
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8779
|
+
"type": "boolean"
|
|
8780
|
+
},
|
|
8781
|
+
"global": {
|
|
8782
|
+
"default": false,
|
|
8783
|
+
"description": "`g` - Search globally.",
|
|
8784
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8785
|
+
"type": "boolean"
|
|
8786
|
+
},
|
|
8787
|
+
"ignore_case": {
|
|
8788
|
+
"default": false,
|
|
8789
|
+
"description": "`i` - Case-insensitive.",
|
|
8790
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8791
|
+
"type": "boolean"
|
|
8792
|
+
},
|
|
8793
|
+
"multiline": {
|
|
8794
|
+
"default": false,
|
|
8795
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8796
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8797
|
+
"type": "boolean"
|
|
8798
|
+
},
|
|
8799
|
+
"unicode": {
|
|
8800
|
+
"default": false,
|
|
8801
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8802
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8803
|
+
"type": "boolean"
|
|
8804
|
+
},
|
|
8805
|
+
"unicode_sets": {
|
|
8806
|
+
"default": false,
|
|
8807
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8808
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8809
|
+
"type": "boolean"
|
|
8810
|
+
}
|
|
8811
|
+
},
|
|
8812
|
+
"type": "object"
|
|
8813
|
+
},
|
|
8814
|
+
"pattern_message": {
|
|
8815
|
+
"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.",
|
|
8816
|
+
"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.",
|
|
8817
|
+
"type": "string"
|
|
8818
|
+
},
|
|
8480
8819
|
"picker_preview": {
|
|
8481
8820
|
"$ref": "#/definitions/Preview",
|
|
8482
8821
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -8498,6 +8837,11 @@
|
|
|
8498
8837
|
"description": "Changes the way items are previewed in the CMS.",
|
|
8499
8838
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8500
8839
|
},
|
|
8840
|
+
"required": {
|
|
8841
|
+
"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).",
|
|
8842
|
+
"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).",
|
|
8843
|
+
"type": "boolean"
|
|
8844
|
+
},
|
|
8501
8845
|
"value_key": {
|
|
8502
8846
|
"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.",
|
|
8503
8847
|
"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.",
|
|
@@ -9833,8 +10177,8 @@
|
|
|
9833
10177
|
},
|
|
9834
10178
|
"options": {
|
|
9835
10179
|
"$ref": "#/definitions/TextInputOptions",
|
|
9836
|
-
"description": "Options that are specific to
|
|
9837
|
-
"markdownDescription": "Options that are specific to
|
|
10180
|
+
"description": "Options that are specific to Text Inputs.",
|
|
10181
|
+
"markdownDescription": "Options that are specific to Text Inputs."
|
|
9838
10182
|
},
|
|
9839
10183
|
"type": {
|
|
9840
10184
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -9874,10 +10218,79 @@
|
|
|
9874
10218
|
"description": "Icon shown beside the input.",
|
|
9875
10219
|
"markdownDescription": "Icon shown beside the input."
|
|
9876
10220
|
},
|
|
10221
|
+
"max_length": {
|
|
10222
|
+
"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.",
|
|
10223
|
+
"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.",
|
|
10224
|
+
"type": "number"
|
|
10225
|
+
},
|
|
10226
|
+
"min_length": {
|
|
10227
|
+
"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.",
|
|
10228
|
+
"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.",
|
|
10229
|
+
"type": "number"
|
|
10230
|
+
},
|
|
10231
|
+
"pattern": {
|
|
10232
|
+
"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.",
|
|
10233
|
+
"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.",
|
|
10234
|
+
"type": "string"
|
|
10235
|
+
},
|
|
10236
|
+
"pattern_flags": {
|
|
10237
|
+
"additionalProperties": false,
|
|
10238
|
+
"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.",
|
|
10239
|
+
"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.",
|
|
10240
|
+
"properties": {
|
|
10241
|
+
"dot_all": {
|
|
10242
|
+
"default": false,
|
|
10243
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10244
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10245
|
+
"type": "boolean"
|
|
10246
|
+
},
|
|
10247
|
+
"global": {
|
|
10248
|
+
"default": false,
|
|
10249
|
+
"description": "`g` - Search globally.",
|
|
10250
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10251
|
+
"type": "boolean"
|
|
10252
|
+
},
|
|
10253
|
+
"ignore_case": {
|
|
10254
|
+
"default": false,
|
|
10255
|
+
"description": "`i` - Case-insensitive.",
|
|
10256
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10257
|
+
"type": "boolean"
|
|
10258
|
+
},
|
|
10259
|
+
"multiline": {
|
|
10260
|
+
"default": false,
|
|
10261
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10262
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10263
|
+
"type": "boolean"
|
|
10264
|
+
},
|
|
10265
|
+
"unicode": {
|
|
10266
|
+
"default": false,
|
|
10267
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10268
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10269
|
+
"type": "boolean"
|
|
10270
|
+
},
|
|
10271
|
+
"unicode_sets": {
|
|
10272
|
+
"default": false,
|
|
10273
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10274
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10275
|
+
"type": "boolean"
|
|
10276
|
+
}
|
|
10277
|
+
},
|
|
10278
|
+
"type": "object"
|
|
10279
|
+
},
|
|
10280
|
+
"pattern_message": {
|
|
10281
|
+
"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.",
|
|
10282
|
+
"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.",
|
|
10283
|
+
"type": "string"
|
|
10284
|
+
},
|
|
9877
10285
|
"placeholder": {
|
|
9878
10286
|
"description": "Text shown when this input has no value.",
|
|
9879
10287
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9880
10288
|
"type": "string"
|
|
10289
|
+
},
|
|
10290
|
+
"required": {
|
|
10291
|
+
"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).",
|
|
10292
|
+
"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).",
|
|
10293
|
+
"type": "boolean"
|
|
9881
10294
|
}
|
|
9882
10295
|
},
|
|
9883
10296
|
"type": "object"
|
|
@@ -9964,8 +10377,8 @@
|
|
|
9964
10377
|
},
|
|
9965
10378
|
"options": {
|
|
9966
10379
|
"$ref": "#/definitions/TextareaInputOptions",
|
|
9967
|
-
"description": "Options that are specific to
|
|
9968
|
-
"markdownDescription": "Options that are specific to
|
|
10380
|
+
"description": "Options that are specific to Textarea Inputs.",
|
|
10381
|
+
"markdownDescription": "Options that are specific to Textarea Inputs."
|
|
9969
10382
|
},
|
|
9970
10383
|
"type": {
|
|
9971
10384
|
"const": "textarea",
|
|
@@ -9996,11 +10409,80 @@
|
|
|
9996
10409
|
"description": "Icon shown beside the input.",
|
|
9997
10410
|
"markdownDescription": "Icon shown beside the input."
|
|
9998
10411
|
},
|
|
10412
|
+
"max_length": {
|
|
10413
|
+
"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.",
|
|
10414
|
+
"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.",
|
|
10415
|
+
"type": "number"
|
|
10416
|
+
},
|
|
10417
|
+
"min_length": {
|
|
10418
|
+
"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.",
|
|
10419
|
+
"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.",
|
|
10420
|
+
"type": "number"
|
|
10421
|
+
},
|
|
10422
|
+
"pattern": {
|
|
10423
|
+
"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.",
|
|
10424
|
+
"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.",
|
|
10425
|
+
"type": "string"
|
|
10426
|
+
},
|
|
10427
|
+
"pattern_flags": {
|
|
10428
|
+
"additionalProperties": false,
|
|
10429
|
+
"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.",
|
|
10430
|
+
"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.",
|
|
10431
|
+
"properties": {
|
|
10432
|
+
"dot_all": {
|
|
10433
|
+
"default": false,
|
|
10434
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10435
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10436
|
+
"type": "boolean"
|
|
10437
|
+
},
|
|
10438
|
+
"global": {
|
|
10439
|
+
"default": false,
|
|
10440
|
+
"description": "`g` - Search globally.",
|
|
10441
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10442
|
+
"type": "boolean"
|
|
10443
|
+
},
|
|
10444
|
+
"ignore_case": {
|
|
10445
|
+
"default": false,
|
|
10446
|
+
"description": "`i` - Case-insensitive.",
|
|
10447
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10448
|
+
"type": "boolean"
|
|
10449
|
+
},
|
|
10450
|
+
"multiline": {
|
|
10451
|
+
"default": false,
|
|
10452
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10453
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10454
|
+
"type": "boolean"
|
|
10455
|
+
},
|
|
10456
|
+
"unicode": {
|
|
10457
|
+
"default": false,
|
|
10458
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10459
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10460
|
+
"type": "boolean"
|
|
10461
|
+
},
|
|
10462
|
+
"unicode_sets": {
|
|
10463
|
+
"default": false,
|
|
10464
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10465
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10466
|
+
"type": "boolean"
|
|
10467
|
+
}
|
|
10468
|
+
},
|
|
10469
|
+
"type": "object"
|
|
10470
|
+
},
|
|
10471
|
+
"pattern_message": {
|
|
10472
|
+
"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.",
|
|
10473
|
+
"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.",
|
|
10474
|
+
"type": "string"
|
|
10475
|
+
},
|
|
9999
10476
|
"placeholder": {
|
|
10000
10477
|
"description": "Text shown when this input has no value.",
|
|
10001
10478
|
"markdownDescription": "Text shown when this input has no value.",
|
|
10002
10479
|
"type": "string"
|
|
10003
10480
|
},
|
|
10481
|
+
"required": {
|
|
10482
|
+
"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).",
|
|
10483
|
+
"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).",
|
|
10484
|
+
"type": "boolean"
|
|
10485
|
+
},
|
|
10004
10486
|
"show_count": {
|
|
10005
10487
|
"default": false,
|
|
10006
10488
|
"description": "Shows a character counter below the input if enabled.",
|
|
@@ -10134,9 +10616,26 @@
|
|
|
10134
10616
|
"type": "string"
|
|
10135
10617
|
},
|
|
10136
10618
|
"options": {
|
|
10137
|
-
"
|
|
10619
|
+
"additionalProperties": false,
|
|
10138
10620
|
"description": "Options that are specific to Time inputs.",
|
|
10139
|
-
"markdownDescription": "Options that are specific to Time inputs."
|
|
10621
|
+
"markdownDescription": "Options that are specific to Time inputs.",
|
|
10622
|
+
"properties": {
|
|
10623
|
+
"empty_type": {
|
|
10624
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10625
|
+
"enum": [
|
|
10626
|
+
"null",
|
|
10627
|
+
"string"
|
|
10628
|
+
],
|
|
10629
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10630
|
+
"type": "string"
|
|
10631
|
+
},
|
|
10632
|
+
"required": {
|
|
10633
|
+
"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).",
|
|
10634
|
+
"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).",
|
|
10635
|
+
"type": "boolean"
|
|
10636
|
+
}
|
|
10637
|
+
},
|
|
10638
|
+
"type": "object"
|
|
10140
10639
|
},
|
|
10141
10640
|
"type": {
|
|
10142
10641
|
"const": "time",
|
|
@@ -10919,8 +11418,8 @@
|
|
|
10919
11418
|
},
|
|
10920
11419
|
"options": {
|
|
10921
11420
|
"$ref": "#/definitions/UrlInputOptions",
|
|
10922
|
-
"description": "Options that are specific to
|
|
10923
|
-
"markdownDescription": "Options that are specific to
|
|
11421
|
+
"description": "Options that are specific to URL inputs.",
|
|
11422
|
+
"markdownDescription": "Options that are specific to URL inputs."
|
|
10924
11423
|
},
|
|
10925
11424
|
"type": {
|
|
10926
11425
|
"const": "url",
|
|
@@ -10937,6 +11436,47 @@
|
|
|
10937
11436
|
"UrlInputOptions": {
|
|
10938
11437
|
"additionalProperties": false,
|
|
10939
11438
|
"properties": {
|
|
11439
|
+
"accepts_mime_types": {
|
|
11440
|
+
"anyOf": [
|
|
11441
|
+
{
|
|
11442
|
+
"items": {
|
|
11443
|
+
"$ref": "#/definitions/MimeType"
|
|
11444
|
+
},
|
|
11445
|
+
"type": "array"
|
|
11446
|
+
},
|
|
11447
|
+
{
|
|
11448
|
+
"type": "string"
|
|
11449
|
+
}
|
|
11450
|
+
],
|
|
11451
|
+
"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.",
|
|
11452
|
+
"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."
|
|
11453
|
+
},
|
|
11454
|
+
"allowed_sources": {
|
|
11455
|
+
"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.",
|
|
11456
|
+
"items": {
|
|
11457
|
+
"type": "string"
|
|
11458
|
+
},
|
|
11459
|
+
"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.",
|
|
11460
|
+
"type": "array"
|
|
11461
|
+
},
|
|
11462
|
+
"disable_direct_input": {
|
|
11463
|
+
"default": false,
|
|
11464
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
11465
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
11466
|
+
"type": "boolean"
|
|
11467
|
+
},
|
|
11468
|
+
"disable_upload_file": {
|
|
11469
|
+
"default": false,
|
|
11470
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
11471
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
11472
|
+
"type": "boolean"
|
|
11473
|
+
},
|
|
11474
|
+
"disable_upload_file_in_file_browser": {
|
|
11475
|
+
"default": false,
|
|
11476
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
11477
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
11478
|
+
"type": "boolean"
|
|
11479
|
+
},
|
|
10940
11480
|
"empty_type": {
|
|
10941
11481
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10942
11482
|
"enum": [
|
|
@@ -10946,6 +11486,17 @@
|
|
|
10946
11486
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10947
11487
|
"type": "string"
|
|
10948
11488
|
},
|
|
11489
|
+
"expandable": {
|
|
11490
|
+
"default": false,
|
|
11491
|
+
"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.",
|
|
11492
|
+
"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.",
|
|
11493
|
+
"type": "boolean"
|
|
11494
|
+
},
|
|
11495
|
+
"height": {
|
|
11496
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
11497
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
11498
|
+
"type": "number"
|
|
11499
|
+
},
|
|
10949
11500
|
"hide_link_to_email_address": {
|
|
10950
11501
|
"default": false,
|
|
10951
11502
|
"description": "Hides the option to link to an email address. This does not prevent typing a `mailto:` link in the input.",
|
|
@@ -10954,8 +11505,8 @@
|
|
|
10954
11505
|
},
|
|
10955
11506
|
"hide_link_to_file": {
|
|
10956
11507
|
"default": false,
|
|
10957
|
-
"description": "Hides the
|
|
10958
|
-
"markdownDescription": "Hides the
|
|
11508
|
+
"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.",
|
|
11509
|
+
"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.",
|
|
10959
11510
|
"type": "boolean"
|
|
10960
11511
|
},
|
|
10961
11512
|
"hide_link_to_page": {
|
|
@@ -10964,25 +11515,142 @@
|
|
|
10964
11515
|
"markdownDescription": "Hides the option to link to a page. This does not prevent typing a file's output URL in the\ninput.",
|
|
10965
11516
|
"type": "boolean"
|
|
10966
11517
|
},
|
|
11518
|
+
"image_size_attributes": {
|
|
11519
|
+
"default": true,
|
|
11520
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
11521
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
11522
|
+
"type": "boolean"
|
|
11523
|
+
},
|
|
11524
|
+
"max_length": {
|
|
11525
|
+
"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.",
|
|
11526
|
+
"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.",
|
|
11527
|
+
"type": "number"
|
|
11528
|
+
},
|
|
11529
|
+
"mime_type": {
|
|
11530
|
+
"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.",
|
|
11531
|
+
"enum": [
|
|
11532
|
+
"image/jpeg",
|
|
11533
|
+
"image/png",
|
|
11534
|
+
"image/webp"
|
|
11535
|
+
],
|
|
11536
|
+
"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.",
|
|
11537
|
+
"type": "string"
|
|
11538
|
+
},
|
|
11539
|
+
"min_length": {
|
|
11540
|
+
"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.",
|
|
11541
|
+
"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.",
|
|
11542
|
+
"type": "number"
|
|
11543
|
+
},
|
|
10967
11544
|
"paths": {
|
|
10968
11545
|
"$ref": "#/definitions/Paths",
|
|
10969
11546
|
"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`.",
|
|
10970
11547
|
"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`."
|
|
10971
|
-
}
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
"description": "
|
|
11548
|
+
},
|
|
11549
|
+
"pattern": {
|
|
11550
|
+
"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.",
|
|
11551
|
+
"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.",
|
|
11552
|
+
"type": "string"
|
|
11553
|
+
},
|
|
11554
|
+
"pattern_flags": {
|
|
11555
|
+
"additionalProperties": false,
|
|
11556
|
+
"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.",
|
|
11557
|
+
"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.",
|
|
11558
|
+
"properties": {
|
|
11559
|
+
"dot_all": {
|
|
11560
|
+
"default": false,
|
|
11561
|
+
"description": "`s` - `.` matches newline characters.",
|
|
11562
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
11563
|
+
"type": "boolean"
|
|
11564
|
+
},
|
|
11565
|
+
"global": {
|
|
11566
|
+
"default": false,
|
|
11567
|
+
"description": "`g` - Search globally.",
|
|
11568
|
+
"markdownDescription": "`g` - Search globally.",
|
|
11569
|
+
"type": "boolean"
|
|
11570
|
+
},
|
|
11571
|
+
"ignore_case": {
|
|
11572
|
+
"default": false,
|
|
11573
|
+
"description": "`i` - Case-insensitive.",
|
|
11574
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
11575
|
+
"type": "boolean"
|
|
11576
|
+
},
|
|
11577
|
+
"multiline": {
|
|
11578
|
+
"default": false,
|
|
11579
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11580
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11581
|
+
"type": "boolean"
|
|
11582
|
+
},
|
|
11583
|
+
"unicode": {
|
|
11584
|
+
"default": false,
|
|
11585
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11586
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11587
|
+
"type": "boolean"
|
|
11588
|
+
},
|
|
11589
|
+
"unicode_sets": {
|
|
11590
|
+
"default": false,
|
|
11591
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
11592
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
11593
|
+
"type": "boolean"
|
|
11594
|
+
}
|
|
11595
|
+
},
|
|
11596
|
+
"type": "object"
|
|
11597
|
+
},
|
|
11598
|
+
"pattern_message": {
|
|
11599
|
+
"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.",
|
|
11600
|
+
"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.",
|
|
11601
|
+
"type": "string"
|
|
11602
|
+
},
|
|
11603
|
+
"prevent_resize_existing_files": {
|
|
11604
|
+
"default": false,
|
|
11605
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
11606
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
11607
|
+
"type": "boolean"
|
|
11608
|
+
},
|
|
11609
|
+
"required": {
|
|
11610
|
+
"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).",
|
|
11611
|
+
"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).",
|
|
11612
|
+
"type": "boolean"
|
|
11613
|
+
},
|
|
11614
|
+
"resize_style": {
|
|
11615
|
+
"default": "contain",
|
|
11616
|
+
"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.",
|
|
10980
11617
|
"enum": [
|
|
10981
|
-
"
|
|
10982
|
-
"
|
|
11618
|
+
"cover",
|
|
11619
|
+
"contain",
|
|
11620
|
+
"stretch",
|
|
11621
|
+
"crop"
|
|
10983
11622
|
],
|
|
10984
|
-
"markdownDescription": "
|
|
11623
|
+
"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.",
|
|
10985
11624
|
"type": "string"
|
|
11625
|
+
},
|
|
11626
|
+
"sizes": {
|
|
11627
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
11628
|
+
"items": {
|
|
11629
|
+
"additionalProperties": false,
|
|
11630
|
+
"properties": {
|
|
11631
|
+
"size": {
|
|
11632
|
+
"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).",
|
|
11633
|
+
"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).",
|
|
11634
|
+
"type": "string"
|
|
11635
|
+
},
|
|
11636
|
+
"target": {
|
|
11637
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
11638
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
11639
|
+
"type": "string"
|
|
11640
|
+
}
|
|
11641
|
+
},
|
|
11642
|
+
"required": [
|
|
11643
|
+
"size"
|
|
11644
|
+
],
|
|
11645
|
+
"type": "object"
|
|
11646
|
+
},
|
|
11647
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
11648
|
+
"type": "array"
|
|
11649
|
+
},
|
|
11650
|
+
"width": {
|
|
11651
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
11652
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
11653
|
+
"type": "number"
|
|
10986
11654
|
}
|
|
10987
11655
|
},
|
|
10988
11656
|
"type": "object"
|