{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "name": "givewp/campaign-stats-block",
    "version": "1.0.0",
    "title": "Campaign Statistics",
    "category": "give",
    "description": "Displays the campaign’s statistics.",
    "attributes": {
        "campaignId": {
            "type": "integer"
        },
        "statistic": {
            "type": "string",
            "enum": [
                "top-donation",
                "average-donation"
            ],
            "default": "top-donation"
        }
    },
    "supports": {
        "align": [
            "wide",
            "full"
        ],
        "anchor": true,
        "className": true,
        "splitting": true,
        "__experimentalBorder": {
            "color": true,
            "radius": true,
            "style": true,
            "width": true
        },
        "color": {
            "gradients": true,
            "link": true,
            "__experimentalDefaultControls": {
                "background": true,
                "text": true
            }
        },
        "spacing": {
            "margin": true,
            "padding": true,
            "__experimentalDefaultControls": {
                "margin": false,
                "padding": false
            }
        },
        "typography": {
            "fontSize": true,
            "lineHeight": true,
            "__experimentalFontFamily": true,
            "__experimentalFontStyle": true,
            "__experimentalFontWeight": true,
            "__experimentalLetterSpacing": true,
            "__experimentalTextTransform": true,
            "__experimentalTextDecoration": true,
            "__experimentalWritingMode": true,
            "__experimentalDefaultControls": {
                "fontSize": true
            }
        }
    },
    "example": {},
    "textdomain": "give",
    "render": "file:./render.php",
    "viewScript": "file:../../../../build/campaignStatsBlockApp.js",
    "style": "file:../../../../build/campaignStatsBlockApp.css"
}
