mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Editor: update npm packages with second round of bug fixes for 6.3 RC1.
Includes miscellaneous bug fixes for 6.3 RC1. Props ramonopoly, mukesh27. Fixes #58804. git-svn-id: https://develop.svn.wordpress.org/trunk@56255 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b931da110
commit
9520d9eb69
1638
package-lock.json
generated
1638
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
66
package.json
66
package.json
@ -28,8 +28,8 @@
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
|
||||
"@wordpress/babel-preset-default": "7.19.1",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "4.18.1",
|
||||
"@wordpress/e2e-test-utils": "10.6.3",
|
||||
"@wordpress/scripts": "26.6.2",
|
||||
"@wordpress/e2e-test-utils": "10.6.4",
|
||||
"@wordpress/scripts": "26.6.3",
|
||||
"autoprefixer": "10.4.14",
|
||||
"chalk": "5.2.0",
|
||||
"check-node-version": "4.2.1",
|
||||
@ -79,64 +79,64 @@
|
||||
"@emotion/is-prop-valid": "0.8.8",
|
||||
"@emotion/memoize": "0.7.4",
|
||||
"@wordpress/a11y": "3.35.1",
|
||||
"@wordpress/annotations": "2.35.4",
|
||||
"@wordpress/annotations": "2.35.5",
|
||||
"@wordpress/api-fetch": "6.32.1",
|
||||
"@wordpress/autop": "3.35.1",
|
||||
"@wordpress/blob": "3.35.1",
|
||||
"@wordpress/block-directory": "4.12.9",
|
||||
"@wordpress/block-editor": "12.3.7",
|
||||
"@wordpress/block-library": "8.12.9",
|
||||
"@wordpress/block-directory": "4.12.10",
|
||||
"@wordpress/block-editor": "12.3.8",
|
||||
"@wordpress/block-library": "8.12.10",
|
||||
"@wordpress/block-serialization-default-parser": "4.35.1",
|
||||
"@wordpress/blocks": "12.12.3",
|
||||
"@wordpress/commands": "0.6.7",
|
||||
"@wordpress/components": "25.1.7",
|
||||
"@wordpress/blocks": "12.12.4",
|
||||
"@wordpress/commands": "0.6.8",
|
||||
"@wordpress/components": "25.1.8",
|
||||
"@wordpress/compose": "6.12.1",
|
||||
"@wordpress/core-commands": "0.4.7",
|
||||
"@wordpress/core-data": "6.12.7",
|
||||
"@wordpress/customize-widgets": "4.12.9",
|
||||
"@wordpress/data": "9.5.3",
|
||||
"@wordpress/data-controls": "3.4.3",
|
||||
"@wordpress/core-commands": "0.4.8",
|
||||
"@wordpress/core-data": "6.12.8",
|
||||
"@wordpress/customize-widgets": "4.12.10",
|
||||
"@wordpress/data": "9.5.4",
|
||||
"@wordpress/data-controls": "3.4.4",
|
||||
"@wordpress/date": "4.35.1",
|
||||
"@wordpress/deprecated": "3.35.1",
|
||||
"@wordpress/dom": "3.35.1",
|
||||
"@wordpress/dom-ready": "3.35.1",
|
||||
"@wordpress/edit-post": "7.12.9",
|
||||
"@wordpress/edit-site": "5.12.9",
|
||||
"@wordpress/edit-widgets": "5.12.9",
|
||||
"@wordpress/editor": "13.12.7",
|
||||
"@wordpress/edit-post": "7.12.10",
|
||||
"@wordpress/edit-site": "5.12.10",
|
||||
"@wordpress/edit-widgets": "5.12.10",
|
||||
"@wordpress/editor": "13.12.8",
|
||||
"@wordpress/element": "5.12.1",
|
||||
"@wordpress/escape-html": "2.35.1",
|
||||
"@wordpress/format-library": "4.12.7",
|
||||
"@wordpress/format-library": "4.12.8",
|
||||
"@wordpress/hooks": "3.35.1",
|
||||
"@wordpress/html-entities": "3.35.1",
|
||||
"@wordpress/i18n": "4.35.1",
|
||||
"@wordpress/icons": "9.26.2",
|
||||
"@wordpress/interface": "5.12.7",
|
||||
"@wordpress/interface": "5.12.8",
|
||||
"@wordpress/is-shallow-equal": "4.35.1",
|
||||
"@wordpress/keyboard-shortcuts": "4.12.3",
|
||||
"@wordpress/keyboard-shortcuts": "4.12.4",
|
||||
"@wordpress/keycodes": "3.35.1",
|
||||
"@wordpress/list-reusable-blocks": "4.12.7",
|
||||
"@wordpress/list-reusable-blocks": "4.12.8",
|
||||
"@wordpress/media-utils": "4.26.1",
|
||||
"@wordpress/notices": "4.3.3",
|
||||
"@wordpress/nux": "6.0.0",
|
||||
"@wordpress/plugins": "6.3.7",
|
||||
"@wordpress/preferences": "3.12.7",
|
||||
"@wordpress/notices": "4.3.4",
|
||||
"@wordpress/nux": "7.1.1",
|
||||
"@wordpress/plugins": "6.3.8",
|
||||
"@wordpress/preferences": "3.12.8",
|
||||
"@wordpress/preferences-persistence": "1.27.1",
|
||||
"@wordpress/primitives": "3.33.1",
|
||||
"@wordpress/priority-queue": "2.35.1",
|
||||
"@wordpress/private-apis": "0.17.1",
|
||||
"@wordpress/private-apis": "0.17.2",
|
||||
"@wordpress/redux-routine": "4.35.1",
|
||||
"@wordpress/reusable-blocks": "4.12.7",
|
||||
"@wordpress/rich-text": "6.12.4",
|
||||
"@wordpress/router": "0.4.1",
|
||||
"@wordpress/server-side-render": "4.12.7",
|
||||
"@wordpress/reusable-blocks": "4.12.8",
|
||||
"@wordpress/rich-text": "6.12.5",
|
||||
"@wordpress/router": "0.4.2",
|
||||
"@wordpress/server-side-render": "4.12.8",
|
||||
"@wordpress/shortcode": "3.35.1",
|
||||
"@wordpress/style-engine": "1.18.1",
|
||||
"@wordpress/token-list": "2.35.1",
|
||||
"@wordpress/url": "3.36.1",
|
||||
"@wordpress/viewport": "5.12.3",
|
||||
"@wordpress/viewport": "5.12.4",
|
||||
"@wordpress/warning": "2.35.1",
|
||||
"@wordpress/widgets": "3.12.7",
|
||||
"@wordpress/widgets": "3.12.8",
|
||||
"@wordpress/wordcount": "3.35.1",
|
||||
"backbone": "1.4.1",
|
||||
"clipboard": "2.0.11",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -4883,6 +4883,7 @@
|
||||
),
|
||||
'html' => false
|
||||
),
|
||||
'viewScript' => 'file:./view.min.js',
|
||||
'editorStyle' => 'wp-block-search-editor',
|
||||
'style' => 'wp-block-search'
|
||||
),
|
||||
|
||||
@ -8,11 +8,13 @@
|
||||
/**
|
||||
* Dynamically renders the `core/search` block.
|
||||
*
|
||||
* @param array $attributes The block attributes.
|
||||
* @param array $attributes The block attributes.
|
||||
* @param string $content The saved content.
|
||||
* @param WP_Block $block The parsed block.
|
||||
*
|
||||
* @return string The search block markup.
|
||||
*/
|
||||
function render_block_core_search( $attributes ) {
|
||||
function render_block_core_search( $attributes, $content, $block ) {
|
||||
// Older versions of the Search block defaulted the label and buttonText
|
||||
// attributes to `__( 'Search' )` meaning that many posts contain `<!--
|
||||
// wp:search /-->`. Support these by defaulting an undefined label and
|
||||
@ -70,10 +72,26 @@ function render_block_core_search( $attributes ) {
|
||||
$input->set_attribute( 'id', $input_id );
|
||||
$input->set_attribute( 'value', get_search_query() );
|
||||
$input->set_attribute( 'placeholder', $attributes['placeholder'] );
|
||||
if ( 'button-only' === $button_position && 'expand-searchfield' === $button_behavior ) {
|
||||
|
||||
$is_expandable_searchfield = 'button-only' === $button_position && 'expand-searchfield' === $button_behavior;
|
||||
if ( $is_expandable_searchfield ) {
|
||||
$input->set_attribute( 'aria-hidden', 'true' );
|
||||
$input->set_attribute( 'tabindex', '-1' );
|
||||
wp_enqueue_script( 'wp-block--search-view', plugins_url( 'search/view.min.js', __FILE__ ) );
|
||||
}
|
||||
|
||||
// If the script already exists, there is no point in removing it from viewScript.
|
||||
$view_js_file = 'wp-block-search-view';
|
||||
if ( ! wp_script_is( $view_js_file ) ) {
|
||||
$script_handles = $block->block_type->view_script_handles;
|
||||
|
||||
// If the script is not needed, and it is still in the `view_script_handles`, remove it.
|
||||
if ( ! $is_expandable_searchfield && in_array( $view_js_file, $script_handles, true ) ) {
|
||||
$block->block_type->view_script_handles = array_diff( $script_handles, array( $view_js_file ) );
|
||||
}
|
||||
// If the script is needed, but it was previously removed, add it again.
|
||||
if ( $is_expandable_searchfield && ! in_array( $view_js_file, $script_handles, true ) ) {
|
||||
$block->block_type->view_script_handles = array_merge( $script_handles, array( $view_js_file ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -90,6 +90,7 @@
|
||||
},
|
||||
"html": false
|
||||
},
|
||||
"viewScript": "file:./view.min.js",
|
||||
"editorStyle": "wp-block-search-editor",
|
||||
"style": "wp-block-search"
|
||||
}
|
||||
|
||||
1
src/wp-includes/blocks/search/view.asset.php
Normal file
1
src/wp-includes/blocks/search/view.asset.php
Normal file
@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '1653a74623d252458484');
|
||||
1
src/wp-includes/blocks/search/view.min.asset.php
Normal file
1
src/wp-includes/blocks/search/view.min.asset.php
Normal file
@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => 'c6277d25063d1381b56e');
|
||||
@ -18,12 +18,11 @@ function render_block_core_template_part( $attributes ) {
|
||||
$template_part_id = null;
|
||||
$content = null;
|
||||
$area = WP_TEMPLATE_PART_AREA_UNCATEGORIZED;
|
||||
$stylesheet = get_stylesheet();
|
||||
|
||||
if (
|
||||
isset( $attributes['slug'] ) &&
|
||||
isset( $attributes['theme'] ) &&
|
||||
$stylesheet === $attributes['theme']
|
||||
get_stylesheet() === $attributes['theme']
|
||||
) {
|
||||
$template_part_id = $attributes['theme'] . '//' . $attributes['slug'];
|
||||
$template_part_query = new WP_Query(
|
||||
@ -64,22 +63,17 @@ function render_block_core_template_part( $attributes ) {
|
||||
*/
|
||||
do_action( 'render_block_core_template_part_post', $template_part_id, $attributes, $template_part_post, $content );
|
||||
} else {
|
||||
$template_part_file_path = '';
|
||||
// Else, if the template part was provided by the active theme,
|
||||
// render the corresponding file content.
|
||||
if ( 0 === validate_file( $attributes['slug'] ) ) {
|
||||
$themes = array( $stylesheet );
|
||||
$template = get_template();
|
||||
if ( $stylesheet !== $template ) {
|
||||
$themes[] = $template;
|
||||
}
|
||||
|
||||
foreach ( $themes as $theme ) {
|
||||
$theme_folders = get_block_theme_folders( $theme );
|
||||
$template_part_file_path = get_theme_file_path( '/' . $theme_folders['wp_template_part'] . '/' . $attributes['slug'] . '.html' );
|
||||
if ( file_exists( $template_part_file_path ) ) {
|
||||
$content = (string) file_get_contents( $template_part_file_path );
|
||||
$content = '' !== $content ? _inject_theme_attribute_in_block_template_content( $content ) : '';
|
||||
break;
|
||||
$block_template_file = _get_block_template_file( 'wp_template_part', $attributes['slug'] );
|
||||
if ( $block_template_file ) {
|
||||
$template_part_file_path = $block_template_file['path'];
|
||||
$content = (string) file_get_contents( $template_part_file_path );
|
||||
$content = '' !== $content ? _inject_theme_attribute_in_block_template_content( $content ) : '';
|
||||
if ( isset( $block_template_file['area'] ) ) {
|
||||
$area = $block_template_file['area'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,6 +68,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
'file/view': normalizeJoin(baseDir, `node_modules/@wordpress/block-library/build-module/file/view` ),
|
||||
'navigation/view': normalizeJoin(baseDir, `node_modules/@wordpress/block-library/build-module/navigation/view` ),
|
||||
'navigation/view-modal': normalizeJoin(baseDir, `node_modules/@wordpress/block-library/build-module/navigation/view-modal` ),
|
||||
'search/view': normalizeJoin(baseDir, `node_modules/@wordpress/block-library/build-module/search/view` ),
|
||||
},
|
||||
output: {
|
||||
devtoolNamespace: 'wp',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user