{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "textdomain": "getwid",
  "name": "getwid/social-links",
  "description": "Adds links to social media profiles.",
  "category": "getwid-blocks",
  "title": "Social Links",
  "keywords": [
    "facebook",
    "twitter",
    "share"
  ],
  "supports": {
    "align": [
      "wide",
      "full"
    ]
  },
  "attributes": {
    "backgroundColor": {
      "type": "string"
    },
    "textColor": {
      "type": "string"
    },
    "customBackgroundColor": {
      "type": "string"
    },
    "customTextColor": {
      "type": "string"
    },
    "align": {
      "type": "string"
    },
    "textAlignmentDesktop": {
      "type": "string"
    },
    "textAlignmentTablet": {
      "type": "string"
    },
    "textAlignmentMobile": {
      "type": "string"
    },
    "icons": {
      "type": "array",
      "default": [
        {
          "icon": "fab fa-facebook-f",
          "link": "https://www.facebook.com/",
          "rel": ""
        },
        {
          "icon": "fab fa-twitter",
          "link": "https://twitter.com/",
          "rel": ""
        },
        {
          "icon": "fab fa-instagram",
          "link": "https://www.instagram.com/",
          "rel": ""
        },
        {
          "icon": "fab fa-youtube",
          "link": "https://www.youtube.com/",
          "rel": ""
        }
      ],
      "source": "query",
      "selector": ".wp-block-getwid-social-links__link",
      "query": {
        "icon": {
          "source": "attribute",
          "selector": "i",
          "attribute": "class"
        },
        "title": {
          "type": "string",
          "source": "html",
          "selector": ".wp-block-getwid-social-links__label"
        },
        "link": {
          "source": "attribute",
          "attribute": "href",
          "type": "string",
          "default": "#"
        },
        "linkTarget": {
          "source": "attribute",
          "attribute": "target"
        },
        "rel": {
          "source": "attribute",
          "attribute": "rel"
        }
      }
    },
    "iconsStyle": {
      "type": "string",
      "default": "default"
    },
    "iconsSize": {
      "type": "number"
    },
    "iconsSpacing": {
      "type": "string",
      "default": "default"
    }
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": [
    "file:./style-index.css"
  ]
}