{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "leat/product-points",
	"title": "Product Points Display",
	"category": "leat",
	"icon": "star-filled",
	"description": "Display points customers can earn on product pages",
	"keywords": ["loyalty", "points", "product", "earn", "credits"],
	"textdomain": "leat-crm",
	"attributes": {
		"memberText": {
			"type": "string",
			"default": "Earn {{ points }} {{ credits_currency }} with this purchase"
		},
		"invitationText": {
			"type": "string",
			"default": "{{ join_link }}Join our program{{ /join_link }} to earn {{ points }} {{ credits_currency }} with this purchase"
		},
		"showZeroPoints": { "type": "boolean", "default": false },
		"textColor": { "type": "string" },
		"backgroundColor": { "type": "string" },
		"style": { "type": "object" }
	},
	"supports": {
		"anchor": true,
		"align": ["wide", "full"],
		"html": false,
		"color": { "text": true, "background": true, "link": true },
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"fontFamily": true,
			"fontWeight": true,
			"fontStyle": true
		},
		"spacing": { "padding": true, "margin": true }
	},
	"editorScript": "leat-product-points",
	"editorStyle": "leat-product-points",
	"style": "leat-frontend-init"
}
