Skip to content

Commit

Permalink
Sync packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Sep 15, 2022
1 parent a87090e commit a08e0db
Show file tree
Hide file tree
Showing 110 changed files with 3,695 additions and 5,842 deletions.
7,459 changes: 1,970 additions & 5,489 deletions package-lock.json

Large diffs are not rendered by default.

120 changes: 60 additions & 60 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.1.0",
"@wordpress/dependency-extraction-webpack-plugin": "4.0.0",
"@wordpress/e2e-test-utils": "8.1.0",
"@wordpress/scripts": "24.1.0",
"autoprefixer": "^9.8.8",
"chalk": "5.0.1",
"check-node-version": "4.2.1",
Expand Down Expand Up @@ -76,62 +76,62 @@
"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": "2.8.0",
"@wordpress/preferences-persistence": "1.8.0",
"@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.17.0",
"@wordpress/annotations": "2.17.0",
"@wordpress/api-fetch": "6.14.0",
"@wordpress/autop": "3.17.0",
"@wordpress/blob": "3.17.0",
"@wordpress/block-directory": "3.15.0",
"@wordpress/block-editor": "10.0.0",
"@wordpress/block-library": "7.14.0",
"@wordpress/block-serialization-default-parser": "4.17.0",
"@wordpress/blocks": "11.16.0",
"@wordpress/components": "21.0.0",
"@wordpress/compose": "5.15.0",
"@wordpress/core-data": "5.0.0",
"@wordpress/customize-widgets": "3.14.0",
"@wordpress/data": "7.1.0",
"@wordpress/data-controls": "2.17.0",
"@wordpress/date": "4.17.0",
"@wordpress/deprecated": "3.17.0",
"@wordpress/dom": "3.17.0",
"@wordpress/dom-ready": "3.17.0",
"@wordpress/edit-post": "6.14.0",
"@wordpress/edit-site": "4.14.0",
"@wordpress/edit-widgets": "4.14.0",
"@wordpress/editor": "12.16.0",
"@wordpress/element": "4.15.0",
"@wordpress/escape-html": "2.17.0",
"@wordpress/format-library": "3.15.0",
"@wordpress/hooks": "3.17.0",
"@wordpress/html-entities": "3.17.0",
"@wordpress/i18n": "4.17.0",
"@wordpress/icons": "9.8.0",
"@wordpress/interface": "4.16.0",
"@wordpress/is-shallow-equal": "4.17.0",
"@wordpress/keyboard-shortcuts": "3.15.0",
"@wordpress/keycodes": "3.17.0",
"@wordpress/list-reusable-blocks": "3.15.0",
"@wordpress/media-utils": "4.8.0",
"@wordpress/notices": "3.17.0",
"@wordpress/nux": "5.15.0",
"@wordpress/plugins": "4.15.0",
"@wordpress/preferences": "2.9.0",
"@wordpress/preferences-persistence": "1.9.0",
"@wordpress/primitives": "3.15.0",
"@wordpress/priority-queue": "2.17.0",
"@wordpress/redux-routine": "4.17.0",
"@wordpress/reusable-blocks": "3.15.0",
"@wordpress/rich-text": "5.15.0",
"@wordpress/server-side-render": "3.15.0",
"@wordpress/shortcode": "3.17.0",
"@wordpress/style-engine": "0.16.0",
"@wordpress/token-list": "2.17.0",
"@wordpress/url": "3.18.0",
"@wordpress/viewport": "4.15.0",
"@wordpress/warning": "2.17.0",
"@wordpress/widgets": "2.15.0",
"@wordpress/wordcount": "3.17.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
23 changes: 22 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,24 @@
},
"supports": {
"align": true,
"html": false
"html": false,
"spacing": {
"margin": true,
"padding": true
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-archives-editor"
}
15 changes: 11 additions & 4 deletions src/wp-includes/blocks/audio/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@
"type": "string",
"source": "attribute",
"selector": "audio",
"attribute": "src"
"attribute": "src",
"__experimentalRole": "content"
},
"caption": {
"type": "string",
"source": "html",
"selector": "figcaption"
"selector": "figcaption",
"__experimentalRole": "content"
},
"id": {
"type": "number"
"type": "number",
"__experimentalRole": "content"
},
"autoplay": {
"type": "boolean",
Expand All @@ -43,7 +46,11 @@
},
"supports": {
"anchor": true,
"align": true
"align": true,
"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
4 changes: 2 additions & 2 deletions src/wp-includes/blocks/avatar/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"type": "string",
"default": "_self"
}

},
"usesContext": [ "postType", "postId", "commentId" ],
"supports": {
"html": false,
"align": true,
"alignWide": false,
"spacing": {
"margin": true
"margin": true,
"padding": true
},
"__experimentalBorder": {
"__experimentalSkipSerialization": true,
Expand Down
8 changes: 7 additions & 1 deletion src/wp-includes/blocks/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
Expand All @@ -88,7 +94,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
13 changes: 13 additions & 0 deletions src/wp-includes/blocks/buttons/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
"blockGap": true
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
},
"__experimentalLayout": {
"allowSwitching": false,
"allowInheriting": false,
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
14 changes: 13 additions & 1 deletion src/wp-includes/blocks/calendar/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@
}
},
"supports": {
"align": true
"align": true,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"style": "wp-block-calendar"
}
3 changes: 2 additions & 1 deletion 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 Expand Up @@ -75,7 +76,7 @@ function build_dropdown_script_block_core_categories( $dropdown_id ) {
var dropdown = document.getElementById( '<?php echo esc_js( $dropdown_id ); ?>' );
function onCatChange() {
if ( dropdown.options[ dropdown.selectedIndex ].value > 0 ) {
location.href = "<?php echo home_url(); ?>/?cat=" + dropdown.options[ dropdown.selectedIndex ].value;
location.href = "<?php echo esc_url( home_url() ); ?>/?cat=" + dropdown.options[ dropdown.selectedIndex ].value;
}
}
dropdown.onchange = onCatChange;
Expand Down
25 changes: 23 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,32 @@
"showOnlyTopLevel": {
"type": "boolean",
"default": false
},
"showEmpty": {
"type": "boolean",
"default": false
}
},
"supports": {
"align": true,
"html": false
"html": false,
"spacing": {
"margin": true,
"padding": true
},
"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
Loading

0 comments on commit a08e0db

Please sign in to comment.