wp/wp-includes/blocks/avatar/block.json
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     1 {
     1 {
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     3 	"apiVersion": 2,
     3 	"apiVersion": 3,
     4 	"name": "core/avatar",
     4 	"name": "core/avatar",
     5 	"title": "Avatar",
     5 	"title": "Avatar",
     6 	"category": "theme",
     6 	"category": "theme",
     7 	"description": "Add a user's avatar.",
     7 	"description": "Add a user’s avatar.",
     8 	"textdomain": "default",
     8 	"textdomain": "default",
     9 	"attributes": {
     9 	"attributes": {
    10 		"userId": {
    10 		"userId": {
    11 			"type": "number"
    11 			"type": "number"
    12 		},
    12 		},
    20 		},
    20 		},
    21 		"linkTarget": {
    21 		"linkTarget": {
    22 			"type": "string",
    22 			"type": "string",
    23 			"default": "_self"
    23 			"default": "_self"
    24 		}
    24 		}
    25 
       
    26 	},
    25 	},
    27 	"usesContext": [ "postType", "postId", "commentId" ],
    26 	"usesContext": [ "postType", "postId", "commentId" ],
    28 	"supports": {
    27 	"supports": {
    29 		"html": false,
    28 		"html": false,
    30 		"align": true,
    29 		"align": true,
    31 		"alignWide": false,
    30 		"alignWide": false,
    32 		"spacing": {
    31 		"spacing": {
    33 			"margin": true
    32 			"margin": true,
       
    33 			"padding": true,
       
    34 			"__experimentalDefaultControls": {
       
    35 				"margin": false,
       
    36 				"padding": false
       
    37 			}
    34 		},
    38 		},
    35 		"__experimentalBorder": {
    39 		"__experimentalBorder": {
    36 			"__experimentalSkipSerialization": true,
    40 			"__experimentalSkipSerialization": true,
    37 			"radius": true,
    41 			"radius": true,
    38 			"width": true,
    42 			"width": true,
    44 		},
    48 		},
    45 		"color": {
    49 		"color": {
    46 			"text": false,
    50 			"text": false,
    47 			"background": false,
    51 			"background": false,
    48 			"__experimentalDuotone": "img"
    52 			"__experimentalDuotone": "img"
       
    53 		},
       
    54 		"interactivity": {
       
    55 			"clientNavigation": true
    49 		}
    56 		}
    50 	},
    57 	},
    51 	"editorStyle": "wp-block-avatar",
    58 	"selectors": {
       
    59 		"border": ".wp-block-avatar img"
       
    60 	},
       
    61 	"editorStyle": "wp-block-avatar-editor",
    52 	"style": "wp-block-avatar"
    62 	"style": "wp-block-avatar"
    53 }
    63 }