{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "zior/add-to-cart",
	"title": "Add to Cart",
	"category": "design",
	"description": "Display WooCommerce add to cart button.",
	"textdomain": "default",
	"attributes": {
		"product": {
			"type": "object",
			"default": {
				"id": "",
				"label": ""
			},
			"properties": {
				"id": {
					"type": "string"
				},
				"label": {
					"type": "string"
				}
			}
		},
		"showQuantity": {
			"type": "boolean",
			"default": false
		},
		"showProductSelector": {
			"type": "boolean",
			"default": true
		}
	},
	"usesContext": [
		"product"
	],
	"supports": {
		"align": true
	},
	"style": "zior-wp-blocks-view",
	"viewScript": "zior-wp-blocks-view",
	"editorStyle": "zior-wp-blocks-editor",
	"editorScript": "zior-wp-blocks-editor"
}