{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "nnforms/form",
  "version": "0.1.0",
  "title": "Form",
  "category": "nnforms",
  "icon": "feedback",
  "description": "99Forms wrapper block",
  "example": {},
  "supports": {
    "html": false,
    "multiple": false
  },
  "attributes": {
    "id": {
      "type": "string"
    },
    "formName": {
      "type": "string",
      "default": "Contact Form"
    },
    "showLabel": {
      "type": "boolean",
      "default": true
    },
    "labelPosition": {
      "type": "string",
      "default": "above"
    },
    "fieldWidth": {
      "type": "string",
      "default": "500px"
    },
    "fieldMargin": {
      "type": "object",
      "default": {
        "top": "20px",
        "left": "0px",
        "right": "0px",
        "bottom": "0px"
      }
    },
    "labelWidth": {
      "type": "string",
      "default": "150px"
    },
    "redirectionUrl": {
      "type": "string",
      "default": ""
    },
    "hideFormAfterSubmit": {
      "type": "boolean",
      "default": true
    },
    "honeypot": {
      "type": "boolean",
      "default": true
    },
    "messages": {
      "type": "object",
      "default": {
        "success": "The form has been submitted successfully!",
        "error": "The form submission has failed. Please check the errors."
      }
    },
    "emails": {
      "type": "array",
      "default": []
    },
    "margin": {
      "type": "object",
      "default": {
        "top": "20px",
        "left": "0px",
        "right": "0px",
        "bottom": "0px"
      }
    },
    "padding": {
      "type": "object",
      "default": {
        "top": "20px",
        "left": "20px",
        "right": "20px",
        "bottom": "20px"
      }
    }
  },
  "textdomain": "nnforms",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}