 {
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "flexa/subscribe-form-upload",
  "version": "1.0.0",
  "title": "Upload",
  "category": "flexa",
  "description": "A file-upload input for a Subscribe Form — with a label, accepted file types, multiple-file and max-size options, required toggle and column width. Chosen files are attached to the notification email.",
  "keywords": [
    "flexa",
    "form",
    "field",
    "upload",
    "file"
  ],
  "textdomain": "flexa-block",
  "parent": [
    "flexa/subscribe-form"
  ],
  "attributes": {
    "blockId": {
      "type": "string"
    },
    "label": {
      "type": "string",
      "default": "Attachment"
    },
    "fieldName": {
      "type": "string",
      "default": "file"
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "showLabel": {
      "type": "boolean",
      "default": true
    },
    "width": {
      "type": "string",
      "default": "100",
      "enum": [
        "100",
        "50"
      ]
    },
    "accept": {
      "type": "string",
      "default": ""
    },
    "multiple": {
      "type": "boolean",
      "default": false
    },
    "maxSize": {
      "type": "number",
      "default": 5
    }
  },
  "supports": {
    "anchor": true,
    "className": true,
    "html": false,
    "reusable": false
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "render": "file:./render.php"
}