wp/wp-includes/blocks/post-author-name/block.json
changeset 21 48c4eec2b7e6
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
       
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
       
     3 	"apiVersion": 3,
       
     4 	"name": "core/post-author-name",
       
     5 	"title": "Author Name",
       
     6 	"category": "theme",
       
     7 	"description": "The author name.",
       
     8 	"textdomain": "default",
       
     9 	"attributes": {
       
    10 		"textAlign": {
       
    11 			"type": "string"
       
    12 		},
       
    13 		"isLink": {
       
    14 			"type": "boolean",
       
    15 			"default": false
       
    16 		},
       
    17 		"linkTarget": {
       
    18 			"type": "string",
       
    19 			"default": "_self"
       
    20 		}
       
    21 	},
       
    22 	"usesContext": [ "postType", "postId" ],
       
    23 	"supports": {
       
    24 		"html": false,
       
    25 		"spacing": {
       
    26 			"margin": true,
       
    27 			"padding": true
       
    28 		},
       
    29 		"color": {
       
    30 			"gradients": true,
       
    31 			"link": true,
       
    32 			"__experimentalDefaultControls": {
       
    33 				"background": true,
       
    34 				"text": true,
       
    35 				"link": true
       
    36 			}
       
    37 		},
       
    38 		"typography": {
       
    39 			"fontSize": true,
       
    40 			"lineHeight": true,
       
    41 			"__experimentalFontFamily": true,
       
    42 			"__experimentalFontWeight": true,
       
    43 			"__experimentalFontStyle": true,
       
    44 			"__experimentalTextTransform": true,
       
    45 			"__experimentalTextDecoration": true,
       
    46 			"__experimentalLetterSpacing": true,
       
    47 			"__experimentalDefaultControls": {
       
    48 				"fontSize": true
       
    49 			}
       
    50 		},
       
    51 		"interactivity": {
       
    52 			"clientNavigation": true
       
    53 		}
       
    54 	}
       
    55 }