diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/blocks/blocks-json.php --- a/wp/wp-includes/blocks/blocks-json.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/blocks/blocks-json.php Fri Sep 05 18:52:52 2025 +0200 @@ -27,6 +27,12 @@ ), 'supports' => array( 'align' => true, + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ), 'html' => false, 'spacing' => array( 'margin' => true, @@ -49,6 +55,15 @@ 'fontSize' => true ) ), + 'color' => array( + 'gradients' => true, + 'link' => true, + '__experimentalDefaultControls' => array( + 'background' => true, + 'text' => true, + 'link' => true + ) + ), 'interactivity' => array( 'clientNavigation' => true ) @@ -70,22 +85,26 @@ ), 'textdomain' => 'default', 'attributes' => array( + 'blob' => array( + 'type' => 'string', + 'role' => 'local' + ), 'src' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'audio', 'attribute' => 'src', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'caption' => array( 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'figcaption', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'id' => array( 'type' => 'number', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'autoplay' => array( 'type' => 'boolean', @@ -261,34 +280,34 @@ 'source' => 'attribute', 'selector' => 'a', 'attribute' => 'href', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'title' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'a,button', 'attribute' => 'title', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'text' => array( 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'a,button', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'linkTarget' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'a', 'attribute' => 'target', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'rel' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'a', 'attribute' => 'rel', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'placeholder' => array( 'type' => 'string' @@ -320,6 +339,16 @@ ) ), 'typography' => array( + '__experimentalSkipSerialization' => array( + 'fontSize', + 'lineHeight', + 'fontFamily', + 'fontWeight', + 'fontStyle', + 'textTransform', + 'textDecoration', + 'letterSpacing' + ), 'fontSize' => true, 'lineHeight' => true, '__experimentalFontFamily' => true, @@ -328,6 +357,7 @@ '__experimentalTextTransform' => true, '__experimentalTextDecoration' => true, '__experimentalLetterSpacing' => true, + '__experimentalWritingMode' => true, '__experimentalDefaultControls' => array( 'fontSize' => true ) @@ -359,7 +389,6 @@ 'width' => true ) ), - '__experimentalSelector' => '.wp-block-button .wp-block-button__link', 'interactivity' => array( 'clientNavigation' => true ) @@ -376,7 +405,13 @@ ) ), 'editorStyle' => 'wp-block-button-editor', - 'style' => 'wp-block-button' + 'style' => 'wp-block-button', + 'selectors' => array( + 'root' => '.wp-block-button .wp-block-button__link', + 'typography' => array( + 'writingMode' => '.wp-block-button' + ) + ) ), 'buttons' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -400,8 +435,19 @@ ), 'html' => false, '__experimentalExposeControlsToChildren' => true, + 'color' => array( + 'gradients' => true, + 'text' => false, + '__experimentalDefaultControls' => array( + 'background' => true + ) + ), 'spacing' => array( - 'blockGap' => true, + 'blockGap' => array( + 'horizontal', + 'vertical' + ), + 'padding' => true, 'margin' => array( 'top', 'bottom' @@ -423,6 +469,18 @@ 'fontSize' => true ) ), + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true, + '__experimentalDefaultControls' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ) + ), 'layout' => array( 'allowSwitching' => false, 'allowInheriting' => false, @@ -493,11 +551,18 @@ '$schema' => 'https://schemas.wp.org/trunk/block.json', 'apiVersion' => 3, 'name' => 'core/categories', - 'title' => 'Categories List', + 'title' => 'Terms List', 'category' => 'widgets', - 'description' => 'Display a list of all categories.', + 'description' => 'Display a list of all terms of a given taxonomy.', + 'keywords' => array( + 'categories' + ), 'textdomain' => 'default', 'attributes' => array( + 'taxonomy' => array( + 'type' => 'string', + 'default' => 'category' + ), 'displayAsDropdown' => array( 'type' => 'boolean', 'default' => false @@ -517,7 +582,18 @@ 'showEmpty' => array( 'type' => 'boolean', 'default' => false - ) + ), + 'label' => array( + 'type' => 'string', + 'role' => 'content' + ), + 'showLabel' => array( + 'type' => 'boolean', + 'default' => true + ) + ), + 'usesContext' => array( + 'enhancedPagination' ), 'supports' => array( 'align' => true, @@ -543,8 +619,29 @@ 'fontSize' => true ) ), + 'color' => array( + 'gradients' => true, + 'link' => true, + '__experimentalDefaultControls' => array( + 'background' => true, + 'text' => true, + 'link' => true + ) + ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'editorStyle' => 'wp-block-categories-editor', @@ -680,10 +777,12 @@ ), '__experimentalBorder' => array( 'color' => true, + 'radius' => true, 'style' => true, 'width' => true, '__experimentalDefaultControls' => array( 'color' => true, + 'radius' => true, 'style' => true, 'width' => true ) @@ -873,8 +972,21 @@ ), 'interactivity' => array( 'clientNavigation' => true - ) - ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ) + ), + 'style' => 'wp-block-comment-author-name' ), 'comment-content' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -917,6 +1029,18 @@ 'fontSize' => true ) ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ), 'spacing' => array( 'padding' => array( 'horizontal', @@ -927,7 +1051,8 @@ ) ), 'html' => false - ) + ), + 'style' => 'wp-block-comment-content' ), 'comment-date' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -982,8 +1107,21 @@ ), 'interactivity' => array( 'clientNavigation' => true - ) - ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ) + ), + 'style' => 'wp-block-comment-date' ), 'comment-edit-link' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -1021,7 +1159,11 @@ ), 'spacing' => array( 'margin' => true, - 'padding' => true + 'padding' => true, + '__experimentalDefaultControls' => array( + 'margin' => false, + 'padding' => false + ) ), 'typography' => array( 'fontSize' => true, @@ -1038,8 +1180,15 @@ ), 'interactivity' => array( 'clientNavigation' => true - ) - ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ), + 'style' => 'wp-block-comment-edit-link' ), 'comment-reply-link' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -1072,7 +1221,11 @@ ), 'spacing' => array( 'margin' => true, - 'padding' => true + 'padding' => true, + '__experimentalDefaultControls' => array( + 'margin' => false, + 'padding' => false + ) ), 'typography' => array( 'fontSize' => true, @@ -1087,8 +1240,15 @@ 'fontSize' => true ) ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ), 'html' => false - ) + ), + 'style' => 'wp-block-comment-reply-link' ), 'comment-template' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -1127,6 +1287,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'style' => 'wp-block-comment-template' @@ -1181,6 +1353,18 @@ '__experimentalDefaultControls' => array( 'fontSize' => true ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'editorStyle' => 'wp-block-comments-editor', @@ -1211,6 +1395,11 @@ 'default' => 'none' ) ), + 'example' => array( + 'attributes' => array( + 'paginationArrow' => 'none' + ) + ), 'providesContext' => array( 'comments/paginationArrow' => 'paginationArrow' ), @@ -1422,6 +1611,9 @@ 'level' => array( 'type' => 'number', 'default' => 2 + ), + 'levelOptions' => array( + 'type' => 'array' ) ), 'supports' => array( @@ -1554,6 +1746,9 @@ 'tagName' => array( 'type' => 'string', 'default' => 'div' + ), + 'sizeSlug' => array( + 'type' => 'string' ) ), 'usesContext' => array( @@ -1648,6 +1843,18 @@ 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'summary' + ), + 'name' => array( + 'type' => 'string', + 'source' => 'attribute', + 'attribute' => 'name', + 'selector' => '.wp-block-details' + ), + 'allowedBlocks' => array( + 'type' => 'array' + ), + 'placeholder' => array( + 'type' => 'string' ) ), 'supports' => array( @@ -1656,6 +1863,7 @@ 'wide', 'full' ), + 'anchor' => true, 'color' => array( 'gradients' => true, 'link' => true, @@ -1713,21 +1921,21 @@ 'attributes' => array( 'url' => array( 'type' => 'string', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'caption' => array( 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'figcaption', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'type' => array( 'type' => 'string', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'providerNameSlug' => array( 'type' => 'string', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'allowResponsive' => array( 'type' => 'boolean', @@ -1736,12 +1944,12 @@ 'responsive' => array( 'type' => 'boolean', 'default' => false, - '__experimentalRole' => 'content' + 'role' => 'content' ), 'previewable' => array( 'type' => 'boolean', 'default' => true, - '__experimentalRole' => 'content' + 'role' => 'content' ) ), 'supports' => array( @@ -1773,8 +1981,13 @@ 'id' => array( 'type' => 'number' ), + 'blob' => array( + 'type' => 'string', + 'role' => 'local' + ), 'href' => array( - 'type' => 'string' + 'type' => 'string', + 'role' => 'content' ), 'fileId' => array( 'type' => 'string', @@ -1785,13 +1998,15 @@ 'fileName' => array( 'type' => 'rich-text', 'source' => 'rich-text', - 'selector' => 'a:not([download])' + 'selector' => 'a:not([download])', + 'role' => 'content' ), 'textLinkHref' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'a:not([download])', - 'attribute' => 'href' + 'attribute' => 'href', + 'role' => 'content' ), 'textLinkTarget' => array( 'type' => 'string', @@ -1806,7 +2021,8 @@ 'downloadButtonText' => array( 'type' => 'rich-text', 'source' => 'rich-text', - 'selector' => 'a[download]' + 'selector' => 'a[download]', + 'role' => 'content' ), 'displayPreview' => array( 'type' => 'boolean' @@ -1832,6 +2048,18 @@ 'link' => true ) ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ), 'interactivity' => true ), 'editorStyle' => 'wp-block-file-editor', @@ -2052,6 +2280,16 @@ 'supports' => array( 'anchor' => true, 'align' => true, + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'color' => true, + 'radius' => true + ) + ), 'html' => false, 'units' => array( 'px', @@ -2159,6 +2397,7 @@ 'text' => true ) ), + 'shadow' => true, 'spacing' => array( 'margin' => array( 'top', @@ -2232,12 +2471,15 @@ 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'h1,h2,h3,h4,h5,h6', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'level' => array( 'type' => 'number', 'default' => 2 ), + 'levelOptions' => array( + 'type' => 'array' + ), 'placeholder' => array( 'type' => 'string' ) @@ -2250,6 +2492,12 @@ 'anchor' => true, 'className' => true, 'splitting' => true, + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -2373,7 +2621,10 @@ 'usesContext' => array( 'allowResize', 'imageCrop', - 'fixedHeight' + 'fixedHeight', + 'postId', + 'postType', + 'queryId' ), 'description' => 'Insert an image to make a visual statement.', 'keywords' => array( @@ -2383,12 +2634,16 @@ ), 'textdomain' => 'default', 'attributes' => array( + 'blob' => array( + 'type' => 'string', + 'role' => 'local' + ), 'url' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'img', 'attribute' => 'src', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'alt' => array( 'type' => 'string', @@ -2396,13 +2651,13 @@ 'selector' => 'img', 'attribute' => 'alt', 'default' => '', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'caption' => array( 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'figcaption', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'lightbox' => array( 'type' => 'object', @@ -2415,14 +2670,14 @@ 'source' => 'attribute', 'selector' => 'img', 'attribute' => 'title', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'href' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'figure > a', 'attribute' => 'href', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'rel' => array( 'type' => 'string', @@ -2438,7 +2693,7 @@ ), 'id' => array( 'type' => 'number', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'width' => array( 'type' => 'string' @@ -2482,6 +2737,9 @@ 'filter' => array( 'duotone' => true ), + 'spacing' => array( + 'margin' => true + ), '__experimentalBorder' => array( 'color' => true, 'radius' => true, @@ -2551,6 +2809,15 @@ ), 'supports' => array( 'align' => true, + 'color' => array( + 'gradients' => true, + 'link' => true, + '__experimentalDefaultControls' => array( + 'background' => true, + 'text' => true, + 'link' => true + ) + ), 'html' => false, 'spacing' => array( 'margin' => true, @@ -2695,6 +2962,18 @@ 'fontSize' => true ) ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ), 'interactivity' => array( 'clientNavigation' => true ) @@ -2740,7 +3019,7 @@ 'allowedBlocks' => array( 'core/list-item' ), - 'description' => 'Create a bulleted or numbered list.', + 'description' => 'An organized collection of items displayed in a specific order.', 'keywords' => array( 'bullet list', 'ordered list', @@ -2751,7 +3030,7 @@ 'ordered' => array( 'type' => 'boolean', 'default' => false, - '__experimentalRole' => 'content' + 'role' => 'content' ), 'values' => array( 'type' => 'string', @@ -2763,7 +3042,7 @@ 'ul' ), 'default' => '', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'type' => array( 'type' => 'string' @@ -2781,6 +3060,12 @@ 'supports' => array( 'anchor' => true, 'html' => false, + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ), 'typography' => array( 'fontSize' => true, 'lineHeight' => true, @@ -2817,6 +3102,9 @@ 'clientNavigation' => true ) ), + 'selectors' => array( + 'border' => '.wp-block-list:not(.wp-block-list .wp-block-list)' + ), 'editorStyle' => 'wp-block-list-editor', 'style' => 'wp-block-list' ), @@ -2824,7 +3112,7 @@ '$schema' => 'https://schemas.wp.org/trunk/block.json', 'apiVersion' => 3, 'name' => 'core/list-item', - 'title' => 'List item', + 'title' => 'List Item', 'category' => 'text', 'parent' => array( 'core/list' @@ -2832,7 +3120,7 @@ 'allowedBlocks' => array( 'core/list' ), - 'description' => 'Create a list item.', + 'description' => 'An individual item within a list.', 'textdomain' => 'default', 'attributes' => array( 'placeholder' => array( @@ -2842,13 +3130,27 @@ 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'li', - '__experimentalRole' => 'content' + 'role' => 'content' ) ), 'supports' => array( + 'anchor' => true, 'className' => false, - '__experimentalSelector' => '.wp-block-list > li', 'splitting' => true, + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ), + 'color' => array( + 'gradients' => true, + 'link' => true, + 'background' => true, + '__experimentalDefaultControls' => array( + 'text' => true + ) + ), 'spacing' => array( 'margin' => true, 'padding' => true, @@ -2873,6 +3175,10 @@ 'interactivity' => array( 'clientNavigation' => true ) + ), + 'selectors' => array( + 'root' => '.wp-block-list > li', + 'border' => '.wp-block-list:not(.wp-block-list .wp-block-list) > li' ) ), 'loginout' => array( @@ -2898,8 +3204,17 @@ 'default' => true ) ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'className' => true, + 'color' => array( + 'background' => true, + 'text' => false, + 'gradients' => true, + 'link' => true + ), 'spacing' => array( 'margin' => true, 'padding' => true, @@ -2921,10 +3236,17 @@ 'fontSize' => true ) ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ), 'interactivity' => array( 'clientNavigation' => true ) - ) + ), + 'style' => 'wp-block-loginout' ), 'media-text' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -2949,7 +3271,7 @@ 'selector' => 'figure img', 'attribute' => 'alt', 'default' => '', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'mediaPosition' => array( 'type' => 'string', @@ -2957,14 +3279,14 @@ ), 'mediaId' => array( 'type' => 'number', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'mediaUrl' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'figure video,figure img', 'attribute' => 'src', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'mediaLink' => array( 'type' => 'string' @@ -2983,7 +3305,7 @@ 'source' => 'attribute', 'selector' => 'figure a', 'attribute' => 'href', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'rel' => array( 'type' => 'string', @@ -2999,7 +3321,7 @@ ), 'mediaType' => array( 'type' => 'string', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'mediaWidth' => array( 'type' => 'number', @@ -3040,6 +3362,18 @@ 'full' ), 'html' => false, + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true, + '__experimentalDefaultControls' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ) + ), 'color' => array( 'gradients' => true, 'heading' => true, @@ -3456,6 +3790,19 @@ 'supports' => array( 'reusable' => false, 'html' => false, + 'typography' => array( + 'fontSize' => true, + 'lineHeight' => true, + '__experimentalFontFamily' => true, + '__experimentalFontWeight' => true, + '__experimentalFontStyle' => true, + '__experimentalTextTransform' => true, + '__experimentalTextDecoration' => true, + '__experimentalLetterSpacing' => true, + '__experimentalDefaultControls' => array( + 'fontSize' => true + ) + ), 'interactivity' => array( 'clientNavigation' => true ) @@ -3546,6 +3893,31 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + 'color' => array( + 'text' => true, + 'background' => true, + 'link' => true, + 'gradients' => true, + '__experimentalDefaultControls' => array( + 'background' => true, + 'text' => true, + 'link' => true + ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ), + 'spacing' => array( + 'padding' => true, + 'margin' => true, + '__experimentalDefaultControls' => array( + 'padding' => false, + 'margin' => false + ) ) ), 'editorStyle' => 'wp-block-page-list-editor', @@ -3631,7 +4003,7 @@ 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'p', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'dropCap' => array( 'type' => 'boolean', @@ -3652,6 +4024,12 @@ 'splitting' => true, 'anchor' => true, 'className' => false, + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -3695,7 +4073,7 @@ '$schema' => 'https://schemas.wp.org/trunk/block.json', 'apiVersion' => 3, 'name' => 'core/pattern', - 'title' => 'Pattern placeholder', + 'title' => 'Pattern Placeholder', 'category' => 'theme', 'description' => 'Show a block pattern.', 'supports' => array( @@ -3741,11 +4119,13 @@ ), 'isLink' => array( 'type' => 'boolean', - 'default' => false + 'default' => false, + 'role' => 'content' ), 'linkTarget' => array( 'type' => 'string', - 'default' => '_self' + 'default' => '_self', + 'role' => 'content' ) ), 'usesContext' => array( @@ -3783,8 +4163,21 @@ ), 'interactivity' => array( 'clientNavigation' => true - ) - ), + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ) + ), + 'editorStyle' => 'wp-block-post-author-editor', 'style' => 'wp-block-post-author' ), 'post-author-biography' => array( @@ -3804,6 +4197,9 @@ 'postType', 'postId' ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'spacing' => array( 'margin' => true, @@ -3832,8 +4228,21 @@ ), 'interactivity' => array( 'clientNavigation' => true - ) - ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ) + ), + 'style' => 'wp-block-post-author-biography' ), 'post-author-name' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -3849,17 +4258,22 @@ ), 'isLink' => array( 'type' => 'boolean', - 'default' => false + 'default' => false, + 'role' => 'content' ), 'linkTarget' => array( 'type' => 'string', - 'default' => '_self' + 'default' => '_self', + 'role' => 'content' ) ), 'usesContext' => array( 'postType', 'postId' ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'html' => false, 'spacing' => array( @@ -3890,8 +4304,21 @@ ), 'interactivity' => array( 'clientNavigation' => true - ) - ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ) + ), + 'style' => 'wp-block-post-author-name' ), 'post-comments-form' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -3935,6 +4362,18 @@ '__experimentalDefaultControls' => array( 'fontSize' => true ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'editorStyle' => 'wp-block-post-comments-form-editor', @@ -3942,6 +4381,11 @@ 'wp-block-post-comments-form', 'wp-block-buttons', 'wp-block-button' + ), + 'example' => array( + 'attributes' => array( + 'textAlign' => 'center' + ) ) ), 'post-content' => array( @@ -3957,6 +4401,9 @@ 'postType', 'queryId' ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'align' => array( 'wide', @@ -3964,14 +4411,28 @@ ), 'html' => false, 'layout' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true + ) + ), 'dimensions' => array( 'minHeight' => true ), 'spacing' => array( - 'blockGap' => true + 'blockGap' => true, + 'padding' => true, + 'margin' => true, + '__experimentalDefaultControls' => array( + 'margin' => false, + 'padding' => false + ) ), 'color' => array( 'gradients' => true, + 'heading' => true, 'link' => true, '__experimentalDefaultControls' => array( 'background' => false, @@ -3990,8 +4451,21 @@ '__experimentalDefaultControls' => array( 'fontSize' => true ) - ) - ), + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ) + ), + 'style' => 'wp-block-post-content', 'editorStyle' => 'wp-block-post-content-editor' ), 'post-date' => array( @@ -4011,7 +4485,8 @@ ), 'isLink' => array( 'type' => 'boolean', - 'default' => false + 'default' => false, + 'role' => 'content' ), 'displayType' => array( 'type' => 'string', @@ -4023,6 +4498,9 @@ 'postType', 'queryId' ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'html' => false, 'color' => array( @@ -4053,6 +4531,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ) ), @@ -4085,6 +4575,9 @@ 'postType', 'queryId' ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'html' => false, 'color' => array( @@ -4115,6 +4608,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'editorStyle' => 'wp-block-post-excerpt-editor', @@ -4131,7 +4636,8 @@ 'attributes' => array( 'isLink' => array( 'type' => 'boolean', - 'default' => false + 'default' => false, + 'role' => 'content' ), 'aspectRatio' => array( 'type' => 'string' @@ -4152,11 +4658,13 @@ 'rel' => array( 'type' => 'string', 'attribute' => 'rel', - 'default' => '' + 'default' => '', + 'role' => 'content' ), 'linkTarget' => array( 'type' => 'string', - 'default' => '_self' + 'default' => '_self', + 'role' => 'content' ), 'overlayColor' => array( 'type' => 'string' @@ -4184,6 +4692,9 @@ 'postType', 'queryId' ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'align' => array( 'left', @@ -4303,7 +4814,7 @@ 'name' => 'core/post-template', 'title' => 'Post Template', 'category' => 'theme', - 'parent' => array( + 'ancestor' => array( 'core/query' ), 'description' => 'Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.', @@ -4314,7 +4825,8 @@ 'displayLayout', 'templateSlug', 'previewPostType', - 'enhancedPagination' + 'enhancedPagination', + 'postType' ), 'supports' => array( 'reusable' => false, @@ -4346,15 +4858,25 @@ ) ), 'spacing' => array( + 'margin' => true, + 'padding' => true, 'blockGap' => array( '__experimentalDefault' => '1.25em' ), '__experimentalDefaultControls' => array( - 'blockGap' => true + 'blockGap' => true, + 'padding' => false, + 'margin' => false ) ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true ) ), 'style' => 'wp-block-post-template', @@ -4392,6 +4914,9 @@ 'postId', 'postType' ), + 'example' => array( + 'viewportWidth' => 350 + ), 'supports' => array( 'html' => false, 'color' => array( @@ -4422,6 +4947,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'style' => 'wp-block-post-terms' @@ -4447,19 +4984,28 @@ 'type' => 'number', 'default' => 2 ), + 'levelOptions' => array( + 'type' => 'array' + ), 'isLink' => array( 'type' => 'boolean', - 'default' => false + 'default' => false, + 'role' => 'content' ), 'rel' => array( 'type' => 'string', 'attribute' => 'rel', - 'default' => '' + 'default' => '', + 'role' => 'content' ), 'linkTarget' => array( 'type' => 'string', - 'default' => '_self' - ) + 'default' => '_self', + 'role' => 'content' + ) + ), + 'example' => array( + 'viewportWidth' => 350 ), 'supports' => array( 'align' => array( @@ -4495,6 +5041,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'style' => 'wp-block-post-title' @@ -4513,7 +5071,7 @@ 'source' => 'rich-text', 'selector' => 'pre', '__unstablePreserveWhiteSpace' => true, - '__experimentalRole' => 'content' + 'role' => 'content' ) ), 'supports' => array( @@ -4544,6 +5102,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'style' => 'wp-block-preformatted' @@ -4561,13 +5131,13 @@ 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'p', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'citation' => array( 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'cite', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'textAlign' => array( 'type' => 'string' @@ -4581,6 +5151,13 @@ 'wide', 'full' ), + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true + ) + ), 'color' => array( 'gradients' => true, 'background' => true, @@ -4590,6 +5167,12 @@ 'text' => true ) ), + 'dimensions' => array( + 'minHeight' => true, + '__experimentalDefaultControls' => array( + 'minHeight' => false + ) + ), 'spacing' => array( 'margin' => true, 'padding' => true @@ -4639,6 +5222,13 @@ 'title' => 'Query Loop', 'category' => 'theme', 'description' => 'An advanced block that allows displaying post types based on different query parameters and visual configurations.', + 'keywords' => array( + 'posts', + 'list', + 'blog', + 'blogs', + 'custom post types' + ), 'textdomain' => 'default', 'attributes' => array( 'queryId' => array( @@ -4663,6 +5253,9 @@ 'taxQuery' => null, 'parents' => array( + ), + 'format' => array( + ) ) ), @@ -4678,6 +5271,9 @@ 'default' => false ) ), + 'usesContext' => array( + 'templateSlug' + ), 'providesContext' => array( 'queryId' => 'queryId', 'query' => 'query', @@ -4699,10 +5295,10 @@ '$schema' => 'https://schemas.wp.org/trunk/block.json', 'apiVersion' => 3, 'name' => 'core/query-no-results', - 'title' => 'No results', + 'title' => 'No Results', 'category' => 'theme', 'description' => 'Contains the block elements used to render content when no query results are found.', - 'parent' => array( + 'ancestor' => array( 'core/query' ), 'textdomain' => 'default', @@ -4982,6 +5578,9 @@ 'type' => 'number', 'default' => 1 ), + 'levelOptions' => array( + 'type' => 'array' + ), 'showPrefix' => array( 'type' => 'boolean', 'default' => true @@ -4991,6 +5590,11 @@ 'default' => true ) ), + 'example' => array( + 'attributes' => array( + 'type' => 'search' + ) + ), 'supports' => array( 'align' => array( 'wide', @@ -5023,10 +5627,91 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'style' => 'wp-block-query-title' ), + 'query-total' => array( + '$schema' => 'https://schemas.wp.org/trunk/block.json', + 'apiVersion' => 3, + 'name' => 'core/query-total', + 'title' => 'Query Total', + 'category' => 'theme', + 'ancestor' => array( + 'core/query' + ), + 'description' => 'Display the total number of results in a query.', + 'textdomain' => 'default', + 'attributes' => array( + 'displayType' => array( + 'type' => 'string', + 'default' => 'total-results' + ) + ), + 'usesContext' => array( + 'queryId', + 'query' + ), + 'supports' => array( + 'align' => array( + 'wide', + 'full' + ), + 'html' => false, + 'spacing' => array( + 'margin' => true, + 'padding' => true + ), + 'color' => array( + 'gradients' => true, + '__experimentalDefaultControls' => array( + 'background' => true, + 'text' => true + ) + ), + 'typography' => array( + 'fontSize' => true, + 'lineHeight' => true, + '__experimentalFontFamily' => true, + '__experimentalFontWeight' => true, + '__experimentalFontStyle' => true, + '__experimentalTextTransform' => true, + '__experimentalTextDecoration' => true, + '__experimentalLetterSpacing' => true, + '__experimentalDefaultControls' => array( + 'fontSize' => true + ) + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ), + 'interactivity' => array( + 'clientNavigation' => true + ) + ), + 'style' => 'wp-block-query-total' + ), 'quote' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', 'apiVersion' => 3, @@ -5046,13 +5731,13 @@ 'selector' => 'blockquote', 'multiline' => 'p', 'default' => '', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'citation' => array( 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'cite', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'textAlign' => array( 'type' => 'string' @@ -5060,7 +5745,38 @@ ), 'supports' => array( 'anchor' => true, + 'align' => array( + 'left', + 'right', + 'wide', + 'full' + ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true + ) + ), + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true, + '__experimentalDefaultControls' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ) + ), + 'dimensions' => array( + 'minHeight' => true, + '__experimentalDefaultControls' => array( + 'minHeight' => false + ) + ), '__experimentalOnEnter' => true, '__experimentalOnMerge' => true, 'typography' => array( @@ -5089,7 +5805,9 @@ 'allowEditing' => false ), 'spacing' => array( - 'blockGap' => true + 'blockGap' => true, + 'padding' => true, + 'margin' => true ), 'interactivity' => array( 'clientNavigation' => true @@ -5224,6 +5942,26 @@ 'html' => false, 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ), + 'spacing' => array( + 'margin' => true, + 'padding' => true, + '__experimentalDefaultControls' => array( + 'padding' => false, + 'margin' => false + ) + ), + 'color' => array( + 'background' => true, + 'text' => true, + 'gradients' => true, + 'link' => true ) ), 'editorStyle' => 'wp-block-rss-editor', @@ -5243,7 +5981,7 @@ 'attributes' => array( 'label' => array( 'type' => 'string', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'showLabel' => array( 'type' => 'boolean', @@ -5252,7 +5990,7 @@ 'placeholder' => array( 'type' => 'string', 'default' => '', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'width' => array( 'type' => 'number' @@ -5262,7 +6000,7 @@ ), 'buttonText' => array( 'type' => 'string', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'buttonPosition' => array( 'type' => 'string', @@ -5324,6 +6062,9 @@ 'width' => true ) ), + 'spacing' => array( + 'margin' => true + ), 'html' => false ), 'editorStyle' => 'wp-block-search-editor', @@ -5346,6 +6087,14 @@ 'opacity' => array( 'type' => 'string', 'default' => 'alpha-channel' + ), + 'tagName' => array( + 'type' => 'string', + 'enum' => array( + 'hr', + 'div' + ), + 'default' => 'hr' ) ), 'supports' => array( @@ -5428,11 +6177,13 @@ ), 'isLink' => array( 'type' => 'boolean', - 'default' => true + 'default' => true, + 'role' => 'content' ), 'linkTarget' => array( 'type' => 'string', - 'default' => '_self' + 'default' => '_self', + 'role' => 'content' ), 'shouldSyncIcon' => array( 'type' => 'boolean' @@ -5498,10 +6249,25 @@ 'level' => array( 'type' => 'number', 'default' => 0 + ), + 'levelOptions' => array( + 'type' => 'array', + 'default' => array( + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ) ) ), 'example' => array( - + 'viewportWidth' => 350, + 'attributes' => array( + 'textAlign' => 'center' + ) ), 'supports' => array( 'align' => array( @@ -5533,15 +6299,23 @@ '__experimentalFontStyle' => true, '__experimentalFontWeight' => true, '__experimentalLetterSpacing' => true, + '__experimentalWritingMode' => true, '__experimentalDefaultControls' => array( 'fontSize' => true ) ), 'interactivity' => array( 'clientNavigation' => true - ) - ), - 'editorStyle' => 'wp-block-site-tagline-editor' + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) + ), + 'editorStyle' => 'wp-block-site-tagline-editor', + 'style' => 'wp-block-site-tagline' ), 'site-title' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', @@ -5556,16 +6330,30 @@ 'type' => 'number', 'default' => 1 ), + 'levelOptions' => array( + 'type' => 'array', + 'default' => array( + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ) + ), 'textAlign' => array( 'type' => 'string' ), 'isLink' => array( 'type' => 'boolean', - 'default' => true + 'default' => true, + 'role' => 'content' ), 'linkTarget' => array( 'type' => 'string', - 'default' => '_self' + 'default' => '_self', + 'role' => 'content' ) ), 'example' => array( @@ -5603,12 +6391,19 @@ '__experimentalFontStyle' => true, '__experimentalFontWeight' => true, '__experimentalLetterSpacing' => true, + '__experimentalWritingMode' => true, '__experimentalDefaultControls' => array( 'fontSize' => true ) ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true ) ), 'editorStyle' => 'wp-block-site-title-editor', @@ -5627,13 +6422,15 @@ 'textdomain' => 'default', 'attributes' => array( 'url' => array( - 'type' => 'string' + 'type' => 'string', + 'role' => 'content' ), 'service' => array( 'type' => 'string' ), 'label' => array( - 'type' => 'string' + 'type' => 'string', + 'role' => 'content' ), 'rel' => array( 'type' => 'string' @@ -5756,6 +6553,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'styles' => array( @@ -6023,11 +6832,14 @@ 'width' => true ) ), - '__experimentalSelector' => '.wp-block-table > table', 'interactivity' => array( 'clientNavigation' => true ) ), + 'selectors' => array( + 'root' => '.wp-block-table > table', + 'spacing' => '.wp-block-table' + ), 'styles' => array( array( 'name' => 'regular', @@ -6048,7 +6860,7 @@ 'name' => 'core/tag-cloud', 'title' => 'Tag Cloud', 'category' => 'widgets', - 'description' => 'A cloud of your most used tags.', + 'description' => 'A cloud of popular keywords, each sized by how often it appears.', 'textdomain' => 'default', 'attributes' => array( 'numberOfTags' => array( @@ -6102,6 +6914,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ), 'editorStyle' => 'wp-block-tag-cloud-editor' @@ -6184,6 +7008,18 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + '__experimentalBorder' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true, + '__experimentalDefaultControls' => array( + 'radius' => true, + 'color' => true, + 'width' => true, + 'style' => true + ) ) ) ), @@ -6251,7 +7087,7 @@ 'source' => 'rich-text', 'selector' => 'pre', '__unstablePreserveWhiteSpace' => true, - '__experimentalRole' => 'content' + 'role' => 'content' ), 'textAlign' => array( 'type' => 'string' @@ -6259,6 +7095,13 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -6267,6 +7110,12 @@ 'text' => true ) ), + 'dimensions' => array( + 'minHeight' => true, + '__experimentalDefaultControls' => array( + 'minHeight' => false + ) + ), 'typography' => array( 'fontSize' => true, '__experimentalFontFamily' => true, @@ -6276,6 +7125,7 @@ '__experimentalLetterSpacing' => true, '__experimentalTextTransform' => true, '__experimentalTextDecoration' => true, + '__experimentalWritingMode' => true, '__experimentalDefaultControls' => array( 'fontSize' => true ) @@ -6323,7 +7173,7 @@ 'type' => 'rich-text', 'source' => 'rich-text', 'selector' => 'figcaption', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'controls' => array( 'type' => 'boolean', @@ -6334,7 +7184,7 @@ ), 'id' => array( 'type' => 'number', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'loop' => array( 'type' => 'boolean', @@ -6361,12 +7211,16 @@ 'attribute' => 'preload', 'default' => 'metadata' ), + 'blob' => array( + 'type' => 'string', + 'role' => 'local' + ), 'src' => array( 'type' => 'string', 'source' => 'attribute', 'selector' => 'video', 'attribute' => 'src', - '__experimentalRole' => 'content' + 'role' => 'content' ), 'playsInline' => array( 'type' => 'boolean', @@ -6375,7 +7229,7 @@ 'attribute' => 'playsinline' ), 'tracks' => array( - '__experimentalRole' => 'content', + 'role' => 'content', 'type' => 'array', 'items' => array( 'type' => 'object'