{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "wpuf-ud/cover-photo",
	"title": "WPUF - User Cover Photo",
	"category": "wpuf-ud",
	"description": "Display user cover photo with various sizing and display options.",
	"keywords": [ "cover", "photo", "banner", "header", "user", "profile" ],
	"textdomain": "wpuf-pro",
	"attributes": {
		"coverHeight": {
			"type": "number",
			"default": 300
		},
		"coverWidth": {
			"type": "string",
			"default": "full-width"
		},
		"customWidthValue": {
			"type": "number",
			"default": 800
		},
		"customWidthUnit": {
			"type": "string",
			"default": "px"
		},
		"fitType": {
			"type": "string",
			"default": "cover"
		},
		"coverPhotoSize": {
			"type": "string",
			"default": "medium"
		},
		"customHeight": {
			"type": "number",
			"default": 300
		},
		"customWidth": {
			"type": "number",
			"default": 800
		},
		"aspectRatio": {
			"type": "string",
			"default": "16-9"
		},
		"displayMode": {
			"type": "string",
			"default": "contained"
		},
		"fallbackType": {
			"type": "string",
			"default": "placeholder"
		},
		"linkToProfile": {
			"type": "boolean",
			"default": false
		},
		"linkTarget": {
			"type": "string",
			"default": "_self"
		},
		"placeholderColor": {
			"type": "string",
			"default": "#f3f4f6"
		}
	},
	"usesContext": [ "wpuf-ud/userObject" ],
	"supports": {
		"spacing": {
			"margin": true,
			"padding": true
		},
		"__experimentalBorder": {
			"radius": true,
			"color": true,
			"width": true,
			"style": true
		}
	},
	"example": {
		"attributes": {
			"coverHeight": 300,
			"coverWidth": "full-width",
			"fitType": "cover"
		}
	}
}
