{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "section-blocks/social-share",
  "version": "1.0.0",
  "title": "Social Share",
  "category": "section-blocks-elements",
  "icon": "share",
  "description": "Share buttons for the current page (X, Facebook, LinkedIn, WhatsApp, Reddit, email) — plain links, no tracking scripts or counters.",
  "keywords": [
    "share",
    "social",
    "sharing",
    "facebook",
    "linkedin",
    "whatsapp",
    "twitter"
  ],
  "textdomain": "section-blocks",
  "usesContext": [
    "postId",
    "postType"
  ],
  "attributes": {
    "networks": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": [
        "x",
        "facebook",
        "linkedin",
        "email"
      ]
    },
    "showLabel": {
      "type": "boolean",
      "default": true
    },
    "label": {
      "type": "string",
      "default": "Share this:"
    },
    "showNames": {
      "type": "boolean",
      "default": false
    },
    "shape": {
      "type": "string",
      "enum": [
        "circle",
        "rounded",
        "square"
      ],
      "default": "circle"
    },
    "colorScheme": {
      "type": "string",
      "enum": [
        "brand",
        "accent",
        "mono"
      ],
      "default": "brand"
    },
    "size": {
      "type": "string",
      "enum": [
        "small",
        "medium",
        "large"
      ],
      "default": "medium"
    },
    "justify": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right",
        "space-between"
      ],
      "default": "left"
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "color": {
      "background": true,
      "text": true
    },
    "spacing": {
      "padding": true,
      "margin": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true
    }
  },
  "example": {
    "attributes": {
      "networks": [
        "x",
        "facebook",
        "linkedin",
        "whatsapp",
        "email"
      ],
      "showNames": false,
      "size": "large"
    }
  },
  "editorScript": "file:./index.js",
  "style": [
    "file:./style-index.css",
    "section-blocks-shared"
  ],
  "render": "file:./render.php"
}