{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "aieo/toc",
	"version": "1.0.0",
	"title": "Rooster One Table of Contents",
	"category": "widgets",
	"icon": "list-view",
	"description": "A table of contents built from the headings of the post being displayed. Works in the post content, in a sidebar or in a block-theme template part; headings without an id get one, headings with an id keep it. Also available as the [aieo_toc] shortcode and as an Elementor widget.",
	"keywords": ["aieo", "toc", "table of contents", "headings", "index", "περιεχόμενα"],
	"textdomain": "ai-eshop-optimizer",
	"usesContext": ["postId"],
	"supports": {
		"html": false,
		"align": ["wide", "full"],
		"spacing": { "margin": true, "padding": true },
		"color": { "background": true, "text": true, "link": true },
		"typography": { "fontSize": true }
	},
	"attributes": {
		"title":        { "type": "string",  "default": "" },
		"levels":       { "type": "string",  "default": "h2-h3", "enum": ["h2", "h2-h3"] },
		"numbered":     { "type": "boolean", "default": false },
		"sticky":       { "type": "boolean", "default": false },
		"collapsible":  { "type": "boolean", "default": false },
		"minHeadings":  { "type": "number",  "default": 2 },
		"postId":       { "type": "number",  "default": 0 }
	},
	"render": "file:./render.php",
	"editorScript": "file:./edit.js",
	"viewStyle": "file:./style.css",
	"viewScript": "file:./view.js"
}
