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:
youknowriad 2018-11-12 17:02:54 +00:00
parent 059f413ade
commit 67bd8ce94c
19 changed files with 977 additions and 200 deletions

View File

@ -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; }

View File

@ -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; }

View File

@ -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;

View File

@ -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;

View File

@ -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 doesnt 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 doesnt 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 doesnt include support for this block.'),
supports: {
className: false,
customClassName: false,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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
});
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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',

View File

@ -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.