{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "leat/coupons-list",
	"version": "1.0.0",
	"title": "Coupons List",
	"category": "leat",
	"icon": "tickets-alt",
	"description": "Display user's available coupons from loyalty program",
	"keywords": [
		"loyalty",
		"coupons",
		"rewards",
		"discounts",
		"vouchers"
	],
	"textdomain": "leat-crm",
	"editorScript": "leat-coupons-list",
	"style": "leat-frontend-init",
	"editorStyle": "leat-coupons-list",
	"attributes": {
		"columns": {
			"type": "number",
			"default": 2
		},
		"cardLabelLevel": {
			"type": "number",
			"default": 4
		},
		"buttonTextSignIn": {
			"type": "string",
			"default": "Sign In"
		},
		"buttonTextVoucherTerms": {
			"type": "string",
			"default": "Voucher terms"
		},
		"buttonTextCopyCode": {
			"type": "string",
			"default": "Copy code"
		},
		"buttonTextAddToCart": {
			"type": "string",
			"default": "Add to cart"
		},
		"discountCodeLabel": {
			"type": "string",
			"default": "Discount code"
		},
		"messageGuest": {
			"type": "string",
			"default": "Please sign in to view your coupons"
		},
		"messageNotEnrolled": {
			"type": "string",
			"default": "Join our program to earn exclusive coupons"
		},
		"emptyStateMessage": {
			"type": "string",
			"default": "You don't have any coupons yet"
		},
		"emptyStateButtonTextGuest": {
			"type": "string",
			"default": "Sign In"
		},
		"emptyStateButtonTextNotEnrolled": {
			"type": "string",
			"default": "Join Program"
		},
		"showEnrollmentPrompt": {
			"type": "boolean",
			"default": true
		},
		"buttonTextColor": {
			"type": "string",
			"description": "Button text color"
		},
		"buttonBackgroundColor": {
			"type": "string",
			"description": "Button background color"
		}
	},
	"supports": {
		"anchor": true,
		"html": false,
		"align": [
			"wide",
			"full"
		],
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"fontFamily": true,
			"fontWeight": true,
			"fontStyle": true,
			"textTransform": true,
			"textDecoration": true,
			"letterSpacing": true
		},
		"spacing": {
			"padding": true,
			"margin": true
		}
	},
	"selectors": {
		"root": ".wp-block-leat-coupons-list"
	}
}
