Skip to content

Commit

Permalink
Editor: Update Packages with the latest bug fixes for 6.5 beta 3
Browse files Browse the repository at this point in the history
It includes all the backports from this Gutenberg PR WordPress/gutenberg#59394

Props get_dave, youknowriad.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57721


git-svn-id: https://core.svn.wordpress.org/trunk@57222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
youknowriad committed Feb 27, 2024
1 parent a5f814d commit 68175f6
Show file tree
Hide file tree
Showing 51 changed files with 1,655 additions and 1,105 deletions.
2 changes: 1 addition & 1 deletion wp-includes/assets/script-loader-packages.min.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion wp-includes/blocks/cover/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
display:flex;
justify-content:center;
min-height:430px;
overflow-x:clip;
overflow:hidden;
overflow:clip;
padding:1em;
position:relative;
}
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/blocks/cover/style-rtl.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion wp-includes/blocks/cover/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
display:flex;
justify-content:center;
min-height:430px;
overflow-x:clip;
overflow:hidden;
overflow:clip;
padding:1em;
position:relative;
}
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/blocks/cover/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/blocks/footnotes.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function register_block_core_footnotes_post_meta() {
}
}
}
/**
/*
* Most post types are registered at priority 10, so use priority 20 here in
* order to catch them.
*/
Expand Down
10 changes: 7 additions & 3 deletions wp-includes/blocks/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,14 +554,18 @@ private static function get_nav_element_directives( $is_interactive ) {
// When adding to this array be mindful of security concerns.
$nav_element_context = data_wp_context(
array(
'overlayOpenedBy' => array(),
'overlayOpenedBy' => array(
'click' => false,
'hover' => false,
'focus' => false,
),
'type' => 'overlay',
'roleAttribute' => '',
'ariaLabel' => __( 'Menu' ),
)
);
$nav_element_directives = '
data-wp-interactive="core/navigation"'
data-wp-interactive="core/navigation" '
. $nav_element_context;

return $nav_element_directives;
Expand Down Expand Up @@ -764,7 +768,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
) ) {
// Add directives to the parent `<li>`.
$tags->set_attribute( 'data-wp-interactive', 'core/navigation' );
$tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": {}, "type": "submenu" }' );
$tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu" }' );
$tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' );
$tags->set_attribute( 'data-wp-on--focusout', 'actions.handleMenuFocusout' );
$tags->set_attribute( 'data-wp-on--keydown', 'actions.handleMenuKeydown' );
Expand Down
2 changes: 2 additions & 0 deletions wp-includes/blocks/search/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
line-height:0;
}
.wp-block-search__button svg{
height:1.25em;
min-height:24px;
min-width:24px;
width:1.25em;
fill:currentColor;
vertical-align:text-bottom;
}
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/blocks/search/style-rtl.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions wp-includes/blocks/search/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
line-height:0;
}
.wp-block-search__button svg{
height:1.25em;
min-height:24px;
min-width:24px;
width:1.25em;
fill:currentColor;
vertical-align:text-bottom;
}
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/blocks/search/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 47 additions & 14 deletions wp-includes/css/dist/block-editor/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,17 @@ iframe[name=editor-canvas].has-editor-padding{
width:230px;
}

.block-editor-global-styles__shadow__list{
display:flex;
flex-wrap:wrap;
gap:12px;
padding-bottom:8px;
}

.block-editor-global-styles__clear-shadow{
text-align:left;
}

.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{
display:block;
padding:0;
Expand All @@ -1405,21 +1416,27 @@ iframe[name=editor-canvas].has-editor-padding{
background-color:#f0f0f0;
}

.block-editor-global-styles__shadow-indicator-wrapper{
align-items:center;
display:flex;
justify-content:center;
padding:6px;
}

.block-editor-global-styles__shadow-indicator{
border:1px solid #e0e0e0;
border-radius:2px;
box-sizing:border-box;
color:#2f2f2f;
cursor:pointer;
height:24px;
height:26px;
padding:0;
width:24px;
transform:scale(1);
transition:transform .1s ease;
width:26px;
will-change:transform;
}
.block-editor-global-styles__shadow-indicator:focus{
border:2px solid #757575;
}
.block-editor-global-styles__shadow-indicator:hover{
transform:scale(1.2);
}
.block-editor-global-styles__shadow-indicator.unset{
background:linear-gradient(45deg, #0000 48%, #ddd 0, #ddd 52%, #0000 0);
}

.block-editor-global-styles-advanced-panel__custom-css-input textarea{
Expand Down Expand Up @@ -1633,6 +1650,13 @@ iframe[name=editor-canvas].has-editor-padding{
.show-icon-labels .block-editor-link-control .components-button.has-icon:before{
content:attr(aria-label);
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{
gap:8px;
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{
min-width:inherit;
width:min-content;
}

.block-editor-link-control__search-input-wrapper{
margin-bottom:8px;
Expand Down Expand Up @@ -2890,6 +2914,7 @@ iframe[name=editor-canvas].has-editor-padding{
flex-shrink:1;
margin-left:8px;
max-width:350px;
min-width:150px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
Expand Down Expand Up @@ -2926,6 +2951,11 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{
flex-direction:row;
}
.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{
color:#757575;
font-size:12px;
margin-bottom:16px;
}

.block-editor-hooks__background__inspector-media-replace-container{
position:relative;
Expand Down Expand Up @@ -3243,14 +3273,12 @@ iframe[name=editor-canvas].has-editor-padding{
width:0;
}
.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{
position:relative;
width:auto;
}
@media (min-width:600px){
.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{
position:relative;
}
.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
background:#1e1e1e;
.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{
background:#e0e0e0;
content:"";
height:1px;
margin-top:-.5px;
Expand All @@ -3261,6 +3289,11 @@ iframe[name=editor-canvas].has-editor-padding{
width:100%;
}
}
@media (min-width:782px){
.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{
background:#1e1e1e;
}
}
.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{
padding-left:6px;
padding-right:6px;
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.

61 changes: 47 additions & 14 deletions wp-includes/css/dist/block-editor/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,17 @@ iframe[name=editor-canvas].has-editor-padding{
width:230px;
}

.block-editor-global-styles__shadow__list{
display:flex;
flex-wrap:wrap;
gap:12px;
padding-bottom:8px;
}

.block-editor-global-styles__clear-shadow{
text-align:right;
}

.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{
display:block;
padding:0;
Expand All @@ -1405,21 +1416,27 @@ iframe[name=editor-canvas].has-editor-padding{
background-color:#f0f0f0;
}

.block-editor-global-styles__shadow-indicator-wrapper{
align-items:center;
display:flex;
justify-content:center;
padding:6px;
}

.block-editor-global-styles__shadow-indicator{
border:1px solid #e0e0e0;
border-radius:2px;
box-sizing:border-box;
color:#2f2f2f;
cursor:pointer;
height:24px;
height:26px;
padding:0;
width:24px;
transform:scale(1);
transition:transform .1s ease;
width:26px;
will-change:transform;
}
.block-editor-global-styles__shadow-indicator:focus{
border:2px solid #757575;
}
.block-editor-global-styles__shadow-indicator:hover{
transform:scale(1.2);
}
.block-editor-global-styles__shadow-indicator.unset{
background:linear-gradient(-45deg, #0000 48%, #ddd 0, #ddd 52%, #0000 0);
}

.block-editor-global-styles-advanced-panel__custom-css-input textarea{
Expand Down Expand Up @@ -1633,6 +1650,13 @@ iframe[name=editor-canvas].has-editor-padding{
.show-icon-labels .block-editor-link-control .components-button.has-icon:before{
content:attr(aria-label);
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top{
gap:8px;
}
.show-icon-labels .block-editor-link-control .block-editor-link-control__search-item-top .components-button.has-icon{
min-width:inherit;
width:min-content;
}

.block-editor-link-control__search-input-wrapper{
margin-bottom:8px;
Expand Down Expand Up @@ -2890,6 +2914,7 @@ iframe[name=editor-canvas].has-editor-padding{
flex-shrink:1;
margin-right:8px;
max-width:350px;
min-width:150px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
Expand Down Expand Up @@ -2926,6 +2951,11 @@ iframe[name=editor-canvas].has-editor-padding{
.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{
flex-direction:row;
}
.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{
color:#757575;
font-size:12px;
margin-bottom:16px;
}

.block-editor-hooks__background__inspector-media-replace-container{
position:relative;
Expand Down Expand Up @@ -3243,14 +3273,12 @@ iframe[name=editor-canvas].has-editor-padding{
width:0;
}
.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{
position:relative;
width:auto;
}
@media (min-width:600px){
.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{
position:relative;
}
.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container:before{
background:#1e1e1e;
.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{
background:#e0e0e0;
content:"";
height:1px;
left:50%;
Expand All @@ -3261,6 +3289,11 @@ iframe[name=editor-canvas].has-editor-padding{
width:100%;
}
}
@media (min-width:782px){
.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{
background:#1e1e1e;
}
}
.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{
padding-left:6px;
padding-right:6px;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-editor/style.min.css

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion wp-includes/css/dist/block-library/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@
display:flex;
justify-content:center;
min-height:430px;
overflow-x:clip;
overflow:hidden;
overflow:clip;
padding:1em;
position:relative;
}
Expand Down Expand Up @@ -2684,8 +2685,10 @@ ul.wp-block-rss.is-grid li{
line-height:0;
}
.wp-block-search__button svg{
height:1.25em;
min-height:24px;
min-width:24px;
width:1.25em;
fill:currentColor;
vertical-align:text-bottom;
}
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.

5 changes: 4 additions & 1 deletion wp-includes/css/dist/block-library/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@
display:flex;
justify-content:center;
min-height:430px;
overflow-x:clip;
overflow:hidden;
overflow:clip;
padding:1em;
position:relative;
}
Expand Down Expand Up @@ -2684,8 +2685,10 @@ ul.wp-block-rss.is-grid li{
line-height:0;
}
.wp-block-search__button svg{
height:1.25em;
min-height:24px;
min-width:24px;
width:1.25em;
fill:currentColor;
vertical-align:text-bottom;
}
Expand Down
4 changes: 2 additions & 2 deletions wp-includes/css/dist/block-library/style.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions wp-includes/css/dist/components/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ p+.components-button.is-tertiary{
font-size:21px;
}
}
.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{
background:#f0f0f0;
border-color:#ddd;
cursor:default;
opacity:1;
}
@media (min-width:600px){
.components-checkbox-control__input[type=checkbox]{
height:20px;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/components/style-rtl.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 68175f6

Please sign in to comment.