{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "kalium/portfolio-items",
	"version": "1.0.0",
	"title": "Portfolio Items",
	"category": "kalium",
	"description": "Display portfolio items with customizable layout and filtering options.",
	"keywords": [ "portfolio", "gallery", "projects", "work" ],
	"textdomain": "kalium",
	"attributes": {
		"layoutType": {
			"type": "string",
			"default": "inherit",
			"enum": [ "inherit", "type-1", "type-2" ]
		},
		"layoutMode": {
			"type": "string",
			"default": "inherit",
			"enum": [ "inherit", "packery", "fit-rows" ]
		},
		"columns": {
			"type": "number",
			"default": 3
		},
		"columnsTablet": {
			"type": "number"
		},
		"columnsMobile": {
			"type": "number"
		},
		"columnsGap": {
			"type": "number"
		},
		"columnsGapTablet": {
			"type": "number"
		},
		"columnsGapMobile": {
			"type": "number"
		},
		"revealEffect": {
			"type": "string",
			"default": "inherit",
			"enum": [
				"inherit",
				"none",
				"fade",
				"slidenfade",
				"zoom",
				"fade-one",
				"slidenfade-one",
				"zoom-one"
			]
		},
		"showHeading": {
			"type": "boolean",
			"default": true
		},
		"title": {
			"type": "string"
		},
		"description": {
			"type": "string"
		},
		"headingLayout": {
			"type": "string",
			"default": "inherit",
			"enum": [ "inherit", "type-1", "type-2", "type-3" ]
		},
		"filters": {
			"type": "boolean",
			"default": true
		},
		"filtersOptions": {
			"type": "object",
			"additionalProperties": true,
			"default": {
				"portfolio_category": {
					"enabled": true,
					"defaultFilter": ""
				},
				"portfolio_tag": {
					"enabled": false,
					"defaultFilter": ""
				}
			}
		},
		"query": {
			"type": "object",
			"properties": {
				"postType": {
					"type": "string"
				},
				"tax": {
					"type": "object",
					"additionalProperties": true
				},
				"author": {
					"type": "array",
					"items": {
						"type": "number"
					}
				},
				"include": {
					"type": "array",
					"items": {
						"type": "number"
					}
				},
				"exclude": {
					"type": "array",
					"items": {
						"type": "number"
					}
				},
				"postsPerPage": {
					"type": "number"
				},
				"showAll": {
					"type": "boolean"
				},
				"orderBy": {
					"type": "string"
				},
				"order": {
					"type": "string"
				}
			},
			"additionalProperties": true,
			"default": {
				"postType": "portfolio",
				"tax": {
					"portfolio_category": [],
					"portfolio_tag": []
				},
				"author": [],
				"include": [],
				"exclude": [],
				"postsPerPage": 12,
				"showAll": false,
				"orderBy": "",
				"order": ""
			}
		},
		"pagination": {
			"type": "object",
			"properties": {
				"type": {
					"type": "string",
					"enum": [ "none", "load-more", "static" ]
				},
				"autoReveal": {
					"type": "boolean"
				},
				"buttonText": {
					"type": "string"
				},
				"reachedEndText": {
					"type": "string"
				},
				"buttonLink": {
					"type": "string"
				}
			},
			"default": {
				"type": "none",
				"autoReveal": false,
				"buttonText": "",
				"reachedEndText": "",
				"buttonLink": ""
			}
		},
		"thumbnailImageSize": {
			"type": "string",
			"default": ""
		},
		"thumbnailImageSizeCustom": {
			"type": "object",
			"properties": {
				"width": {
					"type": "number"
				},
				"height": {
					"type": "number"
				}
			}
		},
		"thumbnailAspectRatio": {
			"type": "string",
			"default": ""
		},
		"thumbnailAspectRatioCustom": {
			"type": "object",
			"properties": {
				"width": {
					"type": "number"
				},
				"height": {
					"type": "number"
				}
			}
		},
		"customMasonry": {
			"type": "boolean",
			"default": false
		},
		"customMasonryItems": {
			"type": "array",
			"items": {
				"type": "string"
			},
			"default": [ "4x3", "8x3", "8x3", "4x3" ]
		}
	},
	"supports": {
		"html": false,
		"align": [ "wide", "full" ],
		"spacing": {
			"margin": true,
			"padding": true
		},
		"color": {
			"gradients": true,
			"background": true,
			"text": false
		},
		"__experimentalBorder": {
			"color": true,
			"radius": true,
			"style": true,
			"width": true
		}
	},
	"editorScript": "file:./index.js",
	"render": "file:./render.php"
}
