wp/wp-includes/blocks/cover/block.json
changeset 18 be944660c56a
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
       
     1 {
       
     2 	"apiVersion": 2,
       
     3 	"name": "core/cover",
       
     4 	"title": "Cover",
       
     5 	"category": "media",
       
     6 	"description": "Add an image or video with a text overlay — great for headers.",
       
     7 	"textdomain": "default",
       
     8 	"attributes": {
       
     9 		"url": {
       
    10 			"type": "string"
       
    11 		},
       
    12 		"id": {
       
    13 			"type": "number"
       
    14 		},
       
    15 		"hasParallax": {
       
    16 			"type": "boolean",
       
    17 			"default": false
       
    18 		},
       
    19 		"isRepeated": {
       
    20 			"type": "boolean",
       
    21 			"default": false
       
    22 		},
       
    23 		"dimRatio": {
       
    24 			"type": "number",
       
    25 			"default": 50
       
    26 		},
       
    27 		"overlayColor": {
       
    28 			"type": "string"
       
    29 		},
       
    30 		"customOverlayColor": {
       
    31 			"type": "string"
       
    32 		},
       
    33 		"backgroundType": {
       
    34 			"type": "string",
       
    35 			"default": "image"
       
    36 		},
       
    37 		"focalPoint": {
       
    38 			"type": "object"
       
    39 		},
       
    40 		"minHeight": {
       
    41 			"type": "number"
       
    42 		},
       
    43 		"minHeightUnit": {
       
    44 			"type": "string"
       
    45 		},
       
    46 		"gradient": {
       
    47 			"type": "string"
       
    48 		},
       
    49 		"customGradient": {
       
    50 			"type": "string"
       
    51 		},
       
    52 		"contentPosition": {
       
    53 			"type": "string"
       
    54 		}
       
    55 	},
       
    56 	"supports": {
       
    57 		"anchor": true,
       
    58 		"align": true,
       
    59 		"html": false,
       
    60 		"spacing": {
       
    61 			"padding": true
       
    62 		},
       
    63 		"color": {
       
    64 			"__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
       
    65 			"text": false,
       
    66 			"background": false
       
    67 		}
       
    68 	},
       
    69 	"editorStyle": "wp-block-cover-editor",
       
    70 	"style": "wp-block-cover"
       
    71 }