diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/blocks/image/block.json --- a/wp/wp-includes/blocks/image/block.json Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/blocks/image/block.json Fri Sep 05 18:40:08 2025 +0200 @@ -1,6 +1,6 @@ { "$schema": "https://schemas.wp.org/trunk/block.json", - "apiVersion": 2, + "apiVersion": 3, "name": "core/image", "title": "Image", "category": "media", @@ -9,38 +9,46 @@ "keywords": [ "img", "photo", "picture" ], "textdomain": "default", "attributes": { - "align": { - "type": "string" - }, "url": { "type": "string", "source": "attribute", "selector": "img", - "attribute": "src" + "attribute": "src", + "__experimentalRole": "content" }, "alt": { "type": "string", "source": "attribute", "selector": "img", "attribute": "alt", - "default": "" + "default": "", + "__experimentalRole": "content" }, "caption": { - "type": "string", - "source": "html", - "selector": "figcaption" + "type": "rich-text", + "source": "rich-text", + "selector": "figcaption", + "__experimentalRole": "content" + }, + "lightbox": { + "type": "object", + "enabled": { + "type": "boolean" + } }, "title": { "type": "string", "source": "attribute", "selector": "img", - "attribute": "title" + "attribute": "title", + "__experimentalRole": "content" }, "href": { "type": "string", "source": "attribute", "selector": "figure > a", - "attribute": "href" + "attribute": "href", + "__experimentalRole": "content" }, "rel": { "type": "string", @@ -55,13 +63,20 @@ "attribute": "class" }, "id": { - "type": "number" + "type": "number", + "__experimentalRole": "content" }, "width": { - "type": "number" + "type": "string" }, "height": { - "type": "number" + "type": "string" + }, + "aspectRatio": { + "type": "string" + }, + "scale": { + "type": "string" }, "sizeSlug": { "type": "string" @@ -77,17 +92,36 @@ } }, "supports": { + "interactivity": true, + "align": [ "left", "center", "right", "wide", "full" ], "anchor": true, "color": { - "__experimentalDuotone": "img", "text": false, "background": false }, + "filter": { + "duotone": true + }, "__experimentalBorder": { + "color": true, "radius": true, + "width": true, + "__experimentalSkipSerialization": true, "__experimentalDefaultControls": { - "radius": true + "color": true, + "radius": true, + "width": true } + }, + "shadow": { + "__experimentalSkipSerialization": true + } + }, + "selectors": { + "border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder", + "shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder", + "filter": { + "duotone": ".wp-block-image img, .wp-block-image .components-placeholder" } }, "styles": [