{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "giraforms/consent-field",
	"version": "1.0.0",
	"title": "Consent Checkbox",
	"category": "giraforms",
	"icon": "privacy",
	"description": "Privacy consent checkbox with customizable privacy policy link.",
	"keywords": ["consent", "privacy", "checkbox", "agreement", "legal", "gdpr"],
	"parent": ["giraforms/form-container", "core/column"],
	"supports": {
		"html": false,
		"className": true,
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"__experimentalFontFamily": true,
			"__experimentalFontWeight": true,
			"__experimentalLetterSpacing": true
		}
	},
	"attributes": {
		"fieldId": {
			"type": "string",
			"default": ""
		},
		"label": {
			"type": "string",
			"default": "I agree to the privacy policy"
		},
		"required": {
			"type": "boolean",
			"default": true
		},
		"privacyPolicyUrl": {
			"type": "string",
			"default": ""
		},
		"privacyPolicyText": {
			"type": "string",
			"default": "privacy policy"
		},
		"consentText": {
			"type": "string",
			"default": "I agree to the {privacy_policy} and consent to my data being processed."
		},
		"errorMessage": {
			"type": "string",
			"default": "You must accept the privacy policy to continue."
		},
		"conditionalRules": {
			"type": "object",
			"default": {
				"enabled": false,
				"logic": "and",
				"conditions": []
			}
		}
	},
	"textdomain": "giraforms",
	"editorScript": "file:./index.js",
	"render": "file:./render.php"
}
