Editor: Update JS packages.
Props ellatrix. Reviewed by youknowriad, SergeyBiryukov. Merges [48725] to the 5.5 branch. Fixes #50844. Built from https://develop.svn.wordpress.org/branches/5.5@48728 git-svn-id: http://core.svn.wordpress.org/branches/5.5@48490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
12d6a09ff5
commit
4710457463
File diff suppressed because one or more lines are too long
|
@ -500,10 +500,12 @@
|
|||
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 {
|
||||
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 {
|
||||
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 {
|
||||
margin-right: 2px; }
|
||||
.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
|
@ -504,10 +504,12 @@
|
|||
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 {
|
||||
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 {
|
||||
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 {
|
||||
margin-left: 2px; }
|
||||
.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
|
@ -30351,14 +30351,6 @@ function block_BlockListBlock(_ref) {
|
|||
}, alignmentWrapperProps), blockEdit);
|
||||
}
|
||||
|
||||
if (mode !== 'visual') {
|
||||
blockEdit = Object(external_this_wp_element_["createElement"])("div", {
|
||||
style: {
|
||||
display: 'none'
|
||||
}
|
||||
}, blockEdit);
|
||||
}
|
||||
|
||||
var value = {
|
||||
clientId: clientId,
|
||||
rootClientId: rootClientId,
|
||||
|
@ -30378,19 +30370,35 @@ function block_BlockListBlock(_ref) {
|
|||
var memoizedValue = Object(external_this_wp_element_["useMemo"])(function () {
|
||||
return 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, {
|
||||
value: memoizedValue
|
||||
}, Object(external_this_wp_element_["createElement"])(block_crash_boundary, {
|
||||
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, {
|
||||
__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)));
|
||||
}, block), !!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) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-RC1-48727';
|
||||
$wp_version = '5.5-RC1-48728';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue