wp/wp-includes/blocks/buttons/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/buttons",
     4 	"name": "core/buttons",
     5 	"title": "Buttons",
     5 	"title": "Buttons",
     6 	"category": "design",
     6 	"category": "design",
       
     7 	"allowedBlocks": [ "core/button" ],
     7 	"description": "Prompt visitors to take action with a group of button-style links.",
     8 	"description": "Prompt visitors to take action with a group of button-style links.",
     8 	"keywords": [ "link" ],
     9 	"keywords": [ "link" ],
     9 	"textdomain": "default",
    10 	"textdomain": "default",
    10 	"supports": {
    11 	"supports": {
    11 		"anchor": true,
    12 		"anchor": true,
    12 		"align": [ "wide", "full" ],
    13 		"align": [ "wide", "full" ],
       
    14 		"html": false,
    13 		"__experimentalExposeControlsToChildren": true,
    15 		"__experimentalExposeControlsToChildren": true,
    14 		"spacing": {
    16 		"spacing": {
    15 			"blockGap": true,
    17 			"blockGap": true,
    16 			"margin": [ "top", "bottom" ],
    18 			"margin": [ "top", "bottom" ],
    17 			"__experimentalDefaultControls": {
    19 			"__experimentalDefaultControls": {
    18 				"blockGap": true
    20 				"blockGap": true
    19 			}
    21 			}
    20 		},
    22 		},
    21 		"__experimentalLayout": {
    23 		"typography": {
       
    24 			"fontSize": true,
       
    25 			"lineHeight": true,
       
    26 			"__experimentalFontFamily": true,
       
    27 			"__experimentalFontWeight": true,
       
    28 			"__experimentalFontStyle": true,
       
    29 			"__experimentalTextTransform": true,
       
    30 			"__experimentalTextDecoration": true,
       
    31 			"__experimentalLetterSpacing": true,
       
    32 			"__experimentalDefaultControls": {
       
    33 				"fontSize": true
       
    34 			}
       
    35 		},
       
    36 		"layout": {
    22 			"allowSwitching": false,
    37 			"allowSwitching": false,
    23 			"allowInheriting": false,
    38 			"allowInheriting": false,
    24 			"default": {
    39 			"default": {
    25 				"type": "flex"
    40 				"type": "flex"
    26 			}
    41 			}
       
    42 		},
       
    43 		"interactivity": {
       
    44 			"clientNavigation": true
    27 		}
    45 		}
    28 	},
    46 	},
    29 	"editorStyle": "wp-block-buttons-editor",
    47 	"editorStyle": "wp-block-buttons-editor",
    30 	"style": "wp-block-buttons"
    48 	"style": "wp-block-buttons"
    31 }
    49 }