@cloudcannon/configuration-types 0.0.27 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudcannon-config.latest.schema.json +222 -242
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +222 -242
- package/dist/cloudcannon-config.legacy-hugo.schema.json +222 -242
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +222 -242
- package/dist/cloudcannon-config.legacy-reader.schema.json +222 -242
- package/package.json +1 -1
- package/src/inputs.d.ts +59 -53
- package/src/javascript-api.d.ts +34 -10
- package/src/source-editor.d.ts +1 -1
|
@@ -1013,7 +1013,7 @@
|
|
|
1013
1013
|
"markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
|
|
1014
1014
|
"type": "boolean"
|
|
1015
1015
|
},
|
|
1016
|
-
"
|
|
1016
|
+
"soft_wrap": {
|
|
1017
1017
|
"default": false,
|
|
1018
1018
|
"description": "Enables soft wrapping of the code.",
|
|
1019
1019
|
"markdownDescription": "Enables soft wrapping of the code.",
|
|
@@ -1624,14 +1624,15 @@
|
|
|
1624
1624
|
},
|
|
1625
1625
|
"options": {
|
|
1626
1626
|
"$ref": "#/definitions/FileInputOptions",
|
|
1627
|
-
"description": "Options that are specific to File inputs.",
|
|
1628
|
-
"markdownDescription": "Options that are specific to File inputs."
|
|
1627
|
+
"description": "Options that are specific to File, Image and Document inputs.",
|
|
1628
|
+
"markdownDescription": "Options that are specific to File, Image and Document inputs."
|
|
1629
1629
|
},
|
|
1630
1630
|
"type": {
|
|
1631
1631
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
1632
1632
|
"enum": [
|
|
1633
1633
|
"file",
|
|
1634
|
-
"document"
|
|
1634
|
+
"document",
|
|
1635
|
+
"image"
|
|
1635
1636
|
],
|
|
1636
1637
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
1637
1638
|
"type": "string"
|
|
@@ -1668,6 +1669,24 @@
|
|
|
1668
1669
|
"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.",
|
|
1669
1670
|
"type": "array"
|
|
1670
1671
|
},
|
|
1672
|
+
"disable_direct_input": {
|
|
1673
|
+
"default": false,
|
|
1674
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
1675
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
1676
|
+
"type": "boolean"
|
|
1677
|
+
},
|
|
1678
|
+
"disable_upload_file": {
|
|
1679
|
+
"default": false,
|
|
1680
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
1681
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
1682
|
+
"type": "boolean"
|
|
1683
|
+
},
|
|
1684
|
+
"disable_upload_file_in_file_browser": {
|
|
1685
|
+
"default": false,
|
|
1686
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
1687
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
1688
|
+
"type": "boolean"
|
|
1689
|
+
},
|
|
1671
1690
|
"empty_type": {
|
|
1672
1691
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1673
1692
|
"enum": [
|
|
@@ -1677,10 +1696,84 @@
|
|
|
1677
1696
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1678
1697
|
"type": "string"
|
|
1679
1698
|
},
|
|
1699
|
+
"expandable": {
|
|
1700
|
+
"default": false,
|
|
1701
|
+
"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.",
|
|
1702
|
+
"markdownDescription": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to\nupload. Has no effect if files are not resized.",
|
|
1703
|
+
"type": "boolean"
|
|
1704
|
+
},
|
|
1705
|
+
"height": {
|
|
1706
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
1707
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
1708
|
+
"type": "number"
|
|
1709
|
+
},
|
|
1710
|
+
"image_size_attributes": {
|
|
1711
|
+
"default": true,
|
|
1712
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
1713
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
1714
|
+
"type": "boolean"
|
|
1715
|
+
},
|
|
1716
|
+
"mime_type": {
|
|
1717
|
+
"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.",
|
|
1718
|
+
"enum": [
|
|
1719
|
+
"image/jpeg",
|
|
1720
|
+
"image/png",
|
|
1721
|
+
"image/webp"
|
|
1722
|
+
],
|
|
1723
|
+
"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.",
|
|
1724
|
+
"type": "string"
|
|
1725
|
+
},
|
|
1680
1726
|
"paths": {
|
|
1681
1727
|
"$ref": "#/definitions/Paths",
|
|
1682
1728
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
1683
1729
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
1730
|
+
},
|
|
1731
|
+
"prevent_resize_existing_files": {
|
|
1732
|
+
"default": false,
|
|
1733
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
1734
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
1735
|
+
"type": "boolean"
|
|
1736
|
+
},
|
|
1737
|
+
"resize_style": {
|
|
1738
|
+
"default": "contain",
|
|
1739
|
+
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
1740
|
+
"enum": [
|
|
1741
|
+
"cover",
|
|
1742
|
+
"contain",
|
|
1743
|
+
"stretch",
|
|
1744
|
+
"crop"
|
|
1745
|
+
],
|
|
1746
|
+
"markdownDescription": "Sets how uploaded image files are resized with a bounding box defined by width and height prior\nto upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
1747
|
+
"type": "string"
|
|
1748
|
+
},
|
|
1749
|
+
"sizes": {
|
|
1750
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
1751
|
+
"items": {
|
|
1752
|
+
"additionalProperties": false,
|
|
1753
|
+
"properties": {
|
|
1754
|
+
"size": {
|
|
1755
|
+
"description": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).",
|
|
1756
|
+
"markdownDescription": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of\nthe image (e.g. 2x, 3x, 100w, 360w).",
|
|
1757
|
+
"type": "string"
|
|
1758
|
+
},
|
|
1759
|
+
"target": {
|
|
1760
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
1761
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
1762
|
+
"type": "string"
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
"required": [
|
|
1766
|
+
"size"
|
|
1767
|
+
],
|
|
1768
|
+
"type": "object"
|
|
1769
|
+
},
|
|
1770
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
1771
|
+
"type": "array"
|
|
1772
|
+
},
|
|
1773
|
+
"width": {
|
|
1774
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
1775
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
1776
|
+
"type": "number"
|
|
1684
1777
|
}
|
|
1685
1778
|
},
|
|
1686
1779
|
"type": "object"
|
|
@@ -5623,220 +5716,6 @@
|
|
|
5623
5716
|
},
|
|
5624
5717
|
"type": "object"
|
|
5625
5718
|
},
|
|
5626
|
-
"ImageInput": {
|
|
5627
|
-
"additionalProperties": false,
|
|
5628
|
-
"properties": {
|
|
5629
|
-
"cascade": {
|
|
5630
|
-
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
5631
|
-
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
5632
|
-
"type": "boolean"
|
|
5633
|
-
},
|
|
5634
|
-
"comment": {
|
|
5635
|
-
"description": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown: links, bold, italic, subscript, superscript, and inline code elements are allowed.",
|
|
5636
|
-
"markdownDescription": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown:\nlinks, bold, italic, subscript, superscript, and inline code elements are allowed.",
|
|
5637
|
-
"type": "string"
|
|
5638
|
-
},
|
|
5639
|
-
"context": {
|
|
5640
|
-
"additionalProperties": false,
|
|
5641
|
-
"description": "Adds an expandable section of rich text below the input.",
|
|
5642
|
-
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
5643
|
-
"properties": {
|
|
5644
|
-
"content": {
|
|
5645
|
-
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5646
|
-
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5647
|
-
"type": "string"
|
|
5648
|
-
},
|
|
5649
|
-
"icon": {
|
|
5650
|
-
"$ref": "#/definitions/Icon",
|
|
5651
|
-
"description": "The icon shown when not open.",
|
|
5652
|
-
"markdownDescription": "The icon shown when not open."
|
|
5653
|
-
},
|
|
5654
|
-
"open": {
|
|
5655
|
-
"description": "Makes the content visible initially.",
|
|
5656
|
-
"markdownDescription": "Makes the content visible initially.",
|
|
5657
|
-
"type": "boolean"
|
|
5658
|
-
},
|
|
5659
|
-
"title": {
|
|
5660
|
-
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5661
|
-
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5662
|
-
"type": "string"
|
|
5663
|
-
}
|
|
5664
|
-
},
|
|
5665
|
-
"type": "object"
|
|
5666
|
-
},
|
|
5667
|
-
"disable_instance_value_rehydration": {
|
|
5668
|
-
"default": false,
|
|
5669
|
-
"description": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new value when duplicated in the CMS.",
|
|
5670
|
-
"markdownDescription": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new\nvalue when duplicated in the CMS.",
|
|
5671
|
-
"type": "boolean"
|
|
5672
|
-
},
|
|
5673
|
-
"disabled": {
|
|
5674
|
-
"default": false,
|
|
5675
|
-
"description": "Toggles if this input can be edited.",
|
|
5676
|
-
"markdownDescription": "Toggles if this input can be edited.",
|
|
5677
|
-
"type": [
|
|
5678
|
-
"boolean",
|
|
5679
|
-
"string"
|
|
5680
|
-
]
|
|
5681
|
-
},
|
|
5682
|
-
"documentation": {
|
|
5683
|
-
"$ref": "#/definitions/Documentation",
|
|
5684
|
-
"description": "Provides a custom link for documentation for editors shown above input.",
|
|
5685
|
-
"markdownDescription": "Provides a custom link for documentation for editors shown above input."
|
|
5686
|
-
},
|
|
5687
|
-
"hidden": {
|
|
5688
|
-
"default": false,
|
|
5689
|
-
"description": "Toggles the visibility of this input.",
|
|
5690
|
-
"markdownDescription": "Toggles the visibility of this input.",
|
|
5691
|
-
"type": [
|
|
5692
|
-
"boolean",
|
|
5693
|
-
"string"
|
|
5694
|
-
]
|
|
5695
|
-
},
|
|
5696
|
-
"instance_value": {
|
|
5697
|
-
"$ref": "#/definitions/InstanceValue",
|
|
5698
|
-
"description": "Controls if and how the value of this input is instantiated when created. This occurs when creating files, or adding array items containing the configured input.",
|
|
5699
|
-
"markdownDescription": "Controls if and how the value of this input is instantiated when created. This occurs when\ncreating files, or adding array items containing the configured input."
|
|
5700
|
-
},
|
|
5701
|
-
"label": {
|
|
5702
|
-
"description": "Optionally changes the text above this input.",
|
|
5703
|
-
"markdownDescription": "Optionally changes the text above this input.",
|
|
5704
|
-
"type": "string"
|
|
5705
|
-
},
|
|
5706
|
-
"options": {
|
|
5707
|
-
"$ref": "#/definitions/ImageInputOptions",
|
|
5708
|
-
"description": "Options that are specific to Image inputs.",
|
|
5709
|
-
"markdownDescription": "Options that are specific to Image inputs."
|
|
5710
|
-
},
|
|
5711
|
-
"type": {
|
|
5712
|
-
"const": "image",
|
|
5713
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5714
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5715
|
-
"type": "string"
|
|
5716
|
-
}
|
|
5717
|
-
},
|
|
5718
|
-
"required": [
|
|
5719
|
-
"type"
|
|
5720
|
-
],
|
|
5721
|
-
"type": "object"
|
|
5722
|
-
},
|
|
5723
|
-
"ImageInputOptions": {
|
|
5724
|
-
"additionalProperties": false,
|
|
5725
|
-
"properties": {
|
|
5726
|
-
"accepts_mime_types": {
|
|
5727
|
-
"anyOf": [
|
|
5728
|
-
{
|
|
5729
|
-
"items": {
|
|
5730
|
-
"$ref": "#/definitions/MimeType"
|
|
5731
|
-
},
|
|
5732
|
-
"type": "array"
|
|
5733
|
-
},
|
|
5734
|
-
{
|
|
5735
|
-
"type": "string"
|
|
5736
|
-
}
|
|
5737
|
-
],
|
|
5738
|
-
"description": "Restricts which file types are available to select or upload to this input. Accepted format is an array or comma-separated string of MIME types. The special value '*' means any type is accepted.",
|
|
5739
|
-
"markdownDescription": "Restricts which file types are available to select or upload to this input. Accepted format is\nan array or comma-separated string of MIME types. The special value '*' means any type is\naccepted."
|
|
5740
|
-
},
|
|
5741
|
-
"allowed_sources": {
|
|
5742
|
-
"description": "If you have one or more DAMs connected to your site, you can use this key to list which asset sources can be uploaded to and selected from.",
|
|
5743
|
-
"items": {
|
|
5744
|
-
"type": "string"
|
|
5745
|
-
},
|
|
5746
|
-
"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.",
|
|
5747
|
-
"type": "array"
|
|
5748
|
-
},
|
|
5749
|
-
"empty_type": {
|
|
5750
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5751
|
-
"enum": [
|
|
5752
|
-
"null",
|
|
5753
|
-
"string"
|
|
5754
|
-
],
|
|
5755
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5756
|
-
"type": "string"
|
|
5757
|
-
},
|
|
5758
|
-
"expandable": {
|
|
5759
|
-
"default": false,
|
|
5760
|
-
"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.",
|
|
5761
|
-
"markdownDescription": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to\nupload. Has no effect if files are not resized.",
|
|
5762
|
-
"type": "boolean"
|
|
5763
|
-
},
|
|
5764
|
-
"height": {
|
|
5765
|
-
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
5766
|
-
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5767
|
-
"type": "number"
|
|
5768
|
-
},
|
|
5769
|
-
"image_size_attributes": {
|
|
5770
|
-
"default": true,
|
|
5771
|
-
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
5772
|
-
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
5773
|
-
"type": "boolean"
|
|
5774
|
-
},
|
|
5775
|
-
"mime_type": {
|
|
5776
|
-
"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.",
|
|
5777
|
-
"enum": [
|
|
5778
|
-
"image/jpeg",
|
|
5779
|
-
"image/png",
|
|
5780
|
-
"image/webp"
|
|
5781
|
-
],
|
|
5782
|
-
"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.",
|
|
5783
|
-
"type": "string"
|
|
5784
|
-
},
|
|
5785
|
-
"paths": {
|
|
5786
|
-
"$ref": "#/definitions/Paths",
|
|
5787
|
-
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
5788
|
-
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
5789
|
-
},
|
|
5790
|
-
"prevent_resize_existing_files": {
|
|
5791
|
-
"default": false,
|
|
5792
|
-
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
5793
|
-
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
5794
|
-
"type": "boolean"
|
|
5795
|
-
},
|
|
5796
|
-
"resize_style": {
|
|
5797
|
-
"default": "contain",
|
|
5798
|
-
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
5799
|
-
"enum": [
|
|
5800
|
-
"cover",
|
|
5801
|
-
"contain",
|
|
5802
|
-
"stretch",
|
|
5803
|
-
"crop"
|
|
5804
|
-
],
|
|
5805
|
-
"markdownDescription": "Sets how uploaded image files are resized with a bounding box defined by width and height prior\nto upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
5806
|
-
"type": "string"
|
|
5807
|
-
},
|
|
5808
|
-
"sizes": {
|
|
5809
|
-
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
5810
|
-
"items": {
|
|
5811
|
-
"additionalProperties": false,
|
|
5812
|
-
"properties": {
|
|
5813
|
-
"size": {
|
|
5814
|
-
"description": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).",
|
|
5815
|
-
"markdownDescription": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of\nthe image (e.g. 2x, 3x, 100w, 360w).",
|
|
5816
|
-
"type": "string"
|
|
5817
|
-
},
|
|
5818
|
-
"target": {
|
|
5819
|
-
"description": "A reference to another input that is given the path to this additional image file.",
|
|
5820
|
-
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
5821
|
-
"type": "string"
|
|
5822
|
-
}
|
|
5823
|
-
},
|
|
5824
|
-
"required": [
|
|
5825
|
-
"size"
|
|
5826
|
-
],
|
|
5827
|
-
"type": "object"
|
|
5828
|
-
},
|
|
5829
|
-
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
5830
|
-
"type": "array"
|
|
5831
|
-
},
|
|
5832
|
-
"width": {
|
|
5833
|
-
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
5834
|
-
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5835
|
-
"type": "number"
|
|
5836
|
-
}
|
|
5837
|
-
},
|
|
5838
|
-
"type": "object"
|
|
5839
|
-
},
|
|
5840
5719
|
"Input": {
|
|
5841
5720
|
"anyOf": [
|
|
5842
5721
|
{
|
|
@@ -5973,21 +5852,6 @@
|
|
|
5973
5852
|
"$ref": "#/definitions/RangeInput"
|
|
5974
5853
|
}
|
|
5975
5854
|
},
|
|
5976
|
-
{
|
|
5977
|
-
"if": {
|
|
5978
|
-
"properties": {
|
|
5979
|
-
"type": {
|
|
5980
|
-
"const": "url",
|
|
5981
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5982
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5983
|
-
"type": "string"
|
|
5984
|
-
}
|
|
5985
|
-
}
|
|
5986
|
-
},
|
|
5987
|
-
"then": {
|
|
5988
|
-
"$ref": "#/definitions/UrlInput"
|
|
5989
|
-
}
|
|
5990
|
-
},
|
|
5991
5855
|
{
|
|
5992
5856
|
"if": {
|
|
5993
5857
|
"properties": {
|
|
@@ -6046,7 +5910,8 @@
|
|
|
6046
5910
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6047
5911
|
"enum": [
|
|
6048
5912
|
"file",
|
|
6049
|
-
"document"
|
|
5913
|
+
"document",
|
|
5914
|
+
"image"
|
|
6050
5915
|
],
|
|
6051
5916
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6052
5917
|
"type": "string"
|
|
@@ -6061,7 +5926,7 @@
|
|
|
6061
5926
|
"if": {
|
|
6062
5927
|
"properties": {
|
|
6063
5928
|
"type": {
|
|
6064
|
-
"const": "
|
|
5929
|
+
"const": "url",
|
|
6065
5930
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6066
5931
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6067
5932
|
"type": "string"
|
|
@@ -6069,7 +5934,7 @@
|
|
|
6069
5934
|
}
|
|
6070
5935
|
},
|
|
6071
5936
|
"then": {
|
|
6072
|
-
"$ref": "#/definitions/
|
|
5937
|
+
"$ref": "#/definitions/UrlInput"
|
|
6073
5938
|
}
|
|
6074
5939
|
},
|
|
6075
5940
|
{
|
|
@@ -6196,7 +6061,6 @@
|
|
|
6196
6061
|
"switch",
|
|
6197
6062
|
"number",
|
|
6198
6063
|
"range",
|
|
6199
|
-
"url",
|
|
6200
6064
|
"html",
|
|
6201
6065
|
"markdown",
|
|
6202
6066
|
"date",
|
|
@@ -6205,6 +6069,7 @@
|
|
|
6205
6069
|
"file",
|
|
6206
6070
|
"document",
|
|
6207
6071
|
"image",
|
|
6072
|
+
"url",
|
|
6208
6073
|
"select",
|
|
6209
6074
|
"multiselect",
|
|
6210
6075
|
"choice",
|
|
@@ -9270,7 +9135,7 @@
|
|
|
9270
9135
|
"markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
|
|
9271
9136
|
"type": "boolean"
|
|
9272
9137
|
},
|
|
9273
|
-
"
|
|
9138
|
+
"soft_wrap": {
|
|
9274
9139
|
"default": false,
|
|
9275
9140
|
"description": "Enables soft wrapping of the code.",
|
|
9276
9141
|
"markdownDescription": "Enables soft wrapping of the code.",
|
|
@@ -10919,8 +10784,8 @@
|
|
|
10919
10784
|
},
|
|
10920
10785
|
"options": {
|
|
10921
10786
|
"$ref": "#/definitions/UrlInputOptions",
|
|
10922
|
-
"description": "Options that are specific to
|
|
10923
|
-
"markdownDescription": "Options that are specific to
|
|
10787
|
+
"description": "Options that are specific to URL inputs.",
|
|
10788
|
+
"markdownDescription": "Options that are specific to URL inputs."
|
|
10924
10789
|
},
|
|
10925
10790
|
"type": {
|
|
10926
10791
|
"const": "url",
|
|
@@ -10937,6 +10802,47 @@
|
|
|
10937
10802
|
"UrlInputOptions": {
|
|
10938
10803
|
"additionalProperties": false,
|
|
10939
10804
|
"properties": {
|
|
10805
|
+
"accepts_mime_types": {
|
|
10806
|
+
"anyOf": [
|
|
10807
|
+
{
|
|
10808
|
+
"items": {
|
|
10809
|
+
"$ref": "#/definitions/MimeType"
|
|
10810
|
+
},
|
|
10811
|
+
"type": "array"
|
|
10812
|
+
},
|
|
10813
|
+
{
|
|
10814
|
+
"type": "string"
|
|
10815
|
+
}
|
|
10816
|
+
],
|
|
10817
|
+
"description": "Restricts which file types are available to select or upload to this input. Accepted format is an array or comma-separated string of MIME types. The special value '*' means any type is accepted.",
|
|
10818
|
+
"markdownDescription": "Restricts which file types are available to select or upload to this input. Accepted format is\nan array or comma-separated string of MIME types. The special value '*' means any type is\naccepted."
|
|
10819
|
+
},
|
|
10820
|
+
"allowed_sources": {
|
|
10821
|
+
"description": "If you have one or more DAMs connected to your site, you can use this key to list which asset sources can be uploaded to and selected from.",
|
|
10822
|
+
"items": {
|
|
10823
|
+
"type": "string"
|
|
10824
|
+
},
|
|
10825
|
+
"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.",
|
|
10826
|
+
"type": "array"
|
|
10827
|
+
},
|
|
10828
|
+
"disable_direct_input": {
|
|
10829
|
+
"default": false,
|
|
10830
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
10831
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
10832
|
+
"type": "boolean"
|
|
10833
|
+
},
|
|
10834
|
+
"disable_upload_file": {
|
|
10835
|
+
"default": false,
|
|
10836
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
10837
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
10838
|
+
"type": "boolean"
|
|
10839
|
+
},
|
|
10840
|
+
"disable_upload_file_in_file_browser": {
|
|
10841
|
+
"default": false,
|
|
10842
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
10843
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
10844
|
+
"type": "boolean"
|
|
10845
|
+
},
|
|
10940
10846
|
"empty_type": {
|
|
10941
10847
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10942
10848
|
"enum": [
|
|
@@ -10946,6 +10852,17 @@
|
|
|
10946
10852
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10947
10853
|
"type": "string"
|
|
10948
10854
|
},
|
|
10855
|
+
"expandable": {
|
|
10856
|
+
"default": false,
|
|
10857
|
+
"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.",
|
|
10858
|
+
"markdownDescription": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to\nupload. Has no effect if files are not resized.",
|
|
10859
|
+
"type": "boolean"
|
|
10860
|
+
},
|
|
10861
|
+
"height": {
|
|
10862
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
10863
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
10864
|
+
"type": "number"
|
|
10865
|
+
},
|
|
10949
10866
|
"hide_link_to_email_address": {
|
|
10950
10867
|
"default": false,
|
|
10951
10868
|
"description": "Hides the option to link to an email address. This does not prevent typing a `mailto:` link in the input.",
|
|
@@ -10954,8 +10871,8 @@
|
|
|
10954
10871
|
},
|
|
10955
10872
|
"hide_link_to_file": {
|
|
10956
10873
|
"default": false,
|
|
10957
|
-
"description": "Hides the
|
|
10958
|
-
"markdownDescription": "Hides the
|
|
10874
|
+
"description": "Hides the options to link to an existing file, and upload a new file. This does not prevent typing a file path in the input.",
|
|
10875
|
+
"markdownDescription": "Hides the options to link to an existing file, and upload a new file. This does not prevent\ntyping a file path in the input.",
|
|
10959
10876
|
"type": "boolean"
|
|
10960
10877
|
},
|
|
10961
10878
|
"hide_link_to_page": {
|
|
@@ -10964,10 +10881,73 @@
|
|
|
10964
10881
|
"markdownDescription": "Hides the option to link to a page. This does not prevent typing a file's output URL in the\ninput.",
|
|
10965
10882
|
"type": "boolean"
|
|
10966
10883
|
},
|
|
10884
|
+
"image_size_attributes": {
|
|
10885
|
+
"default": true,
|
|
10886
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
10887
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
10888
|
+
"type": "boolean"
|
|
10889
|
+
},
|
|
10890
|
+
"mime_type": {
|
|
10891
|
+
"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.",
|
|
10892
|
+
"enum": [
|
|
10893
|
+
"image/jpeg",
|
|
10894
|
+
"image/png",
|
|
10895
|
+
"image/webp"
|
|
10896
|
+
],
|
|
10897
|
+
"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.",
|
|
10898
|
+
"type": "string"
|
|
10899
|
+
},
|
|
10967
10900
|
"paths": {
|
|
10968
10901
|
"$ref": "#/definitions/Paths",
|
|
10969
10902
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
10970
10903
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
10904
|
+
},
|
|
10905
|
+
"prevent_resize_existing_files": {
|
|
10906
|
+
"default": false,
|
|
10907
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
10908
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
10909
|
+
"type": "boolean"
|
|
10910
|
+
},
|
|
10911
|
+
"resize_style": {
|
|
10912
|
+
"default": "contain",
|
|
10913
|
+
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
10914
|
+
"enum": [
|
|
10915
|
+
"cover",
|
|
10916
|
+
"contain",
|
|
10917
|
+
"stretch",
|
|
10918
|
+
"crop"
|
|
10919
|
+
],
|
|
10920
|
+
"markdownDescription": "Sets how uploaded image files are resized with a bounding box defined by width and height prior\nto upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
10921
|
+
"type": "string"
|
|
10922
|
+
},
|
|
10923
|
+
"sizes": {
|
|
10924
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
10925
|
+
"items": {
|
|
10926
|
+
"additionalProperties": false,
|
|
10927
|
+
"properties": {
|
|
10928
|
+
"size": {
|
|
10929
|
+
"description": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).",
|
|
10930
|
+
"markdownDescription": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of\nthe image (e.g. 2x, 3x, 100w, 360w).",
|
|
10931
|
+
"type": "string"
|
|
10932
|
+
},
|
|
10933
|
+
"target": {
|
|
10934
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
10935
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
10936
|
+
"type": "string"
|
|
10937
|
+
}
|
|
10938
|
+
},
|
|
10939
|
+
"required": [
|
|
10940
|
+
"size"
|
|
10941
|
+
],
|
|
10942
|
+
"type": "object"
|
|
10943
|
+
},
|
|
10944
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
10945
|
+
"type": "array"
|
|
10946
|
+
},
|
|
10947
|
+
"width": {
|
|
10948
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
10949
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
10950
|
+
"type": "number"
|
|
10971
10951
|
}
|
|
10972
10952
|
},
|
|
10973
10953
|
"type": "object"
|