@cloudcannon/configuration-types 0.0.38 → 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.
- package/dist/cloudcannon-config.latest.schema.json +98 -78
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +98 -78
- package/dist/cloudcannon-config.legacy-hugo.schema.json +98 -78
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +98 -78
- package/dist/cloudcannon-config.legacy-reader.schema.json +98 -78
- package/package.json +1 -1
- package/src/configuration.ts +10 -5
- package/src/preview.ts +28 -9
|
@@ -147,37 +147,8 @@
|
|
|
147
147
|
],
|
|
148
148
|
"markdownDescription": "This key defines the documentation link at the top of a _Collection browser_. Collection documentation is useful for assisting your team members."
|
|
149
149
|
},
|
|
150
|
-
"sort": {
|
|
151
|
-
"description": "This key defines how CloudCannon sorts your Collection files when you first open your _Collection browser_.",
|
|
152
|
-
"title": "Sort",
|
|
153
|
-
"type": "object",
|
|
154
|
-
"properties": {
|
|
155
|
-
"key": {
|
|
156
|
-
"description": "Defines what field contains the value to sort on inside each collection item's data.",
|
|
157
|
-
"type": "string",
|
|
158
|
-
"markdownDescription": "Defines what field contains the value to sort on inside each collection item's data."
|
|
159
|
-
},
|
|
160
|
-
"order": {
|
|
161
|
-
"description": "Controls which sort values come first.",
|
|
162
|
-
"default": "ascending",
|
|
163
|
-
"type": "string",
|
|
164
|
-
"enum": [
|
|
165
|
-
"ascending",
|
|
166
|
-
"descending",
|
|
167
|
-
"asc",
|
|
168
|
-
"desc"
|
|
169
|
-
],
|
|
170
|
-
"markdownDescription": "Controls which sort values come first."
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
"required": [
|
|
174
|
-
"key"
|
|
175
|
-
],
|
|
176
|
-
"additionalProperties": false,
|
|
177
|
-
"markdownDescription": "This key defines how CloudCannon sorts your Collection files when you first open your _Collection browser_."
|
|
178
|
-
},
|
|
179
150
|
"sort_options": {
|
|
180
|
-
"description": "This key defines the options for the Sort dropdown in a _Collection browser_.",
|
|
151
|
+
"description": "This key defines the options for the Sort dropdown in a _Collection browser_. The first option listed is used as the default sort.",
|
|
181
152
|
"type": "array",
|
|
182
153
|
"items": {
|
|
183
154
|
"title": "SortOption",
|
|
@@ -213,7 +184,21 @@
|
|
|
213
184
|
"additionalProperties": false,
|
|
214
185
|
"markdownDescription": "A sort option for a Collection."
|
|
215
186
|
},
|
|
216
|
-
"markdownDescription": "This key defines the options for the Sort dropdown in a _Collection browser_."
|
|
187
|
+
"markdownDescription": "This key defines the options for the Sort dropdown in a _Collection browser_. The first option listed is used as the default sort."
|
|
188
|
+
},
|
|
189
|
+
"view_options": {
|
|
190
|
+
"uniqueItems": true,
|
|
191
|
+
"description": "This key defines the options for the View dropdown in a _Collection browser_. The first option listed is used as the default view.",
|
|
192
|
+
"type": "array",
|
|
193
|
+
"items": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"enum": [
|
|
196
|
+
"card",
|
|
197
|
+
"list",
|
|
198
|
+
"gallery"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"markdownDescription": "This key defines the options for the View dropdown in a _Collection browser_. The first option listed is used as the default view."
|
|
217
202
|
},
|
|
218
203
|
"singular_name": {
|
|
219
204
|
"description": "This key defines the singular noun for your Collection name. CloudCannon uses the singular noun in the _+ Add_ button in the top right of the _Collection browser_.",
|
|
@@ -4909,60 +4894,79 @@
|
|
|
4909
4894
|
"description": "Controls the color of the icon.",
|
|
4910
4895
|
"allOf": [
|
|
4911
4896
|
{
|
|
4912
|
-
"$ref": "#/definitions/
|
|
4897
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
4913
4898
|
}
|
|
4914
4899
|
],
|
|
4915
4900
|
"markdownDescription": "Controls the color of the icon."
|
|
4916
4901
|
},
|
|
4917
|
-
"
|
|
4918
|
-
"id": "
|
|
4902
|
+
"PreviewEntries": {
|
|
4903
|
+
"id": "PreviewEntries",
|
|
4919
4904
|
"anyOf": [
|
|
4920
4905
|
{
|
|
4921
4906
|
"type": "array",
|
|
4922
4907
|
"items": {
|
|
4923
|
-
"
|
|
4924
|
-
{
|
|
4925
|
-
"type": "object",
|
|
4926
|
-
"properties": {
|
|
4927
|
-
"key": {
|
|
4928
|
-
"description": "The key used to access the value used for the preview.",
|
|
4929
|
-
"type": "string",
|
|
4930
|
-
"markdownDescription": "The key used to access the value used for the preview."
|
|
4931
|
-
}
|
|
4932
|
-
},
|
|
4933
|
-
"required": [
|
|
4934
|
-
"key"
|
|
4935
|
-
],
|
|
4936
|
-
"additionalProperties": false
|
|
4937
|
-
},
|
|
4938
|
-
{
|
|
4939
|
-
"type": "object",
|
|
4940
|
-
"properties": {
|
|
4941
|
-
"template": {
|
|
4942
|
-
"description": "A template string containing various placeholders for the value used in the preview.",
|
|
4943
|
-
"type": "string",
|
|
4944
|
-
"markdownDescription": "A template string containing various placeholders for the value used in the preview."
|
|
4945
|
-
}
|
|
4946
|
-
},
|
|
4947
|
-
"required": [
|
|
4948
|
-
"template"
|
|
4949
|
-
],
|
|
4950
|
-
"additionalProperties": false
|
|
4951
|
-
},
|
|
4952
|
-
{
|
|
4953
|
-
"type": "string"
|
|
4954
|
-
},
|
|
4955
|
-
{
|
|
4956
|
-
"type": "boolean"
|
|
4957
|
-
}
|
|
4958
|
-
]
|
|
4908
|
+
"$ref": "#/definitions/PreviewEntry"
|
|
4959
4909
|
}
|
|
4960
4910
|
},
|
|
4961
4911
|
{
|
|
4962
4912
|
"type": "string"
|
|
4963
4913
|
},
|
|
4964
4914
|
{
|
|
4965
|
-
"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
|
|
4966
4970
|
}
|
|
4967
4971
|
]
|
|
4968
4972
|
},
|
|
@@ -4970,7 +4974,7 @@
|
|
|
4970
4974
|
"description": "Controls the background color of the icon.",
|
|
4971
4975
|
"allOf": [
|
|
4972
4976
|
{
|
|
4973
|
-
"$ref": "#/definitions/
|
|
4977
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
4974
4978
|
}
|
|
4975
4979
|
],
|
|
4976
4980
|
"markdownDescription": "Controls the background color of the icon."
|
|
@@ -8183,7 +8187,7 @@
|
|
|
8183
8187
|
"description": "Controls the supporting text shown per item.",
|
|
8184
8188
|
"allOf": [
|
|
8185
8189
|
{
|
|
8186
|
-
"$ref": "#/definitions/
|
|
8190
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
8187
8191
|
}
|
|
8188
8192
|
],
|
|
8189
8193
|
"markdownDescription": "Controls the supporting text shown per item."
|
|
@@ -8216,6 +8220,14 @@
|
|
|
8216
8220
|
}
|
|
8217
8221
|
]
|
|
8218
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
|
+
},
|
|
8219
8231
|
"metadata": {
|
|
8220
8232
|
"description": "Defines a list of items that can contain an image, icon, and text.",
|
|
8221
8233
|
"type": "array",
|
|
@@ -8241,7 +8253,7 @@
|
|
|
8241
8253
|
"description": "Controls the main text shown per item.",
|
|
8242
8254
|
"allOf": [
|
|
8243
8255
|
{
|
|
8244
|
-
"$ref": "#/definitions/
|
|
8256
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
8245
8257
|
}
|
|
8246
8258
|
],
|
|
8247
8259
|
"markdownDescription": "Controls the main text shown per item."
|
|
@@ -8250,7 +8262,7 @@
|
|
|
8250
8262
|
"description": "Controls the image shown per item.",
|
|
8251
8263
|
"allOf": [
|
|
8252
8264
|
{
|
|
8253
|
-
"$ref": "#/definitions/
|
|
8265
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
8254
8266
|
}
|
|
8255
8267
|
],
|
|
8256
8268
|
"markdownDescription": "Controls the image shown per item."
|
|
@@ -8259,7 +8271,7 @@
|
|
|
8259
8271
|
"description": "Controls the icon shown per item. Must result in a Material Symbol name.",
|
|
8260
8272
|
"allOf": [
|
|
8261
8273
|
{
|
|
8262
|
-
"$ref": "#/definitions/
|
|
8274
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
8263
8275
|
}
|
|
8264
8276
|
],
|
|
8265
8277
|
"markdownDescription": "Controls the icon shown per item. Must result in a Material Symbol name."
|
|
@@ -8364,7 +8376,7 @@
|
|
|
8364
8376
|
"description": "Controls the background color gallery area.",
|
|
8365
8377
|
"allOf": [
|
|
8366
8378
|
{
|
|
8367
|
-
"$ref": "#/definitions/
|
|
8379
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
8368
8380
|
}
|
|
8369
8381
|
],
|
|
8370
8382
|
"markdownDescription": "Controls the background color gallery area."
|
|
@@ -8389,7 +8401,7 @@
|
|
|
8389
8401
|
"description": "Controls the supporting text shown per item.",
|
|
8390
8402
|
"allOf": [
|
|
8391
8403
|
{
|
|
8392
|
-
"$ref": "#/definitions/
|
|
8404
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
8393
8405
|
}
|
|
8394
8406
|
],
|
|
8395
8407
|
"markdownDescription": "Controls the supporting text shown per item."
|
|
@@ -8422,6 +8434,14 @@
|
|
|
8422
8434
|
}
|
|
8423
8435
|
]
|
|
8424
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
|
+
},
|
|
8425
8445
|
"metadata": {
|
|
8426
8446
|
"description": "Defines a list of items that can contain an image, icon, and text.",
|
|
8427
8447
|
"type": "array",
|
|
@@ -4501,60 +4501,79 @@
|
|
|
4501
4501
|
"description": "Controls the color of the icon.",
|
|
4502
4502
|
"allOf": [
|
|
4503
4503
|
{
|
|
4504
|
-
"$ref": "#/definitions/
|
|
4504
|
+
"$ref": "#/definitions/PreviewEntries"
|
|
4505
4505
|
}
|
|
4506
4506
|
],
|
|
4507
4507
|
"markdownDescription": "Controls the color of the icon."
|
|
4508
4508
|
},
|
|
4509
|
-
"
|
|
4510
|
-
"id": "
|
|
4509
|
+
"PreviewEntries": {
|
|
4510
|
+
"id": "PreviewEntries",
|
|
4511
4511
|
"anyOf": [
|
|
4512
4512
|
{
|
|
4513
4513
|
"type": "array",
|
|
4514
4514
|
"items": {
|
|
4515
|
-
"
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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",
|
|
@@ -9841,37 +9876,8 @@
|
|
|
9841
9876
|
],
|
|
9842
9877
|
"markdownDescription": "This key defines the documentation link at the top of a _Collection browser_. Collection documentation is useful for assisting your team members."
|
|
9843
9878
|
},
|
|
9844
|
-
"sort": {
|
|
9845
|
-
"description": "This key defines how CloudCannon sorts your Collection files when you first open your _Collection browser_.",
|
|
9846
|
-
"title": "Sort",
|
|
9847
|
-
"type": "object",
|
|
9848
|
-
"properties": {
|
|
9849
|
-
"key": {
|
|
9850
|
-
"description": "Defines what field contains the value to sort on inside each collection item's data.",
|
|
9851
|
-
"type": "string",
|
|
9852
|
-
"markdownDescription": "Defines what field contains the value to sort on inside each collection item's data."
|
|
9853
|
-
},
|
|
9854
|
-
"order": {
|
|
9855
|
-
"description": "Controls which sort values come first.",
|
|
9856
|
-
"default": "ascending",
|
|
9857
|
-
"type": "string",
|
|
9858
|
-
"enum": [
|
|
9859
|
-
"ascending",
|
|
9860
|
-
"descending",
|
|
9861
|
-
"asc",
|
|
9862
|
-
"desc"
|
|
9863
|
-
],
|
|
9864
|
-
"markdownDescription": "Controls which sort values come first."
|
|
9865
|
-
}
|
|
9866
|
-
},
|
|
9867
|
-
"required": [
|
|
9868
|
-
"key"
|
|
9869
|
-
],
|
|
9870
|
-
"additionalProperties": false,
|
|
9871
|
-
"markdownDescription": "This key defines how CloudCannon sorts your Collection files when you first open your _Collection browser_."
|
|
9872
|
-
},
|
|
9873
9879
|
"sort_options": {
|
|
9874
|
-
"description": "This key defines the options for the Sort dropdown in a _Collection browser_.",
|
|
9880
|
+
"description": "This key defines the options for the Sort dropdown in a _Collection browser_. The first option listed is used as the default sort.",
|
|
9875
9881
|
"type": "array",
|
|
9876
9882
|
"items": {
|
|
9877
9883
|
"title": "SortOption",
|
|
@@ -9907,7 +9913,21 @@
|
|
|
9907
9913
|
"additionalProperties": false,
|
|
9908
9914
|
"markdownDescription": "A sort option for a Collection."
|
|
9909
9915
|
},
|
|
9910
|
-
"markdownDescription": "This key defines the options for the Sort dropdown in a _Collection browser_."
|
|
9916
|
+
"markdownDescription": "This key defines the options for the Sort dropdown in a _Collection browser_. The first option listed is used as the default sort."
|
|
9917
|
+
},
|
|
9918
|
+
"view_options": {
|
|
9919
|
+
"uniqueItems": true,
|
|
9920
|
+
"description": "This key defines the options for the View dropdown in a _Collection browser_. The first option listed is used as the default view.",
|
|
9921
|
+
"type": "array",
|
|
9922
|
+
"items": {
|
|
9923
|
+
"type": "string",
|
|
9924
|
+
"enum": [
|
|
9925
|
+
"card",
|
|
9926
|
+
"list",
|
|
9927
|
+
"gallery"
|
|
9928
|
+
]
|
|
9929
|
+
},
|
|
9930
|
+
"markdownDescription": "This key defines the options for the View dropdown in a _Collection browser_. The first option listed is used as the default view."
|
|
9911
9931
|
},
|
|
9912
9932
|
"singular_name": {
|
|
9913
9933
|
"description": "This key defines the singular noun for your Collection name. CloudCannon uses the singular noun in the _+ Add_ button in the top right of the _Collection browser_.",
|