{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "storeengine/product-add-to-cart",
	"title": "Add to Cart",
	"description": "Price picker, quantity, and the add-to-cart form.",
	"category": "storeengine-product",
	"icon": "cart",
	"textdomain": "storeengine",
	"supports": {
		"html": false,
		"spacing": { "margin": true, "padding": true }
	},
	"usesContext": [ "postId", "postType", "queryId" ],
	"attributes": {
		"productId": { "type": "number" },
		"showQuantity": { "type": "boolean", "default": true },
		"mode": { "type": "string", "enum": [ "form", "button" ], "default": "form" },
		"label": { "type": "string", "default": "" },
		"directCheckout": { "type": "boolean", "default": true },
		"priceDisplay": { "type": "string", "enum": [ "radio", "dropdown" ], "default": "radio" },
		"buttonDisplay": { "type": "boolean", "default": true },
		"icon": { "type": "string", "enum": [ "", "cart", "cart-outline", "cart-fill", "bag", "arrow-right", "lock" ], "default": "" },
		"iconPosition": { "type": "string", "enum": [ "left", "right" ], "default": "left" }
	},
	"editorScript": "storeengine-native-blocks",
	"style": "file:./style.css",
	"render": "file:./render.php",
	"styles": [
		{ "name": "fill", "label": "Fill", "isDefault": true },
		{ "name": "outline", "label": "Outline" },
		{ "name": "soft", "label": "Soft" }
	]
}
