wp/wp-includes/blocks/post-author/block.json
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
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/post-author",
     4 	"name": "core/post-author",
     5 	"title": "Post Author",
     5 	"title": "Author",
     6 	"category": "theme",
     6 	"category": "theme",
     7 	"description": "Display post author details such as name, avatar, and bio.",
     7 	"description": "Display post author details such as name, avatar, and bio.",
     8 	"textdomain": "default",
     8 	"textdomain": "default",
     9 	"attributes": {
     9 	"attributes": {
    10 		"textAlign": {
    10 		"textAlign": {
    21 		"showBio": {
    21 		"showBio": {
    22 			"type": "boolean"
    22 			"type": "boolean"
    23 		},
    23 		},
    24 		"byline": {
    24 		"byline": {
    25 			"type": "string"
    25 			"type": "string"
       
    26 		},
       
    27 		"isLink": {
       
    28 			"type": "boolean",
       
    29 			"default": false
       
    30 		},
       
    31 		"linkTarget": {
       
    32 			"type": "string",
       
    33 			"default": "_self"
    26 		}
    34 		}
    27 	},
    35 	},
    28 	"usesContext": [ "postType", "postId", "queryId" ],
    36 	"usesContext": [ "postType", "postId", "queryId" ],
    29 	"supports": {
    37 	"supports": {
    30 		"html": false,
    38 		"html": false,
    33 			"padding": true
    41 			"padding": true
    34 		},
    42 		},
    35 		"typography": {
    43 		"typography": {
    36 			"fontSize": true,
    44 			"fontSize": true,
    37 			"lineHeight": true,
    45 			"lineHeight": true,
       
    46 			"__experimentalFontFamily": true,
       
    47 			"__experimentalFontWeight": true,
    38 			"__experimentalFontStyle": true,
    48 			"__experimentalFontStyle": true,
    39 			"__experimentalFontWeight": true,
    49 			"__experimentalTextTransform": true,
       
    50 			"__experimentalTextDecoration": true,
    40 			"__experimentalLetterSpacing": true,
    51 			"__experimentalLetterSpacing": true,
    41 			"__experimentalTextTransform": true,
       
    42 			"__experimentalDefaultControls": {
    52 			"__experimentalDefaultControls": {
    43 				"fontSize": true
    53 				"fontSize": true
    44 			}
    54 			}
    45 		},
    55 		},
    46 		"color": {
    56 		"color": {
    49 			"__experimentalDuotone": ".wp-block-post-author__avatar img",
    59 			"__experimentalDuotone": ".wp-block-post-author__avatar img",
    50 			"__experimentalDefaultControls": {
    60 			"__experimentalDefaultControls": {
    51 				"background": true,
    61 				"background": true,
    52 				"text": true
    62 				"text": true
    53 			}
    63 			}
       
    64 		},
       
    65 		"interactivity": {
       
    66 			"clientNavigation": true
    54 		}
    67 		}
    55 	},
    68 	},
    56 	"editorStyle": "wp-block-post-author-editor",
       
    57 	"style": "wp-block-post-author"
    69 	"style": "wp-block-post-author"
    58 }
    70 }