{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bloqra/advanced-table",
  "version": "1.0.0",
  "title": "Advanced Table",
  "category": "bloqra",
  "icon": "editor-table",
  "description": "A data table that visitors can sort and search, and that stacks into cards on small screens — everything the core Table block leaves out.",
  "keywords": [
    "table",
    "data",
    "sort",
    "search",
    "responsive",
    "filter"
  ],
  "example": {
    "attributes": {
      "sortable": true,
      "head": [
        {
          "cells": [
            {
              "content": "Plugin",
              "tag": "th"
            },
            {
              "content": "Installs",
              "tag": "th"
            },
            {
              "content": "Rating",
              "tag": "th"
            }
          ]
        }
      ],
      "body": [
        {
          "cells": [
            {
              "content": "Bloqra",
              "tag": "td"
            },
            {
              "content": "50,000",
              "tag": "td"
            },
            {
              "content": "4.9",
              "tag": "td"
            }
          ]
        },
        {
          "cells": [
            {
              "content": "Other",
              "tag": "td"
            },
            {
              "content": "12,000",
              "tag": "td"
            },
            {
              "content": "4.1",
              "tag": "td"
            }
          ]
        }
      ]
    }
  },
  "styles": [
    {
      "name": "default",
      "label": "Default",
      "isDefault": true
    },
    {
      "name": "stripes",
      "label": "Stripes"
    },
    {
      "name": "bordered",
      "label": "Bordered"
    },
    {
      "name": "minimal",
      "label": "Minimal"
    }
  ],
  "attributes": {
    "hasFixedLayout": {
      "type": "boolean",
      "default": false
    },
    "sortable": {
      "type": "boolean",
      "default": true
    },
    "searchable": {
      "type": "boolean",
      "default": false
    },
    "responsiveMode": {
      "type": "string",
      "default": "scroll",
      "enum": [
        "scroll",
        "stack"
      ]
    },
    "headerBgColor": {
      "type": "string",
      "default": ""
    },
    "headerTextColor": {
      "type": "string",
      "default": ""
    },
    "tableBorder": {
      "type": "object"
    },
    "tableBorderRadius": {
      "type": [
        "string",
        "object"
      ]
    },
    "caption": {
      "type": "rich-text",
      "source": "rich-text",
      "selector": "figcaption",
      "role": "content"
    },
    "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",
              "role": "content"
            },
            "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"
            }
          }
        }
      }
    },
    "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",
              "role": "content"
            },
            "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"
            }
          }
        }
      }
    },
    "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",
              "role": "content"
            },
            "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"
            }
          }
        }
      }
    }
  },
  "supports": {
    "anchor": true,
    "align": true,
    "color": {
      "__experimentalSkipSerialization": true,
      "gradients": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": 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
      }
    },
    "shadow": true,
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
      }
    }
  },
  "selectors": {
    "root": ".wp-block-bloqra-advanced-table",
    "color": ".wp-block-bloqra-advanced-table > table",
    "spacing": ".wp-block-bloqra-advanced-table"
  },
  "textdomain": "bloqra",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js"
}