mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Block Editor: Update _all_ of the block editor packages following the 5.4.1 release.
This is an extension of [47619] and [47765]. Fixes #50094. Props aduth, peterwilsoncc, whyisjake, ocean90, and afercia. Built from https://develop.svn.wordpress.org/trunk@47766 git-svn-id: http://core.svn.wordpress.org/trunk@47542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4a11b9db02
commit
538e9fb308
File diff suppressed because one or more lines are too long
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
);
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
4
wp-includes/css/dist/block-editor/style.css
vendored
4
wp-includes/css/dist/block-editor/style.css
vendored
@ -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
|
||||
*/
|
||||
|
4
wp-includes/css/dist/edit-post/style-rtl.css
vendored
4
wp-includes/css/dist/edit-post/style-rtl.css
vendored
@ -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
|
||||
*/
|
||||
|
4
wp-includes/css/dist/edit-post/style.css
vendored
4
wp-includes/css/dist/edit-post/style.css
vendored
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
4
wp-includes/css/dist/editor/style-rtl.css
vendored
4
wp-includes/css/dist/editor/style-rtl.css
vendored
@ -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
|
||||
*/
|
||||
|
4
wp-includes/css/dist/editor/style.css
vendored
4
wp-includes/css/dist/editor/style.css
vendored
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
24
wp-includes/js/dist/block-editor.js
vendored
24
wp-includes/js/dist/block-editor.js
vendored
@ -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])
|
||||
|
4
wp-includes/js/dist/block-editor.min.js
vendored
4
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-47765';
|
||||
$wp_version = '5.5-alpha-47766';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user