{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "leat/loyalty-heading",
	"version": "1.0.0",
	"title": "Loyalty Heading",
	"category": "leat",
	"icon": "heading",
	"description": "Dynamic heading that changes based on user enrollment status",
	"keywords": ["loyalty", "heading", "title", "dynamic", "personalized"],
	"textdomain": "leat-crm",
	"editorScript": "leat-loyalty-heading",
	"style": "leat-frontend-init",
	"editorStyle": "leat-loyalty-heading",
	"attributes": {
		"guestText": {
			"type": "string",
			"default": "Join our rewards program"
		},
		"loggedInNotEnrolledText": {
			"type": "string",
			"default": "Ready to start earning rewards?"
		},
		"enrolledText": {
			"type": "string",
			"default": "Welcome back! You have {{credits}} {{credits_currency}}"
		},
		"level": {
			"type": "number",
			"default": 2
		},
		"textAlign": {
			"type": "string"
		},
		"enableAnimation": {
			"type": "boolean",
			"default": true
		}
	},
	"supports": {
		"anchor": true,
		"align": ["wide", "full"],
		"html": false,
		"color": {
			"gradients": true,
			"text": true,
			"background": true,
			"link": true,
			"__experimentalDefaultControls": {
				"text": true,
				"background": true
			}
		},
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"fontFamily": true,
			"fontWeight": true,
			"fontStyle": true,
			"textTransform": true,
			"textDecoration": true,
			"letterSpacing": true
		},
		"spacing": {
			"padding": true,
			"margin": true
		}
	}
}
