wp/wp-includes/blocks/avatar/block.json
changeset 19 3d72ae0968f4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
       
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
       
     3 	"apiVersion": 2,
       
     4 	"name": "core/avatar",
       
     5 	"title": "Avatar",
       
     6 	"category": "theme",
       
     7 	"description": "Add a user's avatar.",
       
     8 	"textdomain": "default",
       
     9 	"attributes": {
       
    10 		"userId": {
       
    11 			"type": "number"
       
    12 		},
       
    13 		"size": {
       
    14 			"type": "number",
       
    15 			"default": 96
       
    16 		},
       
    17 		"isLink": {
       
    18 			"type": "boolean",
       
    19 			"default": false
       
    20 		},
       
    21 		"linkTarget": {
       
    22 			"type": "string",
       
    23 			"default": "_self"
       
    24 		}
       
    25 
       
    26 	},
       
    27 	"usesContext": [ "postType", "postId", "commentId" ],
       
    28 	"supports": {
       
    29 		"html": false,
       
    30 		"align": true,
       
    31 		"alignWide": false,
       
    32 		"spacing": {
       
    33 			"margin": true
       
    34 		},
       
    35 		"__experimentalBorder": {
       
    36 			"__experimentalSkipSerialization": true,
       
    37 			"radius": true,
       
    38 			"width": true,
       
    39 			"color": true,
       
    40 			"style": true,
       
    41 			"__experimentalDefaultControls": {
       
    42 				"radius": true
       
    43 			}
       
    44 		},
       
    45 		"color": {
       
    46 			"text": false,
       
    47 			"background": false,
       
    48 			"__experimentalDuotone": "img"
       
    49 		}
       
    50 	},
       
    51 	"editorStyle": "wp-block-avatar",
       
    52 	"style": "wp-block-avatar"
       
    53 }