@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.
@@ -4620,6 +4620,33 @@
4620
4620
  "min_length_message": {
4621
4621
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
4622
4622
  },
4623
+ "max_words": {
4624
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
4625
+ },
4626
+ "max_words_message": {
4627
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
4628
+ },
4629
+ "min_words": {
4630
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
4631
+ },
4632
+ "min_words_message": {
4633
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
4634
+ },
4635
+ "max_graphemes": {
4636
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
4637
+ },
4638
+ "max_graphemes_message": {
4639
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
4640
+ },
4641
+ "min_graphemes": {
4642
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
4643
+ },
4644
+ "min_graphemes_message": {
4645
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
4646
+ },
4647
+ "locale": {
4648
+ "$ref": "#/definitions/type._inputs.*.options.locale"
4649
+ },
4623
4650
  "pattern": {
4624
4651
  "$ref": "#/definitions/type._inputs.*.options.pattern"
4625
4652
  },
@@ -4796,6 +4823,51 @@
4796
4823
  "type": "string",
4797
4824
  "markdownDescription": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`."
4798
4825
  },
4826
+ "type._inputs.*.options.max_words": {
4827
+ "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.",
4828
+ "type": "number",
4829
+ "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."
4830
+ },
4831
+ "type._inputs.*.options.max_words_message": {
4832
+ "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.",
4833
+ "type": "string",
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_words."
4835
+ },
4836
+ "type._inputs.*.options.min_words": {
4837
+ "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.",
4838
+ "type": "number",
4839
+ "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."
4840
+ },
4841
+ "type._inputs.*.options.min_words_message": {
4842
+ "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`.",
4843
+ "type": "string",
4844
+ "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`."
4845
+ },
4846
+ "type._inputs.*.options.max_graphemes": {
4847
+ "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.",
4848
+ "type": "number",
4849
+ "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."
4850
+ },
4851
+ "type._inputs.*.options.max_graphemes_message": {
4852
+ "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.",
4853
+ "type": "string",
4854
+ "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."
4855
+ },
4856
+ "type._inputs.*.options.min_graphemes": {
4857
+ "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.",
4858
+ "type": "number",
4859
+ "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."
4860
+ },
4861
+ "type._inputs.*.options.min_graphemes_message": {
4862
+ "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`.",
4863
+ "type": "string",
4864
+ "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`."
4865
+ },
4866
+ "type._inputs.*.options.locale": {
4867
+ "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.",
4868
+ "type": "string",
4869
+ "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."
4870
+ },
4799
4871
  "type._inputs.*.options.pattern": {
4800
4872
  "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.",
4801
4873
  "type": "string",
@@ -5027,6 +5099,33 @@
5027
5099
  "min_length_message": {
5028
5100
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5029
5101
  },
5102
+ "max_words": {
5103
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
5104
+ },
5105
+ "max_words_message": {
5106
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
5107
+ },
5108
+ "min_words": {
5109
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
5110
+ },
5111
+ "min_words_message": {
5112
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
5113
+ },
5114
+ "max_graphemes": {
5115
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
5116
+ },
5117
+ "max_graphemes_message": {
5118
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
5119
+ },
5120
+ "min_graphemes": {
5121
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
5122
+ },
5123
+ "min_graphemes_message": {
5124
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
5125
+ },
5126
+ "locale": {
5127
+ "$ref": "#/definitions/type._inputs.*.options.locale"
5128
+ },
5030
5129
  "pattern": {
5031
5130
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5032
5131
  },
@@ -5156,6 +5255,33 @@
5156
5255
  "min_length_message": {
5157
5256
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5158
5257
  },
5258
+ "max_words": {
5259
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
5260
+ },
5261
+ "max_words_message": {
5262
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
5263
+ },
5264
+ "min_words": {
5265
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
5266
+ },
5267
+ "min_words_message": {
5268
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
5269
+ },
5270
+ "max_graphemes": {
5271
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
5272
+ },
5273
+ "max_graphemes_message": {
5274
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
5275
+ },
5276
+ "min_graphemes": {
5277
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
5278
+ },
5279
+ "min_graphemes_message": {
5280
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
5281
+ },
5282
+ "locale": {
5283
+ "$ref": "#/definitions/type._inputs.*.options.locale"
5284
+ },
5159
5285
  "pattern": {
5160
5286
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5161
5287
  },
@@ -5379,6 +5505,33 @@
5379
5505
  "min_length_message": {
5380
5506
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5381
5507
  },
5508
+ "max_words": {
5509
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
5510
+ },
5511
+ "max_words_message": {
5512
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
5513
+ },
5514
+ "min_words": {
5515
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
5516
+ },
5517
+ "min_words_message": {
5518
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
5519
+ },
5520
+ "max_graphemes": {
5521
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
5522
+ },
5523
+ "max_graphemes_message": {
5524
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
5525
+ },
5526
+ "min_graphemes": {
5527
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
5528
+ },
5529
+ "min_graphemes_message": {
5530
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
5531
+ },
5532
+ "locale": {
5533
+ "$ref": "#/definitions/type._inputs.*.options.locale"
5534
+ },
5382
5535
  "pattern": {
5383
5536
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5384
5537
  },
@@ -5932,6 +6085,33 @@
5932
6085
  "min_length_message": {
5933
6086
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5934
6087
  },
6088
+ "max_words": {
6089
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
6090
+ },
6091
+ "max_words_message": {
6092
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
6093
+ },
6094
+ "min_words": {
6095
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
6096
+ },
6097
+ "min_words_message": {
6098
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
6099
+ },
6100
+ "max_graphemes": {
6101
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
6102
+ },
6103
+ "max_graphemes_message": {
6104
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
6105
+ },
6106
+ "min_graphemes": {
6107
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
6108
+ },
6109
+ "min_graphemes_message": {
6110
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
6111
+ },
6112
+ "locale": {
6113
+ "$ref": "#/definitions/type._inputs.*.options.locale"
6114
+ },
5935
6115
  "pattern": {
5936
6116
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5937
6117
  },
@@ -5955,10 +6135,16 @@
5955
6135
  ]
5956
6136
  },
5957
6137
  "allow_resize": {
5958
- "description": "Shows or hides the resize handler to vertically resize the input.",
6138
+ "deprecated": true,
6139
+ "description": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead.",
6140
+ "type": "boolean",
6141
+ "markdownDescription": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead."
6142
+ },
6143
+ "prevent_resize": {
6144
+ "description": "Hides the resize handler to vertically resize the input.",
5959
6145
  "default": false,
5960
6146
  "type": "boolean",
5961
- "markdownDescription": "Shows or hides the resize handler to vertically resize the input."
6147
+ "markdownDescription": "Hides the resize handler to vertically resize the input."
5962
6148
  },
5963
6149
  "initial_height": {
5964
6150
  "description": "Defines the initial height of this input in pixels (px).",
@@ -7195,6 +7381,33 @@
7195
7381
  "min_length_message": {
7196
7382
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
7197
7383
  },
7384
+ "max_words": {
7385
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
7386
+ },
7387
+ "max_words_message": {
7388
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
7389
+ },
7390
+ "min_words": {
7391
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
7392
+ },
7393
+ "min_words_message": {
7394
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
7395
+ },
7396
+ "max_graphemes": {
7397
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
7398
+ },
7399
+ "max_graphemes_message": {
7400
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
7401
+ },
7402
+ "min_graphemes": {
7403
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
7404
+ },
7405
+ "min_graphemes_message": {
7406
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
7407
+ },
7408
+ "locale": {
7409
+ "$ref": "#/definitions/type._inputs.*.options.locale"
7410
+ },
7198
7411
  "pattern": {
7199
7412
  "$ref": "#/definitions/type._inputs.*.options.pattern"
7200
7413
  },
@@ -7831,6 +8044,33 @@
7831
8044
  "min_length_message": {
7832
8045
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
7833
8046
  },
8047
+ "max_words": {
8048
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
8049
+ },
8050
+ "max_words_message": {
8051
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
8052
+ },
8053
+ "min_words": {
8054
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
8055
+ },
8056
+ "min_words_message": {
8057
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
8058
+ },
8059
+ "max_graphemes": {
8060
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
8061
+ },
8062
+ "max_graphemes_message": {
8063
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
8064
+ },
8065
+ "min_graphemes": {
8066
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
8067
+ },
8068
+ "min_graphemes_message": {
8069
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
8070
+ },
8071
+ "locale": {
8072
+ "$ref": "#/definitions/type._inputs.*.options.locale"
8073
+ },
7834
8074
  "pattern": {
7835
8075
  "$ref": "#/definitions/type._inputs.*.options.pattern"
7836
8076
  },
@@ -8016,6 +8256,33 @@
8016
8256
  "min_length_message": {
8017
8257
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
8018
8258
  },
8259
+ "max_words": {
8260
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
8261
+ },
8262
+ "max_words_message": {
8263
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
8264
+ },
8265
+ "min_words": {
8266
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
8267
+ },
8268
+ "min_words_message": {
8269
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
8270
+ },
8271
+ "max_graphemes": {
8272
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
8273
+ },
8274
+ "max_graphemes_message": {
8275
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
8276
+ },
8277
+ "min_graphemes": {
8278
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
8279
+ },
8280
+ "min_graphemes_message": {
8281
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
8282
+ },
8283
+ "locale": {
8284
+ "$ref": "#/definitions/type._inputs.*.options.locale"
8285
+ },
8019
8286
  "pattern": {
8020
8287
  "$ref": "#/definitions/type._inputs.*.options.pattern"
8021
8288
  },
@@ -8212,8 +8479,8 @@
8212
8479
  "markdownDescription": "Allows new text values to be created at edit time."
8213
8480
  },
8214
8481
  "type._inputs.*.options.allow_empty": {
8482
+ "deprecated": true,
8215
8483
  "description": "Provides an empty option alongside the options provided by values.",
8216
- "default": true,
8217
8484
  "type": "boolean",
8218
8485
  "markdownDescription": "Provides an empty option alongside the options provided by values."
8219
8486
  },
@@ -8565,6 +8832,33 @@
8565
8832
  "min_length_message": {
8566
8833
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
8567
8834
  },
8835
+ "max_words": {
8836
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
8837
+ },
8838
+ "max_words_message": {
8839
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
8840
+ },
8841
+ "min_words": {
8842
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
8843
+ },
8844
+ "min_words_message": {
8845
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
8846
+ },
8847
+ "max_graphemes": {
8848
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
8849
+ },
8850
+ "max_graphemes_message": {
8851
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
8852
+ },
8853
+ "min_graphemes": {
8854
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
8855
+ },
8856
+ "min_graphemes_message": {
8857
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
8858
+ },
8859
+ "locale": {
8860
+ "$ref": "#/definitions/type._inputs.*.options.locale"
8861
+ },
8568
8862
  "pattern": {
8569
8863
  "$ref": "#/definitions/type._inputs.*.options.pattern"
8570
8864
  },