@cloudcannon/configuration-types 0.0.8 → 0.0.9

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.
@@ -157,6 +157,16 @@
157
157
  },
158
158
  "type": "object"
159
159
  },
160
+ "AttributeListPosition": {
161
+ "enum": [
162
+ "none",
163
+ "right",
164
+ "space right",
165
+ "below",
166
+ "newline below"
167
+ ],
168
+ "type": "string"
169
+ },
160
170
  "BaseInput": {
161
171
  "additionalProperties": false,
162
172
  "properties": {
@@ -308,12 +318,6 @@
308
318
  "markdownDescription": "Enables a control to copy formatting from text to other text. Only applies to formatting from\n`bold`, `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not copy other\nstyles or formatting.",
309
319
  "type": "boolean"
310
320
  },
311
- "correct_orientation": {
312
- "default": true,
313
- "description": "Controls whether or not the JPEG headers defining how an image should be rotated before being displayed is baked into images prior to upload.",
314
- "markdownDescription": "Controls whether or not the JPEG headers defining how an image should be rotated before being\ndisplayed is baked into images prior to upload.",
315
- "type": "boolean"
316
- },
317
321
  "embed": {
318
322
  "description": "Enables a control to insert a region of raw HTML, including YouTube, Vimeo, Tweets, and other media. Embedded content is sanitized to mitigate XSS risks, which includes removing style tags. Embeds containing script tags are not loaded in the editor.",
319
323
  "markdownDescription": "Enables a control to insert a region of raw HTML, including YouTube, Vimeo, Tweets, and other\nmedia. Embedded content is sanitized to mitigate XSS risks, which includes removing style tags.\nEmbeds containing script tags are not loaded in the editor.",
@@ -380,7 +384,8 @@
380
384
  "description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
381
385
  "enum": [
382
386
  "image/jpeg",
383
- "image/png"
387
+ "image/png",
388
+ "image/webp"
384
389
  ],
385
390
  "markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
386
391
  "type": "string"
@@ -3765,12 +3770,6 @@
3765
3770
  "markdownDescription": "If you have one or more DAMs connected to your site, you can use this key to list which asset\nsources can be uploaded to and selected from.",
3766
3771
  "type": "array"
3767
3772
  },
3768
- "correct_orientation": {
3769
- "default": true,
3770
- "description": "Controls whether or not the JPEG headers defining how an image should be rotated before being displayed is baked into images prior to upload.",
3771
- "markdownDescription": "Controls whether or not the JPEG headers defining how an image should be rotated before being\ndisplayed is baked into images prior to upload.",
3772
- "type": "boolean"
3773
- },
3774
3773
  "expandable": {
3775
3774
  "default": false,
3776
3775
  "description": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to upload. Has no effect if files are not resized.",
@@ -3792,7 +3791,8 @@
3792
3791
  "description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
3793
3792
  "enum": [
3794
3793
  "image/jpeg",
3795
- "image/png"
3794
+ "image/png",
3795
+ "image/webp"
3796
3796
  ],
3797
3797
  "markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
3798
3798
  "type": "string"
@@ -3960,12 +3960,6 @@
3960
3960
  "markdownDescription": "If you have one or more DAMs connected to your site, you can use this key to list which asset\nsources can be uploaded to and selected from.",
3961
3961
  "type": "array"
3962
3962
  },
3963
- "correct_orientation": {
3964
- "default": true,
3965
- "description": "Controls whether or not the JPEG headers defining how an image should be rotated before being displayed is baked into images prior to upload.",
3966
- "markdownDescription": "Controls whether or not the JPEG headers defining how an image should be rotated before being\ndisplayed is baked into images prior to upload.",
3967
- "type": "boolean"
3968
- },
3969
3963
  "empty_type": {
3970
3964
  "$ref": "#/definitions/EmptyTypeText",
3971
3965
  "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
@@ -3992,7 +3986,8 @@
3992
3986
  "description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
3993
3987
  "enum": [
3994
3988
  "image/jpeg",
3995
- "image/png"
3989
+ "image/png",
3990
+ "image/webp"
3996
3991
  ],
3997
3992
  "markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
3998
3993
  "type": "string"
@@ -4302,61 +4297,10 @@
4302
4297
  "markdownDescription": "Provides scope to configure at a file level, without adding configuration to files.",
4303
4298
  "type": "object"
4304
4299
  },
4305
- "generator": {
4306
- "additionalProperties": false,
4300
+ "markdown": {
4301
+ "$ref": "#/definitions/MarkdownSettings",
4307
4302
  "description": "Contains settings for various Markdown engines.",
4308
- "markdownDescription": "Contains settings for various Markdown engines.",
4309
- "properties": {
4310
- "metadata": {
4311
- "additionalProperties": false,
4312
- "description": "Settings for various Markdown engines.",
4313
- "markdownDescription": "Settings for various Markdown engines.",
4314
- "properties": {
4315
- "commonmark": {
4316
- "description": "Markdown options specific used when markdown is set to \"commonmark\".",
4317
- "markdownDescription": "Markdown options specific used when markdown is set to \"commonmark\".",
4318
- "type": "object"
4319
- },
4320
- "commonmarkghpages": {
4321
- "description": "Markdown options specific used when markdown is set to \"commonmarkghpages\".",
4322
- "markdownDescription": "Markdown options specific used when markdown is set to \"commonmarkghpages\".",
4323
- "type": "object"
4324
- },
4325
- "goldmark": {
4326
- "description": "Markdown options specific used when markdown is set to \"goldmark\".",
4327
- "markdownDescription": "Markdown options specific used when markdown is set to \"goldmark\".",
4328
- "type": "object"
4329
- },
4330
- "kramdown": {
4331
- "description": "Markdown options specific used when markdown is set to \"kramdown\".",
4332
- "markdownDescription": "Markdown options specific used when markdown is set to \"kramdown\".",
4333
- "type": "object"
4334
- },
4335
- "markdown": {
4336
- "description": "The Markdown engine used on your site.",
4337
- "enum": [
4338
- "kramdown",
4339
- "commonmark",
4340
- "commonmarkghpages",
4341
- "goldmark",
4342
- "markdown-it"
4343
- ],
4344
- "markdownDescription": "The Markdown engine used on your site.",
4345
- "type": "string"
4346
- },
4347
- "markdown-it": {
4348
- "description": "Markdown options specific used when markdown is set to \"markdown-it\".",
4349
- "markdownDescription": "Markdown options specific used when markdown is set to \"markdown-it\".",
4350
- "type": "object"
4351
- }
4352
- },
4353
- "required": [
4354
- "markdown"
4355
- ],
4356
- "type": "object"
4357
- }
4358
- },
4359
- "type": "object"
4303
+ "markdownDescription": "Contains settings for various Markdown engines."
4360
4304
  },
4361
4305
  "paths": {
4362
4306
  "$ref": "#/definitions/Paths",
@@ -4393,6 +4337,164 @@
4393
4337
  },
4394
4338
  "type": "object"
4395
4339
  },
4340
+ "MarkdownAttributeElementOptions": {
4341
+ "additionalProperties": false,
4342
+ "properties": {
4343
+ "block": {
4344
+ "$ref": "#/definitions/AttributeListPosition"
4345
+ },
4346
+ "blockquote": {
4347
+ "$ref": "#/definitions/AttributeListPosition"
4348
+ },
4349
+ "img": {
4350
+ "$ref": "#/definitions/AttributeListPosition"
4351
+ },
4352
+ "inline": {
4353
+ "$ref": "#/definitions/AttributeListPosition"
4354
+ },
4355
+ "li": {
4356
+ "$ref": "#/definitions/AttributeListPosition"
4357
+ },
4358
+ "ol": {
4359
+ "$ref": "#/definitions/AttributeListPosition"
4360
+ },
4361
+ "table": {
4362
+ "$ref": "#/definitions/AttributeListPosition"
4363
+ },
4364
+ "td": {
4365
+ "$ref": "#/definitions/AttributeListPosition"
4366
+ },
4367
+ "tr": {
4368
+ "$ref": "#/definitions/AttributeListPosition"
4369
+ },
4370
+ "ul": {
4371
+ "$ref": "#/definitions/AttributeListPosition"
4372
+ }
4373
+ },
4374
+ "type": "object"
4375
+ },
4376
+ "MarkdownSettings": {
4377
+ "additionalProperties": false,
4378
+ "properties": {
4379
+ "engine": {
4380
+ "enum": [
4381
+ "commonmark",
4382
+ "kramdown"
4383
+ ],
4384
+ "type": "string"
4385
+ },
4386
+ "options": {
4387
+ "additionalProperties": false,
4388
+ "properties": {
4389
+ "attribute_elements": {
4390
+ "$ref": "#/definitions/MarkdownAttributeElementOptions",
4391
+ "description": "Define positioning behaviour of Markdown attributes for different elements.",
4392
+ "markdownDescription": "Define positioning behaviour of Markdown attributes for different elements."
4393
+ },
4394
+ "attributes": {
4395
+ "description": "Save element attributes in Markdown format instead of converting to HTML.",
4396
+ "markdownDescription": "Save element attributes in Markdown format instead of converting to HTML.",
4397
+ "type": "boolean"
4398
+ },
4399
+ "breaks": {
4400
+ "description": "Convert '\\n' in paragraphs into <br>.",
4401
+ "markdownDescription": "Convert '\\n' in paragraphs into <br>.",
4402
+ "type": "boolean"
4403
+ },
4404
+ "code_block_fences": {
4405
+ "description": "Determines which style of code block fences to use.",
4406
+ "enum": [
4407
+ "```",
4408
+ "~~~"
4409
+ ],
4410
+ "markdownDescription": "Determines which style of code block fences to use.",
4411
+ "type": "string"
4412
+ },
4413
+ "escape_snippets_in_code_blocks": {
4414
+ "description": "Render snippets as plain text within code blocks.",
4415
+ "markdownDescription": "Render snippets as plain text within code blocks.",
4416
+ "type": "boolean"
4417
+ },
4418
+ "gfm": {
4419
+ "description": "Enable GFM mode.",
4420
+ "markdownDescription": "Enable GFM mode.",
4421
+ "type": "boolean"
4422
+ },
4423
+ "heading_ids": {
4424
+ "description": "Generate IDs for headings",
4425
+ "markdownDescription": "Generate IDs for headings",
4426
+ "type": "boolean"
4427
+ },
4428
+ "html": {
4429
+ "description": "Output HTML tags from source.",
4430
+ "markdownDescription": "Output HTML tags from source.",
4431
+ "type": "boolean"
4432
+ },
4433
+ "linkify": {
4434
+ "description": "Autoconvert URL-like text to links.",
4435
+ "markdownDescription": "Autoconvert URL-like text to links.",
4436
+ "type": "boolean"
4437
+ },
4438
+ "quotes": {
4439
+ "description": "Double + single quotes replacement pairs, when typographer enabled and smartquotes on. For example, you can use '«»„“' for Russian, '„“‚‘' for German, and ['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›'] for French (including nbsp).",
4440
+ "markdownDescription": "Double + single quotes replacement pairs, when typographer enabled and smartquotes on. For example, you can use '«»„“' for Russian, '„“‚‘' for German, and ['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›'] for French (including nbsp).",
4441
+ "type": "string"
4442
+ },
4443
+ "sentence_per_line": {
4444
+ "description": "Add linebreaks between sentences in Markdown.",
4445
+ "markdownDescription": "Add linebreaks between sentences in Markdown.",
4446
+ "type": "boolean"
4447
+ },
4448
+ "spaced_lists": {
4449
+ "description": "Output lists with an extra space in Markdown.",
4450
+ "markdownDescription": "Output lists with an extra space in Markdown.",
4451
+ "type": "boolean"
4452
+ },
4453
+ "strikethrough": {
4454
+ "description": "Output strikes in wrapped in double tildes (e.g. ~~strike~~)",
4455
+ "markdownDescription": "Output strikes in wrapped in double tildes (e.g. ~~strike~~)",
4456
+ "type": "boolean"
4457
+ },
4458
+ "subscript": {
4459
+ "description": "Output subscript in wrapped in tildes (e.g. ~sub~)",
4460
+ "markdownDescription": "Output subscript in wrapped in tildes (e.g. ~sub~)",
4461
+ "type": "boolean"
4462
+ },
4463
+ "superscript": {
4464
+ "description": "Output superscript in wrapped in carets (e.g. ^super^)",
4465
+ "markdownDescription": "Output superscript in wrapped in carets (e.g. ^super^)",
4466
+ "type": "boolean"
4467
+ },
4468
+ "table": {
4469
+ "description": "Output tables in Markdown format.",
4470
+ "markdownDescription": "Output tables in Markdown format.",
4471
+ "type": "boolean"
4472
+ },
4473
+ "treat_indentation_as_code": {
4474
+ "description": "Determines whether 4 spaces on indentation should be read as a code block.",
4475
+ "markdownDescription": "Determines whether 4 spaces on indentation should be read as a code block.",
4476
+ "type": "boolean"
4477
+ },
4478
+ "typographer": {
4479
+ "description": "Enable some language-neutral replacement + quotes beautification.",
4480
+ "markdownDescription": "Enable some language-neutral replacement + quotes beautification.",
4481
+ "type": "boolean"
4482
+ },
4483
+ "xhtml": {
4484
+ "description": "Use '/' to close single tags (<br />).",
4485
+ "markdownDescription": "Use '/' to close single tags (<br />).",
4486
+ "type": "boolean"
4487
+ }
4488
+ },
4489
+ "type": "object"
4490
+ }
4491
+ },
4492
+ "required": [
4493
+ "engine",
4494
+ "options"
4495
+ ],
4496
+ "type": "object"
4497
+ },
4396
4498
  "MimeType": {
4397
4499
  "enum": [
4398
4500
  "x-world/x-3dmf",
@@ -5902,12 +6004,6 @@
5902
6004
  "markdownDescription": "Enables a control to copy formatting from text to other text. Only applies to formatting from\n`bold`, `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not copy other\nstyles or formatting.",
5903
6005
  "type": "boolean"
5904
6006
  },
5905
- "correct_orientation": {
5906
- "default": true,
5907
- "description": "Controls whether or not the JPEG headers defining how an image should be rotated before being displayed is baked into images prior to upload.",
5908
- "markdownDescription": "Controls whether or not the JPEG headers defining how an image should be rotated before being\ndisplayed is baked into images prior to upload.",
5909
- "type": "boolean"
5910
- },
5911
6007
  "embed": {
5912
6008
  "description": "Enables a control to insert a region of raw HTML, including YouTube, Vimeo, Tweets, and other media. Embedded content is sanitized to mitigate XSS risks, which includes removing style tags. Embeds containing script tags are not loaded in the editor.",
5913
6009
  "markdownDescription": "Enables a control to insert a region of raw HTML, including YouTube, Vimeo, Tweets, and other\nmedia. Embedded content is sanitized to mitigate XSS risks, which includes removing style tags.\nEmbeds containing script tags are not loaded in the editor.",
@@ -5984,7 +6080,8 @@
5984
6080
  "description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
5985
6081
  "enum": [
5986
6082
  "image/jpeg",
5987
- "image/png"
6083
+ "image/png",
6084
+ "image/webp"
5988
6085
  ],
5989
6086
  "markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
5990
6087
  "type": "string"