Editor: Update packages to apply bugfixes from Gutenberg 5.5.

- @wordpress/block-editor@2.0.1
- @wordpress/block-library@2.4.4
- @wordpress/blocks@6.2.4
- @wordpress/components@7.3.1
- @wordpress/dom@2.2.4
- @wordpress/e2e-tests@1.1.4
- @wordpress/edit-post@3.3.4
- @wordpress/editor@9.2.4
- @wordpress/format-library@1.4.4
- @wordpress/list-reusable-blocks@1.3.4
- @wordpress/nux@3.2.4

Props iseulde, kjellr, aduth, get_dave, talldanwp, jorgefilipecosta, afercia, nosolosw, jasmussen, netweb .

See https://github.com/WordPress/gutenberg/pull/14987 .
See https://github.com/WordPress/gutenberg/pull/15020 .
Fixes #46951 .

Built from https://develop.svn.wordpress.org/trunk@45255


git-svn-id: http://core.svn.wordpress.org/trunk@45064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
aduth 2019-04-22 12:40:04 +00:00
parent 355d5f9bb7
commit 0feb55f633
60 changed files with 948 additions and 476 deletions

View File

@ -368,29 +368,37 @@
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] {
clear: both;
z-index: 20; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
top: -44px;
bottom: auto;
min-height: 0;
height: auto;
width: auto;
z-index: inherit; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover::before {
width: auto; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover::before,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover::before,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover::before {
content: none; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover .block-editor-block-mover__control {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover .block-editor-block-mover__control,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover .block-editor-block-mover__control,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover .block-editor-block-mover__control {
float: right; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__breadcrumb, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__breadcrumb {
left: -1px; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
display: none; }
@media (min-width: 1280px) {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
display: block; } }
@media (min-width: 600px) {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] .block-editor-block-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] .block-editor-block-toolbar {
display: inline-flex; } }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
right: -13px; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-list__breadcrumb {
@ -417,7 +425,8 @@
border-right-width: 0;
border-left-width: 0; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
right: 1px; }
.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] {
@ -582,13 +591,14 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
right: 0;
left: 0;
justify-content: center;
height: 22px;
opacity: 0;
transition: opacity 0.1s linear; }
@media (min-width: 480px) {
.block-editor-block-list__insertion-point-inserter {
display: flex; } }
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle {
margin-top: -4px;
margin-top: -8px;
border-radius: 50%;
color: #007cba;
background: #fff;
@ -701,7 +711,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
right: 0;
left: 0; }
.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-contextual-toolbar {
.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar {
margin-right: -28px; }
@media (min-width: 600px) {
@ -1371,6 +1381,10 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle,
.block-editor-inserter-with-shortcuts .block-editor-inserter__toggle {
margin-left: 0; }
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover,
.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover,
.block-editor-inserter-with-shortcuts .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover {
box-shadow: none; }
.block-editor-block-list__empty-block-inserter,
.block-editor-default-block-appender .block-editor-inserter {
@ -1728,7 +1742,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
.block-editor-rich-text__editable {
margin: 0;
position: relative;
white-space: pre-wrap; }
white-space: pre-wrap !important; }
.block-editor-rich-text__editable > p:first-child {
margin-top: 0; }
.block-editor-rich-text__editable a {

File diff suppressed because one or more lines are too long

View File

@ -376,29 +376,37 @@
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] {
clear: both;
z-index: 20; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
top: -44px;
bottom: auto;
min-height: 0;
height: auto;
width: auto;
z-index: inherit; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover::before {
width: auto; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover::before,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover::before,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover::before {
content: none; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover .block-editor-block-mover__control {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover .block-editor-block-mover__control,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover .block-editor-block-mover__control,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover .block-editor-block-mover__control {
float: left; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__breadcrumb, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__breadcrumb {
right: -1px; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
display: none; }
@media (min-width: 1280px) {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
display: block; } }
@media (min-width: 600px) {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] .block-editor-block-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] .block-editor-block-toolbar {
display: inline-flex; } }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
left: -13px; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-list__breadcrumb {
@ -425,7 +433,8 @@
border-left-width: 0;
border-right-width: 0; }
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover {
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"].is-multi-selected > .block-editor-block-mover,
.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-mover {
left: 1px; }
.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] {
@ -590,13 +599,14 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
left: 0;
right: 0;
justify-content: center;
height: 22px;
opacity: 0;
transition: opacity 0.1s linear; }
@media (min-width: 480px) {
.block-editor-block-list__insertion-point-inserter {
display: flex; } }
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle {
margin-top: -4px;
margin-top: -8px;
border-radius: 50%;
color: #007cba;
background: #fff;
@ -711,7 +721,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
left: 0;
right: 0; }
.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-contextual-toolbar {
.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar {
margin-left: -28px; }
@media (min-width: 600px) {
@ -1383,6 +1393,10 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle,
.block-editor-inserter-with-shortcuts .block-editor-inserter__toggle {
margin-right: 0; }
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover,
.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover,
.block-editor-inserter-with-shortcuts .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover {
box-shadow: none; }
.block-editor-block-list__empty-block-inserter,
.block-editor-default-block-appender .block-editor-inserter {
@ -1740,7 +1754,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
.block-editor-rich-text__editable {
margin: 0;
position: relative;
white-space: pre-wrap; }
white-space: pre-wrap !important; }
.block-editor-rich-text__editable > p:first-child {
margin-top: 0; }
.block-editor-rich-text__editable a {

File diff suppressed because one or more lines are too long

View File

@ -60,7 +60,7 @@
.block-editor-block-preview__content .wp-block-button .wp-block-button__link {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
white-space: nowrap !important;
text-overflow: ellipsis; }
.block-library-button__inline-link {
@ -207,14 +207,15 @@
.wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:first-child) {
margin-right: calc(32px + 14px); } }
.wp-block-columns [data-type="core/column"] {
pointer-events: none; }
.wp-block-columns [data-type="core/column"].is-hovered > .block-editor-block-list__block-edit::before {
.wp-block-columns [data-type="core/column"].is-hovered > .block-editor-block-list__block-edit::before {
content: none; }
.wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb {
.wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb {
display: none; }
:not(.components-disabled) > .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > * {
.wp-block-columns [data-type="core/column"] {
pointer-events: none; }
.wp-block-columns [data-type="core/column"] .block-editor-block-list__layout {
pointer-events: all; }
.wp-block-cover-image.components-placeholder h2,
@ -613,29 +614,28 @@ ul.wp-block-gallery li {
.blocks-gallery-item figure:not(.is-selected):focus {
outline: none; }
.blocks-gallery-item img:focus,
.blocks-gallery-item .is-selected {
outline: 4px solid #0085ba; }
body.admin-color-sunrise .blocks-gallery-item img:focus, body.admin-color-sunrise .blocks-gallery-item .is-selected {
body.admin-color-sunrise .blocks-gallery-item .is-selected {
outline: 4px solid #d1864a; }
body.admin-color-ocean .blocks-gallery-item img:focus, body.admin-color-ocean .blocks-gallery-item .is-selected {
body.admin-color-ocean .blocks-gallery-item .is-selected {
outline: 4px solid #a3b9a2; }
body.admin-color-midnight .blocks-gallery-item img:focus, body.admin-color-midnight .blocks-gallery-item .is-selected {
body.admin-color-midnight .blocks-gallery-item .is-selected {
outline: 4px solid #e14d43; }
body.admin-color-ectoplasm .blocks-gallery-item img:focus, body.admin-color-ectoplasm .blocks-gallery-item .is-selected {
body.admin-color-ectoplasm .blocks-gallery-item .is-selected {
outline: 4px solid #a7b656; }
body.admin-color-coffee .blocks-gallery-item img:focus, body.admin-color-coffee .blocks-gallery-item .is-selected {
body.admin-color-coffee .blocks-gallery-item .is-selected {
outline: 4px solid #c2a68c; }
body.admin-color-blue .blocks-gallery-item img:focus, body.admin-color-blue .blocks-gallery-item .is-selected {
body.admin-color-blue .blocks-gallery-item .is-selected {
outline: 4px solid #82b4cb; }
body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .blocks-gallery-item .is-selected {
body.admin-color-light .blocks-gallery-item .is-selected {
outline: 4px solid #0085ba; }
.blocks-gallery-item .is-transient img {

File diff suppressed because one or more lines are too long

View File

@ -61,7 +61,7 @@
.block-editor-block-preview__content .wp-block-button .wp-block-button__link {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
white-space: nowrap !important;
text-overflow: ellipsis; }
.block-library-button__inline-link {
@ -208,14 +208,15 @@
.wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:first-child) {
margin-left: calc(32px + 14px); } }
.wp-block-columns [data-type="core/column"] {
pointer-events: none; }
.wp-block-columns [data-type="core/column"].is-hovered > .block-editor-block-list__block-edit::before {
.wp-block-columns [data-type="core/column"].is-hovered > .block-editor-block-list__block-edit::before {
content: none; }
.wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb {
.wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb {
display: none; }
:not(.components-disabled) > .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > * {
.wp-block-columns [data-type="core/column"] {
pointer-events: none; }
.wp-block-columns [data-type="core/column"] .block-editor-block-list__layout {
pointer-events: all; }
.wp-block-cover-image.components-placeholder h2,
@ -618,29 +619,28 @@ ul.wp-block-gallery li {
.blocks-gallery-item figure:not(.is-selected):focus {
outline: none; }
.blocks-gallery-item img:focus,
.blocks-gallery-item .is-selected {
outline: 4px solid #0085ba; }
body.admin-color-sunrise .blocks-gallery-item img:focus, body.admin-color-sunrise .blocks-gallery-item .is-selected {
body.admin-color-sunrise .blocks-gallery-item .is-selected {
outline: 4px solid #d1864a; }
body.admin-color-ocean .blocks-gallery-item img:focus, body.admin-color-ocean .blocks-gallery-item .is-selected {
body.admin-color-ocean .blocks-gallery-item .is-selected {
outline: 4px solid #a3b9a2; }
body.admin-color-midnight .blocks-gallery-item img:focus, body.admin-color-midnight .blocks-gallery-item .is-selected {
body.admin-color-midnight .blocks-gallery-item .is-selected {
outline: 4px solid #e14d43; }
body.admin-color-ectoplasm .blocks-gallery-item img:focus, body.admin-color-ectoplasm .blocks-gallery-item .is-selected {
body.admin-color-ectoplasm .blocks-gallery-item .is-selected {
outline: 4px solid #a7b656; }
body.admin-color-coffee .blocks-gallery-item img:focus, body.admin-color-coffee .blocks-gallery-item .is-selected {
body.admin-color-coffee .blocks-gallery-item .is-selected {
outline: 4px solid #c2a68c; }
body.admin-color-blue .blocks-gallery-item img:focus, body.admin-color-blue .blocks-gallery-item .is-selected {
body.admin-color-blue .blocks-gallery-item .is-selected {
outline: 4px solid #82b4cb; }
body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .blocks-gallery-item .is-selected {
body.admin-color-light .blocks-gallery-item .is-selected {
outline: 4px solid #0085ba; }
.blocks-gallery-item .is-transient img {

File diff suppressed because one or more lines are too long

View File

@ -123,7 +123,6 @@
padding: 12px 24px;
text-align: center;
text-decoration: none;
white-space: normal;
overflow-wrap: break-word; }
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-block-button__link:visited {
color: inherit; }

File diff suppressed because one or more lines are too long

View File

@ -124,7 +124,6 @@
padding: 12px 24px;
text-align: center;
text-decoration: none;
white-space: normal;
overflow-wrap: break-word; }
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-block-button__link:visited {
color: inherit; }

File diff suppressed because one or more lines are too long

View File

@ -410,7 +410,7 @@
box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;
outline: 2px solid transparent;
outline-offset: -2px; }
.components-button.is-busy {
.components-button.is-busy, .components-button.is-default.is-busy, .components-button.is-default.is-busy:disabled, .components-button.is-default.is-busy[aria-disabled="true"] {
animation: components-button__busy-animation 2500ms infinite linear;
background-size: 100px 100%;
background-image: repeating-linear-gradient(45deg, #e2e4e7, #fff 11px, #fff 10px, #e2e4e7 20px);
@ -522,7 +522,8 @@
cursor: pointer; }
.components-color-palette__item.is-active {
box-shadow: inset 0 0 0 4px;
border: 1px solid #606a73; }
position: relative;
z-index: 1; }
.components-color-palette__item.is-active + .dashicons-saved {
position: absolute;
right: 4px;

File diff suppressed because one or more lines are too long

View File

@ -410,7 +410,7 @@
box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;
outline: 2px solid transparent;
outline-offset: -2px; }
.components-button.is-busy {
.components-button.is-busy, .components-button.is-default.is-busy, .components-button.is-default.is-busy:disabled, .components-button.is-default.is-busy[aria-disabled="true"] {
animation: components-button__busy-animation 2500ms infinite linear;
background-size: 100px 100%;
background-image: repeating-linear-gradient(-45deg, #e2e4e7, #fff 11px, #fff 10px, #e2e4e7 20px);
@ -522,7 +522,8 @@
cursor: pointer; }
.components-color-palette__item.is-active {
box-shadow: inset 0 0 0 4px;
border: 1px solid #606a73; }
position: relative;
z-index: 1; }
.components-color-palette__item.is-active + .dashicons-saved {
position: absolute;
left: 4px;

File diff suppressed because one or more lines are too long

View File

@ -142,23 +142,15 @@ body.is-fullscreen-mode .edit-post-header {
align-items: center; }
.edit-post-header .components-button.is-toggled {
color: #fff; }
.edit-post-header .components-button.is-toggled::before {
content: "";
border-radius: 4px;
position: absolute;
z-index: -1;
color: #fff;
background: #555d66;
top: 1px;
left: 1px;
bottom: 1px;
right: 1px; }
margin: 1px;
padding: 7px; }
.edit-post-header .components-button.is-toggled:hover, .edit-post-header .components-button.is-toggled:focus {
box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff;
color: #fff;
background: #555d66; }
box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff !important;
color: #fff !important;
background: #555d66 !important; }
.edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft, .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle {
margin: 2px;
@ -1018,13 +1010,18 @@ body.is-fullscreen-mode .edit-post-header {
border: 1px solid #e2e4e7;
margin-bottom: 4px;
padding: 14px; }
.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover,
.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input {
box-shadow: none;
border-right-width: 1px; }
.edit-post-text-editor .editor-post-title__block textarea:hover,
.edit-post-text-editor .editor-post-title__block.is-selected textarea {
box-shadow: 0 0 0 1px #e2e4e7; }
.edit-post-text-editor .editor-post-permalink {
right: 0;
left: 0;
margin-top: -6px; }
margin-top: -6px;
box-shadow: none;
border: none;
outline: 1px solid #b5bcc2; }
@media (min-width: 600px) {
.edit-post-text-editor .editor-post-title,
.edit-post-text-editor .editor-post-title__block {
@ -1067,6 +1064,7 @@ body.is-fullscreen-mode .edit-post-header {
.edit-post-visual-editor .block-editor-block-list__block .block-editor-block-list__block-edit {
margin-right: -28px;
margin-left: -28px; }
.edit-post-visual-editor .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar,
.edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar {
height: 0;
width: 100%;
@ -1074,6 +1072,7 @@ body.is-fullscreen-mode .edit-post-header {
margin-left: 0;
text-align: center;
float: right; }
.edit-post-visual-editor .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar .block-editor-block-toolbar,
.edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar .block-editor-block-toolbar {
max-width: 610px;
width: 100%;

File diff suppressed because one or more lines are too long

View File

@ -142,23 +142,15 @@ body.is-fullscreen-mode .edit-post-header {
align-items: center; }
.edit-post-header .components-button.is-toggled {
color: #fff; }
.edit-post-header .components-button.is-toggled::before {
content: "";
border-radius: 4px;
position: absolute;
z-index: -1;
color: #fff;
background: #555d66;
top: 1px;
right: 1px;
bottom: 1px;
left: 1px; }
margin: 1px;
padding: 7px; }
.edit-post-header .components-button.is-toggled:hover, .edit-post-header .components-button.is-toggled:focus {
box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff;
color: #fff;
background: #555d66; }
box-shadow: 0 0 0 1px #555d66, inset 0 0 0 1px #fff !important;
color: #fff !important;
background: #555d66 !important; }
.edit-post-header .components-button.editor-post-save-draft, .edit-post-header .components-button.editor-post-switch-to-draft, .edit-post-header .components-button.editor-post-preview, .edit-post-header .components-button.editor-post-publish-button, .edit-post-header .components-button.editor-post-publish-panel__toggle {
margin: 2px;
@ -1018,13 +1010,18 @@ body.is-fullscreen-mode .edit-post-header {
border: 1px solid #e2e4e7;
margin-bottom: 4px;
padding: 14px; }
.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover,
.edit-post-text-editor .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input {
box-shadow: none;
border-left-width: 1px; }
.edit-post-text-editor .editor-post-title__block textarea:hover,
.edit-post-text-editor .editor-post-title__block.is-selected textarea {
box-shadow: 0 0 0 1px #e2e4e7; }
.edit-post-text-editor .editor-post-permalink {
left: 0;
right: 0;
margin-top: -6px; }
margin-top: -6px;
box-shadow: none;
border: none;
outline: 1px solid #b5bcc2; }
@media (min-width: 600px) {
.edit-post-text-editor .editor-post-title,
.edit-post-text-editor .editor-post-title__block {
@ -1067,6 +1064,7 @@ body.is-fullscreen-mode .edit-post-header {
.edit-post-visual-editor .block-editor-block-list__block .block-editor-block-list__block-edit {
margin-left: -28px;
margin-right: -28px; }
.edit-post-visual-editor .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar,
.edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar {
height: 0;
width: 100%;
@ -1074,6 +1072,7 @@ body.is-fullscreen-mode .edit-post-header {
margin-right: 0;
text-align: center;
float: left; }
.edit-post-visual-editor .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar .block-editor-block-toolbar,
.edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar .block-editor-block-toolbar {
max-width: 610px;
width: 100%;

File diff suppressed because one or more lines are too long

View File

@ -32,10 +32,10 @@
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
.block-editor-autocompleters__block .block-editor-block-icon {
.editor-autocompleters__block .editor-block-icon {
margin-left: 8px; }
.block-editor-autocompleters__user .block-editor-autocompleters__user-avatar {
.editor-autocompleters__user .editor-autocompleters__user-avatar {
margin-left: 8px;
flex-grow: 0;
flex-shrink: 0;
@ -43,7 +43,7 @@
width: 24px;
height: 24px; }
.block-editor-autocompleters__user .block-editor-autocompleters__user-name {
.editor-autocompleters__user .editor-autocompleters__user-name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
@ -51,7 +51,7 @@
flex-shrink: 0;
flex-grow: 1; }
.block-editor-autocompleters__user .block-editor-autocompleters__user-slug {
.editor-autocompleters__user .editor-autocompleters__user-slug {
margin-right: 8px;
color: #8f98a1;
white-space: nowrap;
@ -61,7 +61,7 @@
flex-grow: 0;
flex-shrink: 0; }
.block-editor-autocompleters__user:hover .block-editor-autocompleters__user-slug {
.editor-autocompleters__user:hover .editor-autocompleters__user-slug {
color: #66c6e4; }
.document-outline {

File diff suppressed because one or more lines are too long

View File

@ -32,10 +32,10 @@
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
.block-editor-autocompleters__block .block-editor-block-icon {
.editor-autocompleters__block .editor-block-icon {
margin-right: 8px; }
.block-editor-autocompleters__user .block-editor-autocompleters__user-avatar {
.editor-autocompleters__user .editor-autocompleters__user-avatar {
margin-right: 8px;
flex-grow: 0;
flex-shrink: 0;
@ -43,7 +43,7 @@
width: 24px;
height: 24px; }
.block-editor-autocompleters__user .block-editor-autocompleters__user-name {
.editor-autocompleters__user .editor-autocompleters__user-name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
@ -51,7 +51,7 @@
flex-shrink: 0;
flex-grow: 1; }
.block-editor-autocompleters__user .block-editor-autocompleters__user-slug {
.editor-autocompleters__user .editor-autocompleters__user-slug {
margin-left: 8px;
color: #8f98a1;
white-space: nowrap;
@ -61,7 +61,7 @@
flex-grow: 0;
flex-shrink: 0; }
.block-editor-autocompleters__user:hover .block-editor-autocompleters__user-slug {
.editor-autocompleters__user:hover .editor-autocompleters__user-slug {
color: #66c6e4; }
.document-outline {

File diff suppressed because one or more lines are too long

View File

@ -207,7 +207,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/***/ 24:
/***/ 26:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
@ -1084,7 +1084,7 @@ var format_name = annotation_annotation.name,
Object(external_this_wp_richText_["registerFormatType"])(format_name, settings);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/block/index.js
/**

File diff suppressed because one or more lines are too long

View File

@ -161,18 +161,18 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/***/ 23:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 26:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
/***/ }),
/***/ 25:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 369:
@ -334,14 +334,14 @@ var createPreloadingMiddleware = function createPreloadingMiddleware(preloadedDa
/* harmony default export */ var preloading = (createPreloadingMiddleware);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(26);
var regenerator = __webpack_require__(23);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(44);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// CONCATENATED MODULE: ./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js

File diff suppressed because one or more lines are too long

View File

@ -3380,31 +3380,31 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/***/ 23:
/***/ (function(module, exports) {
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 24:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
(function() { module.exports = this["wp"]["dom"]; }());
/***/ }),
/***/ 25:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["dom"]; }());
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 26:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
/***/ }),
@ -3860,13 +3860,14 @@ __webpack_require__.d(actions_namespaceObject, "synchronizeTemplate", function()
__webpack_require__.d(actions_namespaceObject, "mergeBlocks", function() { return mergeBlocks; });
__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return actions_removeBlocks; });
__webpack_require__.d(actions_namespaceObject, "removeBlock", function() { return removeBlock; });
__webpack_require__.d(actions_namespaceObject, "replaceInnerBlocks", function() { return actions_replaceInnerBlocks; });
__webpack_require__.d(actions_namespaceObject, "toggleBlockMode", function() { return toggleBlockMode; });
__webpack_require__.d(actions_namespaceObject, "startTyping", function() { return startTyping; });
__webpack_require__.d(actions_namespaceObject, "stopTyping", function() { return stopTyping; });
__webpack_require__.d(actions_namespaceObject, "enterFormattedText", function() { return enterFormattedText; });
__webpack_require__.d(actions_namespaceObject, "exitFormattedText", function() { return exitFormattedText; });
__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return actions_insertDefaultBlock; });
__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return actions_updateBlockListSettings; });
__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return updateBlockListSettings; });
__webpack_require__.d(actions_namespaceObject, "updateSettings", function() { return updateSettings; });
__webpack_require__.d(actions_namespaceObject, "__unstableSaveReusableBlock", function() { return __unstableSaveReusableBlock; });
__webpack_require__.d(actions_namespaceObject, "__unstableMarkLastChangeAsPersistent", function() { return __unstableMarkLastChangeAsPersistent; });
@ -3931,6 +3932,7 @@ __webpack_require__.d(selectors_namespaceObject, "hasInserterItems", function()
__webpack_require__.d(selectors_namespaceObject, "getBlockListSettings", function() { return getBlockListSettings; });
__webpack_require__.d(selectors_namespaceObject, "getSettings", function() { return selectors_getSettings; });
__webpack_require__.d(selectors_namespaceObject, "isLastBlockChangePersistent", function() { return isLastBlockChangePersistent; });
__webpack_require__.d(selectors_namespaceObject, "__unstableIsLastBlockChangeIgnored", function() { return __unstableIsLastBlockChangeIgnored; });
// EXTERNAL MODULE: external {"this":["wp","blocks"]}
var external_this_wp_blocks_ = __webpack_require__(14);
@ -4315,32 +4317,20 @@ function isUpdatingSameBlockAttribute(action, lastAction) {
function withPersistentBlockChange(reducer) {
var lastAction;
/**
* Set of action types for which a blocks state change should be considered
* non-persistent.
*
* @type {Set}
*/
var IGNORED_ACTION_TYPES = new Set(['RECEIVE_BLOCKS']);
return function (state, action) {
var nextState = reducer(state, action);
var isExplicitPersistentChange = action.type === 'MARK_LAST_CHANGE_AS_PERSISTENT'; // Defer to previous state value (or default) unless changing or
// explicitly marking as persistent.
if (state === nextState && !isExplicitPersistentChange) {
var nextIsPersistentChange = Object(external_lodash_["get"])(state, ['isPersistentChange'], true);
if (state.isPersistentChange === nextIsPersistentChange) {
return state;
}
return Object(objectSpread["a" /* default */])({}, nextState, {
isPersistentChange: Object(external_lodash_["get"])(state, ['isPersistentChange'], true)
});
} // Some state changes should not be considered persistent, namely those
// which are not a direct result of user interaction.
var isIgnoredActionType = IGNORED_ACTION_TYPES.has(action.type);
if (isIgnoredActionType) {
return Object(objectSpread["a" /* default */])({}, nextState, {
isPersistentChange: false
isPersistentChange: nextIsPersistentChange
});
}
@ -4354,6 +4344,35 @@ function withPersistentBlockChange(reducer) {
return nextState;
};
}
/**
* Higher-order reducer intended to augment the blocks reducer, assigning an
* `isIgnoredChange` property value corresponding to whether a change in state
* can be considered as ignored. A change is considered ignored when the result
* of an action not incurred by direct user interaction.
*
* @param {Function} reducer Original reducer function.
*
* @return {Function} Enhanced reducer function.
*/
function withIgnoredBlockChange(reducer) {
/**
* Set of action types for which a blocks state change should be ignored.
*
* @type {Set}
*/
var IGNORED_ACTION_TYPES = new Set(['RECEIVE_BLOCKS']);
return function (state, action) {
var nextState = reducer(state, action);
if (nextState !== state) {
nextState.isIgnoredChange = IGNORED_ACTION_TYPES.has(action.type);
}
return nextState;
};
}
/**
* Higher-order reducer targeting the combined blocks reducer, augmenting
* block client IDs in remove action to include cascade of inner blocks.
@ -4409,6 +4428,45 @@ var reducer_withBlockReset = function withBlockReset(reducer) {
return reducer(state, action);
};
};
/**
* Higher-order reducer which targets the combined blocks reducer and handles
* the `REPLACE_INNER_BLOCKS` action. When dispatched, this action the state should become equivalent
* to the execution of a `REMOVE_BLOCKS` action containing all the child's of the root block followed by
* the execution of `INSERT_BLOCKS` with the new blocks.
*
* @param {Function} reducer Original reducer function.
*
* @return {Function} Enhanced reducer function.
*/
var reducer_withReplaceInnerBlocks = function withReplaceInnerBlocks(reducer) {
return function (state, action) {
if (action.type !== 'REPLACE_INNER_BLOCKS') {
return reducer(state, action);
}
var stateAfterBlocksRemoval = state;
if (state.order[action.rootClientId]) {
stateAfterBlocksRemoval = reducer(stateAfterBlocksRemoval, {
type: 'REMOVE_BLOCKS',
clientIds: state.order[action.rootClientId]
});
}
var stateAfterInsert = stateAfterBlocksRemoval;
if (action.blocks.length) {
stateAfterInsert = reducer(stateAfterInsert, Object(objectSpread["a" /* default */])({}, action, {
type: 'INSERT_BLOCKS',
index: 0
}));
}
return stateAfterInsert;
};
};
/**
* Higher-order reducer which targets the combined blocks reducer and handles
* the `SAVE_REUSABLE_BLOCK_SUCCESS` action. This action can't be handled by
@ -4458,7 +4516,8 @@ var reducer_withSaveReusableBlock = function withSaveReusableBlock(reducer) {
*/
var reducer_blocks = Object(external_lodash_["flow"])(external_this_wp_data_["combineReducers"], reducer_withInnerBlocksRemoveCascade, reducer_withBlockReset, reducer_withSaveReusableBlock, withPersistentBlockChange)({
var reducer_blocks = Object(external_lodash_["flow"])(external_this_wp_data_["combineReducers"], reducer_withInnerBlocksRemoveCascade, reducer_withReplaceInnerBlocks, // needs to be after withInnerBlocksRemoveCascade
reducer_withBlockReset, reducer_withSaveReusableBlock, withPersistentBlockChange, withIgnoredBlockChange)({
byClientId: function byClientId() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var action = arguments.length > 1 ? arguments[1] : undefined;
@ -4808,6 +4867,8 @@ function blockSelection() {
initialPosition: action.initialPosition
});
case 'REPLACE_INNER_BLOCKS': // REPLACE_INNER_BLOCKS and INSERT_BLOCKS should follow the same logic.
case 'INSERT_BLOCKS':
{
if (action.updateSelection) {
@ -5060,7 +5121,7 @@ var slicedToArray = __webpack_require__(28);
var external_this_wp_a11y_ = __webpack_require__(48);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(26);
var regenerator = __webpack_require__(23);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/controls.js
@ -5111,12 +5172,24 @@ var controls_controls = {
var _marked =
/*#__PURE__*/
regenerator_default.a.mark(selectPreviousBlock),
regenerator_default.a.mark(ensureDefaultBlock),
_marked2 =
/*#__PURE__*/
regenerator_default.a.mark(selectNextBlock),
regenerator_default.a.mark(selectPreviousBlock),
_marked3 =
/*#__PURE__*/
regenerator_default.a.mark(selectNextBlock),
_marked4 =
/*#__PURE__*/
regenerator_default.a.mark(actions_replaceBlocks),
_marked5 =
/*#__PURE__*/
regenerator_default.a.mark(moveBlockToPosition),
_marked6 =
/*#__PURE__*/
regenerator_default.a.mark(actions_insertBlocks),
_marked7 =
/*#__PURE__*/
regenerator_default.a.mark(actions_removeBlocks);
/**
@ -5133,6 +5206,40 @@ regenerator_default.a.mark(actions_removeBlocks);
*/
/**
* Generator which will yield a default block insert action if there
* are no other blocks at the root of the editor. This generator should be used
* in actions which may result in no blocks remaining in the editor (removal,
* replacement, etc).
*/
function ensureDefaultBlock() {
var count;
return regenerator_default.a.wrap(function ensureDefaultBlock$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return controls_select('core/block-editor', 'getBlockCount');
case 2:
count = _context.sent;
if (!(count === 0)) {
_context.next = 6;
break;
}
_context.next = 6;
return actions_insertDefaultBlock();
case 6:
case "end":
return _context.stop();
}
}
}, _marked, this);
}
/**
* Returns an action object used in signalling that blocks state should be
* reset to the specified array of blocks, taking precedence over any other
@ -5143,6 +5250,7 @@ regenerator_default.a.mark(actions_removeBlocks);
* @return {Object} Action object.
*/
function resetBlocks(blocks) {
return {
type: 'RESET_BLOCKS',
@ -5229,24 +5337,24 @@ function actions_selectBlock(clientId) {
function selectPreviousBlock(clientId) {
var previousBlockClientId;
return regenerator_default.a.wrap(function selectPreviousBlock$(_context) {
return regenerator_default.a.wrap(function selectPreviousBlock$(_context2) {
while (1) {
switch (_context.prev = _context.next) {
switch (_context2.prev = _context2.next) {
case 0:
_context.next = 2;
_context2.next = 2;
return controls_select('core/block-editor', 'getPreviousBlockClientId', clientId);
case 2:
previousBlockClientId = _context.sent;
_context.next = 5;
previousBlockClientId = _context2.sent;
_context2.next = 5;
return actions_selectBlock(previousBlockClientId, -1);
case 5:
case "end":
return _context.stop();
return _context2.stop();
}
}
}, _marked, this);
}, _marked2, this);
}
/**
* Yields action objects used in signalling that the block following the given
@ -5257,24 +5365,24 @@ function selectPreviousBlock(clientId) {
function selectNextBlock(clientId) {
var nextBlockClientId;
return regenerator_default.a.wrap(function selectNextBlock$(_context2) {
return regenerator_default.a.wrap(function selectNextBlock$(_context3) {
while (1) {
switch (_context2.prev = _context2.next) {
switch (_context3.prev = _context3.next) {
case 0:
_context2.next = 2;
_context3.next = 2;
return controls_select('core/block-editor', 'getNextBlockClientId', clientId);
case 2:
nextBlockClientId = _context2.sent;
_context2.next = 5;
nextBlockClientId = _context3.sent;
_context3.next = 5;
return actions_selectBlock(nextBlockClientId);
case 5:
case "end":
return _context2.stop();
return _context3.stop();
}
}
}, _marked2, this);
}, _marked3, this);
}
/**
* Returns an action object used in signalling that a block multi-selection has started.
@ -5348,16 +5456,67 @@ function toggleSelection() {
* @param {(string|string[])} clientIds Block client ID(s) to replace.
* @param {(Object|Object[])} blocks Replacement block(s).
*
* @return {Object} Action object.
* @yields {Object} Action object.
*/
function actions_replaceBlocks(clientIds, blocks) {
var rootClientId, index, block, canInsertBlock;
return regenerator_default.a.wrap(function replaceBlocks$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
clientIds = Object(external_lodash_["castArray"])(clientIds);
blocks = Object(external_lodash_["castArray"])(blocks);
_context4.next = 4;
return controls_select('core/block-editor', 'getBlockRootClientId', Object(external_lodash_["first"])(clientIds));
case 4:
rootClientId = _context4.sent;
index = 0;
case 6:
if (!(index < blocks.length)) {
_context4.next = 16;
break;
}
block = blocks[index];
_context4.next = 10;
return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId);
case 10:
canInsertBlock = _context4.sent;
if (canInsertBlock) {
_context4.next = 13;
break;
}
return _context4.abrupt("return");
case 13:
index++;
_context4.next = 6;
break;
case 16:
_context4.next = 18;
return {
type: 'REPLACE_BLOCKS',
clientIds: Object(external_lodash_["castArray"])(clientIds),
blocks: Object(external_lodash_["castArray"])(blocks),
clientIds: clientIds,
blocks: blocks,
time: Date.now()
};
case 18:
return _context4.delegateYield(ensureDefaultBlock(), "t0", 19);
case 19:
case "end":
return _context4.stop();
}
}
}, _marked4, this);
}
/**
* Returns an action object signalling that a single block should be replaced
@ -5402,17 +5561,74 @@ var actions_moveBlocksUp = createOnMove('MOVE_BLOCKS_UP');
* @param {?string} toRootClientId Root client ID destination.
* @param {number} index The index to move the block into.
*
* @return {Object} Action object.
* @yields {Object} Action object.
*/
function moveBlockToPosition(clientId, fromRootClientId, toRootClientId, index) {
return {
var templateLock, action, blockName, canInsertBlock;
return regenerator_default.a.wrap(function moveBlockToPosition$(_context5) {
while (1) {
switch (_context5.prev = _context5.next) {
case 0:
_context5.next = 2;
return controls_select('core/block-editor', 'getTemplateLock', fromRootClientId);
case 2:
templateLock = _context5.sent;
if (!(templateLock === 'all')) {
_context5.next = 5;
break;
}
return _context5.abrupt("return");
case 5:
action = {
type: 'MOVE_BLOCK_TO_POSITION',
fromRootClientId: fromRootClientId,
toRootClientId: toRootClientId,
clientId: clientId,
index: index
};
}; // If moving inside the same root block the move is always possible.
if (!(fromRootClientId === toRootClientId)) {
_context5.next = 10;
break;
}
_context5.next = 9;
return action;
case 9:
return _context5.abrupt("return");
case 10:
_context5.next = 12;
return controls_select('core/block-editor', 'getBlockName', clientId);
case 12:
blockName = _context5.sent;
_context5.next = 15;
return controls_select('core/block-editor', 'canInsertBlockType', blockName, toRootClientId);
case 15:
canInsertBlock = _context5.sent;
if (!canInsertBlock) {
_context5.next = 19;
break;
}
_context5.next = 19;
return action;
case 19:
case "end":
return _context5.stop();
}
}
}, _marked5, this);
}
/**
* Returns an action object used in signalling that a single block should be
@ -5443,15 +5659,107 @@ function actions_insertBlock(block, index, rootClientId) {
*/
function actions_insertBlocks(blocks, index, rootClientId) {
var updateSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
return {
var updateSelection,
allowedBlocks,
_iteratorNormalCompletion,
_didIteratorError,
_iteratorError,
_iterator,
_step,
block,
isValid,
_args6 = arguments;
return regenerator_default.a.wrap(function insertBlocks$(_context6) {
while (1) {
switch (_context6.prev = _context6.next) {
case 0:
updateSelection = _args6.length > 3 && _args6[3] !== undefined ? _args6[3] : true;
blocks = Object(external_lodash_["castArray"])(blocks);
allowedBlocks = [];
_iteratorNormalCompletion = true;
_didIteratorError = false;
_iteratorError = undefined;
_context6.prev = 6;
_iterator = blocks[Symbol.iterator]();
case 8:
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
_context6.next = 17;
break;
}
block = _step.value;
_context6.next = 12;
return controls_select('core/block-editor', 'canInsertBlockType', block.name, rootClientId);
case 12:
isValid = _context6.sent;
if (isValid) {
allowedBlocks.push(block);
}
case 14:
_iteratorNormalCompletion = true;
_context6.next = 8;
break;
case 17:
_context6.next = 23;
break;
case 19:
_context6.prev = 19;
_context6.t0 = _context6["catch"](6);
_didIteratorError = true;
_iteratorError = _context6.t0;
case 23:
_context6.prev = 23;
_context6.prev = 24;
if (!_iteratorNormalCompletion && _iterator.return != null) {
_iterator.return();
}
case 26:
_context6.prev = 26;
if (!_didIteratorError) {
_context6.next = 29;
break;
}
throw _iteratorError;
case 29:
return _context6.finish(26);
case 30:
return _context6.finish(23);
case 31:
if (!allowedBlocks.length) {
_context6.next = 33;
break;
}
return _context6.abrupt("return", {
type: 'INSERT_BLOCKS',
blocks: Object(external_lodash_["castArray"])(blocks),
blocks: allowedBlocks,
index: index,
rootClientId: rootClientId,
time: Date.now(),
updateSelection: updateSelection
};
});
case 33:
case "end":
return _context6.stop();
}
}
}, _marked6, this, [[6, 19, 23, 31], [24,, 26, 30]]);
}
/**
* Returns an action object used in signalling that the insertion point should
@ -5533,51 +5841,38 @@ function mergeBlocks(firstBlockClientId, secondBlockClientId) {
function actions_removeBlocks(clientIds) {
var selectPrevious,
count,
_args3 = arguments;
return regenerator_default.a.wrap(function removeBlocks$(_context3) {
_args7 = arguments;
return regenerator_default.a.wrap(function removeBlocks$(_context7) {
while (1) {
switch (_context3.prev = _context3.next) {
switch (_context7.prev = _context7.next) {
case 0:
selectPrevious = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : true;
selectPrevious = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : true;
clientIds = Object(external_lodash_["castArray"])(clientIds);
if (!selectPrevious) {
_context3.next = 5;
_context7.next = 5;
break;
}
_context3.next = 5;
_context7.next = 5;
return selectPreviousBlock(clientIds[0]);
case 5:
_context3.next = 7;
_context7.next = 7;
return {
type: 'REMOVE_BLOCKS',
clientIds: clientIds
};
case 7:
_context3.next = 9;
return controls_select('core/block-editor', 'getBlockCount');
return _context7.delegateYield(ensureDefaultBlock(), "t0", 8);
case 9:
count = _context3.sent;
if (!(count === 0)) {
_context3.next = 13;
break;
}
_context3.next = 13;
return actions_insertDefaultBlock();
case 13:
case 8:
case "end":
return _context3.stop();
return _context7.stop();
}
}
}, _marked3, this);
}, _marked7, this);
}
/**
* Returns an action object used in signalling that the block with the
@ -5593,6 +5888,27 @@ function actions_removeBlocks(clientIds) {
function removeBlock(clientId, selectPrevious) {
return actions_removeBlocks([clientId], selectPrevious);
}
/**
* Returns an action object used in signalling that the inner blocks with the
* specified client ID should be replaced.
*
* @param {string} rootClientId Client ID of the block whose InnerBlocks will re replaced.
* @param {Object[]} blocks Block objects to insert as new InnerBlocks
* @param {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true.
*
* @return {Object} Action object.
*/
function actions_replaceInnerBlocks(rootClientId, blocks) {
var updateSelection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
return {
type: 'REPLACE_INNER_BLOCKS',
rootClientId: rootClientId,
blocks: blocks,
updateSelection: updateSelection,
time: Date.now()
};
}
/**
* Returns an action object used to toggle the block editing mode between
* visual and HTML modes.
@ -5678,7 +5994,7 @@ function actions_insertDefaultBlock(attributes, rootClientId, index) {
* @return {Object} Action object
*/
function actions_updateBlockListSettings(clientId, settings) {
function updateBlockListSettings(clientId, settings) {
return {
type: 'UPDATE_BLOCK_LIST_SETTINGS',
clientId: clientId,
@ -7069,6 +7385,24 @@ function selectors_getSettings(state) {
function isLastBlockChangePersistent(state) {
return state.blocks.isPersistentChange;
}
/**
* Returns true if the most recent block change is be considered ignored, or
* false otherwise. An ignored change is one not to be committed by
* BlockEditorProvider, neither via `onChange` nor `onInput`.
*
* @param {Object} state Block editor state.
*
* @return {boolean} Whether the most recent block change was ignored.
*/
function __unstableIsLastBlockChangeIgnored(state) {
// TODO: Removal Plan: Changes incurred by RECEIVE_BLOCKS should not be
// ignored if in-fact they result in a change in blocks state. The current
// need to ignore changes not a result of user interaction should be
// accounted for in the refactoring of reusable blocks as occurring within
// their own separate block editor / state (#7119).
return state.blocks.isIgnoredChange;
}
/**
* Returns the value of a post meta from the editor settings.
*
@ -7139,23 +7473,6 @@ function validateBlocksToTemplate(action, store) {
return setTemplateValidity(isBlocksValidToTemplate);
}
}
/**
* Effect handler which will return a default block insertion action if there
* are no other blocks at the root of the editor. This is expected to be used
* in actions which may result in no blocks remaining in the editor (removal,
* replacement, etc).
*
* @param {Object} action Action which had initiated the effect handler.
* @param {Object} store Store instance.
*
* @return {?Object} Default block insert action, if no other blocks exist.
*/
function ensureDefaultBlock(action, store) {
if (!selectors_getBlockCount(store.getState())) {
return actions_insertDefaultBlock();
}
}
/* harmony default export */ var effects = ({
MERGE_BLOCKS: function MERGE_BLOCKS(action, store) {
var dispatch = store.dispatch;
@ -7190,7 +7507,6 @@ function ensureDefaultBlock(action, store) {
})].concat(Object(toConsumableArray["a" /* default */])(blocksWithTheSameType.slice(1)))));
},
RESET_BLOCKS: [validateBlocksToTemplate],
REPLACE_BLOCKS: [ensureDefaultBlock],
MULTI_SELECT: function MULTI_SELECT(action, _ref) {
var getState = _ref.getState;
var blockCount = selectors_getSelectedBlockCount(getState());
@ -7297,7 +7613,7 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
var external_this_wp_compose_ = __webpack_require__(6);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(10);
@ -8743,7 +9059,7 @@ var external_this_wp_isShallowEqual_ = __webpack_require__(42);
var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_);
// EXTERNAL MODULE: external {"this":["wp","dom"]}
var external_this_wp_dom_ = __webpack_require__(25);
var external_this_wp_dom_ = __webpack_require__(24);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js
/**
@ -10280,7 +10596,7 @@ var dom_scroll_into_view_lib = __webpack_require__(67);
var dom_scroll_into_view_lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/index.js
@ -13132,8 +13448,7 @@ inner_blocks_InnerBlocks = Object(external_this_wp_compose_["compose"])([context
};
}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) {
var _dispatch = dispatch('core/block-editor'),
replaceBlocks = _dispatch.replaceBlocks,
insertBlocks = _dispatch.insertBlocks,
_replaceInnerBlocks = _dispatch.replaceInnerBlocks,
updateBlockListSettings = _dispatch.updateBlockListSettings;
var block = ownProps.block,
@ -13142,13 +13457,7 @@ inner_blocks_InnerBlocks = Object(external_this_wp_compose_["compose"])([context
templateInsertUpdatesSelection = _ownProps$templateIns === void 0 ? true : _ownProps$templateIns;
return {
replaceInnerBlocks: function replaceInnerBlocks(blocks) {
var clientIds = Object(external_lodash_["map"])(block.innerBlocks, 'clientId');
if (clientIds.length) {
replaceBlocks(clientIds, blocks);
} else {
insertBlocks(blocks, undefined, clientId, templateInsertUpdatesSelection);
}
_replaceInnerBlocks(clientId, blocks, block.innerBlocks.length === 0 && templateInsertUpdatesSelection);
},
updateNestedSettings: function updateNestedSettings(settings) {
dispatch(updateBlockListSettings(clientId, settings));
@ -15484,6 +15793,8 @@ var MediaUpload = function MediaUpload() {
/**
* WordPress dependencies
*/
@ -15522,21 +15833,19 @@ function (_Component) {
var _this$props = this.props,
children = _this$props.children,
renderSettings = _this$props.renderSettings,
onClose = _this$props.onClose,
onClickOutside = _this$props.onClickOutside,
_this$props$position = _this$props.position,
position = _this$props$position === void 0 ? 'bottom center' : _this$props$position,
_this$props$focusOnMo = _this$props.focusOnMount,
focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo;
focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo,
popoverProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["children", "renderSettings", "position", "focusOnMount"]);
var isSettingsExpanded = this.state.isSettingsExpanded;
var showSettings = !!renderSettings && isSettingsExpanded;
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], Object(esm_extends["a" /* default */])({
className: "editor-url-popover block-editor-url-popover",
focusOnMount: focusOnMount,
position: position,
onClose: onClose,
onClickOutside: onClickOutside
}, Object(external_this_wp_element_["createElement"])("div", {
position: position
}, popoverProps), Object(external_this_wp_element_["createElement"])("div", {
className: "editor-url-popover__row block-editor-url-popover__row"
}, children, !!renderSettings && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
className: "editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",
@ -18856,7 +19165,8 @@ function (_Component) {
var _registry$select = registry.select('core/block-editor'),
getBlocks = _registry$select.getBlocks,
isLastBlockChangePersistent = _registry$select.isLastBlockChangePersistent;
isLastBlockChangePersistent = _registry$select.isLastBlockChangePersistent,
__unstableIsLastBlockChangeIgnored = _registry$select.__unstableIsLastBlockChangeIgnored;
var blocks = getBlocks();
var isPersistent = isLastBlockChangePersistent();
@ -18867,7 +19177,7 @@ function (_Component) {
var newBlocks = getBlocks();
var newIsPersistent = isLastBlockChangePersistent();
if (newBlocks !== blocks && _this.isSyncingIncomingValue) {
if (newBlocks !== blocks && (_this.isSyncingIncomingValue || __unstableIsLastBlockChangeIgnored())) {
_this.isSyncingIncomingValue = false;
blocks = newBlocks;
isPersistent = newIsPersistent;
@ -18876,9 +19186,14 @@ function (_Component) {
if (newBlocks !== blocks || // This happens when a previous input is explicitely marked as persistent.
newIsPersistent && !isPersistent) {
// When knowing the blocks value is changing, assign instance
// value to skip reset in subsequent `componentDidUpdate`.
if (newBlocks !== blocks) {
_this.isSyncingOutcomingValue = true;
}
blocks = newBlocks;
isPersistent = newIsPersistent;
_this.isSyncingOutcomingValue = true;
if (isPersistent) {
onChange(blocks);

File diff suppressed because one or more lines are too long

View File

@ -468,14 +468,14 @@ function _objectWithoutProperties(source, excluded) {
(function() { module.exports = this["wp"]["editor"]; }());
/***/ }),
/* 23 */
/* 23 */,
/* 24 */,
/* 25 */
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/* 24 */,
/* 25 */,
/* 26 */,
/* 27 */,
/* 28 */
@ -8241,18 +8241,20 @@ var settings = {
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
/* 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 classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6);
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6);
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__);
/**
@ -8270,12 +8272,12 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/spacer';
var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add white space between blocks and customize its height.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Spacer'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Add white space between blocks and customize its height.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Path"], {
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["Path"], {
d: "M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"
}))),
category: 'layout',
@ -8285,7 +8287,7 @@ var settings = {
default: 100
}
},
edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["withInstanceId"])(function (_ref) {
edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__["withInstanceId"])(function (_ref) {
var attributes = _ref.attributes,
isSelected = _ref.isSelected,
setAttributes = _ref.setAttributes,
@ -8293,8 +8295,14 @@ var settings = {
instanceId = _ref.instanceId;
var height = attributes.height;
var id = "block-spacer-height-input-".concat(instanceId);
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ResizableBox"], {
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('block-library-spacer__resize-container', {
var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useState"])(height),
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_useState, 2),
inputHeightValue = _useState2[0],
setInputHeightValue = _useState2[1];
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["ResizableBox"], {
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('block-library-spacer__resize-container', {
'is-selected': isSelected
}),
size: {
@ -8312,35 +8320,49 @@ var settings = {
topLeft: false
},
onResizeStop: function onResizeStop(event, direction, elt, delta) {
var spacerHeight = parseInt(height + delta.height, 10);
setAttributes({
height: parseInt(height + delta.height, 10)
height: spacerHeight
});
setInputHeightValue(spacerHeight);
toggleSelection(true);
},
onResizeStart: function onResizeStart() {
toggleSelection(false);
}
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer Settings')
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["BaseControl"], {
label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Height in pixels'),
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["PanelBody"], {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Spacer Settings')
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["BaseControl"], {
label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Height in pixels'),
id: id
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("input", {
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("input", {
type: "number",
id: id,
onChange: function onChange(event) {
var spacerHeight = parseInt(event.target.value, 10);
setInputHeightValue(spacerHeight);
if (isNaN(spacerHeight)) {
// Set spacer height to default size and input box to empty string
setInputHeightValue('');
spacerHeight = 100;
} else if (spacerHeight < 20) {
// Set spacer height to minimum size
spacerHeight = 20;
}
setAttributes({
height: parseInt(event.target.value, 10)
height: spacerHeight
});
},
value: height,
value: inputHeightValue,
min: "20",
step: "10"
})))));
}),
save: function save(_ref2) {
var attributes = _ref2.attributes;
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
style: {
height: attributes.height
},
@ -9618,7 +9640,7 @@ var external_this_wp_data_ = __webpack_require__(5);
var external_this_wp_editor_ = __webpack_require__(22);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// EXTERNAL MODULE: external {"this":["wp","viewport"]}
var external_this_wp_viewport_ = __webpack_require__(40);
@ -12797,9 +12819,9 @@ function (_Component) {
Object(classCallCheck["a" /* default */])(this, GalleryImage);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments));
_this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)));
_this.state = {
captionSelected: false
@ -12826,8 +12848,8 @@ function (_Component) {
}
}
}, {
key: "onImageClick",
value: function onImageClick() {
key: "onSelectImage",
value: function onSelectImage() {
if (!this.props.isSelected) {
this.props.onSelect();
}
@ -12839,8 +12861,8 @@ function (_Component) {
}
}
}, {
key: "onKeyDown",
value: function onKeyDown(event) {
key: "onRemoveImage",
value: function onRemoveImage(event) {
if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) {
event.stopPropagation();
event.preventDefault();
@ -12904,25 +12926,21 @@ function (_Component) {
src: url,
alt: alt,
"data-id": id,
onClick: this.onImageClick,
onClick: this.onSelectImage,
onFocus: this.onSelectImage,
onKeyDown: this.onRemoveImage,
tabIndex: "0",
onKeyDown: this.onImageClick,
"aria-label": ariaLabel
"aria-label": ariaLabel,
ref: this.bindContainer
}), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))
/* eslint-enable jsx-a11y/no-noninteractive-element-interactions */
;
var className = classnames_default()({
'is-selected': isSelected,
'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url)
}); // Disable reason: Each block can be selected by clicking on it and we should keep the same saved markup
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
});
return Object(external_this_wp_element_["createElement"])("figure", {
className: className,
tabIndex: "-1",
onKeyDown: this.onKeyDown,
ref: this.bindContainer
className: className
}, isSelected && Object(external_this_wp_element_["createElement"])("div", {
className: "block-library-gallery-item__inline-menu"
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
@ -12945,7 +12963,6 @@ function (_Component) {
unstableOnFocus: this.onSelectCaption,
inlineToolbar: true
}) : null);
/* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
}
}]);
@ -17975,7 +17992,7 @@ var external_this_wp_apiFetch_ = __webpack_require__(33);
var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// EXTERNAL MODULE: external {"this":["wp","date"]}
var external_this_wp_date_ = __webpack_require__(50);

File diff suppressed because one or more lines are too long

View File

@ -5362,14 +5362,14 @@ if (true) {
/***/ 24:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
(function() { module.exports = this["wp"]["dom"]; }());
/***/ }),
/***/ 25:
/***/ 26:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["dom"]; }());
(function() { module.exports = this["wp"]["hooks"]; }());
/***/ }),
@ -6322,7 +6322,7 @@ var v4 = __webpack_require__(65);
var v4_default = /*#__PURE__*/__webpack_require__.n(v4);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
var tinycolor = __webpack_require__(45);
@ -9736,7 +9736,7 @@ var parseWithGrammar = createParse(external_this_wp_blockSerializationDefaultPar
/* harmony default export */ var parser = (parseWithGrammar);
// EXTERNAL MODULE: external {"this":["wp","dom"]}
var external_this_wp_dom_ = __webpack_require__(25);
var external_this_wp_dom_ = __webpack_require__(24);
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/phrasing-content.js
/**

File diff suppressed because one or more lines are too long

View File

@ -443,25 +443,25 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/* 22 */,
/* 23 */
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/* 23 */,
/* 24 */
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
/***/ }),
/* 25 */
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["dom"]; }());
/***/ }),
/* 26 */,
/* 25 */
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/* 26 */
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
/***/ }),
/* 27 */
/***/ (function(module, exports) {
@ -18863,6 +18863,7 @@ module.exports = {
object: noopThunk,
or: noopThunk,
range: noopThunk,
ref: noopThunk,
requiredBy: noopThunk,
restrictedProp: noopThunk,
sequenceOf: noopThunk,
@ -21017,6 +21018,8 @@ if (!Object.keys) {
$frames: true,
$innerHeight: true,
$innerWidth: true,
$onmozfullscreenchange: true,
$onmozfullscreenerror: true,
$outerHeight: true,
$outerWidth: true,
$pageXOffset: true,
@ -21231,6 +21234,8 @@ if (!Object.keys) {
$frames: true,
$innerHeight: true,
$innerWidth: true,
$onmozfullscreenchange: true,
$onmozfullscreenerror: true,
$outerHeight: true,
$outerWidth: true,
$pageXOffset: true,
@ -24005,7 +24010,7 @@ var external_this_wp_compose_ = __webpack_require__(6);
var external_this_wp_richText_ = __webpack_require__(20);
// EXTERNAL MODULE: external {"this":["wp","dom"]}
var external_this_wp_dom_ = __webpack_require__(25);
var external_this_wp_dom_ = __webpack_require__(24);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(19);
@ -27014,7 +27019,7 @@ function (_Component) {
value: function componentDidMount() {
var _this2 = this;
this.toggleAutoRefresh(true);
this.toggleAutoRefresh(!this.props.hasOwnProperty('anchorRect'));
this.refresh();
/*
* Without the setTimeout, the dom node is not being focused. Related:
@ -27033,6 +27038,16 @@ function (_Component) {
if (prevProps.position !== this.props.position) {
this.computePopoverPosition(this.state.popoverSize, this.anchorRect);
}
if (prevProps.anchorRect !== this.props.anchorRect) {
this.refreshOnAnchorMove();
}
var hasAnchorRect = this.props.hasOwnProperty('anchorRect');
if (hasAnchorRect !== prevProps.hasOwnProperty('anchorRect')) {
this.toggleAutoRefresh(!hasAnchorRect);
}
}
}, {
key: "componentWillUnmount",
@ -27081,9 +27096,7 @@ function (_Component) {
}, {
key: "refreshOnAnchorMove",
value: function refreshOnAnchorMove() {
var _this$props$getAnchor = this.props.getAnchorRect,
getAnchorRect = _this$props$getAnchor === void 0 ? this.getAnchorRect : _this$props$getAnchor;
var anchorRect = getAnchorRect(this.anchorNode.current);
var anchorRect = this.getAnchorRect(this.anchorNode.current);
var didAnchorRectChange = !external_this_wp_isShallowEqual_default()(anchorRect, this.anchorRect);
if (didAnchorRectChange) {
@ -27100,9 +27113,7 @@ function (_Component) {
}, {
key: "refresh",
value: function refresh() {
var _this$props$getAnchor2 = this.props.getAnchorRect,
getAnchorRect = _this$props$getAnchor2 === void 0 ? this.getAnchorRect : _this$props$getAnchor2;
var anchorRect = getAnchorRect(this.anchorNode.current);
var anchorRect = this.getAnchorRect(this.anchorNode.current);
var contentRect = this.contentNode.current.getBoundingClientRect();
var popoverSize = {
width: contentRect.width,
@ -27152,6 +27163,18 @@ function (_Component) {
}, {
key: "getAnchorRect",
value: function getAnchorRect(anchor) {
var _this$props = this.props,
getAnchorRect = _this$props.getAnchorRect,
anchorRect = _this$props.anchorRect;
if (anchorRect) {
return anchorRect;
}
if (getAnchorRect) {
return getAnchorRect(anchor);
}
if (!anchor || !anchor.parentNode) {
return;
}
@ -27178,10 +27201,10 @@ function (_Component) {
}, {
key: "computePopoverPosition",
value: function computePopoverPosition(popoverSize, anchorRect) {
var _this$props = this.props,
_this$props$position = _this$props.position,
position = _this$props$position === void 0 ? 'top' : _this$props$position,
expandOnMobile = _this$props.expandOnMobile;
var _this$props2 = this.props,
_this$props2$position = _this$props2.position,
position = _this$props2$position === void 0 ? 'top' : _this$props2$position,
expandOnMobile = _this$props2.expandOnMobile;
var newPopoverPosition = utils_computePopoverPosition(anchorRect, popoverSize, position, expandOnMobile);
@ -27192,9 +27215,9 @@ function (_Component) {
}, {
key: "maybeClose",
value: function maybeClose(event) {
var _this$props2 = this.props,
onKeyDown = _this$props2.onKeyDown,
onClose = _this$props2.onClose; // Close on escape
var _this$props3 = this.props,
onKeyDown = _this$props3.onKeyDown,
onClose = _this$props3.onClose; // Close on escape
if (event.keyCode === external_this_wp_keycodes_["ESCAPE"] && onClose) {
event.stopPropagation();
@ -27211,22 +27234,22 @@ function (_Component) {
value: function render() {
var _this3 = this;
var _this$props3 = this.props,
headerTitle = _this$props3.headerTitle,
onClose = _this$props3.onClose,
children = _this$props3.children,
className = _this$props3.className,
_this$props3$onClickO = _this$props3.onClickOutside,
onClickOutside = _this$props3$onClickO === void 0 ? onClose : _this$props3$onClickO,
noArrow = _this$props3.noArrow,
position = _this$props3.position,
range = _this$props3.range,
focusOnMount = _this$props3.focusOnMount,
getAnchorRect = _this$props3.getAnchorRect,
expandOnMobile = _this$props3.expandOnMobile,
_this$props3$animate = _this$props3.animate,
animate = _this$props3$animate === void 0 ? true : _this$props3$animate,
contentProps = Object(objectWithoutProperties["a" /* default */])(_this$props3, ["headerTitle", "onClose", "children", "className", "onClickOutside", "noArrow", "position", "range", "focusOnMount", "getAnchorRect", "expandOnMobile", "animate"]);
var _this$props4 = this.props,
headerTitle = _this$props4.headerTitle,
onClose = _this$props4.onClose,
children = _this$props4.children,
className = _this$props4.className,
_this$props4$onClickO = _this$props4.onClickOutside,
onClickOutside = _this$props4$onClickO === void 0 ? onClose : _this$props4$onClickO,
noArrow = _this$props4.noArrow,
position = _this$props4.position,
range = _this$props4.range,
focusOnMount = _this$props4.focusOnMount,
getAnchorRect = _this$props4.getAnchorRect,
expandOnMobile = _this$props4.expandOnMobile,
_this$props4$animate = _this$props4.animate,
animate = _this$props4$animate === void 0 ? true : _this$props4$animate,
contentProps = Object(objectWithoutProperties["a" /* default */])(_this$props4, ["headerTitle", "onClose", "children", "className", "onClickOutside", "noArrow", "position", "range", "focusOnMount", "getAnchorRect", "expandOnMobile", "animate"]);
var _this$state = this.state,
popoverLeft = _this$state.popoverLeft,
@ -28717,6 +28740,8 @@ function (_Component) {
keyTarget = _this$keyTarget === void 0 ? document : _this$keyTarget;
this.mousetrap = new mousetrap_default.a(keyTarget);
Object(external_lodash_["forEach"])(this.props.shortcuts, function (callback, key) {
if (false) { var hasShift, hasAlt, modifiers, keys; }
var _this2$props = _this2.props,
bindGlobal = _this2$props.bindGlobal,
eventName = _this2$props.eventName;
@ -36271,7 +36296,7 @@ var external_this_wp_apiFetch_ = __webpack_require__(33);
var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/server-side-render/index.js
@ -36862,6 +36887,7 @@ function Toolbar(_ref) {
/**
* External dependencies
*/
@ -36872,6 +36898,7 @@ function Toolbar(_ref) {
/**
* Internal dependencies
*/
@ -36938,6 +36965,8 @@ function Toolbar(_ref) {
}, {
key: "render",
value: function render() {
var _ref;
var className = classnames_default()('components-navigate-regions', {
'is-focusing-regions': this.state.isFocusingRegions
}); // Disable reason: Clicking the editor should dismiss the regions focus style
@ -36950,12 +36979,9 @@ function Toolbar(_ref) {
onClick: this.onClick
}, Object(external_this_wp_element_["createElement"])(keyboard_shortcuts, {
bindGlobal: true,
shortcuts: {
'ctrl+`': this.focusNextRegion,
'shift+alt+n': this.focusNextRegion,
'ctrl+shift+`': this.focusPreviousRegion,
'shift+alt+p': this.focusPreviousRegion
}
shortcuts: (_ref = {
'ctrl+`': this.focusNextRegion
}, Object(defineProperty["a" /* default */])(_ref, external_this_wp_keycodes_["rawShortcut"].access('n'), this.focusNextRegion), Object(defineProperty["a" /* default */])(_ref, 'ctrl+shift+`', this.focusPreviousRegion), Object(defineProperty["a" /* default */])(_ref, external_this_wp_keycodes_["rawShortcut"].access('p'), this.focusPreviousRegion), _ref)
}), Object(external_this_wp_element_["createElement"])(WrappedComponent, this.props));
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */
}
@ -37062,7 +37088,7 @@ function Toolbar(_ref) {
});
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js
@ -37396,7 +37422,7 @@ var v4_default = /*#__PURE__*/__webpack_require__.n(v4);
/* concated harmony reexport PanelRow */__webpack_require__.d(__webpack_exports__, "PanelRow", function() { return row; });
/* concated harmony reexport Placeholder */__webpack_require__.d(__webpack_exports__, "Placeholder", function() { return placeholder; });
/* concated harmony reexport Popover */__webpack_require__.d(__webpack_exports__, "Popover", function() { return popover; });
/* concated harmony reexport PositionedAtSelection */__webpack_require__.d(__webpack_exports__, "PositionedAtSelection", function() { return positioned_at_selection_PositionedAtSelection; });
/* concated harmony reexport __unstablePositionedAtSelection */__webpack_require__.d(__webpack_exports__, "__unstablePositionedAtSelection", function() { return positioned_at_selection_PositionedAtSelection; });
/* concated harmony reexport QueryControls */__webpack_require__.d(__webpack_exports__, "QueryControls", function() { return QueryControls; });
/* concated harmony reexport RadioControl */__webpack_require__.d(__webpack_exports__, "RadioControl", function() { return radio_control; });
/* concated harmony reexport RangeControl */__webpack_require__.d(__webpack_exports__, "RangeControl", function() { return range_control; });

File diff suppressed because one or more lines are too long

View File

@ -181,18 +181,18 @@ function _toConsumableArray(arr) {
/***/ }),
/***/ 23:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 26:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
/***/ }),
/***/ 25:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 28:
@ -772,7 +772,7 @@ var equivalent_key_map = __webpack_require__(76);
var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/queried-data/get-query-parts.js
@ -943,7 +943,7 @@ var getQueriedItems = Object(rememo["a" /* default */])(function (state) {
var redux = __webpack_require__(71);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(26);
var regenerator = __webpack_require__(23);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// EXTERNAL MODULE: external {"this":["wp","apiFetch"]}

File diff suppressed because one or more lines are too long

View File

@ -377,7 +377,7 @@ module.exports = combineReducers;
/***/ }),
/***/ 26:
/***/ 23:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
@ -520,7 +520,7 @@ var objectSpread = __webpack_require__(7);
var external_lodash_ = __webpack_require__(2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(26);
var regenerator = __webpack_require__(23);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js

File diff suppressed because one or more lines are too long

View File

@ -87,7 +87,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["deprecated"] =
/************************************************************************/
/******/ ({
/***/ 24:
/***/ 26:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
@ -101,7 +101,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["deprecated"] =
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logged", function() { return logged; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return deprecated; });
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24);
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26);
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__);
/**
* WordPress dependencies

View File

@ -1 +1 @@
this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=339)}({24:function(e,t){!function(){e.exports=this.wp.hooks}()},339:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",function(){return o}),n.d(t,"default",function(){return c});var r=n(24),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,u=t.plugin,i=t.link,a=t.hint,l=u?" from ".concat(u):"",f=n?"".concat(l," in ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",p=i?" See: ".concat(i):"",s=a?" Note: ".concat(a):"",b="".concat(e," is deprecated and will be removed").concat(f,".").concat(d).concat(p).concat(s);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default;
this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=339)}({26:function(e,t){!function(){e.exports=this.wp.hooks}()},339:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",function(){return o}),n.d(t,"default",function(){return c});var r=n(26),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,u=t.plugin,i=t.link,a=t.hint,l=u?" from ".concat(u):"",f=n?"".concat(l," in ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",p=i?" See: ".concat(i):"",s=a?" Note: ".concat(a):"",b="".concat(e," is deprecated and will be removed").concat(f,".").concat(d).concat(p).concat(s);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default;

View File

@ -471,27 +471,36 @@ function isEdge(container, isReverse, onlyVertical) {
return false;
}
var rangeRect = getRectangleFromRange(selection.getRangeAt(0));
var range = selection.getRangeAt(0).cloneRange();
var isForward = isSelectionForward(selection);
var isCollapsed = selection.isCollapsed; // Collapse in direction of selection.
if (!isCollapsed) {
range.collapse(!isForward);
}
var rangeRect = getRectangleFromRange(range);
if (!rangeRect) {
return false;
}
var computedStyle = window.getComputedStyle(container);
var lineHeight = parseInt(computedStyle.lineHeight, 10); // Only consider the multiline selection at the edge if the direction is
var lineHeight = parseInt(computedStyle.lineHeight, 10) || 0; // Only consider the multiline selection at the edge if the direction is
// towards the edge.
if (!selection.isCollapsed && rangeRect.height > lineHeight && isSelectionForward(selection) === isReverse) {
if (!isCollapsed && rangeRect.height > lineHeight && isForward === isReverse) {
return false;
} // Calculate a buffer that is half the line height. In some browsers, the
}
var padding = parseInt(computedStyle["padding".concat(isReverse ? 'Top' : 'Bottom')], 10) || 0; // Calculate a buffer that is half the line height. In some browsers, the
// selection rectangle may not fill the entire height of the line, so we add
// 3/4 the line height to the selection rectangle to ensure that it is well
// over its line boundary.
var buffer = 3 * parseInt(lineHeight, 10) / 4;
var containerRect = container.getBoundingClientRect();
var verticalEdge = isReverse ? containerRect.top > rangeRect.top - buffer : containerRect.bottom < rangeRect.bottom + buffer;
var verticalEdge = isReverse ? containerRect.top + padding > rangeRect.top - buffer : containerRect.bottom - padding < rangeRect.bottom + buffer;
if (!verticalEdge) {
return false;
@ -577,7 +586,9 @@ function getRectangleFromRange(range) {
// See: https://stackoverflow.com/a/6847328/995445
if (!rect) {
var padNode = document.createTextNode("\u200B");
var padNode = document.createTextNode("\u200B"); // Do not modify the live range.
range = range.cloneRange();
range.insertNode(padNode);
rect = range.getClientRects()[0];
padNode.parentNode.removeChild(padNode);

File diff suppressed because one or more lines are too long

View File

@ -405,14 +405,14 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/***/ 23:
/***/ 25:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 24:
/***/ 26:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
@ -881,7 +881,7 @@ var external_this_wp_blockLibrary_ = __webpack_require__(226);
var external_this_wp_data_ = __webpack_require__(5);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(10);
@ -1365,7 +1365,7 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post
var external_this_wp_plugins_ = __webpack_require__(63);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js
@ -2440,20 +2440,17 @@ var effects = {
}
});
var wasSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost();
var wasAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost();
var wasPreviewingPost = Object(external_this_wp_data_["select"])('core/editor').isPreviewingPost(); // Save metaboxes when performing a full save on the post.
var wasAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes when performing a full save on the post.
Object(external_this_wp_data_["subscribe"])(function () {
var isSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost();
var isAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost();
var isPreviewingPost = Object(external_this_wp_data_["select"])('core/editor').isPreviewingPost();
var hasActiveMetaBoxes = Object(external_this_wp_data_["select"])('core/edit-post').hasMetaBoxes(); // Save metaboxes on save completion, except for autosaves that are not a post preview.
var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && (wasSavingPost && !isSavingPost && !wasAutosavingPost || wasAutosavingPost && wasPreviewingPost && !isPreviewingPost); // Save current state for next inspection.
var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && wasSavingPost && !isSavingPost && !wasAutosavingPost; // Save current state for next inspection.
wasSavingPost = isSavingPost;
wasAutosavingPost = isAutosavingPost;
wasPreviewingPost = isPreviewingPost;
if (shouldTriggerMetaboxesSave) {
store.dispatch(requestMetaBoxUpdates());
@ -3752,8 +3749,7 @@ var primary = external_this_wp_keycodes_["displayShortcutList"].primary,
access = external_this_wp_keycodes_["displayShortcutList"].access,
ctrl = external_this_wp_keycodes_["displayShortcutList"].ctrl,
alt = external_this_wp_keycodes_["displayShortcutList"].alt,
ctrlShift = external_this_wp_keycodes_["displayShortcutList"].ctrlShift,
shiftAlt = external_this_wp_keycodes_["displayShortcutList"].shiftAlt;
ctrlShift = external_this_wp_keycodes_["displayShortcutList"].ctrlShift;
var globalShortcuts = {
title: Object(external_this_wp_i18n_["__"])('Global shortcuts'),
shortcuts: [{
@ -3784,10 +3780,10 @@ var globalShortcuts = {
description: Object(external_this_wp_i18n_["__"])('Navigate to the previous part of the editor.'),
ariaLabel: external_this_wp_keycodes_["shortcutAriaLabel"].ctrlShift('`')
}, {
keyCombination: shiftAlt('n'),
keyCombination: access('n'),
description: Object(external_this_wp_i18n_["__"])('Navigate to the next part of the editor (alternative).')
}, {
keyCombination: shiftAlt('p'),
keyCombination: access('p'),
description: Object(external_this_wp_i18n_["__"])('Navigate to the previous part of the editor (alternative).')
}, {
keyCombination: alt('F10'),

File diff suppressed because one or more lines are too long

View File

@ -2083,25 +2083,25 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) {
/***/ }),
/***/ 23:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
/***/ }),
/***/ 25:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
/***/ }),
/***/ 24:
/***/ 26:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
/***/ }),
/***/ 26:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
/***/ }),
/***/ 27:
@ -2914,7 +2914,7 @@ var redux_optimist_default = /*#__PURE__*/__webpack_require__.n(redux_optimist);
var external_lodash_ = __webpack_require__(2);
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/defaults.js
@ -4117,7 +4117,7 @@ var lib = __webpack_require__(97);
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(26);
var regenerator = __webpack_require__(23);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// EXTERNAL MODULE: external {"this":["wp","apiFetch"]}
@ -6973,7 +6973,7 @@ store_middlewares(store_store);
/* harmony default export */ var build_module_store = (store_store);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// EXTERNAL MODULE: external {"this":["wp","element"]}
var external_this_wp_element_ = __webpack_require__(0);

File diff suppressed because one or more lines are too long

View File

@ -268,6 +268,31 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
/***/ }),
/***/ 19:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
/***/ }),
/***/ 2:
/***/ (function(module, exports) {
@ -326,7 +351,14 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/***/ 23:
/***/ 24:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["dom"]; }());
/***/ }),
/***/ 25:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["url"]; }());
@ -646,7 +678,7 @@ var image_image = {
open();
return null;
}
}), isObjectActive && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PositionedAtSelection"], {
}), isObjectActive && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__unstablePositionedAtSelection"], {
key: key
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
position: "bottom center",
@ -755,12 +787,18 @@ var italic = {
};
// EXTERNAL MODULE: external {"this":["wp","url"]}
var external_this_wp_url_ = __webpack_require__(23);
var external_this_wp_url_ = __webpack_require__(25);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(19);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(16);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: external {"this":["wp","dom"]}
var external_this_wp_dom_ = __webpack_require__(24);
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(2);
@ -881,6 +919,8 @@ function createLinkFormat(_ref) {
/**
* External dependencies
*/
@ -896,6 +936,7 @@ function createLinkFormat(_ref) {
/**
* Internal dependencies
*/
@ -957,9 +998,50 @@ var inline_LinkViewerUrl = function LinkViewerUrl(_ref2) {
}, Object(external_this_wp_url_["filterURLForDisplay"])(Object(external_this_wp_url_["safeDecodeURI"])(url)));
};
var inline_LinkViewer = function LinkViewer(_ref3) {
var url = _ref3.url,
editLink = _ref3.editLink;
var inline_URLPopoverAtLink = function URLPopoverAtLink(_ref3) {
var isActive = _ref3.isActive,
addingLink = _ref3.addingLink,
value = _ref3.value,
props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["isActive", "addingLink", "value"]);
var anchorRect = Object(external_this_wp_element_["useMemo"])(function () {
var range = window.getSelection().getRangeAt(0);
if (!range) {
return;
}
if (addingLink) {
return Object(external_this_wp_dom_["getRectangleFromRange"])(range);
}
var element = range.startContainer; // If the caret is right before the element, select the next element.
element = element.nextElementSibling || element;
while (element.nodeType !== window.Node.ELEMENT_NODE) {
element = element.parentNode;
}
var closest = element.closest('a');
if (closest) {
return closest.getBoundingClientRect();
}
}, [isActive, addingLink, value.start, value.end]);
if (!anchorRect) {
return null;
}
return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], Object(esm_extends["a" /* default */])({
anchorRect: anchorRect
}, props));
};
var inline_LinkViewer = function LinkViewer(_ref4) {
var url = _ref4.url,
editLink = _ref4.editLink;
return (// Disable reason: KeyPress must be suppressed so the block doesn't hide the toolbar
/* eslint-disable jsx-a11y/no-static-element-interactions */
@ -1129,11 +1211,10 @@ function (_Component) {
inputValue = _this$state2.inputValue,
opensInNewWindow = _this$state2.opensInNewWindow;
var showInput = isShowingInput(this.props, this.state);
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PositionedAtSelection"], {
key: "".concat(value.start).concat(value.end)
/* Used to force rerender on selection change */
}, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], {
return Object(external_this_wp_element_["createElement"])(inline_URLPopoverAtLink, {
value: value,
isActive: isActive,
addingLink: addingLink,
onClickOutside: this.onClickOutside,
onClose: this.resetState,
focusOnMount: showInput ? 'firstElement' : false,
@ -1153,7 +1234,7 @@ function (_Component) {
}) : Object(external_this_wp_element_["createElement"])(inline_LinkViewer, {
url: url,
editLink: this.editLink
})));
}));
}
}], [{
key: "getDerivedStateFromProps",

File diff suppressed because one or more lines are too long

View File

@ -188,7 +188,7 @@ function _inherits(subClass, superClass) {
/***/ }),
/***/ 26:
/***/ 23:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
@ -254,7 +254,7 @@ var external_this_wp_element_ = __webpack_require__(0);
var external_this_wp_i18n_ = __webpack_require__(1);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(26);
var regenerator = __webpack_require__(23);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js

File diff suppressed because one or more lines are too long

View File

@ -149,7 +149,7 @@ function _toConsumableArray(arr) {
/***/ }),
/***/ 26:
/***/ 23:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(54);
@ -283,7 +283,7 @@ var notices = on_sub_key('context')(function () {
/* harmony default export */ var store_reducer = (notices);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(26);
var regenerator = __webpack_require__(23);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/constants.js

File diff suppressed because one or more lines are too long

View File

@ -228,7 +228,7 @@ function _extends() {
/***/ }),
/***/ 24:
/***/ 26:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
@ -304,7 +304,7 @@ var external_this_wp_element_ = __webpack_require__(0);
var external_lodash_ = __webpack_require__(2);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(19);

File diff suppressed because one or more lines are too long

View File

@ -181,7 +181,7 @@ function _extends() {
/***/ }),
/***/ 24:
/***/ 26:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["hooks"]; }());
@ -1734,7 +1734,7 @@ var memize = __webpack_require__(41);
var memize_default = /*#__PURE__*/__webpack_require__.n(memize);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(24);
var external_this_wp_hooks_ = __webpack_require__(26);
// EXTERNAL MODULE: external {"this":["wp","compose"]}
var external_this_wp_compose_ = __webpack_require__(6);

File diff suppressed because one or more lines are too long

View File

@ -229,31 +229,31 @@ function wp_default_packages_scripts( &$scripts ) {
'api-fetch' => '3.1.2',
'autop' => '2.0.0',
'blob' => '2.3.0',
'block-editor' => '1.1.2',
'block-library' => '2.4.2',
'block-editor' => '2.0.1',
'block-library' => '2.4.4',
'block-serialization-default-parser' => '3.1.0',
'blocks' => '6.2.2',
'components' => '7.2.2',
'blocks' => '6.2.4',
'components' => '7.3.1',
'compose' => '3.2.0',
'core-data' => '2.2.2',
'data' => '4.4.0',
'date' => '3.2.0',
'deprecated' => '2.2.0',
'dom' => '2.2.2',
'dom' => '2.2.4',
'dom-ready' => '2.2.0',
'edit-post' => '3.3.2',
'editor' => '9.2.2',
'edit-post' => '3.3.4',
'editor' => '9.2.4',
'element' => '2.3.0',
'escape-html' => '1.2.0',
'format-library' => '1.4.2',
'format-library' => '1.4.4',
'hooks' => '2.2.0',
'html-entities' => '2.2.0',
'i18n' => '3.3.0',
'is-shallow-equal' => '1.2.0',
'keycodes' => '2.2.0',
'list-reusable-blocks' => '1.3.2',
'list-reusable-blocks' => '1.3.4',
'notices' => '1.3.0',
'nux' => '3.2.2',
'nux' => '3.2.4',
'plugins' => '2.2.0',
'priority-queue' => '1.1.0',
'redux-routine' => '3.2.0',

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2-beta3-45254';
$wp_version = '5.2-beta3-45255';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.