wp/wp-includes/blocks/search/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/search",
     4 	"name": "core/search",
     5 	"title": "Search",
     5 	"title": "Search",
     6 	"category": "widgets",
     6 	"category": "widgets",
     7 	"description": "Help visitors find your content.",
     7 	"description": "Help visitors find your content.",
     8 	"keywords": [ "find" ],
     8 	"keywords": [ "find" ],
    36 			"default": "button-outside"
    36 			"default": "button-outside"
    37 		},
    37 		},
    38 		"buttonUseIcon": {
    38 		"buttonUseIcon": {
    39 			"type": "boolean",
    39 			"type": "boolean",
    40 			"default": false
    40 			"default": false
       
    41 		},
       
    42 		"query": {
       
    43 			"type": "object",
       
    44 			"default": {}
       
    45 		},
       
    46 		"isSearchFieldHidden": {
       
    47 			"type": "boolean",
       
    48 			"default": false
    41 		}
    49 		}
    42 	},
    50 	},
    43 	"supports": {
    51 	"supports": {
    44 		"align": [ "left", "center", "right" ],
    52 		"align": [ "left", "center", "right" ],
    45 		"color": {
    53 		"color": {
    46 			"gradients": true,
    54 			"gradients": true,
    47 			"__experimentalSkipSerialization": true,
    55 			"__experimentalSkipSerialization": true,
    48 			"__experimentalDefaultControls": {
    56 			"__experimentalDefaultControls": {
    49 				"background": true,
    57 				"background": true,
    50 				"text": true
    58 				"text": true
       
    59 			}
       
    60 		},
       
    61 		"interactivity": true,
       
    62 		"typography": {
       
    63 			"__experimentalSkipSerialization": true,
       
    64 			"__experimentalSelector": ".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",
       
    65 			"fontSize": true,
       
    66 			"lineHeight": true,
       
    67 			"__experimentalFontFamily": true,
       
    68 			"__experimentalFontWeight": true,
       
    69 			"__experimentalFontStyle": true,
       
    70 			"__experimentalTextTransform": true,
       
    71 			"__experimentalTextDecoration": true,
       
    72 			"__experimentalLetterSpacing": true,
       
    73 			"__experimentalDefaultControls": {
       
    74 				"fontSize": true
    51 			}
    75 			}
    52 		},
    76 		},
    53 		"__experimentalBorder": {
    77 		"__experimentalBorder": {
    54 			"color": true,
    78 			"color": true,
    55 			"radius": true,
    79 			"radius": true,