@cloudcannon/configuration-types 0.0.39 → 0.0.40

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.
@@ -4894,60 +4894,79 @@
4894
4894
  "description": "Controls the color of the icon.",
4895
4895
  "allOf": [
4896
4896
  {
4897
- "$ref": "#/definitions/PreviewEntry"
4897
+ "$ref": "#/definitions/PreviewEntries"
4898
4898
  }
4899
4899
  ],
4900
4900
  "markdownDescription": "Controls the color of the icon."
4901
4901
  },
4902
- "PreviewEntry": {
4903
- "id": "PreviewEntry",
4902
+ "PreviewEntries": {
4903
+ "id": "PreviewEntries",
4904
4904
  "anyOf": [
4905
4905
  {
4906
4906
  "type": "array",
4907
4907
  "items": {
4908
- "anyOf": [
4909
- {
4910
- "type": "object",
4911
- "properties": {
4912
- "key": {
4913
- "description": "The key used to access the value used for the preview.",
4914
- "type": "string",
4915
- "markdownDescription": "The key used to access the value used for the preview."
4916
- }
4917
- },
4918
- "required": [
4919
- "key"
4920
- ],
4921
- "additionalProperties": false
4922
- },
4923
- {
4924
- "type": "object",
4925
- "properties": {
4926
- "template": {
4927
- "description": "A template string containing various placeholders for the value used in the preview.",
4928
- "type": "string",
4929
- "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4930
- }
4931
- },
4932
- "required": [
4933
- "template"
4934
- ],
4935
- "additionalProperties": false
4936
- },
4937
- {
4938
- "type": "string"
4939
- },
4940
- {
4941
- "type": "boolean"
4942
- }
4943
- ]
4908
+ "$ref": "#/definitions/PreviewEntry"
4944
4909
  }
4945
4910
  },
4946
4911
  {
4947
4912
  "type": "string"
4948
4913
  },
4949
4914
  {
4950
- "type": "boolean"
4915
+ "type": "boolean",
4916
+ "const": false
4917
+ }
4918
+ ]
4919
+ },
4920
+ "PreviewEntry": {
4921
+ "anyOf": [
4922
+ {
4923
+ "type": "object",
4924
+ "properties": {
4925
+ "key": {
4926
+ "description": "The key used to access the value used for the preview.",
4927
+ "type": "string",
4928
+ "markdownDescription": "The key used to access the value used for the preview."
4929
+ }
4930
+ },
4931
+ "required": [
4932
+ "key"
4933
+ ],
4934
+ "additionalProperties": false
4935
+ },
4936
+ {
4937
+ "type": "object",
4938
+ "properties": {
4939
+ "template": {
4940
+ "description": "A template string containing various placeholders for the value used in the preview.",
4941
+ "type": "string",
4942
+ "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4943
+ }
4944
+ },
4945
+ "required": [
4946
+ "template"
4947
+ ],
4948
+ "additionalProperties": false
4949
+ },
4950
+ {
4951
+ "type": "object",
4952
+ "properties": {
4953
+ "text": {
4954
+ "description": "The raw text used as the value for the preview.",
4955
+ "type": "string",
4956
+ "markdownDescription": "The raw text used as the value for the preview."
4957
+ }
4958
+ },
4959
+ "required": [
4960
+ "text"
4961
+ ],
4962
+ "additionalProperties": false
4963
+ },
4964
+ {
4965
+ "type": "string"
4966
+ },
4967
+ {
4968
+ "type": "boolean",
4969
+ "const": false
4951
4970
  }
4952
4971
  ]
4953
4972
  },
@@ -4955,7 +4974,7 @@
4955
4974
  "description": "Controls the background color of the icon.",
4956
4975
  "allOf": [
4957
4976
  {
4958
- "$ref": "#/definitions/PreviewEntry"
4977
+ "$ref": "#/definitions/PreviewEntries"
4959
4978
  }
4960
4979
  ],
4961
4980
  "markdownDescription": "Controls the background color of the icon."
@@ -8168,7 +8187,7 @@
8168
8187
  "description": "Controls the supporting text shown per item.",
8169
8188
  "allOf": [
8170
8189
  {
8171
- "$ref": "#/definitions/PreviewEntry"
8190
+ "$ref": "#/definitions/PreviewEntries"
8172
8191
  }
8173
8192
  ],
8174
8193
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8201,6 +8220,14 @@
8201
8220
  }
8202
8221
  ]
8203
8222
  },
8223
+ "tags": {
8224
+ "description": "Defines a list of tags.",
8225
+ "type": "array",
8226
+ "items": {
8227
+ "type": "string"
8228
+ },
8229
+ "markdownDescription": "Defines a list of tags."
8230
+ },
8204
8231
  "metadata": {
8205
8232
  "description": "Defines a list of items that can contain an image, icon, and text.",
8206
8233
  "type": "array",
@@ -8226,7 +8253,7 @@
8226
8253
  "description": "Controls the main text shown per item.",
8227
8254
  "allOf": [
8228
8255
  {
8229
- "$ref": "#/definitions/PreviewEntry"
8256
+ "$ref": "#/definitions/PreviewEntries"
8230
8257
  }
8231
8258
  ],
8232
8259
  "markdownDescription": "Controls the main text shown per item."
@@ -8235,7 +8262,7 @@
8235
8262
  "description": "Controls the image shown per item.",
8236
8263
  "allOf": [
8237
8264
  {
8238
- "$ref": "#/definitions/PreviewEntry"
8265
+ "$ref": "#/definitions/PreviewEntries"
8239
8266
  }
8240
8267
  ],
8241
8268
  "markdownDescription": "Controls the image shown per item."
@@ -8244,7 +8271,7 @@
8244
8271
  "description": "Controls the icon shown per item. Must result in a Material Symbol name.",
8245
8272
  "allOf": [
8246
8273
  {
8247
- "$ref": "#/definitions/PreviewEntry"
8274
+ "$ref": "#/definitions/PreviewEntries"
8248
8275
  }
8249
8276
  ],
8250
8277
  "markdownDescription": "Controls the icon shown per item. Must result in a Material Symbol name."
@@ -8349,7 +8376,7 @@
8349
8376
  "description": "Controls the background color gallery area.",
8350
8377
  "allOf": [
8351
8378
  {
8352
- "$ref": "#/definitions/PreviewEntry"
8379
+ "$ref": "#/definitions/PreviewEntries"
8353
8380
  }
8354
8381
  ],
8355
8382
  "markdownDescription": "Controls the background color gallery area."
@@ -8374,7 +8401,7 @@
8374
8401
  "description": "Controls the supporting text shown per item.",
8375
8402
  "allOf": [
8376
8403
  {
8377
- "$ref": "#/definitions/PreviewEntry"
8404
+ "$ref": "#/definitions/PreviewEntries"
8378
8405
  }
8379
8406
  ],
8380
8407
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8407,6 +8434,14 @@
8407
8434
  }
8408
8435
  ]
8409
8436
  },
8437
+ "tags": {
8438
+ "description": "Defines a list of tags.",
8439
+ "type": "array",
8440
+ "items": {
8441
+ "type": "string"
8442
+ },
8443
+ "markdownDescription": "Defines a list of tags."
8444
+ },
8410
8445
  "metadata": {
8411
8446
  "description": "Defines a list of items that can contain an image, icon, and text.",
8412
8447
  "type": "array",
@@ -4501,60 +4501,79 @@
4501
4501
  "description": "Controls the color of the icon.",
4502
4502
  "allOf": [
4503
4503
  {
4504
- "$ref": "#/definitions/PreviewEntry"
4504
+ "$ref": "#/definitions/PreviewEntries"
4505
4505
  }
4506
4506
  ],
4507
4507
  "markdownDescription": "Controls the color of the icon."
4508
4508
  },
4509
- "PreviewEntry": {
4510
- "id": "PreviewEntry",
4509
+ "PreviewEntries": {
4510
+ "id": "PreviewEntries",
4511
4511
  "anyOf": [
4512
4512
  {
4513
4513
  "type": "array",
4514
4514
  "items": {
4515
- "anyOf": [
4516
- {
4517
- "type": "object",
4518
- "properties": {
4519
- "key": {
4520
- "description": "The key used to access the value used for the preview.",
4521
- "type": "string",
4522
- "markdownDescription": "The key used to access the value used for the preview."
4523
- }
4524
- },
4525
- "required": [
4526
- "key"
4527
- ],
4528
- "additionalProperties": false
4529
- },
4530
- {
4531
- "type": "object",
4532
- "properties": {
4533
- "template": {
4534
- "description": "A template string containing various placeholders for the value used in the preview.",
4535
- "type": "string",
4536
- "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4537
- }
4538
- },
4539
- "required": [
4540
- "template"
4541
- ],
4542
- "additionalProperties": false
4543
- },
4544
- {
4545
- "type": "string"
4546
- },
4547
- {
4548
- "type": "boolean"
4549
- }
4550
- ]
4515
+ "$ref": "#/definitions/PreviewEntry"
4551
4516
  }
4552
4517
  },
4553
4518
  {
4554
4519
  "type": "string"
4555
4520
  },
4556
4521
  {
4557
- "type": "boolean"
4522
+ "type": "boolean",
4523
+ "const": false
4524
+ }
4525
+ ]
4526
+ },
4527
+ "PreviewEntry": {
4528
+ "anyOf": [
4529
+ {
4530
+ "type": "object",
4531
+ "properties": {
4532
+ "key": {
4533
+ "description": "The key used to access the value used for the preview.",
4534
+ "type": "string",
4535
+ "markdownDescription": "The key used to access the value used for the preview."
4536
+ }
4537
+ },
4538
+ "required": [
4539
+ "key"
4540
+ ],
4541
+ "additionalProperties": false
4542
+ },
4543
+ {
4544
+ "type": "object",
4545
+ "properties": {
4546
+ "template": {
4547
+ "description": "A template string containing various placeholders for the value used in the preview.",
4548
+ "type": "string",
4549
+ "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4550
+ }
4551
+ },
4552
+ "required": [
4553
+ "template"
4554
+ ],
4555
+ "additionalProperties": false
4556
+ },
4557
+ {
4558
+ "type": "object",
4559
+ "properties": {
4560
+ "text": {
4561
+ "description": "The raw text used as the value for the preview.",
4562
+ "type": "string",
4563
+ "markdownDescription": "The raw text used as the value for the preview."
4564
+ }
4565
+ },
4566
+ "required": [
4567
+ "text"
4568
+ ],
4569
+ "additionalProperties": false
4570
+ },
4571
+ {
4572
+ "type": "string"
4573
+ },
4574
+ {
4575
+ "type": "boolean",
4576
+ "const": false
4558
4577
  }
4559
4578
  ]
4560
4579
  },
@@ -4562,7 +4581,7 @@
4562
4581
  "description": "Controls the background color of the icon.",
4563
4582
  "allOf": [
4564
4583
  {
4565
- "$ref": "#/definitions/PreviewEntry"
4584
+ "$ref": "#/definitions/PreviewEntries"
4566
4585
  }
4567
4586
  ],
4568
4587
  "markdownDescription": "Controls the background color of the icon."
@@ -7775,7 +7794,7 @@
7775
7794
  "description": "Controls the supporting text shown per item.",
7776
7795
  "allOf": [
7777
7796
  {
7778
- "$ref": "#/definitions/PreviewEntry"
7797
+ "$ref": "#/definitions/PreviewEntries"
7779
7798
  }
7780
7799
  ],
7781
7800
  "markdownDescription": "Controls the supporting text shown per item."
@@ -7808,6 +7827,14 @@
7808
7827
  }
7809
7828
  ]
7810
7829
  },
7830
+ "tags": {
7831
+ "description": "Defines a list of tags.",
7832
+ "type": "array",
7833
+ "items": {
7834
+ "type": "string"
7835
+ },
7836
+ "markdownDescription": "Defines a list of tags."
7837
+ },
7811
7838
  "metadata": {
7812
7839
  "description": "Defines a list of items that can contain an image, icon, and text.",
7813
7840
  "type": "array",
@@ -7833,7 +7860,7 @@
7833
7860
  "description": "Controls the main text shown per item.",
7834
7861
  "allOf": [
7835
7862
  {
7836
- "$ref": "#/definitions/PreviewEntry"
7863
+ "$ref": "#/definitions/PreviewEntries"
7837
7864
  }
7838
7865
  ],
7839
7866
  "markdownDescription": "Controls the main text shown per item."
@@ -7842,7 +7869,7 @@
7842
7869
  "description": "Controls the image shown per item.",
7843
7870
  "allOf": [
7844
7871
  {
7845
- "$ref": "#/definitions/PreviewEntry"
7872
+ "$ref": "#/definitions/PreviewEntries"
7846
7873
  }
7847
7874
  ],
7848
7875
  "markdownDescription": "Controls the image shown per item."
@@ -7851,7 +7878,7 @@
7851
7878
  "description": "Controls the icon shown per item. Must result in a Material Symbol name.",
7852
7879
  "allOf": [
7853
7880
  {
7854
- "$ref": "#/definitions/PreviewEntry"
7881
+ "$ref": "#/definitions/PreviewEntries"
7855
7882
  }
7856
7883
  ],
7857
7884
  "markdownDescription": "Controls the icon shown per item. Must result in a Material Symbol name."
@@ -7956,7 +7983,7 @@
7956
7983
  "description": "Controls the background color gallery area.",
7957
7984
  "allOf": [
7958
7985
  {
7959
- "$ref": "#/definitions/PreviewEntry"
7986
+ "$ref": "#/definitions/PreviewEntries"
7960
7987
  }
7961
7988
  ],
7962
7989
  "markdownDescription": "Controls the background color gallery area."
@@ -7981,7 +8008,7 @@
7981
8008
  "description": "Controls the supporting text shown per item.",
7982
8009
  "allOf": [
7983
8010
  {
7984
- "$ref": "#/definitions/PreviewEntry"
8011
+ "$ref": "#/definitions/PreviewEntries"
7985
8012
  }
7986
8013
  ],
7987
8014
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8014,6 +8041,14 @@
8014
8041
  }
8015
8042
  ]
8016
8043
  },
8044
+ "tags": {
8045
+ "description": "Defines a list of tags.",
8046
+ "type": "array",
8047
+ "items": {
8048
+ "type": "string"
8049
+ },
8050
+ "markdownDescription": "Defines a list of tags."
8051
+ },
8017
8052
  "metadata": {
8018
8053
  "description": "Defines a list of items that can contain an image, icon, and text.",
8019
8054
  "type": "array",
@@ -4911,60 +4911,79 @@
4911
4911
  "description": "Controls the color of the icon.",
4912
4912
  "allOf": [
4913
4913
  {
4914
- "$ref": "#/definitions/PreviewEntry"
4914
+ "$ref": "#/definitions/PreviewEntries"
4915
4915
  }
4916
4916
  ],
4917
4917
  "markdownDescription": "Controls the color of the icon."
4918
4918
  },
4919
- "PreviewEntry": {
4920
- "id": "PreviewEntry",
4919
+ "PreviewEntries": {
4920
+ "id": "PreviewEntries",
4921
4921
  "anyOf": [
4922
4922
  {
4923
4923
  "type": "array",
4924
4924
  "items": {
4925
- "anyOf": [
4926
- {
4927
- "type": "object",
4928
- "properties": {
4929
- "key": {
4930
- "description": "The key used to access the value used for the preview.",
4931
- "type": "string",
4932
- "markdownDescription": "The key used to access the value used for the preview."
4933
- }
4934
- },
4935
- "required": [
4936
- "key"
4937
- ],
4938
- "additionalProperties": false
4939
- },
4940
- {
4941
- "type": "object",
4942
- "properties": {
4943
- "template": {
4944
- "description": "A template string containing various placeholders for the value used in the preview.",
4945
- "type": "string",
4946
- "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4947
- }
4948
- },
4949
- "required": [
4950
- "template"
4951
- ],
4952
- "additionalProperties": false
4953
- },
4954
- {
4955
- "type": "string"
4956
- },
4957
- {
4958
- "type": "boolean"
4959
- }
4960
- ]
4925
+ "$ref": "#/definitions/PreviewEntry"
4961
4926
  }
4962
4927
  },
4963
4928
  {
4964
4929
  "type": "string"
4965
4930
  },
4966
4931
  {
4967
- "type": "boolean"
4932
+ "type": "boolean",
4933
+ "const": false
4934
+ }
4935
+ ]
4936
+ },
4937
+ "PreviewEntry": {
4938
+ "anyOf": [
4939
+ {
4940
+ "type": "object",
4941
+ "properties": {
4942
+ "key": {
4943
+ "description": "The key used to access the value used for the preview.",
4944
+ "type": "string",
4945
+ "markdownDescription": "The key used to access the value used for the preview."
4946
+ }
4947
+ },
4948
+ "required": [
4949
+ "key"
4950
+ ],
4951
+ "additionalProperties": false
4952
+ },
4953
+ {
4954
+ "type": "object",
4955
+ "properties": {
4956
+ "template": {
4957
+ "description": "A template string containing various placeholders for the value used in the preview.",
4958
+ "type": "string",
4959
+ "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4960
+ }
4961
+ },
4962
+ "required": [
4963
+ "template"
4964
+ ],
4965
+ "additionalProperties": false
4966
+ },
4967
+ {
4968
+ "type": "object",
4969
+ "properties": {
4970
+ "text": {
4971
+ "description": "The raw text used as the value for the preview.",
4972
+ "type": "string",
4973
+ "markdownDescription": "The raw text used as the value for the preview."
4974
+ }
4975
+ },
4976
+ "required": [
4977
+ "text"
4978
+ ],
4979
+ "additionalProperties": false
4980
+ },
4981
+ {
4982
+ "type": "string"
4983
+ },
4984
+ {
4985
+ "type": "boolean",
4986
+ "const": false
4968
4987
  }
4969
4988
  ]
4970
4989
  },
@@ -4972,7 +4991,7 @@
4972
4991
  "description": "Controls the background color of the icon.",
4973
4992
  "allOf": [
4974
4993
  {
4975
- "$ref": "#/definitions/PreviewEntry"
4994
+ "$ref": "#/definitions/PreviewEntries"
4976
4995
  }
4977
4996
  ],
4978
4997
  "markdownDescription": "Controls the background color of the icon."
@@ -8185,7 +8204,7 @@
8185
8204
  "description": "Controls the supporting text shown per item.",
8186
8205
  "allOf": [
8187
8206
  {
8188
- "$ref": "#/definitions/PreviewEntry"
8207
+ "$ref": "#/definitions/PreviewEntries"
8189
8208
  }
8190
8209
  ],
8191
8210
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8218,6 +8237,14 @@
8218
8237
  }
8219
8238
  ]
8220
8239
  },
8240
+ "tags": {
8241
+ "description": "Defines a list of tags.",
8242
+ "type": "array",
8243
+ "items": {
8244
+ "type": "string"
8245
+ },
8246
+ "markdownDescription": "Defines a list of tags."
8247
+ },
8221
8248
  "metadata": {
8222
8249
  "description": "Defines a list of items that can contain an image, icon, and text.",
8223
8250
  "type": "array",
@@ -8243,7 +8270,7 @@
8243
8270
  "description": "Controls the main text shown per item.",
8244
8271
  "allOf": [
8245
8272
  {
8246
- "$ref": "#/definitions/PreviewEntry"
8273
+ "$ref": "#/definitions/PreviewEntries"
8247
8274
  }
8248
8275
  ],
8249
8276
  "markdownDescription": "Controls the main text shown per item."
@@ -8252,7 +8279,7 @@
8252
8279
  "description": "Controls the image shown per item.",
8253
8280
  "allOf": [
8254
8281
  {
8255
- "$ref": "#/definitions/PreviewEntry"
8282
+ "$ref": "#/definitions/PreviewEntries"
8256
8283
  }
8257
8284
  ],
8258
8285
  "markdownDescription": "Controls the image shown per item."
@@ -8261,7 +8288,7 @@
8261
8288
  "description": "Controls the icon shown per item. Must result in a Material Symbol name.",
8262
8289
  "allOf": [
8263
8290
  {
8264
- "$ref": "#/definitions/PreviewEntry"
8291
+ "$ref": "#/definitions/PreviewEntries"
8265
8292
  }
8266
8293
  ],
8267
8294
  "markdownDescription": "Controls the icon shown per item. Must result in a Material Symbol name."
@@ -8366,7 +8393,7 @@
8366
8393
  "description": "Controls the background color gallery area.",
8367
8394
  "allOf": [
8368
8395
  {
8369
- "$ref": "#/definitions/PreviewEntry"
8396
+ "$ref": "#/definitions/PreviewEntries"
8370
8397
  }
8371
8398
  ],
8372
8399
  "markdownDescription": "Controls the background color gallery area."
@@ -8391,7 +8418,7 @@
8391
8418
  "description": "Controls the supporting text shown per item.",
8392
8419
  "allOf": [
8393
8420
  {
8394
- "$ref": "#/definitions/PreviewEntry"
8421
+ "$ref": "#/definitions/PreviewEntries"
8395
8422
  }
8396
8423
  ],
8397
8424
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8424,6 +8451,14 @@
8424
8451
  }
8425
8452
  ]
8426
8453
  },
8454
+ "tags": {
8455
+ "description": "Defines a list of tags.",
8456
+ "type": "array",
8457
+ "items": {
8458
+ "type": "string"
8459
+ },
8460
+ "markdownDescription": "Defines a list of tags."
8461
+ },
8427
8462
  "metadata": {
8428
8463
  "description": "Defines a list of items that can contain an image, icon, and text.",
8429
8464
  "type": "array",
@@ -4501,60 +4501,79 @@
4501
4501
  "description": "Controls the color of the icon.",
4502
4502
  "allOf": [
4503
4503
  {
4504
- "$ref": "#/definitions/PreviewEntry"
4504
+ "$ref": "#/definitions/PreviewEntries"
4505
4505
  }
4506
4506
  ],
4507
4507
  "markdownDescription": "Controls the color of the icon."
4508
4508
  },
4509
- "PreviewEntry": {
4510
- "id": "PreviewEntry",
4509
+ "PreviewEntries": {
4510
+ "id": "PreviewEntries",
4511
4511
  "anyOf": [
4512
4512
  {
4513
4513
  "type": "array",
4514
4514
  "items": {
4515
- "anyOf": [
4516
- {
4517
- "type": "object",
4518
- "properties": {
4519
- "key": {
4520
- "description": "The key used to access the value used for the preview.",
4521
- "type": "string",
4522
- "markdownDescription": "The key used to access the value used for the preview."
4523
- }
4524
- },
4525
- "required": [
4526
- "key"
4527
- ],
4528
- "additionalProperties": false
4529
- },
4530
- {
4531
- "type": "object",
4532
- "properties": {
4533
- "template": {
4534
- "description": "A template string containing various placeholders for the value used in the preview.",
4535
- "type": "string",
4536
- "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4537
- }
4538
- },
4539
- "required": [
4540
- "template"
4541
- ],
4542
- "additionalProperties": false
4543
- },
4544
- {
4545
- "type": "string"
4546
- },
4547
- {
4548
- "type": "boolean"
4549
- }
4550
- ]
4515
+ "$ref": "#/definitions/PreviewEntry"
4551
4516
  }
4552
4517
  },
4553
4518
  {
4554
4519
  "type": "string"
4555
4520
  },
4556
4521
  {
4557
- "type": "boolean"
4522
+ "type": "boolean",
4523
+ "const": false
4524
+ }
4525
+ ]
4526
+ },
4527
+ "PreviewEntry": {
4528
+ "anyOf": [
4529
+ {
4530
+ "type": "object",
4531
+ "properties": {
4532
+ "key": {
4533
+ "description": "The key used to access the value used for the preview.",
4534
+ "type": "string",
4535
+ "markdownDescription": "The key used to access the value used for the preview."
4536
+ }
4537
+ },
4538
+ "required": [
4539
+ "key"
4540
+ ],
4541
+ "additionalProperties": false
4542
+ },
4543
+ {
4544
+ "type": "object",
4545
+ "properties": {
4546
+ "template": {
4547
+ "description": "A template string containing various placeholders for the value used in the preview.",
4548
+ "type": "string",
4549
+ "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4550
+ }
4551
+ },
4552
+ "required": [
4553
+ "template"
4554
+ ],
4555
+ "additionalProperties": false
4556
+ },
4557
+ {
4558
+ "type": "object",
4559
+ "properties": {
4560
+ "text": {
4561
+ "description": "The raw text used as the value for the preview.",
4562
+ "type": "string",
4563
+ "markdownDescription": "The raw text used as the value for the preview."
4564
+ }
4565
+ },
4566
+ "required": [
4567
+ "text"
4568
+ ],
4569
+ "additionalProperties": false
4570
+ },
4571
+ {
4572
+ "type": "string"
4573
+ },
4574
+ {
4575
+ "type": "boolean",
4576
+ "const": false
4558
4577
  }
4559
4578
  ]
4560
4579
  },
@@ -4562,7 +4581,7 @@
4562
4581
  "description": "Controls the background color of the icon.",
4563
4582
  "allOf": [
4564
4583
  {
4565
- "$ref": "#/definitions/PreviewEntry"
4584
+ "$ref": "#/definitions/PreviewEntries"
4566
4585
  }
4567
4586
  ],
4568
4587
  "markdownDescription": "Controls the background color of the icon."
@@ -7775,7 +7794,7 @@
7775
7794
  "description": "Controls the supporting text shown per item.",
7776
7795
  "allOf": [
7777
7796
  {
7778
- "$ref": "#/definitions/PreviewEntry"
7797
+ "$ref": "#/definitions/PreviewEntries"
7779
7798
  }
7780
7799
  ],
7781
7800
  "markdownDescription": "Controls the supporting text shown per item."
@@ -7808,6 +7827,14 @@
7808
7827
  }
7809
7828
  ]
7810
7829
  },
7830
+ "tags": {
7831
+ "description": "Defines a list of tags.",
7832
+ "type": "array",
7833
+ "items": {
7834
+ "type": "string"
7835
+ },
7836
+ "markdownDescription": "Defines a list of tags."
7837
+ },
7811
7838
  "metadata": {
7812
7839
  "description": "Defines a list of items that can contain an image, icon, and text.",
7813
7840
  "type": "array",
@@ -7833,7 +7860,7 @@
7833
7860
  "description": "Controls the main text shown per item.",
7834
7861
  "allOf": [
7835
7862
  {
7836
- "$ref": "#/definitions/PreviewEntry"
7863
+ "$ref": "#/definitions/PreviewEntries"
7837
7864
  }
7838
7865
  ],
7839
7866
  "markdownDescription": "Controls the main text shown per item."
@@ -7842,7 +7869,7 @@
7842
7869
  "description": "Controls the image shown per item.",
7843
7870
  "allOf": [
7844
7871
  {
7845
- "$ref": "#/definitions/PreviewEntry"
7872
+ "$ref": "#/definitions/PreviewEntries"
7846
7873
  }
7847
7874
  ],
7848
7875
  "markdownDescription": "Controls the image shown per item."
@@ -7851,7 +7878,7 @@
7851
7878
  "description": "Controls the icon shown per item. Must result in a Material Symbol name.",
7852
7879
  "allOf": [
7853
7880
  {
7854
- "$ref": "#/definitions/PreviewEntry"
7881
+ "$ref": "#/definitions/PreviewEntries"
7855
7882
  }
7856
7883
  ],
7857
7884
  "markdownDescription": "Controls the icon shown per item. Must result in a Material Symbol name."
@@ -7956,7 +7983,7 @@
7956
7983
  "description": "Controls the background color gallery area.",
7957
7984
  "allOf": [
7958
7985
  {
7959
- "$ref": "#/definitions/PreviewEntry"
7986
+ "$ref": "#/definitions/PreviewEntries"
7960
7987
  }
7961
7988
  ],
7962
7989
  "markdownDescription": "Controls the background color gallery area."
@@ -7981,7 +8008,7 @@
7981
8008
  "description": "Controls the supporting text shown per item.",
7982
8009
  "allOf": [
7983
8010
  {
7984
- "$ref": "#/definitions/PreviewEntry"
8011
+ "$ref": "#/definitions/PreviewEntries"
7985
8012
  }
7986
8013
  ],
7987
8014
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8014,6 +8041,14 @@
8014
8041
  }
8015
8042
  ]
8016
8043
  },
8044
+ "tags": {
8045
+ "description": "Defines a list of tags.",
8046
+ "type": "array",
8047
+ "items": {
8048
+ "type": "string"
8049
+ },
8050
+ "markdownDescription": "Defines a list of tags."
8051
+ },
8017
8052
  "metadata": {
8018
8053
  "description": "Defines a list of items that can contain an image, icon, and text.",
8019
8054
  "type": "array",
@@ -4941,60 +4941,79 @@
4941
4941
  "description": "Controls the color of the icon.",
4942
4942
  "allOf": [
4943
4943
  {
4944
- "$ref": "#/definitions/PreviewEntry"
4944
+ "$ref": "#/definitions/PreviewEntries"
4945
4945
  }
4946
4946
  ],
4947
4947
  "markdownDescription": "Controls the color of the icon."
4948
4948
  },
4949
- "PreviewEntry": {
4950
- "id": "PreviewEntry",
4949
+ "PreviewEntries": {
4950
+ "id": "PreviewEntries",
4951
4951
  "anyOf": [
4952
4952
  {
4953
4953
  "type": "array",
4954
4954
  "items": {
4955
- "anyOf": [
4956
- {
4957
- "type": "object",
4958
- "properties": {
4959
- "key": {
4960
- "description": "The key used to access the value used for the preview.",
4961
- "type": "string",
4962
- "markdownDescription": "The key used to access the value used for the preview."
4963
- }
4964
- },
4965
- "required": [
4966
- "key"
4967
- ],
4968
- "additionalProperties": false
4969
- },
4970
- {
4971
- "type": "object",
4972
- "properties": {
4973
- "template": {
4974
- "description": "A template string containing various placeholders for the value used in the preview.",
4975
- "type": "string",
4976
- "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4977
- }
4978
- },
4979
- "required": [
4980
- "template"
4981
- ],
4982
- "additionalProperties": false
4983
- },
4984
- {
4985
- "type": "string"
4986
- },
4987
- {
4988
- "type": "boolean"
4989
- }
4990
- ]
4955
+ "$ref": "#/definitions/PreviewEntry"
4991
4956
  }
4992
4957
  },
4993
4958
  {
4994
4959
  "type": "string"
4995
4960
  },
4996
4961
  {
4997
- "type": "boolean"
4962
+ "type": "boolean",
4963
+ "const": false
4964
+ }
4965
+ ]
4966
+ },
4967
+ "PreviewEntry": {
4968
+ "anyOf": [
4969
+ {
4970
+ "type": "object",
4971
+ "properties": {
4972
+ "key": {
4973
+ "description": "The key used to access the value used for the preview.",
4974
+ "type": "string",
4975
+ "markdownDescription": "The key used to access the value used for the preview."
4976
+ }
4977
+ },
4978
+ "required": [
4979
+ "key"
4980
+ ],
4981
+ "additionalProperties": false
4982
+ },
4983
+ {
4984
+ "type": "object",
4985
+ "properties": {
4986
+ "template": {
4987
+ "description": "A template string containing various placeholders for the value used in the preview.",
4988
+ "type": "string",
4989
+ "markdownDescription": "A template string containing various placeholders for the value used in the preview."
4990
+ }
4991
+ },
4992
+ "required": [
4993
+ "template"
4994
+ ],
4995
+ "additionalProperties": false
4996
+ },
4997
+ {
4998
+ "type": "object",
4999
+ "properties": {
5000
+ "text": {
5001
+ "description": "The raw text used as the value for the preview.",
5002
+ "type": "string",
5003
+ "markdownDescription": "The raw text used as the value for the preview."
5004
+ }
5005
+ },
5006
+ "required": [
5007
+ "text"
5008
+ ],
5009
+ "additionalProperties": false
5010
+ },
5011
+ {
5012
+ "type": "string"
5013
+ },
5014
+ {
5015
+ "type": "boolean",
5016
+ "const": false
4998
5017
  }
4999
5018
  ]
5000
5019
  },
@@ -5002,7 +5021,7 @@
5002
5021
  "description": "Controls the background color of the icon.",
5003
5022
  "allOf": [
5004
5023
  {
5005
- "$ref": "#/definitions/PreviewEntry"
5024
+ "$ref": "#/definitions/PreviewEntries"
5006
5025
  }
5007
5026
  ],
5008
5027
  "markdownDescription": "Controls the background color of the icon."
@@ -8215,7 +8234,7 @@
8215
8234
  "description": "Controls the supporting text shown per item.",
8216
8235
  "allOf": [
8217
8236
  {
8218
- "$ref": "#/definitions/PreviewEntry"
8237
+ "$ref": "#/definitions/PreviewEntries"
8219
8238
  }
8220
8239
  ],
8221
8240
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8248,6 +8267,14 @@
8248
8267
  }
8249
8268
  ]
8250
8269
  },
8270
+ "tags": {
8271
+ "description": "Defines a list of tags.",
8272
+ "type": "array",
8273
+ "items": {
8274
+ "type": "string"
8275
+ },
8276
+ "markdownDescription": "Defines a list of tags."
8277
+ },
8251
8278
  "metadata": {
8252
8279
  "description": "Defines a list of items that can contain an image, icon, and text.",
8253
8280
  "type": "array",
@@ -8273,7 +8300,7 @@
8273
8300
  "description": "Controls the main text shown per item.",
8274
8301
  "allOf": [
8275
8302
  {
8276
- "$ref": "#/definitions/PreviewEntry"
8303
+ "$ref": "#/definitions/PreviewEntries"
8277
8304
  }
8278
8305
  ],
8279
8306
  "markdownDescription": "Controls the main text shown per item."
@@ -8282,7 +8309,7 @@
8282
8309
  "description": "Controls the image shown per item.",
8283
8310
  "allOf": [
8284
8311
  {
8285
- "$ref": "#/definitions/PreviewEntry"
8312
+ "$ref": "#/definitions/PreviewEntries"
8286
8313
  }
8287
8314
  ],
8288
8315
  "markdownDescription": "Controls the image shown per item."
@@ -8291,7 +8318,7 @@
8291
8318
  "description": "Controls the icon shown per item. Must result in a Material Symbol name.",
8292
8319
  "allOf": [
8293
8320
  {
8294
- "$ref": "#/definitions/PreviewEntry"
8321
+ "$ref": "#/definitions/PreviewEntries"
8295
8322
  }
8296
8323
  ],
8297
8324
  "markdownDescription": "Controls the icon shown per item. Must result in a Material Symbol name."
@@ -8396,7 +8423,7 @@
8396
8423
  "description": "Controls the background color gallery area.",
8397
8424
  "allOf": [
8398
8425
  {
8399
- "$ref": "#/definitions/PreviewEntry"
8426
+ "$ref": "#/definitions/PreviewEntries"
8400
8427
  }
8401
8428
  ],
8402
8429
  "markdownDescription": "Controls the background color gallery area."
@@ -8421,7 +8448,7 @@
8421
8448
  "description": "Controls the supporting text shown per item.",
8422
8449
  "allOf": [
8423
8450
  {
8424
- "$ref": "#/definitions/PreviewEntry"
8451
+ "$ref": "#/definitions/PreviewEntries"
8425
8452
  }
8426
8453
  ],
8427
8454
  "markdownDescription": "Controls the supporting text shown per item."
@@ -8454,6 +8481,14 @@
8454
8481
  }
8455
8482
  ]
8456
8483
  },
8484
+ "tags": {
8485
+ "description": "Defines a list of tags.",
8486
+ "type": "array",
8487
+ "items": {
8488
+ "type": "string"
8489
+ },
8490
+ "markdownDescription": "Defines a list of tags."
8491
+ },
8457
8492
  "metadata": {
8458
8493
  "description": "Defines a list of items that can contain an image, icon, and text.",
8459
8494
  "type": "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcannon/configuration-types",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "type": "module",
5
5
  "description": "Contains TypeScript declarations and generates JSONSchema files for the CloudCannon configuration file.",
6
6
  "author": "CloudCannon <support@cloudcannon.com>",
package/src/preview.ts CHANGED
@@ -13,37 +13,51 @@ const PreviewTemplateEntrySchema = z.object({
13
13
  }),
14
14
  });
15
15
 
16
+ const PreviewTextEntrySchema = z.object({
17
+ text: z.string().meta({
18
+ description: 'The raw text used as the value for the preview.',
19
+ }),
20
+ });
21
+
16
22
  const PreviewEntrySchema = z
17
23
  .union([
18
- z.array(z.union([PreviewKeyEntrySchema, PreviewTemplateEntrySchema, z.string(), z.boolean()])),
24
+ PreviewKeyEntrySchema,
25
+ PreviewTemplateEntrySchema,
26
+ PreviewTextEntrySchema,
19
27
  z.string(),
20
- z.boolean(),
28
+ z.literal(false),
21
29
  ])
22
30
  .meta({
23
31
  id: 'PreviewEntry',
24
32
  });
25
33
 
26
- const TextPreviewSchema = PreviewEntrySchema.meta({
34
+ const PreviewEntriesSchema = z
35
+ .union([z.array(PreviewEntrySchema), z.string(), z.literal(false)])
36
+ .meta({
37
+ id: 'PreviewEntries',
38
+ });
39
+
40
+ const TextPreviewSchema = PreviewEntriesSchema.meta({
27
41
  id: 'preview.text',
28
42
  description: 'Controls the main text shown per item.',
29
43
  });
30
44
 
31
- const ImagePreviewSchema = PreviewEntrySchema.meta({
45
+ const ImagePreviewSchema = PreviewEntriesSchema.meta({
32
46
  id: 'preview.image',
33
47
  description: 'Controls the image shown per item.',
34
48
  });
35
49
 
36
- const IconPreviewSchema = PreviewEntrySchema.meta({
50
+ const IconPreviewSchema = PreviewEntriesSchema.meta({
37
51
  id: 'preview.icon',
38
52
  description: 'Controls the icon shown per item. Must result in a Material Symbol name.',
39
53
  });
40
54
 
41
- export const IconColorSchema = PreviewEntrySchema.meta({
55
+ export const IconColorSchema = PreviewEntriesSchema.meta({
42
56
  id: 'preview.icon_color',
43
57
  description: 'Controls the color of the icon.',
44
58
  });
45
59
 
46
- export const IconBackgroundColorSchema = PreviewEntrySchema.meta({
60
+ export const IconBackgroundColorSchema = PreviewEntriesSchema.meta({
47
61
  id: 'preview.icon_background_color',
48
62
  description: 'Controls the background color of the icon.',
49
63
  });
@@ -58,7 +72,7 @@ export const PreviewGallerySchema = z
58
72
  fit: z.enum(['padded', 'cover', 'contain', 'cover-top']).default('padded').optional().meta({
59
73
  description: 'Controls how the gallery image is positioned within the gallery.',
60
74
  }),
61
- background_color: PreviewEntrySchema.optional().meta({
75
+ background_color: PreviewEntriesSchema.optional().meta({
62
76
  description: 'Controls the background color gallery area.',
63
77
  }),
64
78
  })
@@ -86,13 +100,16 @@ export const PreviewMetadataSchema = z
86
100
  export const PreviewSchema = z
87
101
  .object({
88
102
  text: TextPreviewSchema.optional(),
89
- subtext: PreviewEntrySchema.optional().meta({
103
+ subtext: PreviewEntriesSchema.optional().meta({
90
104
  description: 'Controls the supporting text shown per item.',
91
105
  }),
92
106
  image: ImagePreviewSchema.optional(),
93
107
  icon: IconPreviewSchema.optional(),
94
108
  icon_color: IconColorSchema.optional(),
95
109
  icon_background_color: IconBackgroundColorSchema.optional(),
110
+ tags: z.array(z.string()).optional().meta({
111
+ description: 'Defines a list of tags.',
112
+ }),
96
113
  metadata: z.array(PreviewMetadataSchema).optional().meta({
97
114
  description: 'Defines a list of items that can contain an image, icon, and text.',
98
115
  }),
@@ -120,6 +137,8 @@ export const PickerPreviewSchema = z
120
137
  description: 'Changes the way items are previewed in the CMS while being chosen.',
121
138
  });
122
139
 
140
+ export type PreviewEntry = z.infer<typeof PreviewEntrySchema>;
141
+ export type PreviewEntries = z.infer<typeof PreviewEntriesSchema>;
123
142
  export type PreviewGallery = z.infer<typeof PreviewGallerySchema>;
124
143
  export type PreviewMetadata = z.infer<typeof PreviewMetadataSchema>;
125
144
  export type Preview = z.infer<typeof PreviewSchema>;