Skip to content

Commit

Permalink
Sync Gutenberg packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Aug 30, 2022
1 parent 5c9e69f commit 33e1877
Show file tree
Hide file tree
Showing 95 changed files with 2,240 additions and 1,835 deletions.
2,582 changes: 1,032 additions & 1,550 deletions package-lock.json

Large diffs are not rendered by default.

118 changes: 59 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
],
"devDependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@wordpress/babel-preset-default": "6.8.1",
"@wordpress/dependency-extraction-webpack-plugin": "3.4.2",
"@wordpress/e2e-test-utils": "7.2.1",
"@wordpress/scripts": "22.4.2",
"@wordpress/babel-preset-default": "7.0.0",
"@wordpress/dependency-extraction-webpack-plugin": "4.0.0",
"@wordpress/e2e-test-utils": "8.0.0",
"@wordpress/scripts": "24.0.0",
"autoprefixer": "^9.8.8",
"chalk": "5.0.1",
"check-node-version": "4.2.1",
Expand Down Expand Up @@ -76,61 +76,61 @@
"webpack-livereload-plugin": "3.0.2"
},
"dependencies": {
"@wordpress/a11y": "3.6.1",
"@wordpress/annotations": "2.6.2",
"@wordpress/api-fetch": "6.3.1",
"@wordpress/autop": "3.6.1",
"@wordpress/blob": "3.6.1",
"@wordpress/block-directory": "3.4.14",
"@wordpress/block-editor": "8.5.10",
"@wordpress/block-library": "7.3.14",
"@wordpress/block-serialization-default-parser": "4.6.1",
"@wordpress/blocks": "11.5.3",
"@wordpress/components": "19.8.5",
"@wordpress/compose": "5.4.1",
"@wordpress/core-data": "4.4.5",
"@wordpress/customize-widgets": "3.3.14",
"@wordpress/data": "6.6.1",
"@wordpress/data-controls": "2.6.1",
"@wordpress/date": "4.6.1",
"@wordpress/deprecated": "3.6.1",
"@wordpress/dom": "3.6.1",
"@wordpress/dom-ready": "3.6.1",
"@wordpress/edit-post": "6.3.14",
"@wordpress/edit-site": "4.3.14",
"@wordpress/edit-widgets": "4.3.14",
"@wordpress/editor": "12.5.10",
"@wordpress/element": "4.4.1",
"@wordpress/escape-html": "2.6.1",
"@wordpress/format-library": "3.4.10",
"@wordpress/hooks": "3.6.1",
"@wordpress/html-entities": "3.6.1",
"@wordpress/i18n": "4.6.1",
"@wordpress/icons": "8.2.3",
"@wordpress/interface": "4.5.6",
"@wordpress/is-shallow-equal": "4.6.1",
"@wordpress/keyboard-shortcuts": "3.4.1",
"@wordpress/keycodes": "3.6.1",
"@wordpress/list-reusable-blocks": "3.4.5",
"@wordpress/media-utils": "3.4.1",
"@wordpress/notices": "3.6.1",
"@wordpress/nux": "5.4.5",
"@wordpress/plugins": "4.4.3",
"@wordpress/preferences": "1.2.5",
"@wordpress/primitives": "3.4.1",
"@wordpress/priority-queue": "2.6.1",
"@wordpress/redux-routine": "4.6.1",
"@wordpress/reusable-blocks": "3.4.10",
"@wordpress/rich-text": "5.4.2",
"@wordpress/server-side-render": "3.4.6",
"@wordpress/shortcode": "3.6.1",
"@wordpress/style-engine": "0.5.1",
"@wordpress/token-list": "2.6.1",
"@wordpress/url": "3.7.1",
"@wordpress/viewport": "4.4.1",
"@wordpress/warning": "2.6.1",
"@wordpress/widgets": "2.4.10",
"@wordpress/wordcount": "3.6.1",
"@wordpress/a11y": "3.16.0",
"@wordpress/annotations": "2.16.0",
"@wordpress/api-fetch": "6.13.0",
"@wordpress/autop": "3.16.0",
"@wordpress/blob": "3.16.0",
"@wordpress/block-directory": "3.14.0",
"@wordpress/block-editor": "9.8.0",
"@wordpress/block-library": "7.13.0",
"@wordpress/block-serialization-default-parser": "4.16.0",
"@wordpress/blocks": "11.15.0",
"@wordpress/components": "20.0.0",
"@wordpress/compose": "5.14.0",
"@wordpress/core-data": "4.14.0",
"@wordpress/customize-widgets": "3.13.0",
"@wordpress/data": "7.0.0",
"@wordpress/data-controls": "2.16.0",
"@wordpress/date": "4.16.0",
"@wordpress/deprecated": "3.16.0",
"@wordpress/dom": "3.16.0",
"@wordpress/dom-ready": "3.16.0",
"@wordpress/edit-post": "6.13.0",
"@wordpress/edit-site": "4.13.0",
"@wordpress/edit-widgets": "4.13.0",
"@wordpress/editor": "12.15.0",
"@wordpress/element": "4.14.0",
"@wordpress/escape-html": "2.16.0",
"@wordpress/format-library": "3.14.0",
"@wordpress/hooks": "3.16.0",
"@wordpress/html-entities": "3.16.0",
"@wordpress/i18n": "4.16.0",
"@wordpress/icons": "9.7.0",
"@wordpress/interface": "4.15.0",
"@wordpress/is-shallow-equal": "4.16.0",
"@wordpress/keyboard-shortcuts": "3.14.0",
"@wordpress/keycodes": "3.16.0",
"@wordpress/list-reusable-blocks": "3.14.0",
"@wordpress/media-utils": "4.7.0",
"@wordpress/notices": "3.16.0",
"@wordpress/nux": "5.14.0",
"@wordpress/plugins": "4.14.0",
"@wordpress/preferences": "2.8.0",
"@wordpress/primitives": "3.14.0",
"@wordpress/priority-queue": "2.16.0",
"@wordpress/redux-routine": "4.16.0",
"@wordpress/reusable-blocks": "3.14.0",
"@wordpress/rich-text": "5.14.0",
"@wordpress/server-side-render": "3.14.0",
"@wordpress/shortcode": "3.16.0",
"@wordpress/style-engine": "0.15.0",
"@wordpress/token-list": "2.16.0",
"@wordpress/url": "3.17.0",
"@wordpress/viewport": "4.14.0",
"@wordpress/warning": "2.16.0",
"@wordpress/widgets": "2.14.0",
"@wordpress/wordcount": "3.16.0",
"backbone": "1.4.1",
"clipboard": "2.0.10",
"core-js-url-browser": "3.6.4",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-react-refresh-runtime'), 'version' => '8151afc94a5ebc73b7a8229f0d7ee352');
<?php return array('dependencies' => array('wp-react-refresh-runtime'), 'version' => '794dd7047e2302828128');
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '4fb86f241c3b2d9d9e0411b507079823');
<?php return array('dependencies' => array(), 'version' => 'd4cdced5a2afff4a8cc2');
8 changes: 5 additions & 3 deletions src/wp-includes/blocks/archives.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ function render_block_core_archives( $attributes ) {
break;
}

$block_content = '<label for="' . esc_attr( $dropdown_id ) . '">' . esc_html( $title ) . '</label>
<select id="' . esc_attr( $dropdown_id ) . '" name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
<option value="">' . esc_html( $label ) . '</option>' . $archives . '</select>';
$show_label = empty( $attributes['showLabel'] ) ? ' screen-reader-text' : '';

$block_content = '<label for="' . $dropdown_id . '" class="wp-block-archives__label' . $show_label . '">' . esc_html( $title ) . '</label>
<select id="' . $dropdown_id . '" name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
<option value="">' . esc_html( $label ) . '</option>' . $archives . '</select>';

return sprintf(
'<div %1$s>%2$s</div>',
Expand Down
10 changes: 9 additions & 1 deletion src/wp-includes/blocks/archives/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"type": "boolean",
"default": false
},
"showLabel": {
"type": "boolean",
"default": true
},
"showPostCounts": {
"type": "boolean",
"default": false
Expand All @@ -22,7 +26,11 @@
},
"supports": {
"align": true,
"html": false
"html": false,
"spacing": {
"margin": true,
"padding": true
}
},
"editorStyle": "wp-block-archives-editor"
}
11 changes: 10 additions & 1 deletion src/wp-includes/blocks/audio/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,16 @@
},
"supports": {
"anchor": true,
"align": true
"align": true,
"__experimentalStyle": {
"spacing": {
"margin": "0 0 1em 0"
}
},
"spacing": {
"margin": true,
"padding": true
}
},
"editorStyle": "wp-block-audio-editor",
"style": "wp-block-audio"
Expand Down
4 changes: 2 additions & 2 deletions src/wp-includes/blocks/avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ function render_block_core_avatar( $attributes, $content, $block ) {
return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block );
}
$comment = get_comment( $block->context['commentId'] );
/* translators: %s is the Comment Author name */
$alt = sprintf( __( '%s Avatar' ), $comment->comment_author );
if ( ! $comment ) {
return '';
}
/* translators: %s is the Comment Author name */
$alt = sprintf( __( '%s Avatar' ), $comment->comment_author );
$avatar_block = get_avatar(
$comment,
$size,
Expand Down
1 change: 0 additions & 1 deletion src/wp-includes/blocks/avatar/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"type": "string",
"default": "_self"
}

},
"usesContext": [ "postType", "postId", "commentId" ],
"supports": {
Expand Down
3 changes: 2 additions & 1 deletion src/wp-includes/blocks/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"typography": {
"fontSize": true,
"__experimentalFontFamily": true,
"__experimentalTextTransform": true,
"__experimentalDefaultControls": {
"fontSize": true
}
Expand All @@ -88,7 +89,7 @@
"radius": true
}
},
"__experimentalSelector": ".wp-block-button__link"
"__experimentalSelector": ".wp-block-button .wp-block-button__link"
},
"styles": [
{ "name": "fill", "label": "Fill", "isDefault": true },
Expand Down
4 changes: 2 additions & 2 deletions src/wp-includes/blocks/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function render_block_core_calendar( $attributes ) {
if ( isset( $attributes['month'] ) && isset( $attributes['year'] ) ) {
$permalink_structure = get_option( 'permalink_structure' );
if (
strpos( $permalink_structure, '%monthnum%' ) !== false &&
strpos( $permalink_structure, '%year%' ) !== false
str_contains( $permalink_structure, '%monthnum%' ) &&
str_contains( $permalink_structure, '%year%' )
) {
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
$monthnum = $attributes['month'];
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/blocks/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function render_block_core_categories( $attributes ) {
'orderby' => 'name',
'show_count' => ! empty( $attributes['showPostCounts'] ),
'title_li' => '',
'hide_empty' => empty( $attributes['showEmpty'] ),
);
if ( ! empty( $attributes['showOnlyTopLevel'] ) && $attributes['showOnlyTopLevel'] ) {
$args['parent'] = 0;
Expand Down
21 changes: 19 additions & 2 deletions src/wp-includes/blocks/categories/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "core/categories",
"title": "Categories",
"title": "Categories List",
"category": "widgets",
"description": "Display a list of all categories.",
"textdomain": "default",
Expand All @@ -22,11 +22,28 @@
"showOnlyTopLevel": {
"type": "boolean",
"default": false
},
"showEmpty": {
"type": "boolean",
"default": false
}
},
"supports": {
"align": true,
"html": false
"html": false,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-categories-editor",
"style": "wp-block-categories"
Expand Down
6 changes: 4 additions & 2 deletions src/wp-includes/blocks/code/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontStyle": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalLetterSpacing": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
Expand Down
23 changes: 23 additions & 0 deletions src/wp-includes/blocks/column/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@
"padding": true
}
},
"__experimentalBorder": {
"color": true,
"style": true,
"width": true,
"__experimentalDefaultControls": {
"color": true,
"style": true,
"width": true
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
},
"__experimentalLayout": true
}
}
13 changes: 13 additions & 0 deletions src/wp-includes/blocks/columns/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@
"style": true,
"width": true
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-columns-editor",
Expand Down
6 changes: 5 additions & 1 deletion src/wp-includes/blocks/comment-author-name/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalLetterSpacing": true
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
}
}
6 changes: 5 additions & 1 deletion src/wp-includes/blocks/comment-content/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalLetterSpacing": true
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
},
"spacing": {
"padding": [ "horizontal", "vertical" ],
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/blocks/comment-date/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
Expand Down
Loading

0 comments on commit 33e1877

Please sign in to comment.