{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "leat/loyalty-paragraph",
	"title": "Loyalty Paragraph",
	"category": "leat",
	"icon": "editor-paragraph",
	"description": "Dynamic paragraph that changes based on user enrollment status",
	"keywords": ["loyalty", "paragraph", "text", "dynamic", "personalized"],
	"textdomain": "leat-crm",
	"editorScript": "leat-loyalty-paragraph",
	"editorStyle": "leat-loyalty-paragraph",
	"style": "leat-frontend-init",
	"attributes": {
		"guestText": {
			"type": "string",
			"default": "Sign up to start earning rewards on every purchase."
		},
		"loggedInNotEnrolledText": {
			"type": "string",
			"default": "Join our rewards program today and start earning points."
		},
		"enrolledText": {
			"type": "string",
			"default": "You currently have {{credits}} {{credits_currency}} available to use on your next purchase."
		},
		"align": {
			"type": "string"
		},
		"dropCap": {
			"type": "boolean",
			"default": false
		},
		"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
		}
	}
}
