@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
|
@@ -1202,7 +1202,7 @@
|
|
|
1202
1202
|
"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",
|
|
1203
1203
|
"type": "boolean"
|
|
1204
1204
|
},
|
|
1205
|
-
"
|
|
1205
|
+
"soft_wrap": {
|
|
1206
1206
|
"default": false,
|
|
1207
1207
|
"description": "Enables soft wrapping of the code.",
|
|
1208
1208
|
"markdownDescription": "Enables soft wrapping of the code.",
|
|
@@ -1813,14 +1813,15 @@
|
|
|
1813
1813
|
},
|
|
1814
1814
|
"options": {
|
|
1815
1815
|
"$ref": "#/definitions/FileInputOptions",
|
|
1816
|
-
"description": "Options that are specific to File inputs.",
|
|
1817
|
-
"markdownDescription": "Options that are specific to File inputs."
|
|
1816
|
+
"description": "Options that are specific to File, Image and Document inputs.",
|
|
1817
|
+
"markdownDescription": "Options that are specific to File, Image and Document inputs."
|
|
1818
1818
|
},
|
|
1819
1819
|
"type": {
|
|
1820
1820
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
1821
1821
|
"enum": [
|
|
1822
1822
|
"file",
|
|
1823
|
-
"document"
|
|
1823
|
+
"document",
|
|
1824
|
+
"image"
|
|
1824
1825
|
],
|
|
1825
1826
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
1826
1827
|
"type": "string"
|
|
@@ -1857,6 +1858,24 @@
|
|
|
1857
1858
|
"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.",
|
|
1858
1859
|
"type": "array"
|
|
1859
1860
|
},
|
|
1861
|
+
"disable_direct_input": {
|
|
1862
|
+
"default": false,
|
|
1863
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
1864
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
1865
|
+
"type": "boolean"
|
|
1866
|
+
},
|
|
1867
|
+
"disable_upload_file": {
|
|
1868
|
+
"default": false,
|
|
1869
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
1870
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
1871
|
+
"type": "boolean"
|
|
1872
|
+
},
|
|
1873
|
+
"disable_upload_file_in_file_browser": {
|
|
1874
|
+
"default": false,
|
|
1875
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
1876
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
1877
|
+
"type": "boolean"
|
|
1878
|
+
},
|
|
1860
1879
|
"empty_type": {
|
|
1861
1880
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1862
1881
|
"enum": [
|
|
@@ -1866,10 +1885,84 @@
|
|
|
1866
1885
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1867
1886
|
"type": "string"
|
|
1868
1887
|
},
|
|
1888
|
+
"expandable": {
|
|
1889
|
+
"default": false,
|
|
1890
|
+
"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.",
|
|
1891
|
+
"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.",
|
|
1892
|
+
"type": "boolean"
|
|
1893
|
+
},
|
|
1894
|
+
"height": {
|
|
1895
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
1896
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
1897
|
+
"type": "number"
|
|
1898
|
+
},
|
|
1899
|
+
"image_size_attributes": {
|
|
1900
|
+
"default": true,
|
|
1901
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
1902
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
1903
|
+
"type": "boolean"
|
|
1904
|
+
},
|
|
1905
|
+
"mime_type": {
|
|
1906
|
+
"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.",
|
|
1907
|
+
"enum": [
|
|
1908
|
+
"image/jpeg",
|
|
1909
|
+
"image/png",
|
|
1910
|
+
"image/webp"
|
|
1911
|
+
],
|
|
1912
|
+
"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.",
|
|
1913
|
+
"type": "string"
|
|
1914
|
+
},
|
|
1869
1915
|
"paths": {
|
|
1870
1916
|
"$ref": "#/definitions/Paths",
|
|
1871
1917
|
"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`.",
|
|
1872
1918
|
"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`."
|
|
1919
|
+
},
|
|
1920
|
+
"prevent_resize_existing_files": {
|
|
1921
|
+
"default": false,
|
|
1922
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
1923
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
1924
|
+
"type": "boolean"
|
|
1925
|
+
},
|
|
1926
|
+
"resize_style": {
|
|
1927
|
+
"default": "contain",
|
|
1928
|
+
"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.",
|
|
1929
|
+
"enum": [
|
|
1930
|
+
"cover",
|
|
1931
|
+
"contain",
|
|
1932
|
+
"stretch",
|
|
1933
|
+
"crop"
|
|
1934
|
+
],
|
|
1935
|
+
"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.",
|
|
1936
|
+
"type": "string"
|
|
1937
|
+
},
|
|
1938
|
+
"sizes": {
|
|
1939
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
1940
|
+
"items": {
|
|
1941
|
+
"additionalProperties": false,
|
|
1942
|
+
"properties": {
|
|
1943
|
+
"size": {
|
|
1944
|
+
"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).",
|
|
1945
|
+
"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).",
|
|
1946
|
+
"type": "string"
|
|
1947
|
+
},
|
|
1948
|
+
"target": {
|
|
1949
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
1950
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
1951
|
+
"type": "string"
|
|
1952
|
+
}
|
|
1953
|
+
},
|
|
1954
|
+
"required": [
|
|
1955
|
+
"size"
|
|
1956
|
+
],
|
|
1957
|
+
"type": "object"
|
|
1958
|
+
},
|
|
1959
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
1960
|
+
"type": "array"
|
|
1961
|
+
},
|
|
1962
|
+
"width": {
|
|
1963
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
1964
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
1965
|
+
"type": "number"
|
|
1873
1966
|
}
|
|
1874
1967
|
},
|
|
1875
1968
|
"type": "object"
|
|
@@ -5616,220 +5709,6 @@
|
|
|
5616
5709
|
},
|
|
5617
5710
|
"type": "object"
|
|
5618
5711
|
},
|
|
5619
|
-
"ImageInput": {
|
|
5620
|
-
"additionalProperties": false,
|
|
5621
|
-
"properties": {
|
|
5622
|
-
"cascade": {
|
|
5623
|
-
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
5624
|
-
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
5625
|
-
"type": "boolean"
|
|
5626
|
-
},
|
|
5627
|
-
"comment": {
|
|
5628
|
-
"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.",
|
|
5629
|
-
"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.",
|
|
5630
|
-
"type": "string"
|
|
5631
|
-
},
|
|
5632
|
-
"context": {
|
|
5633
|
-
"additionalProperties": false,
|
|
5634
|
-
"description": "Adds an expandable section of rich text below the input.",
|
|
5635
|
-
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
5636
|
-
"properties": {
|
|
5637
|
-
"content": {
|
|
5638
|
-
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5639
|
-
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5640
|
-
"type": "string"
|
|
5641
|
-
},
|
|
5642
|
-
"icon": {
|
|
5643
|
-
"$ref": "#/definitions/Icon",
|
|
5644
|
-
"description": "The icon shown when not open.",
|
|
5645
|
-
"markdownDescription": "The icon shown when not open."
|
|
5646
|
-
},
|
|
5647
|
-
"open": {
|
|
5648
|
-
"description": "Makes the content visible initially.",
|
|
5649
|
-
"markdownDescription": "Makes the content visible initially.",
|
|
5650
|
-
"type": "boolean"
|
|
5651
|
-
},
|
|
5652
|
-
"title": {
|
|
5653
|
-
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5654
|
-
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5655
|
-
"type": "string"
|
|
5656
|
-
}
|
|
5657
|
-
},
|
|
5658
|
-
"type": "object"
|
|
5659
|
-
},
|
|
5660
|
-
"disable_instance_value_rehydration": {
|
|
5661
|
-
"default": false,
|
|
5662
|
-
"description": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new value when duplicated in the CMS.",
|
|
5663
|
-
"markdownDescription": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new\nvalue when duplicated in the CMS.",
|
|
5664
|
-
"type": "boolean"
|
|
5665
|
-
},
|
|
5666
|
-
"disabled": {
|
|
5667
|
-
"default": false,
|
|
5668
|
-
"description": "Toggles if this input can be edited.",
|
|
5669
|
-
"markdownDescription": "Toggles if this input can be edited.",
|
|
5670
|
-
"type": [
|
|
5671
|
-
"boolean",
|
|
5672
|
-
"string"
|
|
5673
|
-
]
|
|
5674
|
-
},
|
|
5675
|
-
"documentation": {
|
|
5676
|
-
"$ref": "#/definitions/Documentation",
|
|
5677
|
-
"description": "Provides a custom link for documentation for editors shown above input.",
|
|
5678
|
-
"markdownDescription": "Provides a custom link for documentation for editors shown above input."
|
|
5679
|
-
},
|
|
5680
|
-
"hidden": {
|
|
5681
|
-
"default": false,
|
|
5682
|
-
"description": "Toggles the visibility of this input.",
|
|
5683
|
-
"markdownDescription": "Toggles the visibility of this input.",
|
|
5684
|
-
"type": [
|
|
5685
|
-
"boolean",
|
|
5686
|
-
"string"
|
|
5687
|
-
]
|
|
5688
|
-
},
|
|
5689
|
-
"instance_value": {
|
|
5690
|
-
"$ref": "#/definitions/InstanceValue",
|
|
5691
|
-
"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.",
|
|
5692
|
-
"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."
|
|
5693
|
-
},
|
|
5694
|
-
"label": {
|
|
5695
|
-
"description": "Optionally changes the text above this input.",
|
|
5696
|
-
"markdownDescription": "Optionally changes the text above this input.",
|
|
5697
|
-
"type": "string"
|
|
5698
|
-
},
|
|
5699
|
-
"options": {
|
|
5700
|
-
"$ref": "#/definitions/ImageInputOptions",
|
|
5701
|
-
"description": "Options that are specific to Image inputs.",
|
|
5702
|
-
"markdownDescription": "Options that are specific to Image inputs."
|
|
5703
|
-
},
|
|
5704
|
-
"type": {
|
|
5705
|
-
"const": "image",
|
|
5706
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5707
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5708
|
-
"type": "string"
|
|
5709
|
-
}
|
|
5710
|
-
},
|
|
5711
|
-
"required": [
|
|
5712
|
-
"type"
|
|
5713
|
-
],
|
|
5714
|
-
"type": "object"
|
|
5715
|
-
},
|
|
5716
|
-
"ImageInputOptions": {
|
|
5717
|
-
"additionalProperties": false,
|
|
5718
|
-
"properties": {
|
|
5719
|
-
"accepts_mime_types": {
|
|
5720
|
-
"anyOf": [
|
|
5721
|
-
{
|
|
5722
|
-
"items": {
|
|
5723
|
-
"$ref": "#/definitions/MimeType"
|
|
5724
|
-
},
|
|
5725
|
-
"type": "array"
|
|
5726
|
-
},
|
|
5727
|
-
{
|
|
5728
|
-
"type": "string"
|
|
5729
|
-
}
|
|
5730
|
-
],
|
|
5731
|
-
"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.",
|
|
5732
|
-
"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."
|
|
5733
|
-
},
|
|
5734
|
-
"allowed_sources": {
|
|
5735
|
-
"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.",
|
|
5736
|
-
"items": {
|
|
5737
|
-
"type": "string"
|
|
5738
|
-
},
|
|
5739
|
-
"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.",
|
|
5740
|
-
"type": "array"
|
|
5741
|
-
},
|
|
5742
|
-
"empty_type": {
|
|
5743
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5744
|
-
"enum": [
|
|
5745
|
-
"null",
|
|
5746
|
-
"string"
|
|
5747
|
-
],
|
|
5748
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5749
|
-
"type": "string"
|
|
5750
|
-
},
|
|
5751
|
-
"expandable": {
|
|
5752
|
-
"default": false,
|
|
5753
|
-
"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.",
|
|
5754
|
-
"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.",
|
|
5755
|
-
"type": "boolean"
|
|
5756
|
-
},
|
|
5757
|
-
"height": {
|
|
5758
|
-
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
5759
|
-
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5760
|
-
"type": "number"
|
|
5761
|
-
},
|
|
5762
|
-
"image_size_attributes": {
|
|
5763
|
-
"default": true,
|
|
5764
|
-
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
5765
|
-
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
5766
|
-
"type": "boolean"
|
|
5767
|
-
},
|
|
5768
|
-
"mime_type": {
|
|
5769
|
-
"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.",
|
|
5770
|
-
"enum": [
|
|
5771
|
-
"image/jpeg",
|
|
5772
|
-
"image/png",
|
|
5773
|
-
"image/webp"
|
|
5774
|
-
],
|
|
5775
|
-
"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.",
|
|
5776
|
-
"type": "string"
|
|
5777
|
-
},
|
|
5778
|
-
"paths": {
|
|
5779
|
-
"$ref": "#/definitions/Paths",
|
|
5780
|
-
"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`.",
|
|
5781
|
-
"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`."
|
|
5782
|
-
},
|
|
5783
|
-
"prevent_resize_existing_files": {
|
|
5784
|
-
"default": false,
|
|
5785
|
-
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
5786
|
-
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
5787
|
-
"type": "boolean"
|
|
5788
|
-
},
|
|
5789
|
-
"resize_style": {
|
|
5790
|
-
"default": "contain",
|
|
5791
|
-
"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.",
|
|
5792
|
-
"enum": [
|
|
5793
|
-
"cover",
|
|
5794
|
-
"contain",
|
|
5795
|
-
"stretch",
|
|
5796
|
-
"crop"
|
|
5797
|
-
],
|
|
5798
|
-
"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.",
|
|
5799
|
-
"type": "string"
|
|
5800
|
-
},
|
|
5801
|
-
"sizes": {
|
|
5802
|
-
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
5803
|
-
"items": {
|
|
5804
|
-
"additionalProperties": false,
|
|
5805
|
-
"properties": {
|
|
5806
|
-
"size": {
|
|
5807
|
-
"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).",
|
|
5808
|
-
"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).",
|
|
5809
|
-
"type": "string"
|
|
5810
|
-
},
|
|
5811
|
-
"target": {
|
|
5812
|
-
"description": "A reference to another input that is given the path to this additional image file.",
|
|
5813
|
-
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
5814
|
-
"type": "string"
|
|
5815
|
-
}
|
|
5816
|
-
},
|
|
5817
|
-
"required": [
|
|
5818
|
-
"size"
|
|
5819
|
-
],
|
|
5820
|
-
"type": "object"
|
|
5821
|
-
},
|
|
5822
|
-
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
5823
|
-
"type": "array"
|
|
5824
|
-
},
|
|
5825
|
-
"width": {
|
|
5826
|
-
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
5827
|
-
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5828
|
-
"type": "number"
|
|
5829
|
-
}
|
|
5830
|
-
},
|
|
5831
|
-
"type": "object"
|
|
5832
|
-
},
|
|
5833
5712
|
"Input": {
|
|
5834
5713
|
"anyOf": [
|
|
5835
5714
|
{
|
|
@@ -5966,21 +5845,6 @@
|
|
|
5966
5845
|
"$ref": "#/definitions/RangeInput"
|
|
5967
5846
|
}
|
|
5968
5847
|
},
|
|
5969
|
-
{
|
|
5970
|
-
"if": {
|
|
5971
|
-
"properties": {
|
|
5972
|
-
"type": {
|
|
5973
|
-
"const": "url",
|
|
5974
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5975
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5976
|
-
"type": "string"
|
|
5977
|
-
}
|
|
5978
|
-
}
|
|
5979
|
-
},
|
|
5980
|
-
"then": {
|
|
5981
|
-
"$ref": "#/definitions/UrlInput"
|
|
5982
|
-
}
|
|
5983
|
-
},
|
|
5984
5848
|
{
|
|
5985
5849
|
"if": {
|
|
5986
5850
|
"properties": {
|
|
@@ -6039,7 +5903,8 @@
|
|
|
6039
5903
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6040
5904
|
"enum": [
|
|
6041
5905
|
"file",
|
|
6042
|
-
"document"
|
|
5906
|
+
"document",
|
|
5907
|
+
"image"
|
|
6043
5908
|
],
|
|
6044
5909
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6045
5910
|
"type": "string"
|
|
@@ -6054,7 +5919,7 @@
|
|
|
6054
5919
|
"if": {
|
|
6055
5920
|
"properties": {
|
|
6056
5921
|
"type": {
|
|
6057
|
-
"const": "
|
|
5922
|
+
"const": "url",
|
|
6058
5923
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
6059
5924
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
6060
5925
|
"type": "string"
|
|
@@ -6062,7 +5927,7 @@
|
|
|
6062
5927
|
}
|
|
6063
5928
|
},
|
|
6064
5929
|
"then": {
|
|
6065
|
-
"$ref": "#/definitions/
|
|
5930
|
+
"$ref": "#/definitions/UrlInput"
|
|
6066
5931
|
}
|
|
6067
5932
|
},
|
|
6068
5933
|
{
|
|
@@ -6189,7 +6054,6 @@
|
|
|
6189
6054
|
"switch",
|
|
6190
6055
|
"number",
|
|
6191
6056
|
"range",
|
|
6192
|
-
"url",
|
|
6193
6057
|
"html",
|
|
6194
6058
|
"markdown",
|
|
6195
6059
|
"date",
|
|
@@ -6198,6 +6062,7 @@
|
|
|
6198
6062
|
"file",
|
|
6199
6063
|
"document",
|
|
6200
6064
|
"image",
|
|
6065
|
+
"url",
|
|
6201
6066
|
"select",
|
|
6202
6067
|
"multiselect",
|
|
6203
6068
|
"choice",
|
|
@@ -9263,7 +9128,7 @@
|
|
|
9263
9128
|
"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",
|
|
9264
9129
|
"type": "boolean"
|
|
9265
9130
|
},
|
|
9266
|
-
"
|
|
9131
|
+
"soft_wrap": {
|
|
9267
9132
|
"default": false,
|
|
9268
9133
|
"description": "Enables soft wrapping of the code.",
|
|
9269
9134
|
"markdownDescription": "Enables soft wrapping of the code.",
|
|
@@ -10912,8 +10777,8 @@
|
|
|
10912
10777
|
},
|
|
10913
10778
|
"options": {
|
|
10914
10779
|
"$ref": "#/definitions/UrlInputOptions",
|
|
10915
|
-
"description": "Options that are specific to
|
|
10916
|
-
"markdownDescription": "Options that are specific to
|
|
10780
|
+
"description": "Options that are specific to URL inputs.",
|
|
10781
|
+
"markdownDescription": "Options that are specific to URL inputs."
|
|
10917
10782
|
},
|
|
10918
10783
|
"type": {
|
|
10919
10784
|
"const": "url",
|
|
@@ -10930,6 +10795,47 @@
|
|
|
10930
10795
|
"UrlInputOptions": {
|
|
10931
10796
|
"additionalProperties": false,
|
|
10932
10797
|
"properties": {
|
|
10798
|
+
"accepts_mime_types": {
|
|
10799
|
+
"anyOf": [
|
|
10800
|
+
{
|
|
10801
|
+
"items": {
|
|
10802
|
+
"$ref": "#/definitions/MimeType"
|
|
10803
|
+
},
|
|
10804
|
+
"type": "array"
|
|
10805
|
+
},
|
|
10806
|
+
{
|
|
10807
|
+
"type": "string"
|
|
10808
|
+
}
|
|
10809
|
+
],
|
|
10810
|
+
"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.",
|
|
10811
|
+
"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."
|
|
10812
|
+
},
|
|
10813
|
+
"allowed_sources": {
|
|
10814
|
+
"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.",
|
|
10815
|
+
"items": {
|
|
10816
|
+
"type": "string"
|
|
10817
|
+
},
|
|
10818
|
+
"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.",
|
|
10819
|
+
"type": "array"
|
|
10820
|
+
},
|
|
10821
|
+
"disable_direct_input": {
|
|
10822
|
+
"default": false,
|
|
10823
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
10824
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
10825
|
+
"type": "boolean"
|
|
10826
|
+
},
|
|
10827
|
+
"disable_upload_file": {
|
|
10828
|
+
"default": false,
|
|
10829
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
10830
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
10831
|
+
"type": "boolean"
|
|
10832
|
+
},
|
|
10833
|
+
"disable_upload_file_in_file_browser": {
|
|
10834
|
+
"default": false,
|
|
10835
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
10836
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
10837
|
+
"type": "boolean"
|
|
10838
|
+
},
|
|
10933
10839
|
"empty_type": {
|
|
10934
10840
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10935
10841
|
"enum": [
|
|
@@ -10939,6 +10845,17 @@
|
|
|
10939
10845
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10940
10846
|
"type": "string"
|
|
10941
10847
|
},
|
|
10848
|
+
"expandable": {
|
|
10849
|
+
"default": false,
|
|
10850
|
+
"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.",
|
|
10851
|
+
"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.",
|
|
10852
|
+
"type": "boolean"
|
|
10853
|
+
},
|
|
10854
|
+
"height": {
|
|
10855
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
10856
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
10857
|
+
"type": "number"
|
|
10858
|
+
},
|
|
10942
10859
|
"hide_link_to_email_address": {
|
|
10943
10860
|
"default": false,
|
|
10944
10861
|
"description": "Hides the option to link to an email address. This does not prevent typing a `mailto:` link in the input.",
|
|
@@ -10947,8 +10864,8 @@
|
|
|
10947
10864
|
},
|
|
10948
10865
|
"hide_link_to_file": {
|
|
10949
10866
|
"default": false,
|
|
10950
|
-
"description": "Hides the
|
|
10951
|
-
"markdownDescription": "Hides the
|
|
10867
|
+
"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.",
|
|
10868
|
+
"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.",
|
|
10952
10869
|
"type": "boolean"
|
|
10953
10870
|
},
|
|
10954
10871
|
"hide_link_to_page": {
|
|
@@ -10957,10 +10874,73 @@
|
|
|
10957
10874
|
"markdownDescription": "Hides the option to link to a page. This does not prevent typing a file's output URL in the\ninput.",
|
|
10958
10875
|
"type": "boolean"
|
|
10959
10876
|
},
|
|
10877
|
+
"image_size_attributes": {
|
|
10878
|
+
"default": true,
|
|
10879
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
10880
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
10881
|
+
"type": "boolean"
|
|
10882
|
+
},
|
|
10883
|
+
"mime_type": {
|
|
10884
|
+
"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.",
|
|
10885
|
+
"enum": [
|
|
10886
|
+
"image/jpeg",
|
|
10887
|
+
"image/png",
|
|
10888
|
+
"image/webp"
|
|
10889
|
+
],
|
|
10890
|
+
"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.",
|
|
10891
|
+
"type": "string"
|
|
10892
|
+
},
|
|
10960
10893
|
"paths": {
|
|
10961
10894
|
"$ref": "#/definitions/Paths",
|
|
10962
10895
|
"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`.",
|
|
10963
10896
|
"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`."
|
|
10897
|
+
},
|
|
10898
|
+
"prevent_resize_existing_files": {
|
|
10899
|
+
"default": false,
|
|
10900
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
10901
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
10902
|
+
"type": "boolean"
|
|
10903
|
+
},
|
|
10904
|
+
"resize_style": {
|
|
10905
|
+
"default": "contain",
|
|
10906
|
+
"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.",
|
|
10907
|
+
"enum": [
|
|
10908
|
+
"cover",
|
|
10909
|
+
"contain",
|
|
10910
|
+
"stretch",
|
|
10911
|
+
"crop"
|
|
10912
|
+
],
|
|
10913
|
+
"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.",
|
|
10914
|
+
"type": "string"
|
|
10915
|
+
},
|
|
10916
|
+
"sizes": {
|
|
10917
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
10918
|
+
"items": {
|
|
10919
|
+
"additionalProperties": false,
|
|
10920
|
+
"properties": {
|
|
10921
|
+
"size": {
|
|
10922
|
+
"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).",
|
|
10923
|
+
"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).",
|
|
10924
|
+
"type": "string"
|
|
10925
|
+
},
|
|
10926
|
+
"target": {
|
|
10927
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
10928
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
10929
|
+
"type": "string"
|
|
10930
|
+
}
|
|
10931
|
+
},
|
|
10932
|
+
"required": [
|
|
10933
|
+
"size"
|
|
10934
|
+
],
|
|
10935
|
+
"type": "object"
|
|
10936
|
+
},
|
|
10937
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
10938
|
+
"type": "array"
|
|
10939
|
+
},
|
|
10940
|
+
"width": {
|
|
10941
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
10942
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
10943
|
+
"type": "number"
|
|
10964
10944
|
}
|
|
10965
10945
|
},
|
|
10966
10946
|
"type": "object"
|