{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "gutengrow/email-subscription",
  "version": "1.0.0",
  "title": "Email Subscription",
  "category": "gutengrow-blocks",
  "icon": "email-alt",
  "description": "Beautiful email subscription form with customizable design and optional name field",
  "example": {},
  "supports": {
    "html": false
  },
  "attributes": {
    "blockId": {
      "type": "string"
    },
    "title": {
      "type": "string",
      "default": "Subscribe Newsletter"
    },
    "description": {
      "type": "string",
      "default": "You will never miss our podcasts, latest news etc. Our newsletter is once a week, every Thursday."
    },
    "emailPlaceholder": {
      "type": "string",
      "default": "user@yoursite.com"
    },
    "namePlaceholder": {
      "type": "string",
      "default": "Your Name"
    },
    "submitButtonText": {
      "type": "string",
      "default": "Subscribe"
    },
    "showNameField": {
      "type": "boolean",
      "default": true
    },
    "thankYouMessage": {
      "type": "string",
      "default": "We promise not to spam you!"
    },
    "successMessage": {
      "type": "string",
      "default": "Thank you for subscribing!"
    },
    "backgroundColor": {
      "type": "string",
      "default": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
    },
    "textColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "buttonColor": {
      "type": "string",
      "default": "#ff4081"
    },
    "borderRadius": {
      "type": "number",
      "default": 20
    },
    "padding": {
      "type": "number",
      "default": 40
    },
    "displayAsModal": {
      "type": "boolean",
      "default": false
    },
    "modalAutoShow": {
      "type": "boolean",
      "default": true
    },
    "modalShowDelay": {
      "type": "number",
      "default": 3000
    }
  },
  "textdomain": "gutengrow-blocks",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js"
}