{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "hundredprints/document",
  "version": "1.0.0",
  "title": "100Prints Document Button",
  "category": "design",
  "icon": "download",
  "description": "A button that generates and downloads a document using 100Prints.",
  "supports": {
    "html": false,
    "align": true,
    "customClassName": true,
    "color": {
      "background": true,
      "text": true,
      "link": true,
      "gradients": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "fontFamily": true,
      "fontWeight": true,
      "fontStyle": true
    },
    "spacing": {
      "margin": true,
      "padding": true,
      "blockGap": true
    },
    "border": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true
    },
    "shadow": true
  },
  "attributes": {
    "appearancePreset": {
      "type": "string",
      "default": "inherit"
    },
    "templateId": {
      "type": "string"
    },
    "templateSource": {
      "type": "string",
      "default": "bundled"
    },
    "variableMap": {
      "type": "array",
      "default": []
    },
    "buttonLabel": {
      "type": "string",
      "default": "Download Document"
    },
    "buttonColor": {
      "type": "string",
      "default": ""
    },
    "buttonIcon": {
      "type": "string",
      "default": "download"
    },
    "showPreview": {
      "type": "boolean",
      "default": false
    },
    "showPreviewButton": {
      "type": "boolean",
      "default": false
    },
    "requireLogin": {
      "type": "boolean",
      "default": false
    },
    "outputFormat": {
      "type": "string",
      "default": "pdf"
    },
    "renderQuality": {
      "type": "string",
      "default": "high"
    },
    "renderSide": {
      "type": "string",
      "default": "both"
    },
    "outputFilename": {
      "type": "string",
      "default": ""
    },
    "buttonVariant": {
      "type": "string",
      "default": "primary"
    },
    "buttonWidth": {
      "type": "string",
      "default": "auto"
    },
    "allowedRoles": {
      "type": "array",
      "default": []
    }
  },
  "textdomain": "100prints",
  "editorScript": "file:./index.js",
  "script": "file:./view.js",
  "style": "file:./style-index.css",
  "render": "file:./render.php"
}