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.17.2 -> 1.17.3
@wordpress/block-editor: 5.1.2 -> 5.1.3
@wordpress/block-library: 2.26.2 -> 2.26.3
@wordpress/edit-post: 3.25.2 -> 3.25.3
@wordpress/editor: 9.24.2 -> 9.24.3
@wordpress/format-library: 1.25.2 -> 1.25.3
@wordpress/reusable-blocks: 1.0.2 -> 1.0.3

See WordPress/gutenberg#26874 for the list of fixed bugs.

Props isabel_brison.
Fixes #51696.
Built from https://develop.svn.wordpress.org/trunk@49579


git-svn-id: http://core.svn.wordpress.org/trunk@49317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
SergeyBiryukov committed Nov 12, 2020
1 parent 6703f8e commit 1d73805
Show file tree
Hide file tree
Showing 19 changed files with 366 additions and 321 deletions.
2 changes: 1 addition & 1 deletion wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/blocks/social-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @return string Rendered HTML of the referenced block.
*/
function render_block_core_social_link( $attributes, $content, $block ) {
$open_in_new_tab = $block->context['openInNewTab'];
$open_in_new_tab = isset( $block->context['openInNewTab'] ) ? $block->context['openInNewTab'] : false;

$service = ( isset( $attributes['service'] ) ) ? $attributes['service'] : 'Icon';
$url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false;
Expand Down
10 changes: 10 additions & 0 deletions wp-includes/css/dist/block-library/editor-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,16 @@ figure.wp-block-image:not(.wp-block) {
[data-align="full"] > .wp-block-image img {
width: 100%; }

.wp-block[data-align="left"] > .wp-block-image,
.wp-block[data-align="center"] > .wp-block-image,
.wp-block[data-align="right"] > .wp-block-image {
display: table; }
.wp-block[data-align="left"] > .wp-block-image > figcaption,
.wp-block[data-align="center"] > .wp-block-image > figcaption,
.wp-block[data-align="right"] > .wp-block-image > figcaption {
display: table-caption;
caption-side: bottom; }

.wp-block[data-align="left"] > .wp-block-image {
margin-left: 1em;
margin-right: 0;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-library/editor-rtl.min.css

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions wp-includes/css/dist/block-library/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,16 @@ figure.wp-block-image:not(.wp-block) {
[data-align="full"] > .wp-block-image img {
width: 100%; }

.wp-block[data-align="left"] > .wp-block-image,
.wp-block[data-align="center"] > .wp-block-image,
.wp-block[data-align="right"] > .wp-block-image {
display: table; }
.wp-block[data-align="left"] > .wp-block-image > figcaption,
.wp-block[data-align="center"] > .wp-block-image > figcaption,
.wp-block[data-align="right"] > .wp-block-image > figcaption {
display: table-caption;
caption-side: bottom; }

.wp-block[data-align="left"] > .wp-block-image {
margin-right: 1em;
margin-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/block-library/editor.min.css

Large diffs are not rendered by default.

31 changes: 25 additions & 6 deletions wp-includes/css/dist/block-library/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,16 @@

.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
color: #32373c;
background-color: transparent;
border: 2px solid; }

.is-style-outline > .wp-block-button__link:not(.has-text-color),
.wp-block-button__link.is-style-outline:not(.has-text-color) {
color: #32373c; }

.is-style-outline > .wp-block-button__link:not(.has-background),
.wp-block-button__link.is-style-outline:not(.has-background) {
background-color: transparent; }

.wp-block-buttons .wp-block-button {
display: inline-block;
margin-left: 0.5em;
Expand Down Expand Up @@ -225,7 +231,17 @@
justify-content: center;
align-items: center;
padding: 1em;
box-sizing: border-box; }
box-sizing: border-box;
/**
* Set a default background color for has-background-dim _unless_ it includes another
* background-color class (e.g. has-green-background-color). The presence of another
* background-color class implies that another style will provide the background color
* for the overlay.
*
* See:
* - Issue with background color specificity: https://github.com/WordPress/gutenberg/issues/26545
* - Issue with alternative fix: https://github.com/WordPress/gutenberg/issues/26545
*/ }
.wp-block-cover-image.has-parallax,
.wp-block-cover.has-parallax {
background-attachment: fixed; }
Expand All @@ -241,6 +257,9 @@
.wp-block-cover.is-repeated {
background-repeat: repeat;
background-size: auto; }
.wp-block-cover-image.has-background-dim:not([class*="-background-color"]),
.wp-block-cover.has-background-dim:not([class*="-background-color"]) {
background-color: #000; }
.wp-block-cover-image.has-background-dim::before,
.wp-block-cover.has-background-dim::before {
content: "";
Expand Down Expand Up @@ -743,11 +762,11 @@ h6.has-background {
width: 100%; }
.wp-block-image .alignleft,
.wp-block-image .alignright,
.wp-block-image .aligncenter, .wp-block-image.is-resized {
.wp-block-image .aligncenter {
display: table; }
.wp-block-image .alignleft > figcaption,
.wp-block-image .alignright > figcaption,
.wp-block-image .aligncenter > figcaption, .wp-block-image.is-resized > figcaption {
.wp-block-image .aligncenter > figcaption {
display: table-caption;
caption-side: bottom; }
.wp-block-image .alignleft {
Expand Down Expand Up @@ -1195,7 +1214,7 @@ p.has-text-color a {
color: inherit; }

.wp-block-quote.is-style-large, .wp-block-quote.is-large {
margin: 0 0 1em;
margin-bottom: 1em;
padding: 0 1em; }
.wp-block-quote.is-style-large p, .wp-block-quote.is-large p {
font-size: 1.5em;
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.

31 changes: 25 additions & 6 deletions wp-includes/css/dist/block-library/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,16 @@

.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
color: #32373c;
background-color: transparent;
border: 2px solid; }

.is-style-outline > .wp-block-button__link:not(.has-text-color),
.wp-block-button__link.is-style-outline:not(.has-text-color) {
color: #32373c; }

.is-style-outline > .wp-block-button__link:not(.has-background),
.wp-block-button__link.is-style-outline:not(.has-background) {
background-color: transparent; }

.wp-block-buttons .wp-block-button {
display: inline-block;
margin-right: 0.5em;
Expand Down Expand Up @@ -232,7 +238,17 @@
justify-content: center;
align-items: center;
padding: 1em;
box-sizing: border-box; }
box-sizing: border-box;
/**
* Set a default background color for has-background-dim _unless_ it includes another
* background-color class (e.g. has-green-background-color). The presence of another
* background-color class implies that another style will provide the background color
* for the overlay.
*
* See:
* - Issue with background color specificity: https://github.com/WordPress/gutenberg/issues/26545
* - Issue with alternative fix: https://github.com/WordPress/gutenberg/issues/26545
*/ }
.wp-block-cover-image.has-parallax,
.wp-block-cover.has-parallax {
background-attachment: fixed; }
Expand All @@ -248,6 +264,9 @@
.wp-block-cover.is-repeated {
background-repeat: repeat;
background-size: auto; }
.wp-block-cover-image.has-background-dim:not([class*="-background-color"]),
.wp-block-cover.has-background-dim:not([class*="-background-color"]) {
background-color: #000; }
.wp-block-cover-image.has-background-dim::before,
.wp-block-cover.has-background-dim::before {
content: "";
Expand Down Expand Up @@ -751,11 +770,11 @@ h6.has-background {
width: 100%; }
.wp-block-image .alignleft,
.wp-block-image .alignright,
.wp-block-image .aligncenter, .wp-block-image.is-resized {
.wp-block-image .aligncenter {
display: table; }
.wp-block-image .alignleft > figcaption,
.wp-block-image .alignright > figcaption,
.wp-block-image .aligncenter > figcaption, .wp-block-image.is-resized > figcaption {
.wp-block-image .aligncenter > figcaption {
display: table-caption;
caption-side: bottom; }
.wp-block-image .alignleft {
Expand Down Expand Up @@ -1221,7 +1240,7 @@ p.has-text-color a {
color: inherit; }

.wp-block-quote.is-style-large, .wp-block-quote.is-large {
margin: 0 0 1em;
margin-bottom: 1em;
padding: 0 1em; }
.wp-block-quote.is-style-large p, .wp-block-quote.is-large p {
font-size: 1.5em;
Expand Down
4 changes: 2 additions & 2 deletions wp-includes/css/dist/block-library/style.min.css

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion wp-includes/css/dist/edit-post/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ html.interface-interface-skeleton__html-container {
.interface-interface-skeleton__editor {
display: flex;
flex-direction: column;
flex-grow: 1; }
flex-grow: 1;
max-width: 100%; }

.interface-interface-skeleton {
/* Set left position when auto-fold is not on the body element. */
Expand Down Expand Up @@ -648,6 +649,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
height: 36px; }

.edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-text.has-icon {
width: auto;
padding: 0 8px; }

.show-icon-labels .edit-post-header-toolbar__left > * + * {
margin-right: 8px; }

@media (min-width: 1280px) {
.show-icon-labels .edit-post-header-toolbar__block-toolbar {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/edit-post/style-rtl.min.css

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion wp-includes/css/dist/edit-post/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ html.interface-interface-skeleton__html-container {
.interface-interface-skeleton__editor {
display: flex;
flex-direction: column;
flex-grow: 1; }
flex-grow: 1;
max-width: 100%; }

.interface-interface-skeleton {
/* Set left position when auto-fold is not on the body element. */
Expand Down Expand Up @@ -648,6 +649,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-icon {
height: 36px; }

.edit-post-header-toolbar .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle.has-text.has-icon {
width: auto;
padding: 0 8px; }

.show-icon-labels .edit-post-header-toolbar__left > * + * {
margin-left: 8px; }

@media (min-width: 1280px) {
.show-icon-labels .edit-post-header-toolbar__block-toolbar {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/edit-post/style.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 1d73805

Please sign in to comment.