{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "name": "tainacan/terms-list",
    "title": "Tainacan Terms List",
    "apiVersion": 3,
    "category": "tainacan-blocks",
    "keywords": [ "terms", "taxonomy" ],
    "description": "Expose terms from your Tainacan taxonomies",
    "textdomain": "tainacan",
    "example": {
        "attributes": {
            "content": "preview"
        }
    },
    "attributes": {
        "selectedTermsObject": {
            "type": "array",
            "source": "query",
            "selector": "a",
            "query": {
                "id": {
                    "type": "string",
                    "source": "attribute",
                    "attribute": "id"
                },
                "url": {
                    "type": "string",
                    "source": "attribute",
                    "attribute": "href"
                },
                "name": {
                    "type": "string",
                    "source": "text"
                },
                "header_image": {
                    "source": "query",
                    "selector": "img",
                    "query": {
                        "src": {
                            "source": "attribute",
                            "attribute": "src"
                        },
                        "alt": {
                            "source": "attribute",
                            "attribute": "alt"
                        }
                    }
                }
            },
            "default": []
        },
        "content": {
            "type": "array",
            "source": "children",
            "selector": "div"
        },
        "query": {
            "type": "Object",
            "default": {}
        },
        "selectedTermsHTML": {
            "type": "Array",
            "default": []
        },
        "showImage": {
            "type": "Boolean",
            "default": true
        },
        "showName": {
            "type": "Boolean",
            "default": true
        },
        "layout": {
            "type": "String",
            "default": "grid"
        },
        "isModalOpen": {
            "type": "Boolean",
            "default": false
        },
        "taxonomyId": {
            "type": "String",
            "default": ""
        }
    },
    "supports": {
        "align": ["full", "wide"],
        "html": false,
        "typography": {
            "fontSize": true
        },
        "color": {
            "text": true,
            "background": false,
            "gradients": false,
            "link": true
        }
    },
    "editorScript": "terms-list",
	"editorStyle": ["terms-list", "tainacan-blocks-common-editor-styles" ]
}