{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "name": "tainacan/item-submission-form",
    "title": "Tainacan Item Submission Form",
    "apiVersion": 3,
    "category": "tainacan-blocks",
    "keywords": [ "item", "submission", "form" ],
    "description": "A public item submission form, to allow visitors to create items drafts.",
    "textdomain": "tainacan",
    "example": {
        "attributes": {
            "collectionId": "preview"
        }
    },
    "attributes": {
        "collectionId": {
            "type": "string",
            "default": ""
        },
        "isCollectionModalOpen": {
            "type": "boolean",
            "default": false
        },
        "hideFileModalButton": {
            "type": "boolean",
            "default": false
        },
        "hideTextModalButton": {
            "type": "boolean",
            "default": false
        },
        "hideLinkModalButton": {
            "type": "boolean",
            "default": false
        },
        "hideThumbnailSection": {
            "type": "boolean",
            "default": false
        },
        "hideAttachmentsSection": {
            "type": "boolean",
            "default": false
        },
        "hideHelpButtons": {
            "type": "boolean",
            "default": false
        },
        "hideMetadataTypes": {
            "type": "boolean",
            "default": false
        },
        "showAllowCommentsSection": {
            "type": "boolean",
            "default": false
        },
        "hideCollapses": {
            "type": "boolean",
            "default": false
        },
        "backgroundColor": {
            "type": "string",
            "default": "rgba(255,255,255,0)"
        },
        "baseFontSize": {
            "type": "number",
            "default": 16
        },
        "inputColor": {
            "type": "string",
            "default": "#1d1d1d"
        },
        "inputBackgroundColor": {
            "type": "string",
            "default": "#ffffff"
        },
        "inputBorderColor": {
            "type": "string",
            "default": "#dbdbdb"
        },
        "labelColor": {
            "type": "string",
            "default": "#373839"
        },
        "infoColor": {
            "type": "string",
            "default": "#505253"
        },
        "primaryColor": {
            "type": "string",
            "default": "#d9eced"
        },
        "secondaryColor": {
            "type": "string",
            "default": "#187181"
        },
        "enabledMetadata": {
            "type": "object",
            "default": {}
        },
        "collectionMetadata": {
            "type": "array",
            "default": []
        },
        "isLoadingCollectionMetadata": {
            "type": "boolean",
            "default": false
        },
        "sentFormHeading": {
            "type": "string",
            "default": "Form submitted!"
        },
        "sentFormMessage": {
            "type": "string",
            "default": "Thank you. Your item was submitted to the collection."
        },
        "documentSectionLabel": {
            "type": "string",
            "default": "Document"
        },
        "attachmentsSectionLabel": {
            "type": "string",
            "default": "Attachments"
        },
        "thumbnailSectionLabel": {
            "type": "string",
            "default": "Thumbnail"
        },
        "metadataSectionLabel": {
            "type": "string",
            "default": "Metadata"
        },
        "showItemLinkButton": {
            "type": "boolean",
            "default": false
        },
        "itemLinkButtonLabel": {
            "type": "string",
            "default": "Go to the item page"
        },
        "helpInfoBellowLabel": {
            "type": "boolean",
            "default": false
        },
        "showTermsAgreementCheckbox": {
            "type": "boolean",
            "default": false
        },
        "termsAgreementMessage": {
            "type": "string",
            "default": "I agree to submit this item information."
        },
        "isLayoutSteps": {
            "type": "boolean",
            "default": false
        }
    },
    "supports": {
        "align": ["full", "wide"],
        "html": true,
        "multiple": false
    },
    "editorScript": "item-submission-form",
	"editorStyle": ["item-submission-form", "tainacan-blocks-common-editor-styles" ]
}