kollapsminoriteten/wp-includes/blocks/image/block.json

152 lines
2.9 KiB
JSON
Raw Normal View History

2020-09-15 14:29:22 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2020-09-15 14:29:22 +02:00
"name": "core/image",
2021-07-23 11:58:50 +02:00
"title": "Image",
2020-09-15 14:29:22 +02:00
"category": "media",
2025-04-25 12:30:07 +02:00
"usesContext": [
"allowResize",
"imageCrop",
"fixedHeight",
"postId",
"postType",
"queryId"
],
2021-07-23 11:58:50 +02:00
"description": "Insert an image to make a visual statement.",
"keywords": [ "img", "photo", "picture" ],
"textdomain": "default",
2020-09-15 14:29:22 +02:00
"attributes": {
2025-02-28 08:42:11 +01:00
"blob": {
"type": "string",
"role": "local"
},
2020-09-15 14:29:22 +02:00
"url": {
"type": "string",
"source": "attribute",
"selector": "img",
2022-12-15 17:47:31 +01:00
"attribute": "src",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"alt": {
"type": "string",
"source": "attribute",
"selector": "img",
"attribute": "alt",
2022-12-15 17:47:31 +01:00
"default": "",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"caption": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
"source": "rich-text",
2022-12-15 17:47:31 +01:00
"selector": "figcaption",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
2023-12-07 09:44:11 +01:00
"lightbox": {
"type": "object",
"enabled": {
"type": "boolean"
}
},
2020-09-15 14:29:22 +02:00
"title": {
"type": "string",
"source": "attribute",
"selector": "img",
2022-12-15 17:47:31 +01:00
"attribute": "title",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"href": {
"type": "string",
"source": "attribute",
"selector": "figure > a",
2022-12-15 17:47:31 +01:00
"attribute": "href",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"rel": {
"type": "string",
"source": "attribute",
"selector": "figure > a",
"attribute": "rel"
},
"linkClass": {
"type": "string",
"source": "attribute",
"selector": "figure > a",
"attribute": "class"
},
"id": {
2022-12-15 17:47:31 +01:00
"type": "number",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"width": {
2023-12-07 09:44:11 +01:00
"type": "string"
2020-09-15 14:29:22 +02:00
},
"height": {
2023-12-07 09:44:11 +01:00
"type": "string"
2020-09-15 14:29:22 +02:00
},
2023-09-26 10:33:34 +02:00
"aspectRatio": {
"type": "string"
},
"scale": {
"type": "string"
},
2020-09-15 14:29:22 +02:00
"sizeSlug": {
"type": "string"
},
"linkDestination": {
2020-12-10 14:06:04 +01:00
"type": "string"
2020-09-15 14:29:22 +02:00
},
"linkTarget": {
"type": "string",
"source": "attribute",
"selector": "figure > a",
"attribute": "target"
}
},
"supports": {
2024-04-17 11:32:24 +02:00
"interactivity": true,
"align": [ "left", "center", "right", "wide", "full" ],
2021-04-27 08:32:47 +02:00
"anchor": true,
2021-07-23 11:58:50 +02:00
"color": {
"text": false,
"background": false
},
2023-09-26 10:33:34 +02:00
"filter": {
"duotone": true
},
2025-02-28 08:42:11 +01:00
"spacing": {
"margin": true
},
2021-04-27 08:32:47 +02:00
"__experimentalBorder": {
2022-12-15 17:47:31 +01:00
"color": true,
2022-06-16 14:03:35 +02:00
"radius": true,
2022-12-15 17:47:31 +01:00
"width": true,
"__experimentalSkipSerialization": true,
2022-06-16 14:03:35 +02:00
"__experimentalDefaultControls": {
2022-12-15 17:47:31 +01:00
"color": true,
"radius": true,
"width": true
2022-06-16 14:03:35 +02:00
}
2024-04-17 11:32:24 +02:00
},
"shadow": {
"__experimentalSkipSerialization": true
2021-04-27 08:32:47 +02:00
}
},
2023-09-26 10:33:34 +02:00
"selectors": {
"border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
2024-04-17 11:32:24 +02:00
"shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
2023-09-26 10:33:34 +02:00
"filter": {
"duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
}
},
2021-07-23 11:58:50 +02:00
"styles": [
{
"name": "default",
"label": "Default",
"isDefault": true
},
{ "name": "rounded", "label": "Rounded" }
],
2021-04-27 08:32:47 +02:00
"editorStyle": "wp-block-image-editor",
2024-04-17 11:32:24 +02:00
"style": "wp-block-image"
2020-09-15 14:29:22 +02:00
}