@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.
@@ -4377,6 +4377,33 @@
4377
4377
  "min_length_message": {
4378
4378
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
4379
4379
  },
4380
+ "max_words": {
4381
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
4382
+ },
4383
+ "max_words_message": {
4384
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
4385
+ },
4386
+ "min_words": {
4387
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
4388
+ },
4389
+ "min_words_message": {
4390
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
4391
+ },
4392
+ "max_graphemes": {
4393
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
4394
+ },
4395
+ "max_graphemes_message": {
4396
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
4397
+ },
4398
+ "min_graphemes": {
4399
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
4400
+ },
4401
+ "min_graphemes_message": {
4402
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
4403
+ },
4404
+ "locale": {
4405
+ "$ref": "#/$defs/type._inputs.*.options.locale"
4406
+ },
4380
4407
  "pattern": {
4381
4408
  "$ref": "#/$defs/type._inputs.*.options.pattern"
4382
4409
  },
@@ -4525,6 +4552,51 @@
4525
4552
  "description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.",
4526
4553
  "type": "string"
4527
4554
  },
4555
+ "type._inputs.*.options.max_words": {
4556
+ "id": "type._inputs.*.options.max_words",
4557
+ "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.",
4558
+ "type": "number"
4559
+ },
4560
+ "type._inputs.*.options.max_words_message": {
4561
+ "id": "type._inputs.*.options.max_words_message",
4562
+ "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.",
4563
+ "type": "string"
4564
+ },
4565
+ "type._inputs.*.options.min_words": {
4566
+ "id": "type._inputs.*.options.min_words",
4567
+ "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.",
4568
+ "type": "number"
4569
+ },
4570
+ "type._inputs.*.options.min_words_message": {
4571
+ "id": "type._inputs.*.options.min_words_message",
4572
+ "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`.",
4573
+ "type": "string"
4574
+ },
4575
+ "type._inputs.*.options.max_graphemes": {
4576
+ "id": "type._inputs.*.options.max_graphemes",
4577
+ "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.",
4578
+ "type": "number"
4579
+ },
4580
+ "type._inputs.*.options.max_graphemes_message": {
4581
+ "id": "type._inputs.*.options.max_graphemes_message",
4582
+ "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.",
4583
+ "type": "string"
4584
+ },
4585
+ "type._inputs.*.options.min_graphemes": {
4586
+ "id": "type._inputs.*.options.min_graphemes",
4587
+ "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.",
4588
+ "type": "number"
4589
+ },
4590
+ "type._inputs.*.options.min_graphemes_message": {
4591
+ "id": "type._inputs.*.options.min_graphemes_message",
4592
+ "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`.",
4593
+ "type": "string"
4594
+ },
4595
+ "type._inputs.*.options.locale": {
4596
+ "id": "type._inputs.*.options.locale",
4597
+ "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.",
4598
+ "type": "string"
4599
+ },
4528
4600
  "type._inputs.*.options.pattern": {
4529
4601
  "id": "type._inputs.*.options.pattern",
4530
4602
  "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.",
@@ -4749,6 +4821,33 @@
4749
4821
  "min_length_message": {
4750
4822
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
4751
4823
  },
4824
+ "max_words": {
4825
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
4826
+ },
4827
+ "max_words_message": {
4828
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
4829
+ },
4830
+ "min_words": {
4831
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
4832
+ },
4833
+ "min_words_message": {
4834
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
4835
+ },
4836
+ "max_graphemes": {
4837
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
4838
+ },
4839
+ "max_graphemes_message": {
4840
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
4841
+ },
4842
+ "min_graphemes": {
4843
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
4844
+ },
4845
+ "min_graphemes_message": {
4846
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
4847
+ },
4848
+ "locale": {
4849
+ "$ref": "#/$defs/type._inputs.*.options.locale"
4850
+ },
4752
4851
  "pattern": {
4753
4852
  "$ref": "#/$defs/type._inputs.*.options.pattern"
4754
4853
  },
@@ -4857,6 +4956,33 @@
4857
4956
  "min_length_message": {
4858
4957
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
4859
4958
  },
4959
+ "max_words": {
4960
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
4961
+ },
4962
+ "max_words_message": {
4963
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
4964
+ },
4965
+ "min_words": {
4966
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
4967
+ },
4968
+ "min_words_message": {
4969
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
4970
+ },
4971
+ "max_graphemes": {
4972
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
4973
+ },
4974
+ "max_graphemes_message": {
4975
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
4976
+ },
4977
+ "min_graphemes": {
4978
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
4979
+ },
4980
+ "min_graphemes_message": {
4981
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
4982
+ },
4983
+ "locale": {
4984
+ "$ref": "#/$defs/type._inputs.*.options.locale"
4985
+ },
4860
4986
  "pattern": {
4861
4987
  "$ref": "#/$defs/type._inputs.*.options.pattern"
4862
4988
  },
@@ -5059,6 +5185,33 @@
5059
5185
  "min_length_message": {
5060
5186
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
5061
5187
  },
5188
+ "max_words": {
5189
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
5190
+ },
5191
+ "max_words_message": {
5192
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
5193
+ },
5194
+ "min_words": {
5195
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
5196
+ },
5197
+ "min_words_message": {
5198
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
5199
+ },
5200
+ "max_graphemes": {
5201
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
5202
+ },
5203
+ "max_graphemes_message": {
5204
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
5205
+ },
5206
+ "min_graphemes": {
5207
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
5208
+ },
5209
+ "min_graphemes_message": {
5210
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
5211
+ },
5212
+ "locale": {
5213
+ "$ref": "#/$defs/type._inputs.*.options.locale"
5214
+ },
5062
5215
  "pattern": {
5063
5216
  "$ref": "#/$defs/type._inputs.*.options.pattern"
5064
5217
  },
@@ -5543,6 +5696,33 @@
5543
5696
  "min_length_message": {
5544
5697
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
5545
5698
  },
5699
+ "max_words": {
5700
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
5701
+ },
5702
+ "max_words_message": {
5703
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
5704
+ },
5705
+ "min_words": {
5706
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
5707
+ },
5708
+ "min_words_message": {
5709
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
5710
+ },
5711
+ "max_graphemes": {
5712
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
5713
+ },
5714
+ "max_graphemes_message": {
5715
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
5716
+ },
5717
+ "min_graphemes": {
5718
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
5719
+ },
5720
+ "min_graphemes_message": {
5721
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
5722
+ },
5723
+ "locale": {
5724
+ "$ref": "#/$defs/type._inputs.*.options.locale"
5725
+ },
5546
5726
  "pattern": {
5547
5727
  "$ref": "#/$defs/type._inputs.*.options.pattern"
5548
5728
  },
@@ -5562,7 +5742,12 @@
5562
5742
  "$ref": "#/$defs/type._inputs.*.options.empty_type(text)"
5563
5743
  },
5564
5744
  "allow_resize": {
5565
- "description": "Shows or hides the resize handler to vertically resize the input.",
5745
+ "deprecated": true,
5746
+ "description": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead.",
5747
+ "type": "boolean"
5748
+ },
5749
+ "prevent_resize": {
5750
+ "description": "Hides the resize handler to vertically resize the input.",
5566
5751
  "default": false,
5567
5752
  "type": "boolean"
5568
5753
  },
@@ -6725,6 +6910,33 @@
6725
6910
  "min_length_message": {
6726
6911
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
6727
6912
  },
6913
+ "max_words": {
6914
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
6915
+ },
6916
+ "max_words_message": {
6917
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
6918
+ },
6919
+ "min_words": {
6920
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
6921
+ },
6922
+ "min_words_message": {
6923
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
6924
+ },
6925
+ "max_graphemes": {
6926
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
6927
+ },
6928
+ "max_graphemes_message": {
6929
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
6930
+ },
6931
+ "min_graphemes": {
6932
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
6933
+ },
6934
+ "min_graphemes_message": {
6935
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
6936
+ },
6937
+ "locale": {
6938
+ "$ref": "#/$defs/type._inputs.*.options.locale"
6939
+ },
6728
6940
  "pattern": {
6729
6941
  "$ref": "#/$defs/type._inputs.*.options.pattern"
6730
6942
  },
@@ -7342,6 +7554,33 @@
7342
7554
  "min_length_message": {
7343
7555
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
7344
7556
  },
7557
+ "max_words": {
7558
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
7559
+ },
7560
+ "max_words_message": {
7561
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
7562
+ },
7563
+ "min_words": {
7564
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
7565
+ },
7566
+ "min_words_message": {
7567
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
7568
+ },
7569
+ "max_graphemes": {
7570
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
7571
+ },
7572
+ "max_graphemes_message": {
7573
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
7574
+ },
7575
+ "min_graphemes": {
7576
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
7577
+ },
7578
+ "min_graphemes_message": {
7579
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
7580
+ },
7581
+ "locale": {
7582
+ "$ref": "#/$defs/type._inputs.*.options.locale"
7583
+ },
7345
7584
  "pattern": {
7346
7585
  "$ref": "#/$defs/type._inputs.*.options.pattern"
7347
7586
  },
@@ -7496,6 +7735,33 @@
7496
7735
  "min_length_message": {
7497
7736
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
7498
7737
  },
7738
+ "max_words": {
7739
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
7740
+ },
7741
+ "max_words_message": {
7742
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
7743
+ },
7744
+ "min_words": {
7745
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
7746
+ },
7747
+ "min_words_message": {
7748
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
7749
+ },
7750
+ "max_graphemes": {
7751
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
7752
+ },
7753
+ "max_graphemes_message": {
7754
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
7755
+ },
7756
+ "min_graphemes": {
7757
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
7758
+ },
7759
+ "min_graphemes_message": {
7760
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
7761
+ },
7762
+ "locale": {
7763
+ "$ref": "#/$defs/type._inputs.*.options.locale"
7764
+ },
7499
7765
  "pattern": {
7500
7766
  "$ref": "#/$defs/type._inputs.*.options.pattern"
7501
7767
  },
@@ -7668,8 +7934,8 @@
7668
7934
  },
7669
7935
  "type._inputs.*.options.allow_empty": {
7670
7936
  "id": "type._inputs.*.options.allow_empty",
7937
+ "deprecated": true,
7671
7938
  "description": "Provides an empty option alongside the options provided by values.",
7672
- "default": true,
7673
7939
  "type": "boolean"
7674
7940
  },
7675
7941
  "type._inputs.*.options.values": {
@@ -7978,6 +8244,33 @@
7978
8244
  "min_length_message": {
7979
8245
  "$ref": "#/$defs/type._inputs.*.options.min_length_message"
7980
8246
  },
8247
+ "max_words": {
8248
+ "$ref": "#/$defs/type._inputs.*.options.max_words"
8249
+ },
8250
+ "max_words_message": {
8251
+ "$ref": "#/$defs/type._inputs.*.options.max_words_message"
8252
+ },
8253
+ "min_words": {
8254
+ "$ref": "#/$defs/type._inputs.*.options.min_words"
8255
+ },
8256
+ "min_words_message": {
8257
+ "$ref": "#/$defs/type._inputs.*.options.min_words_message"
8258
+ },
8259
+ "max_graphemes": {
8260
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes"
8261
+ },
8262
+ "max_graphemes_message": {
8263
+ "$ref": "#/$defs/type._inputs.*.options.max_graphemes_message"
8264
+ },
8265
+ "min_graphemes": {
8266
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes"
8267
+ },
8268
+ "min_graphemes_message": {
8269
+ "$ref": "#/$defs/type._inputs.*.options.min_graphemes_message"
8270
+ },
8271
+ "locale": {
8272
+ "$ref": "#/$defs/type._inputs.*.options.locale"
8273
+ },
7981
8274
  "pattern": {
7982
8275
  "$ref": "#/$defs/type._inputs.*.options.pattern"
7983
8276
  },