{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "version": "0.0.1",
  "name": "opinioncamp/poll",
  "title": "Poll",
  "category": "widgets",
  "description": "This is a block for creating opinion polls",
  "keywords": [
    "opinion",
    "poll",
    "vote"
  ],
  "attributes": {
    "id": {
      "type": "string",
      "default": null
    },
    "title": {
      "type": "string",
      "default": ""
    },
    "type": {
      "type": "string",
      "default": ""
    },
    "description": {
      "type": "string",
      "default": ""
    },
    "status": {
      "type": "string",
      "default": ""
    },
    "whenClosed": {
      "type": "string",
      "default": ""
    },
    "resultsOrder": {
      "type": "string",
      "default": ""
    },
    "options": {
      "type": "array",
      "default": []
    },
    "oneAnsPerDevice": {
      "type": "boolean",
      "default": false
    },
    "showPoweredBy": {
      "type": "boolean",
      "default": false
    },
    "style": {
      "type": "object",
      "default": {}
    },
    "wrapperStyle": {
      "type": "object",
      "default": {}
    },
    "submitButton": {
      "type": "object",
      "default": {}
    },
    "closedBanner": {
      "type": "object",
      "default": {}
    },
    "onSubmit": {
      "type": "object",
      "default": {}
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "anchor": true
  },
  "textdomain": "opinioncamp",
  "editorScript": "file:./index.js",
  "viewScript": "file:./frontend.js",
  "editorStyle": [
    "opinioncamp-editor-style",
    "opinioncamp-poll-editor-style"
  ],
  "style": [
    "opinioncamp-frontend-style",
    "opinioncamp-poll-frontend-style"
  ]
}