@cloudcannon/configuration-types 0.0.28 → 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.
@@ -1757,14 +1757,15 @@
1757
1757
  },
1758
1758
  "options": {
1759
1759
  "$ref": "#/definitions/FileInputOptions",
1760
- "description": "Options that are specific to File inputs.",
1761
- "markdownDescription": "Options that are specific to File inputs."
1760
+ "description": "Options that are specific to File, Image and Document inputs.",
1761
+ "markdownDescription": "Options that are specific to File, Image and Document inputs."
1762
1762
  },
1763
1763
  "type": {
1764
1764
  "description": "Sets an input type, which controls how this input appears and behaves.",
1765
1765
  "enum": [
1766
1766
  "file",
1767
- "document"
1767
+ "document",
1768
+ "image"
1768
1769
  ],
1769
1770
  "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
1770
1771
  "type": "string"
@@ -1801,6 +1802,24 @@
1801
1802
  "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.",
1802
1803
  "type": "array"
1803
1804
  },
1805
+ "disable_direct_input": {
1806
+ "default": false,
1807
+ "description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
1808
+ "markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
1809
+ "type": "boolean"
1810
+ },
1811
+ "disable_upload_file": {
1812
+ "default": false,
1813
+ "description": "Disables the context menu option and the drop area for uploading files.",
1814
+ "markdownDescription": "Disables the context menu option and the drop area for uploading files.",
1815
+ "type": "boolean"
1816
+ },
1817
+ "disable_upload_file_in_file_browser": {
1818
+ "default": false,
1819
+ "description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
1820
+ "markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
1821
+ "type": "boolean"
1822
+ },
1804
1823
  "empty_type": {
1805
1824
  "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1806
1825
  "enum": [
@@ -1810,10 +1829,84 @@
1810
1829
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1811
1830
  "type": "string"
1812
1831
  },
1832
+ "expandable": {
1833
+ "default": false,
1834
+ "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.",
1835
+ "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.",
1836
+ "type": "boolean"
1837
+ },
1838
+ "height": {
1839
+ "description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
1840
+ "markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
1841
+ "type": "number"
1842
+ },
1843
+ "image_size_attributes": {
1844
+ "default": true,
1845
+ "description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
1846
+ "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
1847
+ "type": "boolean"
1848
+ },
1849
+ "mime_type": {
1850
+ "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.",
1851
+ "enum": [
1852
+ "image/jpeg",
1853
+ "image/png",
1854
+ "image/webp"
1855
+ ],
1856
+ "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.",
1857
+ "type": "string"
1858
+ },
1813
1859
  "paths": {
1814
1860
  "$ref": "#/definitions/Paths",
1815
1861
  "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`.",
1816
1862
  "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`."
1863
+ },
1864
+ "prevent_resize_existing_files": {
1865
+ "default": false,
1866
+ "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
1867
+ "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
1868
+ "type": "boolean"
1869
+ },
1870
+ "resize_style": {
1871
+ "default": "contain",
1872
+ "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.",
1873
+ "enum": [
1874
+ "cover",
1875
+ "contain",
1876
+ "stretch",
1877
+ "crop"
1878
+ ],
1879
+ "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.",
1880
+ "type": "string"
1881
+ },
1882
+ "sizes": {
1883
+ "description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
1884
+ "items": {
1885
+ "additionalProperties": false,
1886
+ "properties": {
1887
+ "size": {
1888
+ "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).",
1889
+ "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).",
1890
+ "type": "string"
1891
+ },
1892
+ "target": {
1893
+ "description": "A reference to another input that is given the path to this additional image file.",
1894
+ "markdownDescription": "A reference to another input that is given the path to this additional image file.",
1895
+ "type": "string"
1896
+ }
1897
+ },
1898
+ "required": [
1899
+ "size"
1900
+ ],
1901
+ "type": "object"
1902
+ },
1903
+ "markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
1904
+ "type": "array"
1905
+ },
1906
+ "width": {
1907
+ "description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
1908
+ "markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
1909
+ "type": "number"
1817
1910
  }
1818
1911
  },
1819
1912
  "type": "object"
@@ -5525,220 +5618,6 @@
5525
5618
  },
5526
5619
  "type": "object"
5527
5620
  },
5528
- "ImageInput": {
5529
- "additionalProperties": false,
5530
- "properties": {
5531
- "cascade": {
5532
- "description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
5533
- "markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
5534
- "type": "boolean"
5535
- },
5536
- "comment": {
5537
- "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.",
5538
- "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.",
5539
- "type": "string"
5540
- },
5541
- "context": {
5542
- "additionalProperties": false,
5543
- "description": "Adds an expandable section of rich text below the input.",
5544
- "markdownDescription": "Adds an expandable section of rich text below the input.",
5545
- "properties": {
5546
- "content": {
5547
- "description": "The rich text content shown when opened. Supports a limited set of Markdown.",
5548
- "markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
5549
- "type": "string"
5550
- },
5551
- "icon": {
5552
- "$ref": "#/definitions/Icon",
5553
- "description": "The icon shown when not open.",
5554
- "markdownDescription": "The icon shown when not open."
5555
- },
5556
- "open": {
5557
- "description": "Makes the content visible initially.",
5558
- "markdownDescription": "Makes the content visible initially.",
5559
- "type": "boolean"
5560
- },
5561
- "title": {
5562
- "description": "The text shown when not open. Defaults to \"Context\" if unset.",
5563
- "markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
5564
- "type": "string"
5565
- }
5566
- },
5567
- "type": "object"
5568
- },
5569
- "disable_instance_value_rehydration": {
5570
- "default": false,
5571
- "description": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new value when duplicated in the CMS.",
5572
- "markdownDescription": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new\nvalue when duplicated in the CMS.",
5573
- "type": "boolean"
5574
- },
5575
- "disabled": {
5576
- "default": false,
5577
- "description": "Toggles if this input can be edited.",
5578
- "markdownDescription": "Toggles if this input can be edited.",
5579
- "type": [
5580
- "boolean",
5581
- "string"
5582
- ]
5583
- },
5584
- "documentation": {
5585
- "$ref": "#/definitions/Documentation",
5586
- "description": "Provides a custom link for documentation for editors shown above input.",
5587
- "markdownDescription": "Provides a custom link for documentation for editors shown above input."
5588
- },
5589
- "hidden": {
5590
- "default": false,
5591
- "description": "Toggles the visibility of this input.",
5592
- "markdownDescription": "Toggles the visibility of this input.",
5593
- "type": [
5594
- "boolean",
5595
- "string"
5596
- ]
5597
- },
5598
- "instance_value": {
5599
- "$ref": "#/definitions/InstanceValue",
5600
- "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.",
5601
- "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."
5602
- },
5603
- "label": {
5604
- "description": "Optionally changes the text above this input.",
5605
- "markdownDescription": "Optionally changes the text above this input.",
5606
- "type": "string"
5607
- },
5608
- "options": {
5609
- "$ref": "#/definitions/ImageInputOptions",
5610
- "description": "Options that are specific to Image inputs.",
5611
- "markdownDescription": "Options that are specific to Image inputs."
5612
- },
5613
- "type": {
5614
- "const": "image",
5615
- "description": "Sets an input type, which controls how this input appears and behaves.",
5616
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
5617
- "type": "string"
5618
- }
5619
- },
5620
- "required": [
5621
- "type"
5622
- ],
5623
- "type": "object"
5624
- },
5625
- "ImageInputOptions": {
5626
- "additionalProperties": false,
5627
- "properties": {
5628
- "accepts_mime_types": {
5629
- "anyOf": [
5630
- {
5631
- "items": {
5632
- "$ref": "#/definitions/MimeType"
5633
- },
5634
- "type": "array"
5635
- },
5636
- {
5637
- "type": "string"
5638
- }
5639
- ],
5640
- "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.",
5641
- "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."
5642
- },
5643
- "allowed_sources": {
5644
- "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.",
5645
- "items": {
5646
- "type": "string"
5647
- },
5648
- "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.",
5649
- "type": "array"
5650
- },
5651
- "empty_type": {
5652
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
5653
- "enum": [
5654
- "null",
5655
- "string"
5656
- ],
5657
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
5658
- "type": "string"
5659
- },
5660
- "expandable": {
5661
- "default": false,
5662
- "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.",
5663
- "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.",
5664
- "type": "boolean"
5665
- },
5666
- "height": {
5667
- "description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
5668
- "markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
5669
- "type": "number"
5670
- },
5671
- "image_size_attributes": {
5672
- "default": true,
5673
- "description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
5674
- "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
5675
- "type": "boolean"
5676
- },
5677
- "mime_type": {
5678
- "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.",
5679
- "enum": [
5680
- "image/jpeg",
5681
- "image/png",
5682
- "image/webp"
5683
- ],
5684
- "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.",
5685
- "type": "string"
5686
- },
5687
- "paths": {
5688
- "$ref": "#/definitions/Paths",
5689
- "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`.",
5690
- "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`."
5691
- },
5692
- "prevent_resize_existing_files": {
5693
- "default": false,
5694
- "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
5695
- "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
5696
- "type": "boolean"
5697
- },
5698
- "resize_style": {
5699
- "default": "contain",
5700
- "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.",
5701
- "enum": [
5702
- "cover",
5703
- "contain",
5704
- "stretch",
5705
- "crop"
5706
- ],
5707
- "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.",
5708
- "type": "string"
5709
- },
5710
- "sizes": {
5711
- "description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
5712
- "items": {
5713
- "additionalProperties": false,
5714
- "properties": {
5715
- "size": {
5716
- "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).",
5717
- "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).",
5718
- "type": "string"
5719
- },
5720
- "target": {
5721
- "description": "A reference to another input that is given the path to this additional image file.",
5722
- "markdownDescription": "A reference to another input that is given the path to this additional image file.",
5723
- "type": "string"
5724
- }
5725
- },
5726
- "required": [
5727
- "size"
5728
- ],
5729
- "type": "object"
5730
- },
5731
- "markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
5732
- "type": "array"
5733
- },
5734
- "width": {
5735
- "description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
5736
- "markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
5737
- "type": "number"
5738
- }
5739
- },
5740
- "type": "object"
5741
- },
5742
5621
  "Input": {
5743
5622
  "anyOf": [
5744
5623
  {
@@ -5875,21 +5754,6 @@
5875
5754
  "$ref": "#/definitions/RangeInput"
5876
5755
  }
5877
5756
  },
5878
- {
5879
- "if": {
5880
- "properties": {
5881
- "type": {
5882
- "const": "url",
5883
- "description": "Sets an input type, which controls how this input appears and behaves.",
5884
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
5885
- "type": "string"
5886
- }
5887
- }
5888
- },
5889
- "then": {
5890
- "$ref": "#/definitions/UrlInput"
5891
- }
5892
- },
5893
5757
  {
5894
5758
  "if": {
5895
5759
  "properties": {
@@ -5948,7 +5812,8 @@
5948
5812
  "description": "Sets an input type, which controls how this input appears and behaves.",
5949
5813
  "enum": [
5950
5814
  "file",
5951
- "document"
5815
+ "document",
5816
+ "image"
5952
5817
  ],
5953
5818
  "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
5954
5819
  "type": "string"
@@ -5963,7 +5828,7 @@
5963
5828
  "if": {
5964
5829
  "properties": {
5965
5830
  "type": {
5966
- "const": "image",
5831
+ "const": "url",
5967
5832
  "description": "Sets an input type, which controls how this input appears and behaves.",
5968
5833
  "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
5969
5834
  "type": "string"
@@ -5971,7 +5836,7 @@
5971
5836
  }
5972
5837
  },
5973
5838
  "then": {
5974
- "$ref": "#/definitions/ImageInput"
5839
+ "$ref": "#/definitions/UrlInput"
5975
5840
  }
5976
5841
  },
5977
5842
  {
@@ -6098,7 +5963,6 @@
6098
5963
  "switch",
6099
5964
  "number",
6100
5965
  "range",
6101
- "url",
6102
5966
  "html",
6103
5967
  "markdown",
6104
5968
  "date",
@@ -6107,6 +5971,7 @@
6107
5971
  "file",
6108
5972
  "document",
6109
5973
  "image",
5974
+ "url",
6110
5975
  "select",
6111
5976
  "multiselect",
6112
5977
  "choice",
@@ -10821,8 +10686,8 @@
10821
10686
  },
10822
10687
  "options": {
10823
10688
  "$ref": "#/definitions/UrlInputOptions",
10824
- "description": "Options that are specific to this `type` of input.",
10825
- "markdownDescription": "Options that are specific to this `type` of input."
10689
+ "description": "Options that are specific to URL inputs.",
10690
+ "markdownDescription": "Options that are specific to URL inputs."
10826
10691
  },
10827
10692
  "type": {
10828
10693
  "const": "url",
@@ -10839,6 +10704,47 @@
10839
10704
  "UrlInputOptions": {
10840
10705
  "additionalProperties": false,
10841
10706
  "properties": {
10707
+ "accepts_mime_types": {
10708
+ "anyOf": [
10709
+ {
10710
+ "items": {
10711
+ "$ref": "#/definitions/MimeType"
10712
+ },
10713
+ "type": "array"
10714
+ },
10715
+ {
10716
+ "type": "string"
10717
+ }
10718
+ ],
10719
+ "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.",
10720
+ "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."
10721
+ },
10722
+ "allowed_sources": {
10723
+ "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.",
10724
+ "items": {
10725
+ "type": "string"
10726
+ },
10727
+ "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.",
10728
+ "type": "array"
10729
+ },
10730
+ "disable_direct_input": {
10731
+ "default": false,
10732
+ "description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
10733
+ "markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
10734
+ "type": "boolean"
10735
+ },
10736
+ "disable_upload_file": {
10737
+ "default": false,
10738
+ "description": "Disables the context menu option and the drop area for uploading files.",
10739
+ "markdownDescription": "Disables the context menu option and the drop area for uploading files.",
10740
+ "type": "boolean"
10741
+ },
10742
+ "disable_upload_file_in_file_browser": {
10743
+ "default": false,
10744
+ "description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
10745
+ "markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
10746
+ "type": "boolean"
10747
+ },
10842
10748
  "empty_type": {
10843
10749
  "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10844
10750
  "enum": [
@@ -10848,6 +10754,17 @@
10848
10754
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10849
10755
  "type": "string"
10850
10756
  },
10757
+ "expandable": {
10758
+ "default": false,
10759
+ "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.",
10760
+ "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.",
10761
+ "type": "boolean"
10762
+ },
10763
+ "height": {
10764
+ "description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
10765
+ "markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
10766
+ "type": "number"
10767
+ },
10851
10768
  "hide_link_to_email_address": {
10852
10769
  "default": false,
10853
10770
  "description": "Hides the option to link to an email address. This does not prevent typing a `mailto:` link in the input.",
@@ -10856,8 +10773,8 @@
10856
10773
  },
10857
10774
  "hide_link_to_file": {
10858
10775
  "default": false,
10859
- "description": "Hides the option to link to a file. This does not prevent typing a file path in the input.",
10860
- "markdownDescription": "Hides the option to link to a file. This does not prevent typing a file path in the input.",
10776
+ "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.",
10777
+ "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.",
10861
10778
  "type": "boolean"
10862
10779
  },
10863
10780
  "hide_link_to_page": {
@@ -10866,10 +10783,73 @@
10866
10783
  "markdownDescription": "Hides the option to link to a page. This does not prevent typing a file's output URL in the\ninput.",
10867
10784
  "type": "boolean"
10868
10785
  },
10786
+ "image_size_attributes": {
10787
+ "default": true,
10788
+ "description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
10789
+ "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
10790
+ "type": "boolean"
10791
+ },
10792
+ "mime_type": {
10793
+ "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.",
10794
+ "enum": [
10795
+ "image/jpeg",
10796
+ "image/png",
10797
+ "image/webp"
10798
+ ],
10799
+ "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.",
10800
+ "type": "string"
10801
+ },
10869
10802
  "paths": {
10870
10803
  "$ref": "#/definitions/Paths",
10871
10804
  "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`.",
10872
10805
  "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`."
10806
+ },
10807
+ "prevent_resize_existing_files": {
10808
+ "default": false,
10809
+ "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
10810
+ "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
10811
+ "type": "boolean"
10812
+ },
10813
+ "resize_style": {
10814
+ "default": "contain",
10815
+ "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.",
10816
+ "enum": [
10817
+ "cover",
10818
+ "contain",
10819
+ "stretch",
10820
+ "crop"
10821
+ ],
10822
+ "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.",
10823
+ "type": "string"
10824
+ },
10825
+ "sizes": {
10826
+ "description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
10827
+ "items": {
10828
+ "additionalProperties": false,
10829
+ "properties": {
10830
+ "size": {
10831
+ "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).",
10832
+ "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).",
10833
+ "type": "string"
10834
+ },
10835
+ "target": {
10836
+ "description": "A reference to another input that is given the path to this additional image file.",
10837
+ "markdownDescription": "A reference to another input that is given the path to this additional image file.",
10838
+ "type": "string"
10839
+ }
10840
+ },
10841
+ "required": [
10842
+ "size"
10843
+ ],
10844
+ "type": "object"
10845
+ },
10846
+ "markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
10847
+ "type": "array"
10848
+ },
10849
+ "width": {
10850
+ "description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
10851
+ "markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
10852
+ "type": "number"
10873
10853
  }
10874
10854
  },
10875
10855
  "type": "object"