Block Editor: Package updates including fixes from Gutenberg for WordPress 5.8 RC1.
This includes the fixes from https://github.com/WordPress/gutenberg/pull/33036 See #53397. Built from https://develop.svn.wordpress.org/trunk@51250 git-svn-id: http://core.svn.wordpress.org/trunk@50859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6311baa859
commit
687fcda03f
File diff suppressed because one or more lines are too long
|
@ -69,6 +69,10 @@
|
||||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||||
*/
|
*/
|
||||||
ol.wp-block-latest-comments {
|
ol.wp-block-latest-comments {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .wp-block-latest-comments {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
ol.wp-block-latest-comments{padding-right:0}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}
|
ol.wp-block-latest-comments{margin-right:0}.wp-block-latest-comments .wp-block-latest-comments{padding-right:0}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}
|
|
@ -69,6 +69,10 @@
|
||||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||||
*/
|
*/
|
||||||
ol.wp-block-latest-comments {
|
ol.wp-block-latest-comments {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .wp-block-latest-comments {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
ol.wp-block-latest-comments{padding-left:0}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}
|
ol.wp-block-latest-comments{margin-left:0}.wp-block-latest-comments .wp-block-latest-comments{padding-left:0}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}
|
|
@ -76,6 +76,7 @@
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list {
|
.wp-block-latest-posts.wp-block-latest-posts__list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}
|
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none;padding-right:0}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}
|
|
@ -78,6 +78,7 @@
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list {
|
.wp-block-latest-posts.wp-block-latest-posts__list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}
|
.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none;padding-left:0}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto;max-width:100%}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}
|
|
@ -1094,6 +1094,10 @@ h6.has-background {
|
||||||
}
|
}
|
||||||
|
|
||||||
ol.wp-block-latest-comments {
|
ol.wp-block-latest-comments {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .wp-block-latest-comments {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1143,6 +1147,7 @@ ol.wp-block-latest-comments {
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list {
|
.wp-block-latest-posts.wp-block-latest-posts__list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1115,6 +1115,10 @@ h6.has-background {
|
||||||
}
|
}
|
||||||
|
|
||||||
ol.wp-block-latest-comments {
|
ol.wp-block-latest-comments {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-latest-comments .wp-block-latest-comments {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1166,6 +1170,7 @@ ol.wp-block-latest-comments {
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list {
|
.wp-block-latest-posts.wp-block-latest-posts__list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
.wp-block-latest-posts.wp-block-latest-posts__list li {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -81,12 +81,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget__edit-form {
|
.wp-block-legacy-widget__edit-form {
|
||||||
display: flow-root;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid #1e1e1e;
|
border: 1px solid #1e1e1e;
|
||||||
padding: 11px;
|
padding: 11px;
|
||||||
}
|
}
|
||||||
|
.wp-block-legacy-widget__edit-form:not([hidden]) {
|
||||||
|
display: flow-root;
|
||||||
|
}
|
||||||
.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title {
|
.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title {
|
||||||
color: #000;
|
color: #000;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{display:flow-root;background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-family:system-ui;font-weight:400;color:#000}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{font-family:system-ui;background:transparent;box-sizing:border-box;border:1px solid #757575;border-radius:3px;box-shadow:none;color:#000;display:block;margin:0;width:100%;font-size:13px;font-weight:400;height:30px;line-height:1;min-height:30px;padding-right:4px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";right:0;position:absolute;left:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{right:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form:not([hidden]){display:flow-root}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-family:system-ui;font-weight:400;color:#000}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{font-family:system-ui;background:transparent;box-sizing:border-box;border:1px solid #757575;border-radius:3px;box-shadow:none;color:#000;display:block;margin:0;width:100%;font-size:13px;font-weight:400;height:30px;line-height:1;min-height:30px;padding-right:4px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";right:0;position:absolute;left:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{right:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
|
@ -81,12 +81,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-block-legacy-widget__edit-form {
|
.wp-block-legacy-widget__edit-form {
|
||||||
display: flow-root;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid #1e1e1e;
|
border: 1px solid #1e1e1e;
|
||||||
padding: 11px;
|
padding: 11px;
|
||||||
}
|
}
|
||||||
|
.wp-block-legacy-widget__edit-form:not([hidden]) {
|
||||||
|
display: flow-root;
|
||||||
|
}
|
||||||
.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title {
|
.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title {
|
||||||
color: #000;
|
color: #000;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{display:flow-root;background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-family:system-ui;font-weight:400;color:#000}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{font-family:system-ui;background:transparent;box-sizing:border-box;border:1px solid #757575;border-radius:3px;box-shadow:none;color:#000;display:block;margin:0;width:100%;font-size:13px;font-weight:400;height:30px;line-height:1;min-height:30px;padding-left:4px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form:not([hidden]){display:flow-root}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside a,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input,.wp-block-legacy-widget__edit-form .widget-inside.widget-inside label{font-family:system-ui;font-weight:400;color:#000}.wp-block-legacy-widget__edit-form .widget-inside.widget-inside input[type=text],.wp-block-legacy-widget__edit-form .widget-inside.widget-inside select{font-family:system-ui;background:transparent;box-sizing:border-box;border:1px solid #757575;border-radius:3px;box-shadow:none;color:#000;display:block;margin:0;width:100%;font-size:13px;font-weight:400;height:30px;line-height:1;min-height:30px;padding-left:4px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-form.wp-block-legacy-widget__edit-form,.wp-block-legacy-widget__edit-no-preview.wp-block-legacy-widget__edit-no-preview{color:#000}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.components-popover__content .wp-block-legacy-widget__edit-form{min-width:400px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}
|
|
@ -11300,6 +11300,16 @@ function* ensureDefaultBlock() {
|
||||||
// always a default block if the last of the blocks have been removed.
|
// always a default block if the last of the blocks have been removed.
|
||||||
|
|
||||||
if (count === 0) {
|
if (count === 0) {
|
||||||
|
const {
|
||||||
|
__unstableHasCustomAppender
|
||||||
|
} = yield external_wp_data_["controls"].select(STORE_NAME, 'getSettings'); // If there's an custom appender, don't insert default block.
|
||||||
|
// We have to remember to manually move the focus elsewhere to
|
||||||
|
// prevent it from being lost though.
|
||||||
|
|
||||||
|
if (__unstableHasCustomAppender) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
return yield actions_insertDefaultBlock();
|
return yield actions_insertDefaultBlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24095,7 +24105,7 @@ function BlockListAppender({
|
||||||
// clicked.
|
// clicked.
|
||||||
,
|
,
|
||||||
onFocus: stopPropagation,
|
onFocus: stopPropagation,
|
||||||
className: classnames_default()('block-list-appender', 'wp-block', className)
|
className: classnames_default()('block-list-appender', className)
|
||||||
}, appender);
|
}, appender);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24394,6 +24404,7 @@ function getDistanceToNearestEdge(point, rect, allowedEdges = ['top', 'bottom',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -24422,6 +24433,7 @@ function getDistanceToNearestEdge(point, rect, allowedEdges = ['top', 'bottom',
|
||||||
|
|
||||||
function getNearestBlockIndex(elements, position, orientation) {
|
function getNearestBlockIndex(elements, position, orientation) {
|
||||||
const allowedEdges = orientation === 'horizontal' ? ['left', 'right'] : ['top', 'bottom'];
|
const allowedEdges = orientation === 'horizontal' ? ['left', 'right'] : ['top', 'bottom'];
|
||||||
|
const isRightToLeft = Object(external_wp_i18n_["isRTL"])();
|
||||||
let candidateIndex;
|
let candidateIndex;
|
||||||
let candidateDistance;
|
let candidateDistance;
|
||||||
elements.forEach((element, index) => {
|
elements.forEach((element, index) => {
|
||||||
|
@ -24431,7 +24443,9 @@ function getNearestBlockIndex(elements, position, orientation) {
|
||||||
if (candidateDistance === undefined || distance < candidateDistance) {
|
if (candidateDistance === undefined || distance < candidateDistance) {
|
||||||
// If the user is dropping to the trailing edge of the block
|
// If the user is dropping to the trailing edge of the block
|
||||||
// add 1 to the index to represent dragging after.
|
// add 1 to the index to represent dragging after.
|
||||||
const isTrailingEdge = edge === 'bottom' || edge === 'right';
|
// Take RTL languages into account where the left edge is
|
||||||
|
// the trailing edge.
|
||||||
|
const isTrailingEdge = edge === 'bottom' || !isRightToLeft && edge === 'right' || isRightToLeft && edge === 'left';
|
||||||
const offset = isTrailingEdge ? 1 : 0; // Update the currently known best candidate.
|
const offset = isTrailingEdge ? 1 : 0; // Update the currently known best candidate.
|
||||||
|
|
||||||
candidateDistance = distance;
|
candidateDistance = distance;
|
||||||
|
@ -24628,53 +24642,57 @@ function InsertionPointPopover({
|
||||||
const previousElement = useBlockElement(previousClientId);
|
const previousElement = useBlockElement(previousClientId);
|
||||||
const nextElement = useBlockElement(nextClientId);
|
const nextElement = useBlockElement(nextClientId);
|
||||||
const style = Object(external_wp_element_["useMemo"])(() => {
|
const style = Object(external_wp_element_["useMemo"])(() => {
|
||||||
if (!previousElement) {
|
if (!previousElement && !nextElement) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const previousRect = previousElement.getBoundingClientRect();
|
const previousRect = previousElement ? previousElement.getBoundingClientRect() : null;
|
||||||
const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
|
const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
|
||||||
|
|
||||||
if (orientation === 'vertical') {
|
if (orientation === 'vertical') {
|
||||||
return {
|
return {
|
||||||
width: previousElement.offsetWidth,
|
width: previousElement ? previousElement.offsetWidth : nextElement.offsetWidth,
|
||||||
height: nextRect ? nextRect.top - previousRect.bottom : 0
|
height: nextRect && previousRect ? nextRect.top - previousRect.bottom : 0
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
let width = 0;
|
let width = 0;
|
||||||
|
|
||||||
if (nextElement) {
|
if (previousRect && nextRect) {
|
||||||
width = Object(external_wp_i18n_["isRTL"])() ? previousRect.left - nextRect.right : nextRect.left - previousRect.right;
|
width = Object(external_wp_i18n_["isRTL"])() ? previousRect.left - nextRect.right : nextRect.left - previousRect.right;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
width,
|
width,
|
||||||
height: previousElement.offsetHeight
|
height: previousElement ? previousElement.offsetHeight : nextElement.offsetHeight
|
||||||
};
|
};
|
||||||
}, [previousElement, nextElement]);
|
}, [previousElement, nextElement]);
|
||||||
const getAnchorRect = Object(external_wp_element_["useCallback"])(() => {
|
const getAnchorRect = Object(external_wp_element_["useCallback"])(() => {
|
||||||
|
if (!previousElement && !nextElement) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
ownerDocument
|
ownerDocument
|
||||||
} = previousElement;
|
} = previousElement || nextElement;
|
||||||
const previousRect = previousElement.getBoundingClientRect();
|
const previousRect = previousElement ? previousElement.getBoundingClientRect() : null;
|
||||||
const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
|
const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
|
||||||
|
|
||||||
if (orientation === 'vertical') {
|
if (orientation === 'vertical') {
|
||||||
if (Object(external_wp_i18n_["isRTL"])()) {
|
if (Object(external_wp_i18n_["isRTL"])()) {
|
||||||
return {
|
return {
|
||||||
top: previousRect.bottom,
|
top: previousRect ? previousRect.bottom : nextRect.top,
|
||||||
left: previousRect.right,
|
left: previousRect ? previousRect.right : nextRect.right,
|
||||||
right: previousRect.left,
|
right: previousRect ? previousRect.left : nextRect.left,
|
||||||
bottom: nextRect ? nextRect.top : previousRect.bottom,
|
bottom: nextRect ? nextRect.top : previousRect.bottom,
|
||||||
ownerDocument
|
ownerDocument
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
top: previousRect.bottom,
|
top: previousRect ? previousRect.bottom : nextRect.top,
|
||||||
left: previousRect.left,
|
left: previousRect ? previousRect.left : nextRect.left,
|
||||||
right: previousRect.right,
|
right: previousRect ? previousRect.right : nextRect.right,
|
||||||
bottom: nextRect ? nextRect.top : previousRect.bottom,
|
bottom: nextRect ? nextRect.top : previousRect.bottom,
|
||||||
ownerDocument
|
ownerDocument
|
||||||
};
|
};
|
||||||
|
@ -24682,28 +24700,23 @@ function InsertionPointPopover({
|
||||||
|
|
||||||
if (Object(external_wp_i18n_["isRTL"])()) {
|
if (Object(external_wp_i18n_["isRTL"])()) {
|
||||||
return {
|
return {
|
||||||
top: previousRect.top,
|
top: previousRect ? previousRect.top : nextRect.top,
|
||||||
left: nextRect ? nextRect.right : previousRect.left,
|
left: previousRect ? previousRect.left : nextRect.right,
|
||||||
right: previousRect.left,
|
right: nextRect ? nextRect.right : previousRect.left,
|
||||||
bottom: previousRect.bottom,
|
bottom: previousRect ? previousRect.bottom : nextRect.bottom,
|
||||||
ownerDocument
|
ownerDocument
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
top: previousRect.top,
|
top: previousRect ? previousRect.top : nextRect.top,
|
||||||
left: previousRect.right,
|
left: previousRect ? previousRect.right : nextRect.left,
|
||||||
right: nextRect ? nextRect.left : previousRect.right,
|
right: nextRect ? nextRect.left : previousRect.right,
|
||||||
bottom: previousRect.bottom,
|
bottom: previousRect ? previousRect.bottom : nextRect.bottom,
|
||||||
ownerDocument
|
ownerDocument
|
||||||
};
|
};
|
||||||
}, [previousElement, nextElement]);
|
}, [previousElement, nextElement]);
|
||||||
const popoverScrollRef = usePopoverScroll(__unstableContentRef);
|
const popoverScrollRef = usePopoverScroll(__unstableContentRef);
|
||||||
|
|
||||||
if (!previousElement) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const className = classnames_default()('block-editor-block-list__insertion-point', 'is-' + orientation);
|
const className = classnames_default()('block-editor-block-list__insertion-point', 'is-' + orientation);
|
||||||
|
|
||||||
function onClick(event) {
|
function onClick(event) {
|
||||||
|
@ -24718,12 +24731,11 @@ function InsertionPointPopover({
|
||||||
if (event.target !== ref.current) {
|
if (event.target !== ref.current) {
|
||||||
openRef.current = true;
|
openRef.current = true;
|
||||||
}
|
}
|
||||||
} // Only show the inserter when there's a `nextElement` (a block after the
|
} // Only show the in-between inserter between blocks, so when there's a
|
||||||
// insertion point). At the end of the block list the trailing appender
|
// previous and a next element.
|
||||||
// should serve the purpose of inserting blocks.
|
|
||||||
|
|
||||||
|
|
||||||
const showInsertionPointInserter = nextElement && isInserterShown;
|
const showInsertionPointInserter = previousElement && nextElement && isInserterShown;
|
||||||
/* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
/* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
||||||
// While ideally it would be enough to capture the
|
// While ideally it would be enough to capture the
|
||||||
// bubbling focus event from the Inserter, due to the
|
// bubbling focus event from the Inserter, due to the
|
||||||
|
@ -31194,7 +31206,7 @@ function RichTextWrapper({
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
onFocus
|
onFocus
|
||||||
}), isSelected && Object(external_wp_element_["createElement"])(RemoveBrowserShortcuts, null), isSelected && autocompleteProps.children, isSelected && Object(external_wp_element_["createElement"])(FormatEdit, {
|
}), isSelected && Object(external_wp_element_["createElement"])(RemoveBrowserShortcuts, null), isSelected && Object(external_wp_element_["createElement"])(FormatEdit, {
|
||||||
value: value,
|
value: value,
|
||||||
onChange: onChange,
|
onChange: onChange,
|
||||||
onFocus: onFocus,
|
onFocus: onFocus,
|
||||||
|
@ -39395,6 +39407,7 @@ function Iframe({
|
||||||
head,
|
head,
|
||||||
...props
|
...props
|
||||||
}, ref) {
|
}, ref) {
|
||||||
|
const [, forceRender] = Object(external_wp_element_["useReducer"])(() => ({}));
|
||||||
const [iframeDocument, setIframeDocument] = Object(external_wp_element_["useState"])();
|
const [iframeDocument, setIframeDocument] = Object(external_wp_element_["useState"])();
|
||||||
const styles = useParsedAssets(window.__editorAssets.styles);
|
const styles = useParsedAssets(window.__editorAssets.styles);
|
||||||
const scripts = useParsedAssets(window.__editorAssets.scripts);
|
const scripts = useParsedAssets(window.__editorAssets.scripts);
|
||||||
|
@ -39430,7 +39443,11 @@ function Iframe({
|
||||||
setIframeDocument(contentDocument);
|
setIframeDocument(contentDocument);
|
||||||
clearerRef(documentElement);
|
clearerRef(documentElement);
|
||||||
clearerRef(body);
|
clearerRef(body);
|
||||||
scripts.reduce((promise, script) => promise.then(() => loadScript(contentDocument, script)), Promise.resolve());
|
scripts.reduce((promise, script) => promise.then(() => loadScript(contentDocument, script)), Promise.resolve()).finally(() => {
|
||||||
|
// When script are loaded, re-render blocks to allow them
|
||||||
|
// to initialise.
|
||||||
|
forceRender();
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -29758,7 +29758,6 @@ function PostTemplateEdit({
|
||||||
sticky,
|
sticky,
|
||||||
inherit
|
inherit
|
||||||
} = {},
|
} = {},
|
||||||
queryId,
|
|
||||||
queryContext = [{
|
queryContext = [{
|
||||||
page: 1
|
page: 1
|
||||||
}],
|
}],
|
||||||
|
@ -29830,8 +29829,7 @@ function PostTemplateEdit({
|
||||||
}, [perPage, page, offset, categoryIds, tagIds, order, orderBy, clientId, author, search, postType, exclude, sticky, inherit, templateSlug]);
|
}, [perPage, page, offset, categoryIds, tagIds, order, orderBy, clientId, author, search, postType, exclude, sticky, inherit, templateSlug]);
|
||||||
const blockContexts = Object(external_wp_element_["useMemo"])(() => posts === null || posts === void 0 ? void 0 : posts.map(post => ({
|
const blockContexts = Object(external_wp_element_["useMemo"])(() => posts === null || posts === void 0 ? void 0 : posts.map(post => ({
|
||||||
postType: post.type,
|
postType: post.type,
|
||||||
postId: post.id,
|
postId: post.id
|
||||||
queryId
|
|
||||||
})), [posts]);
|
})), [posts]);
|
||||||
const hasLayoutFlex = layoutType === 'flex' && columns > 1;
|
const hasLayoutFlex = layoutType === 'flex' && columns > 1;
|
||||||
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
|
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -20879,11 +20879,12 @@ function useAutocomplete({
|
||||||
const isExpanded = !!autocompleter && filteredOptions.length > 0;
|
const isExpanded = !!autocompleter && filteredOptions.length > 0;
|
||||||
const listBoxId = isExpanded ? `components-autocomplete-listbox-${instanceId}` : null;
|
const listBoxId = isExpanded ? `components-autocomplete-listbox-${instanceId}` : null;
|
||||||
const activeId = isExpanded ? `components-autocomplete-item-${instanceId}-${selectedKey}` : null;
|
const activeId = isExpanded ? `components-autocomplete-item-${instanceId}-${selectedKey}` : null;
|
||||||
|
const hasSelection = record.start !== undefined;
|
||||||
return {
|
return {
|
||||||
listBoxId,
|
listBoxId,
|
||||||
activeId,
|
activeId,
|
||||||
onKeyDown: handleKeyDown,
|
onKeyDown: handleKeyDown,
|
||||||
popover: AutocompleterUI && Object(external_wp_element_["createElement"])(AutocompleterUI, {
|
popover: hasSelection && AutocompleterUI && Object(external_wp_element_["createElement"])(AutocompleterUI, {
|
||||||
className: className,
|
className: className,
|
||||||
filterValue: filterValue,
|
filterValue: filterValue,
|
||||||
instanceId: instanceId,
|
instanceId: instanceId,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1406,6 +1406,37 @@ function KeyboardShortcutsRegister() {
|
||||||
KeyboardShortcuts.Register = KeyboardShortcutsRegister;
|
KeyboardShortcuts.Register = KeyboardShortcutsRegister;
|
||||||
/* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts);
|
/* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts);
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/block-appender/index.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function BlockAppender(props) {
|
||||||
|
const ref = Object(external_wp_element_["useRef"])();
|
||||||
|
const isBlocksListEmpty = Object(external_wp_data_["useSelect"])(select => select(external_wp_blockEditor_["store"]).getBlockCount() === 0); // Move the focus to the block appender to prevent focus from
|
||||||
|
// being lost when emptying the widget area.
|
||||||
|
|
||||||
|
Object(external_wp_element_["useEffect"])(() => {
|
||||||
|
if (isBlocksListEmpty && ref.current) {
|
||||||
|
const {
|
||||||
|
ownerDocument
|
||||||
|
} = ref.current;
|
||||||
|
|
||||||
|
if (!ownerDocument.activeElement || ownerDocument.activeElement === ownerDocument.body) {
|
||||||
|
ref.current.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, [isBlocksListEmpty]);
|
||||||
|
return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["ButtonBlockAppender"], Object(esm_extends["a" /* default */])({}, props, {
|
||||||
|
ref: ref
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/index.js
|
// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/sidebar-block-editor/index.js
|
||||||
|
|
||||||
|
|
||||||
|
@ -1433,6 +1464,7 @@ KeyboardShortcuts.Register = KeyboardShortcutsRegister;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function SidebarBlockEditor({
|
function SidebarBlockEditor({
|
||||||
blockEditorSettings,
|
blockEditorSettings,
|
||||||
sidebar,
|
sidebar,
|
||||||
|
@ -1475,7 +1507,8 @@ function SidebarBlockEditor({
|
||||||
__experimentalSetIsInserterOpened: setIsInserterOpened,
|
__experimentalSetIsInserterOpened: setIsInserterOpened,
|
||||||
mediaUpload: mediaUploadBlockEditor,
|
mediaUpload: mediaUploadBlockEditor,
|
||||||
hasFixedToolbar: isFixedToolbarActive,
|
hasFixedToolbar: isFixedToolbarActive,
|
||||||
keepCaretInsideBlock
|
keepCaretInsideBlock,
|
||||||
|
__unstableHasCustomAppender: true
|
||||||
};
|
};
|
||||||
}, [hasUploadPermissions, blockEditorSettings, isFixedToolbarActive, keepCaretInsideBlock]);
|
}, [hasUploadPermissions, blockEditorSettings, isFixedToolbarActive, keepCaretInsideBlock]);
|
||||||
|
|
||||||
|
@ -1499,7 +1532,7 @@ function SidebarBlockEditor({
|
||||||
setIsInserterOpened: setIsInserterOpened,
|
setIsInserterOpened: setIsInserterOpened,
|
||||||
isFixedToolbarActive: isFixedToolbarActive
|
isFixedToolbarActive: isFixedToolbarActive
|
||||||
}), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockTools"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockSelectionClearer"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["WritingFlow"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["ObserveTyping"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockList"], {
|
}), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockTools"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockSelectionClearer"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["WritingFlow"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["ObserveTyping"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockList"], {
|
||||||
renderAppender: external_wp_blockEditor_["ButtonBlockAppender"]
|
renderAppender: BlockAppender
|
||||||
}))))), Object(external_wp_element_["createPortal"])( // This is a temporary hack to prevent button component inside <BlockInspector>
|
}))))), Object(external_wp_element_["createPortal"])( // This is a temporary hack to prevent button component inside <BlockInspector>
|
||||||
// from submitting form when type="button" is not specified.
|
// from submitting form when type="button" is not specified.
|
||||||
Object(external_wp_element_["createElement"])("form", {
|
Object(external_wp_element_["createElement"])("form", {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -791,10 +791,11 @@ function* saveWidgetArea(widgetAreaId) {
|
||||||
const widget = transformBlockToWidget(block, oldWidget); // We'll replace the null widgetId after save, but we track it here
|
const widget = transformBlockToWidget(block, oldWidget); // We'll replace the null widgetId after save, but we track it here
|
||||||
// since order is important.
|
// since order is important.
|
||||||
|
|
||||||
sidebarWidgetsIds.push(widgetId); // We need to check for the id in the widget object here, because a deleted
|
sidebarWidgetsIds.push(widgetId); // Check oldWidget as widgetId might refer to an ID which has been
|
||||||
// and restored widget won't have this id.
|
// deleted, e.g. if a deleted block is restored via undo after saving.
|
||||||
|
|
||||||
if (widget.id) {
|
if (oldWidget) {
|
||||||
|
// Update an existing widget.
|
||||||
yield dispatch('core', 'editEntityRecord', 'root', 'widget', widgetId, { ...widget,
|
yield dispatch('core', 'editEntityRecord', 'root', 'widget', widgetId, { ...widget,
|
||||||
sidebar: widgetAreaId
|
sidebar: widgetAreaId
|
||||||
}, {
|
}, {
|
||||||
|
@ -810,6 +811,7 @@ function* saveWidgetArea(widgetAreaId) {
|
||||||
saveEditedEntityRecord
|
saveEditedEntityRecord
|
||||||
}) => saveEditedEntityRecord('root', 'widget', widgetId));
|
}) => saveEditedEntityRecord('root', 'widget', widgetId));
|
||||||
} else {
|
} else {
|
||||||
|
// Create a new widget.
|
||||||
batchTasks.push(({
|
batchTasks.push(({
|
||||||
saveEntityRecord
|
saveEntityRecord
|
||||||
}) => saveEntityRecord('root', 'widget', { ...widget,
|
}) => saveEntityRecord('root', 'widget', { ...widget,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -310,7 +310,7 @@ class control_Control {
|
||||||
// a fake but unique number.
|
// a fake but unique number.
|
||||||
|
|
||||||
this.number = ++lastNumber;
|
this.number = ++lastNumber;
|
||||||
this.handleFormChange = Object(external_lodash_["debounce"])(this.saveForm.bind(this), 200);
|
this.handleFormChange = Object(external_lodash_["debounce"])(this.handleFormChange.bind(this), 200);
|
||||||
this.handleFormSubmit = this.handleFormSubmit.bind(this);
|
this.handleFormSubmit = this.handleFormSubmit.bind(this);
|
||||||
this.initDOM();
|
this.initDOM();
|
||||||
this.bindEvents();
|
this.bindEvents();
|
||||||
|
@ -480,6 +480,19 @@ class control_Control {
|
||||||
this.onError(error);
|
this.onError(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Perform a save when a multi widget's form is changed. Non-multi widgets
|
||||||
|
* are saved manually.
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
handleFormChange() {
|
||||||
|
if (this.idBase) {
|
||||||
|
this.saveForm();
|
||||||
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Perform a save when the control's form is manually submitted.
|
* Perform a save when the control's form is manually submitted.
|
||||||
*
|
*
|
||||||
|
@ -1045,7 +1058,7 @@ function NotEmpty({
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_components_["Placeholder"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null));
|
return Object(external_wp_element_["createElement"])(external_wp_components_["Placeholder"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Spinner"], null));
|
||||||
}
|
}
|
||||||
|
|
||||||
const mode = isNavigationMode || !isSelected ? 'preview' : 'edit';
|
const mode = idBase && (isNavigationMode || !isSelected) ? 'preview' : 'edit';
|
||||||
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, idBase === 'text' && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
|
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, idBase === 'text' && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
|
||||||
group: "other"
|
group: "other"
|
||||||
}, Object(external_wp_element_["createElement"])(ConvertToBlocksButton, {
|
}, Object(external_wp_element_["createElement"])(ConvertToBlocksButton, {
|
||||||
|
|
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.8-beta4-51249';
|
$wp_version = '5.8-beta4-51250';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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