 {
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "flexa/subscribe-form",
  "version": "1.0.0",
  "title": "Subscribe Form",
  "category": "flexa",
  "description": "Newsletter subscribe form built from field child blocks — collects the entry over AJAX and emails it to you, with a submit button, success / error messages, honeypot spam guard and styling for the fields, inputs, button and messages.",
  "keywords": [
    "flexa",
    "form",
    "subscribe",
    "newsletter",
    "signup",
    "contact"
  ],
  "textdomain": "flexa-block",
  "attributes": {
    "blockId": {
      "type": "string"
    },
    "submitText": {
      "type": "string",
      "default": "Subscribe"
    },
    "toEmail": {
      "type": "string",
      "default": ""
    },
    "emailSubject": {
      "type": "string",
      "default": "New subscription"
    },
    "successMessage": {
      "type": "string",
      "default": "Thanks! Your subscription has been received."
    },
    "errorMessage": {
      "type": "string",
      "default": "Something went wrong. Please try again."
    },
    "confirmationType": {
      "type": "string",
      "default": "message",
      "enum": [
        "message",
        "url"
      ]
    },
    "redirectUrl": {
      "type": "string",
      "default": ""
    },
    "buttonWidth": {
      "type": "string",
      "default": "auto",
      "enum": [
        "auto",
        "full"
      ]
    },
    "buttonAlign": {
      "type": "string",
      "default": "flex-start",
      "enum": [
        "flex-start",
        "center",
        "flex-end"
      ]
    },
    "fieldGap": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "16",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "labelColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "inputTextColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "inputPlaceholderColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "inputBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "inputBorder": {
      "type": "object",
      "default": {
        "style": "solid",
        "width": {
          "top": "1",
          "right": "1",
          "bottom": "1",
          "left": "1",
          "unit": "px"
        },
        "color": {
          "light": "",
          "dark": ""
        },
        "radius": {
          "topLeft": "6",
          "topRight": "6",
          "bottomRight": "6",
          "bottomLeft": "6",
          "unit": "px"
        }
      }
    },
    "inputPadding": {
      "type": "object",
      "default": {
        "top": "10",
        "right": "12",
        "bottom": "10",
        "left": "12",
        "unit": "px"
      }
    },
    "submitTextColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "submitTextColorHover": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "submitBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "submitBackgroundHover": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "submitPadding": {
      "type": "object",
      "default": {
        "top": "12",
        "right": "24",
        "bottom": "12",
        "left": "24",
        "unit": "px"
      }
    },
    "submitRadius": {
      "type": "object",
      "default": {
        "value": "6",
        "unit": "px"
      }
    },
    "successColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "successBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "errorColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "errorBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "spacing": {
      "type": "object",
      "default": {
        "desktop": {
          "padding": {
            "top": "",
            "right": "",
            "bottom": "",
            "left": "",
            "unit": "px"
          },
          "margin": {
            "top": "",
            "right": "",
            "bottom": "",
            "left": "",
            "unit": "px"
          }
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "background": {
      "type": "object",
      "default": {
        "type": "none",
        "color": {
          "light": "",
          "dark": ""
        },
        "gradient": {
          "light": "",
          "dark": ""
        },
        "image": {
          "url": "",
          "id": null,
          "position": "center center",
          "repeat": "no-repeat",
          "size": "cover",
          "attachment": "scroll"
        },
        "lazyLoad": false
      }
    },
    "border": {
      "type": "object",
      "default": {
        "desktop": {
          "style": "",
          "width": {
            "top": "",
            "right": "",
            "bottom": "",
            "left": "",
            "unit": "px"
          },
          "color": {
            "light": "",
            "dark": ""
          },
          "radius": {
            "topLeft": "",
            "topRight": "",
            "bottomRight": "",
            "bottomLeft": "",
            "unit": "px"
          }
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "boxShadow": {
      "type": "object",
      "default": {
        "horizontal": "0",
        "vertical": "4",
        "blur": "12",
        "spread": "0",
        "color": {
          "light": "rgba(0,0,0,0.1)",
          "dark": ""
        },
        "inset": false,
        "enabled": false
      }
    },
    "advancedLayout": {
      "type": "object",
      "default": {
        "desktop": {
          "zIndex": "",
          "overflow": "",
          "position": ""
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "responsiveVisibility": {
      "type": "object",
      "default": {
        "hideOnDesktop": false,
        "hideOnTablet": false,
        "hideOnMobile": false
      }
    },
    "animation": {
      "type": "object",
      "default": {
        "type": "none",
        "duration": "normal",
        "delay": ""
      }
    },
    "htmlAttributes": {
      "type": "object",
      "default": {
        "customAttributes": []
      }
    }
  },
  "supports": {
    "anchor": true,
    "className": true,
    "html": false,
    "align": false
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}