wp/wp-includes/blocks/media-text/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/media-text",
     4 	"name": "core/media-text",
     5 	"title": "Media & Text",
     5 	"title": "Media & Text",
     6 	"category": "media",
     6 	"category": "media",
     7 	"description": "Set media and words side-by-side for a richer layout.",
     7 	"description": "Set media and words side-by-side for a richer layout.",
     8 	"keywords": [ "image", "video" ],
     8 	"keywords": [ "image", "video" ],
     9 	"textdomain": "default",
     9 	"textdomain": "default",
    10 	"attributes": {
    10 	"attributes": {
    11 		"align": {
    11 		"align": {
    12 			"type": "string",
    12 			"type": "string",
    13 			"default": "wide"
    13 			"default": "none"
    14 		},
    14 		},
    15 		"mediaAlt": {
    15 		"mediaAlt": {
    16 			"type": "string",
    16 			"type": "string",
    17 			"source": "attribute",
    17 			"source": "attribute",
    18 			"selector": "figure img",
    18 			"selector": "figure img",
    19 			"attribute": "alt",
    19 			"attribute": "alt",
    20 			"default": ""
    20 			"default": "",
       
    21 			"__experimentalRole": "content"
    21 		},
    22 		},
    22 		"mediaPosition": {
    23 		"mediaPosition": {
    23 			"type": "string",
    24 			"type": "string",
    24 			"default": "left"
    25 			"default": "left"
    25 		},
    26 		},
    26 		"mediaId": {
    27 		"mediaId": {
    27 			"type": "number"
    28 			"type": "number",
       
    29 			"__experimentalRole": "content"
    28 		},
    30 		},
    29 		"mediaUrl": {
    31 		"mediaUrl": {
    30 			"type": "string",
    32 			"type": "string",
    31 			"source": "attribute",
    33 			"source": "attribute",
    32 			"selector": "figure video,figure img",
    34 			"selector": "figure video,figure img",
    33 			"attribute": "src"
    35 			"attribute": "src",
       
    36 			"__experimentalRole": "content"
    34 		},
    37 		},
    35 		"mediaLink": {
    38 		"mediaLink": {
    36 			"type": "string"
    39 			"type": "string"
    37 		},
    40 		},
    38 		"linkDestination": {
    41 		"linkDestination": {
    46 		},
    49 		},
    47 		"href": {
    50 		"href": {
    48 			"type": "string",
    51 			"type": "string",
    49 			"source": "attribute",
    52 			"source": "attribute",
    50 			"selector": "figure a",
    53 			"selector": "figure a",
    51 			"attribute": "href"
    54 			"attribute": "href",
       
    55 			"__experimentalRole": "content"
    52 		},
    56 		},
    53 		"rel": {
    57 		"rel": {
    54 			"type": "string",
    58 			"type": "string",
    55 			"source": "attribute",
    59 			"source": "attribute",
    56 			"selector": "figure a",
    60 			"selector": "figure a",
    61 			"source": "attribute",
    65 			"source": "attribute",
    62 			"selector": "figure a",
    66 			"selector": "figure a",
    63 			"attribute": "class"
    67 			"attribute": "class"
    64 		},
    68 		},
    65 		"mediaType": {
    69 		"mediaType": {
    66 			"type": "string"
    70 			"type": "string",
       
    71 			"__experimentalRole": "content"
    67 		},
    72 		},
    68 		"mediaWidth": {
    73 		"mediaWidth": {
    69 			"type": "number",
    74 			"type": "number",
    70 			"default": 50
    75 			"default": 50
    71 		},
    76 		},
    82 		"imageFill": {
    87 		"imageFill": {
    83 			"type": "boolean"
    88 			"type": "boolean"
    84 		},
    89 		},
    85 		"focalPoint": {
    90 		"focalPoint": {
    86 			"type": "object"
    91 			"type": "object"
       
    92 		},
       
    93 		"allowedBlocks": {
       
    94 			"type": "array"
       
    95 		},
       
    96 		"useFeaturedImage": {
       
    97 			"type": "boolean",
       
    98 			"default": false
    87 		}
    99 		}
    88 	},
   100 	},
       
   101 	"usesContext": [ "postId", "postType" ],
    89 	"supports": {
   102 	"supports": {
    90 		"anchor": true,
   103 		"anchor": true,
    91 		"align": [ "wide", "full" ],
   104 		"align": [ "wide", "full" ],
    92 		"html": false,
   105 		"html": false,
    93 		"color": {
   106 		"color": {
    94 			"gradients": true,
   107 			"gradients": true,
       
   108 			"heading": true,
    95 			"link": true,
   109 			"link": true,
    96 			"__experimentalDefaultControls": {
   110 			"__experimentalDefaultControls": {
    97 				"background": true,
   111 				"background": true,
    98 				"text": true
   112 				"text": true
    99 			}
   113 			}
       
   114 		},
       
   115 		"spacing": {
       
   116 			"margin": true,
       
   117 			"padding": true
       
   118 		},
       
   119 		"typography": {
       
   120 			"fontSize": true,
       
   121 			"lineHeight": true,
       
   122 			"__experimentalFontFamily": true,
       
   123 			"__experimentalFontWeight": true,
       
   124 			"__experimentalFontStyle": true,
       
   125 			"__experimentalTextTransform": true,
       
   126 			"__experimentalTextDecoration": true,
       
   127 			"__experimentalLetterSpacing": true,
       
   128 			"__experimentalDefaultControls": {
       
   129 				"fontSize": true
       
   130 			}
       
   131 		},
       
   132 		"interactivity": {
       
   133 			"clientNavigation": true
   100 		}
   134 		}
   101 	},
   135 	},
   102 	"editorStyle": "wp-block-media-text-editor",
   136 	"editorStyle": "wp-block-media-text-editor",
   103 	"style": "wp-block-media-text"
   137 	"style": "wp-block-media-text"
   104 }
   138 }