{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "flexible-table-block/table",
	"title": "Flexible Table",
	"category": "text",
	"keywords": [ "table", "cell", "data" ],
	"description": "Create a flexible configuration table.",
	"textdomain": "flexible-table-block",
	"attributes": {
		"contentJustification": {
			"type": "string"
		},
		"hasFixedLayout": {
			"type": "boolean",
			"default": true
		},
		"isScrollOnPc": {
			"type": "boolean",
			"default": false
		},
		"isScrollOnMobile": {
			"type": "boolean",
			"default": false
		},
		"isStackedOnMobile": {
			"type": "boolean",
			"default": false
		},
		"sticky": {
			"type": "string"
		},
		"tableStyles": {
			"type": "string",
			"source": "attribute",
			"selector": "table",
			"attribute": "style"
		},
		"captionSide": {
			"type": "string",
			"default": "bottom"
		},
		"caption": {
			"type": "string",
			"source": "html",
			"selector": "figcaption",
			"role": "content"
		},
		"captionStyles": {
			"type": "string",
			"source": "attribute",
			"selector": "figcaption",
			"attribute": "style"
		},
		"head": {
			"type": "array",
			"default": [],
			"source": "query",
			"selector": "thead tr",
			"query": {
				"cells": {
					"type": "array",
					"default": [],
					"source": "query",
					"selector": "td,th",
					"query": {
						"content": {
							"type": "string",
							"source": "html",
							"role": "content"
						},
						"styles": {
							"type": "string",
							"source": "attribute",
							"attribute": "style"
						},
						"tag": {
							"type": "string",
							"default": "td",
							"source": "tag"
						},
						"className": {
							"type": "string",
							"source": "attribute",
							"attribute": "class"
						},
						"id": {
							"type": "string",
							"source": "attribute",
							"attribute": "id"
						},
						"headers": {
							"type": "string",
							"source": "attribute",
							"attribute": "headers"
						},
						"scope": {
							"enum": [ "row", "col", "rowgroup", "colgroup" ],
							"source": "attribute",
							"attribute": "scope"
						},
						"rowSpan": {
							"type": "string",
							"source": "attribute",
							"attribute": "rowspan"
						},
						"colSpan": {
							"type": "string",
							"source": "attribute",
							"attribute": "colspan"
						}
					}
				}
			}
		},
		"body": {
			"type": "array",
			"default": [],
			"source": "query",
			"selector": "tbody tr",
			"query": {
				"cells": {
					"type": "array",
					"default": [],
					"source": "query",
					"selector": "td,th",
					"query": {
						"content": {
							"type": "string",
							"source": "html",
							"role": "content"
						},
						"styles": {
							"type": "string",
							"source": "attribute",
							"attribute": "style"
						},
						"tag": {
							"type": "string",
							"default": "td",
							"source": "tag"
						},
						"className": {
							"type": "string",
							"source": "attribute",
							"attribute": "class"
						},
						"id": {
							"type": "string",
							"source": "attribute",
							"attribute": "id"
						},
						"headers": {
							"type": "string",
							"source": "attribute",
							"attribute": "headers"
						},
						"scope": {
							"enum": [ "row", "col", "rowgroup", "colgroup" ],
							"source": "attribute",
							"attribute": "scope"
						},
						"rowSpan": {
							"type": "string",
							"source": "attribute",
							"attribute": "rowspan"
						},
						"colSpan": {
							"type": "string",
							"source": "attribute",
							"attribute": "colspan"
						}
					}
				}
			}
		},
		"foot": {
			"type": "array",
			"default": [],
			"source": "query",
			"selector": "tfoot tr",
			"query": {
				"cells": {
					"type": "array",
					"default": [],
					"source": "query",
					"selector": "td,th",
					"query": {
						"content": {
							"type": "string",
							"source": "html",
							"role": "content"
						},
						"styles": {
							"type": "string",
							"source": "attribute",
							"attribute": "style"
						},
						"tag": {
							"type": "string",
							"default": "td",
							"source": "tag"
						},
						"className": {
							"type": "string",
							"source": "attribute",
							"attribute": "class"
						},
						"id": {
							"type": "string",
							"source": "attribute",
							"attribute": "id"
						},
						"headers": {
							"type": "string",
							"source": "attribute",
							"attribute": "headers"
						},
						"scope": {
							"enum": [ "row", "col", "rowgroup", "colgroup" ],
							"source": "attribute",
							"attribute": "scope"
						},
						"rowSpan": {
							"type": "string",
							"source": "attribute",
							"attribute": "rowspan"
						},
						"colSpan": {
							"type": "string",
							"source": "attribute",
							"attribute": "colspan"
						}
					}
				}
			}
		}
	},
	"supports": {
		"anchor": true,
		"align": [ "left", "right", "wide", "full" ],
		"color": {
			"__experimentalSkipSerialization": [ "text", "background", "gradients" ],
			"gradients": true,
			"link": true
		},
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"__experimentalFontFamily": true,
			"__experimentalTextTransform": true,
			"__experimentalFontStyle": true,
			"__experimentalFontWeight": true,
			"__experimentalLetterSpacing": true,
			"__experimentalDefaultControls": {
				"fontSize": true
			}
		},
		"spacing": {
			"margin": true,
			"__experimentalDefaultControls": {
				"margin": false
			}
		},
		"__experimentalSelector": ".wp-block-flexible-table-block-table > table"
	},
	"editorScript": "flexible-table-block-editor",
	"editorStyle": "flexible-table-block-editor",
	"style": "flexible-table-block"
}
