{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "filterwell/sort",
	"version": "1.0.0",
	"title": "Query Loop Sort",
	"category": "filterwell",
	"icon": "sort",
	"description": "Dropdown to sort the connected Query Loop: newest, oldest, by title or most commented. Applies instantly.",
	"keywords": [
		"order",
		"sort",
		"recent",
		"popular"
	],
	"ancestor": [
		"filterwell/filters"
	],
	"textdomain": "filterwell",
	"attributes": {
		"label": {
			"type": "string",
			"default": ""
		},
		"showLabel": {
			"type": "boolean",
			"default": false
		},
		"options": {
			"type": "array",
			"items": {
				"type": "string"
			},
			"default": [
				"date-desc",
				"date-asc",
				"title-asc",
				"comment_count-desc"
			]
		},
		"optionLabels": {
			"type": "object",
			"default": {}
		},
		"defaultLabel": {
			"type": "string",
			"default": ""
		}
	},
	"usesContext": [
		"filterwell/queryId",
		"filterwell/inherit"
	],
	"supports": {
		"html": false,
		"interactivity": true,
		"spacing": {
			"margin": true
		},
		"color": {
			"text": true,
			"background": true,
			"__experimentalDefaultControls": {
				"text": true
			}
		},
		"typography": {
			"fontSize": true,
			"__experimentalFontFamily": true,
			"__experimentalFontWeight": true,
			"__experimentalDefaultControls": {
				"fontSize": true
			}
		},
		"__experimentalBorder": {
			"color": true,
			"radius": true,
			"width": true,
			"__experimentalSkipSerialization": true,
			"__experimentalDefaultControls": {
				"color": true,
				"radius": true
			}
		}
	},
	"editorScript": "file:./index.js",
	"style": "file:./style-index.css",
	"render": "file:./render.php",
	"selectors": {
		"root": ".wp-block-filterwell-sort",
		"border": ".wp-block-filterwell-sort .qlf-sort__select"
	}
}
