{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "bw/library-search",
	"title": "Brentwood Library Search",
	"category": "design",
	"icon": "search",
	"description": "A search box that sends the typed query to an external catalogue (EBSCO Research by default) as a URL parameter — e.g. .../search/results?q=harry+potter. Set the destination URL and parameter name in the sidebar.",
	"keywords": [ "library", "search", "ebsco", "catalogue", "catalog" ],
	"textdomain": "kadence-child",
	"supports": {
		"align": [ "wide", "full" ],
		"html": false,
		"anchor": true
	},
	"attributes": {
		"actionUrl":   { "type": "string",  "default": "https://research.ebsco.com/c/3ruwfc/search/results" },
		"paramName":   { "type": "string",  "default": "q" },
		"placeholder": { "type": "string",  "default": "" },
		"buttonText":  { "type": "string",  "default": "Search" },
		"newTab":      { "type": "boolean", "default": true },
		"accentColor": { "type": "string",  "default": "#cc0000" },
		"fullWidth":   { "type": "boolean", "default": true },
		"showLinks": { "type": "boolean", "default": true },
		"links": {
			"type": "array",
			"default": [
				{ "label": "Advanced Search",  "url": "https://research.ebsco.com/c/3ruwfc/search/advanced/filters?limiters=FT1%3AY" },
				{ "label": "Browse Databases", "url": "/library/databases" }
			]
		}
	},
	"editorScript": "bw-library-search-editor",
	"style": "bw-library-search",
	"render": "file:./render.php"
}
