{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "name": "kordit/product-peek",
    "version": "1.0.0",
    "title": "Karta produktu (peek)",
    "category": "kordit-blocks",
    "icon": "tag",
    "description": "Karta produktu — obraz, kategoria-tag, nazwa, cena, MOQ, marża. Może być floating w hero (float-1/2/3) albo standalone.",
    "keywords": ["product", "peek", "card", "import", "katalog"],
    "textdomain": "kordit",
    "attributes": {
        "productId": { "type": "number", "default": 0 },
        "imageUrl": { "type": "string", "default": "" },
        "imageAlt": { "type": "string", "default": "" },
        "tagText": { "type": "string", "default": "Kategoria" },
        "tagTone": { "type": "string", "default": "green" },
        "productName": { "type": "string", "default": "Nazwa produktu" },
        "fromLabel": { "type": "string", "default": "cena od" },
        "priceAmount": { "type": "string", "default": "0" },
        "priceUnit": { "type": "string", "default": "zł / szt." },
        "minLabel": { "type": "string", "default": "min." },
        "minValue": { "type": "string", "default": "50 szt." },
        "marginLabel": { "type": "string", "default": "marża nawet" },
        "marginValue": { "type": "string", "default": "+62%" },
        "position": { "type": "string", "default": "default" }
    },
    "supports": {
        "html": false,
        "anchor": true,
        "className": true,
        "spacing": {
            "margin": true
        }
    },
    "editorScript": "file:../../build/blocks/product-peek/index.js",
    "editorStyle": "file:../../build/blocks/product-peek/index.css",
    "style": "file:../../build/blocks/product-peek/style-index.css",
    "render": "file:./render.php"
}
