summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/avatar/block.json
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/avatar/block.json')
-rw-r--r--wp-includes/blocks/avatar/block.json56
1 files changed, 56 insertions, 0 deletions
diff --git a/wp-includes/blocks/avatar/block.json b/wp-includes/blocks/avatar/block.json
new file mode 100644
index 0000000..3b4ac7c
--- /dev/null
+++ b/wp-includes/blocks/avatar/block.json
@@ -0,0 +1,56 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 3,
+ "name": "core/avatar",
+ "title": "Avatar",
+ "category": "theme",
+ "description": "Add a user’s avatar.",
+ "textdomain": "default",
+ "attributes": {
+ "userId": {
+ "type": "number"
+ },
+ "size": {
+ "type": "number",
+ "default": 96
+ },
+ "isLink": {
+ "type": "boolean",
+ "default": false
+ },
+ "linkTarget": {
+ "type": "string",
+ "default": "_self"
+ }
+ },
+ "usesContext": [ "postType", "postId", "commentId" ],
+ "supports": {
+ "html": false,
+ "align": true,
+ "alignWide": false,
+ "spacing": {
+ "margin": true,
+ "padding": true
+ },
+ "__experimentalBorder": {
+ "__experimentalSkipSerialization": true,
+ "radius": true,
+ "width": true,
+ "color": true,
+ "style": true,
+ "__experimentalDefaultControls": {
+ "radius": true
+ }
+ },
+ "color": {
+ "text": false,
+ "background": false,
+ "__experimentalDuotone": "img"
+ }
+ },
+ "selectors": {
+ "border": ".wp-block-avatar img"
+ },
+ "editorStyle": "wp-block-avatar-editor",
+ "style": "wp-block-avatar"
+}