wp/wp-includes/blocks/details/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/details",
       
     5 	"title": "Details",
       
     6 	"category": "text",
       
     7 	"description": "Hide and show additional content.",
       
     8 	"keywords": [ "accordion", "summary", "toggle", "disclosure" ],
       
     9 	"textdomain": "default",
       
    10 	"attributes": {
       
    11 		"showContent": {
       
    12 			"type": "boolean",
       
    13 			"default": false
       
    14 		},
       
    15 		"summary": {
       
    16 			"type": "rich-text",
       
    17 			"source": "rich-text",
       
    18 			"selector": "summary"
       
    19 		}
       
    20 	},
       
    21 	"supports": {
       
    22 		"__experimentalOnEnter": true,
       
    23 		"align": [ "wide", "full" ],
       
    24 		"color": {
       
    25 			"gradients": true,
       
    26 			"link": true,
       
    27 			"__experimentalDefaultControls": {
       
    28 				"background": true,
       
    29 				"text": true
       
    30 			}
       
    31 		},
       
    32 		"__experimentalBorder": {
       
    33 			"color": true,
       
    34 			"width": true,
       
    35 			"style": true
       
    36 		},
       
    37 		"html": false,
       
    38 		"spacing": {
       
    39 			"margin": true,
       
    40 			"padding": true,
       
    41 			"blockGap": true,
       
    42 			"__experimentalDefaultControls": {
       
    43 				"margin": false,
       
    44 				"padding": false
       
    45 			}
       
    46 		},
       
    47 		"typography": {
       
    48 			"fontSize": true,
       
    49 			"lineHeight": true,
       
    50 			"__experimentalFontFamily": true,
       
    51 			"__experimentalFontWeight": true,
       
    52 			"__experimentalFontStyle": true,
       
    53 			"__experimentalTextTransform": true,
       
    54 			"__experimentalTextDecoration": true,
       
    55 			"__experimentalLetterSpacing": true,
       
    56 			"__experimentalDefaultControls": {
       
    57 				"fontSize": true
       
    58 			}
       
    59 		},
       
    60 		"layout": {
       
    61 			"allowEditing": false
       
    62 		},
       
    63 		"interactivity": {
       
    64 			"clientNavigation": true
       
    65 		}
       
    66 	},
       
    67 	"editorStyle": "wp-block-details-editor",
       
    68 	"style": "wp-block-details"
       
    69 }