{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "rooster/table",
	"version": "2.0.1",
	"title": "Table",
	"category": "theme",
	"icon": "editor-table",
	"description": "A table: plans compared with yes, no, soon and partial marks, in toned groups; a data table in a rounded, scrollable frame, rows in their tones; or a matrix of areas joined by hairlines, each in its colour.",
	"keywords": [
		"table",
		"compare",
		"matrix"
	],
	"textdomain": "ai-eshop-optimizer",
	"attributes": {
		"variant": {
			"type": "string",
			"enum": [
				"compare",
				"data",
				"matrix"
			],
			"default": "compare"
		},
		"tone": {
			"type": "string",
			"default": ""
		},
		"columns": {
			"type": "string",
			"default": "Feature | Free | Pro"
		},
		"rows": {
			"type": "string",
			"default": ""
		},
		"marks": {
			"type": "string",
			"default": ""
		},
		"highlight": {
			"type": "string",
			"default": ""
		},
		"caption": {
			"type": "string",
			"default": ""
		},
		"note": {
			"type": "string",
			"default": ""
		},
		"phone": {
			"type": "string",
			"enum": [
				"stack",
				"scroll"
			],
			"default": "stack"
		},
		"label": {
			"type": "string",
			"default": ""
		},
		"items": {
			"type": "string",
			"default": ""
		},
		"level": {
			"type": "integer",
			"default": 3
		}
	},
	"supports": {
		"html": false,
		"anchor": true,
		"align": [
			"wide"
		],
		"spacing": {
			"margin": [
				"top",
				"bottom"
			]
		},
		"rooster": {
			"defer": {
				"allowed": true,
				"height": "480px",
				"default": "near"
			}
		}
	},
	"rooster": {
		"variants": [
			"compare",
			"data",
			"matrix"
		],
		"ui": {
			"variant": {
				"label": "Variant (the look)"
			},
			"tone": {
				"label": "Tone: A family's accent (zero, one, lms, panel, code, docs, kb, credits, lrs) or neutral, success, warning, danger; empty: the page's"
			},
			"columns": {
				"label": "compare: Columns, separated by | (the first is the feature column); data: Columns: Heading | Heading | …"
			},
			"rows": {
				"control": "textarea",
				"label": "compare: Rows, one per line, cells separated by | (a cell is yes, no, soon, partial, one of those with a note in brackets, or text with **bold**, `code` and // for a line break; a line # Name | icon | tone is a group heading row, its icon and tone optional; a row with only its first cell is a group heading too); data: One row per line: Name | value | … (yes, no, a dash or words), a last cell more than the columns a tone (a family's slug or neutral, success, warning, danger)"
			},
			"marks": {
				"label": "compare: The marks' words: Yes words | No words | Soon words | Partial words (empty: Yes, No, Soon, Partial; the soon words are the pill's)"
			},
			"highlight": {
				"label": "compare: Columns to emphasise, their numbers from the left, the feature column being 0 (2, or 2, 3, 4; empty for none)"
			},
			"caption": {
				"label": "compare: Caption"
			},
			"note": {
				"control": "textarea",
				"label": "compare: Note under the table"
			},
			"phone": {
				"label": "compare: On phones (stack: one section per plan; scroll: the table in a scroll region)"
			},
			"label": {
				"label": "compare, data: The scroll region's name (compare: the caption by default; data: the section's heading)"
			},
			"items": {
				"control": "textarea",
				"label": "matrix: Areas, one per line: Tag | green, red, amber or blue | Name | Line | #rule | #name | #name in the dark | wide"
			},
			"level": {
				"label": "matrix: Heading level of the names"
			}
		}
	},
	"render": "file:./render.php"
}
