CoreFiles by mySites.guru
block.json82 lines, 1,454 bytes, from wordpress-5.6.21.zip
Raw History Compare with 5.6.20
md5
3f3774e67c95d12408d1b1bd1196ad01
sha1
035fe61f2606523d8b57ab0604f20614ae438978
sha256
f00f12e84bef1d12e89b4f11acb55e03708c2bdb97de5f240631a84d8e33b350
{
	"name": "core/gallery",
	"category": "media",
	"attributes": {
		"images": {
			"type": "array",
			"default": [],
			"source": "query",
			"selector": ".blocks-gallery-item",
			"query": {
				"url": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "src"
				},
				"fullUrl": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "data-full-url"
				},
				"link": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "data-link"
				},
				"alt": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "alt",
					"default": ""
				},
				"id": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "data-id"
				},
				"caption": {
					"type": "string",
					"source": "html",
					"selector": ".blocks-gallery-item__caption"
				}
			}
		},
		"ids": {
			"type": "array",
			"items": {
				"type": "number"
			},
			"default": []
		},
		"columns": {
			"type": "number",
			"minimum": 1,
			"maximum": 8
		},
		"caption": {
			"type": "string",
			"source": "html",
			"selector": ".blocks-gallery-caption"
		},
		"imageCrop": {
			"type": "boolean",
			"default": true
		},
		"linkTo": {
			"type": "string"
		},
		"sizeSlug": {
			"type": "string",
			"default": "large"
		}
	},
	"supports": {
		"anchor": true,
		"align": true
	}
}

The same content is in 35 releases, WordPress 5.6-beta1 to 5.6.23. See them all, or every version of this file.