{
  "apiVersion": 2,
  "name": "bplvf/voice-feedback",
  "title": "Voice Feedback Button",
  "description": "Voice Recorder Block for Collecting Audio Feedback.",
  "category": "widgets",
  "keywords": [
    "voice feedback",
    "voice record",
    "recording",
    "feedback",
    "voice recorder",
    "audio recorder",
    "audio record",
    "audio feedback"
  ],
  "textdomain": "voice-feedback",
  "attributes": {
    "alignment": {
      "type": "string",
      "default": "left"
    },
    "voiceFeedback": {
      "type": "object",
      "default": {
        "isDrawerForGlobal": false,
        "startRecordingText": "Send Voice Feedback",
        "stopRecording": "⏹️ Stop"
      }
    },
    "container": {
      "type": "object",
      "default": {
        "bgColor": "#f0fdf4",
        "border": {
          "color": "#25d366",
          "style": "solid",
          "width": "2px"
        },
        "width": {
          "desktop": "400px",
          "tablet": "400px",
          "mobile": "100%"
        },
        "borderRadius": 15,
        "padding": {
          "side": 4,
          "top": "16px",
          "right": "16px",
          "bottom": "16px",
          "left": "16px"
        }
      }
    },
    "buttons": {
      "type": "object",
      "default": {
        "normal": {
          "bgColor": "#25d366",
          "color": "#ffffff"
        },
        "hover": {
          "bgColor": "#1da851",
          "color": "#ffffff"
        },
        "borderRadius": 30,
        "typo": {
          "fontSize": {
            "desktop": 16,
            "tablet": 16,
            "mobile": 16
          }
        },
        "padding": {
          "side": 4,
          "top": "10px",
          "right": "10px",
          "bottom": "10px",
          "left": "10px"
        }
      }
    },
    "drawer": {
      "type": "object",
      "default": {
        "bgColor": "#ffffff",
        "drawerHeadline": "Voice Feedback",
        "drawerHeadlineTypo": {
          "fontCategory": "serif",
          "fontFamily": "default",
          "fontSize": {
            "desktop": "20px",
            "tablet": 16,
            "mobile": 16
          },
          "fontVariant": 400,
          "fontWeight": 400,
          "letterSpace": "1px",
          "lineHeight": "20px",
          "textDecoration": "none",
          "textTransform": "none",
          "color": "#ffffff"
        },
        "spaceFromBottom": 30,
        "drawerPosition": "right"
      }
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "html": false
  },
  "example": {
    "attributes": {
      "preview": true
    }
  },
  "editorScript": [
    "file:./index.js",
    "wp-api-request",
    "wp-api"
  ],
  "editorStyle": "file:./index.css",
  "style": "file:./view.css",
  "render": "file:./render.php",
  "viewScript": [
    "file:./view.js",
    "wp-util"
  ]
}