2020-07-01 08:29:03 -04:00
|
|
|
{
|
2022-04-12 11:12:47 -04:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 10:24:19 -04:00
|
|
|
"apiVersion": 3,
|
2020-07-01 08:29:03 -04:00
|
|
|
"name": "core/image",
|
2021-05-19 11:09:27 -04:00
|
|
|
"title": "Image",
|
2020-07-01 08:29:03 -04:00
|
|
|
"category": "media",
|
2024-02-20 06:16:26 -05:00
|
|
|
"usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
|
2021-05-19 11:09:27 -04:00
|
|
|
"description": "Insert an image to make a visual statement.",
|
|
|
|
"keywords": [ "img", "photo", "picture" ],
|
|
|
|
"textdomain": "default",
|
2020-07-01 08:29:03 -04:00
|
|
|
"attributes": {
|
|
|
|
"url": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "src",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"alt": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
|
|
|
"attribute": "alt",
|
2022-09-20 11:43:29 -04:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04: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 16:07:12 -05:00
|
|
|
"type": "rich-text",
|
|
|
|
"source": "rich-text",
|
2022-09-20 11:43:29 -04:00
|
|
|
"selector": "figcaption",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
2023-09-26 10:23:26 -04:00
|
|
|
"lightbox": {
|
|
|
|
"type": "object",
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
2020-07-01 08:29:03 -04:00
|
|
|
"title": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "title",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"href": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "href",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04: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 11:43:29 -04:00
|
|
|
"type": "number",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"width": {
|
2023-09-05 23:19:44 -04:00
|
|
|
"type": "string"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"height": {
|
2023-09-05 23:19:44 -04:00
|
|
|
"type": "string"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
2023-06-27 10:24:19 -04:00
|
|
|
"aspectRatio": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"scale": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-07-01 08:29:03 -04:00
|
|
|
"sizeSlug": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"linkDestination": {
|
2020-10-13 09:10:30 -04:00
|
|
|
"type": "string"
|
2020-07-01 08:29:03 -04: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 16:07:12 -05:00
|
|
|
"interactivity": true,
|
|
|
|
"align": [ "left", "center", "right", "wide", "full" ],
|
2021-02-02 00:17:13 -05:00
|
|
|
"anchor": true,
|
2021-05-19 11:09:27 -04:00
|
|
|
"color": {
|
|
|
|
"text": false,
|
|
|
|
"background": false
|
|
|
|
},
|
2023-06-27 10:24:19 -04:00
|
|
|
"filter": {
|
|
|
|
"duotone": true
|
|
|
|
},
|
2021-02-02 00:17:13 -05:00
|
|
|
"__experimentalBorder": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"color": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"radius": true,
|
2022-09-20 11:43:29 -04:00
|
|
|
"width": true,
|
|
|
|
"__experimentalSkipSerialization": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"__experimentalDefaultControls": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true
|
2022-04-12 11:12:47 -04:00
|
|
|
}
|
2024-02-09 13:22:22 -05:00
|
|
|
},
|
|
|
|
"shadow": {
|
|
|
|
"__experimentalSkipSerialization": true
|
2021-02-02 00:17:13 -05:00
|
|
|
}
|
2021-01-27 21:04:13 -05:00
|
|
|
},
|
2023-06-27 10:24:19 -04:00
|
|
|
"selectors": {
|
|
|
|
"border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
|
2024-02-09 13:22:22 -05:00
|
|
|
"shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
|
2023-06-27 10:24:19 -04:00
|
|
|
"filter": {
|
|
|
|
"duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
|
|
|
|
}
|
|
|
|
},
|
2021-05-19 11:09:27 -04:00
|
|
|
"styles": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"label": "Default",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
{ "name": "rounded", "label": "Rounded" }
|
|
|
|
],
|
2021-01-27 21:04:13 -05: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 16:07:12 -05:00
|
|
|
"style": "wp-block-image"
|
2020-07-01 08:29:03 -04:00
|
|
|
}
|