{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "necessary-block/table-block",
  "version": "1.1.1",
  "title": "Table Block",
  "category": "necessary-blocks",
  "icon": "editor-table",
  "description": "The Table block is based on the default Table block in Gutenberg. This improved version of the block has tons of extra table features including advanced styling such as margin, padding, alignment, colors and more.",
  "example": {},
  "supports": {
    "html": false,
    "align": [
      "wide",
      "full",
      "center",
      "left",
      "right"
    ],
    "className": true,
    "customClassName": true,
    "anchor": true,
    "color": {
      "__experimentalSkipSerialization": true,
      "gradients": true,
      "link": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true,
        "header": true
      }
    },
    "spacing": {
      "margin": true,
      "padding": true,
      "__experimentalDefaultControls": {
        "margin": false,
        "padding": false
      }
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalFontStyle": true,
      "__experimentalFontWeight": true,
      "__experimentalLetterSpacing": true,
      "__experimentalTextTransform": true,
      "__experimentalTextDecoration": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    },
    "__experimentalBorder": {
      "__experimentalSkipSerialization": true,
      "radius": true,
      "color": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "radius": true,
        "color": true,
        "style": true,
        "width": true
      }
    },
    "interactivity": {
      "clientNavigation": true
    }
  },
  "attributes": {
    "hasFixedLayout": {
      "type": "boolean",
      "default": true
    },
    "colorOption": {
      "type": "string",
      "default": "cell"
    },
    "caption": {
      "type": "rich-text",
      "source": "rich-text",
      "selector": "figcaption"
    },
    "head": {
      "type": "array",
      "default": [],
      "source": "query",
      "selector": "thead tr",
      "query": {
        "cells": {
          "type": "array",
          "default": [],
          "source": "query",
          "selector": "td,th",
          "query": {
            "content": {
              "type": "rich-text",
              "source": "rich-text"
            },
            "tag": {
              "type": "string",
              "default": "td",
              "source": "tag"
            },
            "scope": {
              "type": "string",
              "source": "attribute",
              "attribute": "scope"
            },
            "align": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-align"
            },
            "colspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "colspan"
            },
            "rowspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "rowspan"
            },
            "color": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-color",
              "default": "#000"
            },
            "background": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-background",
              "default": "#fff"
            }
          }
        }
      }
    },
    "body": {
      "type": "array",
      "default": [],
      "source": "query",
      "selector": "tbody tr",
      "query": {
        "cells": {
          "type": "array",
          "default": [],
          "source": "query",
          "selector": "td,th",
          "query": {
            "content": {
              "type": "rich-text",
              "source": "rich-text"
            },
            "tag": {
              "type": "string",
              "default": "td",
              "source": "tag"
            },
            "scope": {
              "type": "string",
              "source": "attribute",
              "attribute": "scope"
            },
            "align": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-align"
            },
            "colspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "colspan"
            },
            "rowspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "rowspan"
            },
            "color": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-color",
              "default": "#000"
            },
            "background": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-background",
              "default": "#fff"
            }
          }
        }
      }
    },
    "foot": {
      "type": "array",
      "default": [],
      "source": "query",
      "selector": "tfoot tr",
      "query": {
        "cells": {
          "type": "array",
          "default": [],
          "source": "query",
          "selector": "td,th",
          "query": {
            "content": {
              "type": "rich-text",
              "source": "rich-text"
            },
            "tag": {
              "type": "string",
              "default": "td",
              "source": "tag"
            },
            "scope": {
              "type": "string",
              "source": "attribute",
              "attribute": "scope"
            },
            "align": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-align"
            },
            "colspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "colspan"
            },
            "rowspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "rowspan"
            },
            "color": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-color",
              "default": "#000"
            },
            "background": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-background",
              "default": "#fff"
            }
          }
        }
      }
    }
  },
  "selectors": {
    "root": ".wp-block-necessary-block-table-block > table",
    "spacing": ".wp-block-necessary-block-table-block"
  },
  "styles": [
    {
      "name": "regular",
      "label": "Default",
      "isDefault": true
    },
    {
      "name": "stripes",
      "label": "Stripes"
    }
  ],
  "keywords": [
    "Table Block",
    "necessary Blocks",
    "Table"
  ],
  "textdomain": "article-block",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css"
}