wp/wp-includes/blocks/comments-title/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/comments-title",
       
     5 	"title": "Comments Title",
       
     6 	"category": "theme",
       
     7 	"ancestor": [ "core/comments-query-loop" ],
       
     8 	"description": "Displays a title with the number of comments",
       
     9 	"textdomain": "default",
       
    10 	"usesContext": [ "postId", "postType" ],
       
    11 	"attributes": {
       
    12 		"textAlign": {
       
    13 			"type": "string"
       
    14 		},
       
    15 		"showPostTitle": {
       
    16 			"type": "boolean",
       
    17 			"default": true
       
    18 		},
       
    19 		"showCommentsCount": {
       
    20 			"type": "boolean",
       
    21 			"default": true
       
    22 		},
       
    23 		"level": {
       
    24 			"type": "number",
       
    25 			"default": 2
       
    26 		}
       
    27 	},
       
    28 	"supports": {
       
    29 		"anchor": false,
       
    30 		"align": true,
       
    31 		"html": false,
       
    32 		"__experimentalBorder": {
       
    33 			"radius": true,
       
    34 			"color": true,
       
    35 			"width": true,
       
    36 			"style": true
       
    37 		},
       
    38 		"color": {
       
    39 			"gradients": true,
       
    40 			"__experimentalDefaultControls": {
       
    41 				"background": true,
       
    42 				"text": true
       
    43 			}
       
    44 		},
       
    45 		"spacing": {
       
    46 			"margin": true,
       
    47 			"padding": true
       
    48 		},
       
    49 		"typography": {
       
    50 			"fontSize": true,
       
    51 			"lineHeight": true,
       
    52 			"__experimentalFontStyle": true,
       
    53 			"__experimentalFontWeight": true,
       
    54 			"__experimentalFontFamily": true,
       
    55 			"__experimentalTextTransform": true,
       
    56 			"__experimentalDefaultControls": {
       
    57 				"fontSize": true,
       
    58 				"__experimentalFontFamily": true,
       
    59 				"__experimentalFontStyle": true,
       
    60 				"__experimentalFontWeight": true
       
    61 			}
       
    62 		}
       
    63 	}
       
    64 }