@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"
@@ -3587,12 +3592,6 @@
3587
3592
  "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.",
3588
3593
  "type": "array"
3589
3594
  },
3590
- "correct_orientation": {
3591
- "default": true,
3592
- "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.",
3593
- "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.",
3594
- "type": "boolean"
3595
- },
3596
3595
  "expandable": {
3597
3596
  "default": false,
3598
3597
  "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.",
@@ -3614,7 +3613,8 @@
3614
3613
  "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.",
3615
3614
  "enum": [
3616
3615
  "image/jpeg",
3617
- "image/png"
3616
+ "image/png",
3617
+ "image/webp"
3618
3618
  ],
3619
3619
  "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.",
3620
3620
  "type": "string"
@@ -3782,12 +3782,6 @@
3782
3782
  "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.",
3783
3783
  "type": "array"
3784
3784
  },
3785
- "correct_orientation": {
3786
- "default": true,
3787
- "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.",
3788
- "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.",
3789
- "type": "boolean"
3790
- },
3791
3785
  "empty_type": {
3792
3786
  "$ref": "#/definitions/EmptyTypeText",
3793
3787
  "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
@@ -3814,7 +3808,8 @@
3814
3808
  "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.",
3815
3809
  "enum": [
3816
3810
  "image/jpeg",
3817
- "image/png"
3811
+ "image/png",
3812
+ "image/webp"
3818
3813
  ],
3819
3814
  "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.",
3820
3815
  "type": "string"
@@ -3985,6 +3980,164 @@
3985
3980
  },
3986
3981
  "type": "object"
3987
3982
  },
3983
+ "MarkdownAttributeElementOptions": {
3984
+ "additionalProperties": false,
3985
+ "properties": {
3986
+ "block": {
3987
+ "$ref": "#/definitions/AttributeListPosition"
3988
+ },
3989
+ "blockquote": {
3990
+ "$ref": "#/definitions/AttributeListPosition"
3991
+ },
3992
+ "img": {
3993
+ "$ref": "#/definitions/AttributeListPosition"
3994
+ },
3995
+ "inline": {
3996
+ "$ref": "#/definitions/AttributeListPosition"
3997
+ },
3998
+ "li": {
3999
+ "$ref": "#/definitions/AttributeListPosition"
4000
+ },
4001
+ "ol": {
4002
+ "$ref": "#/definitions/AttributeListPosition"
4003
+ },
4004
+ "table": {
4005
+ "$ref": "#/definitions/AttributeListPosition"
4006
+ },
4007
+ "td": {
4008
+ "$ref": "#/definitions/AttributeListPosition"
4009
+ },
4010
+ "tr": {
4011
+ "$ref": "#/definitions/AttributeListPosition"
4012
+ },
4013
+ "ul": {
4014
+ "$ref": "#/definitions/AttributeListPosition"
4015
+ }
4016
+ },
4017
+ "type": "object"
4018
+ },
4019
+ "MarkdownSettings": {
4020
+ "additionalProperties": false,
4021
+ "properties": {
4022
+ "engine": {
4023
+ "enum": [
4024
+ "commonmark",
4025
+ "kramdown"
4026
+ ],
4027
+ "type": "string"
4028
+ },
4029
+ "options": {
4030
+ "additionalProperties": false,
4031
+ "properties": {
4032
+ "attribute_elements": {
4033
+ "$ref": "#/definitions/MarkdownAttributeElementOptions",
4034
+ "description": "Define positioning behaviour of Markdown attributes for different elements.",
4035
+ "markdownDescription": "Define positioning behaviour of Markdown attributes for different elements."
4036
+ },
4037
+ "attributes": {
4038
+ "description": "Save element attributes in Markdown format instead of converting to HTML.",
4039
+ "markdownDescription": "Save element attributes in Markdown format instead of converting to HTML.",
4040
+ "type": "boolean"
4041
+ },
4042
+ "breaks": {
4043
+ "description": "Convert '\\n' in paragraphs into <br>.",
4044
+ "markdownDescription": "Convert '\\n' in paragraphs into <br>.",
4045
+ "type": "boolean"
4046
+ },
4047
+ "code_block_fences": {
4048
+ "description": "Determines which style of code block fences to use.",
4049
+ "enum": [
4050
+ "```",
4051
+ "~~~"
4052
+ ],
4053
+ "markdownDescription": "Determines which style of code block fences to use.",
4054
+ "type": "string"
4055
+ },
4056
+ "escape_snippets_in_code_blocks": {
4057
+ "description": "Render snippets as plain text within code blocks.",
4058
+ "markdownDescription": "Render snippets as plain text within code blocks.",
4059
+ "type": "boolean"
4060
+ },
4061
+ "gfm": {
4062
+ "description": "Enable GFM mode.",
4063
+ "markdownDescription": "Enable GFM mode.",
4064
+ "type": "boolean"
4065
+ },
4066
+ "heading_ids": {
4067
+ "description": "Generate IDs for headings",
4068
+ "markdownDescription": "Generate IDs for headings",
4069
+ "type": "boolean"
4070
+ },
4071
+ "html": {
4072
+ "description": "Output HTML tags from source.",
4073
+ "markdownDescription": "Output HTML tags from source.",
4074
+ "type": "boolean"
4075
+ },
4076
+ "linkify": {
4077
+ "description": "Autoconvert URL-like text to links.",
4078
+ "markdownDescription": "Autoconvert URL-like text to links.",
4079
+ "type": "boolean"
4080
+ },
4081
+ "quotes": {
4082
+ "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).",
4083
+ "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).",
4084
+ "type": "string"
4085
+ },
4086
+ "sentence_per_line": {
4087
+ "description": "Add linebreaks between sentences in Markdown.",
4088
+ "markdownDescription": "Add linebreaks between sentences in Markdown.",
4089
+ "type": "boolean"
4090
+ },
4091
+ "spaced_lists": {
4092
+ "description": "Output lists with an extra space in Markdown.",
4093
+ "markdownDescription": "Output lists with an extra space in Markdown.",
4094
+ "type": "boolean"
4095
+ },
4096
+ "strikethrough": {
4097
+ "description": "Output strikes in wrapped in double tildes (e.g. ~~strike~~)",
4098
+ "markdownDescription": "Output strikes in wrapped in double tildes (e.g. ~~strike~~)",
4099
+ "type": "boolean"
4100
+ },
4101
+ "subscript": {
4102
+ "description": "Output subscript in wrapped in tildes (e.g. ~sub~)",
4103
+ "markdownDescription": "Output subscript in wrapped in tildes (e.g. ~sub~)",
4104
+ "type": "boolean"
4105
+ },
4106
+ "superscript": {
4107
+ "description": "Output superscript in wrapped in carets (e.g. ^super^)",
4108
+ "markdownDescription": "Output superscript in wrapped in carets (e.g. ^super^)",
4109
+ "type": "boolean"
4110
+ },
4111
+ "table": {
4112
+ "description": "Output tables in Markdown format.",
4113
+ "markdownDescription": "Output tables in Markdown format.",
4114
+ "type": "boolean"
4115
+ },
4116
+ "treat_indentation_as_code": {
4117
+ "description": "Determines whether 4 spaces on indentation should be read as a code block.",
4118
+ "markdownDescription": "Determines whether 4 spaces on indentation should be read as a code block.",
4119
+ "type": "boolean"
4120
+ },
4121
+ "typographer": {
4122
+ "description": "Enable some language-neutral replacement + quotes beautification.",
4123
+ "markdownDescription": "Enable some language-neutral replacement + quotes beautification.",
4124
+ "type": "boolean"
4125
+ },
4126
+ "xhtml": {
4127
+ "description": "Use '/' to close single tags (<br />).",
4128
+ "markdownDescription": "Use '/' to close single tags (<br />).",
4129
+ "type": "boolean"
4130
+ }
4131
+ },
4132
+ "type": "object"
4133
+ }
4134
+ },
4135
+ "required": [
4136
+ "engine",
4137
+ "options"
4138
+ ],
4139
+ "type": "object"
4140
+ },
3988
4141
  "MimeType": {
3989
4142
  "enum": [
3990
4143
  "x-world/x-3dmf",
@@ -5672,61 +5825,10 @@
5672
5825
  "markdownDescription": "Provides scope to configure at a file level, without adding configuration to files.",
5673
5826
  "type": "object"
5674
5827
  },
5675
- "generator": {
5676
- "additionalProperties": false,
5828
+ "markdown": {
5829
+ "$ref": "#/definitions/MarkdownSettings",
5677
5830
  "description": "Contains settings for various Markdown engines.",
5678
- "markdownDescription": "Contains settings for various Markdown engines.",
5679
- "properties": {
5680
- "metadata": {
5681
- "additionalProperties": false,
5682
- "description": "Settings for various Markdown engines.",
5683
- "markdownDescription": "Settings for various Markdown engines.",
5684
- "properties": {
5685
- "commonmark": {
5686
- "description": "Markdown options specific used when markdown is set to \"commonmark\".",
5687
- "markdownDescription": "Markdown options specific used when markdown is set to \"commonmark\".",
5688
- "type": "object"
5689
- },
5690
- "commonmarkghpages": {
5691
- "description": "Markdown options specific used when markdown is set to \"commonmarkghpages\".",
5692
- "markdownDescription": "Markdown options specific used when markdown is set to \"commonmarkghpages\".",
5693
- "type": "object"
5694
- },
5695
- "goldmark": {
5696
- "description": "Markdown options specific used when markdown is set to \"goldmark\".",
5697
- "markdownDescription": "Markdown options specific used when markdown is set to \"goldmark\".",
5698
- "type": "object"
5699
- },
5700
- "kramdown": {
5701
- "description": "Markdown options specific used when markdown is set to \"kramdown\".",
5702
- "markdownDescription": "Markdown options specific used when markdown is set to \"kramdown\".",
5703
- "type": "object"
5704
- },
5705
- "markdown": {
5706
- "description": "The Markdown engine used on your site.",
5707
- "enum": [
5708
- "kramdown",
5709
- "commonmark",
5710
- "commonmarkghpages",
5711
- "goldmark",
5712
- "markdown-it"
5713
- ],
5714
- "markdownDescription": "The Markdown engine used on your site.",
5715
- "type": "string"
5716
- },
5717
- "markdown-it": {
5718
- "description": "Markdown options specific used when markdown is set to \"markdown-it\".",
5719
- "markdownDescription": "Markdown options specific used when markdown is set to \"markdown-it\".",
5720
- "type": "object"
5721
- }
5722
- },
5723
- "required": [
5724
- "markdown"
5725
- ],
5726
- "type": "object"
5727
- }
5728
- },
5729
- "type": "object"
5831
+ "markdownDescription": "Contains settings for various Markdown engines."
5730
5832
  },
5731
5833
  "output": {
5732
5834
  "description": "Generates the integration file in another folder. Not applicable to Jekyll, Hugo, and Eleventy. Defaults to the root folder.",
@@ -5946,12 +6048,6 @@
5946
6048
  "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.",
5947
6049
  "type": "boolean"
5948
6050
  },
5949
- "correct_orientation": {
5950
- "default": true,
5951
- "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.",
5952
- "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.",
5953
- "type": "boolean"
5954
- },
5955
6051
  "embed": {
5956
6052
  "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.",
5957
6053
  "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.",
@@ -6028,7 +6124,8 @@
6028
6124
  "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.",
6029
6125
  "enum": [
6030
6126
  "image/jpeg",
6031
- "image/png"
6127
+ "image/png",
6128
+ "image/webp"
6032
6129
  ],
6033
6130
  "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.",
6034
6131
  "type": "string"