Editor: update packages.
The following package versions were changed: @wordpress/block-directory: 1.13.6 -> 1.13.7 @wordpress/block-editor: 4.3.6 -> 4.3.7 @wordpress/block-library: 2.22.6 -> 2.22.7 @wordpress/components: 10.0.5 -> 10.0.6 @wordpress/edit-post: 3.21.6 -> 3.21.7 @wordpress/editor: 9.20.6 -> 9.20.7 @wordpress/format-library: 1.22.6 -> 1.22.7 @wordpress/list-reusable-blocks: 1.21.5 -> 1.21.6 @wordpress/nux: 3.20.5 -> 3.20.6 @wordpress/server-side-render: 1.16.5 -> 1.16.6 Includes PR WordPress/gutenberg#24828 Props nosolosw, desrosj, SergeyBiryukov, youknowriad. Fixes: #51151. Built from https://develop.svn.wordpress.org/trunk@48884 git-svn-id: http://core.svn.wordpress.org/trunk@48646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ae5fb83507
commit
e9e6e0dbe6
File diff suppressed because one or more lines are too long
|
@ -877,6 +877,12 @@
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-icon {
|
.block-editor-block-navigation-leaf .block-editor-block-icon {
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
margin-left: 6px; }
|
margin-left: 6px; }
|
||||||
|
.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,
|
||||||
|
.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg {
|
||||||
|
color: #fff;
|
||||||
|
background: #1e1e1e;
|
||||||
|
box-shadow: 0 0 0 1px #1e1e1e;
|
||||||
|
border-radius: 1px; }
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,
|
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,
|
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell {
|
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -881,6 +881,12 @@
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-icon {
|
.block-editor-block-navigation-leaf .block-editor-block-icon {
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
margin-right: 6px; }
|
margin-right: 6px; }
|
||||||
|
.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,
|
||||||
|
.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg {
|
||||||
|
color: #fff;
|
||||||
|
background: #1e1e1e;
|
||||||
|
box-shadow: 0 0 0 1px #1e1e1e;
|
||||||
|
border-radius: 1px; }
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,
|
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,
|
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,
|
||||||
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell {
|
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -109,7 +109,7 @@
|
||||||
.wp-block-button__link.no-border-radius {
|
.wp-block-button__link.no-border-radius {
|
||||||
border-radius: 0 !important; }
|
border-radius: 0 !important; }
|
||||||
|
|
||||||
.wp-block-button.is-style-outline .wp-block-button__link,
|
.is-style-outline .wp-block-button__link,
|
||||||
.wp-block-button__link.is-style-outline {
|
.wp-block-button__link.is-style-outline {
|
||||||
color: #32373c;
|
color: #32373c;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -110,7 +110,7 @@
|
||||||
.wp-block-button__link.no-border-radius {
|
.wp-block-button__link.no-border-radius {
|
||||||
border-radius: 0 !important; }
|
border-radius: 0 !important; }
|
||||||
|
|
||||||
.wp-block-button.is-style-outline .wp-block-button__link,
|
.is-style-outline .wp-block-button__link,
|
||||||
.wp-block-button__link.is-style-outline {
|
.wp-block-button__link.is-style-outline {
|
||||||
color: #32373c;
|
color: #32373c;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -30594,7 +30594,7 @@ function BlockNavigationBlockSelectButton(_ref, ref) {
|
||||||
isSelected = _ref.isSelected,
|
isSelected = _ref.isSelected,
|
||||||
onClick = _ref.onClick,
|
onClick = _ref.onClick,
|
||||||
position = _ref.position,
|
position = _ref.position,
|
||||||
siblingCount = _ref.siblingCount,
|
siblingBlockCount = _ref.siblingBlockCount,
|
||||||
level = _ref.level,
|
level = _ref.level,
|
||||||
tabIndex = _ref.tabIndex,
|
tabIndex = _ref.tabIndex,
|
||||||
onFocus = _ref.onFocus;
|
onFocus = _ref.onFocus;
|
||||||
|
@ -30604,7 +30604,7 @@ function BlockNavigationBlockSelectButton(_ref, ref) {
|
||||||
var blockDisplayName = Object(external_this_wp_blocks_["__experimentalGetBlockLabel"])(blockType, attributes);
|
var blockDisplayName = Object(external_this_wp_blocks_["__experimentalGetBlockLabel"])(blockType, attributes);
|
||||||
var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockNavigationBlockSelectButton);
|
var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockNavigationBlockSelectButton);
|
||||||
var descriptionId = "block-navigation-block-select-button__".concat(instanceId);
|
var descriptionId = "block-navigation-block-select-button__".concat(instanceId);
|
||||||
var blockPositionDescription = utils_getBlockPositionDescription(position, siblingCount, level);
|
var blockPositionDescription = utils_getBlockPositionDescription(position, siblingBlockCount, level);
|
||||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
||||||
className: classnames_default()('block-editor-block-navigation-block-select-button', className),
|
className: classnames_default()('block-editor-block-navigation-block-select-button', className),
|
||||||
onClick: onClick,
|
onClick: onClick,
|
||||||
|
@ -30674,14 +30674,14 @@ function BlockNavigationBlockSlot(props, ref) {
|
||||||
block = props.block,
|
block = props.block,
|
||||||
isSelected = props.isSelected,
|
isSelected = props.isSelected,
|
||||||
position = props.position,
|
position = props.position,
|
||||||
siblingCount = props.siblingCount,
|
siblingBlockCount = props.siblingBlockCount,
|
||||||
level = props.level,
|
level = props.level,
|
||||||
tabIndex = props.tabIndex,
|
tabIndex = props.tabIndex,
|
||||||
onFocus = props.onFocus;
|
onFocus = props.onFocus;
|
||||||
var name = block.name;
|
var name = block.name;
|
||||||
var blockType = Object(external_this_wp_blocks_["getBlockType"])(name);
|
var blockType = Object(external_this_wp_blocks_["getBlockType"])(name);
|
||||||
var descriptionId = "block-navigation-block-slot__".concat(instanceId);
|
var descriptionId = "block-navigation-block-slot__".concat(instanceId);
|
||||||
var blockPositionDescription = utils_getBlockPositionDescription(position, siblingCount, level);
|
var blockPositionDescription = utils_getBlockPositionDescription(position, siblingBlockCount, level);
|
||||||
var forwardedFillProps = {
|
var forwardedFillProps = {
|
||||||
// Ensure that the component in the slot can receive
|
// Ensure that the component in the slot can receive
|
||||||
// keyboard navigation.
|
// keyboard navigation.
|
||||||
|
@ -30737,9 +30737,9 @@ var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"
|
||||||
block = _ref.block,
|
block = _ref.block,
|
||||||
isSelected = _ref.isSelected,
|
isSelected = _ref.isSelected,
|
||||||
position = _ref.position,
|
position = _ref.position,
|
||||||
siblingCount = _ref.siblingCount,
|
siblingBlockCount = _ref.siblingBlockCount,
|
||||||
level = _ref.level,
|
level = _ref.level,
|
||||||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onClick", "block", "isSelected", "position", "siblingCount", "level"]);
|
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onClick", "block", "isSelected", "position", "siblingBlockCount", "level"]);
|
||||||
|
|
||||||
var _useBlockNavigationCo = context_useBlockNavigationContext(),
|
var _useBlockNavigationCo = context_useBlockNavigationContext(),
|
||||||
withBlockNavigationSlots = _useBlockNavigationCo.__experimentalFeatures;
|
withBlockNavigationSlots = _useBlockNavigationCo.__experimentalFeatures;
|
||||||
|
@ -30751,7 +30751,7 @@ var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"
|
||||||
onClick: onClick,
|
onClick: onClick,
|
||||||
isSelected: isSelected,
|
isSelected: isSelected,
|
||||||
position: position,
|
position: position,
|
||||||
siblingCount: siblingCount,
|
siblingBlockCount: siblingBlockCount,
|
||||||
level: level
|
level: level
|
||||||
}, props)) : Object(external_this_wp_element_["createElement"])(block_select_button, Object(esm_extends["a" /* default */])({
|
}, props)) : Object(external_this_wp_element_["createElement"])(block_select_button, Object(esm_extends["a" /* default */])({
|
||||||
ref: ref,
|
ref: ref,
|
||||||
|
@ -30760,7 +30760,7 @@ var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"
|
||||||
onClick: onClick,
|
onClick: onClick,
|
||||||
isSelected: isSelected,
|
isSelected: isSelected,
|
||||||
position: position,
|
position: position,
|
||||||
siblingCount: siblingCount,
|
siblingBlockCount: siblingBlockCount,
|
||||||
level: level
|
level: level
|
||||||
}, props));
|
}, props));
|
||||||
});
|
});
|
||||||
|
@ -30802,6 +30802,7 @@ function BlockNavigationBlock(_ref) {
|
||||||
position = _ref.position,
|
position = _ref.position,
|
||||||
level = _ref.level,
|
level = _ref.level,
|
||||||
rowCount = _ref.rowCount,
|
rowCount = _ref.rowCount,
|
||||||
|
siblingBlockCount = _ref.siblingBlockCount,
|
||||||
showBlockMovers = _ref.showBlockMovers,
|
showBlockMovers = _ref.showBlockMovers,
|
||||||
terminatedLevels = _ref.terminatedLevels,
|
terminatedLevels = _ref.terminatedLevels,
|
||||||
path = _ref.path;
|
path = _ref.path;
|
||||||
|
@ -30820,10 +30821,8 @@ function BlockNavigationBlock(_ref) {
|
||||||
var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'),
|
var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'),
|
||||||
selectEditorBlock = _useDispatch.selectBlock;
|
selectEditorBlock = _useDispatch.selectBlock;
|
||||||
|
|
||||||
var clientId = block.clientId; // Subtract 1 from rowCount, as it includes the block appender.
|
var clientId = block.clientId;
|
||||||
|
var hasSiblings = siblingBlockCount > 0;
|
||||||
var siblingCount = rowCount - 1;
|
|
||||||
var hasSiblings = siblingCount > 1;
|
|
||||||
var hasRenderedMovers = showBlockMovers && hasSiblings;
|
var hasRenderedMovers = showBlockMovers && hasSiblings;
|
||||||
var hasVisibleMovers = isHovered || isFocused;
|
var hasVisibleMovers = isHovered || isFocused;
|
||||||
var moverCellClassName = classnames_default()('block-editor-block-navigation-block__mover-cell', {
|
var moverCellClassName = classnames_default()('block-editor-block-navigation-block__mover-cell', {
|
||||||
|
@ -30882,7 +30881,7 @@ function BlockNavigationBlock(_ref) {
|
||||||
},
|
},
|
||||||
isSelected: isSelected,
|
isSelected: isSelected,
|
||||||
position: position,
|
position: position,
|
||||||
siblingCount: siblingCount,
|
siblingBlockCount: siblingBlockCount,
|
||||||
level: level,
|
level: level,
|
||||||
ref: ref,
|
ref: ref,
|
||||||
tabIndex: tabIndex,
|
tabIndex: tabIndex,
|
||||||
|
@ -31063,7 +31062,8 @@ function BlockNavigationBranch(props) {
|
||||||
|
|
||||||
var hasAppender = itemHasAppender(parentBlockClientId); // Add +1 to the rowCount to take the block appender into account.
|
var hasAppender = itemHasAppender(parentBlockClientId); // Add +1 to the rowCount to take the block appender into account.
|
||||||
|
|
||||||
var rowCount = hasAppender ? filteredBlocks.length + 1 : filteredBlocks.length;
|
var blockCount = filteredBlocks.length;
|
||||||
|
var rowCount = hasAppender ? blockCount + 1 : blockCount;
|
||||||
var appenderPosition = rowCount;
|
var appenderPosition = rowCount;
|
||||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_lodash_["map"])(filteredBlocks, function (block, index) {
|
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_lodash_["map"])(filteredBlocks, function (block, index) {
|
||||||
var clientId = block.clientId,
|
var clientId = block.clientId,
|
||||||
|
@ -31083,6 +31083,7 @@ function BlockNavigationBranch(props) {
|
||||||
level: level,
|
level: level,
|
||||||
position: position,
|
position: position,
|
||||||
rowCount: rowCount,
|
rowCount: rowCount,
|
||||||
|
siblingBlockCount: blockCount,
|
||||||
showBlockMovers: showBlockMovers,
|
showBlockMovers: showBlockMovers,
|
||||||
terminatedLevels: terminatedLevels,
|
terminatedLevels: terminatedLevels,
|
||||||
path: updatedPath
|
path: updatedPath
|
||||||
|
@ -36316,6 +36317,8 @@ function useResizeCanvas(deviceType) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var contentInlineStyles = function contentInlineStyles(device) {
|
var contentInlineStyles = function contentInlineStyles(device) {
|
||||||
|
var height = device === 'Mobile' ? '768px' : '1024px';
|
||||||
|
|
||||||
switch (device) {
|
switch (device) {
|
||||||
case 'Tablet':
|
case 'Tablet':
|
||||||
case 'Mobile':
|
case 'Mobile':
|
||||||
|
@ -36323,7 +36326,9 @@ function useResizeCanvas(deviceType) {
|
||||||
width: getCanvasWidth(device),
|
width: getCanvasWidth(device),
|
||||||
margin: marginValue() + 'px auto',
|
margin: marginValue() + 'px auto',
|
||||||
flexGrow: 0,
|
flexGrow: 0,
|
||||||
maxHeight: device === 'Mobile' ? '768px' : '1024px',
|
height: height,
|
||||||
|
minHeight: height,
|
||||||
|
maxHeight: height,
|
||||||
overflowY: 'auto'
|
overflowY: 'auto'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -42988,7 +42988,8 @@ function QueryControls(_ref) {
|
||||||
categoriesList: categoriesList,
|
categoriesList: categoriesList,
|
||||||
label: Object(external_this_wp_i18n_["__"])('Category'),
|
label: Object(external_this_wp_i18n_["__"])('Category'),
|
||||||
noOptionLabel: Object(external_this_wp_i18n_["__"])('All'),
|
noOptionLabel: Object(external_this_wp_i18n_["__"])('All'),
|
||||||
selectedCategoryId: selectedCategoryId
|
selectedCategoryId: selectedCategoryId,
|
||||||
|
onChange: onCategoryChange
|
||||||
}), categorySuggestions && onCategoryChange && Object(external_this_wp_element_["createElement"])(form_token_field, {
|
}), categorySuggestions && onCategoryChange && Object(external_this_wp_element_["createElement"])(form_token_field, {
|
||||||
key: "query-controls-categories-select",
|
key: "query-controls-categories-select",
|
||||||
label: Object(external_this_wp_i18n_["__"])('Categories'),
|
label: Object(external_this_wp_i18n_["__"])('Categories'),
|
||||||
|
|
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.6-alpha-48881';
|
$wp_version = '5.6-alpha-48884';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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