Editor: update JS packages

Fixes #50844.

Built from https://develop.svn.wordpress.org/trunk@48725


git-svn-id: http://core.svn.wordpress.org/trunk@48487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ellatrix 2020-08-04 16:48:43 +00:00
parent 315db55458
commit 69370fa0da
8 changed files with 38 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@ -500,10 +500,12 @@
width: 48px; } width: 48px; }
.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
min-width: 36px; min-width: 36px;
width: 36px; } width: 36px;
overflow: hidden; }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
min-width: 24px; min-width: 24px;
width: 24px; } width: 24px;
overflow: hidden; }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg {
margin-right: 2px; } margin-right: 2px; }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {

File diff suppressed because one or more lines are too long

View File

@ -504,10 +504,12 @@
width: 48px; } width: 48px; }
.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { .block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
min-width: 36px; min-width: 36px;
width: 36px; } width: 36px;
overflow: hidden; }
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button { .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
min-width: 24px; min-width: 24px;
width: 24px; } width: 24px;
overflow: hidden; }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg {
margin-left: 2px; } margin-left: 2px; }
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg { .block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {

File diff suppressed because one or more lines are too long

View File

@ -30352,14 +30352,6 @@ function block_BlockListBlock(_ref) {
}, alignmentWrapperProps), blockEdit); }, alignmentWrapperProps), blockEdit);
} }
if (mode !== 'visual') {
blockEdit = Object(external_this_wp_element_["createElement"])("div", {
style: {
display: 'none'
}
}, blockEdit);
}
var value = { var value = {
clientId: clientId, clientId: clientId,
rootClientId: rootClientId, rootClientId: rootClientId,
@ -30379,19 +30371,35 @@ function block_BlockListBlock(_ref) {
var memoizedValue = Object(external_this_wp_element_["useMemo"])(function () { var memoizedValue = Object(external_this_wp_element_["useMemo"])(function () {
return value; return value;
}, Object.values(value)); }, Object.values(value));
var block;
if (!isValid) {
block = Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_invalid_warning, {
clientId: clientId
}), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes)));
} else if (mode === 'html') {
// Render blockEdit so the inspector controls don't disappear.
// See #8969.
block = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", {
style: {
display: 'none'
}
}, blockEdit), Object(external_this_wp_element_["createElement"])(Block.div, {
__unstableIsHtml: true
}, Object(external_this_wp_element_["createElement"])(block_html, {
clientId: clientId
})));
} else if (lightBlockWrapper) {
block = blockEdit;
} else {
block = Object(external_this_wp_element_["createElement"])(Block.div, wrapperProps, blockEdit);
}
return Object(external_this_wp_element_["createElement"])(BlockListBlockContext.Provider, { return Object(external_this_wp_element_["createElement"])(BlockListBlockContext.Provider, {
value: memoizedValue value: memoizedValue
}, Object(external_this_wp_element_["createElement"])(block_crash_boundary, { }, Object(external_this_wp_element_["createElement"])(block_crash_boundary, {
onError: onBlockError onError: onBlockError
}, isValid && lightBlockWrapper && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, blockEdit, mode === 'html' && Object(external_this_wp_element_["createElement"])(Block.div, { }, block), !!hasError && Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_crash_warning, null)));
__unstableIsHtml: true
}, Object(external_this_wp_element_["createElement"])(block_html, {
clientId: clientId
}))), isValid && !lightBlockWrapper && Object(external_this_wp_element_["createElement"])(Block.div, wrapperProps, blockEdit, mode === 'html' && Object(external_this_wp_element_["createElement"])(block_html, {
clientId: clientId
})), !isValid && Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_invalid_warning, {
clientId: clientId
}), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes)))), !!hasError && Object(external_this_wp_element_["createElement"])(Block.div, null, Object(external_this_wp_element_["createElement"])(block_crash_warning, null)));
} }
var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-alpha-48724'; $wp_version = '5.6-alpha-48725';
/** /**
* 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.