{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "doroto/tournament",
	"version": "2.0.1",
	"title": "Rotation tournament",
	"category": "widgets",
	"icon": "awards",
	"description": "Matches, players, results and settings of one rotation tournament.",
	"keywords": [
		"tournament",
		"doubles",
		"rotation",
		"tennis"
	],
	"textdomain": "doubles-rotation-tournament",
	"attributes": {
		"tournamentId": {
			"type": "integer",
			"default": 0
		},
		"sections": {
			"type": "array",
			"items": {
				"type": "string"
			},
			"default": [
				"matches",
				"results",
				"players",
				"stats",
				"settings"
			]
		},
		"presentation": {
			"type": "boolean",
			"default": false
		},
		"presentationSeconds": {
			"type": "integer",
			"default": 15
		},
		"accentColor": {
			"type": "string",
			"default": ""
		},
		"tabsBackground": {
			"type": "string",
			"default": ""
		},
		"tabsTextColor": {
			"type": "string",
			"default": ""
		},
		"specialColor": {
			"type": "string",
			"default": ""
		}
	},
	"supports": {
		"html": false,
		"align": [
			"wide",
			"full"
		],
		"color": {
			"background": true,
			"text": true,
			"link": true
		},
		"spacing": {
			"margin": true,
			"padding": true
		},
		"typography": {
			"fontSize": true
		},
		"interactivity": true
	},
	"editorScript": "file:./index.js",
	"style": "file:./style-index.css",
	"viewScriptModule": "file:./view.js",
	"render": "file:./render.php",
	"variations": [
		{
			"name": "standings",
			"title": "Tournament standings",
			"description": "Players of a rotation tournament ordered by their results.",
			"icon": "editor-ol",
			"scope": [
				"inserter",
				"transform"
			],
			"attributes": {
				"sections": [
					"players"
				]
			},
			"isActive": [
				"sections"
			]
		},
		{
			"name": "matches",
			"title": "Tournament matches",
			"description": "Ongoing and played matches of a rotation tournament.",
			"icon": "list-view",
			"scope": [
				"inserter",
				"transform"
			],
			"attributes": {
				"sections": [
					"matches",
					"results"
				]
			},
			"isActive": [
				"sections"
			]
		},
		{
			"name": "presentation",
			"title": "Tournament presentation",
			"description": "Rotates matches, standings and results, e.g. on a screen at the club.",
			"icon": "slides",
			"scope": [
				"inserter",
				"transform"
			],
			"attributes": {
				"sections": [
					"matches",
					"players",
					"results"
				],
				"presentation": true
			},
			"isActive": [
				"presentation"
			]
		}
	]
}
