Skip to content

Commit

Permalink
Editor: update packages.
Browse files Browse the repository at this point in the history
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.
Merges [48884] to the 5.5 branch.
Fixes: #51151.
Built from https://develop.svn.wordpress.org/branches/5.5@48885


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
jorgefilipecosta committed Aug 27, 2020
1 parent 5b5de79 commit 5228943
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 26 deletions.
2 changes: 1 addition & 1 deletion wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions wp-includes/css/dist/block-editor/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,12 @@
.block-editor-block-navigation-leaf .block-editor-block-icon {
align-self: flex-start;
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__mover-cell,
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell {
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-editor/style-rtl.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions wp-includes/css/dist/block-editor/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,12 @@
.block-editor-block-navigation-leaf .block-editor-block-icon {
align-self: flex-start;
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__mover-cell,
.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell {
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-editor/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-library/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
.wp-block-button__link.no-border-radius {
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 {
color: #32373c;
background-color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-library/style-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-library/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
.wp-block-button__link.no-border-radius {
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 {
color: #32373c;
background-color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-library/style.min.css

Large diffs are not rendered by default.

35 changes: 20 additions & 15 deletions wp-includes/js/dist/block-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -30593,7 +30593,7 @@ function BlockNavigationBlockSelectButton(_ref, ref) {
isSelected = _ref.isSelected,
onClick = _ref.onClick,
position = _ref.position,
siblingCount = _ref.siblingCount,
siblingBlockCount = _ref.siblingBlockCount,
level = _ref.level,
tabIndex = _ref.tabIndex,
onFocus = _ref.onFocus;
Expand All @@ -30603,7 +30603,7 @@ function BlockNavigationBlockSelectButton(_ref, ref) {
var blockDisplayName = Object(external_this_wp_blocks_["__experimentalGetBlockLabel"])(blockType, attributes);
var instanceId = Object(external_this_wp_compose_["useInstanceId"])(BlockNavigationBlockSelectButton);
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"], {
className: classnames_default()('block-editor-block-navigation-block-select-button', className),
onClick: onClick,
Expand Down Expand Up @@ -30673,14 +30673,14 @@ function BlockNavigationBlockSlot(props, ref) {
block = props.block,
isSelected = props.isSelected,
position = props.position,
siblingCount = props.siblingCount,
siblingBlockCount = props.siblingBlockCount,
level = props.level,
tabIndex = props.tabIndex,
onFocus = props.onFocus;
var name = block.name;
var blockType = Object(external_this_wp_blocks_["getBlockType"])(name);
var descriptionId = "block-navigation-block-slot__".concat(instanceId);
var blockPositionDescription = utils_getBlockPositionDescription(position, siblingCount, level);
var blockPositionDescription = utils_getBlockPositionDescription(position, siblingBlockCount, level);
var forwardedFillProps = {
// Ensure that the component in the slot can receive
// keyboard navigation.
Expand Down Expand Up @@ -30736,9 +30736,9 @@ var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"
block = _ref.block,
isSelected = _ref.isSelected,
position = _ref.position,
siblingCount = _ref.siblingCount,
siblingBlockCount = _ref.siblingBlockCount,
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(),
withBlockNavigationSlots = _useBlockNavigationCo.__experimentalFeatures;
Expand All @@ -30750,7 +30750,7 @@ var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"
onClick: onClick,
isSelected: isSelected,
position: position,
siblingCount: siblingCount,
siblingBlockCount: siblingBlockCount,
level: level
}, props)) : Object(external_this_wp_element_["createElement"])(block_select_button, Object(esm_extends["a" /* default */])({
ref: ref,
Expand All @@ -30759,7 +30759,7 @@ var BlockNavigationBlockContents = Object(external_this_wp_element_["forwardRef"
onClick: onClick,
isSelected: isSelected,
position: position,
siblingCount: siblingCount,
siblingBlockCount: siblingBlockCount,
level: level
}, props));
});
Expand Down Expand Up @@ -30801,6 +30801,7 @@ function BlockNavigationBlock(_ref) {
position = _ref.position,
level = _ref.level,
rowCount = _ref.rowCount,
siblingBlockCount = _ref.siblingBlockCount,
showBlockMovers = _ref.showBlockMovers,
terminatedLevels = _ref.terminatedLevels,
path = _ref.path;
Expand All @@ -30819,10 +30820,8 @@ function BlockNavigationBlock(_ref) {
var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'),
selectEditorBlock = _useDispatch.selectBlock;

var clientId = block.clientId; // Subtract 1 from rowCount, as it includes the block appender.

var siblingCount = rowCount - 1;
var hasSiblings = siblingCount > 1;
var clientId = block.clientId;
var hasSiblings = siblingBlockCount > 0;
var hasRenderedMovers = showBlockMovers && hasSiblings;
var hasVisibleMovers = isHovered || isFocused;
var moverCellClassName = classnames_default()('block-editor-block-navigation-block__mover-cell', {
Expand Down Expand Up @@ -30881,7 +30880,7 @@ function BlockNavigationBlock(_ref) {
},
isSelected: isSelected,
position: position,
siblingCount: siblingCount,
siblingBlockCount: siblingBlockCount,
level: level,
ref: ref,
tabIndex: tabIndex,
Expand Down Expand Up @@ -31062,7 +31061,8 @@ function BlockNavigationBranch(props) {

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;
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,
Expand All @@ -31082,6 +31082,7 @@ function BlockNavigationBranch(props) {
level: level,
position: position,
rowCount: rowCount,
siblingBlockCount: blockCount,
showBlockMovers: showBlockMovers,
terminatedLevels: terminatedLevels,
path: updatedPath
Expand Down Expand Up @@ -36315,14 +36316,18 @@ function useResizeCanvas(deviceType) {
};

var contentInlineStyles = function contentInlineStyles(device) {
var height = device === 'Mobile' ? '768px' : '1024px';

switch (device) {
case 'Tablet':
case 'Mobile':
return {
width: getCanvasWidth(device),
margin: marginValue() + 'px auto',
flexGrow: 0,
maxHeight: device === 'Mobile' ? '768px' : '1024px',
height: height,
minHeight: height,
maxHeight: height,
overflowY: 'auto'
};

Expand Down
2 changes: 1 addition & 1 deletion wp-includes/js/dist/block-editor.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion wp-includes/js/dist/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -42989,7 +42989,8 @@ function QueryControls(_ref) {
categoriesList: categoriesList,
label: Object(external_this_wp_i18n_["__"])('Category'),
noOptionLabel: Object(external_this_wp_i18n_["__"])('All'),
selectedCategoryId: selectedCategoryId
selectedCategoryId: selectedCategoryId,
onChange: onCategoryChange
}), categorySuggestions && onCategoryChange && Object(external_this_wp_element_["createElement"])(form_token_field, {
key: "query-controls-categories-select",
label: Object(external_this_wp_i18n_["__"])('Categories'),
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/js/dist/components.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5.1-alpha-48883';
$wp_version = '5.5.1-alpha-48885';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 5228943

Please sign in to comment.