@cloudcannon/configuration-types 0.0.52 → 0.0.53
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-collections.schema.json +324 -10
- package/dist/cloudcannon-config.documentation.schema.json +295 -2
- package/dist/cloudcannon-config.latest.schema.json +324 -10
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +297 -3
- package/dist/cloudcannon-config.legacy-hugo.schema.json +297 -3
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +297 -3
- package/dist/cloudcannon-config.legacy-reader.schema.json +297 -3
- package/dist/cloudcannon-editables.schema.json +2 -2
- package/dist/cloudcannon-inputs.schema.json +324 -10
- package/dist/cloudcannon-schemas.schema.json +324 -10
- package/dist/cloudcannon-snippets.schema.json +324 -10
- package/dist/cloudcannon-structure-value.schema.json +324 -10
- package/dist/cloudcannon-structures.schema.json +324 -10
- package/dist/documentation.json +1297 -12
- package/package.json +1 -1
- package/src/inputs.ts +53 -3
|
@@ -896,6 +896,33 @@
|
|
|
896
896
|
"min_length_message": {
|
|
897
897
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
898
898
|
},
|
|
899
|
+
"max_words": {
|
|
900
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
901
|
+
},
|
|
902
|
+
"max_words_message": {
|
|
903
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
904
|
+
},
|
|
905
|
+
"min_words": {
|
|
906
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
907
|
+
},
|
|
908
|
+
"min_words_message": {
|
|
909
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
910
|
+
},
|
|
911
|
+
"max_graphemes": {
|
|
912
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
913
|
+
},
|
|
914
|
+
"max_graphemes_message": {
|
|
915
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
916
|
+
},
|
|
917
|
+
"min_graphemes": {
|
|
918
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
919
|
+
},
|
|
920
|
+
"min_graphemes_message": {
|
|
921
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
922
|
+
},
|
|
923
|
+
"locale": {
|
|
924
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
925
|
+
},
|
|
899
926
|
"pattern": {
|
|
900
927
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
901
928
|
},
|
|
@@ -4764,6 +4791,69 @@
|
|
|
4764
4791
|
"title": "min_length_message",
|
|
4765
4792
|
"markdownDescription": "This key defines a custom error message that explains why a value has failed the validation criteria from `options.min_length`.\n\nThis key requires you to define `options.min_length`.\n\nThis key has no default.\n\nThis key is available for Code, Color, File, Select, Text, Rich Text, and URL Inputs.\n\n## Examples\n\nIn this example, we prompt our team to enter a valid number of characters using a custom message.\n\n```yaml\n_inputs:\n seo_description:\n type: markdown\n comment: Enter a brief description of this blog.\n options:\n max_length: 125\n max_length_message: You are only allowed 125 characters.\n min_length: 25\n min_length_message: Please write more than 25 characters.\n```"
|
|
4766
4793
|
},
|
|
4794
|
+
"type._inputs.*.options.max_words": {
|
|
4795
|
+
"description": "This key defines the maximum string length, in words, 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.",
|
|
4796
|
+
"type": "number",
|
|
4797
|
+
"documented": true,
|
|
4798
|
+
"title": "max_words",
|
|
4799
|
+
"markdownDescription": "This key defines the maximum string length, in words, 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."
|
|
4800
|
+
},
|
|
4801
|
+
"type._inputs.*.options.max_words_message": {
|
|
4802
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_words.",
|
|
4803
|
+
"type": "string",
|
|
4804
|
+
"documented": true,
|
|
4805
|
+
"title": "max_words_message",
|
|
4806
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_words."
|
|
4807
|
+
},
|
|
4808
|
+
"type._inputs.*.options.min_words": {
|
|
4809
|
+
"description": "This key defines the minimum string length, in words, 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.",
|
|
4810
|
+
"type": "number",
|
|
4811
|
+
"documented": true,
|
|
4812
|
+
"title": "min_words",
|
|
4813
|
+
"markdownDescription": "This key defines the minimum string length, in words, 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."
|
|
4814
|
+
},
|
|
4815
|
+
"type._inputs.*.options.min_words_message": {
|
|
4816
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_words`.",
|
|
4817
|
+
"type": "string",
|
|
4818
|
+
"documented": true,
|
|
4819
|
+
"title": "min_words_message",
|
|
4820
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_words`."
|
|
4821
|
+
},
|
|
4822
|
+
"type._inputs.*.options.max_graphemes": {
|
|
4823
|
+
"description": "This key defines the maximum string length, in graphemes, 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.",
|
|
4824
|
+
"type": "number",
|
|
4825
|
+
"documented": true,
|
|
4826
|
+
"title": "max_graphemes",
|
|
4827
|
+
"markdownDescription": "This key defines the maximum string length, in graphemes, 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."
|
|
4828
|
+
},
|
|
4829
|
+
"type._inputs.*.options.max_graphemes_message": {
|
|
4830
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_graphemes.",
|
|
4831
|
+
"type": "string",
|
|
4832
|
+
"documented": true,
|
|
4833
|
+
"title": "max_graphemes_message",
|
|
4834
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_graphemes."
|
|
4835
|
+
},
|
|
4836
|
+
"type._inputs.*.options.min_graphemes": {
|
|
4837
|
+
"description": "This key defines the minimum string length, in graphemes, 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.",
|
|
4838
|
+
"type": "number",
|
|
4839
|
+
"documented": true,
|
|
4840
|
+
"title": "min_graphemes",
|
|
4841
|
+
"markdownDescription": "This key defines the minimum string length, in graphemes, 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."
|
|
4842
|
+
},
|
|
4843
|
+
"type._inputs.*.options.min_graphemes_message": {
|
|
4844
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_graphemes`.",
|
|
4845
|
+
"type": "string",
|
|
4846
|
+
"documented": true,
|
|
4847
|
+
"title": "min_graphemes_message",
|
|
4848
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_graphemes`."
|
|
4849
|
+
},
|
|
4850
|
+
"type._inputs.*.options.locale": {
|
|
4851
|
+
"description": "This key defines the locale that CloudCannon uses to determine the number of words or graphemes in this Input, if you have `max_words`, `min_words`, `max_graphemes`, or `min_graphemes` configured.",
|
|
4852
|
+
"type": "string",
|
|
4853
|
+
"documented": true,
|
|
4854
|
+
"title": "locale",
|
|
4855
|
+
"markdownDescription": "This key defines the locale that CloudCannon uses to determine the number of words or graphemes in this Input, if you have `max_words`, `min_words`, `max_graphemes`, or `min_graphemes` configured."
|
|
4856
|
+
},
|
|
4767
4857
|
"type._inputs.*.options.pattern": {
|
|
4768
4858
|
"description": "This key defines a [regular expression](https://re2js.leopard.in.ua/) that the Input value must match.\n\nWhen configured, CloudCannon will require you to enter a value that matches the REGEX pattern.\n\nIf the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved\nchanges.\n\nValue must be a valid REGEX string.\n\nIf your REGEX string includes a `\\` character and CloudCannon Configuration File is a `.yml` file, use single quotes `'` around the string to avoid a\nbuild error.\n\nThis key has no default.\n\nThis key is available for Code, Color, File, Select, Text, Rich Text, and URL Inputs.\n\nTo use this key in a Select Input, `allow_create` must be set to `true`.\n\n## Examples\n\nIn this example, we want our team to add an email address to the `contact_email` Input using the correct email format.\n\n```yaml\n_inputs:\n contact_email:\n type: email\n options:\n pattern: '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'\n pattern_message: 'Please use the format ___@___.__'\n```",
|
|
4769
4859
|
"type": "string",
|
|
@@ -5056,6 +5146,33 @@
|
|
|
5056
5146
|
"min_length_message": {
|
|
5057
5147
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
5058
5148
|
},
|
|
5149
|
+
"max_words": {
|
|
5150
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
5151
|
+
},
|
|
5152
|
+
"max_words_message": {
|
|
5153
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
5154
|
+
},
|
|
5155
|
+
"min_words": {
|
|
5156
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
5157
|
+
},
|
|
5158
|
+
"min_words_message": {
|
|
5159
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
5160
|
+
},
|
|
5161
|
+
"max_graphemes": {
|
|
5162
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
5163
|
+
},
|
|
5164
|
+
"max_graphemes_message": {
|
|
5165
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
5166
|
+
},
|
|
5167
|
+
"min_graphemes": {
|
|
5168
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
5169
|
+
},
|
|
5170
|
+
"min_graphemes_message": {
|
|
5171
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
5172
|
+
},
|
|
5173
|
+
"locale": {
|
|
5174
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
5175
|
+
},
|
|
5059
5176
|
"pattern": {
|
|
5060
5177
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
5061
5178
|
},
|
|
@@ -5215,6 +5332,33 @@
|
|
|
5215
5332
|
"min_length_message": {
|
|
5216
5333
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
5217
5334
|
},
|
|
5335
|
+
"max_words": {
|
|
5336
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
5337
|
+
},
|
|
5338
|
+
"max_words_message": {
|
|
5339
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
5340
|
+
},
|
|
5341
|
+
"min_words": {
|
|
5342
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
5343
|
+
},
|
|
5344
|
+
"min_words_message": {
|
|
5345
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
5346
|
+
},
|
|
5347
|
+
"max_graphemes": {
|
|
5348
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
5349
|
+
},
|
|
5350
|
+
"max_graphemes_message": {
|
|
5351
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
5352
|
+
},
|
|
5353
|
+
"min_graphemes": {
|
|
5354
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
5355
|
+
},
|
|
5356
|
+
"min_graphemes_message": {
|
|
5357
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
5358
|
+
},
|
|
5359
|
+
"locale": {
|
|
5360
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
5361
|
+
},
|
|
5218
5362
|
"pattern": {
|
|
5219
5363
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
5220
5364
|
},
|
|
@@ -5457,6 +5601,33 @@
|
|
|
5457
5601
|
"min_length_message": {
|
|
5458
5602
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
5459
5603
|
},
|
|
5604
|
+
"max_words": {
|
|
5605
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
5606
|
+
},
|
|
5607
|
+
"max_words_message": {
|
|
5608
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
5609
|
+
},
|
|
5610
|
+
"min_words": {
|
|
5611
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
5612
|
+
},
|
|
5613
|
+
"min_words_message": {
|
|
5614
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
5615
|
+
},
|
|
5616
|
+
"max_graphemes": {
|
|
5617
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
5618
|
+
},
|
|
5619
|
+
"max_graphemes_message": {
|
|
5620
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
5621
|
+
},
|
|
5622
|
+
"min_graphemes": {
|
|
5623
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
5624
|
+
},
|
|
5625
|
+
"min_graphemes_message": {
|
|
5626
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
5627
|
+
},
|
|
5628
|
+
"locale": {
|
|
5629
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
5630
|
+
},
|
|
5460
5631
|
"pattern": {
|
|
5461
5632
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
5462
5633
|
},
|
|
@@ -6080,6 +6251,33 @@
|
|
|
6080
6251
|
"min_length_message": {
|
|
6081
6252
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
6082
6253
|
},
|
|
6254
|
+
"max_words": {
|
|
6255
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
6256
|
+
},
|
|
6257
|
+
"max_words_message": {
|
|
6258
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
6259
|
+
},
|
|
6260
|
+
"min_words": {
|
|
6261
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
6262
|
+
},
|
|
6263
|
+
"min_words_message": {
|
|
6264
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
6265
|
+
},
|
|
6266
|
+
"max_graphemes": {
|
|
6267
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
6268
|
+
},
|
|
6269
|
+
"max_graphemes_message": {
|
|
6270
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
6271
|
+
},
|
|
6272
|
+
"min_graphemes": {
|
|
6273
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
6274
|
+
},
|
|
6275
|
+
"min_graphemes_message": {
|
|
6276
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
6277
|
+
},
|
|
6278
|
+
"locale": {
|
|
6279
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
6280
|
+
},
|
|
6083
6281
|
"pattern": {
|
|
6084
6282
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
6085
6283
|
},
|
|
@@ -6105,12 +6303,20 @@
|
|
|
6105
6303
|
"title": "empty_type"
|
|
6106
6304
|
},
|
|
6107
6305
|
"allow_resize": {
|
|
6108
|
-
"
|
|
6109
|
-
"
|
|
6306
|
+
"deprecated": true,
|
|
6307
|
+
"description": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead.\nThis key toggles whether CloudCannon will show the resize handler to vertically resize the input.\n\nSetting this key to `false` will hide the resize handler.\n\nBy default, this key is `true` (i.e., the resize handler is shown).",
|
|
6110
6308
|
"type": "boolean",
|
|
6111
6309
|
"documented": true,
|
|
6112
6310
|
"title": "allow_resize",
|
|
6113
|
-
"markdownDescription": "This key toggles whether CloudCannon will show the resize handler to vertically resize the input.\n\nSetting this key to `false` will hide the resize handler.\n\nBy default, this key is `true` (i.e., the resize handler is shown)."
|
|
6311
|
+
"markdownDescription": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead.\nThis key toggles whether CloudCannon will show the resize handler to vertically resize the input.\n\nSetting this key to `false` will hide the resize handler.\n\nBy default, this key is `true` (i.e., the resize handler is shown)."
|
|
6312
|
+
},
|
|
6313
|
+
"prevent_resize": {
|
|
6314
|
+
"description": "Shows or hides the resize handler to vertically resize the input.",
|
|
6315
|
+
"default": false,
|
|
6316
|
+
"type": "boolean",
|
|
6317
|
+
"documented": true,
|
|
6318
|
+
"title": "prevent_resize",
|
|
6319
|
+
"markdownDescription": "Shows or hides the resize handler to vertically resize the input."
|
|
6114
6320
|
},
|
|
6115
6321
|
"initial_height": {
|
|
6116
6322
|
"description": "This key defines the initial height of this input in pixels (px).",
|
|
@@ -6562,11 +6768,11 @@
|
|
|
6562
6768
|
"markdownDescription": "This key toggles whether CloudCannon will display a tool in your WYSIWYG toolbar to insert a [Snippet](https://cloudcannon.com/documentation/articles/what-is-a-snippet/), if any are available.\n\nSetting this key to `true` will enable a tool in your WYSIWYG toolbar to insert a Snippet."
|
|
6563
6769
|
},
|
|
6564
6770
|
"type._editables.*.styles": {
|
|
6565
|
-
"description": "This key toggles whether CloudCannon will display a dropdown menu in your WYSIWYG toolbar to apply a style to selected text.\n\
|
|
6771
|
+
"description": "This key toggles whether CloudCannon will display a dropdown menu in your WYSIWYG toolbar to apply a style to selected text.\n\n## Examples\n\nIn this example, we have enabled a dropdown menu in our WYSIWYG toolbar to apply a style to selected text. The styles are defined in the `/css/styles.css` file.\n\n```yaml\n_editables:\n content:\n styles: /css/styles.css\n```\n\nThis example file defines the styles that CloudCannon can add to your WYSIWYG toolbar.\n\n```css\n/* Can be applied to blocks of content */\np.callout {\n margin: 10px;\n border: 1px solid #f5f5f5;\n background-color: #eee;\n}\n\n/* Can be applied to inline content */\nspan.big-blue-text {\n font-size: 2rem;\n color: blue;\n}\n\n/* Applied to content, excluded from style dropdown */\nh2 {\n font-family: cursive;\n}\n\n/* Applied to content, excluded from style dropdown */\n.align-left { text-align: left; }\n.align-center { text-align: center; }\n.align-right { text-align: right; }\n.align-justify { text-align: justify; }\n```",
|
|
6566
6772
|
"type": "string",
|
|
6567
6773
|
"documented": true,
|
|
6568
6774
|
"title": "styles",
|
|
6569
|
-
"markdownDescription": "This key toggles whether CloudCannon will display a dropdown menu in your WYSIWYG toolbar to apply a style to selected text.\n\
|
|
6775
|
+
"markdownDescription": "This key toggles whether CloudCannon will display a dropdown menu in your WYSIWYG toolbar to apply a style to selected text.\n\n## Examples\n\nIn this example, we have enabled a dropdown menu in our WYSIWYG toolbar to apply a style to selected text. The styles are defined in the `/css/styles.css` file.\n\n```yaml\n_editables:\n content:\n styles: /css/styles.css\n```\n\nThis example file defines the styles that CloudCannon can add to your WYSIWYG toolbar.\n\n```css\n/* Can be applied to blocks of content */\np.callout {\n margin: 10px;\n border: 1px solid #f5f5f5;\n background-color: #eee;\n}\n\n/* Can be applied to inline content */\nspan.big-blue-text {\n font-size: 2rem;\n color: blue;\n}\n\n/* Applied to content, excluded from style dropdown */\nh2 {\n font-family: cursive;\n}\n\n/* Applied to content, excluded from style dropdown */\n.align-left { text-align: left; }\n.align-center { text-align: center; }\n.align-right { text-align: right; }\n.align-justify { text-align: justify; }\n```"
|
|
6570
6776
|
},
|
|
6571
6777
|
"type._editables.*.table": {
|
|
6572
6778
|
"description": "This key toggles whether CloudCannon will display a tool in your WYSIWYG toolbar to insert a table.\n\nSetting this key to `true` will enable a tool in your WYSIWYG toolbar to insert a table. Further table options are available from the table context menu in the rich text editor.",
|
|
@@ -7545,6 +7751,33 @@
|
|
|
7545
7751
|
"min_length_message": {
|
|
7546
7752
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
7547
7753
|
},
|
|
7754
|
+
"max_words": {
|
|
7755
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
7756
|
+
},
|
|
7757
|
+
"max_words_message": {
|
|
7758
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
7759
|
+
},
|
|
7760
|
+
"min_words": {
|
|
7761
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
7762
|
+
},
|
|
7763
|
+
"min_words_message": {
|
|
7764
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
7765
|
+
},
|
|
7766
|
+
"max_graphemes": {
|
|
7767
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
7768
|
+
},
|
|
7769
|
+
"max_graphemes_message": {
|
|
7770
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
7771
|
+
},
|
|
7772
|
+
"min_graphemes": {
|
|
7773
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
7774
|
+
},
|
|
7775
|
+
"min_graphemes_message": {
|
|
7776
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
7777
|
+
},
|
|
7778
|
+
"locale": {
|
|
7779
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
7780
|
+
},
|
|
7548
7781
|
"pattern": {
|
|
7549
7782
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
7550
7783
|
},
|
|
@@ -8212,6 +8445,33 @@
|
|
|
8212
8445
|
"min_length_message": {
|
|
8213
8446
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
8214
8447
|
},
|
|
8448
|
+
"max_words": {
|
|
8449
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
8450
|
+
},
|
|
8451
|
+
"max_words_message": {
|
|
8452
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
8453
|
+
},
|
|
8454
|
+
"min_words": {
|
|
8455
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
8456
|
+
},
|
|
8457
|
+
"min_words_message": {
|
|
8458
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
8459
|
+
},
|
|
8460
|
+
"max_graphemes": {
|
|
8461
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
8462
|
+
},
|
|
8463
|
+
"max_graphemes_message": {
|
|
8464
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
8465
|
+
},
|
|
8466
|
+
"min_graphemes": {
|
|
8467
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
8468
|
+
},
|
|
8469
|
+
"min_graphemes_message": {
|
|
8470
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
8471
|
+
},
|
|
8472
|
+
"locale": {
|
|
8473
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
8474
|
+
},
|
|
8215
8475
|
"pattern": {
|
|
8216
8476
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
8217
8477
|
},
|
|
@@ -8421,6 +8681,33 @@
|
|
|
8421
8681
|
"min_length_message": {
|
|
8422
8682
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
8423
8683
|
},
|
|
8684
|
+
"max_words": {
|
|
8685
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
8686
|
+
},
|
|
8687
|
+
"max_words_message": {
|
|
8688
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
8689
|
+
},
|
|
8690
|
+
"min_words": {
|
|
8691
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
8692
|
+
},
|
|
8693
|
+
"min_words_message": {
|
|
8694
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
8695
|
+
},
|
|
8696
|
+
"max_graphemes": {
|
|
8697
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
8698
|
+
},
|
|
8699
|
+
"max_graphemes_message": {
|
|
8700
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
8701
|
+
},
|
|
8702
|
+
"min_graphemes": {
|
|
8703
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
8704
|
+
},
|
|
8705
|
+
"min_graphemes_message": {
|
|
8706
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
8707
|
+
},
|
|
8708
|
+
"locale": {
|
|
8709
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
8710
|
+
},
|
|
8424
8711
|
"pattern": {
|
|
8425
8712
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
8426
8713
|
},
|
|
@@ -8681,8 +8968,8 @@
|
|
|
8681
8968
|
"markdownDescription": "This key toggles whether CloudCannon will allow new text values to be created at edit time.\n\nSetting this key to `true` will allow new text values to be created at edit time.\n\n## Examples\n\nIn this example, CloudCannon will allow users to add new values to a *Select Input*.\n\n```yaml\n_inputs:\n category:\n type: select\n options:\n values:\n - Blog\n - News\n allow_create: true\n```"
|
|
8682
8969
|
},
|
|
8683
8970
|
"type._inputs.*.options.allow_empty": {
|
|
8971
|
+
"deprecated": true,
|
|
8684
8972
|
"description": "**⚠️ DEPRECATED:** This key is deprecated. If you want to prevent empty values, we recommend setting `_inputs.*.options.required` to `true` instead.\n\nThis key toggles whether CloudCannon will accept empty values, and pre-select the first option if opened with an empty value.\n\nSetting this key to `true` will allow CloudCannon to accept empty values.\n\n## Examples\n\nIn this example, CloudCannon will accept empty values for a *Select Input*.\n\n```yaml\n_inputs:\n category:\n type: select\n options:\n values:\n - Blog\n - News\n - Events\n allow_empty: true\n```",
|
|
8685
|
-
"default": true,
|
|
8686
8973
|
"type": "boolean",
|
|
8687
8974
|
"documented": true,
|
|
8688
8975
|
"title": "allow_empty",
|
|
@@ -9094,6 +9381,33 @@
|
|
|
9094
9381
|
"min_length_message": {
|
|
9095
9382
|
"$ref": "#/definitions/type._inputs.*.options.min_length_message"
|
|
9096
9383
|
},
|
|
9384
|
+
"max_words": {
|
|
9385
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words"
|
|
9386
|
+
},
|
|
9387
|
+
"max_words_message": {
|
|
9388
|
+
"$ref": "#/definitions/type._inputs.*.options.max_words_message"
|
|
9389
|
+
},
|
|
9390
|
+
"min_words": {
|
|
9391
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words"
|
|
9392
|
+
},
|
|
9393
|
+
"min_words_message": {
|
|
9394
|
+
"$ref": "#/definitions/type._inputs.*.options.min_words_message"
|
|
9395
|
+
},
|
|
9396
|
+
"max_graphemes": {
|
|
9397
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes"
|
|
9398
|
+
},
|
|
9399
|
+
"max_graphemes_message": {
|
|
9400
|
+
"$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
|
|
9401
|
+
},
|
|
9402
|
+
"min_graphemes": {
|
|
9403
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes"
|
|
9404
|
+
},
|
|
9405
|
+
"min_graphemes_message": {
|
|
9406
|
+
"$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
|
|
9407
|
+
},
|
|
9408
|
+
"locale": {
|
|
9409
|
+
"$ref": "#/definitions/type._inputs.*.options.locale"
|
|
9410
|
+
},
|
|
9097
9411
|
"pattern": {
|
|
9098
9412
|
"$ref": "#/definitions/type._inputs.*.options.pattern"
|
|
9099
9413
|
},
|
|
@@ -9626,13 +9940,13 @@
|
|
|
9626
9940
|
"type": "string",
|
|
9627
9941
|
"documented": true,
|
|
9628
9942
|
"title": "values_from_glob[*]",
|
|
9629
|
-
"description": "This key represents an individual glob pattern string in the `values_from_glob` array.\n\nThe value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension `.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure-value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n
|
|
9630
|
-
"markdownDescription": "This key represents an individual glob pattern string in the `values_from_glob` array.\n\nThe value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension `.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure-value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n
|
|
9943
|
+
"description": "This key represents an individual glob pattern string in the `values_from_glob` array.\n\nThe value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension `.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure-value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n values_from_glob:\n - /.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml\n values:\n - label: Employee\n value:\n name:\n title:\n profile_picture:\n - label: Manager\n value:\n name:\n title:\n profile_picture:\n url:\n```",
|
|
9944
|
+
"markdownDescription": "This key represents an individual glob pattern string in the `values_from_glob` array.\n\nThe value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension `.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure-value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n values_from_glob:\n - /.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml\n values:\n - label: Employee\n value:\n name:\n title:\n profile_picture:\n - label: Manager\n value:\n name:\n title:\n profile_picture:\n url:\n```"
|
|
9631
9945
|
},
|
|
9632
9946
|
"documented": true,
|
|
9633
9947
|
"title": "values_from_glob",
|
|
9634
|
-
"description": "This key defines globs that filter which files CloudCannon should use for *Structure* value configuration.\n\nValues in this array are relative to the root of your repository (i.e., `/`, not the value of `source`) and must end in the file extension\n`.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\nYou can use this key anywhere you would use the `_structures.*.values` key.\n\nPlease see our documentation on [structures_from_glob](https://cloudcannon.com/documentation/developer-reference/configuration-file/types/_structures_from_glob/) for defining a\n*Structure* in a split *Configuration File*.\n\nThis key has no default.\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure_value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n
|
|
9635
|
-
"markdownDescription": "This key defines globs that filter which files CloudCannon should use for *Structure* value configuration.\n\nValues in this array are relative to the root of your repository (i.e., `/`, not the value of `source`) and must end in the file extension\n`.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\nYou can use this key anywhere you would use the `_structures.*.values` key.\n\nPlease see our documentation on [structures_from_glob](https://cloudcannon.com/documentation/developer-reference/configuration-file/types/_structures_from_glob/) for defining a\n*Structure* in a split *Configuration File*.\n\nThis key has no default.\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure_value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n
|
|
9948
|
+
"description": "This key defines globs that filter which files CloudCannon should use for *Structure* value configuration.\n\nValues in this array are relative to the root of your repository (i.e., `/`, not the value of `source`) and must end in the file extension\n`.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\nYou can use this key anywhere you would use the `_structures.*.values` key.\n\nPlease see our documentation on [structures_from_glob](https://cloudcannon.com/documentation/developer-reference/configuration-file/types/_structures_from_glob/) for defining a\n*Structure* in a split *Configuration File*.\n\nThis key has no default.\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure_value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n values_from_glob:\n - /.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml\n values:\n - label: Employee\n value:\n name:\n title:\n profile_picture:\n - label: Manager\n value:\n name:\n title:\n profile_picture:\n url:\n```\n\n```yaml\nlabel: Board\nvalue:\n name:\n title:\n profile_picture:\n url:\n description:\n```",
|
|
9949
|
+
"markdownDescription": "This key defines globs that filter which files CloudCannon should use for *Structure* value configuration.\n\nValues in this array are relative to the root of your repository (i.e., `/`, not the value of `source`) and must end in the file extension\n`.cloudcannon.structure-value.yml` (note the singular form of \"value\").\n\nYou can use this key anywhere you would use the `_structures.*.values` key.\n\nPlease see our documentation on [structures_from_glob](https://cloudcannon.com/documentation/developer-reference/configuration-file/types/_structures_from_glob/) for defining a\n*Structure* in a split *Configuration File*.\n\nThis key has no default.\n\n## Examples\n\nIn this example, the `staff` Array Input uses inline *Structure* values from the main *Configuration File* and also references another value from the `boardMember.cloudcannon.structure_value.yml` in the `/.cloudcannon/structures/` folder.\n\n```yaml\n_inputs:\n staff:\n type: array\n options:\n structures:\n values_from_glob:\n - /.cloudcannon/structures/boardMember.cloudcannon.structure-value.yml\n values:\n - label: Employee\n value:\n name:\n title:\n profile_picture:\n - label: Manager\n value:\n name:\n title:\n profile_picture:\n url:\n```\n\n```yaml\nlabel: Board\nvalue:\n name:\n title:\n profile_picture:\n url:\n description:\n```"
|
|
9636
9950
|
},
|
|
9637
9951
|
"id_key": {
|
|
9638
9952
|
"description": "This key defines which key within `values[*].value` CloudCannon should use to identify the Structure option.\n\nIf CloudCannon cannot find this key in a Structure value, it will compare all other key names in the Structure value to find the correct one.\n\nBy default, this key is `_type`.\n\n## Examples\n\nIn this example, we have change the `id_key` from the default `_type` to `component` to match our existing configuration in the `content_blocks` Array input.\n\n```yaml\n_inputs:\n content_blocks___1___:\n type: array\n options:\n structures: _structures.page_components\n_structures:\n page_components:\n id_key___2___: component\n values:\n - label: Hero Component\n value:\n component___3___: hero\n title:\n description:\n image_path:\n link:\n text:\n url:\n - label: Feature Component\n value:\n component: feature\n image_path:\n title:\n description:\n button:\n link:\n text:\n reversed_layout: false\n - label: Video Component\n value:\n component: video\n image_path:\n videoUrl:\n```",
|