{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "section-blocks/author-box",
  "version": "1.0.0",
  "title": "Author Box",
  "category": "section-blocks-elements",
  "icon": "admin-users",
  "description": "Show who wrote the post — avatar, name, bio and links — pulled live from the post author, or entered by hand for a guest author.",
  "keywords": [
    "author",
    "bio",
    "profile",
    "byline",
    "avatar",
    "about"
  ],
  "textdomain": "section-blocks",
  "usesContext": [
    "postId",
    "postType"
  ],
  "attributes": {
    "source": {
      "type": "string",
      "enum": [
        "author",
        "custom"
      ],
      "default": "author"
    },
    "avatar": {
      "type": "object",
      "default": {}
    },
    "name": {
      "type": "string",
      "default": ""
    },
    "role": {
      "type": "string",
      "default": ""
    },
    "bio": {
      "type": "string",
      "default": ""
    },
    "website": {
      "type": "string",
      "default": ""
    },
    "layout": {
      "type": "string",
      "enum": [
        "horizontal",
        "vertical"
      ],
      "default": "horizontal"
    },
    "avatarShape": {
      "type": "string",
      "enum": [
        "circle",
        "rounded"
      ],
      "default": "circle"
    },
    "avatarSize": {
      "type": "number",
      "default": 96
    },
    "nameTag": {
      "type": "string",
      "enum": [
        "p",
        "h2",
        "h3",
        "h4"
      ],
      "default": "p"
    },
    "showBio": {
      "type": "boolean",
      "default": true
    },
    "showLinks": {
      "type": "boolean",
      "default": true
    },
    "links": {
      "type": "array",
      "default": []
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "align": [
      "wide"
    ],
    "color": {
      "background": true,
      "text": true,
      "link": true
    },
    "spacing": {
      "padding": true,
      "margin": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true
    },
    "shadow": true
  },
  "example": {
    "attributes": {
      "source": "custom",
      "name": "Jane Cooper",
      "role": "Senior Editor",
      "bio": "Jane writes about design systems, accessibility and the open web. She has been building with WordPress for over a decade.",
      "website": "https://example.com",
      "links": [
        {
          "label": "Mastodon",
          "url": "https://example.com/@jane"
        },
        {
          "label": "GitHub",
          "url": "https://example.com/jane"
        }
      ]
    }
  },
  "editorScript": "file:./index.js",
  "style": [
    "file:./style-index.css",
    "section-blocks-shared"
  ],
  "render": "file:./render.php"
}