{
  "apiVersion": 2,
  "name": "roxxistudios/weatherbot",
  "title": "WeatherBot",
  "category": "widgets",
  "description": "Insert a WeatherBot widget using your plugin defaults or a city.",
  "icon": "cloud",
  "supports": {
    "html": false,
    "align": ["left", "center", "right", "wide", "full"],
    "spacing": { "margin": true, "padding": false }
  },

  "style": "weatherbot-frontend",
  "editorStyle": "weatherbot-editor",

  "attributes": {
    "city": {
      "type": "string",
      "default": ""
    },
    "cityConfirmed": {
      "type": "string",
      "default": ""
    },
    "unit": {
      "type": "string",
      "default": ""
    },
    "type": {
      "type": "string",
      "default": ""
    },
    "fontColor": {
      "type": "string",
      "enum": ["", "light", "dark"],
      "default": ""
    },
    "position": {
      "type": "string",
      "enum": ["left", "center", "right"],
      "default": "left"
    },
    "preText": {
      "type": "string",
      "default": ""
    },
    "headingTag": {
      "type": "string",
      "default": "h3"
    }
  },

  "example": {
    "attributes": {
      "cityConfirmed": "Lake Arrowhead, CA",
      "preText": "Current Weather",
      "position": "left",
      "fontColor": "light",
      "type": "badge",
      "unit": "IMPERIAL",
      "headingTag": "h3"
    }
  },

  "editorScript": "weatherbot-block-editor"
}