@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.
@@ -4623,6 +4623,33 @@
4623
4623
  "min_length_message": {
4624
4624
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
4625
4625
  },
4626
+ "max_words": {
4627
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
4628
+ },
4629
+ "max_words_message": {
4630
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
4631
+ },
4632
+ "min_words": {
4633
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
4634
+ },
4635
+ "min_words_message": {
4636
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
4637
+ },
4638
+ "max_graphemes": {
4639
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
4640
+ },
4641
+ "max_graphemes_message": {
4642
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
4643
+ },
4644
+ "min_graphemes": {
4645
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
4646
+ },
4647
+ "min_graphemes_message": {
4648
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
4649
+ },
4650
+ "locale": {
4651
+ "$ref": "#/definitions/type._inputs.*.options.locale"
4652
+ },
4626
4653
  "pattern": {
4627
4654
  "$ref": "#/definitions/type._inputs.*.options.pattern"
4628
4655
  },
@@ -4799,6 +4826,51 @@
4799
4826
  "type": "string",
4800
4827
  "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`."
4801
4828
  },
4829
+ "type._inputs.*.options.max_words": {
4830
+ "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.",
4831
+ "type": "number",
4832
+ "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."
4833
+ },
4834
+ "type._inputs.*.options.max_words_message": {
4835
+ "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.",
4836
+ "type": "string",
4837
+ "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."
4838
+ },
4839
+ "type._inputs.*.options.min_words": {
4840
+ "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.",
4841
+ "type": "number",
4842
+ "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."
4843
+ },
4844
+ "type._inputs.*.options.min_words_message": {
4845
+ "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`.",
4846
+ "type": "string",
4847
+ "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`."
4848
+ },
4849
+ "type._inputs.*.options.max_graphemes": {
4850
+ "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.",
4851
+ "type": "number",
4852
+ "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."
4853
+ },
4854
+ "type._inputs.*.options.max_graphemes_message": {
4855
+ "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.",
4856
+ "type": "string",
4857
+ "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."
4858
+ },
4859
+ "type._inputs.*.options.min_graphemes": {
4860
+ "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.",
4861
+ "type": "number",
4862
+ "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."
4863
+ },
4864
+ "type._inputs.*.options.min_graphemes_message": {
4865
+ "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`.",
4866
+ "type": "string",
4867
+ "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`."
4868
+ },
4869
+ "type._inputs.*.options.locale": {
4870
+ "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.",
4871
+ "type": "string",
4872
+ "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."
4873
+ },
4802
4874
  "type._inputs.*.options.pattern": {
4803
4875
  "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.",
4804
4876
  "type": "string",
@@ -5030,6 +5102,33 @@
5030
5102
  "min_length_message": {
5031
5103
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5032
5104
  },
5105
+ "max_words": {
5106
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
5107
+ },
5108
+ "max_words_message": {
5109
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
5110
+ },
5111
+ "min_words": {
5112
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
5113
+ },
5114
+ "min_words_message": {
5115
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
5116
+ },
5117
+ "max_graphemes": {
5118
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
5119
+ },
5120
+ "max_graphemes_message": {
5121
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
5122
+ },
5123
+ "min_graphemes": {
5124
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
5125
+ },
5126
+ "min_graphemes_message": {
5127
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
5128
+ },
5129
+ "locale": {
5130
+ "$ref": "#/definitions/type._inputs.*.options.locale"
5131
+ },
5033
5132
  "pattern": {
5034
5133
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5035
5134
  },
@@ -5159,6 +5258,33 @@
5159
5258
  "min_length_message": {
5160
5259
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5161
5260
  },
5261
+ "max_words": {
5262
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
5263
+ },
5264
+ "max_words_message": {
5265
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
5266
+ },
5267
+ "min_words": {
5268
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
5269
+ },
5270
+ "min_words_message": {
5271
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
5272
+ },
5273
+ "max_graphemes": {
5274
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
5275
+ },
5276
+ "max_graphemes_message": {
5277
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
5278
+ },
5279
+ "min_graphemes": {
5280
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
5281
+ },
5282
+ "min_graphemes_message": {
5283
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
5284
+ },
5285
+ "locale": {
5286
+ "$ref": "#/definitions/type._inputs.*.options.locale"
5287
+ },
5162
5288
  "pattern": {
5163
5289
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5164
5290
  },
@@ -5382,6 +5508,33 @@
5382
5508
  "min_length_message": {
5383
5509
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5384
5510
  },
5511
+ "max_words": {
5512
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
5513
+ },
5514
+ "max_words_message": {
5515
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
5516
+ },
5517
+ "min_words": {
5518
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
5519
+ },
5520
+ "min_words_message": {
5521
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
5522
+ },
5523
+ "max_graphemes": {
5524
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
5525
+ },
5526
+ "max_graphemes_message": {
5527
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
5528
+ },
5529
+ "min_graphemes": {
5530
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
5531
+ },
5532
+ "min_graphemes_message": {
5533
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
5534
+ },
5535
+ "locale": {
5536
+ "$ref": "#/definitions/type._inputs.*.options.locale"
5537
+ },
5385
5538
  "pattern": {
5386
5539
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5387
5540
  },
@@ -5935,6 +6088,33 @@
5935
6088
  "min_length_message": {
5936
6089
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
5937
6090
  },
6091
+ "max_words": {
6092
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
6093
+ },
6094
+ "max_words_message": {
6095
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
6096
+ },
6097
+ "min_words": {
6098
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
6099
+ },
6100
+ "min_words_message": {
6101
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
6102
+ },
6103
+ "max_graphemes": {
6104
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
6105
+ },
6106
+ "max_graphemes_message": {
6107
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
6108
+ },
6109
+ "min_graphemes": {
6110
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
6111
+ },
6112
+ "min_graphemes_message": {
6113
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
6114
+ },
6115
+ "locale": {
6116
+ "$ref": "#/definitions/type._inputs.*.options.locale"
6117
+ },
5938
6118
  "pattern": {
5939
6119
  "$ref": "#/definitions/type._inputs.*.options.pattern"
5940
6120
  },
@@ -5958,10 +6138,16 @@
5958
6138
  ]
5959
6139
  },
5960
6140
  "allow_resize": {
5961
- "description": "Shows or hides the resize handler to vertically resize the input.",
6141
+ "deprecated": true,
6142
+ "description": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead.",
6143
+ "type": "boolean",
6144
+ "markdownDescription": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead."
6145
+ },
6146
+ "prevent_resize": {
6147
+ "description": "Hides the resize handler to vertically resize the input.",
5962
6148
  "default": false,
5963
6149
  "type": "boolean",
5964
- "markdownDescription": "Shows or hides the resize handler to vertically resize the input."
6150
+ "markdownDescription": "Hides the resize handler to vertically resize the input."
5965
6151
  },
5966
6152
  "initial_height": {
5967
6153
  "description": "Defines the initial height of this input in pixels (px).",
@@ -7198,6 +7384,33 @@
7198
7384
  "min_length_message": {
7199
7385
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
7200
7386
  },
7387
+ "max_words": {
7388
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
7389
+ },
7390
+ "max_words_message": {
7391
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
7392
+ },
7393
+ "min_words": {
7394
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
7395
+ },
7396
+ "min_words_message": {
7397
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
7398
+ },
7399
+ "max_graphemes": {
7400
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
7401
+ },
7402
+ "max_graphemes_message": {
7403
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
7404
+ },
7405
+ "min_graphemes": {
7406
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
7407
+ },
7408
+ "min_graphemes_message": {
7409
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
7410
+ },
7411
+ "locale": {
7412
+ "$ref": "#/definitions/type._inputs.*.options.locale"
7413
+ },
7201
7414
  "pattern": {
7202
7415
  "$ref": "#/definitions/type._inputs.*.options.pattern"
7203
7416
  },
@@ -7834,6 +8047,33 @@
7834
8047
  "min_length_message": {
7835
8048
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
7836
8049
  },
8050
+ "max_words": {
8051
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
8052
+ },
8053
+ "max_words_message": {
8054
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
8055
+ },
8056
+ "min_words": {
8057
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
8058
+ },
8059
+ "min_words_message": {
8060
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
8061
+ },
8062
+ "max_graphemes": {
8063
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
8064
+ },
8065
+ "max_graphemes_message": {
8066
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
8067
+ },
8068
+ "min_graphemes": {
8069
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
8070
+ },
8071
+ "min_graphemes_message": {
8072
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
8073
+ },
8074
+ "locale": {
8075
+ "$ref": "#/definitions/type._inputs.*.options.locale"
8076
+ },
7837
8077
  "pattern": {
7838
8078
  "$ref": "#/definitions/type._inputs.*.options.pattern"
7839
8079
  },
@@ -8019,6 +8259,33 @@
8019
8259
  "min_length_message": {
8020
8260
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
8021
8261
  },
8262
+ "max_words": {
8263
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
8264
+ },
8265
+ "max_words_message": {
8266
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
8267
+ },
8268
+ "min_words": {
8269
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
8270
+ },
8271
+ "min_words_message": {
8272
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
8273
+ },
8274
+ "max_graphemes": {
8275
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
8276
+ },
8277
+ "max_graphemes_message": {
8278
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
8279
+ },
8280
+ "min_graphemes": {
8281
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
8282
+ },
8283
+ "min_graphemes_message": {
8284
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
8285
+ },
8286
+ "locale": {
8287
+ "$ref": "#/definitions/type._inputs.*.options.locale"
8288
+ },
8022
8289
  "pattern": {
8023
8290
  "$ref": "#/definitions/type._inputs.*.options.pattern"
8024
8291
  },
@@ -8215,8 +8482,8 @@
8215
8482
  "markdownDescription": "Allows new text values to be created at edit time."
8216
8483
  },
8217
8484
  "type._inputs.*.options.allow_empty": {
8485
+ "deprecated": true,
8218
8486
  "description": "Provides an empty option alongside the options provided by values.",
8219
- "default": true,
8220
8487
  "type": "boolean",
8221
8488
  "markdownDescription": "Provides an empty option alongside the options provided by values."
8222
8489
  },
@@ -8568,6 +8835,33 @@
8568
8835
  "min_length_message": {
8569
8836
  "$ref": "#/definitions/type._inputs.*.options.min_length_message"
8570
8837
  },
8838
+ "max_words": {
8839
+ "$ref": "#/definitions/type._inputs.*.options.max_words"
8840
+ },
8841
+ "max_words_message": {
8842
+ "$ref": "#/definitions/type._inputs.*.options.max_words_message"
8843
+ },
8844
+ "min_words": {
8845
+ "$ref": "#/definitions/type._inputs.*.options.min_words"
8846
+ },
8847
+ "min_words_message": {
8848
+ "$ref": "#/definitions/type._inputs.*.options.min_words_message"
8849
+ },
8850
+ "max_graphemes": {
8851
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes"
8852
+ },
8853
+ "max_graphemes_message": {
8854
+ "$ref": "#/definitions/type._inputs.*.options.max_graphemes_message"
8855
+ },
8856
+ "min_graphemes": {
8857
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes"
8858
+ },
8859
+ "min_graphemes_message": {
8860
+ "$ref": "#/definitions/type._inputs.*.options.min_graphemes_message"
8861
+ },
8862
+ "locale": {
8863
+ "$ref": "#/definitions/type._inputs.*.options.locale"
8864
+ },
8571
8865
  "pattern": {
8572
8866
  "$ref": "#/definitions/type._inputs.*.options.pattern"
8573
8867
  },