Editor: update packages
Fixes #50888 Built from https://develop.svn.wordpress.org/trunk@48772 git-svn-id: http://core.svn.wordpress.org/trunk@48534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9214595e90
commit
3bf88764f1
File diff suppressed because one or more lines are too long
|
@ -477,37 +477,13 @@
|
|||
border-radius: 2px;
|
||||
background-color: #fff; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container {
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar {
|
||||
border-left-color: #1e1e1e; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container {
|
||||
border-left-style: solid;
|
||||
border-left-width: 1px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon::before,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle::before {
|
||||
width: 28px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg {
|
||||
margin-right: 10px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg {
|
||||
margin-right: auto; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group {
|
||||
border-left: none; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover {
|
||||
margin-right: -12px;
|
||||
width: 36px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal {
|
||||
width: 48px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
|
||||
min-width: 36px;
|
||||
width: 36px;
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover-button {
|
||||
overflow: hidden; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button {
|
||||
min-width: 24px;
|
||||
width: 24px;
|
||||
overflow: hidden; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg {
|
||||
margin-right: 2px; }
|
||||
width: 24px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {
|
||||
margin-top: 3px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg {
|
||||
|
@ -515,7 +491,7 @@
|
|||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before {
|
||||
right: 0 !important;
|
||||
min-width: 0;
|
||||
width: 28px; }
|
||||
width: 100%; }
|
||||
|
||||
/**
|
||||
* Block Label for Navigation/Selection Mode
|
||||
|
@ -787,48 +763,52 @@
|
|||
|
||||
.block-editor-block-mover .components-toolbar-group,
|
||||
.block-editor-block-mover .components-toolbar {
|
||||
flex-direction: column;
|
||||
flex: 1; }
|
||||
flex: 1;
|
||||
flex-direction: row; }
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .components-toolbar-group,
|
||||
.block-editor-block-mover .components-toolbar {
|
||||
flex-direction: column; } }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .components-toolbar-group,
|
||||
.block-editor-block-mover.is-horizontal .components-toolbar {
|
||||
flex-direction: row; }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .block-editor-block-mover-button {
|
||||
padding: 0 !important;
|
||||
height: 24px;
|
||||
width: 48px;
|
||||
padding: 0 !important; }
|
||||
width: 48px; } }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .block-editor-block-mover-button::before {
|
||||
right: 8px !important;
|
||||
left: 8px !important; }
|
||||
left: 8px !important; } }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg {
|
||||
margin-bottom: -8px; }
|
||||
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before {
|
||||
bottom: 0;
|
||||
height: calc(100% - 8px); }
|
||||
|
||||
height: calc(100% - 1px); }
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg {
|
||||
margin-top: -8px; }
|
||||
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before {
|
||||
top: 0;
|
||||
height: calc(100% - 8px); }
|
||||
height: calc(100% - 1px); } }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon {
|
||||
height: 48px;
|
||||
width: 24px;
|
||||
min-width: 24px;
|
||||
padding-right: 0;
|
||||
padding-left: 0; }
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before {
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
min-width: 0;
|
||||
width: auto;
|
||||
height: auto; }
|
||||
|
@ -839,7 +819,7 @@
|
|||
margin-bottom: 0; }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before {
|
||||
right: 8px !important;
|
||||
right: 0 !important;
|
||||
left: 0 !important; }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg {
|
||||
|
@ -849,7 +829,8 @@
|
|||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before {
|
||||
right: 0 !important;
|
||||
left: 8px !important; }
|
||||
left: 0 !important;
|
||||
width: calc(100% + 1px); }
|
||||
|
||||
.block-editor-block-navigation__container {
|
||||
padding: 7px; }
|
||||
|
@ -2331,13 +2312,31 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper {
|
||||
display: none; }
|
||||
|
||||
.block-editor-block-toolbar__mover-switcher-container {
|
||||
display: flex; }
|
||||
.block-editor-block-toolbar-animated-width-container {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: width 300ms; }
|
||||
|
||||
.block-editor-block-toolbar__block-switcher-wrapper {
|
||||
display: flex; }
|
||||
.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher {
|
||||
display: block; }
|
||||
.block-editor-block-toolbar-content-enter {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: auto;
|
||||
opacity: 0; }
|
||||
|
||||
.block-editor-block-toolbar-content-enter-active {
|
||||
position: absolute;
|
||||
opacity: 1;
|
||||
transition: opacity 300ms; }
|
||||
|
||||
.block-editor-block-toolbar-content-exit {
|
||||
width: auto;
|
||||
opacity: 1;
|
||||
pointer-events: none; }
|
||||
|
||||
.block-editor-block-toolbar-content-exit-active {
|
||||
opacity: 0;
|
||||
transition: opacity 300ms; }
|
||||
|
||||
.block-editor-inserter {
|
||||
display: inline-block;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -481,37 +481,13 @@
|
|||
border-radius: 2px;
|
||||
background-color: #fff; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container {
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar {
|
||||
border-right-color: #1e1e1e; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__mover-switcher-container {
|
||||
border-right-style: solid;
|
||||
border-right-width: 1px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__no-switcher-icon::before,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher__toggle::before {
|
||||
width: 28px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-icon svg {
|
||||
margin-left: 10px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher:last-child .block-editor-block-icon svg {
|
||||
margin-left: auto; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar,
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-toolbar__block-switcher-wrapper .components-toolbar-group {
|
||||
border-right: none; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover {
|
||||
margin-left: -12px;
|
||||
width: 36px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal {
|
||||
width: 48px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
|
||||
min-width: 36px;
|
||||
width: 36px;
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover-button {
|
||||
overflow: hidden; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .components-button.has-icon.block-editor-block-mover-button.block-editor-block-mover-button {
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button {
|
||||
min-width: 24px;
|
||||
width: 24px;
|
||||
overflow: hidden; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button > svg {
|
||||
margin-left: 2px; }
|
||||
width: 24px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg {
|
||||
margin-top: 3px; }
|
||||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg {
|
||||
|
@ -519,7 +495,7 @@
|
|||
.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus::before {
|
||||
left: 0 !important;
|
||||
min-width: 0;
|
||||
width: 28px; }
|
||||
width: 100%; }
|
||||
|
||||
/**
|
||||
* Block Label for Navigation/Selection Mode
|
||||
|
@ -791,48 +767,52 @@
|
|||
|
||||
.block-editor-block-mover .components-toolbar-group,
|
||||
.block-editor-block-mover .components-toolbar {
|
||||
flex-direction: column;
|
||||
flex: 1; }
|
||||
flex: 1;
|
||||
flex-direction: row; }
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .components-toolbar-group,
|
||||
.block-editor-block-mover .components-toolbar {
|
||||
flex-direction: column; } }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .components-toolbar-group,
|
||||
.block-editor-block-mover.is-horizontal .components-toolbar {
|
||||
flex-direction: row; }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .block-editor-block-mover-button {
|
||||
padding: 0 !important;
|
||||
height: 24px;
|
||||
width: 48px;
|
||||
padding: 0 !important; }
|
||||
width: 48px; } }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .block-editor-block-mover-button::before {
|
||||
left: 8px !important;
|
||||
right: 8px !important; }
|
||||
right: 8px !important; } }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg {
|
||||
margin-bottom: -8px; }
|
||||
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button::before,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button::before {
|
||||
bottom: 0;
|
||||
height: calc(100% - 8px); }
|
||||
|
||||
height: calc(100% - 1px); }
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg {
|
||||
margin-top: -8px; }
|
||||
|
||||
.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button::before,
|
||||
.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button::before {
|
||||
top: 0;
|
||||
height: calc(100% - 8px); }
|
||||
height: calc(100% - 1px); } }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon {
|
||||
height: 48px;
|
||||
width: 24px;
|
||||
min-width: 24px;
|
||||
padding-left: 0;
|
||||
padding-right: 0; }
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon::before {
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
min-width: 0;
|
||||
width: auto;
|
||||
height: auto; }
|
||||
|
@ -843,7 +823,7 @@
|
|||
margin-bottom: 0; }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon::before {
|
||||
left: 8px !important;
|
||||
left: 0 !important;
|
||||
right: 0 !important; }
|
||||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg {
|
||||
|
@ -853,7 +833,8 @@
|
|||
|
||||
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon::before {
|
||||
left: 0 !important;
|
||||
right: 8px !important; }
|
||||
right: 0 !important;
|
||||
width: calc(100% + 1px); }
|
||||
|
||||
.block-editor-block-navigation__container {
|
||||
padding: 7px; }
|
||||
|
@ -2335,13 +2316,31 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar__block-parent-selector-wrapper {
|
||||
display: none; }
|
||||
|
||||
.block-editor-block-toolbar__mover-switcher-container {
|
||||
display: flex; }
|
||||
.block-editor-block-toolbar-animated-width-container {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: width 300ms; }
|
||||
|
||||
.block-editor-block-toolbar__block-switcher-wrapper {
|
||||
display: flex; }
|
||||
.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher {
|
||||
display: block; }
|
||||
.block-editor-block-toolbar-content-enter {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: auto;
|
||||
opacity: 0; }
|
||||
|
||||
.block-editor-block-toolbar-content-enter-active {
|
||||
position: absolute;
|
||||
opacity: 1;
|
||||
transition: opacity 300ms; }
|
||||
|
||||
.block-editor-block-toolbar-content-exit {
|
||||
width: auto;
|
||||
opacity: 1;
|
||||
pointer-events: none; }
|
||||
|
||||
.block-editor-block-toolbar-content-exit-active {
|
||||
opacity: 0;
|
||||
transition: opacity 300ms; }
|
||||
|
||||
.block-editor-inserter {
|
||||
display: inline-block;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -766,7 +766,6 @@ figure.wp-block-image:not(.wp-block) {
|
|||
|
||||
.wp-block-image__aspect-ratio {
|
||||
height: 46px;
|
||||
margin-top: -8px;
|
||||
margin-bottom: -8px;
|
||||
display: flex;
|
||||
align-items: center; }
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -771,7 +771,6 @@ figure.wp-block-image:not(.wp-block) {
|
|||
|
||||
.wp-block-image__aspect-ratio {
|
||||
height: 46px;
|
||||
margin-top: -8px;
|
||||
margin-bottom: -8px;
|
||||
display: flex;
|
||||
align-items: center; }
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4117,13 +4117,13 @@ div.components-toolbar > div + div.has-left-divider::before {
|
|||
right: 8px;
|
||||
left: 2px; }
|
||||
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon,
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-of-type.has-icon,
|
||||
.components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon,
|
||||
.components-toolbar div:last-child .components-button.has-icon {
|
||||
min-width: 42px;
|
||||
padding-right: 6px;
|
||||
padding-left: 11px; }
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon::before,
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-of-type.has-icon::before,
|
||||
.components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon::before,
|
||||
.components-toolbar div:last-child .components-button.has-icon::before {
|
||||
right: 2px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4138,13 +4138,13 @@ div.components-toolbar > div + div.has-left-divider::before {
|
|||
left: 8px;
|
||||
right: 2px; }
|
||||
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon,
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-of-type.has-icon,
|
||||
.components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon,
|
||||
.components-toolbar div:last-child .components-button.has-icon {
|
||||
min-width: 42px;
|
||||
padding-left: 6px;
|
||||
padding-right: 11px; }
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-child.has-icon::before,
|
||||
.components-accessible-toolbar .components-toolbar-group > .components-button:last-of-type.has-icon::before,
|
||||
.components-accessible-toolbar .components-toolbar-group > div:last-child > .components-button.has-icon::before,
|
||||
.components-toolbar div:last-child .components-button.has-icon::before {
|
||||
left: 2px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -371,12 +371,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||
.edit-post-header__settings .components-button.block-editor-post-preview__dropdown {
|
||||
margin-left: 12px; } }
|
||||
|
||||
.edit-post-header__settings .components-button.editor-post-save-draft,
|
||||
.edit-post-header__settings .components-button.editor-post-switch-to-draft,
|
||||
.edit-post-header__settings .components-button.editor-post-preview,
|
||||
.edit-post-header__settings .components-button.block-editor-post-preview__button-toggle {
|
||||
color: #1e1e1e; }
|
||||
|
||||
.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,
|
||||
.edit-post-header__settings .components-button.editor-post-publish-button,
|
||||
.edit-post-header__settings .components-button.editor-post-publish-panel__toggle {
|
||||
|
@ -713,6 +707,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
.edit-post-layout .interface-interface-skeleton__content {
|
||||
background-color: #ccd0d4; }
|
||||
|
||||
.edit-post-layout__inserter-panel-popover-wrapper,
|
||||
.edit-post-layout__inserter-panel-popover-wrapper > div,
|
||||
.edit-post-layout__inserter-panel-popover-wrapper > div > div,
|
||||
.edit-post-layout__inserter-panel-popover-wrapper > div > div > div {
|
||||
height: 100%; }
|
||||
|
||||
.edit-post-layout__inserter-panel {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -371,12 +371,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||
.edit-post-header__settings .components-button.block-editor-post-preview__dropdown {
|
||||
margin-right: 12px; } }
|
||||
|
||||
.edit-post-header__settings .components-button.editor-post-save-draft,
|
||||
.edit-post-header__settings .components-button.editor-post-switch-to-draft,
|
||||
.edit-post-header__settings .components-button.editor-post-preview,
|
||||
.edit-post-header__settings .components-button.block-editor-post-preview__button-toggle {
|
||||
color: #1e1e1e; }
|
||||
|
||||
.edit-post-header__settings .components-button.block-editor-post-preview__dropdown,
|
||||
.edit-post-header__settings .components-button.editor-post-publish-button,
|
||||
.edit-post-header__settings .components-button.editor-post-publish-panel__toggle {
|
||||
|
@ -713,6 +707,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
.edit-post-layout .interface-interface-skeleton__content {
|
||||
background-color: #ccd0d4; }
|
||||
|
||||
.edit-post-layout__inserter-panel-popover-wrapper,
|
||||
.edit-post-layout__inserter-panel-popover-wrapper > div,
|
||||
.edit-post-layout__inserter-panel-popover-wrapper > div > div,
|
||||
.edit-post-layout__inserter-panel-popover-wrapper > div > div > div {
|
||||
height: 100%; }
|
||||
|
||||
.edit-post-layout__inserter-panel {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -10435,7 +10435,7 @@ exports.characterDiff = void 0;
|
|||
/*istanbul ignore end*/
|
||||
var
|
||||
/*istanbul ignore start*/
|
||||
_base = _interopRequireDefault(__webpack_require__(297))
|
||||
_base = _interopRequireDefault(__webpack_require__(298))
|
||||
/*istanbul ignore end*/
|
||||
;
|
||||
|
||||
|
@ -11185,6 +11185,30 @@ var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
|
|||
|
||||
/***/ }),
|
||||
/* 297 */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
||||
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
var moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
viewBox: "0 0 24 24"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
|
||||
d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
|
||||
}));
|
||||
/* harmony default export */ __webpack_exports__["a"] = (moreVertical);
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 298 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -11493,30 +11517,6 @@ function clonePath(path) {
|
|||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 298 */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
||||
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
var moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
viewBox: "0 0 24 24"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
|
||||
d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
|
||||
}));
|
||||
/* harmony default export */ __webpack_exports__["a"] = (moreVertical);
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 299 */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
@ -16873,7 +16873,7 @@ var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.
|
|||
var asyncToGenerator = __webpack_require__(50);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
|
||||
var more_vertical = __webpack_require__(298);
|
||||
var more_vertical = __webpack_require__(297);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
|
||||
var web_cjs = __webpack_require__(113);
|
||||
|
@ -25945,8 +25945,12 @@ function QuickInserter(_ref2) {
|
|||
var onBrowseAll = function onBrowseAll() {
|
||||
// We have to select the previous block because the menu inserter
|
||||
// inserts the new block after the selected one.
|
||||
selectBlock(previousBlockClientId);
|
||||
// Ideally, this selection shouldn't focus the block to avoid the setTimeout.
|
||||
selectBlock(previousBlockClientId); // eslint-disable-next-line @wordpress/react-no-unsafe-timeout
|
||||
|
||||
setTimeout(function () {
|
||||
setInsererIsOpened(true);
|
||||
});
|
||||
}; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which
|
||||
// is always visible, and one which already incurs this behavior of autoFocus via
|
||||
// Popover's focusOnMount.
|
||||
|
@ -28833,7 +28837,7 @@ function BlockSettingsDropdown(_ref) {
|
|||
onMoveTo = _ref3.onMoveTo,
|
||||
blocks = _ref3.blocks;
|
||||
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], Object(esm_extends["a" /* default */])({
|
||||
icon: more_horizontal,
|
||||
icon: more_vertical["a" /* default */],
|
||||
label: Object(external_this_wp_i18n_["__"])('More options'),
|
||||
className: "block-editor-block-settings-menu",
|
||||
popoverProps: block_settings_dropdown_POPOVER_PROPS,
|
||||
|
@ -29458,12 +29462,13 @@ function BlockToolbar(_ref) {
|
|||
return Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: classes
|
||||
}, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({
|
||||
className: "block-editor-block-toolbar__mover-switcher-container",
|
||||
ref: nodeRef
|
||||
}, showMoversGestures), !isMultiToolbar && Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: "block-editor-block-toolbar__block-parent-selector-wrapper"
|
||||
}, Object(external_this_wp_element_["createElement"])(BlockParentSelector, {
|
||||
clientIds: blockClientIds
|
||||
})), (shouldShowVisualToolbar || isMultiToolbar) && Object(external_this_wp_element_["createElement"])(block_switcher, {
|
||||
clientIds: blockClientIds
|
||||
})), (shouldShowVisualToolbar || isMultiToolbar) && Object(external_this_wp_element_["createElement"])(block_draggable, {
|
||||
clientIds: blockClientIds,
|
||||
cloneClassname: "block-editor-block-toolbar__drag-clone"
|
||||
|
@ -29472,16 +29477,14 @@ function BlockToolbar(_ref) {
|
|||
onDraggableStart = _ref2.onDraggableStart,
|
||||
onDraggableEnd = _ref2.onDraggableEnd;
|
||||
return Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: "block-editor-block-toolbar__block-switcher-wrapper",
|
||||
className: "block-editor-block-toolbar__drag-handle-area",
|
||||
draggable: isDraggable && !hideDragHandle,
|
||||
onDragStart: onDraggableStart,
|
||||
onDragEnd: onDraggableEnd
|
||||
}, Object(external_this_wp_element_["createElement"])(block_switcher, {
|
||||
clientIds: blockClientIds
|
||||
}), Object(external_this_wp_element_["createElement"])(block_mover, {
|
||||
}, Object(external_this_wp_element_["createElement"])(block_mover, {
|
||||
clientIds: blockClientIds
|
||||
}));
|
||||
})), shouldShowVisualToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_controls.Slot, {
|
||||
}), shouldShowVisualToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_controls.Slot, {
|
||||
bubblesVirtually: true,
|
||||
className: "block-editor-block-toolbar__slot"
|
||||
}), Object(external_this_wp_element_["createElement"])(block_format_controls.Slot, {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4860,7 +4860,7 @@ function ImageEditor(_ref5) {
|
|||
|
||||
attrs.src = url;
|
||||
external_this_wp_apiFetch_default()({
|
||||
path: "wp/v2/media/".concat(id, "/edit"),
|
||||
path: "/wp/v2/media/".concat(id, "/edit"),
|
||||
method: 'POST',
|
||||
data: attrs
|
||||
}).then(function (response) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1072,7 +1072,7 @@ var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 298:
|
||||
/***/ 297:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -5674,7 +5674,10 @@ var plus = __webpack_require__(291);
|
|||
|
||||
|
||||
|
||||
|
||||
function HeaderToolbar() {
|
||||
var inserterButton = Object(external_this_wp_element_["useRef"])();
|
||||
|
||||
var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/edit-post'),
|
||||
setIsInserterOpened = _useDispatch.setIsInserterOpened;
|
||||
|
||||
|
@ -5710,12 +5713,21 @@ function HeaderToolbar() {
|
|||
className: "edit-post-header-toolbar",
|
||||
"aria-label": toolbarAriaLabel
|
||||
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], {
|
||||
ref: inserterButton,
|
||||
as: external_this_wp_components_["Button"],
|
||||
className: "edit-post-header-toolbar__inserter-toggle",
|
||||
isPrimary: true,
|
||||
isPressed: isInserterOpened,
|
||||
onMouseDown: function onMouseDown(event) {
|
||||
event.preventDefault();
|
||||
},
|
||||
onClick: function onClick() {
|
||||
return setIsInserterOpened(!isInserterOpened);
|
||||
if (isInserterOpened) {
|
||||
// Focusing the inserter button closes the inserter popover
|
||||
inserterButton.current.focus();
|
||||
} else {
|
||||
setIsInserterOpened(true);
|
||||
}
|
||||
},
|
||||
disabled: !isInserterEnabled,
|
||||
icon: plus["a" /* default */],
|
||||
|
@ -5742,7 +5754,7 @@ function HeaderToolbar() {
|
|||
/* harmony default export */ var header_toolbar = (HeaderToolbar);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
|
||||
var more_vertical = __webpack_require__(298);
|
||||
var more_vertical = __webpack_require__(297);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js
|
||||
|
||||
|
@ -7856,6 +7868,86 @@ function ActionsPanel(_ref) {
|
|||
}), !isEntitiesSavedStatesOpen && unmountableContent);
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/popover-wrapper.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function popover_wrapper_createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (popover_wrapper_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
|
||||
|
||||
function popover_wrapper_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
function stopPropagation(event) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
var DetectOutside = Object(external_this_wp_components_["withFocusOutside"])( /*#__PURE__*/function (_Component) {
|
||||
Object(inherits["a" /* default */])(_class, _Component);
|
||||
|
||||
var _super = popover_wrapper_createSuper(_class);
|
||||
|
||||
function _class() {
|
||||
Object(classCallCheck["a" /* default */])(this, _class);
|
||||
|
||||
return _super.apply(this, arguments);
|
||||
}
|
||||
|
||||
Object(createClass["a" /* default */])(_class, [{
|
||||
key: "handleFocusOutside",
|
||||
value: function handleFocusOutside(event) {
|
||||
this.props.onFocusOutside(event);
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return this.props.children;
|
||||
}
|
||||
}]);
|
||||
|
||||
return _class;
|
||||
}(external_this_wp_element_["Component"]));
|
||||
var FocusManaged = Object(external_this_wp_components_["withConstrainedTabbing"])(Object(external_this_wp_components_["withFocusReturn"])(function (_ref) {
|
||||
var children = _ref.children;
|
||||
return children;
|
||||
}));
|
||||
function PopoverWrapper(_ref2) {
|
||||
var onClose = _ref2.onClose,
|
||||
children = _ref2.children,
|
||||
className = _ref2.className;
|
||||
|
||||
// Event handlers
|
||||
var maybeClose = function maybeClose(event) {
|
||||
// Close on escape
|
||||
if (event.keyCode === external_this_wp_keycodes_["ESCAPE"] && onClose) {
|
||||
event.stopPropagation();
|
||||
onClose();
|
||||
}
|
||||
}; // Disable reason: this stops certain events from propagating outside of the component.
|
||||
// - onMouseDown is disabled as this can cause interactions with other DOM elements
|
||||
|
||||
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
||||
|
||||
|
||||
return Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: className,
|
||||
onKeyDown: maybeClose,
|
||||
onMouseDown: stopPropagation
|
||||
}, Object(external_this_wp_element_["createElement"])(DetectOutside, {
|
||||
onFocusOutside: onClose
|
||||
}, Object(external_this_wp_element_["createElement"])(FocusManaged, null, children)));
|
||||
/* eslint-enable jsx-a11y/no-static-element-interactions */
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/index.js
|
||||
|
||||
|
||||
|
@ -7894,6 +7986,7 @@ function ActionsPanel(_ref) {
|
|||
|
||||
|
||||
|
||||
|
||||
var interfaceLabels = {
|
||||
leftSidebar: Object(external_this_wp_i18n_["__"])('Block library'),
|
||||
|
||||
|
@ -7991,7 +8084,12 @@ function Layout() {
|
|||
header: Object(external_this_wp_element_["createElement"])(components_header, {
|
||||
setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback
|
||||
}),
|
||||
leftSidebar: mode === 'visual' && isInserterOpened && Object(external_this_wp_element_["createElement"])("div", {
|
||||
leftSidebar: mode === 'visual' && isInserterOpened && Object(external_this_wp_element_["createElement"])(PopoverWrapper, {
|
||||
className: "edit-post-layout__inserter-panel-popover-wrapper",
|
||||
onClose: function onClose() {
|
||||
return setIsInserterOpened(false);
|
||||
}
|
||||
}, Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: "edit-post-layout__inserter-panel"
|
||||
}, Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: "edit-post-layout__inserter-panel-header"
|
||||
|
@ -8010,7 +8108,7 @@ function Layout() {
|
|||
setIsInserterOpened(false);
|
||||
}
|
||||
}
|
||||
}))),
|
||||
})))),
|
||||
sidebar: (!isMobileViewport || sidebarIsOpened) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isMobileViewport && !sidebarIsOpened && Object(external_this_wp_element_["createElement"])("div", {
|
||||
className: "edit-post-layout__toogle-sidebar-panel"
|
||||
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-alpha-48770';
|
||||
$wp_version = '5.6-alpha-48772';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue