2020-07-01 14:29:03 +02:00
|
|
|
{
|
2022-04-12 17:12:47 +02:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 16:24:19 +02:00
|
|
|
"apiVersion": 3,
|
2020-07-01 14:29:03 +02:00
|
|
|
"name": "core/image",
|
2021-05-19 17:09:27 +02:00
|
|
|
"title": "Image",
|
2020-07-01 14:29:03 +02:00
|
|
|
"category": "media",
|
2024-02-20 12:16:26 +01:00
|
|
|
"usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
|
2021-05-19 17:09:27 +02:00
|
|
|
"description": "Insert an image to make a visual statement.",
|
|
|
|
"keywords": [ "img", "photo", "picture" ],
|
|
|
|
"textdomain": "default",
|
2020-07-01 14:29:03 +02:00
|
|
|
"attributes": {
|
|
|
|
"url": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
2022-09-20 17:43:29 +02:00
|
|
|
"attribute": "src",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"alt": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
|
|
|
"attribute": "alt",
|
2022-09-20 17:43:29 +02:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"caption": {
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 22:07:12 +01:00
|
|
|
"type": "rich-text",
|
|
|
|
"source": "rich-text",
|
2022-09-20 17:43:29 +02:00
|
|
|
"selector": "figcaption",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
2023-09-26 16:23:26 +02:00
|
|
|
"lightbox": {
|
|
|
|
"type": "object",
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
2020-07-01 14:29:03 +02:00
|
|
|
"title": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
2022-09-20 17:43:29 +02:00
|
|
|
"attribute": "title",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"href": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
2022-09-20 17:43:29 +02:00
|
|
|
"attribute": "href",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"rel": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
|
|
|
"attribute": "rel"
|
|
|
|
},
|
|
|
|
"linkClass": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
|
|
|
"attribute": "class"
|
|
|
|
},
|
|
|
|
"id": {
|
2022-09-20 17:43:29 +02:00
|
|
|
"type": "number",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"width": {
|
2023-09-06 05:19:44 +02:00
|
|
|
"type": "string"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"height": {
|
2023-09-06 05:19:44 +02:00
|
|
|
"type": "string"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
2023-06-27 16:24:19 +02:00
|
|
|
"aspectRatio": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"scale": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-07-01 14:29:03 +02:00
|
|
|
"sizeSlug": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"linkDestination": {
|
2020-10-13 15:10:30 +02:00
|
|
|
"type": "string"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"linkTarget": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
|
|
|
"attribute": "target"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 22:07:12 +01:00
|
|
|
"interactivity": true,
|
|
|
|
"align": [ "left", "center", "right", "wide", "full" ],
|
2021-02-02 06:17:13 +01:00
|
|
|
"anchor": true,
|
2021-05-19 17:09:27 +02:00
|
|
|
"color": {
|
|
|
|
"text": false,
|
|
|
|
"background": false
|
|
|
|
},
|
2023-06-27 16:24:19 +02:00
|
|
|
"filter": {
|
|
|
|
"duotone": true
|
|
|
|
},
|
2021-02-02 06:17:13 +01:00
|
|
|
"__experimentalBorder": {
|
2022-09-20 17:43:29 +02:00
|
|
|
"color": true,
|
2022-04-12 17:12:47 +02:00
|
|
|
"radius": true,
|
2022-09-20 17:43:29 +02:00
|
|
|
"width": true,
|
|
|
|
"__experimentalSkipSerialization": true,
|
2022-04-12 17:12:47 +02:00
|
|
|
"__experimentalDefaultControls": {
|
2022-09-20 17:43:29 +02:00
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true
|
2022-04-12 17:12:47 +02:00
|
|
|
}
|
2024-02-09 19:22:22 +01:00
|
|
|
},
|
|
|
|
"shadow": {
|
|
|
|
"__experimentalSkipSerialization": true
|
2021-02-02 06:17:13 +01:00
|
|
|
}
|
2021-01-28 03:04:13 +01:00
|
|
|
},
|
2023-06-27 16:24:19 +02:00
|
|
|
"selectors": {
|
|
|
|
"border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
|
2024-02-09 19:22:22 +01:00
|
|
|
"shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
|
2023-06-27 16:24:19 +02:00
|
|
|
"filter": {
|
|
|
|
"duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
|
|
|
|
}
|
|
|
|
},
|
2021-05-19 17:09:27 +02:00
|
|
|
"styles": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"label": "Default",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
{ "name": "rounded", "label": "Rounded" }
|
|
|
|
],
|
2021-01-28 03:04:13 +01:00
|
|
|
"editorStyle": "wp-block-image-editor",
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 22:07:12 +01:00
|
|
|
"style": "wp-block-image"
|
2020-07-01 14:29:03 +02:00
|
|
|
}
|