mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
Block Editor: Update @wordpress dependencies to the latest version matching Gutenberg 4.3.0
- Update the editor,edit-post,components,block-library,nux and list-reusable blocks packages - Also add a missing wp-date dependency to the editor script Props atimmer See #45145. Built from https://develop.svn.wordpress.org/branches/5.0@43891 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
059f413ade
commit
67bd8ce94c
@ -58,9 +58,6 @@
|
||||
.wp-block-audio {
|
||||
margin: 0; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%; }
|
||||
|
||||
.editor-block-list__block[data-type="core/button"][data-align="center"] {
|
||||
text-align: center; }
|
||||
|
||||
|
@ -58,9 +58,6 @@
|
||||
.wp-block-audio {
|
||||
margin: 0; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%; }
|
||||
|
||||
.editor-block-list__block[data-type="core/button"][data-align="center"] {
|
||||
text-align: center; }
|
||||
|
||||
|
@ -54,10 +54,15 @@
|
||||
|
||||
.wp-block-audio figcaption {
|
||||
margin-top: 0.5em;
|
||||
color: #6c7781;
|
||||
margin-bottom: 1em;
|
||||
color: #555d66;
|
||||
text-align: center;
|
||||
font-size: 13px; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%;
|
||||
min-width: 300px; }
|
||||
|
||||
.editor-block-list__layout .reusable-block-edit-panel {
|
||||
align-items: center;
|
||||
background: #f8f9f9;
|
||||
|
7
wp-includes/css/dist/block-library/style.css
vendored
7
wp-includes/css/dist/block-library/style.css
vendored
@ -54,10 +54,15 @@
|
||||
|
||||
.wp-block-audio figcaption {
|
||||
margin-top: 0.5em;
|
||||
color: #6c7781;
|
||||
margin-bottom: 1em;
|
||||
color: #555d66;
|
||||
text-align: center;
|
||||
font-size: 13px; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%;
|
||||
min-width: 300px; }
|
||||
|
||||
.editor-block-list__layout .reusable-block-edit-panel {
|
||||
align-items: center;
|
||||
background: #f8f9f9;
|
||||
|
8
wp-includes/js/dist/block-library.js
vendored
8
wp-includes/js/dist/block-library.js
vendored
@ -9090,7 +9090,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
var CATEGORIES_LIST_QUERY = {
|
||||
per_page: 100
|
||||
per_page: -1
|
||||
};
|
||||
var MAX_POSTS_COLUMNS = 6;
|
||||
|
||||
@ -10537,7 +10537,7 @@ function MissingBlockWarning(_ref) {
|
||||
var messageHTML;
|
||||
|
||||
if (hasContent && hasHTMLBlock) {
|
||||
messageHTML = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn\'t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName);
|
||||
messageHTML = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName);
|
||||
actions.push(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["Button"], {
|
||||
key: "convert",
|
||||
onClick: convertToHTML,
|
||||
@ -10545,7 +10545,7 @@ function MissingBlockWarning(_ref) {
|
||||
isPrimary: true
|
||||
}, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Keep as HTML')));
|
||||
} else {
|
||||
messageHTML = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn\'t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName);
|
||||
messageHTML = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName);
|
||||
}
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["Warning"], {
|
||||
@ -10573,7 +10573,7 @@ var settings = {
|
||||
name: name,
|
||||
category: 'common',
|
||||
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Unrecognized Block'),
|
||||
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn\'t include support for this block.'),
|
||||
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn’t include support for this block.'),
|
||||
supports: {
|
||||
className: false,
|
||||
customClassName: false,
|
||||
|
2
wp-includes/js/dist/block-library.js.map
vendored
2
wp-includes/js/dist/block-library.js.map
vendored
File diff suppressed because one or more lines are too long
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
1077
wp-includes/js/dist/components.js
vendored
1077
wp-includes/js/dist/components.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/components.js.map
vendored
2
wp-includes/js/dist/components.js.map
vendored
File diff suppressed because one or more lines are too long
38
wp-includes/js/dist/components.min.js
vendored
38
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/edit-post.js.map
vendored
2
wp-includes/js/dist/edit-post.js.map
vendored
File diff suppressed because one or more lines are too long
13
wp-includes/js/dist/editor.js
vendored
13
wp-includes/js/dist/editor.js
vendored
@ -4231,6 +4231,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_11__);
|
||||
/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./block */ "./node_modules/@wordpress/editor/build-module/components/block-list/block.js");
|
||||
/* harmony import */ var _block_list_appender__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../block-list-appender */ "./node_modules/@wordpress/editor/build-module/components/block-list-appender/index.js");
|
||||
/* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/dom */ "./node_modules/@wordpress/editor/build-module/utils/dom.js");
|
||||
|
||||
|
||||
|
||||
@ -4259,6 +4260,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
var BlockList =
|
||||
/*#__PURE__*/
|
||||
function (_Component) {
|
||||
@ -4333,8 +4335,14 @@ function (_Component) {
|
||||
this.props.onStartMultiSelect();
|
||||
}
|
||||
|
||||
var boundaries = this.nodes[this.selectionAtStart].getBoundingClientRect();
|
||||
var y = clientY - boundaries.top;
|
||||
var blockContentBoundaries = Object(_utils_dom__WEBPACK_IMPORTED_MODULE_14__["getBlockDOMNode"])(this.selectionAtStart).getBoundingClientRect(); // prevent multi-selection from triggering when the selected block is a float
|
||||
// and the cursor is still between the top and the bottom of the block.
|
||||
|
||||
if (clientY >= blockContentBoundaries.top && clientY <= blockContentBoundaries.bottom) {
|
||||
return;
|
||||
}
|
||||
|
||||
var y = clientY - blockContentBoundaries.top;
|
||||
var key = Object(lodash__WEBPACK_IMPORTED_MODULE_9__["findLast"])(this.coordMapKeys, function (coordY) {
|
||||
return coordY < y;
|
||||
});
|
||||
@ -15371,7 +15379,6 @@ function PostSchedule(_ref) {
|
||||
key: "date-time-picker",
|
||||
currentDate: date,
|
||||
onChange: onUpdateDate,
|
||||
locale: settings.l10n.locale,
|
||||
is12Hour: is12HourTime
|
||||
});
|
||||
}
|
||||
|
2
wp-includes/js/dist/editor.js.map
vendored
2
wp-includes/js/dist/editor.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/editor.min.js
vendored
2
wp-includes/js/dist/editor.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/format-library.js.map
vendored
2
wp-includes/js/dist/format-library.js.map
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/nux.js.map
vendored
2
wp-includes/js/dist/nux.js.map
vendored
File diff suppressed because one or more lines are too long
@ -201,6 +201,7 @@ function wp_default_packages_scripts( &$scripts ) {
|
||||
'wp-compose',
|
||||
'wp-core-data',
|
||||
'wp-data',
|
||||
'wp-date',
|
||||
'wp-editor',
|
||||
'wp-element',
|
||||
'wp-html-entities',
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-beta3-43890';
|
||||
$wp_version = '5.0-beta3-43891';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user