mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-03 18:18:02 +02:00
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; }
|
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
6
wp-includes/css/dist/block-editor/style.css
vendored
6
wp-includes/css/dist/block-editor/style.css
vendored
@ -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
42
wp-includes/js/dist/block-editor.js
vendored
42
wp-includes/js/dist/block-editor.js
vendored
@ -30351,14 +30351,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,
|
||||||
@ -30378,19 +30370,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) {
|
||||||
|
2
wp-includes/js/dist/block-editor.min.js
vendored
2
wp-includes/js/dist/block-editor.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.5-RC1-48727';
|
$wp_version = '5.5-RC1-48728';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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