Block Editor: Update WordPress Packages for WordPress 5.4.1

The following packages were updated:

@wordpress/block-directory 1.5.7 ➡️ 1.5.8
@wordpress/block-editor 3.7.7 ➡️ 3.7.8
@wordpress/block-library 2.14.7 ➡️ 2.14.8
@wordpress/edit-post 3.13.9 ➡️ 3.13.10
@wordpress/editor 9.12.7 ➡️ 9.12.8
@wordpress/format-library 1.14.7 ➡️ 1.14.8

Props whyisjake, youknowriad, toro_unit, ellatrix, roo2, noahtallen, arnaudbroes, chrisvanpatten, apeatling, mcsf, jorgefilipecosta, talldanwp, aduth, noisysocks.
Fixes #49974.

Built from https://develop.svn.wordpress.org/branches/5.4@47619


git-svn-id: http://core.svn.wordpress.org/branches/5.4@47394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2020-04-24 15:32:14 +00:00
parent 6081c85b6c
commit 0861afcb29
28 changed files with 105 additions and 27 deletions

File diff suppressed because one or more lines are too long

View File

@ -92,7 +92,7 @@ function render_block_core_rss( $attributes ) {
$class .= ' ' . $attributes['className'];
}
return "<ul class='{$class}'>{$list_items}</ul>";
return sprintf( "<ul class='%s'>%s</ul>", esc_attr( $class ), $list_items );
}
/**

View File

@ -57,7 +57,7 @@ function render_block_core_search( $attributes ) {
return sprintf(
'<form class="%s" role="search" method="get" action="%s">%s</form>',
$class,
esc_attr( $class ),
esc_url( home_url( '/' ) ),
$label_markup . $input_markup . $button_markup
);

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/
@ -87,7 +91,12 @@
.wp-block-buttons .wp-block-button {
display: inline-block;
margin: 4px; }
margin-left: 8px;
margin-bottom: 8px; }
.wp-block-buttons.alignright .wp-block-button {
margin-left: none;
margin-right: 8px; }
.wp-block-buttons.aligncenter {
text-align: center; }

File diff suppressed because one or more lines are too long

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/
@ -88,7 +92,12 @@
.wp-block-buttons .wp-block-button {
display: inline-block;
margin: 4px; }
margin-right: 8px;
margin-bottom: 8px; }
.wp-block-buttons.alignright .wp-block-button {
margin-right: none;
margin-left: 8px; }
.wp-block-buttons.aligncenter {
text-align: center; }

File diff suppressed because one or more lines are too long

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -11,6 +11,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -11,6 +11,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -10,6 +10,10 @@
/**
* Often re-used variables
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Breakpoint mixins
*/

View File

@ -14577,7 +14577,7 @@ function useMultiSelection(ref) {
startContainer = _selection$getRangeAt.startContainer,
endContainer = _selection$getRangeAt.endContainer;
if (!blockNode.contains(startContainer) || !blockNode.contains(endContainer)) {
if (!!blockNode && (!blockNode.contains(startContainer) || !blockNode.contains(endContainer))) {
_selection.removeAllRanges();
}
}
@ -14683,15 +14683,6 @@ function useMultiSelection(ref) {
startClientId.current = clientId;
anchorElement.current = document.activeElement;
if (anchorElement.current) {
var blockInspector = document.querySelector('.block-editor-block-inspector');
if (blockInspector && blockInspector.contains(anchorElement.current)) {
return;
}
}
startMultiSelect(); // `onSelectionStart` is called after `mousedown` and `mouseleave`
// (from a block). The selection ends when `mouseup` happens anywhere
// in the window.
@ -25355,20 +25346,23 @@ function MultiSelectScrollIntoView() {
var selector = function selector(select) {
var _select = select('core/block-editor'),
getBlockSelectionEnd = _select.getBlockSelectionEnd,
hasMultiSelection = _select.hasMultiSelection,
isMultiSelecting = _select.isMultiSelecting;
return {
selectionEnd: getBlockSelectionEnd(),
isMultiSelection: hasMultiSelection(),
isMultiSelecting: isMultiSelecting()
};
};
var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, []),
isMultiSelection = _useSelect.isMultiSelection,
selectionEnd = _useSelect.selectionEnd,
isMultiSelecting = _useSelect.isMultiSelecting;
Object(external_this_wp_element_["useEffect"])(function () {
if (!selectionEnd || isMultiSelecting) {
if (!selectionEnd || isMultiSelecting || !isMultiSelection) {
return;
}
@ -25388,7 +25382,7 @@ function MultiSelectScrollIntoView() {
lib_default()(extentNode, scrollContainer, {
onlyScrollIfNeeded: true
});
}, [selectionEnd, isMultiSelecting]);
}, [isMultiSelection, selectionEnd, isMultiSelecting]);
return null;
}
@ -25434,6 +25428,7 @@ function isKeyDownEligibleForStartTyping(event) {
function ObserveTyping(_ref) {
var children = _ref.children,
setSafeTimeout = _ref.setTimeout;
var typingContainer = Object(external_this_wp_element_["useRef"])();
var lastMouseMove = Object(external_this_wp_element_["useRef"])();
var isTyping = Object(external_this_wp_data_["useSelect"])(function (select) {
return select('core/block-editor').isTyping();
@ -25525,9 +25520,9 @@ function ObserveTyping(_ref) {
var type = event.type,
target = event.target; // Abort early if already typing, or key press is incurred outside a
// text field (e.g. arrow-ing through toolbar buttons).
// Ignore typing in a block toolbar
// Ignore typing if outside the current DOM container
if (isTyping || !Object(external_this_wp_dom_["isTextField"])(target) || target.closest('.block-editor-block-toolbar')) {
if (isTyping || !Object(external_this_wp_dom_["isTextField"])(target) || !typingContainer.current.contains(target)) {
return;
} // Special-case keydown because certain keys do not emit a keypress
// event. Conversely avoid keydown as the canonical event since there
@ -25564,6 +25559,7 @@ function ObserveTyping(_ref) {
return Object(external_this_wp_element_["createElement"])("div", {
ref: typingContainer,
onFocus: stopTypingOnNonTextField,
onKeyPress: startTypingInTextField,
onKeyDown: Object(external_this_lodash_["over"])([startTypingInTextField, stopTypingOnEscapeKey])

File diff suppressed because one or more lines are too long

View File

@ -15949,8 +15949,8 @@ function (_Component) {
};
});
return {
defaultImageWidth: imageDimensions[featuredImageSizeSlug].width,
defaultImageHeight: imageDimensions[featuredImageSizeSlug].height,
defaultImageWidth: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'width'], 0),
defaultImageHeight: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'height'], 0),
imageSizeOptions: imageSizeOptions,
latestPosts: !Array.isArray(posts) ? posts : posts.map(function (post) {
if (post.featured_media) {

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4.1-alpha-47581';
$wp_version = '5.4.1-alpha-47619';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.