@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"
@@ -3760,12 +3765,6 @@
3760
3765
  "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.",
3761
3766
  "type": "array"
3762
3767
  },
3763
- "correct_orientation": {
3764
- "default": true,
3765
- "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.",
3766
- "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.",
3767
- "type": "boolean"
3768
- },
3769
3768
  "expandable": {
3770
3769
  "default": false,
3771
3770
  "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.",
@@ -3787,7 +3786,8 @@
3787
3786
  "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.",
3788
3787
  "enum": [
3789
3788
  "image/jpeg",
3790
- "image/png"
3789
+ "image/png",
3790
+ "image/webp"
3791
3791
  ],
3792
3792
  "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.",
3793
3793
  "type": "string"
@@ -3955,12 +3955,6 @@
3955
3955
  "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.",
3956
3956
  "type": "array"
3957
3957
  },
3958
- "correct_orientation": {
3959
- "default": true,
3960
- "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.",
3961
- "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.",
3962
- "type": "boolean"
3963
- },
3964
3958
  "empty_type": {
3965
3959
  "$ref": "#/definitions/EmptyTypeText",
3966
3960
  "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
@@ -3987,7 +3981,8 @@
3987
3981
  "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.",
3988
3982
  "enum": [
3989
3983
  "image/jpeg",
3990
- "image/png"
3984
+ "image/png",
3985
+ "image/webp"
3991
3986
  ],
3992
3987
  "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.",
3993
3988
  "type": "string"
@@ -4297,61 +4292,10 @@
4297
4292
  "markdownDescription": "Provides scope to configure at a file level, without adding configuration to files.",
4298
4293
  "type": "object"
4299
4294
  },
4300
- "generator": {
4301
- "additionalProperties": false,
4295
+ "markdown": {
4296
+ "$ref": "#/definitions/MarkdownSettings",
4302
4297
  "description": "Contains settings for various Markdown engines.",
4303
- "markdownDescription": "Contains settings for various Markdown engines.",
4304
- "properties": {
4305
- "metadata": {
4306
- "additionalProperties": false,
4307
- "description": "Settings for various Markdown engines.",
4308
- "markdownDescription": "Settings for various Markdown engines.",
4309
- "properties": {
4310
- "commonmark": {
4311
- "description": "Markdown options specific used when markdown is set to \"commonmark\".",
4312
- "markdownDescription": "Markdown options specific used when markdown is set to \"commonmark\".",
4313
- "type": "object"
4314
- },
4315
- "commonmarkghpages": {
4316
- "description": "Markdown options specific used when markdown is set to \"commonmarkghpages\".",
4317
- "markdownDescription": "Markdown options specific used when markdown is set to \"commonmarkghpages\".",
4318
- "type": "object"
4319
- },
4320
- "goldmark": {
4321
- "description": "Markdown options specific used when markdown is set to \"goldmark\".",
4322
- "markdownDescription": "Markdown options specific used when markdown is set to \"goldmark\".",
4323
- "type": "object"
4324
- },
4325
- "kramdown": {
4326
- "description": "Markdown options specific used when markdown is set to \"kramdown\".",
4327
- "markdownDescription": "Markdown options specific used when markdown is set to \"kramdown\".",
4328
- "type": "object"
4329
- },
4330
- "markdown": {
4331
- "description": "The Markdown engine used on your site.",
4332
- "enum": [
4333
- "kramdown",
4334
- "commonmark",
4335
- "commonmarkghpages",
4336
- "goldmark",
4337
- "markdown-it"
4338
- ],
4339
- "markdownDescription": "The Markdown engine used on your site.",
4340
- "type": "string"
4341
- },
4342
- "markdown-it": {
4343
- "description": "Markdown options specific used when markdown is set to \"markdown-it\".",
4344
- "markdownDescription": "Markdown options specific used when markdown is set to \"markdown-it\".",
4345
- "type": "object"
4346
- }
4347
- },
4348
- "required": [
4349
- "markdown"
4350
- ],
4351
- "type": "object"
4352
- }
4353
- },
4354
- "type": "object"
4298
+ "markdownDescription": "Contains settings for various Markdown engines."
4355
4299
  },
4356
4300
  "paths": {
4357
4301
  "$ref": "#/definitions/Paths",
@@ -4388,6 +4332,164 @@
4388
4332
  },
4389
4333
  "type": "object"
4390
4334
  },
4335
+ "MarkdownAttributeElementOptions": {
4336
+ "additionalProperties": false,
4337
+ "properties": {
4338
+ "block": {
4339
+ "$ref": "#/definitions/AttributeListPosition"
4340
+ },
4341
+ "blockquote": {
4342
+ "$ref": "#/definitions/AttributeListPosition"
4343
+ },
4344
+ "img": {
4345
+ "$ref": "#/definitions/AttributeListPosition"
4346
+ },
4347
+ "inline": {
4348
+ "$ref": "#/definitions/AttributeListPosition"
4349
+ },
4350
+ "li": {
4351
+ "$ref": "#/definitions/AttributeListPosition"
4352
+ },
4353
+ "ol": {
4354
+ "$ref": "#/definitions/AttributeListPosition"
4355
+ },
4356
+ "table": {
4357
+ "$ref": "#/definitions/AttributeListPosition"
4358
+ },
4359
+ "td": {
4360
+ "$ref": "#/definitions/AttributeListPosition"
4361
+ },
4362
+ "tr": {
4363
+ "$ref": "#/definitions/AttributeListPosition"
4364
+ },
4365
+ "ul": {
4366
+ "$ref": "#/definitions/AttributeListPosition"
4367
+ }
4368
+ },
4369
+ "type": "object"
4370
+ },
4371
+ "MarkdownSettings": {
4372
+ "additionalProperties": false,
4373
+ "properties": {
4374
+ "engine": {
4375
+ "enum": [
4376
+ "commonmark",
4377
+ "kramdown"
4378
+ ],
4379
+ "type": "string"
4380
+ },
4381
+ "options": {
4382
+ "additionalProperties": false,
4383
+ "properties": {
4384
+ "attribute_elements": {
4385
+ "$ref": "#/definitions/MarkdownAttributeElementOptions",
4386
+ "description": "Define positioning behaviour of Markdown attributes for different elements.",
4387
+ "markdownDescription": "Define positioning behaviour of Markdown attributes for different elements."
4388
+ },
4389
+ "attributes": {
4390
+ "description": "Save element attributes in Markdown format instead of converting to HTML.",
4391
+ "markdownDescription": "Save element attributes in Markdown format instead of converting to HTML.",
4392
+ "type": "boolean"
4393
+ },
4394
+ "breaks": {
4395
+ "description": "Convert '\\n' in paragraphs into <br>.",
4396
+ "markdownDescription": "Convert '\\n' in paragraphs into <br>.",
4397
+ "type": "boolean"
4398
+ },
4399
+ "code_block_fences": {
4400
+ "description": "Determines which style of code block fences to use.",
4401
+ "enum": [
4402
+ "```",
4403
+ "~~~"
4404
+ ],
4405
+ "markdownDescription": "Determines which style of code block fences to use.",
4406
+ "type": "string"
4407
+ },
4408
+ "escape_snippets_in_code_blocks": {
4409
+ "description": "Render snippets as plain text within code blocks.",
4410
+ "markdownDescription": "Render snippets as plain text within code blocks.",
4411
+ "type": "boolean"
4412
+ },
4413
+ "gfm": {
4414
+ "description": "Enable GFM mode.",
4415
+ "markdownDescription": "Enable GFM mode.",
4416
+ "type": "boolean"
4417
+ },
4418
+ "heading_ids": {
4419
+ "description": "Generate IDs for headings",
4420
+ "markdownDescription": "Generate IDs for headings",
4421
+ "type": "boolean"
4422
+ },
4423
+ "html": {
4424
+ "description": "Output HTML tags from source.",
4425
+ "markdownDescription": "Output HTML tags from source.",
4426
+ "type": "boolean"
4427
+ },
4428
+ "linkify": {
4429
+ "description": "Autoconvert URL-like text to links.",
4430
+ "markdownDescription": "Autoconvert URL-like text to links.",
4431
+ "type": "boolean"
4432
+ },
4433
+ "quotes": {
4434
+ "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).",
4435
+ "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).",
4436
+ "type": "string"
4437
+ },
4438
+ "sentence_per_line": {
4439
+ "description": "Add linebreaks between sentences in Markdown.",
4440
+ "markdownDescription": "Add linebreaks between sentences in Markdown.",
4441
+ "type": "boolean"
4442
+ },
4443
+ "spaced_lists": {
4444
+ "description": "Output lists with an extra space in Markdown.",
4445
+ "markdownDescription": "Output lists with an extra space in Markdown.",
4446
+ "type": "boolean"
4447
+ },
4448
+ "strikethrough": {
4449
+ "description": "Output strikes in wrapped in double tildes (e.g. ~~strike~~)",
4450
+ "markdownDescription": "Output strikes in wrapped in double tildes (e.g. ~~strike~~)",
4451
+ "type": "boolean"
4452
+ },
4453
+ "subscript": {
4454
+ "description": "Output subscript in wrapped in tildes (e.g. ~sub~)",
4455
+ "markdownDescription": "Output subscript in wrapped in tildes (e.g. ~sub~)",
4456
+ "type": "boolean"
4457
+ },
4458
+ "superscript": {
4459
+ "description": "Output superscript in wrapped in carets (e.g. ^super^)",
4460
+ "markdownDescription": "Output superscript in wrapped in carets (e.g. ^super^)",
4461
+ "type": "boolean"
4462
+ },
4463
+ "table": {
4464
+ "description": "Output tables in Markdown format.",
4465
+ "markdownDescription": "Output tables in Markdown format.",
4466
+ "type": "boolean"
4467
+ },
4468
+ "treat_indentation_as_code": {
4469
+ "description": "Determines whether 4 spaces on indentation should be read as a code block.",
4470
+ "markdownDescription": "Determines whether 4 spaces on indentation should be read as a code block.",
4471
+ "type": "boolean"
4472
+ },
4473
+ "typographer": {
4474
+ "description": "Enable some language-neutral replacement + quotes beautification.",
4475
+ "markdownDescription": "Enable some language-neutral replacement + quotes beautification.",
4476
+ "type": "boolean"
4477
+ },
4478
+ "xhtml": {
4479
+ "description": "Use '/' to close single tags (<br />).",
4480
+ "markdownDescription": "Use '/' to close single tags (<br />).",
4481
+ "type": "boolean"
4482
+ }
4483
+ },
4484
+ "type": "object"
4485
+ }
4486
+ },
4487
+ "required": [
4488
+ "engine",
4489
+ "options"
4490
+ ],
4491
+ "type": "object"
4492
+ },
4391
4493
  "MimeType": {
4392
4494
  "enum": [
4393
4495
  "x-world/x-3dmf",
@@ -5897,12 +5999,6 @@
5897
5999
  "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.",
5898
6000
  "type": "boolean"
5899
6001
  },
5900
- "correct_orientation": {
5901
- "default": true,
5902
- "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.",
5903
- "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.",
5904
- "type": "boolean"
5905
- },
5906
6002
  "embed": {
5907
6003
  "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.",
5908
6004
  "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.",
@@ -5979,7 +6075,8 @@
5979
6075
  "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.",
5980
6076
  "enum": [
5981
6077
  "image/jpeg",
5982
- "image/png"
6078
+ "image/png",
6079
+ "image/webp"
5983
6080
  ],
5984
6081
  "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.",
5985
6082
  "type": "string"