@sveltia/cms 0.87.1 → 0.87.3
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/README.md +36 -20
- package/dist/sveltia-cms.js +202 -200
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +206 -204
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +360 -399
- package/types/public.d.ts +136 -85
package/schema/sveltia-cms.json
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"config": {
|
|
73
73
|
"type": "object",
|
|
74
|
-
"description": "Options to be passed to
|
|
74
|
+
"description": "Options to be passed to Cloudinary, such as `multiple`. The `cloud_name` and `api_key` options are required for the global `media_library` option. See https://cloudinary.com/documentation/media_library_widget#2_set_the_configuration_options for a full list of available options."
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"required": [
|
|
@@ -149,16 +149,30 @@
|
|
|
149
149
|
"collections": {
|
|
150
150
|
"type": "array",
|
|
151
151
|
"items": {
|
|
152
|
-
"
|
|
152
|
+
"anyOf": [
|
|
153
|
+
{
|
|
154
|
+
"$ref": "#/definitions/Collection"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"$ref": "#/definitions/CollectionDivider"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
153
160
|
},
|
|
154
|
-
"description": "Set of collections."
|
|
161
|
+
"description": "Set of collections. The list can also contain dividers, which are used to group collections in the collection list."
|
|
155
162
|
},
|
|
156
163
|
"singletons": {
|
|
157
164
|
"type": "array",
|
|
158
165
|
"items": {
|
|
159
|
-
"
|
|
166
|
+
"anyOf": [
|
|
167
|
+
{
|
|
168
|
+
"$ref": "#/definitions/CollectionFile"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"$ref": "#/definitions/CollectionDivider"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
160
174
|
},
|
|
161
|
-
"description": "Set of singleton files, such as the site configuration file or the homepage file. They are not part of any collection and can be accessed directly through the collection list."
|
|
175
|
+
"description": "Set of singleton files, such as the site configuration file or the homepage file. They are not part of any collection and can be accessed directly through the collection list. The list can also contain dividers."
|
|
162
176
|
},
|
|
163
177
|
"i18n": {
|
|
164
178
|
"$ref": "#/definitions/I18nOptions",
|
|
@@ -258,7 +272,7 @@
|
|
|
258
272
|
},
|
|
259
273
|
"automatic_deployments": {
|
|
260
274
|
"type": "boolean",
|
|
261
|
-
"description": "Whether to enable or disable automatic deployments with any connected CI/CD provider, such as GitHub Actions or Cloudflare Pages. If `false`, the `[skip ci]` prefix will be added to commit messages. Git backends only. Default: undefined
|
|
275
|
+
"description": "Whether to enable or disable automatic deployments with any connected CI/CD provider, such as GitHub Actions or Cloudflare Pages. If `false`, the `[skip ci]` prefix will be added to commit messages. Git backends only. Default: `undefined`. See https://github.com/sveltia/sveltia-cms#disabling-automatic-deployments for details."
|
|
262
276
|
}
|
|
263
277
|
},
|
|
264
278
|
"required": [
|
|
@@ -354,41 +368,37 @@
|
|
|
354
368
|
},
|
|
355
369
|
"ImageTransformations": {
|
|
356
370
|
"type": "object",
|
|
357
|
-
"additionalProperties":
|
|
358
|
-
"$ref": "#/definitions/RasterImageTransformationOptions"
|
|
359
|
-
},
|
|
371
|
+
"additionalProperties": false,
|
|
360
372
|
"properties": {
|
|
361
373
|
"svg": {
|
|
362
|
-
"$ref": "#/definitions/VectorImageTransformationOptions"
|
|
374
|
+
"$ref": "#/definitions/VectorImageTransformationOptions",
|
|
375
|
+
"description": "SVG image transformation options."
|
|
376
|
+
},
|
|
377
|
+
"raster_image": {
|
|
378
|
+
"$ref": "#/definitions/RasterImageTransformationOptions",
|
|
379
|
+
"description": "Raster image transformation options that apply to any supported raster image format."
|
|
363
380
|
},
|
|
364
381
|
"avif": {
|
|
365
|
-
"$ref": "#/definitions/RasterImageTransformationOptions"
|
|
382
|
+
"$ref": "#/definitions/RasterImageTransformationOptions",
|
|
383
|
+
"description": "AVIF image transformation options."
|
|
366
384
|
},
|
|
367
385
|
"gif": {
|
|
368
|
-
"$ref": "#/definitions/RasterImageTransformationOptions"
|
|
386
|
+
"$ref": "#/definitions/RasterImageTransformationOptions",
|
|
387
|
+
"description": "GIF image transformation options."
|
|
369
388
|
},
|
|
370
389
|
"jpeg": {
|
|
371
|
-
"$ref": "#/definitions/RasterImageTransformationOptions"
|
|
390
|
+
"$ref": "#/definitions/RasterImageTransformationOptions",
|
|
391
|
+
"description": "JPEG image transformation options."
|
|
372
392
|
},
|
|
373
393
|
"png": {
|
|
374
|
-
"$ref": "#/definitions/RasterImageTransformationOptions"
|
|
394
|
+
"$ref": "#/definitions/RasterImageTransformationOptions",
|
|
395
|
+
"description": "PNG image transformation options."
|
|
375
396
|
},
|
|
376
397
|
"webp": {
|
|
377
|
-
"$ref": "#/definitions/RasterImageTransformationOptions"
|
|
378
|
-
|
|
379
|
-
"raster_image": {
|
|
380
|
-
"$ref": "#/definitions/RasterImageTransformationOptions"
|
|
398
|
+
"$ref": "#/definitions/RasterImageTransformationOptions",
|
|
399
|
+
"description": "WebP image transformation options."
|
|
381
400
|
}
|
|
382
401
|
},
|
|
383
|
-
"required": [
|
|
384
|
-
"avif",
|
|
385
|
-
"gif",
|
|
386
|
-
"jpeg",
|
|
387
|
-
"png",
|
|
388
|
-
"raster_image",
|
|
389
|
-
"svg",
|
|
390
|
-
"webp"
|
|
391
|
-
],
|
|
392
402
|
"description": "Image transformation option map."
|
|
393
403
|
},
|
|
394
404
|
"VectorImageTransformationOptions": {
|
|
@@ -411,7 +421,7 @@
|
|
|
411
421
|
},
|
|
412
422
|
"quality": {
|
|
413
423
|
"type": "number",
|
|
414
|
-
"description": "Image quality between 0 and 100. Default: 85
|
|
424
|
+
"description": "Image quality between 0 and 100. Default: `85`."
|
|
415
425
|
},
|
|
416
426
|
"width": {
|
|
417
427
|
"type": "number",
|
|
@@ -505,7 +515,7 @@
|
|
|
505
515
|
},
|
|
506
516
|
"config": {
|
|
507
517
|
"type": "object",
|
|
508
|
-
"description": "Options to be passed to
|
|
518
|
+
"description": "Options to be passed to Cloudinary, such as `multiple`. The `cloud_name` and `api_key` options are required for the global `media_library` option. See https://cloudinary.com/documentation/media_library_widget#2_set_the_configuration_options for a full list of available options."
|
|
509
519
|
}
|
|
510
520
|
},
|
|
511
521
|
"additionalProperties": false,
|
|
@@ -668,7 +678,7 @@
|
|
|
668
678
|
},
|
|
669
679
|
"slug_length": {
|
|
670
680
|
"type": "number",
|
|
671
|
-
"description": "The maximum number of characters allowed for an entry slug. Entry collection only. Default:
|
|
681
|
+
"description": "The maximum number of characters allowed for an entry slug. Entry collection only. Default: `Infinity`."
|
|
672
682
|
},
|
|
673
683
|
"summary": {
|
|
674
684
|
"type": "string",
|
|
@@ -748,10 +758,6 @@
|
|
|
748
758
|
"type": "boolean",
|
|
749
759
|
"description": "Whether to double-quote all the strings values if the YAML format is used for file output. Default: `false`. DEPRECATED in favor of the global YAML format options."
|
|
750
760
|
},
|
|
751
|
-
"divider": {
|
|
752
|
-
"type": "boolean",
|
|
753
|
-
"description": "A special option to make this collection a divider UI in the collection list. Default: `false`. If `true`, other options will be ignored, but you still have to provide a unique `name`."
|
|
754
|
-
},
|
|
755
761
|
"thumbnail": {
|
|
756
762
|
"anyOf": [
|
|
757
763
|
{
|
|
@@ -768,7 +774,7 @@
|
|
|
768
774
|
},
|
|
769
775
|
"limit": {
|
|
770
776
|
"type": "number",
|
|
771
|
-
"description": "The maximum number of entries that can be created in the collection. Entry collection only. Default:
|
|
777
|
+
"description": "The maximum number of entries that can be created in the collection. Entry collection only. Default: `Infinity`."
|
|
772
778
|
}
|
|
773
779
|
},
|
|
774
780
|
"required": [
|
|
@@ -844,10 +850,6 @@
|
|
|
844
850
|
],
|
|
845
851
|
"description": "I18n options. Default: `false`."
|
|
846
852
|
},
|
|
847
|
-
"divider": {
|
|
848
|
-
"type": "boolean",
|
|
849
|
-
"description": "A special option to make this file a divider UI in the singleton file list. Default: `false`. Not supported in a file collection. If `true`, other options will be ignored, but you still have to provide a unique `name`."
|
|
850
|
-
},
|
|
851
853
|
"preview_path": {
|
|
852
854
|
"type": "string",
|
|
853
855
|
"description": "Preview URL path template."
|
|
@@ -940,7 +942,6 @@
|
|
|
940
942
|
},
|
|
941
943
|
"BooleanField": {
|
|
942
944
|
"type": "object",
|
|
943
|
-
"additionalProperties": false,
|
|
944
945
|
"properties": {
|
|
945
946
|
"before_input": {
|
|
946
947
|
"type": "string",
|
|
@@ -952,25 +953,13 @@
|
|
|
952
953
|
},
|
|
953
954
|
"widget": {
|
|
954
955
|
"type": "string",
|
|
955
|
-
"
|
|
956
|
-
"
|
|
956
|
+
"const": "boolean",
|
|
957
|
+
"description": "Widget name."
|
|
957
958
|
},
|
|
958
959
|
"default": {
|
|
959
960
|
"type": "boolean",
|
|
960
961
|
"description": "Default value. Accepts `true` or `false`."
|
|
961
962
|
},
|
|
962
|
-
"name": {
|
|
963
|
-
"type": "string",
|
|
964
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
965
|
-
},
|
|
966
|
-
"label": {
|
|
967
|
-
"type": "string",
|
|
968
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
969
|
-
},
|
|
970
|
-
"comment": {
|
|
971
|
-
"type": "string",
|
|
972
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
973
|
-
},
|
|
974
963
|
"required": {
|
|
975
964
|
"anyOf": [
|
|
976
965
|
{
|
|
@@ -1011,6 +1000,18 @@
|
|
|
1011
1000
|
"maxItems": 2,
|
|
1012
1001
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1013
1002
|
},
|
|
1003
|
+
"name": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1006
|
+
},
|
|
1007
|
+
"label": {
|
|
1008
|
+
"type": "string",
|
|
1009
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1010
|
+
},
|
|
1011
|
+
"comment": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1014
|
+
},
|
|
1014
1015
|
"hint": {
|
|
1015
1016
|
"type": "string",
|
|
1016
1017
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -1052,12 +1053,11 @@
|
|
|
1052
1053
|
},
|
|
1053
1054
|
"CodeField": {
|
|
1054
1055
|
"type": "object",
|
|
1055
|
-
"additionalProperties": false,
|
|
1056
1056
|
"properties": {
|
|
1057
1057
|
"widget": {
|
|
1058
1058
|
"type": "string",
|
|
1059
|
-
"
|
|
1060
|
-
"
|
|
1059
|
+
"const": "code",
|
|
1060
|
+
"description": "Widget name."
|
|
1061
1061
|
},
|
|
1062
1062
|
"default": {
|
|
1063
1063
|
"anyOf": [
|
|
@@ -1102,18 +1102,6 @@
|
|
|
1102
1102
|
"additionalProperties": false,
|
|
1103
1103
|
"description": "Output property names. It has no effect if `output_code_only` is `true`. Default: `{ code: 'code', lang: 'lang' }`."
|
|
1104
1104
|
},
|
|
1105
|
-
"name": {
|
|
1106
|
-
"type": "string",
|
|
1107
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1108
|
-
},
|
|
1109
|
-
"label": {
|
|
1110
|
-
"type": "string",
|
|
1111
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1112
|
-
},
|
|
1113
|
-
"comment": {
|
|
1114
|
-
"type": "string",
|
|
1115
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
1116
|
-
},
|
|
1117
1105
|
"required": {
|
|
1118
1106
|
"anyOf": [
|
|
1119
1107
|
{
|
|
@@ -1154,6 +1142,18 @@
|
|
|
1154
1142
|
"maxItems": 2,
|
|
1155
1143
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1156
1144
|
},
|
|
1145
|
+
"name": {
|
|
1146
|
+
"type": "string",
|
|
1147
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1148
|
+
},
|
|
1149
|
+
"label": {
|
|
1150
|
+
"type": "string",
|
|
1151
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1152
|
+
},
|
|
1153
|
+
"comment": {
|
|
1154
|
+
"type": "string",
|
|
1155
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1156
|
+
},
|
|
1157
1157
|
"hint": {
|
|
1158
1158
|
"type": "string",
|
|
1159
1159
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -1191,12 +1191,11 @@
|
|
|
1191
1191
|
},
|
|
1192
1192
|
"ColorField": {
|
|
1193
1193
|
"type": "object",
|
|
1194
|
-
"additionalProperties": false,
|
|
1195
1194
|
"properties": {
|
|
1196
1195
|
"widget": {
|
|
1197
1196
|
"type": "string",
|
|
1198
|
-
"
|
|
1199
|
-
"
|
|
1197
|
+
"const": "color",
|
|
1198
|
+
"description": "Widget name."
|
|
1200
1199
|
},
|
|
1201
1200
|
"default": {
|
|
1202
1201
|
"type": "string",
|
|
@@ -1210,18 +1209,6 @@
|
|
|
1210
1209
|
"type": "boolean",
|
|
1211
1210
|
"description": "Whether to edit/save the alpha channel value. Default: `false`."
|
|
1212
1211
|
},
|
|
1213
|
-
"name": {
|
|
1214
|
-
"type": "string",
|
|
1215
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1216
|
-
},
|
|
1217
|
-
"label": {
|
|
1218
|
-
"type": "string",
|
|
1219
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1220
|
-
},
|
|
1221
|
-
"comment": {
|
|
1222
|
-
"type": "string",
|
|
1223
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
1224
|
-
},
|
|
1225
1212
|
"required": {
|
|
1226
1213
|
"anyOf": [
|
|
1227
1214
|
{
|
|
@@ -1262,6 +1249,18 @@
|
|
|
1262
1249
|
"maxItems": 2,
|
|
1263
1250
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1264
1251
|
},
|
|
1252
|
+
"name": {
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1255
|
+
},
|
|
1256
|
+
"label": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1259
|
+
},
|
|
1260
|
+
"comment": {
|
|
1261
|
+
"type": "string",
|
|
1262
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1263
|
+
},
|
|
1265
1264
|
"hint": {
|
|
1266
1265
|
"type": "string",
|
|
1267
1266
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -1299,29 +1298,16 @@
|
|
|
1299
1298
|
},
|
|
1300
1299
|
"ComputeField": {
|
|
1301
1300
|
"type": "object",
|
|
1302
|
-
"additionalProperties": false,
|
|
1303
1301
|
"properties": {
|
|
1304
1302
|
"widget": {
|
|
1305
1303
|
"type": "string",
|
|
1306
|
-
"
|
|
1307
|
-
"
|
|
1304
|
+
"const": "compute",
|
|
1305
|
+
"description": "Widget name."
|
|
1308
1306
|
},
|
|
1309
1307
|
"value": {
|
|
1310
1308
|
"type": "string",
|
|
1311
1309
|
"description": "Value template, like `posts-{{fields.slug}}`."
|
|
1312
1310
|
},
|
|
1313
|
-
"name": {
|
|
1314
|
-
"type": "string",
|
|
1315
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1316
|
-
},
|
|
1317
|
-
"label": {
|
|
1318
|
-
"type": "string",
|
|
1319
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1320
|
-
},
|
|
1321
|
-
"comment": {
|
|
1322
|
-
"type": "string",
|
|
1323
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
1324
|
-
},
|
|
1325
1311
|
"required": {
|
|
1326
1312
|
"anyOf": [
|
|
1327
1313
|
{
|
|
@@ -1362,6 +1348,18 @@
|
|
|
1362
1348
|
"maxItems": 2,
|
|
1363
1349
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1364
1350
|
},
|
|
1351
|
+
"name": {
|
|
1352
|
+
"type": "string",
|
|
1353
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1354
|
+
},
|
|
1355
|
+
"label": {
|
|
1356
|
+
"type": "string",
|
|
1357
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1358
|
+
},
|
|
1359
|
+
"comment": {
|
|
1360
|
+
"type": "string",
|
|
1361
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1362
|
+
},
|
|
1365
1363
|
"hint": {
|
|
1366
1364
|
"type": "string",
|
|
1367
1365
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -1400,12 +1398,11 @@
|
|
|
1400
1398
|
},
|
|
1401
1399
|
"DateTimeField": {
|
|
1402
1400
|
"type": "object",
|
|
1403
|
-
"additionalProperties": false,
|
|
1404
1401
|
"properties": {
|
|
1405
1402
|
"widget": {
|
|
1406
1403
|
"type": "string",
|
|
1407
|
-
"
|
|
1408
|
-
"
|
|
1404
|
+
"const": "datetime",
|
|
1405
|
+
"description": "Widget name."
|
|
1409
1406
|
},
|
|
1410
1407
|
"default": {
|
|
1411
1408
|
"type": "string",
|
|
@@ -1433,18 +1430,6 @@
|
|
|
1433
1430
|
"type": "boolean",
|
|
1434
1431
|
"description": "Whether to make the date input/output UTC. Default: `false`."
|
|
1435
1432
|
},
|
|
1436
|
-
"name": {
|
|
1437
|
-
"type": "string",
|
|
1438
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1439
|
-
},
|
|
1440
|
-
"label": {
|
|
1441
|
-
"type": "string",
|
|
1442
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1443
|
-
},
|
|
1444
|
-
"comment": {
|
|
1445
|
-
"type": "string",
|
|
1446
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
1447
|
-
},
|
|
1448
1433
|
"required": {
|
|
1449
1434
|
"anyOf": [
|
|
1450
1435
|
{
|
|
@@ -1485,6 +1470,18 @@
|
|
|
1485
1470
|
"maxItems": 2,
|
|
1486
1471
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1487
1472
|
},
|
|
1473
|
+
"name": {
|
|
1474
|
+
"type": "string",
|
|
1475
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1476
|
+
},
|
|
1477
|
+
"label": {
|
|
1478
|
+
"type": "string",
|
|
1479
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1480
|
+
},
|
|
1481
|
+
"comment": {
|
|
1482
|
+
"type": "string",
|
|
1483
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1484
|
+
},
|
|
1488
1485
|
"hint": {
|
|
1489
1486
|
"type": "string",
|
|
1490
1487
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -1522,12 +1519,11 @@
|
|
|
1522
1519
|
},
|
|
1523
1520
|
"FileField": {
|
|
1524
1521
|
"type": "object",
|
|
1525
|
-
"additionalProperties": false,
|
|
1526
1522
|
"properties": {
|
|
1527
1523
|
"widget": {
|
|
1528
1524
|
"type": "string",
|
|
1529
|
-
"
|
|
1530
|
-
"
|
|
1525
|
+
"const": "file",
|
|
1526
|
+
"description": "Widget name."
|
|
1531
1527
|
},
|
|
1532
1528
|
"default": {
|
|
1533
1529
|
"type": "string",
|
|
@@ -1587,7 +1583,7 @@
|
|
|
1587
1583
|
},
|
|
1588
1584
|
"config": {
|
|
1589
1585
|
"type": "object",
|
|
1590
|
-
"description": "Options to be passed to
|
|
1586
|
+
"description": "Options to be passed to Cloudinary, such as `multiple`. The `cloud_name` and `api_key` options are required for the global `media_library` option. See https://cloudinary.com/documentation/media_library_widget#2_set_the_configuration_options for a full list of available options."
|
|
1591
1587
|
}
|
|
1592
1588
|
}
|
|
1593
1589
|
},
|
|
@@ -1637,18 +1633,6 @@
|
|
|
1637
1633
|
"type": "boolean",
|
|
1638
1634
|
"description": "Whether to enable multiple item selection in an external media library. Default: `true`."
|
|
1639
1635
|
},
|
|
1640
|
-
"name": {
|
|
1641
|
-
"type": "string",
|
|
1642
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1643
|
-
},
|
|
1644
|
-
"label": {
|
|
1645
|
-
"type": "string",
|
|
1646
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1647
|
-
},
|
|
1648
|
-
"comment": {
|
|
1649
|
-
"type": "string",
|
|
1650
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
1651
|
-
},
|
|
1652
1636
|
"required": {
|
|
1653
1637
|
"anyOf": [
|
|
1654
1638
|
{
|
|
@@ -1689,6 +1673,18 @@
|
|
|
1689
1673
|
"maxItems": 2,
|
|
1690
1674
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1691
1675
|
},
|
|
1676
|
+
"name": {
|
|
1677
|
+
"type": "string",
|
|
1678
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1679
|
+
},
|
|
1680
|
+
"label": {
|
|
1681
|
+
"type": "string",
|
|
1682
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1683
|
+
},
|
|
1684
|
+
"comment": {
|
|
1685
|
+
"type": "string",
|
|
1686
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1687
|
+
},
|
|
1692
1688
|
"hint": {
|
|
1693
1689
|
"type": "string",
|
|
1694
1690
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -1726,28 +1722,15 @@
|
|
|
1726
1722
|
},
|
|
1727
1723
|
"HiddenField": {
|
|
1728
1724
|
"type": "object",
|
|
1729
|
-
"additionalProperties": false,
|
|
1730
1725
|
"properties": {
|
|
1731
1726
|
"widget": {
|
|
1732
1727
|
"type": "string",
|
|
1733
|
-
"
|
|
1734
|
-
"
|
|
1728
|
+
"const": "hidden",
|
|
1729
|
+
"description": "Widget name."
|
|
1735
1730
|
},
|
|
1736
1731
|
"default": {
|
|
1737
1732
|
"description": "Default value. Accepts any data type that can be stored with the configured file format."
|
|
1738
1733
|
},
|
|
1739
|
-
"name": {
|
|
1740
|
-
"type": "string",
|
|
1741
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1742
|
-
},
|
|
1743
|
-
"label": {
|
|
1744
|
-
"type": "string",
|
|
1745
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1746
|
-
},
|
|
1747
|
-
"comment": {
|
|
1748
|
-
"type": "string",
|
|
1749
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
1750
|
-
},
|
|
1751
1734
|
"required": {
|
|
1752
1735
|
"anyOf": [
|
|
1753
1736
|
{
|
|
@@ -1788,6 +1771,18 @@
|
|
|
1788
1771
|
"maxItems": 2,
|
|
1789
1772
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1790
1773
|
},
|
|
1774
|
+
"name": {
|
|
1775
|
+
"type": "string",
|
|
1776
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1777
|
+
},
|
|
1778
|
+
"label": {
|
|
1779
|
+
"type": "string",
|
|
1780
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1781
|
+
},
|
|
1782
|
+
"comment": {
|
|
1783
|
+
"type": "string",
|
|
1784
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1785
|
+
},
|
|
1791
1786
|
"hint": {
|
|
1792
1787
|
"type": "string",
|
|
1793
1788
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -1825,12 +1820,11 @@
|
|
|
1825
1820
|
},
|
|
1826
1821
|
"ImageField": {
|
|
1827
1822
|
"type": "object",
|
|
1828
|
-
"additionalProperties": false,
|
|
1829
1823
|
"properties": {
|
|
1830
1824
|
"widget": {
|
|
1831
1825
|
"type": "string",
|
|
1832
|
-
"
|
|
1833
|
-
"
|
|
1826
|
+
"const": "image",
|
|
1827
|
+
"description": "Widget name."
|
|
1834
1828
|
},
|
|
1835
1829
|
"default": {
|
|
1836
1830
|
"type": "string",
|
|
@@ -1890,7 +1884,7 @@
|
|
|
1890
1884
|
},
|
|
1891
1885
|
"config": {
|
|
1892
1886
|
"type": "object",
|
|
1893
|
-
"description": "Options to be passed to
|
|
1887
|
+
"description": "Options to be passed to Cloudinary, such as `multiple`. The `cloud_name` and `api_key` options are required for the global `media_library` option. See https://cloudinary.com/documentation/media_library_widget#2_set_the_configuration_options for a full list of available options."
|
|
1894
1888
|
}
|
|
1895
1889
|
}
|
|
1896
1890
|
},
|
|
@@ -1940,18 +1934,6 @@
|
|
|
1940
1934
|
"type": "boolean",
|
|
1941
1935
|
"description": "Whether to enable multiple item selection in an external media library. Default: `true`."
|
|
1942
1936
|
},
|
|
1943
|
-
"name": {
|
|
1944
|
-
"type": "string",
|
|
1945
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1946
|
-
},
|
|
1947
|
-
"label": {
|
|
1948
|
-
"type": "string",
|
|
1949
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1950
|
-
},
|
|
1951
|
-
"comment": {
|
|
1952
|
-
"type": "string",
|
|
1953
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
1954
|
-
},
|
|
1955
1937
|
"required": {
|
|
1956
1938
|
"anyOf": [
|
|
1957
1939
|
{
|
|
@@ -1992,6 +1974,18 @@
|
|
|
1992
1974
|
"maxItems": 2,
|
|
1993
1975
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
1994
1976
|
},
|
|
1977
|
+
"name": {
|
|
1978
|
+
"type": "string",
|
|
1979
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
1980
|
+
},
|
|
1981
|
+
"label": {
|
|
1982
|
+
"type": "string",
|
|
1983
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
1984
|
+
},
|
|
1985
|
+
"comment": {
|
|
1986
|
+
"type": "string",
|
|
1987
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
1988
|
+
},
|
|
1995
1989
|
"hint": {
|
|
1996
1990
|
"type": "string",
|
|
1997
1991
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -2029,20 +2023,19 @@
|
|
|
2029
2023
|
},
|
|
2030
2024
|
"KeyValueField": {
|
|
2031
2025
|
"type": "object",
|
|
2032
|
-
"additionalProperties": false,
|
|
2033
2026
|
"properties": {
|
|
2034
2027
|
"min": {
|
|
2035
2028
|
"type": "number",
|
|
2036
|
-
"description": "Minimum number of items that can be added. Default: 0
|
|
2029
|
+
"description": "Minimum number of items that can be added. Default: `0`."
|
|
2037
2030
|
},
|
|
2038
2031
|
"max": {
|
|
2039
2032
|
"type": "number",
|
|
2040
|
-
"description": "Maximum number of items that can be added. Default:
|
|
2033
|
+
"description": "Maximum number of items that can be added. Default: `Infinity`."
|
|
2041
2034
|
},
|
|
2042
2035
|
"widget": {
|
|
2043
2036
|
"type": "string",
|
|
2044
|
-
"
|
|
2045
|
-
"
|
|
2037
|
+
"const": "keyvalue",
|
|
2038
|
+
"description": "Widget name."
|
|
2046
2039
|
},
|
|
2047
2040
|
"default": {
|
|
2048
2041
|
"type": "object",
|
|
@@ -2059,18 +2052,6 @@
|
|
|
2059
2052
|
"type": "string",
|
|
2060
2053
|
"description": "Label for the value column. Default: Value."
|
|
2061
2054
|
},
|
|
2062
|
-
"name": {
|
|
2063
|
-
"type": "string",
|
|
2064
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2065
|
-
},
|
|
2066
|
-
"label": {
|
|
2067
|
-
"type": "string",
|
|
2068
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2069
|
-
},
|
|
2070
|
-
"comment": {
|
|
2071
|
-
"type": "string",
|
|
2072
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
2073
|
-
},
|
|
2074
2055
|
"required": {
|
|
2075
2056
|
"anyOf": [
|
|
2076
2057
|
{
|
|
@@ -2111,6 +2092,18 @@
|
|
|
2111
2092
|
"maxItems": 2,
|
|
2112
2093
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
2113
2094
|
},
|
|
2095
|
+
"name": {
|
|
2096
|
+
"type": "string",
|
|
2097
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2098
|
+
},
|
|
2099
|
+
"label": {
|
|
2100
|
+
"type": "string",
|
|
2101
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2102
|
+
},
|
|
2103
|
+
"comment": {
|
|
2104
|
+
"type": "string",
|
|
2105
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
2106
|
+
},
|
|
2114
2107
|
"hint": {
|
|
2115
2108
|
"type": "string",
|
|
2116
2109
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -2148,7 +2141,6 @@
|
|
|
2148
2141
|
},
|
|
2149
2142
|
"ListField": {
|
|
2150
2143
|
"type": "object",
|
|
2151
|
-
"additionalProperties": false,
|
|
2152
2144
|
"properties": {
|
|
2153
2145
|
"types": {
|
|
2154
2146
|
"type": "array",
|
|
@@ -2163,16 +2155,16 @@
|
|
|
2163
2155
|
},
|
|
2164
2156
|
"min": {
|
|
2165
2157
|
"type": "number",
|
|
2166
|
-
"description": "Minimum number of items that can be added. Default: 0
|
|
2158
|
+
"description": "Minimum number of items that can be added. Default: `0`."
|
|
2167
2159
|
},
|
|
2168
2160
|
"max": {
|
|
2169
2161
|
"type": "number",
|
|
2170
|
-
"description": "Maximum number of items that can be added. Default:
|
|
2162
|
+
"description": "Maximum number of items that can be added. Default: `Infinity`."
|
|
2171
2163
|
},
|
|
2172
2164
|
"widget": {
|
|
2173
2165
|
"type": "string",
|
|
2174
|
-
"
|
|
2175
|
-
"
|
|
2166
|
+
"const": "list",
|
|
2167
|
+
"description": "Widget name."
|
|
2176
2168
|
},
|
|
2177
2169
|
"default": {
|
|
2178
2170
|
"anyOf": [
|
|
@@ -2249,18 +2241,6 @@
|
|
|
2249
2241
|
"type": "boolean",
|
|
2250
2242
|
"description": "Whether to save the field value at the top-level of the data file without the field name. If the `single_file` i18n structure is enabled, the lists will still be saved under locale keys. Default: `false`. See https://github.com/sveltia/sveltia-cms#editing-data-files-with-a-top-level-list for details."
|
|
2251
2243
|
},
|
|
2252
|
-
"name": {
|
|
2253
|
-
"type": "string",
|
|
2254
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2255
|
-
},
|
|
2256
|
-
"label": {
|
|
2257
|
-
"type": "string",
|
|
2258
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2259
|
-
},
|
|
2260
|
-
"comment": {
|
|
2261
|
-
"type": "string",
|
|
2262
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
2263
|
-
},
|
|
2264
2244
|
"required": {
|
|
2265
2245
|
"anyOf": [
|
|
2266
2246
|
{
|
|
@@ -2301,6 +2281,18 @@
|
|
|
2301
2281
|
"maxItems": 2,
|
|
2302
2282
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
2303
2283
|
},
|
|
2284
|
+
"name": {
|
|
2285
|
+
"type": "string",
|
|
2286
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2287
|
+
},
|
|
2288
|
+
"label": {
|
|
2289
|
+
"type": "string",
|
|
2290
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2291
|
+
},
|
|
2292
|
+
"comment": {
|
|
2293
|
+
"type": "string",
|
|
2294
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
2295
|
+
},
|
|
2304
2296
|
"hint": {
|
|
2305
2297
|
"type": "string",
|
|
2306
2298
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -2372,12 +2364,11 @@
|
|
|
2372
2364
|
},
|
|
2373
2365
|
"MapField": {
|
|
2374
2366
|
"type": "object",
|
|
2375
|
-
"additionalProperties": false,
|
|
2376
2367
|
"properties": {
|
|
2377
2368
|
"widget": {
|
|
2378
2369
|
"type": "string",
|
|
2379
|
-
"
|
|
2380
|
-
"
|
|
2370
|
+
"const": "map",
|
|
2371
|
+
"description": "Widget name."
|
|
2381
2372
|
},
|
|
2382
2373
|
"default": {
|
|
2383
2374
|
"type": "string",
|
|
@@ -2385,7 +2376,7 @@
|
|
|
2385
2376
|
},
|
|
2386
2377
|
"decimals": {
|
|
2387
2378
|
"type": "number",
|
|
2388
|
-
"description": "Precision of coordinates to be saved. Default: 7
|
|
2379
|
+
"description": "Precision of coordinates to be saved. Default: `7`."
|
|
2389
2380
|
},
|
|
2390
2381
|
"type": {
|
|
2391
2382
|
"type": "string",
|
|
@@ -2394,19 +2385,7 @@
|
|
|
2394
2385
|
"LineString",
|
|
2395
2386
|
"Polygon"
|
|
2396
2387
|
],
|
|
2397
|
-
"description": "Geometry type. Default: Point
|
|
2398
|
-
},
|
|
2399
|
-
"name": {
|
|
2400
|
-
"type": "string",
|
|
2401
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2402
|
-
},
|
|
2403
|
-
"label": {
|
|
2404
|
-
"type": "string",
|
|
2405
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2406
|
-
},
|
|
2407
|
-
"comment": {
|
|
2408
|
-
"type": "string",
|
|
2409
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
2388
|
+
"description": "Geometry type. Default: `Point`."
|
|
2410
2389
|
},
|
|
2411
2390
|
"required": {
|
|
2412
2391
|
"anyOf": [
|
|
@@ -2448,6 +2427,18 @@
|
|
|
2448
2427
|
"maxItems": 2,
|
|
2449
2428
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
2450
2429
|
},
|
|
2430
|
+
"name": {
|
|
2431
|
+
"type": "string",
|
|
2432
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2433
|
+
},
|
|
2434
|
+
"label": {
|
|
2435
|
+
"type": "string",
|
|
2436
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2437
|
+
},
|
|
2438
|
+
"comment": {
|
|
2439
|
+
"type": "string",
|
|
2440
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
2441
|
+
},
|
|
2451
2442
|
"hint": {
|
|
2452
2443
|
"type": "string",
|
|
2453
2444
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -2485,12 +2476,11 @@
|
|
|
2485
2476
|
},
|
|
2486
2477
|
"MarkdownField": {
|
|
2487
2478
|
"type": "object",
|
|
2488
|
-
"additionalProperties": false,
|
|
2489
2479
|
"properties": {
|
|
2490
2480
|
"widget": {
|
|
2491
2481
|
"type": "string",
|
|
2492
|
-
"
|
|
2493
|
-
"
|
|
2482
|
+
"const": "markdown",
|
|
2483
|
+
"description": "Widget name."
|
|
2494
2484
|
},
|
|
2495
2485
|
"default": {
|
|
2496
2486
|
"type": "string",
|
|
@@ -2536,18 +2526,6 @@
|
|
|
2536
2526
|
"type": "boolean",
|
|
2537
2527
|
"description": "Whether to enable the linked images feature for the built-in `image` component. Default: `true`. When enabled, the image component provides an additional text field for specifying a URL to wrap the image as a link. The resulting Markdown output will be in the format `[](link)`, where clicking the image navigates to the provided link. This feature can be disabled if it causes conflicts with certain frameworks."
|
|
2538
2528
|
},
|
|
2539
|
-
"name": {
|
|
2540
|
-
"type": "string",
|
|
2541
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2542
|
-
},
|
|
2543
|
-
"label": {
|
|
2544
|
-
"type": "string",
|
|
2545
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2546
|
-
},
|
|
2547
|
-
"comment": {
|
|
2548
|
-
"type": "string",
|
|
2549
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
2550
|
-
},
|
|
2551
2529
|
"required": {
|
|
2552
2530
|
"anyOf": [
|
|
2553
2531
|
{
|
|
@@ -2588,6 +2566,18 @@
|
|
|
2588
2566
|
"maxItems": 2,
|
|
2589
2567
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
2590
2568
|
},
|
|
2569
|
+
"name": {
|
|
2570
|
+
"type": "string",
|
|
2571
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2572
|
+
},
|
|
2573
|
+
"label": {
|
|
2574
|
+
"type": "string",
|
|
2575
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2576
|
+
},
|
|
2577
|
+
"comment": {
|
|
2578
|
+
"type": "string",
|
|
2579
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
2580
|
+
},
|
|
2591
2581
|
"hint": {
|
|
2592
2582
|
"type": "string",
|
|
2593
2583
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -2660,7 +2650,6 @@
|
|
|
2660
2650
|
},
|
|
2661
2651
|
"NumberField": {
|
|
2662
2652
|
"type": "object",
|
|
2663
|
-
"additionalProperties": false,
|
|
2664
2653
|
"properties": {
|
|
2665
2654
|
"before_input": {
|
|
2666
2655
|
"type": "string",
|
|
@@ -2672,8 +2661,8 @@
|
|
|
2672
2661
|
},
|
|
2673
2662
|
"widget": {
|
|
2674
2663
|
"type": "string",
|
|
2675
|
-
"
|
|
2676
|
-
"
|
|
2664
|
+
"const": "number",
|
|
2665
|
+
"description": "Widget name."
|
|
2677
2666
|
},
|
|
2678
2667
|
"default": {
|
|
2679
2668
|
"type": [
|
|
@@ -2688,27 +2677,15 @@
|
|
|
2688
2677
|
},
|
|
2689
2678
|
"min": {
|
|
2690
2679
|
"type": "number",
|
|
2691
|
-
"description": "Minimum value that can be entered in the input. Default:
|
|
2680
|
+
"description": "Minimum value that can be entered in the input. Default: `-Infinity`."
|
|
2692
2681
|
},
|
|
2693
2682
|
"max": {
|
|
2694
2683
|
"type": "number",
|
|
2695
|
-
"description": "Maximum value that can be entered in the input. Default:
|
|
2684
|
+
"description": "Maximum value that can be entered in the input. Default: `Infinity`."
|
|
2696
2685
|
},
|
|
2697
2686
|
"step": {
|
|
2698
2687
|
"type": "number",
|
|
2699
|
-
"description": "Number to increase/decrease with the arrow key/button. Default: 1
|
|
2700
|
-
},
|
|
2701
|
-
"name": {
|
|
2702
|
-
"type": "string",
|
|
2703
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2704
|
-
},
|
|
2705
|
-
"label": {
|
|
2706
|
-
"type": "string",
|
|
2707
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2708
|
-
},
|
|
2709
|
-
"comment": {
|
|
2710
|
-
"type": "string",
|
|
2711
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
2688
|
+
"description": "Number to increase/decrease with the arrow key/button. Default: `1`."
|
|
2712
2689
|
},
|
|
2713
2690
|
"required": {
|
|
2714
2691
|
"anyOf": [
|
|
@@ -2750,6 +2727,18 @@
|
|
|
2750
2727
|
"maxItems": 2,
|
|
2751
2728
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
2752
2729
|
},
|
|
2730
|
+
"name": {
|
|
2731
|
+
"type": "string",
|
|
2732
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2733
|
+
},
|
|
2734
|
+
"label": {
|
|
2735
|
+
"type": "string",
|
|
2736
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2737
|
+
},
|
|
2738
|
+
"comment": {
|
|
2739
|
+
"type": "string",
|
|
2740
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
2741
|
+
},
|
|
2753
2742
|
"hint": {
|
|
2754
2743
|
"type": "string",
|
|
2755
2744
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -2787,7 +2776,6 @@
|
|
|
2787
2776
|
},
|
|
2788
2777
|
"ObjectField": {
|
|
2789
2778
|
"type": "object",
|
|
2790
|
-
"additionalProperties": false,
|
|
2791
2779
|
"properties": {
|
|
2792
2780
|
"types": {
|
|
2793
2781
|
"type": "array",
|
|
@@ -2802,8 +2790,8 @@
|
|
|
2802
2790
|
},
|
|
2803
2791
|
"widget": {
|
|
2804
2792
|
"type": "string",
|
|
2805
|
-
"
|
|
2806
|
-
"
|
|
2793
|
+
"const": "object",
|
|
2794
|
+
"description": "Widget name."
|
|
2807
2795
|
},
|
|
2808
2796
|
"default": {
|
|
2809
2797
|
"type": "object",
|
|
@@ -2832,18 +2820,6 @@
|
|
|
2832
2820
|
},
|
|
2833
2821
|
"description": "Set of fields to be included."
|
|
2834
2822
|
},
|
|
2835
|
-
"name": {
|
|
2836
|
-
"type": "string",
|
|
2837
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2838
|
-
},
|
|
2839
|
-
"label": {
|
|
2840
|
-
"type": "string",
|
|
2841
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2842
|
-
},
|
|
2843
|
-
"comment": {
|
|
2844
|
-
"type": "string",
|
|
2845
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
2846
|
-
},
|
|
2847
2823
|
"required": {
|
|
2848
2824
|
"anyOf": [
|
|
2849
2825
|
{
|
|
@@ -2884,6 +2860,18 @@
|
|
|
2884
2860
|
"maxItems": 2,
|
|
2885
2861
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
2886
2862
|
},
|
|
2863
|
+
"name": {
|
|
2864
|
+
"type": "string",
|
|
2865
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
2866
|
+
},
|
|
2867
|
+
"label": {
|
|
2868
|
+
"type": "string",
|
|
2869
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
2870
|
+
},
|
|
2871
|
+
"comment": {
|
|
2872
|
+
"type": "string",
|
|
2873
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
2874
|
+
},
|
|
2887
2875
|
"hint": {
|
|
2888
2876
|
"type": "string",
|
|
2889
2877
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -2922,7 +2910,6 @@
|
|
|
2922
2910
|
},
|
|
2923
2911
|
"RelationField": {
|
|
2924
2912
|
"type": "object",
|
|
2925
|
-
"additionalProperties": false,
|
|
2926
2913
|
"properties": {
|
|
2927
2914
|
"multiple": {
|
|
2928
2915
|
"type": "boolean",
|
|
@@ -2930,20 +2917,20 @@
|
|
|
2930
2917
|
},
|
|
2931
2918
|
"min": {
|
|
2932
2919
|
"type": "number",
|
|
2933
|
-
"description": "Minimum number of items that can be selected. Ignored if `multiple` is `false`. Default: 0
|
|
2920
|
+
"description": "Minimum number of items that can be selected. Ignored if `multiple` is `false`. Default: `0`."
|
|
2934
2921
|
},
|
|
2935
2922
|
"max": {
|
|
2936
2923
|
"type": "number",
|
|
2937
|
-
"description": "Maximum number of items that can be selected. Ignored if `multiple` is `false`. Default:
|
|
2924
|
+
"description": "Maximum number of items that can be selected. Ignored if `multiple` is `false`. Default: `Infinity`."
|
|
2938
2925
|
},
|
|
2939
2926
|
"dropdown_threshold": {
|
|
2940
2927
|
"type": "number",
|
|
2941
|
-
"description": "Maximum number of options to be displayed as radio buttons (single-select) or checkboxes (multi-select) rather than a dropdown list. Default: 5
|
|
2928
|
+
"description": "Maximum number of options to be displayed as radio buttons (single-select) or checkboxes (multi-select) rather than a dropdown list. Default: `5`."
|
|
2942
2929
|
},
|
|
2943
2930
|
"widget": {
|
|
2944
2931
|
"type": "string",
|
|
2945
|
-
"
|
|
2946
|
-
"
|
|
2932
|
+
"const": "relation",
|
|
2933
|
+
"description": "Widget name."
|
|
2947
2934
|
},
|
|
2948
2935
|
"default": {
|
|
2949
2936
|
"anyOf": [
|
|
@@ -3002,18 +2989,6 @@
|
|
|
3002
2989
|
},
|
|
3003
2990
|
"description": "Entry filter options."
|
|
3004
2991
|
},
|
|
3005
|
-
"name": {
|
|
3006
|
-
"type": "string",
|
|
3007
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3008
|
-
},
|
|
3009
|
-
"label": {
|
|
3010
|
-
"type": "string",
|
|
3011
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3012
|
-
},
|
|
3013
|
-
"comment": {
|
|
3014
|
-
"type": "string",
|
|
3015
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
3016
|
-
},
|
|
3017
2992
|
"required": {
|
|
3018
2993
|
"anyOf": [
|
|
3019
2994
|
{
|
|
@@ -3054,6 +3029,18 @@
|
|
|
3054
3029
|
"maxItems": 2,
|
|
3055
3030
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
3056
3031
|
},
|
|
3032
|
+
"name": {
|
|
3033
|
+
"type": "string",
|
|
3034
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3035
|
+
},
|
|
3036
|
+
"label": {
|
|
3037
|
+
"type": "string",
|
|
3038
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3039
|
+
},
|
|
3040
|
+
"comment": {
|
|
3041
|
+
"type": "string",
|
|
3042
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
3043
|
+
},
|
|
3057
3044
|
"hint": {
|
|
3058
3045
|
"type": "string",
|
|
3059
3046
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -3112,7 +3099,6 @@
|
|
|
3112
3099
|
},
|
|
3113
3100
|
"SelectField": {
|
|
3114
3101
|
"type": "object",
|
|
3115
|
-
"additionalProperties": false,
|
|
3116
3102
|
"properties": {
|
|
3117
3103
|
"multiple": {
|
|
3118
3104
|
"type": "boolean",
|
|
@@ -3120,20 +3106,20 @@
|
|
|
3120
3106
|
},
|
|
3121
3107
|
"min": {
|
|
3122
3108
|
"type": "number",
|
|
3123
|
-
"description": "Minimum number of items that can be selected. Ignored if `multiple` is `false`. Default: 0
|
|
3109
|
+
"description": "Minimum number of items that can be selected. Ignored if `multiple` is `false`. Default: `0`."
|
|
3124
3110
|
},
|
|
3125
3111
|
"max": {
|
|
3126
3112
|
"type": "number",
|
|
3127
|
-
"description": "Maximum number of items that can be selected. Ignored if `multiple` is `false`. Default:
|
|
3113
|
+
"description": "Maximum number of items that can be selected. Ignored if `multiple` is `false`. Default: `Infinity`."
|
|
3128
3114
|
},
|
|
3129
3115
|
"dropdown_threshold": {
|
|
3130
3116
|
"type": "number",
|
|
3131
|
-
"description": "Maximum number of options to be displayed as radio buttons (single-select) or checkboxes (multi-select) rather than a dropdown list. Default: 5
|
|
3117
|
+
"description": "Maximum number of options to be displayed as radio buttons (single-select) or checkboxes (multi-select) rather than a dropdown list. Default: `5`."
|
|
3132
3118
|
},
|
|
3133
3119
|
"widget": {
|
|
3134
3120
|
"type": "string",
|
|
3135
|
-
"
|
|
3136
|
-
"
|
|
3121
|
+
"const": "select",
|
|
3122
|
+
"description": "Widget name."
|
|
3137
3123
|
},
|
|
3138
3124
|
"default": {
|
|
3139
3125
|
"anyOf": [
|
|
@@ -3175,18 +3161,6 @@
|
|
|
3175
3161
|
],
|
|
3176
3162
|
"description": "Options."
|
|
3177
3163
|
},
|
|
3178
|
-
"name": {
|
|
3179
|
-
"type": "string",
|
|
3180
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3181
|
-
},
|
|
3182
|
-
"label": {
|
|
3183
|
-
"type": "string",
|
|
3184
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3185
|
-
},
|
|
3186
|
-
"comment": {
|
|
3187
|
-
"type": "string",
|
|
3188
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
3189
|
-
},
|
|
3190
3164
|
"required": {
|
|
3191
3165
|
"anyOf": [
|
|
3192
3166
|
{
|
|
@@ -3227,6 +3201,18 @@
|
|
|
3227
3201
|
"maxItems": 2,
|
|
3228
3202
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
3229
3203
|
},
|
|
3204
|
+
"name": {
|
|
3205
|
+
"type": "string",
|
|
3206
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3207
|
+
},
|
|
3208
|
+
"label": {
|
|
3209
|
+
"type": "string",
|
|
3210
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3211
|
+
},
|
|
3212
|
+
"comment": {
|
|
3213
|
+
"type": "string",
|
|
3214
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
3215
|
+
},
|
|
3230
3216
|
"hint": {
|
|
3231
3217
|
"type": "string",
|
|
3232
3218
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -3265,15 +3251,14 @@
|
|
|
3265
3251
|
},
|
|
3266
3252
|
"StringField": {
|
|
3267
3253
|
"type": "object",
|
|
3268
|
-
"additionalProperties": false,
|
|
3269
3254
|
"properties": {
|
|
3270
3255
|
"minlength": {
|
|
3271
3256
|
"type": "number",
|
|
3272
|
-
"description": "Minimum number of characters that can be entered in the input. Default: 0
|
|
3257
|
+
"description": "Minimum number of characters that can be entered in the input. Default: `0`."
|
|
3273
3258
|
},
|
|
3274
3259
|
"maxlength": {
|
|
3275
3260
|
"type": "number",
|
|
3276
|
-
"description": "Maximum number of characters that can be entered in the input. Default:
|
|
3261
|
+
"description": "Maximum number of characters that can be entered in the input. Default: `Infinity`."
|
|
3277
3262
|
},
|
|
3278
3263
|
"before_input": {
|
|
3279
3264
|
"type": "string",
|
|
@@ -3285,8 +3270,8 @@
|
|
|
3285
3270
|
},
|
|
3286
3271
|
"widget": {
|
|
3287
3272
|
"type": "string",
|
|
3288
|
-
"
|
|
3289
|
-
"
|
|
3273
|
+
"const": "string",
|
|
3274
|
+
"description": "Widget name."
|
|
3290
3275
|
},
|
|
3291
3276
|
"default": {
|
|
3292
3277
|
"type": "string",
|
|
@@ -3299,7 +3284,7 @@
|
|
|
3299
3284
|
"url",
|
|
3300
3285
|
"email"
|
|
3301
3286
|
],
|
|
3302
|
-
"description": "Data type. It’s useful when the input value needs a validation. Default: text
|
|
3287
|
+
"description": "Data type. It’s useful when the input value needs a validation. Default: `text`."
|
|
3303
3288
|
},
|
|
3304
3289
|
"prefix": {
|
|
3305
3290
|
"type": "string",
|
|
@@ -3309,18 +3294,6 @@
|
|
|
3309
3294
|
"type": "string",
|
|
3310
3295
|
"description": "A string to be appended to the value. Default: empty string."
|
|
3311
3296
|
},
|
|
3312
|
-
"name": {
|
|
3313
|
-
"type": "string",
|
|
3314
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3315
|
-
},
|
|
3316
|
-
"label": {
|
|
3317
|
-
"type": "string",
|
|
3318
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3319
|
-
},
|
|
3320
|
-
"comment": {
|
|
3321
|
-
"type": "string",
|
|
3322
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
3323
|
-
},
|
|
3324
3297
|
"required": {
|
|
3325
3298
|
"anyOf": [
|
|
3326
3299
|
{
|
|
@@ -3361,6 +3334,18 @@
|
|
|
3361
3334
|
"maxItems": 2,
|
|
3362
3335
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
3363
3336
|
},
|
|
3337
|
+
"name": {
|
|
3338
|
+
"type": "string",
|
|
3339
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3340
|
+
},
|
|
3341
|
+
"label": {
|
|
3342
|
+
"type": "string",
|
|
3343
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3344
|
+
},
|
|
3345
|
+
"comment": {
|
|
3346
|
+
"type": "string",
|
|
3347
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
3348
|
+
},
|
|
3364
3349
|
"hint": {
|
|
3365
3350
|
"type": "string",
|
|
3366
3351
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -3391,44 +3376,30 @@
|
|
|
3391
3376
|
}
|
|
3392
3377
|
},
|
|
3393
3378
|
"required": [
|
|
3394
|
-
"name"
|
|
3395
|
-
"widget"
|
|
3379
|
+
"name"
|
|
3396
3380
|
],
|
|
3397
3381
|
"description": "String field definition."
|
|
3398
3382
|
},
|
|
3399
3383
|
"TextField": {
|
|
3400
3384
|
"type": "object",
|
|
3401
|
-
"additionalProperties": false,
|
|
3402
3385
|
"properties": {
|
|
3403
3386
|
"minlength": {
|
|
3404
3387
|
"type": "number",
|
|
3405
|
-
"description": "Minimum number of characters that can be entered in the input. Default: 0
|
|
3388
|
+
"description": "Minimum number of characters that can be entered in the input. Default: `0`."
|
|
3406
3389
|
},
|
|
3407
3390
|
"maxlength": {
|
|
3408
3391
|
"type": "number",
|
|
3409
|
-
"description": "Maximum number of characters that can be entered in the input. Default:
|
|
3392
|
+
"description": "Maximum number of characters that can be entered in the input. Default: `Infinity`."
|
|
3410
3393
|
},
|
|
3411
3394
|
"widget": {
|
|
3412
3395
|
"type": "string",
|
|
3413
|
-
"
|
|
3414
|
-
"
|
|
3396
|
+
"const": "text",
|
|
3397
|
+
"description": "Widget name."
|
|
3415
3398
|
},
|
|
3416
3399
|
"default": {
|
|
3417
3400
|
"type": "string",
|
|
3418
3401
|
"description": "Default value."
|
|
3419
3402
|
},
|
|
3420
|
-
"name": {
|
|
3421
|
-
"type": "string",
|
|
3422
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3423
|
-
},
|
|
3424
|
-
"label": {
|
|
3425
|
-
"type": "string",
|
|
3426
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3427
|
-
},
|
|
3428
|
-
"comment": {
|
|
3429
|
-
"type": "string",
|
|
3430
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
3431
|
-
},
|
|
3432
3403
|
"required": {
|
|
3433
3404
|
"anyOf": [
|
|
3434
3405
|
{
|
|
@@ -3469,6 +3440,18 @@
|
|
|
3469
3440
|
"maxItems": 2,
|
|
3470
3441
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
3471
3442
|
},
|
|
3443
|
+
"name": {
|
|
3444
|
+
"type": "string",
|
|
3445
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3446
|
+
},
|
|
3447
|
+
"label": {
|
|
3448
|
+
"type": "string",
|
|
3449
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3450
|
+
},
|
|
3451
|
+
"comment": {
|
|
3452
|
+
"type": "string",
|
|
3453
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
3454
|
+
},
|
|
3472
3455
|
"hint": {
|
|
3473
3456
|
"type": "string",
|
|
3474
3457
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -3506,12 +3489,11 @@
|
|
|
3506
3489
|
},
|
|
3507
3490
|
"UuidField": {
|
|
3508
3491
|
"type": "object",
|
|
3509
|
-
"additionalProperties": false,
|
|
3510
3492
|
"properties": {
|
|
3511
3493
|
"widget": {
|
|
3512
3494
|
"type": "string",
|
|
3513
|
-
"
|
|
3514
|
-
"
|
|
3495
|
+
"const": "uuid",
|
|
3496
|
+
"description": "Widget name."
|
|
3515
3497
|
},
|
|
3516
3498
|
"default": {
|
|
3517
3499
|
"type": "string",
|
|
@@ -3529,18 +3511,6 @@
|
|
|
3529
3511
|
"type": "boolean",
|
|
3530
3512
|
"description": "Whether to make the field read-only. Default: `true`."
|
|
3531
3513
|
},
|
|
3532
|
-
"name": {
|
|
3533
|
-
"type": "string",
|
|
3534
|
-
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3535
|
-
},
|
|
3536
|
-
"label": {
|
|
3537
|
-
"type": "string",
|
|
3538
|
-
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3539
|
-
},
|
|
3540
|
-
"comment": {
|
|
3541
|
-
"type": "string",
|
|
3542
|
-
"description": "Short description of the field to be displayed in the editor UI."
|
|
3543
|
-
},
|
|
3544
3514
|
"required": {
|
|
3545
3515
|
"anyOf": [
|
|
3546
3516
|
{
|
|
@@ -3581,6 +3551,18 @@
|
|
|
3581
3551
|
"maxItems": 2,
|
|
3582
3552
|
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
3583
3553
|
},
|
|
3554
|
+
"name": {
|
|
3555
|
+
"type": "string",
|
|
3556
|
+
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
3557
|
+
},
|
|
3558
|
+
"label": {
|
|
3559
|
+
"type": "string",
|
|
3560
|
+
"description": "Label of the field to be displayed in the editor UI. Default: `name` field value."
|
|
3561
|
+
},
|
|
3562
|
+
"comment": {
|
|
3563
|
+
"type": "string",
|
|
3564
|
+
"description": "Short description of the field to be displayed in the editor UI."
|
|
3565
|
+
},
|
|
3584
3566
|
"hint": {
|
|
3585
3567
|
"type": "string",
|
|
3586
3568
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -3619,6 +3601,10 @@
|
|
|
3619
3601
|
"CustomField": {
|
|
3620
3602
|
"type": "object",
|
|
3621
3603
|
"properties": {
|
|
3604
|
+
"widget": {
|
|
3605
|
+
"type": "string",
|
|
3606
|
+
"description": "Widget name."
|
|
3607
|
+
},
|
|
3622
3608
|
"name": {
|
|
3623
3609
|
"type": "string",
|
|
3624
3610
|
"description": "Unique identifier for the field. It cannot include periods and spaces."
|
|
@@ -3631,50 +3617,6 @@
|
|
|
3631
3617
|
"type": "string",
|
|
3632
3618
|
"description": "Short description of the field to be displayed in the editor UI."
|
|
3633
3619
|
},
|
|
3634
|
-
"widget": {
|
|
3635
|
-
"type": "string",
|
|
3636
|
-
"description": "Name of a widget that defines the input UI and data type. Default: `string`."
|
|
3637
|
-
},
|
|
3638
|
-
"required": {
|
|
3639
|
-
"anyOf": [
|
|
3640
|
-
{
|
|
3641
|
-
"type": "boolean"
|
|
3642
|
-
},
|
|
3643
|
-
{
|
|
3644
|
-
"type": "array",
|
|
3645
|
-
"items": {
|
|
3646
|
-
"$ref": "#/definitions/LocaleCode"
|
|
3647
|
-
}
|
|
3648
|
-
}
|
|
3649
|
-
],
|
|
3650
|
-
"description": "Whether to make data input on the field required. Default: `true`. This option also affects data output if the `omit_empty_optional_fields` global output option is `true`. If i18n is enabled and the field doesn’t require input in all locales, required locale codes can be passed as an array like `[en, fr]` instead of a boolean."
|
|
3651
|
-
},
|
|
3652
|
-
"readonly": {
|
|
3653
|
-
"type": "boolean",
|
|
3654
|
-
"description": "Whether to make the field read-only. Default: `false`. This is useful when a `default` value is provided and the field should not be editable by users."
|
|
3655
|
-
},
|
|
3656
|
-
"pattern": {
|
|
3657
|
-
"type": "array",
|
|
3658
|
-
"minItems": 2,
|
|
3659
|
-
"items": [
|
|
3660
|
-
{
|
|
3661
|
-
"anyOf": [
|
|
3662
|
-
{
|
|
3663
|
-
"type": "string"
|
|
3664
|
-
},
|
|
3665
|
-
{
|
|
3666
|
-
"type": "string",
|
|
3667
|
-
"format": "regex"
|
|
3668
|
-
}
|
|
3669
|
-
]
|
|
3670
|
-
},
|
|
3671
|
-
{
|
|
3672
|
-
"type": "string"
|
|
3673
|
-
}
|
|
3674
|
-
],
|
|
3675
|
-
"maxItems": 2,
|
|
3676
|
-
"description": "Validation format. The first argument is a regular expression matching pattern for a valid input value, and the second argument is an error message. This option has no effect on a List or Object field with subfields."
|
|
3677
|
-
},
|
|
3678
3620
|
"hint": {
|
|
3679
3621
|
"type": "string",
|
|
3680
3622
|
"description": "Help message to be displayed below the input UI. Limited Markdown formatting is supported: bold, italic, strikethrough and links."
|
|
@@ -3705,9 +3647,10 @@
|
|
|
3705
3647
|
}
|
|
3706
3648
|
},
|
|
3707
3649
|
"required": [
|
|
3708
|
-
"name"
|
|
3650
|
+
"name",
|
|
3651
|
+
"widget"
|
|
3709
3652
|
],
|
|
3710
|
-
"description": "Entry field using a custom widget.
|
|
3653
|
+
"description": "Entry field using a custom widget."
|
|
3711
3654
|
},
|
|
3712
3655
|
"FileFormat": {
|
|
3713
3656
|
"anyOf": [
|
|
@@ -4001,7 +3944,7 @@
|
|
|
4001
3944
|
"properties": {
|
|
4002
3945
|
"depth": {
|
|
4003
3946
|
"type": "number",
|
|
4004
|
-
"description": "Maximum depth to show nested items in the collection tree. Default:
|
|
3947
|
+
"description": "Maximum depth to show nested items in the collection tree. Default: `Infinity`."
|
|
4005
3948
|
},
|
|
4006
3949
|
"summary": {
|
|
4007
3950
|
"type": "string",
|
|
@@ -4072,6 +4015,24 @@
|
|
|
4072
4015
|
"additionalProperties": false,
|
|
4073
4016
|
"description": "Index file inclusion options."
|
|
4074
4017
|
},
|
|
4018
|
+
"CollectionDivider": {
|
|
4019
|
+
"type": "object",
|
|
4020
|
+
"properties": {
|
|
4021
|
+
"name": {
|
|
4022
|
+
"type": "string",
|
|
4023
|
+
"description": "Unique identifier for the divider. Can be omitted, but it must be unique across all the collections and singletons. This property is included here because in the previous version of Sveltia CMS, a divider was defined as a collection with the `divider` option set to `true`, and the `name` option was required."
|
|
4024
|
+
},
|
|
4025
|
+
"divider": {
|
|
4026
|
+
"type": "boolean",
|
|
4027
|
+
"description": "Whether to make this collection a divider UI in the collection list. It must be `true` to be used as a divider."
|
|
4028
|
+
}
|
|
4029
|
+
},
|
|
4030
|
+
"required": [
|
|
4031
|
+
"divider"
|
|
4032
|
+
],
|
|
4033
|
+
"additionalProperties": false,
|
|
4034
|
+
"description": "A divider in the collection list and singleton list."
|
|
4035
|
+
},
|
|
4075
4036
|
"OutputOptions": {
|
|
4076
4037
|
"type": "object",
|
|
4077
4038
|
"properties": {
|
|
@@ -4108,7 +4069,7 @@
|
|
|
4108
4069
|
},
|
|
4109
4070
|
"indent_size": {
|
|
4110
4071
|
"type": "number",
|
|
4111
|
-
"description": "Indent size. Default: 2
|
|
4072
|
+
"description": "Indent size. Default: `2`."
|
|
4112
4073
|
}
|
|
4113
4074
|
},
|
|
4114
4075
|
"additionalProperties": false,
|
|
@@ -4119,7 +4080,7 @@
|
|
|
4119
4080
|
"properties": {
|
|
4120
4081
|
"indent_size": {
|
|
4121
4082
|
"type": "number",
|
|
4122
|
-
"description": "Indent size. Default: 2
|
|
4083
|
+
"description": "Indent size. Default: `2`."
|
|
4123
4084
|
},
|
|
4124
4085
|
"quote": {
|
|
4125
4086
|
"type": "string",
|
|
@@ -4135,6 +4096,6 @@
|
|
|
4135
4096
|
"description": "YAML format options."
|
|
4136
4097
|
}
|
|
4137
4098
|
},
|
|
4138
|
-
"title": "Sveltia CMS
|
|
4139
|
-
"description": "
|
|
4099
|
+
"title": "Sveltia CMS Configuration",
|
|
4100
|
+
"description": "Sveltia CMS site configuration file"
|
|
4140
4101
|
}
|