summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/blocks-json.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/blocks-json.php')
-rw-r--r--wp-includes/blocks/blocks-json.php581
1 files changed, 455 insertions, 126 deletions
diff --git a/wp-includes/blocks/blocks-json.php b/wp-includes/blocks/blocks-json.php
index 8565618..ad2b43e 100644
--- a/wp-includes/blocks/blocks-json.php
+++ b/wp-includes/blocks/blocks-json.php
@@ -48,6 +48,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-archives-editor'
@@ -75,8 +78,8 @@
'__experimentalRole' => 'content'
),
'caption' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'figcaption',
'__experimentalRole' => 'content'
),
@@ -113,6 +116,9 @@
'margin' => false,
'padding' => false
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-audio-editor',
@@ -154,7 +160,11 @@
'alignWide' => false,
'spacing' => array(
'margin' => true,
- 'padding' => true
+ 'padding' => true,
+ '__experimentalDefaultControls' => array(
+ 'margin' => false,
+ 'padding' => false
+ )
),
'__experimentalBorder' => array(
'__experimentalSkipSerialization' => true,
@@ -170,6 +180,9 @@
'text' => false,
'background' => false,
'__experimentalDuotone' => 'img'
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'selectors' => array(
@@ -184,7 +197,7 @@
'name' => 'core/block',
'title' => 'Pattern',
'category' => 'reusable',
- 'description' => 'Create and save content to reuse across your site. Update the pattern, and the changes apply everywhere it’s used.',
+ 'description' => 'Reuse this design across your site.',
'keywords' => array(
'reusable'
),
@@ -192,12 +205,19 @@
'attributes' => array(
'ref' => array(
'type' => 'number'
+ ),
+ 'content' => array(
+ 'type' => 'object'
)
),
'supports' => array(
'customClassName' => false,
'html' => false,
- 'inserter' => false
+ 'inserter' => false,
+ 'renaming' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
)
),
'button' => array(
@@ -245,8 +265,8 @@
'__experimentalRole' => 'content'
),
'text' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'a,button',
'__experimentalRole' => 'content'
),
@@ -306,7 +326,9 @@
)
),
'reusable' => false,
- 'shadow' => true,
+ 'shadow' => array(
+ '__experimentalSkipSerialization' => true
+ ),
'spacing' => array(
'__experimentalSkipSerialization' => true,
'padding' => array(
@@ -330,7 +352,10 @@
'width' => true
)
),
- '__experimentalSelector' => '.wp-block-button .wp-block-button__link'
+ '__experimentalSelector' => '.wp-block-button .wp-block-button__link',
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'styles' => array(
array(
@@ -352,6 +377,9 @@
'name' => 'core/buttons',
'title' => 'Buttons',
'category' => 'design',
+ 'allowedBlocks' => array(
+ 'core/button'
+ ),
'description' => 'Prompt visitors to take action with a group of button-style links.',
'keywords' => array(
'link'
@@ -394,6 +422,9 @@
'default' => array(
'type' => 'flex'
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-buttons-editor',
@@ -444,6 +475,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-calendar'
@@ -501,6 +535,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-categories-editor',
@@ -516,8 +553,8 @@
'textdomain' => 'default',
'attributes' => array(
'content' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'code',
'__unstablePreserveWhiteSpace' => true
)
@@ -569,6 +606,9 @@
'background' => true,
'text' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-code'
@@ -622,6 +662,7 @@
'text' => true
)
),
+ 'shadow' => true,
'spacing' => array(
'blockGap' => true,
'padding' => true,
@@ -653,7 +694,10 @@
'fontSize' => true
)
),
- 'layout' => true
+ 'layout' => true,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
)
),
'columns' => array(
@@ -662,6 +706,9 @@
'name' => 'core/columns',
'title' => 'Columns',
'category' => 'design',
+ 'allowedBlocks' => array(
+ 'core/column'
+ ),
'description' => 'Display content in multiple columns, with blocks added to each column.',
'textdomain' => 'default',
'attributes' => array(
@@ -753,7 +800,11 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
- )
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ ),
+ 'shadow' => true
),
'editorStyle' => 'wp-block-columns-editor',
'style' => 'wp-block-columns'
@@ -812,6 +863,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -918,6 +972,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -971,6 +1028,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -1057,6 +1117,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-comment-template'
@@ -1128,6 +1191,11 @@
'parent' => array(
'core/comments'
),
+ 'allowedBlocks' => array(
+ 'core/comments-pagination-previous',
+ 'core/comments-pagination-numbers',
+ 'core/comments-pagination-next'
+ ),
'description' => 'Displays a paginated navigation to next/previous set of comments, when applicable.',
'textdomain' => 'default',
'attributes' => array(
@@ -1171,6 +1239,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-comments-pagination-editor',
@@ -1218,6 +1289,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -1257,6 +1331,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -1302,6 +1379,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -1314,7 +1394,7 @@
'ancestor' => array(
'core/comments'
),
- 'description' => 'Displays a title with the number of comments',
+ 'description' => 'Displays a title with the number of comments.',
'textdomain' => 'default',
'usesContext' => array(
'postId',
@@ -1373,6 +1453,9 @@
'__experimentalFontStyle' => true,
'__experimentalFontWeight' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -1397,9 +1480,6 @@
),
'alt' => array(
'type' => 'string',
- 'source' => 'attribute',
- 'selector' => 'img',
- 'attribute' => 'alt',
'default' => ''
),
'hasParallax' => array(
@@ -1420,6 +1500,9 @@
'customOverlayColor' => array(
'type' => 'string'
),
+ 'isUserOverlayColor' => array(
+ 'type' => 'boolean'
+ ),
'backgroundType' => array(
'type' => 'string',
'default' => 'image'
@@ -1508,6 +1591,9 @@
),
'enableContrastChecker' => false
),
+ 'dimensions' => array(
+ 'aspectRatio' => true
+ ),
'typography' => array(
'fontSize' => true,
'lineHeight' => true,
@@ -1523,6 +1609,9 @@
),
'layout' => array(
'allowJustification' => false
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-cover-editor',
@@ -1548,8 +1637,8 @@
'default' => false
),
'summary' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'summary'
)
),
@@ -1596,6 +1685,9 @@
),
'layout' => array(
'allowEditing' => false
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-details-editor',
@@ -1615,8 +1707,8 @@
'__experimentalRole' => 'content'
),
'caption' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'figcaption',
'__experimentalRole' => 'content'
),
@@ -1647,6 +1739,9 @@
'align' => true,
'spacing' => array(
'margin' => true
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-embed-editor',
@@ -1679,8 +1774,8 @@
'attribute' => 'id'
),
'fileName' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'a:not([download])'
),
'textLinkHref' => array(
@@ -1700,8 +1795,8 @@
'default' => true
),
'downloadButtonText' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'a[download]'
),
'displayPreview' => array(
@@ -1730,7 +1825,6 @@
),
'interactivity' => true
),
- 'viewScript' => 'file:./view.min.js',
'editorStyle' => 'wp-block-file-editor',
'style' => 'wp-block-file'
),
@@ -1740,7 +1834,7 @@
'name' => 'core/footnotes',
'title' => 'Footnotes',
'category' => 'text',
- 'description' => '',
+ 'description' => 'Display footnotes added to the page.',
'keywords' => array(
'references'
),
@@ -1774,6 +1868,7 @@
'html' => false,
'multiple' => false,
'reusable' => false,
+ 'inserter' => false,
'spacing' => array(
'margin' => true,
'padding' => true,
@@ -1795,6 +1890,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-footnotes'
@@ -1826,6 +1924,9 @@
'name' => 'core/gallery',
'title' => 'Gallery',
'category' => 'media',
+ 'allowedBlocks' => array(
+ 'core/image'
+ ),
'description' => 'Display multiple images in a rich gallery.',
'keywords' => array(
'images',
@@ -1873,8 +1974,8 @@
'attribute' => 'data-id'
),
'caption' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => '.blocks-gallery-item__caption'
)
)
@@ -1903,14 +2004,18 @@
'maximum' => 8
),
'caption' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => '.blocks-gallery-caption'
),
'imageCrop' => array(
'type' => 'boolean',
'default' => true
),
+ 'randomOrder' => array(
+ 'type' => 'boolean',
+ 'default' => false
+ ),
'fixedHeight' => array(
'type' => 'boolean',
'default' => true
@@ -1974,6 +2079,9 @@
'default' => array(
'type' => 'flex'
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-gallery-editor',
@@ -2018,7 +2126,6 @@
'__experimentalOnEnter' => true,
'__experimentalOnMerge' => true,
'__experimentalSettings' => true,
- '__experimentalMetadata' => true,
'align' => array(
'wide',
'full'
@@ -2027,7 +2134,11 @@
'ariaLabel' => true,
'html' => false,
'background' => array(
- 'backgroundImage' => true
+ 'backgroundImage' => true,
+ 'backgroundSize' => true,
+ '__experimentalDefaultControls' => array(
+ 'backgroundImage' => true
+ )
),
'color' => array(
'gradients' => true,
@@ -2084,6 +2195,9 @@
),
'layout' => array(
'allowSizingOnChildren' => true
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-group-editor',
@@ -2106,10 +2220,9 @@
'type' => 'string'
),
'content' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'h1,h2,h3,h4,h5,h6',
- 'default' => '',
'__experimentalRole' => 'content'
),
'level' => array(
@@ -2154,13 +2267,14 @@
'__experimentalTextDecoration' => true,
'__experimentalWritingMode' => true,
'__experimentalDefaultControls' => array(
- 'fontSize' => true,
- 'fontAppearance' => true,
- 'textTransform' => true
+ 'fontSize' => true
)
),
'__unstablePasteTextInline' => true,
- '__experimentalSlashInserter' => true
+ '__experimentalSlashInserter' => true,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-heading-editor',
'style' => 'wp-block-heading'
@@ -2205,6 +2319,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-home-link-editor',
@@ -2230,7 +2347,10 @@
'supports' => array(
'customClassName' => false,
'className' => false,
- 'html' => false
+ 'html' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-html-editor'
),
@@ -2253,9 +2373,6 @@
),
'textdomain' => 'default',
'attributes' => array(
- 'align' => array(
- 'type' => 'string'
- ),
'url' => array(
'type' => 'string',
'source' => 'attribute',
@@ -2272,8 +2389,8 @@
'__experimentalRole' => 'content'
),
'caption' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'figcaption',
'__experimentalRole' => 'content'
),
@@ -2339,6 +2456,14 @@
)
),
'supports' => array(
+ 'interactivity' => true,
+ 'align' => array(
+ 'left',
+ 'center',
+ 'right',
+ 'wide',
+ 'full'
+ ),
'anchor' => true,
'color' => array(
'text' => false,
@@ -2357,10 +2482,14 @@
'radius' => true,
'width' => true
)
+ ),
+ 'shadow' => array(
+ '__experimentalSkipSerialization' => true
)
),
'selectors' => array(
'border' => '.wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder',
+ 'shadow' => '.wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder',
'filter' => array(
'duotone' => '.wp-block-image img, .wp-block-image .components-placeholder'
)
@@ -2377,8 +2506,7 @@
)
),
'editorStyle' => 'wp-block-image-editor',
- 'style' => 'wp-block-image',
- 'viewScript' => 'file:./view.min.js'
+ 'style' => 'wp-block-image'
),
'latest-comments' => array(
'$schema' => 'https://schemas.wp.org/trunk/block.json',
@@ -2430,6 +2558,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-latest-comments-editor',
@@ -2553,12 +2684,16 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-latest-posts-editor',
'style' => 'wp-block-latest-posts'
),
'legacy-widget' => array(
+ '$schema' => 'https://schemas.wp.org/trunk/block.json',
'apiVersion' => 3,
'name' => 'core/legacy-widget',
'title' => 'Legacy Widget',
@@ -2592,6 +2727,9 @@
'name' => 'core/list',
'title' => 'List',
'category' => 'text',
+ 'allowedBlocks' => array(
+ 'core/list-item'
+ ),
'description' => 'Create a bulleted or numbered list.',
'keywords' => array(
'bullet list',
@@ -2665,7 +2803,10 @@
'__unstablePasteTextInline' => true,
'__experimentalSelector' => 'ol,ul',
'__experimentalOnMerge' => true,
- '__experimentalSlashInserter' => true
+ '__experimentalSlashInserter' => true,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-list-editor',
'style' => 'wp-block-list'
@@ -2679,6 +2820,9 @@
'parent' => array(
'core/list'
),
+ 'allowedBlocks' => array(
+ 'core/list'
+ ),
'description' => 'Create a list item.',
'textdomain' => 'default',
'attributes' => array(
@@ -2686,16 +2830,23 @@
'type' => 'string'
),
'content' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'li',
- 'default' => '',
'__experimentalRole' => 'content'
)
),
'supports' => array(
'className' => false,
'__experimentalSelector' => 'li',
+ 'spacing' => array(
+ 'margin' => true,
+ 'padding' => true,
+ '__experimentalDefaultControls' => array(
+ 'margin' => false,
+ 'padding' => false
+ )
+ ),
'typography' => array(
'fontSize' => true,
'lineHeight' => true,
@@ -2708,6 +2859,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -2736,6 +2890,14 @@
),
'supports' => array(
'className' => true,
+ 'spacing' => array(
+ 'margin' => true,
+ 'padding' => true,
+ '__experimentalDefaultControls' => array(
+ 'margin' => false,
+ 'padding' => false
+ )
+ ),
'typography' => array(
'fontSize' => true,
'lineHeight' => true,
@@ -2748,6 +2910,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -2882,6 +3047,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-media-text-editor',
@@ -2904,7 +3072,7 @@
),
'originalContent' => array(
'type' => 'string',
- 'source' => 'html'
+ 'source' => 'raw'
)
),
'supports' => array(
@@ -2912,7 +3080,10 @@
'customClassName' => false,
'inserter' => false,
'html' => false,
- 'reusable' => false
+ 'reusable' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
)
),
'more' => array(
@@ -2939,7 +3110,10 @@
'customClassName' => false,
'className' => false,
'html' => false,
- 'multiple' => false
+ 'multiple' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-more-editor'
),
@@ -2949,6 +3123,19 @@
'name' => 'core/navigation',
'title' => 'Navigation',
'category' => 'theme',
+ 'allowedBlocks' => array(
+ 'core/navigation-link',
+ 'core/search',
+ 'core/social-links',
+ 'core/page-list',
+ 'core/spacer',
+ 'core/home-link',
+ 'core/site-title',
+ 'core/site-logo',
+ 'core/navigation-submenu',
+ 'core/loginout',
+ 'core/buttons'
+ ),
'description' => 'A collection of blocks that allow visitors to get around your site.',
'keywords' => array(
'menu',
@@ -3101,9 +3288,9 @@
)
)
),
- 'interactivity' => true
+ 'interactivity' => true,
+ 'renaming' => false
),
- 'viewScript' => 'file:./view.min.js',
'editorStyle' => 'wp-block-navigation-editor',
'style' => 'wp-block-navigation'
),
@@ -3116,6 +3303,11 @@
'parent' => array(
'core/navigation'
),
+ 'allowedBlocks' => array(
+ 'core/navigation-link',
+ 'core/navigation-submenu',
+ 'core/page-list'
+ ),
'description' => 'Add a page, link, or another item to your navigation.',
'textdomain' => 'default',
'attributes' => array(
@@ -3182,6 +3374,10 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'renaming' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-navigation-link-editor',
@@ -3249,7 +3445,10 @@
),
'supports' => array(
'reusable' => false,
- 'html' => false
+ 'html' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-navigation-submenu-editor',
'style' => 'wp-block-navigation-submenu'
@@ -3272,7 +3471,10 @@
'supports' => array(
'customClassName' => false,
'className' => false,
- 'html' => false
+ 'html' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-nextpage-editor'
),
@@ -3282,6 +3484,9 @@
'name' => 'core/page-list',
'title' => 'Page List',
'category' => 'widgets',
+ 'allowedBlocks' => array(
+ 'core/page-list-item'
+ ),
'description' => 'Display a list of all pages.',
'keywords' => array(
'menu',
@@ -3328,6 +3533,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-page-list-editor',
@@ -3386,7 +3594,10 @@
'html' => false,
'lock' => false,
'inserter' => false,
- '__experimentalToolbar' => false
+ '__experimentalToolbar' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-page-list-editor',
'style' => 'wp-block-page-list'
@@ -3410,10 +3621,9 @@
'type' => 'string'
),
'content' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'p',
- 'default' => '',
'__experimentalRole' => 'content'
),
'dropCap' => array(
@@ -3442,7 +3652,6 @@
'text' => true
)
),
- '__experimentalConnections' => true,
'spacing' => array(
'margin' => true,
'padding' => true,
@@ -3466,7 +3675,10 @@
)
),
'__experimentalSelector' => 'p',
- '__unstablePasteTextInline' => true
+ '__unstablePasteTextInline' => true,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-paragraph-editor',
'style' => 'wp-block-paragraph'
@@ -3480,7 +3692,11 @@
'description' => 'Show a block pattern.',
'supports' => array(
'html' => false,
- 'inserter' => false
+ 'inserter' => false,
+ 'renaming' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'textdomain' => 'default',
'attributes' => array(
@@ -3556,6 +3772,9 @@
'background' => true,
'text' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-post-author'
@@ -3602,6 +3821,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -3657,6 +3879,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -3817,6 +4042,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -3876,6 +4104,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-post-excerpt-editor',
@@ -3934,6 +4165,10 @@
),
'customGradient' => array(
'type' => 'string'
+ ),
+ 'useFirstImageFromPost' => array(
+ 'type' => 'boolean',
+ 'default' => false
)
),
'usesContext' => array(
@@ -3970,6 +4205,9 @@
'spacing' => array(
'margin' => true,
'padding' => true
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-post-featured-image-editor',
@@ -4005,8 +4243,15 @@
'arrow' => array(
'type' => 'string',
'default' => 'none'
+ ),
+ 'taxonomy' => array(
+ 'type' => 'string',
+ 'default' => ''
)
),
+ 'usesContext' => array(
+ 'postType'
+ ),
'supports' => array(
'reusable' => false,
'html' => false,
@@ -4026,6 +4271,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-post-navigation-link'
@@ -4044,7 +4292,6 @@
'usesContext' => array(
'queryId',
'query',
- 'queryContext',
'displayLayout',
'templateSlug',
'previewPostType',
@@ -4086,6 +4333,9 @@
'__experimentalDefaultControls' => array(
'blockGap' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-post-template',
@@ -4150,6 +4400,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-post-terms'
@@ -4218,10 +4471,11 @@
'__experimentalTextDecoration' => true,
'__experimentalLetterSpacing' => true,
'__experimentalDefaultControls' => array(
- 'fontSize' => true,
- 'fontAppearance' => true,
- 'textTransform' => true
+ 'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-post-title'
@@ -4236,10 +4490,9 @@
'textdomain' => 'default',
'attributes' => array(
'content' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'pre',
- 'default' => '',
'__unstablePreserveWhiteSpace' => true,
'__experimentalRole' => 'content'
)
@@ -4269,6 +4522,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-preformatted'
@@ -4283,16 +4539,15 @@
'textdomain' => 'default',
'attributes' => array(
'value' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'p',
'__experimentalRole' => 'content'
),
'citation' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'cite',
- 'default' => '',
'__experimentalRole' => 'content'
),
'textAlign' => array(
@@ -4316,6 +4571,10 @@
'text' => true
)
),
+ 'spacing' => array(
+ 'margin' => true,
+ 'padding' => true
+ ),
'typography' => array(
'fontSize' => true,
'lineHeight' => true,
@@ -4326,8 +4585,7 @@
'__experimentalTextDecoration' => true,
'__experimentalLetterSpacing' => true,
'__experimentalDefaultControls' => array(
- 'fontSize' => true,
- 'fontAppearance' => true
+ 'fontSize' => true
)
),
'__experimentalBorder' => array(
@@ -4347,6 +4605,9 @@
'fontSize' => '1.5em',
'lineHeight' => '1.6'
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-pullquote-editor',
@@ -4410,11 +4671,10 @@
'full'
),
'html' => false,
- 'layout' => true
+ 'layout' => true,
+ 'interactivity' => true
),
- 'editorStyle' => 'wp-block-query-editor',
- 'style' => 'wp-block-query',
- 'viewScript' => 'file:./view.min.js'
+ 'editorStyle' => 'wp-block-query-editor'
),
'query-no-results' => array(
'$schema' => 'https://schemas.wp.org/trunk/block.json',
@@ -4451,6 +4711,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -4460,9 +4723,14 @@
'name' => 'core/query-pagination',
'title' => 'Pagination',
'category' => 'theme',
- 'parent' => array(
+ 'ancestor' => array(
'core/query'
),
+ 'allowedBlocks' => array(
+ 'core/query-pagination-previous',
+ 'core/query-pagination-numbers',
+ 'core/query-pagination-next'
+ ),
'description' => 'Displays a paginated navigation to next/previous set of posts, when applicable.',
'textdomain' => 'default',
'attributes' => array(
@@ -4515,6 +4783,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-query-pagination-editor',
@@ -4565,6 +4836,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -4577,7 +4851,7 @@
'parent' => array(
'core/query-pagination'
),
- 'description' => 'Displays a list of page numbers for pagination',
+ 'description' => 'Displays a list of page numbers for pagination.',
'textdomain' => 'default',
'attributes' => array(
'midSize' => array(
@@ -4612,6 +4886,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-query-pagination-numbers-editor'
@@ -4661,6 +4938,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -4719,10 +4999,11 @@
'__experimentalTextTransform' => true,
'__experimentalTextDecoration' => true,
'__experimentalDefaultControls' => array(
- 'fontSize' => true,
- 'fontAppearance' => true,
- 'textTransform' => true
+ 'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-query-title'
@@ -4749,10 +5030,9 @@
'__experimentalRole' => 'content'
),
'citation' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'cite',
- 'default' => '',
'__experimentalRole' => 'content'
),
'align' => array(
@@ -4774,8 +5054,7 @@
'__experimentalTextDecoration' => true,
'__experimentalLetterSpacing' => true,
'__experimentalDefaultControls' => array(
- 'fontSize' => true,
- 'fontAppearance' => true
+ 'fontSize' => true
)
),
'color' => array(
@@ -4786,6 +5065,15 @@
'background' => true,
'text' => true
)
+ ),
+ 'layout' => array(
+ 'allowEditing' => false
+ ),
+ 'spacing' => array(
+ 'blockGap' => true
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'styles' => array(
@@ -4859,6 +5147,9 @@
'__experimentalDefaultControls' => array(
'width' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-read-more'
@@ -4911,7 +5202,10 @@
),
'supports' => array(
'align' => true,
- 'html' => false
+ 'html' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-rss-editor',
'style' => 'wp-block-rss'
@@ -4965,10 +5259,6 @@
)
),
- 'buttonBehavior' => array(
- 'type' => 'string',
- 'default' => 'expand-searchfield'
- ),
'isSearchFieldHidden' => array(
'type' => 'boolean',
'default' => false
@@ -5017,7 +5307,6 @@
),
'html' => false
),
- 'viewScript' => 'file:./view.min.js',
'editorStyle' => 'wp-block-search-editor',
'style' => 'wp-block-search'
),
@@ -5062,6 +5351,9 @@
'top',
'bottom'
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'styles' => array(
@@ -5150,6 +5442,9 @@
'margin' => false,
'padding' => false
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'styles' => array(
@@ -5218,6 +5513,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-site-tagline-editor'
@@ -5283,12 +5581,11 @@
'__experimentalFontWeight' => true,
'__experimentalLetterSpacing' => true,
'__experimentalDefaultControls' => array(
- 'fontSize' => true,
- 'lineHeight' => true,
- 'fontAppearance' => true,
- 'letterSpacing' => true,
- 'textTransform' => true
+ 'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-site-title-editor',
@@ -5329,7 +5626,10 @@
),
'supports' => array(
'reusable' => false,
- 'html' => false
+ 'html' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-social-link-editor'
),
@@ -5339,6 +5639,9 @@
'name' => 'core/social-links',
'title' => 'Social Icons',
'category' => 'widgets',
+ 'allowedBlocks' => array(
+ 'core/social-link'
+ ),
'description' => 'Display icons linking to your social media profiles or sites.',
'keywords' => array(
'links'
@@ -5427,6 +5730,9 @@
'margin' => true,
'padding' => false
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'styles' => array(
@@ -5477,6 +5783,9 @@
'__experimentalDefaultControls' => array(
'margin' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-spacer-editor',
@@ -5496,10 +5805,9 @@
'default' => false
),
'caption' => array(
- 'type' => 'string',
- 'source' => 'html',
- 'selector' => 'figcaption',
- 'default' => ''
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
+ 'selector' => 'figcaption'
),
'head' => array(
'type' => 'array',
@@ -5518,8 +5826,8 @@
'selector' => 'td,th',
'query' => array(
'content' => array(
- 'type' => 'string',
- 'source' => 'html'
+ 'type' => 'rich-text',
+ 'source' => 'rich-text'
),
'tag' => array(
'type' => 'string',
@@ -5567,8 +5875,8 @@
'selector' => 'td,th',
'query' => array(
'content' => array(
- 'type' => 'string',
- 'source' => 'html'
+ 'type' => 'rich-text',
+ 'source' => 'rich-text'
),
'tag' => array(
'type' => 'string',
@@ -5616,8 +5924,8 @@
'selector' => 'td,th',
'query' => array(
'content' => array(
- 'type' => 'string',
- 'source' => 'html'
+ 'type' => 'rich-text',
+ 'source' => 'rich-text'
),
'tag' => array(
'type' => 'string',
@@ -5692,7 +6000,10 @@
'width' => true
)
),
- '__experimentalSelector' => '.wp-block-table > table'
+ '__experimentalSelector' => '.wp-block-table > table',
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'styles' => array(
array(
@@ -5765,6 +6076,9 @@
'__experimentalFontStyle' => true,
'__experimentalTextTransform' => true,
'__experimentalLetterSpacing' => true
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-tag-cloud-editor'
@@ -5794,7 +6108,11 @@
'supports' => array(
'align' => true,
'html' => false,
- 'reusable' => false
+ 'reusable' => false,
+ 'renaming' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-template-part-editor'
),
@@ -5840,6 +6158,9 @@
'__experimentalDefaultControls' => array(
'fontSize' => true
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
)
),
@@ -5881,7 +6202,10 @@
)
),
'supports' => array(
- 'inserter' => false
+ 'inserter' => false,
+ 'interactivity' => array(
+ 'clientNavigation' => true
+ )
),
'editorStyle' => 'wp-block-text-columns-editor',
'style' => 'wp-block-text-columns'
@@ -5900,10 +6224,9 @@
'textdomain' => 'default',
'attributes' => array(
'content' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'pre',
- 'default' => '',
'__unstablePreserveWhiteSpace' => true,
'__experimentalRole' => 'content'
),
@@ -5931,8 +6254,7 @@
'__experimentalTextTransform' => true,
'__experimentalTextDecoration' => true,
'__experimentalDefaultControls' => array(
- 'fontSize' => true,
- 'fontAppearance' => true
+ 'fontSize' => true
)
),
'spacing' => array(
@@ -5948,6 +6270,9 @@
'width' => true,
'color' => true,
'style' => true
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'style' => 'wp-block-verse',
@@ -5972,8 +6297,8 @@
'attribute' => 'autoplay'
),
'caption' => array(
- 'type' => 'string',
- 'source' => 'html',
+ 'type' => 'rich-text',
+ 'source' => 'rich-text',
'selector' => 'figcaption',
'__experimentalRole' => 'content'
),
@@ -6047,12 +6372,16 @@
'margin' => false,
'padding' => false
)
+ ),
+ 'interactivity' => array(
+ 'clientNavigation' => true
)
),
'editorStyle' => 'wp-block-video-editor',
'style' => 'wp-block-video'
),
'widget-group' => array(
+ '$schema' => 'https://schemas.wp.org/trunk/block.json',
'apiVersion' => 3,
'name' => 'core/widget-group',
'category' => 'widgets',