{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "rooster/newsletter-banner",
	"version": "1.0.0",
	"title": "Newsletter banner",
	"category": "theme",
	"icon": "email-alt",
	"description": "Full-width banner in the Rooster One layout: art-directed background, logo, heading and intro, the form of your choice as inner blocks, and single sign-on buttons through rooster/newsletter/after_form. With Rooster One active, prefer its Newsletter signup block; this one serves sites without it.",
	"keywords": [ "newsletter", "subscribe", "signup", "banner" ],
	"textdomain": "ai-eshop-optimizer",
	"attributes": {
		"desktopBgId": { "type": "integer", "default": 0 },
		"mobileBgId": { "type": "integer", "default": 0 },
		"logoId": { "type": "integer", "default": 0 },
		"heading": { "type": "string", "default": "" },
		"description": { "type": "string", "default": "" },
		"glassDesktop": { "type": "boolean", "default": false },
		"glassMobile": { "type": "boolean", "default": true },
		"privacyText": { "type": "string", "default": "" }
	},
	"supports": {
		"html": false,
		"align": [ "wide", "full" ],
		"color": { "background": true, "text": true },
		"spacing": { "padding": true, "margin": true },
		"rooster": { "defer": { "allowed": true, "height": "360px", "default": "near" } }
	},
	"rooster": {
		"innerBlocks": true,
		"template": [ [ "core/shortcode", {} ] ],
		"ui": {
			"desktopBgId": { "control": "media", "label": "Background image" },
			"mobileBgId": { "control": "media", "label": "Mobile background (optional)" },
			"logoId": { "control": "media", "label": "Logo (optional)" },
			"description": { "control": "textarea", "label": "Intro" },
			"glassDesktop": { "label": "Frosted-glass card on desktop" },
			"glassMobile": { "label": "Frosted-glass card on mobile" },
			"privacyText": { "control": "textarea", "label": "Privacy line under the form (optional)" }
		}
	},
	"render": "file:./render.php"
}
