mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-05 15:11:26 +01:00
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:
parent
6081c85b6c
commit
0861afcb29
File diff suppressed because one or more lines are too long
@ -92,7 +92,7 @@ function render_block_core_rss( $attributes ) {
|
|||||||
$class .= ' ' . $attributes['className'];
|
$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(
|
return sprintf(
|
||||||
'<form class="%s" role="search" method="get" action="%s">%s</form>',
|
'<form class="%s" role="search" method="get" action="%s">%s</form>',
|
||||||
$class,
|
esc_attr( $class ),
|
||||||
esc_url( home_url( '/' ) ),
|
esc_url( home_url( '/' ) ),
|
||||||
$label_markup . $input_markup . $button_markup
|
$label_markup . $input_markup . $button_markup
|
||||||
);
|
);
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* 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
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
11
wp-includes/css/dist/block-library/style-rtl.css
vendored
11
wp-includes/css/dist/block-library/style-rtl.css
vendored
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
@ -87,7 +91,12 @@
|
|||||||
|
|
||||||
.wp-block-buttons .wp-block-button {
|
.wp-block-buttons .wp-block-button {
|
||||||
display: inline-block;
|
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 {
|
.wp-block-buttons.aligncenter {
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
File diff suppressed because one or more lines are too long
11
wp-includes/css/dist/block-library/style.css
vendored
11
wp-includes/css/dist/block-library/style.css
vendored
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
@ -88,7 +92,12 @@
|
|||||||
|
|
||||||
.wp-block-buttons .wp-block-button {
|
.wp-block-buttons .wp-block-button {
|
||||||
display: inline-block;
|
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 {
|
.wp-block-buttons.aligncenter {
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
File diff suppressed because one or more lines are too long
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
4
wp-includes/css/dist/block-library/theme.css
vendored
4
wp-includes/css/dist/block-library/theme.css
vendored
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* 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
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* 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
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* 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
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* 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
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* Breakpoint mixins
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
/**
|
/**
|
||||||
* Often re-used variables
|
* Often re-used variables
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Grid System.
|
||||||
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Breakpoint mixins
|
* 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,
|
startContainer = _selection$getRangeAt.startContainer,
|
||||||
endContainer = _selection$getRangeAt.endContainer;
|
endContainer = _selection$getRangeAt.endContainer;
|
||||||
|
|
||||||
if (!blockNode.contains(startContainer) || !blockNode.contains(endContainer)) {
|
if (!!blockNode && (!blockNode.contains(startContainer) || !blockNode.contains(endContainer))) {
|
||||||
_selection.removeAllRanges();
|
_selection.removeAllRanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -14683,15 +14683,6 @@ function useMultiSelection(ref) {
|
|||||||
|
|
||||||
startClientId.current = clientId;
|
startClientId.current = clientId;
|
||||||
anchorElement.current = document.activeElement;
|
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`
|
startMultiSelect(); // `onSelectionStart` is called after `mousedown` and `mouseleave`
|
||||||
// (from a block). The selection ends when `mouseup` happens anywhere
|
// (from a block). The selection ends when `mouseup` happens anywhere
|
||||||
// in the window.
|
// in the window.
|
||||||
@ -25355,20 +25346,23 @@ function MultiSelectScrollIntoView() {
|
|||||||
var selector = function selector(select) {
|
var selector = function selector(select) {
|
||||||
var _select = select('core/block-editor'),
|
var _select = select('core/block-editor'),
|
||||||
getBlockSelectionEnd = _select.getBlockSelectionEnd,
|
getBlockSelectionEnd = _select.getBlockSelectionEnd,
|
||||||
|
hasMultiSelection = _select.hasMultiSelection,
|
||||||
isMultiSelecting = _select.isMultiSelecting;
|
isMultiSelecting = _select.isMultiSelecting;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
selectionEnd: getBlockSelectionEnd(),
|
selectionEnd: getBlockSelectionEnd(),
|
||||||
|
isMultiSelection: hasMultiSelection(),
|
||||||
isMultiSelecting: isMultiSelecting()
|
isMultiSelecting: isMultiSelecting()
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, []),
|
var _useSelect = Object(external_this_wp_data_["useSelect"])(selector, []),
|
||||||
|
isMultiSelection = _useSelect.isMultiSelection,
|
||||||
selectionEnd = _useSelect.selectionEnd,
|
selectionEnd = _useSelect.selectionEnd,
|
||||||
isMultiSelecting = _useSelect.isMultiSelecting;
|
isMultiSelecting = _useSelect.isMultiSelecting;
|
||||||
|
|
||||||
Object(external_this_wp_element_["useEffect"])(function () {
|
Object(external_this_wp_element_["useEffect"])(function () {
|
||||||
if (!selectionEnd || isMultiSelecting) {
|
if (!selectionEnd || isMultiSelecting || !isMultiSelection) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25388,7 +25382,7 @@ function MultiSelectScrollIntoView() {
|
|||||||
lib_default()(extentNode, scrollContainer, {
|
lib_default()(extentNode, scrollContainer, {
|
||||||
onlyScrollIfNeeded: true
|
onlyScrollIfNeeded: true
|
||||||
});
|
});
|
||||||
}, [selectionEnd, isMultiSelecting]);
|
}, [isMultiSelection, selectionEnd, isMultiSelecting]);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25434,6 +25428,7 @@ function isKeyDownEligibleForStartTyping(event) {
|
|||||||
function ObserveTyping(_ref) {
|
function ObserveTyping(_ref) {
|
||||||
var children = _ref.children,
|
var children = _ref.children,
|
||||||
setSafeTimeout = _ref.setTimeout;
|
setSafeTimeout = _ref.setTimeout;
|
||||||
|
var typingContainer = Object(external_this_wp_element_["useRef"])();
|
||||||
var lastMouseMove = Object(external_this_wp_element_["useRef"])();
|
var lastMouseMove = Object(external_this_wp_element_["useRef"])();
|
||||||
var isTyping = Object(external_this_wp_data_["useSelect"])(function (select) {
|
var isTyping = Object(external_this_wp_data_["useSelect"])(function (select) {
|
||||||
return select('core/block-editor').isTyping();
|
return select('core/block-editor').isTyping();
|
||||||
@ -25525,9 +25520,9 @@ function ObserveTyping(_ref) {
|
|||||||
var type = event.type,
|
var type = event.type,
|
||||||
target = event.target; // Abort early if already typing, or key press is incurred outside a
|
target = event.target; // Abort early if already typing, or key press is incurred outside a
|
||||||
// text field (e.g. arrow-ing through toolbar buttons).
|
// 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;
|
return;
|
||||||
} // Special-case keydown because certain keys do not emit a keypress
|
} // Special-case keydown because certain keys do not emit a keypress
|
||||||
// event. Conversely avoid keydown as the canonical event since there
|
// 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", {
|
return Object(external_this_wp_element_["createElement"])("div", {
|
||||||
|
ref: typingContainer,
|
||||||
onFocus: stopTypingOnNonTextField,
|
onFocus: stopTypingOnNonTextField,
|
||||||
onKeyPress: startTypingInTextField,
|
onKeyPress: startTypingInTextField,
|
||||||
onKeyDown: Object(external_this_lodash_["over"])([startTypingInTextField, stopTypingOnEscapeKey])
|
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
4
wp-includes/js/dist/block-library.js
vendored
4
wp-includes/js/dist/block-library.js
vendored
@ -15949,8 +15949,8 @@ function (_Component) {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
defaultImageWidth: imageDimensions[featuredImageSizeSlug].width,
|
defaultImageWidth: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'width'], 0),
|
||||||
defaultImageHeight: imageDimensions[featuredImageSizeSlug].height,
|
defaultImageHeight: Object(external_this_lodash_["get"])(imageDimensions, [featuredImageSizeSlug, 'height'], 0),
|
||||||
imageSizeOptions: imageSizeOptions,
|
imageSizeOptions: imageSizeOptions,
|
||||||
latestPosts: !Array.isArray(posts) ? posts : posts.map(function (post) {
|
latestPosts: !Array.isArray(posts) ? posts : posts.map(function (post) {
|
||||||
if (post.featured_media) {
|
if (post.featured_media) {
|
||||||
|
2
wp-includes/js/dist/block-library.min.js
vendored
2
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user