{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "affilun/product-card",
	"title": "affilun / 商品カード",
	"category": "widgets",
	"icon": "cart",
	"description": "affilun の単一商品リンクカードです。",
	"textdomain": "affilun",
	"keywords": [
		"commerce",
		"product",
		"affiliate",
		"amazon",
		"rakuten",
		"yahoo",
		"mercari"
	],
	"attributes": {
		"productId": {
			"type": "integer"
		},
		"template": {
			"type": "string",
			"default": "single-default-card"
		},
		"showPrice": {
			"type": "boolean",
			"default": true
		},
		"showBrand": {
			"type": "boolean",
			"default": true
		},
		"showDescription": {
			"type": "boolean",
			"default": false
		},
		"showProviderBadge": {
			"type": "boolean",
			"default": false
		},
		"showDisclaimer": {
			"type": "boolean",
			"default": true
		},
		"openInNewTab": {
			"type": "boolean",
			"default": true
		},
		"nofollow": {
			"type": "boolean",
			"default": true
		},
		"sponsored": {
			"type": "boolean",
			"default": true
		},
		"trackingEnabled": {
			"type": "boolean",
			"default": true
		},
		"buttonLabels": {
			"type": "object",
			"default": {
				"amazon": "Amazon",
				"rakuten": "楽天市場",
				"yahoo_shopping": "Yahoo!ショッピング",
				"mercari": "メルカリ"
			}
		},
		"embedId": {
			"type": "string"
		},
		"templateVariant": {
			"type": "string",
			"enum": [ "default", "flat", "outlined", "soft" ]
		},
		"buttonLayout": {
			"type": "string",
			"enum": [ "wrap", "stacked", "full" ]
		},
		"buttonShape": {
			"type": "string",
			"enum": [ "square", "rounded", "pill" ]
		},
		"buttonTone": {
			"type": "string",
			"enum": [ "brand", "muted", "monochrome" ]
		},
		"colorScheme": {
			"type": "string",
			"enum": [ "light", "dark", "system" ]
		},
		"customButtons": {
			"type": "array",
			"default": []
		},
		"microcopyText": {
			"type": "string",
			"default": ""
		},
		"microcopyStartAt": {
			"type": "string",
			"default": ""
		},
		"microcopyEndAt": {
			"type": "string",
			"default": ""
		},
		"abTestingEnabled": {
			"type": "boolean",
			"default": false
		},
		"abButtonLabelVariant": {
			"type": "string",
			"default": ""
		},
		"abMicrocopyVariant": {
			"type": "string",
			"default": ""
		},
		"customCssClass": {
			"type": "string",
			"default": ""
		}
	},
	"supports": {
		"html": false,
		"anchor": true,
		"align": [ "wide", "full" ],
		"className": true
	},
	"editorScript": "file:./index.js",
	"render": "file:./render.php"
}
