{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "rooster/wishlist-badge",
	"version": "1.0.0",
	"title": "Wishlist badge",
	"category": "theme",
	"icon": "heart",
	"description": "Heart icon with the wishlist count kept by the wishlist provider (rooster:wishlist:changed with detail.count, or the rooster_wishlist_count localStorage key). Opens rooster:wishlist:open when a side cart listens, else links to the wishlist page.",
	"keywords": [ "wishlist", "favorites", "badge", "header" ],
	"textdomain": "ai-eshop-optimizer",
	"attributes": {
		"href": { "type": "string", "default": "" },
		"showZero": { "type": "boolean", "default": false },
		"label": { "type": "string", "default": "" }
	},
	"supports": {
		"html": false,
		"color": { "background": true, "text": true },
		"interactivity": true,
		"rooster": { "defer": { "allowed": false } }
	},
	"rooster": {
		"ui": {
			"href": { "control": "url", "label": "Wishlist page (defaults to the rooster/wishlist_url filter, or My Account)" },
			"showZero": { "label": "Show the badge when the wishlist is empty" },
			"label": { "label": "Accessible label (defaults to “Wishlist”)" }
		}
	},
	"render": "file:./render.php",
	"viewScriptModule": "file:./view.min.js"
}
