{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "name": "mbs/catalog",
    "version": "1.0.0",
    "title": "Book Catalog",
    "category": "mbs",
    "icon": "book-alt",
    "description": "Display your book catalog with filtering, ordering, and layout control. Renders identically to the [mbs_books] shortcode — compatible with Full-Site Editing and block themes.",
    "keywords": ["books", "catalog", "showroom", "mbs", "library"],
    "textdomain": "my-book-showroom",
    "editorScript": "mbs-blocks",
    "attributes": {
        "limit": {
            "type": "integer",
            "default": 6
        },
        "orderby": {
            "type": "string",
            "default": "date"
        },
        "columns": {
            "type": "integer",
            "default": 3
        },
        "layout": {
            "type": "string",
            "default": "grid"
        },
        "author": {
            "type": "string",
            "default": ""
        },
        "series": {
            "type": "string",
            "default": ""
        },
        "genre": {
            "type": "string",
            "default": ""
        },
        "tag": {
            "type": "string",
            "default": ""
        }
    },
    "supports": {
        "html": false,
        "align": ["wide", "full"],
        "spacing": {
            "margin":  ["top", "bottom"],
            "padding": false
        }
    }
}
