@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.
- package/dist/cloudcannon-config.latest.schema.json +220 -240
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +220 -240
- package/dist/cloudcannon-config.legacy-hugo.schema.json +220 -240
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +220 -240
- package/dist/cloudcannon-config.legacy-reader.schema.json +220 -240
- package/package.json +1 -1
- package/src/inputs.d.ts +59 -53
- package/src/javascript-api.d.ts +34 -10
|
@@ -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"
|
|
@@ -5427,220 +5520,6 @@
|
|
|
5427
5520
|
},
|
|
5428
5521
|
"type": "object"
|
|
5429
5522
|
},
|
|
5430
|
-
"ImageInput": {
|
|
5431
|
-
"additionalProperties": false,
|
|
5432
|
-
"properties": {
|
|
5433
|
-
"cascade": {
|
|
5434
|
-
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
5435
|
-
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
5436
|
-
"type": "boolean"
|
|
5437
|
-
},
|
|
5438
|
-
"comment": {
|
|
5439
|
-
"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.",
|
|
5440
|
-
"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.",
|
|
5441
|
-
"type": "string"
|
|
5442
|
-
},
|
|
5443
|
-
"context": {
|
|
5444
|
-
"additionalProperties": false,
|
|
5445
|
-
"description": "Adds an expandable section of rich text below the input.",
|
|
5446
|
-
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
5447
|
-
"properties": {
|
|
5448
|
-
"content": {
|
|
5449
|
-
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5450
|
-
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
5451
|
-
"type": "string"
|
|
5452
|
-
},
|
|
5453
|
-
"icon": {
|
|
5454
|
-
"$ref": "#/definitions/Icon",
|
|
5455
|
-
"description": "The icon shown when not open.",
|
|
5456
|
-
"markdownDescription": "The icon shown when not open."
|
|
5457
|
-
},
|
|
5458
|
-
"open": {
|
|
5459
|
-
"description": "Makes the content visible initially.",
|
|
5460
|
-
"markdownDescription": "Makes the content visible initially.",
|
|
5461
|
-
"type": "boolean"
|
|
5462
|
-
},
|
|
5463
|
-
"title": {
|
|
5464
|
-
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5465
|
-
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
5466
|
-
"type": "string"
|
|
5467
|
-
}
|
|
5468
|
-
},
|
|
5469
|
-
"type": "object"
|
|
5470
|
-
},
|
|
5471
|
-
"disable_instance_value_rehydration": {
|
|
5472
|
-
"default": false,
|
|
5473
|
-
"description": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new value when duplicated in the CMS.",
|
|
5474
|
-
"markdownDescription": "Prevents the default where inputs configured with an `instance_value` are rehydrated with a new\nvalue when duplicated in the CMS.",
|
|
5475
|
-
"type": "boolean"
|
|
5476
|
-
},
|
|
5477
|
-
"disabled": {
|
|
5478
|
-
"default": false,
|
|
5479
|
-
"description": "Toggles if this input can be edited.",
|
|
5480
|
-
"markdownDescription": "Toggles if this input can be edited.",
|
|
5481
|
-
"type": [
|
|
5482
|
-
"boolean",
|
|
5483
|
-
"string"
|
|
5484
|
-
]
|
|
5485
|
-
},
|
|
5486
|
-
"documentation": {
|
|
5487
|
-
"$ref": "#/definitions/Documentation",
|
|
5488
|
-
"description": "Provides a custom link for documentation for editors shown above input.",
|
|
5489
|
-
"markdownDescription": "Provides a custom link for documentation for editors shown above input."
|
|
5490
|
-
},
|
|
5491
|
-
"hidden": {
|
|
5492
|
-
"default": false,
|
|
5493
|
-
"description": "Toggles the visibility of this input.",
|
|
5494
|
-
"markdownDescription": "Toggles the visibility of this input.",
|
|
5495
|
-
"type": [
|
|
5496
|
-
"boolean",
|
|
5497
|
-
"string"
|
|
5498
|
-
]
|
|
5499
|
-
},
|
|
5500
|
-
"instance_value": {
|
|
5501
|
-
"$ref": "#/definitions/InstanceValue",
|
|
5502
|
-
"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.",
|
|
5503
|
-
"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."
|
|
5504
|
-
},
|
|
5505
|
-
"label": {
|
|
5506
|
-
"description": "Optionally changes the text above this input.",
|
|
5507
|
-
"markdownDescription": "Optionally changes the text above this input.",
|
|
5508
|
-
"type": "string"
|
|
5509
|
-
},
|
|
5510
|
-
"options": {
|
|
5511
|
-
"$ref": "#/definitions/ImageInputOptions",
|
|
5512
|
-
"description": "Options that are specific to Image inputs.",
|
|
5513
|
-
"markdownDescription": "Options that are specific to Image inputs."
|
|
5514
|
-
},
|
|
5515
|
-
"type": {
|
|
5516
|
-
"const": "image",
|
|
5517
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5518
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5519
|
-
"type": "string"
|
|
5520
|
-
}
|
|
5521
|
-
},
|
|
5522
|
-
"required": [
|
|
5523
|
-
"type"
|
|
5524
|
-
],
|
|
5525
|
-
"type": "object"
|
|
5526
|
-
},
|
|
5527
|
-
"ImageInputOptions": {
|
|
5528
|
-
"additionalProperties": false,
|
|
5529
|
-
"properties": {
|
|
5530
|
-
"accepts_mime_types": {
|
|
5531
|
-
"anyOf": [
|
|
5532
|
-
{
|
|
5533
|
-
"items": {
|
|
5534
|
-
"$ref": "#/definitions/MimeType"
|
|
5535
|
-
},
|
|
5536
|
-
"type": "array"
|
|
5537
|
-
},
|
|
5538
|
-
{
|
|
5539
|
-
"type": "string"
|
|
5540
|
-
}
|
|
5541
|
-
],
|
|
5542
|
-
"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.",
|
|
5543
|
-
"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."
|
|
5544
|
-
},
|
|
5545
|
-
"allowed_sources": {
|
|
5546
|
-
"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.",
|
|
5547
|
-
"items": {
|
|
5548
|
-
"type": "string"
|
|
5549
|
-
},
|
|
5550
|
-
"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.",
|
|
5551
|
-
"type": "array"
|
|
5552
|
-
},
|
|
5553
|
-
"empty_type": {
|
|
5554
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5555
|
-
"enum": [
|
|
5556
|
-
"null",
|
|
5557
|
-
"string"
|
|
5558
|
-
],
|
|
5559
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
5560
|
-
"type": "string"
|
|
5561
|
-
},
|
|
5562
|
-
"expandable": {
|
|
5563
|
-
"default": false,
|
|
5564
|
-
"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.",
|
|
5565
|
-
"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.",
|
|
5566
|
-
"type": "boolean"
|
|
5567
|
-
},
|
|
5568
|
-
"height": {
|
|
5569
|
-
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
5570
|
-
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5571
|
-
"type": "number"
|
|
5572
|
-
},
|
|
5573
|
-
"image_size_attributes": {
|
|
5574
|
-
"default": true,
|
|
5575
|
-
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
5576
|
-
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
5577
|
-
"type": "boolean"
|
|
5578
|
-
},
|
|
5579
|
-
"mime_type": {
|
|
5580
|
-
"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.",
|
|
5581
|
-
"enum": [
|
|
5582
|
-
"image/jpeg",
|
|
5583
|
-
"image/png",
|
|
5584
|
-
"image/webp"
|
|
5585
|
-
],
|
|
5586
|
-
"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.",
|
|
5587
|
-
"type": "string"
|
|
5588
|
-
},
|
|
5589
|
-
"paths": {
|
|
5590
|
-
"$ref": "#/definitions/Paths",
|
|
5591
|
-
"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`.",
|
|
5592
|
-
"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`."
|
|
5593
|
-
},
|
|
5594
|
-
"prevent_resize_existing_files": {
|
|
5595
|
-
"default": false,
|
|
5596
|
-
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
5597
|
-
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
5598
|
-
"type": "boolean"
|
|
5599
|
-
},
|
|
5600
|
-
"resize_style": {
|
|
5601
|
-
"default": "contain",
|
|
5602
|
-
"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.",
|
|
5603
|
-
"enum": [
|
|
5604
|
-
"cover",
|
|
5605
|
-
"contain",
|
|
5606
|
-
"stretch",
|
|
5607
|
-
"crop"
|
|
5608
|
-
],
|
|
5609
|
-
"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.",
|
|
5610
|
-
"type": "string"
|
|
5611
|
-
},
|
|
5612
|
-
"sizes": {
|
|
5613
|
-
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
5614
|
-
"items": {
|
|
5615
|
-
"additionalProperties": false,
|
|
5616
|
-
"properties": {
|
|
5617
|
-
"size": {
|
|
5618
|
-
"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).",
|
|
5619
|
-
"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).",
|
|
5620
|
-
"type": "string"
|
|
5621
|
-
},
|
|
5622
|
-
"target": {
|
|
5623
|
-
"description": "A reference to another input that is given the path to this additional image file.",
|
|
5624
|
-
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
5625
|
-
"type": "string"
|
|
5626
|
-
}
|
|
5627
|
-
},
|
|
5628
|
-
"required": [
|
|
5629
|
-
"size"
|
|
5630
|
-
],
|
|
5631
|
-
"type": "object"
|
|
5632
|
-
},
|
|
5633
|
-
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
5634
|
-
"type": "array"
|
|
5635
|
-
},
|
|
5636
|
-
"width": {
|
|
5637
|
-
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
5638
|
-
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
5639
|
-
"type": "number"
|
|
5640
|
-
}
|
|
5641
|
-
},
|
|
5642
|
-
"type": "object"
|
|
5643
|
-
},
|
|
5644
5523
|
"Input": {
|
|
5645
5524
|
"anyOf": [
|
|
5646
5525
|
{
|
|
@@ -5777,21 +5656,6 @@
|
|
|
5777
5656
|
"$ref": "#/definitions/RangeInput"
|
|
5778
5657
|
}
|
|
5779
5658
|
},
|
|
5780
|
-
{
|
|
5781
|
-
"if": {
|
|
5782
|
-
"properties": {
|
|
5783
|
-
"type": {
|
|
5784
|
-
"const": "url",
|
|
5785
|
-
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5786
|
-
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5787
|
-
"type": "string"
|
|
5788
|
-
}
|
|
5789
|
-
}
|
|
5790
|
-
},
|
|
5791
|
-
"then": {
|
|
5792
|
-
"$ref": "#/definitions/UrlInput"
|
|
5793
|
-
}
|
|
5794
|
-
},
|
|
5795
5659
|
{
|
|
5796
5660
|
"if": {
|
|
5797
5661
|
"properties": {
|
|
@@ -5850,7 +5714,8 @@
|
|
|
5850
5714
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5851
5715
|
"enum": [
|
|
5852
5716
|
"file",
|
|
5853
|
-
"document"
|
|
5717
|
+
"document",
|
|
5718
|
+
"image"
|
|
5854
5719
|
],
|
|
5855
5720
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5856
5721
|
"type": "string"
|
|
@@ -5865,7 +5730,7 @@
|
|
|
5865
5730
|
"if": {
|
|
5866
5731
|
"properties": {
|
|
5867
5732
|
"type": {
|
|
5868
|
-
"const": "
|
|
5733
|
+
"const": "url",
|
|
5869
5734
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
5870
5735
|
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
5871
5736
|
"type": "string"
|
|
@@ -5873,7 +5738,7 @@
|
|
|
5873
5738
|
}
|
|
5874
5739
|
},
|
|
5875
5740
|
"then": {
|
|
5876
|
-
"$ref": "#/definitions/
|
|
5741
|
+
"$ref": "#/definitions/UrlInput"
|
|
5877
5742
|
}
|
|
5878
5743
|
},
|
|
5879
5744
|
{
|
|
@@ -6000,7 +5865,6 @@
|
|
|
6000
5865
|
"switch",
|
|
6001
5866
|
"number",
|
|
6002
5867
|
"range",
|
|
6003
|
-
"url",
|
|
6004
5868
|
"html",
|
|
6005
5869
|
"markdown",
|
|
6006
5870
|
"date",
|
|
@@ -6009,6 +5873,7 @@
|
|
|
6009
5873
|
"file",
|
|
6010
5874
|
"document",
|
|
6011
5875
|
"image",
|
|
5876
|
+
"url",
|
|
6012
5877
|
"select",
|
|
6013
5878
|
"multiselect",
|
|
6014
5879
|
"choice",
|
|
@@ -10941,8 +10806,8 @@
|
|
|
10941
10806
|
},
|
|
10942
10807
|
"options": {
|
|
10943
10808
|
"$ref": "#/definitions/UrlInputOptions",
|
|
10944
|
-
"description": "Options that are specific to
|
|
10945
|
-
"markdownDescription": "Options that are specific to
|
|
10809
|
+
"description": "Options that are specific to URL inputs.",
|
|
10810
|
+
"markdownDescription": "Options that are specific to URL inputs."
|
|
10946
10811
|
},
|
|
10947
10812
|
"type": {
|
|
10948
10813
|
"const": "url",
|
|
@@ -10959,6 +10824,47 @@
|
|
|
10959
10824
|
"UrlInputOptions": {
|
|
10960
10825
|
"additionalProperties": false,
|
|
10961
10826
|
"properties": {
|
|
10827
|
+
"accepts_mime_types": {
|
|
10828
|
+
"anyOf": [
|
|
10829
|
+
{
|
|
10830
|
+
"items": {
|
|
10831
|
+
"$ref": "#/definitions/MimeType"
|
|
10832
|
+
},
|
|
10833
|
+
"type": "array"
|
|
10834
|
+
},
|
|
10835
|
+
{
|
|
10836
|
+
"type": "string"
|
|
10837
|
+
}
|
|
10838
|
+
],
|
|
10839
|
+
"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.",
|
|
10840
|
+
"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."
|
|
10841
|
+
},
|
|
10842
|
+
"allowed_sources": {
|
|
10843
|
+
"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.",
|
|
10844
|
+
"items": {
|
|
10845
|
+
"type": "string"
|
|
10846
|
+
},
|
|
10847
|
+
"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.",
|
|
10848
|
+
"type": "array"
|
|
10849
|
+
},
|
|
10850
|
+
"disable_direct_input": {
|
|
10851
|
+
"default": false,
|
|
10852
|
+
"description": "Prevents typing into the text input, while still allowing context menu options to change the value.",
|
|
10853
|
+
"markdownDescription": "Prevents typing into the text input, while still allowing context menu options to change the\nvalue.",
|
|
10854
|
+
"type": "boolean"
|
|
10855
|
+
},
|
|
10856
|
+
"disable_upload_file": {
|
|
10857
|
+
"default": false,
|
|
10858
|
+
"description": "Disables the context menu option and the drop area for uploading files.",
|
|
10859
|
+
"markdownDescription": "Disables the context menu option and the drop area for uploading files.",
|
|
10860
|
+
"type": "boolean"
|
|
10861
|
+
},
|
|
10862
|
+
"disable_upload_file_in_file_browser": {
|
|
10863
|
+
"default": false,
|
|
10864
|
+
"description": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
10865
|
+
"markdownDescription": "Prevents file uploads inside the \"Select existing file/image\" file browser modal window.",
|
|
10866
|
+
"type": "boolean"
|
|
10867
|
+
},
|
|
10962
10868
|
"empty_type": {
|
|
10963
10869
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10964
10870
|
"enum": [
|
|
@@ -10968,6 +10874,17 @@
|
|
|
10968
10874
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10969
10875
|
"type": "string"
|
|
10970
10876
|
},
|
|
10877
|
+
"expandable": {
|
|
10878
|
+
"default": false,
|
|
10879
|
+
"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.",
|
|
10880
|
+
"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.",
|
|
10881
|
+
"type": "boolean"
|
|
10882
|
+
},
|
|
10883
|
+
"height": {
|
|
10884
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
10885
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
10886
|
+
"type": "number"
|
|
10887
|
+
},
|
|
10971
10888
|
"hide_link_to_email_address": {
|
|
10972
10889
|
"default": false,
|
|
10973
10890
|
"description": "Hides the option to link to an email address. This does not prevent typing a `mailto:` link in the input.",
|
|
@@ -10976,8 +10893,8 @@
|
|
|
10976
10893
|
},
|
|
10977
10894
|
"hide_link_to_file": {
|
|
10978
10895
|
"default": false,
|
|
10979
|
-
"description": "Hides the
|
|
10980
|
-
"markdownDescription": "Hides the
|
|
10896
|
+
"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.",
|
|
10897
|
+
"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.",
|
|
10981
10898
|
"type": "boolean"
|
|
10982
10899
|
},
|
|
10983
10900
|
"hide_link_to_page": {
|
|
@@ -10986,10 +10903,73 @@
|
|
|
10986
10903
|
"markdownDescription": "Hides the option to link to a page. This does not prevent typing a file's output URL in the\ninput.",
|
|
10987
10904
|
"type": "boolean"
|
|
10988
10905
|
},
|
|
10906
|
+
"image_size_attributes": {
|
|
10907
|
+
"default": true,
|
|
10908
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
10909
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
10910
|
+
"type": "boolean"
|
|
10911
|
+
},
|
|
10912
|
+
"mime_type": {
|
|
10913
|
+
"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.",
|
|
10914
|
+
"enum": [
|
|
10915
|
+
"image/jpeg",
|
|
10916
|
+
"image/png",
|
|
10917
|
+
"image/webp"
|
|
10918
|
+
],
|
|
10919
|
+
"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.",
|
|
10920
|
+
"type": "string"
|
|
10921
|
+
},
|
|
10989
10922
|
"paths": {
|
|
10990
10923
|
"$ref": "#/definitions/Paths",
|
|
10991
10924
|
"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`.",
|
|
10992
10925
|
"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`."
|
|
10926
|
+
},
|
|
10927
|
+
"prevent_resize_existing_files": {
|
|
10928
|
+
"default": false,
|
|
10929
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
10930
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
10931
|
+
"type": "boolean"
|
|
10932
|
+
},
|
|
10933
|
+
"resize_style": {
|
|
10934
|
+
"default": "contain",
|
|
10935
|
+
"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.",
|
|
10936
|
+
"enum": [
|
|
10937
|
+
"cover",
|
|
10938
|
+
"contain",
|
|
10939
|
+
"stretch",
|
|
10940
|
+
"crop"
|
|
10941
|
+
],
|
|
10942
|
+
"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.",
|
|
10943
|
+
"type": "string"
|
|
10944
|
+
},
|
|
10945
|
+
"sizes": {
|
|
10946
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
10947
|
+
"items": {
|
|
10948
|
+
"additionalProperties": false,
|
|
10949
|
+
"properties": {
|
|
10950
|
+
"size": {
|
|
10951
|
+
"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).",
|
|
10952
|
+
"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).",
|
|
10953
|
+
"type": "string"
|
|
10954
|
+
},
|
|
10955
|
+
"target": {
|
|
10956
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
10957
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file.",
|
|
10958
|
+
"type": "string"
|
|
10959
|
+
}
|
|
10960
|
+
},
|
|
10961
|
+
"required": [
|
|
10962
|
+
"size"
|
|
10963
|
+
],
|
|
10964
|
+
"type": "object"
|
|
10965
|
+
},
|
|
10966
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting\nexisting files.",
|
|
10967
|
+
"type": "array"
|
|
10968
|
+
},
|
|
10969
|
+
"width": {
|
|
10970
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
10971
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with\nresize_style.",
|
|
10972
|
+
"type": "number"
|
|
10993
10973
|
}
|
|
10994
10974
|
},
|
|
10995
10975
|
"type": "object"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcannon/configuration-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Contains TypeScript declarations and generates JSONSchema files for the CloudCannon configuration file.",
|
|
6
6
|
"author": "CloudCannon <support@cloudcannon.com>",
|