Block Editor: Update WordPress packages to include the latest bug fixes.

Updated packages:

@wordpress/annotations@1.7.1
@wordpress/api-fetch@3.6.1
@wordpress/babel-plugin-makepot@3.2.1
@wordpress/babel-preset-default@4.6.1
@wordpress/block-directory@1.0.1
@wordpress/block-editor@3.2.1
@wordpress/block-library@2.9.1
@wordpress/blocks@6.7.1
@wordpress/components@8.3.1
@wordpress/compose@3.7.1
@wordpress/core-data@2.7.1
@wordpress/data-controls@1.3.1
@wordpress/data@4.9.1
@wordpress/docgen@1.4.1
@wordpress/dom@2.5.1
@wordpress/e2e-test-utils@2.4.1
@wordpress/e2e-tests@1.7.1
@wordpress/edit-post@3.8.1
@wordpress/editor@9.7.1
@wordpress/element@2.8.1
@wordpress/format-library@1.9.1
@wordpress/i18n@3.6.1
@wordpress/jest-console@3.3.1
@wordpress/jest-preset-default@5.1.1
@wordpress/keycodes@2.6.1
@wordpress/library-export-default-webpack-plugin@1.4.1
@wordpress/list-reusable-blocks@1.8.1
@wordpress/media-utils@1.2.1
@wordpress/notices@1.8.1
@wordpress/nux@3.7.1
@wordpress/plugins@2.7.1
@wordpress/redux-routine@3.6.1
@wordpress/rich-text@3.7.1
@wordpress/scripts@5.0.1
@wordpress/server-side-render@1.3.1
@wordpress/shortcode@2.4.1
@wordpress/token-list@1.6.1
@wordpress/viewport@2.8.1
@wordpress/wordcount@2.6.1 

Props epiqueras, youknowriad, donmhico, jorgefilipecosta, soean, mcsf, noisysocks, andraganescu, gziolo, talldanwp, iseulde, nrqsnchz, mapk, karmatosed, joen, afercia, kjellr, desrosj.
Fixes #48186.
Built from https://develop.svn.wordpress.org/trunk@46364


git-svn-id: http://core.svn.wordpress.org/trunk@46163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2019-09-30 20:07:06 +00:00
parent 63e199abc7
commit 30d8319aa9
44 changed files with 1830 additions and 1398 deletions

View File

@ -284,7 +284,6 @@
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > * { .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > * {
pointer-events: none; pointer-events: none;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -885,11 +884,9 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
margin-left: -14px; margin-left: -14px;
margin-right: -14px; margin-right: -14px;
margin-bottom: -14px; margin-bottom: -14px;
transform: translateY(-14px); transform: translateY(-14px); }
padding: 10px 14px; } .block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning {
@media (min-width: 600px) { margin-bottom: auto; }
.block-editor-block-list__block .block-editor-warning {
padding: 10px 14px; } }
.block-editor-block-list__block .block-list-appender { .block-editor-block-list__block .block-list-appender {
margin: 14px; } margin: 14px; }
@ -1194,6 +1191,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
margin-top: -75%; } margin-top: -75%; }
.block-editor-block-styles__item-preview .block-editor-block-preview__container { .block-editor-block-styles__item-preview .block-editor-block-preview__container {
padding-top: 0; padding-top: 0;
margin: 0;
margin-top: -75%; } margin-top: -75%; }
.block-editor-block-styles__item-label { .block-editor-block-styles__item-label {
@ -1755,6 +1753,9 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
padding: 10px; padding: 10px;
display: grid; display: grid;
flex-grow: 2; } flex-grow: 2; }
.block-editor-inserter__preview-content .block-editor-block-preview__container {
margin-left: 0;
margin-right: 0; }
.block-editor-block-types-list__list-item { .block-editor-block-types-list__list-item {
display: block; display: block;
@ -2235,24 +2236,29 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
background-color: #fff; background-color: #fff;
border: 1px solid #e2e4e7; border: 1px solid #e2e4e7;
text-align: right; text-align: right;
padding: 20px; } padding: 10px 14px 14px; }
.has-warning.is-multi-selected .block-editor-warning { .has-warning.is-multi-selected .block-editor-warning {
background-color: transparent; } background-color: transparent; }
.is-selected .block-editor-warning { .is-selected .block-editor-warning {
border-color: rgba(66, 88, 99, 0.4); border-color: rgba(66, 88, 99, 0.4); }
border-right-color: transparent; } @media (min-width: 600px) {
.is-selected .block-editor-warning {
border-right-color: transparent; } }
.is-dark-theme .is-selected .block-editor-warning { .is-dark-theme .is-selected .block-editor-warning {
border-color: rgba(255, 255, 255, 0.45); } border-color: rgba(255, 255, 255, 0.45); }
.block-editor-warning .block-editor-warning__message { .block-editor-warning .block-editor-warning__message {
line-height: 1.4; line-height: 1.4;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px; } font-size: 13px;
margin: 1em 0; }
.block-editor-warning p.block-editor-warning__message.block-editor-warning__message {
min-height: auto; }
.block-editor-warning .block-editor-warning__contents { .block-editor-warning .block-editor-warning__contents {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: baseline;
width: 100%; } width: 100%; }
.block-editor-warning .block-editor-warning__actions { .block-editor-warning .block-editor-warning__actions {
display: flex; } display: flex; }
@ -2260,7 +2266,8 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
margin: 0 0 0 6px; } margin: 0 0 0 6px; }
.block-editor-warning__secondary { .block-editor-warning__secondary {
margin: 3px -4px 0 0; } margin: 5px -4px 0 0;
height: 36px; }
.block-editor-warning__secondary .components-icon-button { .block-editor-warning__secondary .components-icon-button {
width: auto; width: auto;
padding: 8px 2px; } padding: 8px 2px; }

File diff suppressed because one or more lines are too long

View File

@ -284,7 +284,6 @@
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > * { .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > * {
pointer-events: none; pointer-events: none;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -901,11 +900,9 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
margin-right: -14px; margin-right: -14px;
margin-left: -14px; margin-left: -14px;
margin-bottom: -14px; margin-bottom: -14px;
transform: translateY(-14px); transform: translateY(-14px); }
padding: 10px 14px; } .block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning {
@media (min-width: 600px) { margin-bottom: auto; }
.block-editor-block-list__block .block-editor-warning {
padding: 10px 14px; } }
.block-editor-block-list__block .block-list-appender { .block-editor-block-list__block .block-list-appender {
margin: 14px; } margin: 14px; }
@ -1210,6 +1207,7 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
margin-top: -75%; } margin-top: -75%; }
.block-editor-block-styles__item-preview .block-editor-block-preview__container { .block-editor-block-styles__item-preview .block-editor-block-preview__container {
padding-top: 0; padding-top: 0;
margin: 0;
margin-top: -75%; } margin-top: -75%; }
.block-editor-block-styles__item-label { .block-editor-block-styles__item-label {
@ -1771,6 +1769,9 @@ body.admin-color-light .block-editor-block-list__insertion-point-indicator{
padding: 10px; padding: 10px;
display: grid; display: grid;
flex-grow: 2; } flex-grow: 2; }
.block-editor-inserter__preview-content .block-editor-block-preview__container {
margin-right: 0;
margin-left: 0; }
.block-editor-block-types-list__list-item { .block-editor-block-types-list__list-item {
display: block; display: block;
@ -2251,24 +2252,29 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
background-color: #fff; background-color: #fff;
border: 1px solid #e2e4e7; border: 1px solid #e2e4e7;
text-align: left; text-align: left;
padding: 20px; } padding: 10px 14px 14px; }
.has-warning.is-multi-selected .block-editor-warning { .has-warning.is-multi-selected .block-editor-warning {
background-color: transparent; } background-color: transparent; }
.is-selected .block-editor-warning { .is-selected .block-editor-warning {
border-color: rgba(66, 88, 99, 0.4); border-color: rgba(66, 88, 99, 0.4); }
border-left-color: transparent; } @media (min-width: 600px) {
.is-selected .block-editor-warning {
border-left-color: transparent; } }
.is-dark-theme .is-selected .block-editor-warning { .is-dark-theme .is-selected .block-editor-warning {
border-color: rgba(255, 255, 255, 0.45); } border-color: rgba(255, 255, 255, 0.45); }
.block-editor-warning .block-editor-warning__message { .block-editor-warning .block-editor-warning__message {
line-height: 1.4; line-height: 1.4;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px; } font-size: 13px;
margin: 1em 0; }
.block-editor-warning p.block-editor-warning__message.block-editor-warning__message {
min-height: auto; }
.block-editor-warning .block-editor-warning__contents { .block-editor-warning .block-editor-warning__contents {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: baseline;
width: 100%; } width: 100%; }
.block-editor-warning .block-editor-warning__actions { .block-editor-warning .block-editor-warning__actions {
display: flex; } display: flex; }
@ -2276,7 +2282,8 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
margin: 0 6px 0 0; } margin: 0 6px 0 0; }
.block-editor-warning__secondary { .block-editor-warning__secondary {
margin: 3px 0 0 -4px; } margin: 5px 0 0 -4px;
height: 36px; }
.block-editor-warning__secondary .components-icon-button { .block-editor-warning__secondary .components-icon-button {
width: auto; width: auto;
padding: 8px 2px; } padding: 8px 2px; }

File diff suppressed because one or more lines are too long

View File

@ -653,11 +653,6 @@
.blocks-gallery-grid.alignright { .blocks-gallery-grid.alignright {
max-width: 305px; max-width: 305px;
width: 100%; } width: 100%; }
.wp-block-gallery.alignleft, .wp-block-gallery.aligncenter, .wp-block-gallery.alignright,
.blocks-gallery-grid.alignleft,
.blocks-gallery-grid.aligncenter,
.blocks-gallery-grid.alignright {
display: flex; }
.wp-block-gallery.aligncenter .blocks-gallery-item figure, .wp-block-gallery.aligncenter .blocks-gallery-item figure,
.blocks-gallery-grid.aligncenter .blocks-gallery-item figure { .blocks-gallery-grid.aligncenter .blocks-gallery-item figure {
justify-content: center; } justify-content: center; }

File diff suppressed because one or more lines are too long

View File

@ -657,11 +657,6 @@
.blocks-gallery-grid.alignright { .blocks-gallery-grid.alignright {
max-width: 305px; max-width: 305px;
width: 100%; } width: 100%; }
.wp-block-gallery.alignleft, .wp-block-gallery.aligncenter, .wp-block-gallery.alignright,
.blocks-gallery-grid.alignleft,
.blocks-gallery-grid.aligncenter,
.blocks-gallery-grid.alignright {
display: flex; }
.wp-block-gallery.aligncenter .blocks-gallery-item figure, .wp-block-gallery.aligncenter .blocks-gallery-item figure,
.blocks-gallery-grid.aligncenter .blocks-gallery-item figure { .blocks-gallery-grid.aligncenter .blocks-gallery-item figure {
justify-content: center; } justify-content: center; }

File diff suppressed because one or more lines are too long

View File

@ -163,269 +163,304 @@
cursor: pointer; cursor: pointer;
-webkit-appearance: none; -webkit-appearance: none;
background: none; background: none;
transition: box-shadow 0.1s linear;
/* Buttons that look like links, for a cross of good semantics with the visual */ /* Buttons that look like links, for a cross of good semantics with the visual */
/* Link buttons that are red to indicate destructive behavior. */ } /* Link buttons that are red to indicate destructive behavior. */ }
@media (prefers-reduced-motion: reduce) {
.components-button {
transition-duration: 0s; } }
.components-button.is-button { .components-button.is-button {
padding: 0 10px 1px; padding: 0 10px;
line-height: 26px; line-height: 2;
height: 28px; height: 28px;
border-radius: 3px; border-radius: 3px;
white-space: nowrap; white-space: nowrap;
border-width: 1px; border-width: 1px;
border-style: solid; } border-style: solid; }
.components-button.is-default { .components-button.is-default {
color: #555; color: rgb(0, 117, 175);
border-color: #ccc; border-color: rgb(0, 117, 175);
background: #f7f7f7; background: #f3f5f6; }
box-shadow: inset 0 -1px 0 #ccc; body.admin-color-sunrise .components-button.is-default {
vertical-align: top; } color: rgb(196, 126, 70);
border-color: rgb(196, 126, 70); }
body.admin-color-ocean .components-button.is-default {
color: rgb(153, 174, 152);
border-color: rgb(153, 174, 152); }
body.admin-color-midnight .components-button.is-default {
color: rgb(212, 72, 63);
border-color: rgb(212, 72, 63); }
body.admin-color-ectoplasm .components-button.is-default {
color: rgb(157, 171, 81);
border-color: rgb(157, 171, 81); }
body.admin-color-coffee .components-button.is-default {
color: rgb(182, 156, 132);
border-color: rgb(182, 156, 132); }
body.admin-color-blue .components-button.is-default {
color: rgb(204, 161, 84);
border-color: rgb(204, 161, 84); }
body.admin-color-light .components-button.is-default {
color: rgb(0, 125, 175);
border-color: rgb(0, 125, 175); }
.components-button.is-default:hover { .components-button.is-default:hover {
background: #fafafa; background: #f1f1f1;
border-color: #999; border-color: rgb(0, 93, 140);
box-shadow: inset 0 -1px 0 #999; color: rgb(0, 93, 140);
color: #23282d;
text-decoration: none; } text-decoration: none; }
body.admin-color-sunrise .components-button.is-default:hover {
border-color: rgb(157, 101, 56);
color: rgb(157, 101, 56); }
body.admin-color-ocean .components-button.is-default:hover {
border-color: rgb(122, 139, 122);
color: rgb(122, 139, 122); }
body.admin-color-midnight .components-button.is-default:hover {
border-color: rgb(169, 58, 50);
color: rgb(169, 58, 50); }
body.admin-color-ectoplasm .components-button.is-default:hover {
border-color: rgb(125, 137, 65);
color: rgb(125, 137, 65); }
body.admin-color-coffee .components-button.is-default:hover {
border-color: rgb(146, 125, 105);
color: rgb(146, 125, 105); }
body.admin-color-blue .components-button.is-default:hover {
border-color: rgb(163, 128, 67);
color: rgb(163, 128, 67); }
body.admin-color-light .components-button.is-default:hover {
border-color: rgb(0, 100, 140);
color: rgb(0, 100, 140); }
.components-button.is-default:focus:enabled { .components-button.is-default:focus:enabled {
background: #fafafa; background: #f3f5f6;
color: #23282d; color: rgb(0, 93, 140);
border-color: #999; border-color: rgb(0, 118, 177);
box-shadow: inset 0 -1px 0 #999, 0 0 0 1px #fff, 0 0 0 3px #007cba; box-shadow: 0 0 0 1px rgb(0, 118, 177);
text-decoration: none; } text-decoration: none; }
body.admin-color-sunrise .components-button.is-default:focus:enabled {
color: rgb(157, 101, 56);
border-color: rgb(199, 127, 70);
box-shadow: 0 0 0 1px rgb(199, 127, 70); }
body.admin-color-ocean .components-button.is-default:focus:enabled {
color: rgb(122, 139, 122);
border-color: rgb(155, 176, 154);
box-shadow: 0 0 0 1px rgb(155, 176, 154); }
body.admin-color-midnight .components-button.is-default:focus:enabled {
color: rgb(169, 58, 50);
border-color: rgb(214, 73, 64);
box-shadow: 0 0 0 1px rgb(214, 73, 64); }
body.admin-color-ectoplasm .components-button.is-default:focus:enabled {
color: rgb(125, 137, 65);
border-color: rgb(159, 173, 82);
box-shadow: 0 0 0 1px rgb(159, 173, 82); }
body.admin-color-coffee .components-button.is-default:focus:enabled {
color: rgb(146, 125, 105);
border-color: rgb(184, 158, 133);
box-shadow: 0 0 0 1px rgb(184, 158, 133); }
body.admin-color-blue .components-button.is-default:focus:enabled {
color: rgb(163, 128, 67);
border-color: rgb(206, 162, 85);
box-shadow: 0 0 0 1px rgb(206, 162, 85); }
body.admin-color-light .components-button.is-default:focus:enabled {
color: rgb(0, 100, 140);
border-color: rgb(0, 126, 177);
box-shadow: 0 0 0 1px rgb(0, 126, 177); }
.components-button.is-default:active:enabled { .components-button.is-default:active:enabled {
background: #eee; background: #f3f5f6;
border-color: #999; color: rgb(0, 118, 177);
box-shadow: inset 0 1px 0 #999; } border-color: #7e8993;
box-shadow: none; }
body.admin-color-sunrise .components-button.is-default:active:enabled {
color: rgb(199, 127, 70); }
body.admin-color-ocean .components-button.is-default:active:enabled {
color: rgb(155, 176, 154); }
body.admin-color-midnight .components-button.is-default:active:enabled {
color: rgb(214, 73, 64); }
body.admin-color-ectoplasm .components-button.is-default:active:enabled {
color: rgb(159, 173, 82); }
body.admin-color-coffee .components-button.is-default:active:enabled {
color: rgb(184, 158, 133); }
body.admin-color-blue .components-button.is-default:active:enabled {
color: rgb(206, 162, 85); }
body.admin-color-light .components-button.is-default:active:enabled {
color: rgb(0, 126, 177); }
.components-button.is-default:disabled, .components-button.is-default[aria-disabled="true"] { .components-button.is-default:disabled, .components-button.is-default[aria-disabled="true"] {
color: #a0a5aa; color: #a0a5aa;
border-color: #ddd; border-color: #ddd;
background: #f7f7f7; background: #f7f7f7;
box-shadow: none;
text-shadow: 0 1px 0 #fff; text-shadow: 0 1px 0 #fff;
transform: none; transform: none;
opacity: 1; } opacity: 1; }
.components-button.is-primary { .components-button.is-primary {
background: rgb(0, 133, 186); background: rgb(0, 124, 186);
border-color: rgb(0, 106, 149) rgb(0, 100, 140) rgb(0, 100, 140); border-color: rgb(0, 124, 186);
box-shadow: inset 0 -1px 0 rgb(0, 100, 140);
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
text-shadow: 0 -1px 1px rgb(0, 93, 130), -1px 0 1px rgb(0, 93, 130), 0 1px 1px rgb(0, 93, 130), 1px 0 1px rgb(0, 93, 130); } text-shadow: none; }
body.admin-color-sunrise .components-button.is-primary { body.admin-color-sunrise .components-button.is-primary {
background: rgb(209, 134, 74); background: rgb(209, 134, 74);
border-color: rgb(167, 107, 59) rgb(157, 101, 56) rgb(157, 101, 56); border-color: rgb(209, 134, 74); }
box-shadow: inset 0 -1px 0 rgb(157, 101, 56);
text-shadow: 0 -1px 1px rgb(146, 94, 52), -1px 0 1px rgb(146, 94, 52), 0 1px 1px rgb(146, 94, 52), 1px 0 1px rgb(146, 94, 52); }
body.admin-color-ocean .components-button.is-primary { body.admin-color-ocean .components-button.is-primary {
background: rgb(163, 185, 162); background: rgb(163, 185, 162);
border-color: rgb(130, 148, 130) rgb(122, 139, 122) rgb(122, 139, 122); border-color: rgb(163, 185, 162); }
box-shadow: inset 0 -1px 0 rgb(122, 139, 122);
text-shadow: 0 -1px 1px rgb(114, 130, 113), -1px 0 1px rgb(114, 130, 113), 0 1px 1px rgb(114, 130, 113), 1px 0 1px rgb(114, 130, 113); }
body.admin-color-midnight .components-button.is-primary { body.admin-color-midnight .components-button.is-primary {
background: rgb(225, 77, 67); background: rgb(225, 77, 67);
border-color: rgb(180, 62, 54) rgb(169, 58, 50) rgb(169, 58, 50); border-color: rgb(225, 77, 67); }
box-shadow: inset 0 -1px 0 rgb(169, 58, 50);
text-shadow: 0 -1px 1px rgb(158, 54, 47), -1px 0 1px rgb(158, 54, 47), 0 1px 1px rgb(158, 54, 47), 1px 0 1px rgb(158, 54, 47); }
body.admin-color-ectoplasm .components-button.is-primary { body.admin-color-ectoplasm .components-button.is-primary {
background: rgb(167, 182, 86); background: rgb(167, 182, 86);
border-color: rgb(134, 146, 69) rgb(125, 137, 65) rgb(125, 137, 65); border-color: rgb(167, 182, 86); }
box-shadow: inset 0 -1px 0 rgb(125, 137, 65);
text-shadow: 0 -1px 1px rgb(117, 127, 60), -1px 0 1px rgb(117, 127, 60), 0 1px 1px rgb(117, 127, 60), 1px 0 1px rgb(117, 127, 60); }
body.admin-color-coffee .components-button.is-primary { body.admin-color-coffee .components-button.is-primary {
background: rgb(194, 166, 140); background: rgb(194, 166, 140);
border-color: rgb(155, 133, 112) rgb(146, 125, 105) rgb(146, 125, 105); border-color: rgb(194, 166, 140); }
box-shadow: inset 0 -1px 0 rgb(146, 125, 105);
text-shadow: 0 -1px 1px rgb(136, 116, 98), -1px 0 1px rgb(136, 116, 98), 0 1px 1px rgb(136, 116, 98), 1px 0 1px rgb(136, 116, 98); }
body.admin-color-blue .components-button.is-primary { body.admin-color-blue .components-button.is-primary {
background: rgb(217, 171, 89); background: rgb(217, 171, 89);
border-color: rgb(174, 137, 71) rgb(163, 128, 67) rgb(163, 128, 67); border-color: rgb(217, 171, 89); }
box-shadow: inset 0 -1px 0 rgb(163, 128, 67);
text-shadow: 0 -1px 1px rgb(152, 120, 62), -1px 0 1px rgb(152, 120, 62), 0 1px 1px rgb(152, 120, 62), 1px 0 1px rgb(152, 120, 62); }
body.admin-color-light .components-button.is-primary { body.admin-color-light .components-button.is-primary {
background: rgb(0, 133, 186); background: rgb(0, 133, 186);
border-color: rgb(0, 106, 149) rgb(0, 100, 140) rgb(0, 100, 140); border-color: rgb(0, 133, 186); }
box-shadow: inset 0 -1px 0 rgb(0, 100, 140);
text-shadow: 0 -1px 1px rgb(0, 93, 130), -1px 0 1px rgb(0, 93, 130), 0 1px 1px rgb(0, 93, 130), 1px 0 1px rgb(0, 93, 130); }
.components-button.is-primary:hover, .components-button.is-primary:focus:enabled { .components-button.is-primary:hover, .components-button.is-primary:focus:enabled {
background: rgb(0, 126, 177); background: rgb(0, 112, 167);
border-color: rgb(0, 67, 93); border-color: rgb(0, 112, 167);
color: #fff; } color: #fff; }
body.admin-color-sunrise .components-button.is-primary:hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled { body.admin-color-sunrise .components-button.is-primary:hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled {
background: rgb(199, 127, 70); background: rgb(188, 121, 67);
border-color: rgb(105, 67, 37); } border-color: rgb(188, 121, 67); }
body.admin-color-ocean .components-button.is-primary:hover, body.admin-color-ocean .components-button.is-primary:focus:enabled { body.admin-color-ocean .components-button.is-primary:hover, body.admin-color-ocean .components-button.is-primary:focus:enabled {
background: rgb(155, 176, 154); background: rgb(147, 167, 146);
border-color: rgb(82, 93, 81); } border-color: rgb(147, 167, 146); }
body.admin-color-midnight .components-button.is-primary:hover, body.admin-color-midnight .components-button.is-primary:focus:enabled { body.admin-color-midnight .components-button.is-primary:hover, body.admin-color-midnight .components-button.is-primary:focus:enabled {
background: rgb(214, 73, 64); background: rgb(203, 69, 60);
border-color: rgb(113, 39, 34); } border-color: rgb(203, 69, 60); }
body.admin-color-ectoplasm .components-button.is-primary:hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { body.admin-color-ectoplasm .components-button.is-primary:hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled {
background: rgb(159, 173, 82); background: rgb(150, 164, 77);
border-color: rgb(84, 91, 43); } border-color: rgb(150, 164, 77); }
body.admin-color-coffee .components-button.is-primary:hover, body.admin-color-coffee .components-button.is-primary:focus:enabled { body.admin-color-coffee .components-button.is-primary:hover, body.admin-color-coffee .components-button.is-primary:focus:enabled {
background: rgb(184, 158, 133); background: rgb(175, 149, 126);
border-color: rgb(97, 83, 70); } border-color: rgb(175, 149, 126); }
body.admin-color-blue .components-button.is-primary:hover, body.admin-color-blue .components-button.is-primary:focus:enabled { body.admin-color-blue .components-button.is-primary:hover, body.admin-color-blue .components-button.is-primary:focus:enabled {
background: rgb(206, 162, 85); background: rgb(195, 154, 80);
border-color: rgb(109, 86, 45); } border-color: rgb(195, 154, 80); }
body.admin-color-light .components-button.is-primary:hover, body.admin-color-light .components-button.is-primary:focus:enabled { body.admin-color-light .components-button.is-primary:hover, body.admin-color-light .components-button.is-primary:focus:enabled {
background: rgb(0, 126, 177); background: rgb(0, 120, 167);
border-color: rgb(0, 67, 93); } border-color: rgb(0, 120, 167); }
.components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93); }
body.admin-color-sunrise .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(105, 67, 37); }
body.admin-color-ocean .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(82, 93, 81); }
body.admin-color-midnight .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(113, 39, 34); }
body.admin-color-ectoplasm .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(84, 91, 43); }
body.admin-color-coffee .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(97, 83, 70); }
body.admin-color-blue .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(109, 86, 45); }
body.admin-color-light .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93); }
.components-button.is-primary:focus:enabled { .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93), 0 0 0 1px #fff, 0 0 0 3px rgb(0, 126, 177); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); }
body.admin-color-sunrise .components-button.is-primary:focus:enabled { body.admin-color-sunrise .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(105, 67, 37), 0 0 0 1px #fff, 0 0 0 3px rgb(199, 127, 70); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); }
body.admin-color-ocean .components-button.is-primary:focus:enabled { body.admin-color-ocean .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(82, 93, 81), 0 0 0 1px #fff, 0 0 0 3px rgb(155, 176, 154); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); }
body.admin-color-midnight .components-button.is-primary:focus:enabled { body.admin-color-midnight .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(113, 39, 34), 0 0 0 1px #fff, 0 0 0 3px rgb(214, 73, 64); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); }
body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { body.admin-color-ectoplasm .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(84, 91, 43), 0 0 0 1px #fff, 0 0 0 3px rgb(159, 173, 82); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); }
body.admin-color-coffee .components-button.is-primary:focus:enabled { body.admin-color-coffee .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(97, 83, 70), 0 0 0 1px #fff, 0 0 0 3px rgb(184, 158, 133); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); }
body.admin-color-blue .components-button.is-primary:focus:enabled { body.admin-color-blue .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(109, 86, 45), 0 0 0 1px #fff, 0 0 0 3px rgb(206, 162, 85); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); }
body.admin-color-light .components-button.is-primary:focus:enabled { body.admin-color-light .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93), 0 0 0 1px #fff, 0 0 0 3px rgb(0, 126, 177); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); }
.components-button.is-primary:active:enabled { .components-button.is-primary:active:enabled {
background: rgb(0, 106, 149); background: rgb(0, 99, 149);
border-color: rgb(0, 67, 93); border-color: rgb(0, 99, 149);
box-shadow: inset 0 1px 0 rgb(0, 67, 93); color: #fff; }
vertical-align: top; }
body.admin-color-sunrise .components-button.is-primary:active:enabled { body.admin-color-sunrise .components-button.is-primary:active:enabled {
background: rgb(167, 107, 59); background: rgb(167, 107, 59);
border-color: rgb(105, 67, 37); border-color: rgb(167, 107, 59); }
box-shadow: inset 0 1px 0 rgb(105, 67, 37); }
body.admin-color-ocean .components-button.is-primary:active:enabled { body.admin-color-ocean .components-button.is-primary:active:enabled {
background: rgb(130, 148, 130); background: rgb(130, 148, 130);
border-color: rgb(82, 93, 81); border-color: rgb(130, 148, 130); }
box-shadow: inset 0 1px 0 rgb(82, 93, 81); }
body.admin-color-midnight .components-button.is-primary:active:enabled { body.admin-color-midnight .components-button.is-primary:active:enabled {
background: rgb(180, 62, 54); background: rgb(180, 62, 54);
border-color: rgb(113, 39, 34); border-color: rgb(180, 62, 54); }
box-shadow: inset 0 1px 0 rgb(113, 39, 34); }
body.admin-color-ectoplasm .components-button.is-primary:active:enabled { body.admin-color-ectoplasm .components-button.is-primary:active:enabled {
background: rgb(134, 146, 69); background: rgb(134, 146, 69);
border-color: rgb(84, 91, 43); border-color: rgb(134, 146, 69); }
box-shadow: inset 0 1px 0 rgb(84, 91, 43); }
body.admin-color-coffee .components-button.is-primary:active:enabled { body.admin-color-coffee .components-button.is-primary:active:enabled {
background: rgb(155, 133, 112); background: rgb(155, 133, 112);
border-color: rgb(97, 83, 70); border-color: rgb(155, 133, 112); }
box-shadow: inset 0 1px 0 rgb(97, 83, 70); }
body.admin-color-blue .components-button.is-primary:active:enabled { body.admin-color-blue .components-button.is-primary:active:enabled {
background: rgb(174, 137, 71); background: rgb(174, 137, 71);
border-color: rgb(109, 86, 45); border-color: rgb(174, 137, 71); }
box-shadow: inset 0 1px 0 rgb(109, 86, 45); }
body.admin-color-light .components-button.is-primary:active:enabled { body.admin-color-light .components-button.is-primary:active:enabled {
background: rgb(0, 106, 149); background: rgb(0, 106, 149);
border-color: rgb(0, 67, 93); border-color: rgb(0, 106, 149); }
box-shadow: inset 0 1px 0 rgb(0, 67, 93); } .components-button.is-primary:disabled, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary[aria-disabled="true"], .components-button.is-primary[aria-disabled="true"]:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled {
.components-button.is-primary:disabled, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary[aria-disabled="true"], .components-button.is-primary[aria-disabled="true"]:active:enabled { color: rgb(102, 176, 214);
color: rgb(102, 182, 214); background: rgb(25, 137, 193);
background: rgb(0, 133, 186); border-color: rgb(25, 137, 193);
border-color: rgb(0, 124, 173);
box-shadow: none;
text-shadow: none;
opacity: 1; } opacity: 1; }
body.admin-color-sunrise .components-button.is-primary:disabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"], body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-sunrise .components-button.is-primary:disabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"], body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(227, 182, 146); color: rgb(227, 182, 146);
background: rgb(209, 134, 74); background: rgb(214, 146, 92);
border-color: rgb(194, 125, 69); } border-color: rgb(214, 146, 92); }
body.admin-color-ocean .components-button.is-primary:disabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"], body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-ocean .components-button.is-primary:disabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"], body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(200, 213, 199); color: rgb(200, 213, 199);
background: rgb(163, 185, 162); background: rgb(172, 192, 171);
border-color: rgb(152, 172, 151); } border-color: rgb(172, 192, 171); }
body.admin-color-midnight .components-button.is-primary:disabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"], body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-midnight .components-button.is-primary:disabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"], body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(237, 148, 142); color: rgb(237, 148, 142);
background: rgb(225, 77, 67); background: rgb(228, 95, 86);
border-color: rgb(209, 72, 62); } border-color: rgb(228, 95, 86); }
body.admin-color-ectoplasm .components-button.is-primary:disabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"], body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-ectoplasm .components-button.is-primary:disabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"], body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(202, 211, 154); color: rgb(202, 211, 154);
background: rgb(167, 182, 86); background: rgb(176, 189, 103);
border-color: rgb(155, 169, 80); } border-color: rgb(176, 189, 103); }
body.admin-color-coffee .components-button.is-primary:disabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"], body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-coffee .components-button.is-primary:disabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"], body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(218, 202, 186); color: rgb(218, 202, 186);
background: rgb(194, 166, 140); background: rgb(200, 175, 152);
border-color: rgb(180, 154, 130); } border-color: rgb(200, 175, 152); }
body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"], body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"], body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(232, 205, 155); color: rgb(232, 205, 155);
background: rgb(217, 171, 89); background: rgb(221, 179, 106);
border-color: rgb(202, 159, 83); } border-color: rgb(221, 179, 106); }
body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(102, 182, 214); color: rgb(102, 182, 214);
background: rgb(0, 133, 186); background: rgb(25, 145, 193);
border-color: rgb(0, 124, 173); } border-color: rgb(25, 145, 193); }
.components-button.is-primary:disabled.is-button, .components-button.is-primary:disabled.is-button:hover, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary:disabled:active:enabled.is-button, .components-button.is-primary:disabled:active:enabled.is-button:hover, .components-button.is-primary:disabled:active:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"].is-button, .components-button.is-primary[aria-disabled="true"].is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled:active:enabled { .components-button.is-primary:disabled.is-button, .components-button.is-primary:disabled.is-button:hover, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary:disabled:active:enabled.is-button, .components-button.is-primary:disabled:active:enabled.is-button:hover, .components-button.is-primary:disabled:active:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"].is-button, .components-button.is-primary[aria-disabled="true"].is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled, .components-button.is-primary[aria-disabled="true"]:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled:active:enabled {
box-shadow: none; box-shadow: none;
text-shadow: none; } text-shadow: none; }
.components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { .components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(102, 182, 214); box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); }
border-color: rgb(0, 124, 173); body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); }
body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(227, 182, 146); box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); }
border-color: rgb(194, 125, 69); } body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); }
color: rgb(200, 213, 199); body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
border-color: rgb(152, 172, 151); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); }
body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(237, 148, 142); box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); }
border-color: rgb(209, 72, 62); } body.admin-color-blue .components-button.is-primary:disabled:focus:enabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); }
color: rgb(202, 211, 154); body.admin-color-light .components-button.is-primary:disabled:focus:enabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
border-color: rgb(155, 169, 80); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); }
body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(218, 202, 186);
border-color: rgb(180, 154, 130); }
body.admin-color-blue .components-button.is-primary:disabled:focus:enabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(232, 205, 155);
border-color: rgb(202, 159, 83); }
body.admin-color-light .components-button.is-primary:disabled:focus:enabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(102, 182, 214);
border-color: rgb(0, 124, 173); }
.components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled="true"] { .components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled="true"] {
color: #fff; color: #fff;
background-size: 100px 100%; background-size: 100px 100%;
/* stylelint-disable */ /* stylelint-disable */
background-image: linear-gradient(45deg, #0085ba 28%, rgb(0, 93, 130) 28%, rgb(0, 93, 130) 72%, #0085ba 72%); background-image: linear-gradient(45deg, #007cba 28%, rgb(0, 99, 149) 28%, rgb(0, 99, 149) 72%, #007cba 72%);
/* stylelint-enable */ /* stylelint-enable */
border-color: rgb(0, 67, 93); } border-color: rgb(0, 124, 186); }
body.admin-color-sunrise .components-button.is-primary.is-busy, body.admin-color-sunrise .components-button.is-primary.is-busy:disabled, body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-sunrise .components-button.is-primary.is-busy, body.admin-color-sunrise .components-button.is-primary.is-busy:disabled, body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(45deg, #d1864a 28%, rgb(146, 94, 52) 28%, rgb(146, 94, 52) 72%, #d1864a 72%); background-image: linear-gradient(45deg, #d1864a 28%, rgb(167, 107, 59) 28%, rgb(167, 107, 59) 72%, #d1864a 72%);
border-color: rgb(105, 67, 37); } border-color: rgb(209, 134, 74); }
body.admin-color-ocean .components-button.is-primary.is-busy, body.admin-color-ocean .components-button.is-primary.is-busy:disabled, body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-ocean .components-button.is-primary.is-busy, body.admin-color-ocean .components-button.is-primary.is-busy:disabled, body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(45deg, #a3b9a2 28%, rgb(114, 130, 113) 28%, rgb(114, 130, 113) 72%, #a3b9a2 72%); background-image: linear-gradient(45deg, #a3b9a2 28%, rgb(130, 148, 130) 28%, rgb(130, 148, 130) 72%, #a3b9a2 72%);
border-color: rgb(82, 93, 81); } border-color: rgb(163, 185, 162); }
body.admin-color-midnight .components-button.is-primary.is-busy, body.admin-color-midnight .components-button.is-primary.is-busy:disabled, body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-midnight .components-button.is-primary.is-busy, body.admin-color-midnight .components-button.is-primary.is-busy:disabled, body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(45deg, #e14d43 28%, rgb(158, 54, 47) 28%, rgb(158, 54, 47) 72%, #e14d43 72%); background-image: linear-gradient(45deg, #e14d43 28%, rgb(180, 62, 54) 28%, rgb(180, 62, 54) 72%, #e14d43 72%);
border-color: rgb(113, 39, 34); } border-color: rgb(225, 77, 67); }
body.admin-color-ectoplasm .components-button.is-primary.is-busy, body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled, body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-ectoplasm .components-button.is-primary.is-busy, body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled, body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(45deg, #a7b656 28%, rgb(117, 127, 60) 28%, rgb(117, 127, 60) 72%, #a7b656 72%); background-image: linear-gradient(45deg, #a7b656 28%, rgb(134, 146, 69) 28%, rgb(134, 146, 69) 72%, #a7b656 72%);
border-color: rgb(84, 91, 43); } border-color: rgb(167, 182, 86); }
body.admin-color-coffee .components-button.is-primary.is-busy, body.admin-color-coffee .components-button.is-primary.is-busy:disabled, body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-coffee .components-button.is-primary.is-busy, body.admin-color-coffee .components-button.is-primary.is-busy:disabled, body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(45deg, #c2a68c 28%, rgb(136, 116, 98) 28%, rgb(136, 116, 98) 72%, #c2a68c 72%); background-image: linear-gradient(45deg, #c2a68c 28%, rgb(155, 133, 112) 28%, rgb(155, 133, 112) 72%, #c2a68c 72%);
border-color: rgb(97, 83, 70); } border-color: rgb(194, 166, 140); }
body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-blue .components-button.is-primary.is-busy:disabled, body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-blue .components-button.is-primary.is-busy:disabled, body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(45deg, #82b4cb 28%, rgb(91, 126, 142) 28%, rgb(91, 126, 142) 72%, #82b4cb 72%); background-image: linear-gradient(45deg, #d9ab59 28%, rgb(174, 137, 71) 28%, rgb(174, 137, 71) 72%, #d9ab59 72%);
border-color: rgb(65, 90, 102); } border-color: rgb(217, 171, 89); }
body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(45deg, #0085ba 28%, rgb(0, 93, 130) 28%, rgb(0, 93, 130) 72%, #0085ba 72%); background-image: linear-gradient(45deg, #0085ba 28%, rgb(0, 106, 149) 28%, rgb(0, 106, 149) 72%, #0085ba 72%);
border-color: rgb(0, 67, 93); } border-color: rgb(0, 133, 186); }
.components-button.is-link { .components-button.is-link {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -580,7 +615,6 @@ svg.dashicon.components-checkbox-control__checked {
width: 31px; width: 31px;
height: 31px; height: 31px;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
pointer-events: none; } pointer-events: none; }
@ -1230,7 +1264,6 @@ svg.dashicon {
text-align: center; text-align: center;
vertical-align: top; vertical-align: top;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -1306,7 +1339,6 @@ svg.dashicon {
.DayPickerNavigation_button { .DayPickerNavigation_button {
cursor: pointer; cursor: pointer;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
border: 0; border: 0;
@ -1503,7 +1535,6 @@ svg.dashicon {
.DateInput_input__readOnly { .DateInput_input__readOnly {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -1811,7 +1842,6 @@ svg.dashicon {
font-size: 11px; font-size: 11px;
font-weight: 600; } font-weight: 600; }
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select {
padding: 2px;
margin-left: 4px; } margin-left: 4px; }
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus {
position: relative; position: relative;
@ -1819,7 +1849,6 @@ svg.dashicon {
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"] { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"] {
padding: 2px; padding: 2px;
margin-left: 4px; margin-left: 4px;
width: 40px;
text-align: center; text-align: center;
-moz-appearance: textfield; } -moz-appearance: textfield; }
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]:focus { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]:focus {
@ -1851,7 +1880,7 @@ svg.dashicon {
width: 55px; } width: 55px; }
.components-datetime__time-field-month-select { .components-datetime__time-field-month-select {
width: 90px; } max-width: 145px; }
.components-popover .components-datetime__date { .components-popover .components-datetime__date {
padding-right: 4px; } padding-right: 4px; }
@ -2073,7 +2102,6 @@ body.is-dragging-components-draggable {
max-width: 100%; max-width: 100%;
width: auto; width: auto;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -2892,6 +2920,7 @@ body.is-dragging-components-draggable {
flex-direction: column; } flex-direction: column; }
.components-placeholder__input { .components-placeholder__input {
margin-top: 0;
margin-left: 8px; margin-left: 8px;
flex: 1 1 auto; } flex: 1 1 auto; }
@ -3360,7 +3389,6 @@ body.lockscroll {
@media (min-width: 600px) { @media (min-width: 600px) {
.components-snackbar { .components-snackbar {
width: -webkit-fit-content; width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content; } } width: fit-content; } }
.components-snackbar:hover { .components-snackbar:hover {
background-color: #191e23; } background-color: #191e23; }

File diff suppressed because one or more lines are too long

View File

@ -163,269 +163,304 @@
cursor: pointer; cursor: pointer;
-webkit-appearance: none; -webkit-appearance: none;
background: none; background: none;
transition: box-shadow 0.1s linear;
/* Buttons that look like links, for a cross of good semantics with the visual */ /* Buttons that look like links, for a cross of good semantics with the visual */
/* Link buttons that are red to indicate destructive behavior. */ } /* Link buttons that are red to indicate destructive behavior. */ }
@media (prefers-reduced-motion: reduce) {
.components-button {
transition-duration: 0s; } }
.components-button.is-button { .components-button.is-button {
padding: 0 10px 1px; padding: 0 10px;
line-height: 26px; line-height: 2;
height: 28px; height: 28px;
border-radius: 3px; border-radius: 3px;
white-space: nowrap; white-space: nowrap;
border-width: 1px; border-width: 1px;
border-style: solid; } border-style: solid; }
.components-button.is-default { .components-button.is-default {
color: #555; color: rgb(0, 117, 175);
border-color: #ccc; border-color: rgb(0, 117, 175);
background: #f7f7f7; background: #f3f5f6; }
box-shadow: inset 0 -1px 0 #ccc; body.admin-color-sunrise .components-button.is-default {
vertical-align: top; } color: rgb(196, 126, 70);
border-color: rgb(196, 126, 70); }
body.admin-color-ocean .components-button.is-default {
color: rgb(153, 174, 152);
border-color: rgb(153, 174, 152); }
body.admin-color-midnight .components-button.is-default {
color: rgb(212, 72, 63);
border-color: rgb(212, 72, 63); }
body.admin-color-ectoplasm .components-button.is-default {
color: rgb(157, 171, 81);
border-color: rgb(157, 171, 81); }
body.admin-color-coffee .components-button.is-default {
color: rgb(182, 156, 132);
border-color: rgb(182, 156, 132); }
body.admin-color-blue .components-button.is-default {
color: rgb(204, 161, 84);
border-color: rgb(204, 161, 84); }
body.admin-color-light .components-button.is-default {
color: rgb(0, 125, 175);
border-color: rgb(0, 125, 175); }
.components-button.is-default:hover { .components-button.is-default:hover {
background: #fafafa; background: #f1f1f1;
border-color: #999; border-color: rgb(0, 93, 140);
box-shadow: inset 0 -1px 0 #999; color: rgb(0, 93, 140);
color: #23282d;
text-decoration: none; } text-decoration: none; }
body.admin-color-sunrise .components-button.is-default:hover {
border-color: rgb(157, 101, 56);
color: rgb(157, 101, 56); }
body.admin-color-ocean .components-button.is-default:hover {
border-color: rgb(122, 139, 122);
color: rgb(122, 139, 122); }
body.admin-color-midnight .components-button.is-default:hover {
border-color: rgb(169, 58, 50);
color: rgb(169, 58, 50); }
body.admin-color-ectoplasm .components-button.is-default:hover {
border-color: rgb(125, 137, 65);
color: rgb(125, 137, 65); }
body.admin-color-coffee .components-button.is-default:hover {
border-color: rgb(146, 125, 105);
color: rgb(146, 125, 105); }
body.admin-color-blue .components-button.is-default:hover {
border-color: rgb(163, 128, 67);
color: rgb(163, 128, 67); }
body.admin-color-light .components-button.is-default:hover {
border-color: rgb(0, 100, 140);
color: rgb(0, 100, 140); }
.components-button.is-default:focus:enabled { .components-button.is-default:focus:enabled {
background: #fafafa; background: #f3f5f6;
color: #23282d; color: rgb(0, 93, 140);
border-color: #999; border-color: rgb(0, 118, 177);
box-shadow: inset 0 -1px 0 #999, 0 0 0 1px #fff, 0 0 0 3px #007cba; box-shadow: 0 0 0 1px rgb(0, 118, 177);
text-decoration: none; } text-decoration: none; }
body.admin-color-sunrise .components-button.is-default:focus:enabled {
color: rgb(157, 101, 56);
border-color: rgb(199, 127, 70);
box-shadow: 0 0 0 1px rgb(199, 127, 70); }
body.admin-color-ocean .components-button.is-default:focus:enabled {
color: rgb(122, 139, 122);
border-color: rgb(155, 176, 154);
box-shadow: 0 0 0 1px rgb(155, 176, 154); }
body.admin-color-midnight .components-button.is-default:focus:enabled {
color: rgb(169, 58, 50);
border-color: rgb(214, 73, 64);
box-shadow: 0 0 0 1px rgb(214, 73, 64); }
body.admin-color-ectoplasm .components-button.is-default:focus:enabled {
color: rgb(125, 137, 65);
border-color: rgb(159, 173, 82);
box-shadow: 0 0 0 1px rgb(159, 173, 82); }
body.admin-color-coffee .components-button.is-default:focus:enabled {
color: rgb(146, 125, 105);
border-color: rgb(184, 158, 133);
box-shadow: 0 0 0 1px rgb(184, 158, 133); }
body.admin-color-blue .components-button.is-default:focus:enabled {
color: rgb(163, 128, 67);
border-color: rgb(206, 162, 85);
box-shadow: 0 0 0 1px rgb(206, 162, 85); }
body.admin-color-light .components-button.is-default:focus:enabled {
color: rgb(0, 100, 140);
border-color: rgb(0, 126, 177);
box-shadow: 0 0 0 1px rgb(0, 126, 177); }
.components-button.is-default:active:enabled { .components-button.is-default:active:enabled {
background: #eee; background: #f3f5f6;
border-color: #999; color: rgb(0, 118, 177);
box-shadow: inset 0 1px 0 #999; } border-color: #7e8993;
box-shadow: none; }
body.admin-color-sunrise .components-button.is-default:active:enabled {
color: rgb(199, 127, 70); }
body.admin-color-ocean .components-button.is-default:active:enabled {
color: rgb(155, 176, 154); }
body.admin-color-midnight .components-button.is-default:active:enabled {
color: rgb(214, 73, 64); }
body.admin-color-ectoplasm .components-button.is-default:active:enabled {
color: rgb(159, 173, 82); }
body.admin-color-coffee .components-button.is-default:active:enabled {
color: rgb(184, 158, 133); }
body.admin-color-blue .components-button.is-default:active:enabled {
color: rgb(206, 162, 85); }
body.admin-color-light .components-button.is-default:active:enabled {
color: rgb(0, 126, 177); }
.components-button.is-default:disabled, .components-button.is-default[aria-disabled="true"] { .components-button.is-default:disabled, .components-button.is-default[aria-disabled="true"] {
color: #a0a5aa; color: #a0a5aa;
border-color: #ddd; border-color: #ddd;
background: #f7f7f7; background: #f7f7f7;
box-shadow: none;
text-shadow: 0 1px 0 #fff; text-shadow: 0 1px 0 #fff;
transform: none; transform: none;
opacity: 1; } opacity: 1; }
.components-button.is-primary { .components-button.is-primary {
background: rgb(0, 133, 186); background: rgb(0, 124, 186);
border-color: rgb(0, 106, 149) rgb(0, 100, 140) rgb(0, 100, 140); border-color: rgb(0, 124, 186);
box-shadow: inset 0 -1px 0 rgb(0, 100, 140);
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
text-shadow: 0 -1px 1px rgb(0, 93, 130), 1px 0 1px rgb(0, 93, 130), 0 1px 1px rgb(0, 93, 130), -1px 0 1px rgb(0, 93, 130); } text-shadow: none; }
body.admin-color-sunrise .components-button.is-primary { body.admin-color-sunrise .components-button.is-primary {
background: rgb(209, 134, 74); background: rgb(209, 134, 74);
border-color: rgb(167, 107, 59) rgb(157, 101, 56) rgb(157, 101, 56); border-color: rgb(209, 134, 74); }
box-shadow: inset 0 -1px 0 rgb(157, 101, 56);
text-shadow: 0 -1px 1px rgb(146, 94, 52), 1px 0 1px rgb(146, 94, 52), 0 1px 1px rgb(146, 94, 52), -1px 0 1px rgb(146, 94, 52); }
body.admin-color-ocean .components-button.is-primary { body.admin-color-ocean .components-button.is-primary {
background: rgb(163, 185, 162); background: rgb(163, 185, 162);
border-color: rgb(130, 148, 130) rgb(122, 139, 122) rgb(122, 139, 122); border-color: rgb(163, 185, 162); }
box-shadow: inset 0 -1px 0 rgb(122, 139, 122);
text-shadow: 0 -1px 1px rgb(114, 130, 113), 1px 0 1px rgb(114, 130, 113), 0 1px 1px rgb(114, 130, 113), -1px 0 1px rgb(114, 130, 113); }
body.admin-color-midnight .components-button.is-primary { body.admin-color-midnight .components-button.is-primary {
background: rgb(225, 77, 67); background: rgb(225, 77, 67);
border-color: rgb(180, 62, 54) rgb(169, 58, 50) rgb(169, 58, 50); border-color: rgb(225, 77, 67); }
box-shadow: inset 0 -1px 0 rgb(169, 58, 50);
text-shadow: 0 -1px 1px rgb(158, 54, 47), 1px 0 1px rgb(158, 54, 47), 0 1px 1px rgb(158, 54, 47), -1px 0 1px rgb(158, 54, 47); }
body.admin-color-ectoplasm .components-button.is-primary { body.admin-color-ectoplasm .components-button.is-primary {
background: rgb(167, 182, 86); background: rgb(167, 182, 86);
border-color: rgb(134, 146, 69) rgb(125, 137, 65) rgb(125, 137, 65); border-color: rgb(167, 182, 86); }
box-shadow: inset 0 -1px 0 rgb(125, 137, 65);
text-shadow: 0 -1px 1px rgb(117, 127, 60), 1px 0 1px rgb(117, 127, 60), 0 1px 1px rgb(117, 127, 60), -1px 0 1px rgb(117, 127, 60); }
body.admin-color-coffee .components-button.is-primary { body.admin-color-coffee .components-button.is-primary {
background: rgb(194, 166, 140); background: rgb(194, 166, 140);
border-color: rgb(155, 133, 112) rgb(146, 125, 105) rgb(146, 125, 105); border-color: rgb(194, 166, 140); }
box-shadow: inset 0 -1px 0 rgb(146, 125, 105);
text-shadow: 0 -1px 1px rgb(136, 116, 98), 1px 0 1px rgb(136, 116, 98), 0 1px 1px rgb(136, 116, 98), -1px 0 1px rgb(136, 116, 98); }
body.admin-color-blue .components-button.is-primary { body.admin-color-blue .components-button.is-primary {
background: rgb(217, 171, 89); background: rgb(217, 171, 89);
border-color: rgb(174, 137, 71) rgb(163, 128, 67) rgb(163, 128, 67); border-color: rgb(217, 171, 89); }
box-shadow: inset 0 -1px 0 rgb(163, 128, 67);
text-shadow: 0 -1px 1px rgb(152, 120, 62), 1px 0 1px rgb(152, 120, 62), 0 1px 1px rgb(152, 120, 62), -1px 0 1px rgb(152, 120, 62); }
body.admin-color-light .components-button.is-primary { body.admin-color-light .components-button.is-primary {
background: rgb(0, 133, 186); background: rgb(0, 133, 186);
border-color: rgb(0, 106, 149) rgb(0, 100, 140) rgb(0, 100, 140); border-color: rgb(0, 133, 186); }
box-shadow: inset 0 -1px 0 rgb(0, 100, 140);
text-shadow: 0 -1px 1px rgb(0, 93, 130), 1px 0 1px rgb(0, 93, 130), 0 1px 1px rgb(0, 93, 130), -1px 0 1px rgb(0, 93, 130); }
.components-button.is-primary:hover, .components-button.is-primary:focus:enabled { .components-button.is-primary:hover, .components-button.is-primary:focus:enabled {
background: rgb(0, 126, 177); background: rgb(0, 112, 167);
border-color: rgb(0, 67, 93); border-color: rgb(0, 112, 167);
color: #fff; } color: #fff; }
body.admin-color-sunrise .components-button.is-primary:hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled { body.admin-color-sunrise .components-button.is-primary:hover, body.admin-color-sunrise .components-button.is-primary:focus:enabled {
background: rgb(199, 127, 70); background: rgb(188, 121, 67);
border-color: rgb(105, 67, 37); } border-color: rgb(188, 121, 67); }
body.admin-color-ocean .components-button.is-primary:hover, body.admin-color-ocean .components-button.is-primary:focus:enabled { body.admin-color-ocean .components-button.is-primary:hover, body.admin-color-ocean .components-button.is-primary:focus:enabled {
background: rgb(155, 176, 154); background: rgb(147, 167, 146);
border-color: rgb(82, 93, 81); } border-color: rgb(147, 167, 146); }
body.admin-color-midnight .components-button.is-primary:hover, body.admin-color-midnight .components-button.is-primary:focus:enabled { body.admin-color-midnight .components-button.is-primary:hover, body.admin-color-midnight .components-button.is-primary:focus:enabled {
background: rgb(214, 73, 64); background: rgb(203, 69, 60);
border-color: rgb(113, 39, 34); } border-color: rgb(203, 69, 60); }
body.admin-color-ectoplasm .components-button.is-primary:hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { body.admin-color-ectoplasm .components-button.is-primary:hover, body.admin-color-ectoplasm .components-button.is-primary:focus:enabled {
background: rgb(159, 173, 82); background: rgb(150, 164, 77);
border-color: rgb(84, 91, 43); } border-color: rgb(150, 164, 77); }
body.admin-color-coffee .components-button.is-primary:hover, body.admin-color-coffee .components-button.is-primary:focus:enabled { body.admin-color-coffee .components-button.is-primary:hover, body.admin-color-coffee .components-button.is-primary:focus:enabled {
background: rgb(184, 158, 133); background: rgb(175, 149, 126);
border-color: rgb(97, 83, 70); } border-color: rgb(175, 149, 126); }
body.admin-color-blue .components-button.is-primary:hover, body.admin-color-blue .components-button.is-primary:focus:enabled { body.admin-color-blue .components-button.is-primary:hover, body.admin-color-blue .components-button.is-primary:focus:enabled {
background: rgb(206, 162, 85); background: rgb(195, 154, 80);
border-color: rgb(109, 86, 45); } border-color: rgb(195, 154, 80); }
body.admin-color-light .components-button.is-primary:hover, body.admin-color-light .components-button.is-primary:focus:enabled { body.admin-color-light .components-button.is-primary:hover, body.admin-color-light .components-button.is-primary:focus:enabled {
background: rgb(0, 126, 177); background: rgb(0, 120, 167);
border-color: rgb(0, 67, 93); } border-color: rgb(0, 120, 167); }
.components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93); }
body.admin-color-sunrise .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(105, 67, 37); }
body.admin-color-ocean .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(82, 93, 81); }
body.admin-color-midnight .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(113, 39, 34); }
body.admin-color-ectoplasm .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(84, 91, 43); }
body.admin-color-coffee .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(97, 83, 70); }
body.admin-color-blue .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(109, 86, 45); }
body.admin-color-light .components-button.is-primary:hover {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93); }
.components-button.is-primary:focus:enabled { .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93), 0 0 0 1px #fff, 0 0 0 3px rgb(0, 126, 177); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); }
body.admin-color-sunrise .components-button.is-primary:focus:enabled { body.admin-color-sunrise .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(105, 67, 37), 0 0 0 1px #fff, 0 0 0 3px rgb(199, 127, 70); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); }
body.admin-color-ocean .components-button.is-primary:focus:enabled { body.admin-color-ocean .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(82, 93, 81), 0 0 0 1px #fff, 0 0 0 3px rgb(155, 176, 154); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); }
body.admin-color-midnight .components-button.is-primary:focus:enabled { body.admin-color-midnight .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(113, 39, 34), 0 0 0 1px #fff, 0 0 0 3px rgb(214, 73, 64); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); }
body.admin-color-ectoplasm .components-button.is-primary:focus:enabled { body.admin-color-ectoplasm .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(84, 91, 43), 0 0 0 1px #fff, 0 0 0 3px rgb(159, 173, 82); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); }
body.admin-color-coffee .components-button.is-primary:focus:enabled { body.admin-color-coffee .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(97, 83, 70), 0 0 0 1px #fff, 0 0 0 3px rgb(184, 158, 133); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); }
body.admin-color-blue .components-button.is-primary:focus:enabled { body.admin-color-blue .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(109, 86, 45), 0 0 0 1px #fff, 0 0 0 3px rgb(206, 162, 85); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); }
body.admin-color-light .components-button.is-primary:focus:enabled { body.admin-color-light .components-button.is-primary:focus:enabled {
box-shadow: inset 0 -1px 0 rgb(0, 67, 93), 0 0 0 1px #fff, 0 0 0 3px rgb(0, 126, 177); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); }
.components-button.is-primary:active:enabled { .components-button.is-primary:active:enabled {
background: rgb(0, 106, 149); background: rgb(0, 99, 149);
border-color: rgb(0, 67, 93); border-color: rgb(0, 99, 149);
box-shadow: inset 0 1px 0 rgb(0, 67, 93); color: #fff; }
vertical-align: top; }
body.admin-color-sunrise .components-button.is-primary:active:enabled { body.admin-color-sunrise .components-button.is-primary:active:enabled {
background: rgb(167, 107, 59); background: rgb(167, 107, 59);
border-color: rgb(105, 67, 37); border-color: rgb(167, 107, 59); }
box-shadow: inset 0 1px 0 rgb(105, 67, 37); }
body.admin-color-ocean .components-button.is-primary:active:enabled { body.admin-color-ocean .components-button.is-primary:active:enabled {
background: rgb(130, 148, 130); background: rgb(130, 148, 130);
border-color: rgb(82, 93, 81); border-color: rgb(130, 148, 130); }
box-shadow: inset 0 1px 0 rgb(82, 93, 81); }
body.admin-color-midnight .components-button.is-primary:active:enabled { body.admin-color-midnight .components-button.is-primary:active:enabled {
background: rgb(180, 62, 54); background: rgb(180, 62, 54);
border-color: rgb(113, 39, 34); border-color: rgb(180, 62, 54); }
box-shadow: inset 0 1px 0 rgb(113, 39, 34); }
body.admin-color-ectoplasm .components-button.is-primary:active:enabled { body.admin-color-ectoplasm .components-button.is-primary:active:enabled {
background: rgb(134, 146, 69); background: rgb(134, 146, 69);
border-color: rgb(84, 91, 43); border-color: rgb(134, 146, 69); }
box-shadow: inset 0 1px 0 rgb(84, 91, 43); }
body.admin-color-coffee .components-button.is-primary:active:enabled { body.admin-color-coffee .components-button.is-primary:active:enabled {
background: rgb(155, 133, 112); background: rgb(155, 133, 112);
border-color: rgb(97, 83, 70); border-color: rgb(155, 133, 112); }
box-shadow: inset 0 1px 0 rgb(97, 83, 70); }
body.admin-color-blue .components-button.is-primary:active:enabled { body.admin-color-blue .components-button.is-primary:active:enabled {
background: rgb(174, 137, 71); background: rgb(174, 137, 71);
border-color: rgb(109, 86, 45); border-color: rgb(174, 137, 71); }
box-shadow: inset 0 1px 0 rgb(109, 86, 45); }
body.admin-color-light .components-button.is-primary:active:enabled { body.admin-color-light .components-button.is-primary:active:enabled {
background: rgb(0, 106, 149); background: rgb(0, 106, 149);
border-color: rgb(0, 67, 93); border-color: rgb(0, 106, 149); }
box-shadow: inset 0 1px 0 rgb(0, 67, 93); } .components-button.is-primary:disabled, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary[aria-disabled="true"], .components-button.is-primary[aria-disabled="true"]:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled {
.components-button.is-primary:disabled, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary[aria-disabled="true"], .components-button.is-primary[aria-disabled="true"]:active:enabled { color: rgb(102, 176, 214);
color: rgb(102, 182, 214); background: rgb(25, 137, 193);
background: rgb(0, 133, 186); border-color: rgb(25, 137, 193);
border-color: rgb(0, 124, 173);
box-shadow: none;
text-shadow: none;
opacity: 1; } opacity: 1; }
body.admin-color-sunrise .components-button.is-primary:disabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"], body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-sunrise .components-button.is-primary:disabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"], body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(227, 182, 146); color: rgb(227, 182, 146);
background: rgb(209, 134, 74); background: rgb(214, 146, 92);
border-color: rgb(194, 125, 69); } border-color: rgb(214, 146, 92); }
body.admin-color-ocean .components-button.is-primary:disabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"], body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-ocean .components-button.is-primary:disabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"], body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(200, 213, 199); color: rgb(200, 213, 199);
background: rgb(163, 185, 162); background: rgb(172, 192, 171);
border-color: rgb(152, 172, 151); } border-color: rgb(172, 192, 171); }
body.admin-color-midnight .components-button.is-primary:disabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"], body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-midnight .components-button.is-primary:disabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"], body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(237, 148, 142); color: rgb(237, 148, 142);
background: rgb(225, 77, 67); background: rgb(228, 95, 86);
border-color: rgb(209, 72, 62); } border-color: rgb(228, 95, 86); }
body.admin-color-ectoplasm .components-button.is-primary:disabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"], body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-ectoplasm .components-button.is-primary:disabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"], body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(202, 211, 154); color: rgb(202, 211, 154);
background: rgb(167, 182, 86); background: rgb(176, 189, 103);
border-color: rgb(155, 169, 80); } border-color: rgb(176, 189, 103); }
body.admin-color-coffee .components-button.is-primary:disabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"], body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-coffee .components-button.is-primary:disabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"], body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(218, 202, 186); color: rgb(218, 202, 186);
background: rgb(194, 166, 140); background: rgb(200, 175, 152);
border-color: rgb(180, 154, 130); } border-color: rgb(200, 175, 152); }
body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"], body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-blue .components-button.is-primary:disabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"], body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(232, 205, 155); color: rgb(232, 205, 155);
background: rgb(217, 171, 89); background: rgb(221, 179, 106);
border-color: rgb(202, 159, 83); } border-color: rgb(221, 179, 106); }
body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled { body.admin-color-light .components-button.is-primary:disabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"], body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled {
color: rgb(102, 182, 214); color: rgb(102, 182, 214);
background: rgb(0, 133, 186); background: rgb(25, 145, 193);
border-color: rgb(0, 124, 173); } border-color: rgb(25, 145, 193); }
.components-button.is-primary:disabled.is-button, .components-button.is-primary:disabled.is-button:hover, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary:disabled:active:enabled.is-button, .components-button.is-primary:disabled:active:enabled.is-button:hover, .components-button.is-primary:disabled:active:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"].is-button, .components-button.is-primary[aria-disabled="true"].is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled:active:enabled { .components-button.is-primary:disabled.is-button, .components-button.is-primary:disabled.is-button:hover, .components-button.is-primary:disabled:active:enabled, .components-button.is-primary:disabled:active:enabled.is-button, .components-button.is-primary:disabled:active:enabled.is-button:hover, .components-button.is-primary:disabled:active:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"].is-button, .components-button.is-primary[aria-disabled="true"].is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled, .components-button.is-primary[aria-disabled="true"]:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:enabled:active:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button, .components-button.is-primary[aria-disabled="true"]:active:enabled.is-button:hover, .components-button.is-primary[aria-disabled="true"]:active:enabled:active:enabled {
box-shadow: none; box-shadow: none;
text-shadow: none; } text-shadow: none; }
.components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { .components-button.is-primary:disabled:focus:enabled, .components-button.is-primary:disabled:active:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:focus:enabled, .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(102, 182, 214); box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 124, 186); }
border-color: rgb(0, 124, 173); body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(209, 134, 74); }
body.admin-color-sunrise .components-button.is-primary:disabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-sunrise .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(227, 182, 146); box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(163, 185, 162); }
border-color: rgb(194, 125, 69); } body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
body.admin-color-ocean .components-button.is-primary:disabled:focus:enabled, body.admin-color-ocean .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ocean .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(225, 77, 67); }
color: rgb(200, 213, 199); body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
border-color: rgb(152, 172, 151); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(167, 182, 86); }
body.admin-color-midnight .components-button.is-primary:disabled:focus:enabled, body.admin-color-midnight .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-midnight .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(237, 148, 142); box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(194, 166, 140); }
border-color: rgb(209, 72, 62); } body.admin-color-blue .components-button.is-primary:disabled:focus:enabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
body.admin-color-ectoplasm .components-button.is-primary:disabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-ectoplasm .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled { box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(217, 171, 89); }
color: rgb(202, 211, 154); body.admin-color-light .components-button.is-primary:disabled:focus:enabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
border-color: rgb(155, 169, 80); } box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(0, 133, 186); }
body.admin-color-coffee .components-button.is-primary:disabled:focus:enabled, body.admin-color-coffee .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-coffee .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(218, 202, 186);
border-color: rgb(180, 154, 130); }
body.admin-color-blue .components-button.is-primary:disabled:focus:enabled, body.admin-color-blue .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-blue .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(232, 205, 155);
border-color: rgb(202, 159, 83); }
body.admin-color-light .components-button.is-primary:disabled:focus:enabled, body.admin-color-light .components-button.is-primary:disabled:active:enabled:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:focus:enabled, body.admin-color-light .components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
color: rgb(102, 182, 214);
border-color: rgb(0, 124, 173); }
.components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled="true"] { .components-button.is-primary.is-busy, .components-button.is-primary.is-busy:disabled, .components-button.is-primary.is-busy[aria-disabled="true"] {
color: #fff; color: #fff;
background-size: 100px 100%; background-size: 100px 100%;
/* stylelint-disable */ /* stylelint-disable */
background-image: linear-gradient(-45deg, #0085ba 28%, rgb(0, 93, 130) 28%, rgb(0, 93, 130) 72%, #0085ba 72%); background-image: linear-gradient(-45deg, #007cba 28%, rgb(0, 99, 149) 28%, rgb(0, 99, 149) 72%, #007cba 72%);
/* stylelint-enable */ /* stylelint-enable */
border-color: rgb(0, 67, 93); } border-color: rgb(0, 124, 186); }
body.admin-color-sunrise .components-button.is-primary.is-busy, body.admin-color-sunrise .components-button.is-primary.is-busy:disabled, body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-sunrise .components-button.is-primary.is-busy, body.admin-color-sunrise .components-button.is-primary.is-busy:disabled, body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(-45deg, #d1864a 28%, rgb(146, 94, 52) 28%, rgb(146, 94, 52) 72%, #d1864a 72%); background-image: linear-gradient(-45deg, #d1864a 28%, rgb(167, 107, 59) 28%, rgb(167, 107, 59) 72%, #d1864a 72%);
border-color: rgb(105, 67, 37); } border-color: rgb(209, 134, 74); }
body.admin-color-ocean .components-button.is-primary.is-busy, body.admin-color-ocean .components-button.is-primary.is-busy:disabled, body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-ocean .components-button.is-primary.is-busy, body.admin-color-ocean .components-button.is-primary.is-busy:disabled, body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(-45deg, #a3b9a2 28%, rgb(114, 130, 113) 28%, rgb(114, 130, 113) 72%, #a3b9a2 72%); background-image: linear-gradient(-45deg, #a3b9a2 28%, rgb(130, 148, 130) 28%, rgb(130, 148, 130) 72%, #a3b9a2 72%);
border-color: rgb(82, 93, 81); } border-color: rgb(163, 185, 162); }
body.admin-color-midnight .components-button.is-primary.is-busy, body.admin-color-midnight .components-button.is-primary.is-busy:disabled, body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-midnight .components-button.is-primary.is-busy, body.admin-color-midnight .components-button.is-primary.is-busy:disabled, body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(-45deg, #e14d43 28%, rgb(158, 54, 47) 28%, rgb(158, 54, 47) 72%, #e14d43 72%); background-image: linear-gradient(-45deg, #e14d43 28%, rgb(180, 62, 54) 28%, rgb(180, 62, 54) 72%, #e14d43 72%);
border-color: rgb(113, 39, 34); } border-color: rgb(225, 77, 67); }
body.admin-color-ectoplasm .components-button.is-primary.is-busy, body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled, body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-ectoplasm .components-button.is-primary.is-busy, body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled, body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(-45deg, #a7b656 28%, rgb(117, 127, 60) 28%, rgb(117, 127, 60) 72%, #a7b656 72%); background-image: linear-gradient(-45deg, #a7b656 28%, rgb(134, 146, 69) 28%, rgb(134, 146, 69) 72%, #a7b656 72%);
border-color: rgb(84, 91, 43); } border-color: rgb(167, 182, 86); }
body.admin-color-coffee .components-button.is-primary.is-busy, body.admin-color-coffee .components-button.is-primary.is-busy:disabled, body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-coffee .components-button.is-primary.is-busy, body.admin-color-coffee .components-button.is-primary.is-busy:disabled, body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(-45deg, #c2a68c 28%, rgb(136, 116, 98) 28%, rgb(136, 116, 98) 72%, #c2a68c 72%); background-image: linear-gradient(-45deg, #c2a68c 28%, rgb(155, 133, 112) 28%, rgb(155, 133, 112) 72%, #c2a68c 72%);
border-color: rgb(97, 83, 70); } border-color: rgb(194, 166, 140); }
body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-blue .components-button.is-primary.is-busy:disabled, body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-blue .components-button.is-primary.is-busy, body.admin-color-blue .components-button.is-primary.is-busy:disabled, body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(-45deg, #82b4cb 28%, rgb(91, 126, 142) 28%, rgb(91, 126, 142) 72%, #82b4cb 72%); background-image: linear-gradient(-45deg, #d9ab59 28%, rgb(174, 137, 71) 28%, rgb(174, 137, 71) 72%, #d9ab59 72%);
border-color: rgb(65, 90, 102); } border-color: rgb(217, 171, 89); }
body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] { body.admin-color-light .components-button.is-primary.is-busy, body.admin-color-light .components-button.is-primary.is-busy:disabled, body.admin-color-light .components-button.is-primary.is-busy[aria-disabled="true"] {
background-image: linear-gradient(-45deg, #0085ba 28%, rgb(0, 93, 130) 28%, rgb(0, 93, 130) 72%, #0085ba 72%); background-image: linear-gradient(-45deg, #0085ba 28%, rgb(0, 106, 149) 28%, rgb(0, 106, 149) 72%, #0085ba 72%);
border-color: rgb(0, 67, 93); } border-color: rgb(0, 133, 186); }
.components-button.is-link { .components-button.is-link {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -580,7 +615,6 @@ svg.dashicon.components-checkbox-control__checked {
width: 31px; width: 31px;
height: 31px; height: 31px;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
pointer-events: none; } pointer-events: none; }
@ -1236,7 +1270,6 @@ svg.dashicon {
text-align: center; text-align: center;
vertical-align: top; vertical-align: top;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -1312,7 +1345,6 @@ svg.dashicon {
.DayPickerNavigation_button { .DayPickerNavigation_button {
cursor: pointer; cursor: pointer;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
border: 0; border: 0;
@ -1509,7 +1541,6 @@ svg.dashicon {
.DateInput_input__readOnly { .DateInput_input__readOnly {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -1820,7 +1851,6 @@ svg.dashicon {
font-size: 11px; font-size: 11px;
font-weight: 600; } font-weight: 600; }
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select {
padding: 2px;
margin-right: 4px; } margin-right: 4px; }
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus {
position: relative; position: relative;
@ -1828,7 +1858,6 @@ svg.dashicon {
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"] { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"] {
padding: 2px; padding: 2px;
margin-right: 4px; margin-right: 4px;
width: 40px;
text-align: center; text-align: center;
-moz-appearance: textfield; } -moz-appearance: textfield; }
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]:focus { .components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type="number"]:focus {
@ -1860,7 +1889,7 @@ svg.dashicon {
width: 55px; } width: 55px; }
.components-datetime__time-field-month-select { .components-datetime__time-field-month-select {
width: 90px; } max-width: 145px; }
.components-popover .components-datetime__date { .components-popover .components-datetime__date {
padding-left: 4px; } padding-left: 4px; }
@ -2082,7 +2111,6 @@ body.is-dragging-components-draggable {
max-width: 100%; max-width: 100%;
width: auto; width: auto;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; } user-select: none; }
@ -2903,6 +2931,7 @@ body.is-dragging-components-draggable {
flex-direction: column; } flex-direction: column; }
.components-placeholder__input { .components-placeholder__input {
margin-top: 0;
margin-right: 8px; margin-right: 8px;
flex: 1 1 auto; } flex: 1 1 auto; }
@ -3379,7 +3408,6 @@ body.lockscroll {
@media (min-width: 600px) { @media (min-width: 600px) {
.components-snackbar { .components-snackbar {
width: -webkit-fit-content; width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content; } } width: fit-content; } }
.components-snackbar:hover { .components-snackbar:hover {
background-color: #191e23; } background-color: #191e23; }

File diff suppressed because one or more lines are too long

View File

@ -41,9 +41,7 @@
@media (min-width: 782px) { @media (min-width: 782px) {
body.js.is-fullscreen-mode { body.js.is-fullscreen-mode {
margin-top: -46px; margin-top: -46px;
height: calc(100% + 46px); height: calc(100% + 46px); } }
animation: edit-post__fade-in-animation 0.3s ease-out 0s;
animation-fill-mode: forwards; } }
@media (min-width: 782px) and (min-width: 782px) { @media (min-width: 782px) and (min-width: 782px) {
body.js.is-fullscreen-mode { body.js.is-fullscreen-mode {
margin-top: -32px; margin-top: -32px;
@ -55,12 +53,7 @@
display: none; } display: none; }
body.js.is-fullscreen-mode #wpcontent, body.js.is-fullscreen-mode #wpcontent,
body.js.is-fullscreen-mode #wpfooter { body.js.is-fullscreen-mode #wpfooter {
margin-right: 0; } } margin-right: 0; }
@media (min-width: 782px) and (prefers-reduced-motion: reduce) {
body.js.is-fullscreen-mode {
animation-duration: 1ms; } }
@media (min-width: 782px) {
body.js.is-fullscreen-mode .edit-post-header { body.js.is-fullscreen-mode .edit-post-header {
transform: translateY(-100%); transform: translateY(-100%);
animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } } animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } }
@ -459,6 +452,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
overflow: auto; } overflow: auto; }
@media (min-width: 782px) { @media (min-width: 782px) {
.edit-post-layout .editor-post-publish-panel { .edit-post-layout .editor-post-publish-panel {
z-index: 99998;
top: 32px; top: 32px;
right: auto; right: auto;
width: 280px; width: 280px;
@ -1394,7 +1388,9 @@ body.block-editor-page {
border-radius: 4px; border-radius: 4px;
border: 1px solid #7e8993; border: 1px solid #7e8993;
/* Fonts smaller than 16px causes mobile safari to zoom. */ /* Fonts smaller than 16px causes mobile safari to zoom. */
font-size: 16px; } font-size: 16px;
/* Override core line-height. To be reviewed. */
line-height: normal; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
.edit-post-header .input-control, .edit-post-header .input-control,
.edit-post-header input[type="text"], .edit-post-header input[type="text"],
@ -1664,7 +1660,9 @@ body.block-editor-page {
.components-modal__frame input[type="number"], .components-modal__frame input[type="number"],
.components-modal__frame select, .components-modal__frame select,
.components-modal__frame textarea { .components-modal__frame textarea {
font-size: 13px; } } font-size: 13px;
/* Override core line-height. To be reviewed. */
line-height: normal; } }
.edit-post-header .input-control:focus, .edit-post-header .input-control:focus,
.edit-post-header input[type="text"]:focus, .edit-post-header input[type="text"]:focus,
.edit-post-header input[type="search"]:focus, .edit-post-header input[type="search"]:focus,
@ -2035,6 +2033,8 @@ body.block-editor-page {
.editor-post-publish-panel input[type="radio"]:checked::before, .editor-post-publish-panel input[type="radio"]:checked::before,
.components-popover input[type="radio"]:checked::before, .components-popover input[type="radio"]:checked::before,
.components-modal__frame input[type="radio"]:checked::before { .components-modal__frame input[type="radio"]:checked::before {
width: 6px;
height: 6px;
margin: 6px 6px 0 0; margin: 6px 6px 0 0;
background-color: #fff; } background-color: #fff; }
@media (min-width: 782px) { @media (min-width: 782px) {

File diff suppressed because one or more lines are too long

View File

@ -41,9 +41,7 @@
@media (min-width: 782px) { @media (min-width: 782px) {
body.js.is-fullscreen-mode { body.js.is-fullscreen-mode {
margin-top: -46px; margin-top: -46px;
height: calc(100% + 46px); height: calc(100% + 46px); } }
animation: edit-post__fade-in-animation 0.3s ease-out 0s;
animation-fill-mode: forwards; } }
@media (min-width: 782px) and (min-width: 782px) { @media (min-width: 782px) and (min-width: 782px) {
body.js.is-fullscreen-mode { body.js.is-fullscreen-mode {
margin-top: -32px; margin-top: -32px;
@ -55,12 +53,7 @@
display: none; } display: none; }
body.js.is-fullscreen-mode #wpcontent, body.js.is-fullscreen-mode #wpcontent,
body.js.is-fullscreen-mode #wpfooter { body.js.is-fullscreen-mode #wpfooter {
margin-left: 0; } } margin-left: 0; }
@media (min-width: 782px) and (prefers-reduced-motion: reduce) {
body.js.is-fullscreen-mode {
animation-duration: 1ms; } }
@media (min-width: 782px) {
body.js.is-fullscreen-mode .edit-post-header { body.js.is-fullscreen-mode .edit-post-header {
transform: translateY(-100%); transform: translateY(-100%);
animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } } animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } }
@ -459,6 +452,7 @@ body.is-fullscreen-mode .edit-post-layout__content .components-editor-notices__s
overflow: auto; } overflow: auto; }
@media (min-width: 782px) { @media (min-width: 782px) {
.edit-post-layout .editor-post-publish-panel { .edit-post-layout .editor-post-publish-panel {
z-index: 99998;
top: 32px; top: 32px;
left: auto; left: auto;
width: 280px; width: 280px;
@ -1398,7 +1392,9 @@ body.block-editor-page {
border-radius: 4px; border-radius: 4px;
border: 1px solid #7e8993; border: 1px solid #7e8993;
/* Fonts smaller than 16px causes mobile safari to zoom. */ /* Fonts smaller than 16px causes mobile safari to zoom. */
font-size: 16px; } font-size: 16px;
/* Override core line-height. To be reviewed. */
line-height: normal; }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
.edit-post-header .input-control, .edit-post-header .input-control,
.edit-post-header input[type="text"], .edit-post-header input[type="text"],
@ -1668,7 +1664,9 @@ body.block-editor-page {
.components-modal__frame input[type="number"], .components-modal__frame input[type="number"],
.components-modal__frame select, .components-modal__frame select,
.components-modal__frame textarea { .components-modal__frame textarea {
font-size: 13px; } } font-size: 13px;
/* Override core line-height. To be reviewed. */
line-height: normal; } }
.edit-post-header .input-control:focus, .edit-post-header .input-control:focus,
.edit-post-header input[type="text"]:focus, .edit-post-header input[type="text"]:focus,
.edit-post-header input[type="search"]:focus, .edit-post-header input[type="search"]:focus,
@ -2039,6 +2037,8 @@ body.block-editor-page {
.editor-post-publish-panel input[type="radio"]:checked::before, .editor-post-publish-panel input[type="radio"]:checked::before,
.components-popover input[type="radio"]:checked::before, .components-popover input[type="radio"]:checked::before,
.components-modal__frame input[type="radio"]:checked::before { .components-modal__frame input[type="radio"]:checked::before {
width: 6px;
height: 6px;
margin: 6px 0 0 6px; margin: 6px 0 0 6px;
background-color: #fff; } background-color: #fff; }
@media (min-width: 782px) { @media (min-width: 782px) {

File diff suppressed because one or more lines are too long

View File

@ -380,7 +380,6 @@
position: absolute; position: absolute;
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
pointer-events: none; pointer-events: none;
@ -508,9 +507,6 @@
.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft { .edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft {
margin: 0; } margin: 0; }
@media (min-width: 600px) {
.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon {
display: none; } }
.editor-post-taxonomies__hierarchical-terms-list { .editor-post-taxonomies__hierarchical-terms-list {
max-height: 14em; max-height: 14em;
@ -520,9 +516,6 @@
.editor-post-taxonomies__hierarchical-terms-choice { .editor-post-taxonomies__hierarchical-terms-choice {
margin-bottom: 8px; } margin-bottom: 8px; }
.editor-post-taxonomies__hierarchical-terms-input[type="checkbox"] {
margin-top: 0; }
.editor-post-taxonomies__hierarchical-terms-subchoices { .editor-post-taxonomies__hierarchical-terms-subchoices {
margin-top: 8px; margin-top: 8px;
margin-right: 16px; } margin-right: 16px; }
@ -618,31 +611,32 @@ body.admin-color-light .editor-post-text-editor__link{
.editor-post-text-editor__del { .editor-post-text-editor__del {
text-decoration: line-through; } text-decoration: line-through; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset { .edit-post-post-visibility__dialog,
.editor-post-visibility__dialog-fieldset {
padding: 4px; padding: 4px;
padding-top: 0; } padding-top: 0; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend {
font-weight: 600; font-weight: 600;
margin-bottom: 1em; margin-bottom: 1em;
margin-top: 0.5em; margin-top: 0.5em;
padding: 0; } padding: 0; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio {
margin-top: 2px; } margin-top: 2px; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label {
font-weight: 600; } font-weight: 600; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info {
margin-top: 0; margin-top: 0;
margin-right: 28px; } margin-right: 28px; }
.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,
.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info { .editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info {
margin-bottom: 0; } margin-bottom: 0; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input {
margin-right: 28px; } margin-right: 28px; }
.edit-post-post-visibility__dialog.components-popover.is-bottom { .edit-post-post-visibility__dialog.components-popover.is-bottom {
z-index: 100001; } z-index: 100001; }
@ -737,10 +731,12 @@ body.admin-color-light .editor-post-text-editor__link{
.editor-post-trash.components-button { .editor-post-trash.components-button {
width: 100%; width: 100%;
color: #c92c2c; color: #b52727;
border-color: #b52727;
justify-content: center; } justify-content: center; }
.editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus { .editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus {
color: #b52727; } color: #a02222;
border-color: #a02222; }
.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content { .table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content {
min-width: 380px; } min-width: 380px; }

File diff suppressed because one or more lines are too long

View File

@ -382,7 +382,6 @@
position: absolute; position: absolute;
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
pointer-events: none; pointer-events: none;
@ -512,9 +511,6 @@
.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft { .edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft {
margin: 0; } margin: 0; }
@media (min-width: 600px) {
.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon {
display: none; } }
.editor-post-taxonomies__hierarchical-terms-list { .editor-post-taxonomies__hierarchical-terms-list {
max-height: 14em; max-height: 14em;
@ -524,9 +520,6 @@
.editor-post-taxonomies__hierarchical-terms-choice { .editor-post-taxonomies__hierarchical-terms-choice {
margin-bottom: 8px; } margin-bottom: 8px; }
.editor-post-taxonomies__hierarchical-terms-input[type="checkbox"] {
margin-top: 0; }
.editor-post-taxonomies__hierarchical-terms-subchoices { .editor-post-taxonomies__hierarchical-terms-subchoices {
margin-top: 8px; margin-top: 8px;
margin-left: 16px; } margin-left: 16px; }
@ -622,31 +615,32 @@ body.admin-color-light .editor-post-text-editor__link{
.editor-post-text-editor__del { .editor-post-text-editor__del {
text-decoration: line-through; } text-decoration: line-through; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset { .edit-post-post-visibility__dialog,
.editor-post-visibility__dialog-fieldset {
padding: 4px; padding: 4px;
padding-top: 0; } padding-top: 0; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-legend {
font-weight: 600; font-weight: 600;
margin-bottom: 1em; margin-bottom: 1em;
margin-top: 0.5em; margin-top: 0.5em;
padding: 0; } padding: 0; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio {
margin-top: 2px; } margin-top: 2px; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-label {
font-weight: 600; } font-weight: 600; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-info {
margin-top: 0; margin-top: 0;
margin-left: 28px; } margin-left: 28px; }
.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info,
.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info { .editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info {
margin-bottom: 0; } margin-bottom: 0; }
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input,
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input { .editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-password-input {
margin-left: 28px; } margin-left: 28px; }
.edit-post-post-visibility__dialog.components-popover.is-bottom { .edit-post-post-visibility__dialog.components-popover.is-bottom {
z-index: 100001; } z-index: 100001; }
@ -741,10 +735,12 @@ body.admin-color-light .editor-post-text-editor__link{
.editor-post-trash.components-button { .editor-post-trash.components-button {
width: 100%; width: 100%;
color: #c92c2c; color: #b52727;
border-color: #b52727;
justify-content: center; } justify-content: center; }
.editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus { .editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus {
color: #b52727; } color: #a02222;
border-color: #a02222; }
.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content { .table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content {
min-width: 380px; } min-width: 380px; }

File diff suppressed because one or more lines are too long

View File

@ -225,7 +225,7 @@ function _iterableToArray(iter) {
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -649,7 +649,7 @@ function reducer_annotations() {
var objectWithoutProperties = __webpack_require__(21); var objectWithoutProperties = __webpack_require__(21);
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js

File diff suppressed because one or more lines are too long

View File

@ -835,7 +835,7 @@ var __rest = (this && this.__rest) || function (s, e) {
}; };
exports.__esModule = true; exports.__esModule = true;
var React = __webpack_require__(28); var React = __webpack_require__(28);
var PropTypes = __webpack_require__(33); var PropTypes = __webpack_require__(34);
var autosize = __webpack_require__(133); var autosize = __webpack_require__(133);
var _getLineHeight = __webpack_require__(134); var _getLineHeight = __webpack_require__(134);
var getLineHeight = _getLineHeight; var getLineHeight = _getLineHeight;
@ -4765,7 +4765,7 @@ function _typeof(obj) {
/***/ }), /***/ }),
/***/ 33: /***/ 34:
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
/** /**
@ -4784,14 +4784,14 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
/***/ }), /***/ }),
/***/ 34: /***/ 35:
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["wp"]["blob"]; }()); (function() { module.exports = this["wp"]["blob"]; }());
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -5948,13 +5948,6 @@ var ifBlockEditSelected = Object(external_this_wp_compose_["createHigherOrderCom
/** /**
* External dependencies * External dependencies
*/ */
@ -5966,26 +5959,15 @@ var ifBlockEditSelected = Object(external_this_wp_compose_["createHigherOrderCom
/** /**
* Internal dependencies * Internal dependencies
*/ */
/*
* Use one array instance for fallback rather than inline array literals
* because the latter may cause rerender due to failed prop equality checks.
*/
var completersFallback = [];
/** /**
* Wrap the default Autocomplete component with one that * Wrap the default Autocomplete component with one that
* supports a filter hook for customizing its list of autocompleters. * supports a filter hook for customizing its list of autocompleters.
* *
* Since there may be many Autocomplete instances at one time, this component
* applies the filter on demand, when the component is first focused after
* receiving a new list of completers.
*
* This function is exported for unit test. * This function is exported for unit test.
* *
* @param {Function} Autocomplete Original component. * @param {Function} Autocomplete Original component.
@ -5993,98 +5975,19 @@ var completersFallback = [];
*/ */
function withFilteredAutocompleters(Autocomplete) { function withFilteredAutocompleters(Autocomplete) {
return ( return function (props) {
/*#__PURE__*/ var _props$completers = props.completers,
function (_Component) { completers = _props$completers === void 0 ? [] : _props$completers;
Object(inherits["a" /* default */])(FilteredAutocomplete, _Component);
function FilteredAutocomplete() { if (Object(external_this_wp_hooks_["hasFilter"])('editor.Autocomplete.completers')) {
var _this; completers = Object(external_this_wp_hooks_["applyFilters"])('editor.Autocomplete.completers', // Provide copies so filters may directly modify them.
completers.map(external_lodash_["clone"]), props.blockName);
}
Object(classCallCheck["a" /* default */])(this, FilteredAutocomplete); return Object(external_this_wp_element_["createElement"])(Autocomplete, Object(esm_extends["a" /* default */])({}, props, {
completers: completers
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FilteredAutocomplete).call(this)); }));
_this.state = { };
completers: completersFallback
};
_this.saveParentRef = _this.saveParentRef.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(_this));
return _this;
}
Object(createClass["a" /* default */])(FilteredAutocomplete, [{
key: "componentDidUpdate",
value: function componentDidUpdate() {
var hasFocus = this.parentNode.contains(document.activeElement);
/*
* It's possible for props to be updated when the component has focus,
* so here, we ensure new completers are immediately applied while we
* have the focus.
*
* NOTE: This may trigger another render but only when the component has focus.
*/
if (hasFocus && this.hasStaleCompleters()) {
this.updateCompletersState();
}
}
}, {
key: "onFocus",
value: function onFocus() {
if (this.hasStaleCompleters()) {
this.updateCompletersState();
}
}
}, {
key: "hasStaleCompleters",
value: function hasStaleCompleters() {
return !('lastFilteredCompletersProp' in this.state) || this.state.lastFilteredCompletersProp !== this.props.completers;
}
}, {
key: "updateCompletersState",
value: function updateCompletersState() {
var _this$props = this.props,
blockName = _this$props.blockName,
completers = _this$props.completers;
var nextCompleters = completers;
var lastFilteredCompletersProp = nextCompleters;
if (Object(external_this_wp_hooks_["hasFilter"])('editor.Autocomplete.completers')) {
nextCompleters = Object(external_this_wp_hooks_["applyFilters"])('editor.Autocomplete.completers', // Provide copies so filters may directly modify them.
nextCompleters && nextCompleters.map(external_lodash_["clone"]), blockName);
}
this.setState({
lastFilteredCompletersProp: lastFilteredCompletersProp,
completers: nextCompleters || completersFallback
});
}
}, {
key: "saveParentRef",
value: function saveParentRef(parentNode) {
this.parentNode = parentNode;
}
}, {
key: "render",
value: function render() {
var completers = this.state.completers;
var autocompleteProps = Object(objectSpread["a" /* default */])({}, this.props, {
completers: completers
});
return Object(external_this_wp_element_["createElement"])("div", {
onFocus: this.onFocus,
ref: this.saveParentRef
}, Object(external_this_wp_element_["createElement"])(Autocomplete, Object(esm_extends["a" /* default */])({
onFocus: this.onFocus
}, autocompleteProps)));
}
}]);
return FilteredAutocomplete;
}(external_this_wp_element_["Component"])
);
} }
/** /**
* @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/autocomplete/README.md * @see https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/autocomplete/README.md
@ -9491,7 +9394,7 @@ function actions_setNavigationMode() {
} }
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js
@ -12056,23 +11959,7 @@ function (_Component) {
title: Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'), title: Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'),
onClick: attemptBlockRecovery onClick: attemptBlockRecovery
}]; }];
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(warning, {
if (compare) {
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], {
title: // translators: Dialog title to fix block content
Object(external_this_wp_i18n_["__"])('Resolve Block'),
onRequestClose: this.onCompareClose,
className: "editor-block-compare block-editor-block-compare"
}, Object(external_this_wp_element_["createElement"])(block_compare, {
block: block,
onKeep: convertToHTML,
onConvert: convertToBlocks,
convertor: block_invalid_warning_blockToBlocks,
convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks')
}));
}
return Object(external_this_wp_element_["createElement"])(warning, {
actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
key: "convert", key: "convert",
onClick: this.onCompare, onClick: this.onCompare,
@ -12086,7 +11973,18 @@ function (_Component) {
isPrimary: true isPrimary: true
}, Object(external_this_wp_i18n_["__"])('Convert to HTML'))], }, Object(external_this_wp_i18n_["__"])('Convert to HTML'))],
secondaryActions: hiddenActions secondaryActions: hiddenActions
}, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')); }, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')), compare && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], {
title: // translators: Dialog title to fix block content
Object(external_this_wp_i18n_["__"])('Resolve Block'),
onRequestClose: this.onCompareClose,
className: "editor-block-compare block-editor-block-compare"
}, Object(external_this_wp_element_["createElement"])(block_compare, {
block: block,
onKeep: convertToHTML,
onConvert: convertToBlocks,
convertor: block_invalid_warning_blockToBlocks,
convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks')
})));
} }
}]); }]);
@ -12157,7 +12055,9 @@ var block_invalid_warning_recoverBlock = function recoverBlock(_ref) {
*/ */
var block_crash_warning_warning = Object(external_this_wp_element_["createElement"])(warning, null, Object(external_this_wp_i18n_["__"])('This block has encountered an error and cannot be previewed.')); var block_crash_warning_warning = Object(external_this_wp_element_["createElement"])(warning, {
className: "block-editor-block-list__block-crash-warning"
}, Object(external_this_wp_i18n_["__"])('This block has encountered an error and cannot be previewed.'));
/* harmony default export */ var block_crash_warning = (function () { /* harmony default export */ var block_crash_warning = (function () {
return block_crash_warning_warning; return block_crash_warning_warning;
}); });
@ -13043,6 +12943,7 @@ function hasInnerBlocksContext(element) {
/** /**
* Simple reducer used to increment a counter. * Simple reducer used to increment a counter.
* *
@ -13053,6 +12954,13 @@ function hasInnerBlocksContext(element) {
var counterReducer = function counterReducer(state) { var counterReducer = function counterReducer(state) {
return state + 1; return state + 1;
}; };
var getAbsolutePosition = function getAbsolutePosition(element) {
return {
top: element.offsetTop,
left: element.offsetLeft
};
};
/** /**
* Hook used to compute the styles required to move a div into a new position. * Hook used to compute the styles required to move a div into a new position.
* *
@ -13066,6 +12974,7 @@ var counterReducer = function counterReducer(state) {
* *
* @param {Object} ref Reference to the element to animate. * @param {Object} ref Reference to the element to animate.
* @param {boolean} isSelected Whether it's the current block or not. * @param {boolean} isSelected Whether it's the current block or not.
* @param {boolean} adjustScrolling Adjust the scroll position to the current block.
* @param {boolean} enableAnimation Enable/Disable animation. * @param {boolean} enableAnimation Enable/Disable animation.
* @param {*} triggerAnimationOnChange Variable used to trigger the animation if it changes. * @param {*} triggerAnimationOnChange Variable used to trigger the animation if it changes.
* *
@ -13073,7 +12982,7 @@ var counterReducer = function counterReducer(state) {
*/ */
function useMovingAnimation(ref, isSelected, enableAnimation, triggerAnimationOnChange) { function useMovingAnimation(ref, isSelected, adjustScrolling, enableAnimation, triggerAnimationOnChange) {
var prefersReducedMotion = Object(external_this_wp_compose_["useReducedMotion"])() || !enableAnimation; var prefersReducedMotion = Object(external_this_wp_compose_["useReducedMotion"])() || !enableAnimation;
var _useReducer = Object(external_this_wp_element_["useReducer"])(counterReducer, 0), var _useReducer = Object(external_this_wp_element_["useReducer"])(counterReducer, 0),
@ -13088,13 +12997,21 @@ function useMovingAnimation(ref, isSelected, enableAnimation, triggerAnimationOn
var _useState = Object(external_this_wp_element_["useState"])({ var _useState = Object(external_this_wp_element_["useState"])({
x: 0, x: 0,
y: 0 y: 0,
scrollTop: 0
}), }),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
transform = _useState2[0], transform = _useState2[0],
setTransform = _useState2[1]; setTransform = _useState2[1];
var previous = ref.current ? ref.current.getBoundingClientRect() : null; var previous = ref.current ? getAbsolutePosition(ref.current) : null;
var scrollContainer = Object(external_this_wp_element_["useMemo"])(function () {
if (!adjustScrolling) {
return false;
}
return Object(external_this_wp_dom_["getScrollContainer"])(ref.current);
}, [adjustScrolling]);
Object(external_this_wp_element_["useLayoutEffect"])(function () { Object(external_this_wp_element_["useLayoutEffect"])(function () {
if (triggeredAnimation) { if (triggeredAnimation) {
endAnimation(); endAnimation();
@ -13102,21 +13019,35 @@ function useMovingAnimation(ref, isSelected, enableAnimation, triggerAnimationOn
}, [triggeredAnimation]); }, [triggeredAnimation]);
Object(external_this_wp_element_["useLayoutEffect"])(function () { Object(external_this_wp_element_["useLayoutEffect"])(function () {
if (prefersReducedMotion) { if (prefersReducedMotion) {
if (adjustScrolling && scrollContainer) {
// if the animation is disabled and the scroll needs to be adjusted,
// just move directly to the final scroll position
ref.current.style.transform = 'none';
var _destination = getAbsolutePosition(ref.current);
scrollContainer.scrollTop = scrollContainer.scrollTop - previous.top + _destination.top;
}
return; return;
} }
ref.current.style.transform = 'none'; ref.current.style.transform = 'none';
var destination = ref.current.getBoundingClientRect(); var destination = getAbsolutePosition(ref.current);
var newTransform = { var newTransform = {
x: previous ? previous.left - destination.left : 0, x: previous ? previous.left - destination.left : 0,
y: previous ? previous.top - destination.top : 0 y: previous ? previous.top - destination.top : 0,
scrollTop: previous && scrollContainer ? scrollContainer.scrollTop - previous.top + destination.top : 0
}; };
ref.current.style.transform = newTransform.x === 0 && newTransform.y === 0 ? undefined : "translate3d(".concat(newTransform.x, "px,").concat(newTransform.y, "px,0)"); ref.current.style.transform = newTransform.x === 0 && newTransform.y === 0 ? undefined : "translate3d(".concat(newTransform.x, "px,").concat(newTransform.y, "px,0)");
triggerAnimation(); triggerAnimation();
setTransform(newTransform); setTransform(newTransform);
}, [triggerAnimationOnChange]); }, [triggerAnimationOnChange]);
var animationProps = Object(web_cjs["useSpring"])({ var animationProps = Object(web_cjs["useSpring"])({
from: transform, from: {
x: transform.x,
y: transform.y
},
to: { to: {
x: 0, x: 0,
y: 0 y: 0
@ -13127,7 +13058,12 @@ function useMovingAnimation(ref, isSelected, enableAnimation, triggerAnimationOn
tension: 2000, tension: 2000,
friction: 200 friction: 200
}, },
immediate: prefersReducedMotion immediate: prefersReducedMotion,
onFrame: function onFrame(props) {
if (adjustScrolling && scrollContainer && !prefersReducedMotion && props.y) {
scrollContainer.scrollTop = transform.scrollTop + props.y;
}
}
}); // Dismiss animations if disabled. }); // Dismiss animations if disabled.
return prefersReducedMotion ? {} : { return prefersReducedMotion ? {} : {
@ -13334,7 +13270,7 @@ function block_BlockListBlock(_ref) {
setErrorState = _useState8[1]; setErrorState = _useState8[1];
var onBlockError = function onBlockError() { var onBlockError = function onBlockError() {
return setErrorState(false); return setErrorState(true);
}; // Handling of forceContextualToolbarFocus }; // Handling of forceContextualToolbarFocus
@ -13408,7 +13344,7 @@ function block_BlockListBlock(_ref) {
} }
}, [isFirstMultiSelected]); // Block Reordering animation }, [isFirstMultiSelected]); // Block Reordering animation
var animationStyle = moving_animation(wrapper, isSelected || isPartOfMultiSelection, enableAnimation, animateOnChange); // Focus the breadcrumb if the wrapper is focused on navigation mode. var animationStyle = moving_animation(wrapper, isSelected || isPartOfMultiSelection, isSelected || isFirstMultiSelected, enableAnimation, animateOnChange); // Focus the breadcrumb if the wrapper is focused on navigation mode.
// Focus the first editable or the wrapper if edit mode. // Focus the first editable or the wrapper if edit mode.
Object(external_this_wp_element_["useLayoutEffect"])(function () { Object(external_this_wp_element_["useLayoutEffect"])(function () {
@ -13650,9 +13586,9 @@ function block_BlockListBlock(_ref) {
clientId: clientId clientId: clientId
}), Object(external_this_wp_element_["createElement"])("div", { }), Object(external_this_wp_element_["createElement"])("div", {
key: "invalid-preview" key: "invalid-preview"
}, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes))]), shouldShowMobileToolbar && Object(external_this_wp_element_["createElement"])(block_mobile_toolbar, { }, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes))]), !!hasError && Object(external_this_wp_element_["createElement"])(block_crash_warning, null), shouldShowMobileToolbar && Object(external_this_wp_element_["createElement"])(block_mobile_toolbar, {
clientId: clientId clientId: clientId
}), !!hasError && Object(external_this_wp_element_["createElement"])(block_crash_warning, null))), showInserterShortcuts && Object(external_this_wp_element_["createElement"])("div", { }))), showInserterShortcuts && Object(external_this_wp_element_["createElement"])("div", {
className: "editor-block-list__side-inserter block-editor-block-list__side-inserter" className: "editor-block-list__side-inserter block-editor-block-list__side-inserter"
}, Object(external_this_wp_element_["createElement"])(inserter_with_shortcuts, { }, Object(external_this_wp_element_["createElement"])(inserter_with_shortcuts, {
clientId: clientId, clientId: clientId,
@ -14293,7 +14229,7 @@ function (_Component) {
enableAnimation = _this$props2.enableAnimation; enableAnimation = _this$props2.enableAnimation;
return Object(external_this_wp_element_["createElement"])("div", { return Object(external_this_wp_element_["createElement"])("div", {
className: classnames_default()('editor-block-list__layout block-editor-block-list__layout', className) className: classnames_default()('editor-block-list__layout block-editor-block-list__layout', className)
}, blockClientIds.map(function (clientId) { }, blockClientIds.map(function (clientId, index) {
var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId;
return Object(external_this_wp_element_["createElement"])(block_async_mode_provider, { return Object(external_this_wp_element_["createElement"])(block_async_mode_provider, {
key: 'block-' + clientId, key: 'block-' + clientId,
@ -14308,7 +14244,7 @@ function (_Component) {
// to avoid being impacted by the async mode // to avoid being impacted by the async mode
// otherwise there might be a small delay to trigger the animation. // otherwise there might be a small delay to trigger the animation.
, ,
animateOnChange: blockClientIds, animateOnChange: index,
enableAnimation: enableAnimation enableAnimation: enableAnimation
})); }));
}), Object(external_this_wp_element_["createElement"])(block_list_appender, { }), Object(external_this_wp_element_["createElement"])(block_list_appender, {
@ -15020,14 +14956,16 @@ function (_Component) {
itemsPerCategory = _this$state.itemsPerCategory, itemsPerCategory = _this$state.itemsPerCategory,
openPanels = _this$state.openPanels, openPanels = _this$state.openPanels,
reusableItems = _this$state.reusableItems, reusableItems = _this$state.reusableItems,
suggestedItems = _this$state.suggestedItems; suggestedItems = _this$state.suggestedItems,
filterValue = _this$state.filterValue;
var isPanelOpen = function isPanelOpen(panel) { var isPanelOpen = function isPanelOpen(panel) {
return openPanels.indexOf(panel) !== -1; return openPanels.indexOf(panel) !== -1;
}; };
var hasItems = Object(external_lodash_["isEmpty"])(suggestedItems) && Object(external_lodash_["isEmpty"])(reusableItems) && Object(external_lodash_["isEmpty"])(itemsPerCategory); var hasItems = !Object(external_lodash_["isEmpty"])(suggestedItems) || !Object(external_lodash_["isEmpty"])(reusableItems) || !Object(external_lodash_["isEmpty"])(itemsPerCategory);
var hoveredItemBlockType = hoveredItem ? Object(external_this_wp_blocks_["getBlockType"])(hoveredItem.name) : null; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which var hoveredItemBlockType = hoveredItem ? Object(external_this_wp_blocks_["getBlockType"])(hoveredItem.name) : null;
var hasHelpPanel = hasItems && showInserterHelpPanel; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which
// is always visible, and one which already incurs this behavior of autoFocus via // is always visible, and one which already incurs this behavior of autoFocus via
// Popover's focusOnMount. // Popover's focusOnMount.
// Disable reason (no-static-element-interactions): Navigational key-presses within // Disable reason (no-static-element-interactions): Navigational key-presses within
@ -15037,7 +14975,7 @@ function (_Component) {
return Object(external_this_wp_element_["createElement"])("div", { return Object(external_this_wp_element_["createElement"])("div", {
className: classnames_default()('editor-inserter__menu block-editor-inserter__menu', { className: classnames_default()('editor-inserter__menu block-editor-inserter__menu', {
'has-help-panel': showInserterHelpPanel 'has-help-panel': hasHelpPanel
}), }),
onKeyPress: stopKeyPropagation, onKeyPress: stopKeyPropagation,
onKeyDown: this.onKeyDown onKeyDown: this.onKeyDown
@ -15112,7 +15050,7 @@ function (_Component) {
fillProps: { fillProps: {
onSelect: onSelect, onSelect: onSelect,
onHover: this.onHover, onHover: this.onHover,
filterValue: this.state.filterValue, filterValue: filterValue,
hasItems: hasItems hasItems: hasItems
} }
}, function (fills) { }, function (fills) {
@ -15120,16 +15058,16 @@ function (_Component) {
return fills; return fills;
} }
if (hasItems) { if (!hasItems) {
return Object(external_this_wp_element_["createElement"])("p", { return Object(external_this_wp_element_["createElement"])("p", {
className: "editor-inserter__no-results block-editor-inserter__no-results" className: "editor-inserter__no-results block-editor-inserter__no-results"
}, Object(external_this_wp_i18n_["__"])('No blocks found.')); }, Object(external_this_wp_i18n_["__"])('No blocks found.'));
} }
return null; return null;
}))), showInserterHelpPanel && Object(external_this_wp_element_["createElement"])("div", { }))), hasHelpPanel && Object(external_this_wp_element_["createElement"])("div", {
className: "block-editor-inserter__menu-help-panel" className: "block-editor-inserter__menu-help-panel"
}, hoveredItem && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_card, { }, hoveredItem && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !Object(external_this_wp_blocks_["isReusableBlock"])(hoveredItem) && Object(external_this_wp_element_["createElement"])(block_card, {
blockType: hoveredItemBlockType blockType: hoveredItemBlockType
}), (Object(external_this_wp_blocks_["isReusableBlock"])(hoveredItem) || hoveredItemBlockType.example) && Object(external_this_wp_element_["createElement"])("div", { }), (Object(external_this_wp_blocks_["isReusableBlock"])(hoveredItem) || hoveredItemBlockType.example) && Object(external_this_wp_element_["createElement"])("div", {
className: "block-editor-inserter__preview" className: "block-editor-inserter__preview"
@ -15137,7 +15075,7 @@ function (_Component) {
className: "block-editor-inserter__preview-content" className: "block-editor-inserter__preview-content"
}, Object(external_this_wp_element_["createElement"])(block_preview, { }, Object(external_this_wp_element_["createElement"])(block_preview, {
viewportWidth: 500, viewportWidth: 500,
blocks: Object(external_this_wp_blocks_["createBlock"])(hoveredItem.name, hoveredItemBlockType.example ? hoveredItemBlockType.example.attributes : hoveredItem.initialAttributes, hoveredItemBlockType.example ? hoveredItemBlockType.example.innerBlocks : undefined) blocks: hoveredItemBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(hoveredItem.name, hoveredItemBlockType.example) : Object(external_this_wp_blocks_["createBlock"])(hoveredItem.name, hoveredItem.initialAttributes)
})))), !hoveredItem && Object(external_this_wp_element_["createElement"])("div", { })))), !hoveredItem && Object(external_this_wp_element_["createElement"])("div", {
className: "block-editor-inserter__menu-help-panel-no-block" className: "block-editor-inserter__menu-help-panel-no-block"
}, Object(external_this_wp_element_["createElement"])("div", { }, Object(external_this_wp_element_["createElement"])("div", {
@ -15154,7 +15092,8 @@ function (_Component) {
/* harmony default export */ var menu = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { /* harmony default export */ var menu = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
var clientId = _ref2.clientId, var clientId = _ref2.clientId,
isAppender = _ref2.isAppender, isAppender = _ref2.isAppender,
rootClientId = _ref2.rootClientId; rootClientId = _ref2.rootClientId,
showInserterHelpPanel = _ref2.showInserterHelpPanel;
var _select = select('core/block-editor'), var _select = select('core/block-editor'),
getInserterItems = _select.getInserterItems, getInserterItems = _select.getInserterItems,
@ -15180,7 +15119,7 @@ function (_Component) {
return { return {
rootChildBlocks: getChildBlockNames(destinationRootBlockName), rootChildBlocks: getChildBlockNames(destinationRootBlockName),
items: getInserterItems(destinationRootClientId), items: getInserterItems(destinationRootClientId),
showInserterHelpPanel: getSettings().showInserterHelpPanel, showInserterHelpPanel: showInserterHelpPanel && getSettings().showInserterHelpPanel,
destinationRootClientId: destinationRootClientId destinationRootClientId: destinationRootClientId
}; };
}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref3) { }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref3) {
@ -15366,12 +15305,14 @@ function (_Component) {
var _this$props2 = this.props, var _this$props2 = this.props,
rootClientId = _this$props2.rootClientId, rootClientId = _this$props2.rootClientId,
clientId = _this$props2.clientId, clientId = _this$props2.clientId,
isAppender = _this$props2.isAppender; isAppender = _this$props2.isAppender,
showInserterHelpPanel = _this$props2.showInserterHelpPanel;
return Object(external_this_wp_element_["createElement"])(menu, { return Object(external_this_wp_element_["createElement"])(menu, {
onSelect: onClose, onSelect: onClose,
rootClientId: rootClientId, rootClientId: rootClientId,
clientId: clientId, clientId: clientId,
isAppender: isAppender isAppender: isAppender,
showInserterHelpPanel: showInserterHelpPanel
}); });
} }
}, { }, {
@ -17143,7 +17084,7 @@ var PlainText = Object(external_this_wp_element_["forwardRef"])(function (_ref,
/* harmony default export */ var plain_text = (PlainText); /* harmony default export */ var plain_text = (PlainText);
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// EXTERNAL MODULE: external {"this":["wp","deprecated"]} // EXTERNAL MODULE: external {"this":["wp","deprecated"]}
var external_this_wp_deprecated_ = __webpack_require__(37); var external_this_wp_deprecated_ = __webpack_require__(37);
@ -17676,9 +17617,9 @@ function (_Component) {
var start = value.start, var start = value.start,
text = value.text; text = value.text;
var characterBefore = text.slice(start - 1, start); var characterBefore = text.slice(start - 1, start); // The character right before the caret must be a plain space.
if (!/\s/.test(characterBefore)) { if (characterBefore !== ' ') {
return; return;
} }
@ -17832,16 +17773,19 @@ function (_Component) {
onReplace: onReplace, onReplace: onReplace,
completers: autocompleters, completers: autocompleters,
record: value, record: value,
onChange: onChange onChange: onChange,
isSelected: isSelected
}, function (_ref8) { }, function (_ref8) {
var listBoxId = _ref8.listBoxId, var listBoxId = _ref8.listBoxId,
activeId = _ref8.activeId; activeId = _ref8.activeId,
onKeyDown = _ref8.onKeyDown;
return Object(external_this_wp_element_["createElement"])(Editable, { return Object(external_this_wp_element_["createElement"])(Editable, {
"aria-autocomplete": listBoxId ? 'list' : undefined, "aria-autocomplete": listBoxId ? 'list' : undefined,
"aria-owns": listBoxId, "aria-owns": listBoxId,
"aria-activedescendant": activeId, "aria-activedescendant": activeId,
start: start, start: start,
reversed: reversed reversed: reversed,
onKeyDown: onKeyDown
}); });
})); }));
}); });
@ -18615,9 +18559,12 @@ function BlockStyles(_ref) {
className: "editor-block-styles__item-preview block-editor-block-styles__item-preview" className: "editor-block-styles__item-preview block-editor-block-styles__item-preview"
}, Object(external_this_wp_element_["createElement"])(block_preview, { }, Object(external_this_wp_element_["createElement"])(block_preview, {
viewportWidth: 500, viewportWidth: 500,
blocks: type.example ? Object(external_this_wp_blocks_["createBlock"])(block.name, Object(objectSpread["a" /* default */])({}, type.example.attributes, { blocks: type.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(block.name, {
className: styleClassName attributes: Object(objectSpread["a" /* default */])({}, type.example.attributes, {
}), type.example.innerBlocks) : Object(external_this_wp_blocks_["cloneBlock"])(block, { className: styleClassName
}),
innerBlocks: type.example.innerBlocks
}) : Object(external_this_wp_blocks_["cloneBlock"])(block, {
className: styleClassName className: styleClassName
}) })
})), Object(external_this_wp_element_["createElement"])("div", { })), Object(external_this_wp_element_["createElement"])("div", {
@ -19379,9 +19326,12 @@ function (_Component) {
className: "block-editor-block-switcher__preview-title" className: "block-editor-block-switcher__preview-title"
}, Object(external_this_wp_i18n_["__"])('Preview')), Object(external_this_wp_element_["createElement"])(block_preview, { }, Object(external_this_wp_i18n_["__"])('Preview')), Object(external_this_wp_element_["createElement"])(block_preview, {
viewportWidth: 500, viewportWidth: 500,
blocks: hoveredBlockType.example ? Object(external_this_wp_blocks_["createBlock"])(hoveredBlock.name, Object(objectSpread["a" /* default */])({}, hoveredBlockType.example.attributes, { blocks: hoveredBlockType.example ? Object(external_this_wp_blocks_["getBlockFromExample"])(hoveredBlock.name, {
className: hoveredClassName attributes: Object(objectSpread["a" /* default */])({}, hoveredBlockType.example.attributes, {
}), hoveredBlockType.example.innerBlocks) : Object(external_this_wp_blocks_["cloneBlock"])(hoveredBlock, { className: hoveredClassName
}),
innerBlocks: hoveredBlockType.example.innerBlocks
}) : Object(external_this_wp_blocks_["cloneBlock"])(hoveredBlock, {
className: hoveredClassName className: hoveredClassName
}) })
}))); })));
@ -19923,121 +19873,16 @@ function (_Component) {
}), external_this_wp_compose_["withSafeTimeout"]])(observe_typing_ObserveTyping)); }), external_this_wp_compose_["withSafeTimeout"]])(observe_typing_ObserveTyping));
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preserve-scroll-in-reorder/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preserve-scroll-in-reorder/index.js
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
function PreserveScrollInReorder() {
external_this_wp_deprecated_default()('PreserveScrollInReorder component', {
/** hint: 'This behavior is now built-in the block list'
* Internal dependencies });
*/ return null;
}
/**
* Non-visual component which preserves offset of selected block within nearest
* scrollable container while reordering.
*
* @example
*
* ```jsx
* <PreserveScrollInReorder />
* ```
*/
var preserve_scroll_in_reorder_PreserveScrollInReorder =
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(PreserveScrollInReorder, _Component);
function PreserveScrollInReorder() {
Object(classCallCheck["a" /* default */])(this, PreserveScrollInReorder);
return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PreserveScrollInReorder).apply(this, arguments));
}
Object(createClass["a" /* default */])(PreserveScrollInReorder, [{
key: "getSnapshotBeforeUpdate",
value: function getSnapshotBeforeUpdate(prevProps) {
var _this$props = this.props,
blockOrder = _this$props.blockOrder,
selectionStart = _this$props.selectionStart;
if (blockOrder !== prevProps.blockOrder && selectionStart) {
return this.getOffset(selectionStart);
}
return null;
}
}, {
key: "componentDidUpdate",
value: function componentDidUpdate(prevProps, prevState, snapshot) {
if (snapshot) {
this.restorePreviousOffset(snapshot);
}
}
/**
* Given the block client ID of the start of the selection, saves the
* block's top offset as an instance property before a reorder is to occur.
*
* @param {string} selectionStart Client ID of selected block.
*
* @return {number?} The scroll offset.
*/
}, {
key: "getOffset",
value: function getOffset(selectionStart) {
var blockNode = getBlockDOMNode(selectionStart);
if (!blockNode) {
return null;
}
return blockNode.getBoundingClientRect().top;
}
/**
* After a block reordering, restores the previous viewport top offset.
*
* @param {number} offset The scroll offset.
*/
}, {
key: "restorePreviousOffset",
value: function restorePreviousOffset(offset) {
var selectionStart = this.props.selectionStart;
var blockNode = getBlockDOMNode(selectionStart);
if (blockNode) {
var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(blockNode);
if (scrollContainer) {
scrollContainer.scrollTop = scrollContainer.scrollTop + blockNode.getBoundingClientRect().top - offset;
}
}
}
}, {
key: "render",
value: function render() {
return null;
}
}]);
return PreserveScrollInReorder;
}(external_this_wp_element_["Component"]);
/* harmony default export */ var preserve_scroll_in_reorder = (Object(external_this_wp_data_["withSelect"])(function (select) {
return {
blockOrder: select('core/block-editor').getBlockOrder(),
selectionStart: select('core/block-editor').getBlockSelectionStart()
};
})(preserve_scroll_in_reorder_PreserveScrollInReorder));
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/typewriter/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/typewriter/index.js
@ -22841,7 +22686,7 @@ var transform_styles_transformStyles = function transformStyles(styles) {
/* concated harmony reexport MultiSelectScrollIntoView */__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return multi_select_scroll_into_view; }); /* concated harmony reexport MultiSelectScrollIntoView */__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return multi_select_scroll_into_view; });
/* concated harmony reexport NavigableToolbar */__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return navigable_toolbar; }); /* concated harmony reexport NavigableToolbar */__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return navigable_toolbar; });
/* concated harmony reexport ObserveTyping */__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return observe_typing; }); /* concated harmony reexport ObserveTyping */__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return observe_typing; });
/* concated harmony reexport PreserveScrollInReorder */__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return preserve_scroll_in_reorder; }); /* concated harmony reexport PreserveScrollInReorder */__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return PreserveScrollInReorder; });
/* concated harmony reexport SkipToSelectedBlock */__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return skip_to_selected_block; }); /* concated harmony reexport SkipToSelectedBlock */__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return skip_to_selected_block; });
/* concated harmony reexport Typewriter */__webpack_require__.d(__webpack_exports__, "Typewriter", function() { return typewriter; }); /* concated harmony reexport Typewriter */__webpack_require__.d(__webpack_exports__, "Typewriter", function() { return typewriter; });
/* concated harmony reexport Warning */__webpack_require__.d(__webpack_exports__, "Warning", function() { return warning; }); /* concated harmony reexport Warning */__webpack_require__.d(__webpack_exports__, "Warning", function() { return warning; });

File diff suppressed because one or more lines are too long

View File

@ -570,13 +570,13 @@ function _typeof(obj) {
/***/ }), /***/ }),
/* 33 */, /* 33 */,
/* 34 */ /* 34 */,
/* 35 */
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["wp"]["blob"]; }()); (function() { module.exports = this["wp"]["blob"]; }());
/***/ }), /***/ }),
/* 35 */,
/* 36 */, /* 36 */,
/* 37 */ /* 37 */
/***/ (function(module, exports) { /***/ (function(module, exports) {
@ -6104,6 +6104,54 @@ var settings = {
icon: icon, icon: icon,
description: Object(external_this_wp_i18n_["__"])('A block that groups other blocks.'), description: Object(external_this_wp_i18n_["__"])('A block that groups other blocks.'),
keywords: [Object(external_this_wp_i18n_["__"])('container'), Object(external_this_wp_i18n_["__"])('wrapper'), Object(external_this_wp_i18n_["__"])('row'), Object(external_this_wp_i18n_["__"])('section')], keywords: [Object(external_this_wp_i18n_["__"])('container'), Object(external_this_wp_i18n_["__"])('wrapper'), Object(external_this_wp_i18n_["__"])('row'), Object(external_this_wp_i18n_["__"])('section')],
example: {
attributes: {
customBackgroundColor: '#ffffff'
},
innerBlocks: [{
name: 'core/paragraph',
attributes: {
customTextColor: '#cf2e2e',
fontSize: 'large',
content: Object(external_this_wp_i18n_["__"])('One.')
}
}, {
name: 'core/paragraph',
attributes: {
customTextColor: '#ff6900',
fontSize: 'large',
content: Object(external_this_wp_i18n_["__"])('Two.')
}
}, {
name: 'core/paragraph',
attributes: {
customTextColor: '#fcb900',
fontSize: 'large',
content: Object(external_this_wp_i18n_["__"])('Three.')
}
}, {
name: 'core/paragraph',
attributes: {
customTextColor: '#00d084',
fontSize: 'large',
content: Object(external_this_wp_i18n_["__"])('Four.')
}
}, {
name: 'core/paragraph',
attributes: {
customTextColor: '#0693e3',
fontSize: 'large',
content: Object(external_this_wp_i18n_["__"])('Five.')
}
}, {
name: 'core/paragraph',
attributes: {
customTextColor: '#9b51e0',
fontSize: 'large',
content: Object(external_this_wp_i18n_["__"])('Six.')
}
}]
},
supports: { supports: {
align: ['wide', 'full'], align: ['wide', 'full'],
anchor: true, anchor: true,
@ -7560,7 +7608,9 @@ var settings = {
keywords: [Object(external_this_wp_i18n_["__"])('text')], keywords: [Object(external_this_wp_i18n_["__"])('text')],
example: { example: {
attributes: { attributes: {
content: Object(external_this_wp_i18n_["__"])('Start writing, no matter what. The water does not flow until the faucet is turned on.') content: Object(external_this_wp_i18n_["__"])('In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'),
customFontSize: 28,
dropCap: true
} }
}, },
supports: { supports: {
@ -9199,6 +9249,12 @@ var settings = {
className: false, className: false,
anchor: true anchor: true
}, },
example: {
attributes: {
content: Object(external_this_wp_i18n_["__"])('Code is Poetry'),
level: 2
}
},
transforms: heading_transforms, transforms: heading_transforms,
deprecated: heading_deprecated, deprecated: heading_deprecated,
merge: function merge(attributes, attributesToMerge) { merge: function merge(attributes, attributesToMerge) {
@ -9599,7 +9655,7 @@ var external_this_wp_compose_ = __webpack_require__(8);
var external_this_wp_components_ = __webpack_require__(3); var external_this_wp_components_ = __webpack_require__(3);
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// EXTERNAL MODULE: external {"this":["wp","data"]} // EXTERNAL MODULE: external {"this":["wp","data"]}
var external_this_wp_data_ = __webpack_require__(4); var external_this_wp_data_ = __webpack_require__(4);
@ -9833,7 +9889,7 @@ function (_Component) {
className: "blocks-gallery-item__remove", className: "blocks-gallery-item__remove",
label: Object(external_this_wp_i18n_["__"])('Remove image'), label: Object(external_this_wp_i18n_["__"])('Remove image'),
disabled: !isSelected disabled: !isSelected
})), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { })), (isSelected || caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
tagName: "figcaption", tagName: "figcaption",
placeholder: isSelected ? Object(external_this_wp_i18n_["__"])('Write caption…') : null, placeholder: isSelected ? Object(external_this_wp_i18n_["__"])('Write caption…') : null,
value: caption, value: caption,
@ -10603,6 +10659,16 @@ var settings = {
description: Object(external_this_wp_i18n_["__"])('Display multiple images in a rich gallery.'), description: Object(external_this_wp_i18n_["__"])('Display multiple images in a rich gallery.'),
icon: icon, icon: icon,
keywords: [Object(external_this_wp_i18n_["__"])('images'), Object(external_this_wp_i18n_["__"])('photos')], keywords: [Object(external_this_wp_i18n_["__"])('images'), Object(external_this_wp_i18n_["__"])('photos')],
example: {
attributes: {
columns: 2,
images: [{
url: 'https://upload.wikimedia.org/wikipedia/commons/c/c3/Glacial_lakes%2C_Bhutan.jpg'
}, {
url: 'https://upload.wikimedia.org/wikipedia/commons/0/01/Sediment_off_the_Yucatan_Peninsula.jpg'
}]
}
},
supports: { supports: {
align: true align: true
}, },
@ -11169,7 +11235,8 @@ function (_Component) {
var temporaryMediaWidth = this.state.mediaWidth; var temporaryMediaWidth = this.state.mediaWidth;
var classNames = classnames_default()(className, (_classnames = { var classNames = classnames_default()(className, (_classnames = {
'has-media-on-the-right': 'right' === mediaPosition, 'has-media-on-the-right': 'right' === mediaPosition,
'is-selected': isSelected 'is-selected': isSelected,
'has-background': backgroundColor.class || backgroundColor.color
}, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames));
var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%"); var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%");
var style = { var style = {
@ -11339,7 +11406,8 @@ function save_save(_ref) {
}; };
var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
var className = classnames_default()((_classnames = { var className = classnames_default()((_classnames = {
'has-media-on-the-right': 'right' === mediaPosition 'has-media-on-the-right': 'right' === mediaPosition,
'has-background': backgroundClass || customBackgroundColor
}, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames));
var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {};
var gridTemplateColumns; var gridTemplateColumns;
@ -11521,6 +11589,23 @@ var settings = {
align: ['wide', 'full'], align: ['wide', 'full'],
html: false html: false
}, },
example: {
attributes: {
mediaType: 'image',
mediaUrl: 'https://upload.wikimedia.org/wikipedia/commons/d/d4/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg'
},
innerBlocks: [{
name: 'core/paragraph',
attributes: {
content: Object(external_this_wp_i18n_["__"])('The wren<br>Earns his living<br>Noiselessly.')
}
}, {
name: 'core/paragraph',
attributes: {
content: Object(external_this_wp_i18n_["__"])('— Kobayashi Issa (一茶)')
}
}]
},
transforms: media_text_transforms, transforms: media_text_transforms,
edit: edit, edit: edit,
save: save_save, save: save_save,
@ -11759,7 +11844,7 @@ var slicedToArray = __webpack_require__(23);
var external_lodash_ = __webpack_require__(2); var external_lodash_ = __webpack_require__(2);
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// EXTERNAL MODULE: external {"this":["wp","components"]} // EXTERNAL MODULE: external {"this":["wp","components"]}
var external_this_wp_components_ = __webpack_require__(3); var external_this_wp_components_ = __webpack_require__(3);
@ -12886,7 +12971,8 @@ function (_Component) {
var _select2 = select('core/block-editor'), var _select2 = select('core/block-editor'),
getSettings = _select2.getSettings; getSettings = _select2.getSettings;
var id = props.attributes.id; var id = props.attributes.id,
isSelected = props.isSelected;
var _getSettings = getSettings(), var _getSettings = getSettings(),
__experimentalMediaUpload = _getSettings.__experimentalMediaUpload, __experimentalMediaUpload = _getSettings.__experimentalMediaUpload,
@ -12895,7 +12981,7 @@ function (_Component) {
maxWidth = _getSettings.maxWidth; maxWidth = _getSettings.maxWidth;
return { return {
image: id ? getMedia(id) : null, image: id && isSelected ? getMedia(id) : null,
maxWidth: maxWidth, maxWidth: maxWidth,
isRTL: isRTL, isRTL: isRTL,
imageSizes: imageSizes, imageSizes: imageSizes,
@ -13224,6 +13310,13 @@ var settings = {
icon: icon, icon: icon,
keywords: ['img', // "img" is not translated as it is intended to reflect the HTML <img> tag. keywords: ['img', // "img" is not translated as it is intended to reflect the HTML <img> tag.
Object(external_this_wp_i18n_["__"])('photo')], Object(external_this_wp_i18n_["__"])('photo')],
example: {
attributes: {
sizeSlug: 'large',
url: 'https://upload.wikimedia.org/wikipedia/commons/1/15/MtBlanc1.JPG',
caption: Object(external_this_wp_i18n_["__"])('Mont Blanc appears—still, snowy, and serene.')
}
},
styles: [{ styles: [{
name: 'default', name: 'default',
label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
@ -13653,7 +13746,7 @@ var CoverHeightInput = Object(external_this_wp_compose_["withInstanceId"])(funct
}, [temporaryInput, setTemporaryInput]); }, [temporaryInput, setTemporaryInput]);
var inputId = "block-cover-height-input-".concat(instanceId); var inputId = "block-cover-height-input-".concat(instanceId);
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], {
label: Object(external_this_wp_i18n_["__"])('Height in pixels'), label: Object(external_this_wp_i18n_["__"])('Minimum height in pixels'),
id: inputId id: inputId
}, Object(external_this_wp_element_["createElement"])("input", { }, Object(external_this_wp_element_["createElement"])("input", {
type: "number", type: "number",
@ -13867,13 +13960,6 @@ function (_Component) {
focalPoint: value focalPoint: value
}); });
} }
}), Object(external_this_wp_element_["createElement"])(CoverHeightInput, {
value: temporaryMinHeight || minHeight,
onChange: function onChange(value) {
setAttributes({
minHeight: value
});
}
}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
isDefault: true, isDefault: true,
isSmall: true, isSmall: true,
@ -13888,7 +13974,16 @@ function (_Component) {
hasParallax: undefined hasParallax: undefined
}); });
} }
}, Object(external_this_wp_i18n_["__"])('Clear Media')))), (url || overlayColor.color) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { }, Object(external_this_wp_i18n_["__"])('Clear Media')))), (url || overlayColor.color) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
title: Object(external_this_wp_i18n_["__"])('Dimensions')
}, Object(external_this_wp_element_["createElement"])(CoverHeightInput, {
value: temporaryMinHeight || minHeight,
onChange: function onChange(value) {
setAttributes({
minHeight: value
});
}
})), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], {
title: Object(external_this_wp_i18n_["__"])('Overlay'), title: Object(external_this_wp_i18n_["__"])('Overlay'),
initialOpen: true, initialOpen: true,
colorSettings: [{ colorSettings: [{
@ -13904,7 +13999,7 @@ function (_Component) {
max: 100, max: 100,
step: 10, step: 10,
required: true required: true
})))); })))));
if (!(url || overlayColor.color)) { if (!(url || overlayColor.color)) {
var placeholderIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { var placeholderIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
@ -14274,6 +14369,21 @@ var settings = {
supports: { supports: {
align: true align: true
}, },
example: {
attributes: {
customOverlayColor: '#065174',
dimRatio: 40,
url: 'https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg'
},
innerBlocks: [{
name: 'core/paragraph',
attributes: {
customFontSize: 48,
content: Object(external_this_wp_i18n_["__"])('<strong>Snow Patrol</strong>'),
align: 'center'
}
}]
},
transforms: cover_transforms, transforms: cover_transforms,
save: save_save, save: save_save,
edit: edit, edit: edit,
@ -15783,6 +15893,56 @@ var settings = {
title: Object(external_this_wp_i18n_["__"])('Table'), title: Object(external_this_wp_i18n_["__"])('Table'),
description: Object(external_this_wp_i18n_["__"])('Insert a table — perfect for sharing charts and data.'), description: Object(external_this_wp_i18n_["__"])('Insert a table — perfect for sharing charts and data.'),
icon: icon, icon: icon,
example: {
attributes: {
head: [{
cells: [{
content: Object(external_this_wp_i18n_["__"])('Version'),
tag: 'th'
}, {
content: Object(external_this_wp_i18n_["__"])('Jazz Musician'),
tag: 'th'
}, {
content: Object(external_this_wp_i18n_["__"])('Release Date'),
tag: 'th'
}]
}],
body: [{
cells: [{
content: '5.2',
tag: 'td'
}, {
content: 'Jaco Pastorius',
tag: 'td'
}, {
content: Object(external_this_wp_i18n_["__"])('May 7, 2019'),
tag: 'td'
}]
}, {
cells: [{
content: '5.1',
tag: 'td'
}, {
content: 'Betty Carter',
tag: 'td'
}, {
content: Object(external_this_wp_i18n_["__"])('February 21, 2019'),
tag: 'td'
}]
}, {
cells: [{
content: '5.0',
tag: 'td'
}, {
content: 'Bebo Valdés',
tag: 'td'
}, {
content: Object(external_this_wp_i18n_["__"])('December 6, 2018'),
tag: 'td'
}]
}]
}
},
styles: [{ styles: [{
name: 'regular', name: 'regular',
label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
@ -15843,7 +16003,7 @@ var classnames = __webpack_require__(16);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// EXTERNAL MODULE: external {"this":["wp","components"]} // EXTERNAL MODULE: external {"this":["wp","components"]}
var external_this_wp_components_ = __webpack_require__(3); var external_this_wp_components_ = __webpack_require__(3);
@ -16681,6 +16841,11 @@ var settings = {
title: Object(external_this_wp_i18n_["__"])('Verse'), title: Object(external_this_wp_i18n_["__"])('Verse'),
description: Object(external_this_wp_i18n_["__"])('Insert poetry. Use special spacing formats. Or quote song lyrics.'), description: Object(external_this_wp_i18n_["__"])('Insert poetry. Use special spacing formats. Or quote song lyrics.'),
icon: icon, icon: icon,
example: {
attributes: {
content: Object(external_this_wp_i18n_["__"])('WHAT was he doing, the great god Pan,') + '<br>' + Object(external_this_wp_i18n_["__"])(' Down in the reeds by the river?') + '<br>' + Object(external_this_wp_i18n_["__"])('Spreading ruin and scattering ban,') + '<br>' + Object(external_this_wp_i18n_["__"])('Splashing and paddling with hoofs of a goat,') + '<br>' + Object(external_this_wp_i18n_["__"])('And breaking the golden lilies afloat') + '<br>' + Object(external_this_wp_i18n_["__"])(' With the dragon-fly on the river.')
}
},
keywords: [Object(external_this_wp_i18n_["__"])('poetry')], keywords: [Object(external_this_wp_i18n_["__"])('poetry')],
transforms: tranforms, transforms: tranforms,
deprecated: verse_deprecated, deprecated: verse_deprecated,
@ -17394,20 +17559,46 @@ var SOLID_COLOR_CLASS = "is-style-".concat(SOLID_COLOR_STYLE_NAME);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js
var objectSpread = __webpack_require__(7); var objectSpread = __webpack_require__(7);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(10);
// EXTERNAL MODULE: external {"this":["wp","element"]} // EXTERNAL MODULE: external {"this":["wp","element"]}
var external_this_wp_element_ = __webpack_require__(0); var external_this_wp_element_ = __webpack_require__(0);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(16);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(2);
// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} // EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
var external_this_wp_blockEditor_ = __webpack_require__(6); var external_this_wp_blockEditor_ = __webpack_require__(6);
// EXTERNAL MODULE: external {"this":["wp","data"]}
var external_this_wp_data_ = __webpack_require__(4);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/deprecated.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/deprecated.js
/**
* External dependencies
*/
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
/**
* Internal dependencies
*/
var blockAttributes = { var blockAttributes = {
value: { value: {
type: 'string', type: 'string',
@ -17435,9 +17626,64 @@ var blockAttributes = {
} }
}; };
var deprecated = [{ var deprecated = [{
attributes: Object(objectSpread["a" /* default */])({}, blockAttributes), attributes: blockAttributes,
save: function save(_ref) { save: function save(_ref) {
var attributes = _ref.attributes; var attributes = _ref.attributes;
var mainColor = attributes.mainColor,
customMainColor = attributes.customMainColor,
textColor = attributes.textColor,
customTextColor = attributes.customTextColor,
value = attributes.value,
citation = attributes.citation,
className = attributes.className;
var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS);
var figureClass, figureStyles; // Is solid color style
if (isSolidColorStyle) {
figureClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor);
if (!figureClass) {
figureStyles = {
backgroundColor: customMainColor
};
} // Is normal style and a custom color is being used ( we can set a style directly with its value)
} else if (customMainColor) {
figureStyles = {
borderColor: customMainColor
}; // Is normal style and a named color is being used, we need to retrieve the color value to set the style,
// as there is no expectation that themes create classes that set border colors.
} else if (mainColor) {
var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []);
var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, mainColor);
figureStyles = {
borderColor: colorObject.color
};
}
var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
var blockquoteClasses = textColor || customTextColor ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)) : undefined;
var blockquoteStyle = blockquoteTextColorClass ? undefined : {
color: customTextColor
};
return Object(external_this_wp_element_["createElement"])("figure", {
className: figureClass,
style: figureStyles
}, Object(external_this_wp_element_["createElement"])("blockquote", {
className: blockquoteClasses,
style: blockquoteStyle
}, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
value: value,
multiline: true
}), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
tagName: "cite",
value: citation
})));
}
}, {
attributes: Object(objectSpread["a" /* default */])({}, blockAttributes),
save: function save(_ref2) {
var attributes = _ref2.attributes;
var value = attributes.value, var value = attributes.value,
citation = attributes.citation; citation = attributes.citation;
return Object(external_this_wp_element_["createElement"])("blockquote", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { return Object(external_this_wp_element_["createElement"])("blockquote", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
@ -17460,8 +17706,8 @@ var deprecated = [{
default: 'none' default: 'none'
} }
}), }),
save: function save(_ref2) { save: function save(_ref3) {
var attributes = _ref2.attributes; var attributes = _ref3.attributes;
var value = attributes.value, var value = attributes.value,
citation = attributes.citation, citation = attributes.citation,
align = attributes.align; align = attributes.align;
@ -17481,9 +17727,6 @@ var deprecated = [{
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(18); var esm_extends = __webpack_require__(18);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(10);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(12); var classCallCheck = __webpack_require__(12);
@ -17502,13 +17745,6 @@ var assertThisInitialized = __webpack_require__(5);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
var inherits = __webpack_require__(15); var inherits = __webpack_require__(15);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(16);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(2);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js
@ -17594,20 +17830,23 @@ function (_Component) {
var value = attributes.value, var value = attributes.value,
citation = attributes.citation; citation = attributes.citation;
var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS);
var figureStyle = isSolidColorStyle ? { var figureStyles = isSolidColorStyle ? {
backgroundColor: mainColor.color backgroundColor: mainColor.color
} : { } : {
borderColor: mainColor.color borderColor: mainColor.color
}; };
var blockquoteStyle = { var figureClasses = classnames_default()(className, Object(defineProperty["a" /* default */])({
'has-background': isSolidColorStyle && mainColor.color
}, mainColor.class, isSolidColorStyle && mainColor.class));
var blockquoteStyles = {
color: textColor.color color: textColor.color
}; };
var blockquoteClasses = textColor.color ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)) : undefined; var blockquoteClasses = textColor.color && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class));
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("figure", { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("figure", {
style: figureStyle, style: figureStyles,
className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, mainColor.class, isSolidColorStyle && mainColor.class)) className: figureClasses
}, Object(external_this_wp_element_["createElement"])("blockquote", { }, Object(external_this_wp_element_["createElement"])("blockquote", {
style: blockquoteStyle, style: blockquoteStyles,
className: blockquoteClasses className: blockquoteClasses
}, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
multiline: true, multiline: true,
@ -17682,9 +17921,6 @@ var external_this_wp_components_ = __webpack_require__(3);
points: "21 4 2 4 2 6 21 6" points: "21 4 2 4 2 6 21 6"
}))); })));
// EXTERNAL MODULE: external {"this":["wp","data"]}
var external_this_wp_data_ = __webpack_require__(4);
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/save.js // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/save.js
@ -17715,21 +17951,20 @@ function save_save(_ref) {
citation = attributes.citation, citation = attributes.citation,
className = attributes.className; className = attributes.className;
var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS);
var figureClass, figureStyles; // Is solid color style var figureClasses, figureStyles; // Is solid color style
if (isSolidColorStyle) { if (isSolidColorStyle) {
figureClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor); var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor);
figureClasses = classnames_default()(Object(defineProperty["a" /* default */])({
if (!figureClass) { 'has-background': backgroundClass || customMainColor
figureStyles = { }, backgroundClass, backgroundClass));
backgroundColor: customMainColor figureStyles = {
}; backgroundColor: backgroundClass ? undefined : customMainColor
} // Is normal style and a custom color is being used ( we can set a style directly with its value) }; // Is normal style and a custom color is being used ( we can set a style directly with its value)
} else if (customMainColor) { } else if (customMainColor) {
figureStyles = { figureStyles = {
borderColor: customMainColor borderColor: customMainColor
}; // Is normal style and a named color is being used, we need to retrieve the color value to set the style, }; // If normal style and a named color are being used, we need to retrieve the color value to set the style,
// as there is no expectation that themes create classes that set border colors. // as there is no expectation that themes create classes that set border colors.
} else if (mainColor) { } else if (mainColor) {
var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []); var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []);
@ -17740,16 +17975,16 @@ function save_save(_ref) {
} }
var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
var blockquoteClasses = textColor || customTextColor ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)) : undefined; var blockquoteClasses = (textColor || customTextColor) && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass));
var blockquoteStyle = blockquoteTextColorClass ? undefined : { var blockquoteStyles = blockquoteTextColorClass ? undefined : {
color: customTextColor color: customTextColor
}; };
return Object(external_this_wp_element_["createElement"])("figure", { return Object(external_this_wp_element_["createElement"])("figure", {
className: figureClass, className: figureClasses,
style: figureStyles style: figureStyles
}, Object(external_this_wp_element_["createElement"])("blockquote", { }, Object(external_this_wp_element_["createElement"])("blockquote", {
className: blockquoteClasses, className: blockquoteClasses,
style: blockquoteStyle style: blockquoteStyles
}, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
value: value, value: value,
multiline: true multiline: true
@ -17812,6 +18047,12 @@ var settings = {
title: Object(external_this_wp_i18n_["__"])('Pullquote'), title: Object(external_this_wp_i18n_["__"])('Pullquote'),
description: Object(external_this_wp_i18n_["__"])('Give special visual emphasis to a quote from your text.'), description: Object(external_this_wp_i18n_["__"])('Give special visual emphasis to a quote from your text.'),
icon: icon, icon: icon,
example: {
attributes: {
value: '<p>' + Object(external_this_wp_i18n_["__"])('One of the hardest things to do in technology is disrupt yourself.') + '</p>',
citation: 'Matt Mullenweg'
}
},
styles: [{ styles: [{
name: 'default', name: 'default',
label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
@ -18090,6 +18331,11 @@ var settings = {
title: Object(external_this_wp_i18n_["__"])('Code'), title: Object(external_this_wp_i18n_["__"])('Code'),
description: Object(external_this_wp_i18n_["__"])('Display code snippets that respect your spacing and tabs.'), description: Object(external_this_wp_i18n_["__"])('Display code snippets that respect your spacing and tabs.'),
icon: icon, icon: icon,
example: {
attributes: {
content: Object(external_this_wp_i18n_["__"])('// A "block" is the abstract term used') + '\n' + Object(external_this_wp_i18n_["__"])('// to describe units of markup that,') + '\n' + Object(external_this_wp_i18n_["__"])('// when composed together, form the') + '\n' + Object(external_this_wp_i18n_["__"])('// content or layout of a page.') + '\n' + Object(external_this_wp_i18n_["__"])('registerBlockType( name, settings );')
}
},
supports: { supports: {
html: false html: false
}, },
@ -18553,6 +18799,11 @@ var settings = {
supports: { supports: {
className: false className: false
}, },
example: {
attributes: {
values: '<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>'
}
},
transforms: list_transforms, transforms: list_transforms,
merge: function merge(attributes, attributesToMerge) { merge: function merge(attributes, attributesToMerge) {
var values = attributesToMerge.values; var values = attributesToMerge.values;
@ -19090,7 +19341,14 @@ var settings = {
title: Object(external_this_wp_i18n_["__"])('Quote'), title: Object(external_this_wp_i18n_["__"])('Quote'),
description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'), description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),
icon: icon, icon: icon,
keywords: [Object(external_this_wp_i18n_["__"])('blockquote')], keywords: [Object(external_this_wp_i18n_["__"])('blockquote'), Object(external_this_wp_i18n_["__"])('cite')],
example: {
attributes: {
value: '<p>' + Object(external_this_wp_i18n_["__"])('In quoting others, we cite ourselves.') + '</p>',
citation: 'Julio Cortázar',
className: 'is-style-large'
}
},
styles: [{ styles: [{
name: 'default', name: 'default',
label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
@ -19373,6 +19631,11 @@ var settings = {
description: Object(external_this_wp_i18n_["__"])('Add custom HTML code and preview it as you edit.'), description: Object(external_this_wp_i18n_["__"])('Add custom HTML code and preview it as you edit.'),
icon: icon, icon: icon,
keywords: [Object(external_this_wp_i18n_["__"])('embed')], keywords: [Object(external_this_wp_i18n_["__"])('embed')],
example: {
attributes: {
content: '<marquee>' + Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks…') + '</marquee>'
}
},
supports: { supports: {
customClassName: false, customClassName: false,
className: false, className: false,
@ -20057,6 +20320,13 @@ var settings = {
description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a button-style link.'), description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a button-style link.'),
icon: icon, icon: icon,
keywords: [Object(external_this_wp_i18n_["__"])('link')], keywords: [Object(external_this_wp_i18n_["__"])('link')],
example: {
attributes: {
className: 'is-style-fill',
backgroundColor: 'vivid-green-cyan',
text: Object(external_this_wp_i18n_["__"])('Call to Action')
}
},
supports: { supports: {
align: true, align: true,
alignWide: false alignWide: false
@ -20341,6 +20611,7 @@ var settings = {
html: false, html: false,
multiple: false multiple: false
}, },
example: {},
transforms: more_transforms, transforms: more_transforms,
edit: edit_MoreEdit, edit: edit_MoreEdit,
save: save save: save
@ -20464,6 +20735,7 @@ var settings = {
className: false, className: false,
html: false html: false
}, },
example: {},
transforms: nextpage_transforms, transforms: nextpage_transforms,
edit: NextPageEdit, edit: NextPageEdit,
save: save save: save
@ -21010,6 +21282,40 @@ var settings = {
align: ['wide', 'full'], align: ['wide', 'full'],
html: false html: false
}, },
example: {
innerBlocks: [{
name: 'core/column',
innerBlocks: [{
name: 'core/paragraph',
attributes: {
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis pellentesque efficitur. Nam dapibus felis malesuada tincidunt rhoncus. Integer non malesuada tortor.'
}
}, {
name: 'core/image',
attributes: {
url: 'https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg'
}
}, {
name: 'core/paragraph',
attributes: {
content: 'Suspendisse commodo neque lacus, a dictum orci interdum et. Ut vel mi ut leo fringilla rutrum.'
}
}]
}, {
name: 'core/column',
innerBlocks: [{
name: 'core/paragraph',
attributes: {
content: Object(external_this_wp_i18n_["__"])('Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit, eget faucibus urna pulvinar.')
}
}, {
name: 'core/paragraph',
attributes: {
content: Object(external_this_wp_i18n_["__"])('Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim ultricies commodo.')
}
}]
}]
},
deprecated: deprecated, deprecated: deprecated,
edit: edit, edit: edit,
save: save_save save: save_save
@ -21193,6 +21499,11 @@ var settings = {
title: Object(external_this_wp_i18n_["__"])('Preformatted'), title: Object(external_this_wp_i18n_["__"])('Preformatted'),
description: Object(external_this_wp_i18n_["__"])('Add text that respects your spacing and tabs, and also allows styling.'), description: Object(external_this_wp_i18n_["__"])('Add text that respects your spacing and tabs, and also allows styling.'),
icon: icon, icon: icon,
example: {
attributes: {
content: Object(external_this_wp_i18n_["__"])('EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)') + '\n' + Object(external_this_wp_i18n_["__"])('Window, very small in the distance, illuminated.') + '\n' + Object(external_this_wp_i18n_["__"])('All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;')
}
},
transforms: preformatted_transforms, transforms: preformatted_transforms,
edit: PreformattedEdit, edit: PreformattedEdit,
save: save, save: save,
@ -21387,6 +21698,12 @@ var settings = {
description: Object(external_this_wp_i18n_["__"])('Create a break between ideas or sections with a horizontal separator.'), description: Object(external_this_wp_i18n_["__"])('Create a break between ideas or sections with a horizontal separator.'),
icon: icon, icon: icon,
keywords: [Object(external_this_wp_i18n_["__"])('horizontal-line'), 'hr', Object(external_this_wp_i18n_["__"])('divider')], keywords: [Object(external_this_wp_i18n_["__"])('horizontal-line'), 'hr', Object(external_this_wp_i18n_["__"])('divider')],
example: {
attributes: {
customColor: '#065174',
className: 'is-style-wide'
}
},
styles: [{ styles: [{
name: 'default', name: 'default',
label: Object(external_this_wp_i18n_["__"])('Default'), label: Object(external_this_wp_i18n_["__"])('Default'),
@ -21442,7 +21759,7 @@ var inherits = __webpack_require__(15);
var external_this_wp_element_ = __webpack_require__(0); var external_this_wp_element_ = __webpack_require__(0);
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// EXTERNAL MODULE: external {"this":["wp","compose"]} // EXTERNAL MODULE: external {"this":["wp","compose"]}
var external_this_wp_compose_ = __webpack_require__(8); var external_this_wp_compose_ = __webpack_require__(8);
@ -22278,7 +22595,7 @@ var inherits = __webpack_require__(15);
var external_this_wp_element_ = __webpack_require__(0); var external_this_wp_element_ = __webpack_require__(0);
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// EXTERNAL MODULE: external {"this":["wp","components"]} // EXTERNAL MODULE: external {"this":["wp","components"]}
var external_this_wp_components_ = __webpack_require__(3); var external_this_wp_components_ = __webpack_require__(3);
@ -25018,6 +25335,7 @@ var settings = {
supports: { supports: {
align: true align: true
}, },
example: {},
edit: edit edit: edit
}; };
@ -25735,6 +26053,24 @@ var settings = {
supports: { supports: {
align: ['left', 'center', 'right'] align: ['left', 'center', 'right']
}, },
example: {
innerBlocks: [{
name: 'core/social-link-wordpress',
attributes: {
url: 'https://wordpress.org'
}
}, {
name: 'core/social-link-facebook',
attributes: {
url: 'https://www.facebook.com/WordPress/'
}
}, {
name: 'core/social-link-twitter',
attributes: {
url: 'https://twitter.com/WordPress'
}
}]
},
styles: [{ styles: [{
name: 'default', name: 'default',
label: Object(external_this_wp_i18n_["__"])('Default'), label: Object(external_this_wp_i18n_["__"])('Default'),
@ -26292,6 +26628,7 @@ var settings = {
supports: { supports: {
align: true align: true
}, },
example: {},
edit: SearchEdit edit: SearchEdit
}; };
@ -26551,6 +26888,11 @@ var settings = {
align: true, align: true,
html: false html: false
}, },
example: {
attributes: {
feedURL: 'https://wordpress.org'
}
},
edit: edit edit: edit
}; };
@ -26718,7 +27060,7 @@ var registerCoreBlocks = function registerCoreBlocks() {
// in various contexts — like the inserter and auto-complete components. // in various contexts — like the inserter and auto-complete components.
_paragraph__WEBPACK_IMPORTED_MODULE_6__, _image__WEBPACK_IMPORTED_MODULE_7__, _heading__WEBPACK_IMPORTED_MODULE_8__, _gallery__WEBPACK_IMPORTED_MODULE_10__, _list__WEBPACK_IMPORTED_MODULE_29__, _quote__WEBPACK_IMPORTED_MODULE_9__, // Register all remaining core blocks. _paragraph__WEBPACK_IMPORTED_MODULE_6__, _image__WEBPACK_IMPORTED_MODULE_7__, _heading__WEBPACK_IMPORTED_MODULE_8__, _gallery__WEBPACK_IMPORTED_MODULE_10__, _list__WEBPACK_IMPORTED_MODULE_29__, _quote__WEBPACK_IMPORTED_MODULE_9__, // Register all remaining core blocks.
_shortcode__WEBPACK_IMPORTED_MODULE_40__, _archives__WEBPACK_IMPORTED_MODULE_11__, _audio__WEBPACK_IMPORTED_MODULE_12__, _button__WEBPACK_IMPORTED_MODULE_13__, _calendar__WEBPACK_IMPORTED_MODULE_14__, _categories__WEBPACK_IMPORTED_MODULE_15__, _code__WEBPACK_IMPORTED_MODULE_16__, _columns__WEBPACK_IMPORTED_MODULE_17__, _column__WEBPACK_IMPORTED_MODULE_18__, _cover__WEBPACK_IMPORTED_MODULE_19__, _embed__WEBPACK_IMPORTED_MODULE_20__].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_20__["common"]), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_20__["others"]), [_file__WEBPACK_IMPORTED_MODULE_21__, _group__WEBPACK_IMPORTED_MODULE_38__, window.wp && window.wp.oldEditor ? _classic__WEBPACK_IMPORTED_MODULE_48__ : null, // Only add the classic block in WP Context _shortcode__WEBPACK_IMPORTED_MODULE_40__, _archives__WEBPACK_IMPORTED_MODULE_11__, _audio__WEBPACK_IMPORTED_MODULE_12__, _button__WEBPACK_IMPORTED_MODULE_13__, _calendar__WEBPACK_IMPORTED_MODULE_14__, _categories__WEBPACK_IMPORTED_MODULE_15__, _code__WEBPACK_IMPORTED_MODULE_16__, _columns__WEBPACK_IMPORTED_MODULE_17__, _column__WEBPACK_IMPORTED_MODULE_18__, _cover__WEBPACK_IMPORTED_MODULE_19__, _embed__WEBPACK_IMPORTED_MODULE_20__].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_20__["common"]), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_20__["others"]), [_file__WEBPACK_IMPORTED_MODULE_21__, _group__WEBPACK_IMPORTED_MODULE_38__, window.wp && window.wp.oldEditor ? _classic__WEBPACK_IMPORTED_MODULE_48__ : null, // Only add the classic block in WP Context
_html__WEBPACK_IMPORTED_MODULE_22__, _media_text__WEBPACK_IMPORTED_MODULE_23__, _latest_comments__WEBPACK_IMPORTED_MODULE_26__, _latest_posts__WEBPACK_IMPORTED_MODULE_27__, _missing__WEBPACK_IMPORTED_MODULE_30__, _more__WEBPACK_IMPORTED_MODULE_31__, _nextpage__WEBPACK_IMPORTED_MODULE_32__, _preformatted__WEBPACK_IMPORTED_MODULE_33__, _pullquote__WEBPACK_IMPORTED_MODULE_34__, _rss__WEBPACK_IMPORTED_MODULE_36__, _search__WEBPACK_IMPORTED_MODULE_37__, _separator__WEBPACK_IMPORTED_MODULE_39__, _block__WEBPACK_IMPORTED_MODULE_35__, _social_links__WEBPACK_IMPORTED_MODULE_49__], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_social_link__WEBPACK_IMPORTED_MODULE_50__[/* sites */ "a"]), [_spacer__WEBPACK_IMPORTED_MODULE_41__, _subhead__WEBPACK_IMPORTED_MODULE_42__, _table__WEBPACK_IMPORTED_MODULE_43__, _tag_cloud__WEBPACK_IMPORTED_MODULE_47__, _text_columns__WEBPACK_IMPORTED_MODULE_44__, _verse__WEBPACK_IMPORTED_MODULE_45__, _video__WEBPACK_IMPORTED_MODULE_46__]).forEach(registerBlock); _html__WEBPACK_IMPORTED_MODULE_22__, _media_text__WEBPACK_IMPORTED_MODULE_23__, _latest_comments__WEBPACK_IMPORTED_MODULE_26__, _latest_posts__WEBPACK_IMPORTED_MODULE_27__, _missing__WEBPACK_IMPORTED_MODULE_30__, _more__WEBPACK_IMPORTED_MODULE_31__, _nextpage__WEBPACK_IMPORTED_MODULE_32__, _preformatted__WEBPACK_IMPORTED_MODULE_33__, _pullquote__WEBPACK_IMPORTED_MODULE_34__, _rss__WEBPACK_IMPORTED_MODULE_36__, _search__WEBPACK_IMPORTED_MODULE_37__, _separator__WEBPACK_IMPORTED_MODULE_39__, _block__WEBPACK_IMPORTED_MODULE_35__, _spacer__WEBPACK_IMPORTED_MODULE_41__, _subhead__WEBPACK_IMPORTED_MODULE_42__, _table__WEBPACK_IMPORTED_MODULE_43__, _tag_cloud__WEBPACK_IMPORTED_MODULE_47__, _text_columns__WEBPACK_IMPORTED_MODULE_44__, _verse__WEBPACK_IMPORTED_MODULE_45__, _video__WEBPACK_IMPORTED_MODULE_46__]).forEach(registerBlock);
Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["setDefaultBlockName"])(_paragraph__WEBPACK_IMPORTED_MODULE_6__["name"]); Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["setDefaultBlockName"])(_paragraph__WEBPACK_IMPORTED_MODULE_6__["name"]);
if (window.wp && window.wp.oldEditor) { if (window.wp && window.wp.oldEditor) {
@ -26747,7 +27089,7 @@ var registerCoreBlocks = function registerCoreBlocks() {
var __experimentalRegisterExperimentalCoreBlocks = process.env.GUTENBERG_PHASE === 2 ? function (settings) { var __experimentalRegisterExperimentalCoreBlocks = process.env.GUTENBERG_PHASE === 2 ? function (settings) {
var __experimentalEnableLegacyWidgetBlock = settings.__experimentalEnableLegacyWidgetBlock, var __experimentalEnableLegacyWidgetBlock = settings.__experimentalEnableLegacyWidgetBlock,
__experimentalEnableMenuBlock = settings.__experimentalEnableMenuBlock; __experimentalEnableMenuBlock = settings.__experimentalEnableMenuBlock;
[__experimentalEnableLegacyWidgetBlock ? _legacy_widget__WEBPACK_IMPORTED_MODULE_28__ : null, __experimentalEnableMenuBlock ? _navigation_menu__WEBPACK_IMPORTED_MODULE_24__ : null, __experimentalEnableMenuBlock ? _navigation_menu_item__WEBPACK_IMPORTED_MODULE_25__ : null].forEach(registerBlock); [__experimentalEnableLegacyWidgetBlock ? _legacy_widget__WEBPACK_IMPORTED_MODULE_28__ : null, __experimentalEnableMenuBlock ? _navigation_menu__WEBPACK_IMPORTED_MODULE_24__ : null, __experimentalEnableMenuBlock ? _navigation_menu_item__WEBPACK_IMPORTED_MODULE_25__ : null, _social_links__WEBPACK_IMPORTED_MODULE_49__].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_social_link__WEBPACK_IMPORTED_MODULE_50__[/* sites */ "a"])).forEach(registerBlock);
} : undefined; } : undefined;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(96))) /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(96)))

File diff suppressed because one or more lines are too long

View File

@ -5455,14 +5455,14 @@ function _iterableToArray(iter) {
/***/ }), /***/ }),
/***/ 34: /***/ 35:
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["wp"]["blob"]; }()); (function() { module.exports = this["wp"]["blob"]; }());
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -5986,7 +5986,7 @@ function reducer_categories() {
})); }));
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/selectors.js // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/selectors.js
/** /**
@ -7379,6 +7379,20 @@ function switchToBlockType(blocks, name) {
return Object(external_this_wp_hooks_["applyFilters"])('blocks.switchToBlockType.transformedBlock', transformedBlock, blocks); return Object(external_this_wp_hooks_["applyFilters"])('blocks.switchToBlockType.transformedBlock', transformedBlock, blocks);
}); });
} }
/**
* Create a block object from the example API.
*
* @param {string} name
* @param {Object} example
*
* @return {Object} block.
*/
var factory_getBlockFromExample = function getBlockFromExample(name, example) {
return createBlock(name, example.attributes, Object(external_lodash_["map"])(example.innerBlocks, function (innerBlock) {
return getBlockFromExample(innerBlock.name, innerBlock);
}));
};
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(23); var slicedToArray = __webpack_require__(23);
@ -11199,7 +11213,7 @@ function ms_list_converter_isList(node) {
}); });
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js
@ -11869,6 +11883,7 @@ function synchronizeBlocksWithTemplate() {
/* concated harmony reexport switchToBlockType */__webpack_require__.d(__webpack_exports__, "switchToBlockType", function() { return switchToBlockType; }); /* concated harmony reexport switchToBlockType */__webpack_require__.d(__webpack_exports__, "switchToBlockType", function() { return switchToBlockType; });
/* concated harmony reexport getBlockTransforms */__webpack_require__.d(__webpack_exports__, "getBlockTransforms", function() { return getBlockTransforms; }); /* concated harmony reexport getBlockTransforms */__webpack_require__.d(__webpack_exports__, "getBlockTransforms", function() { return getBlockTransforms; });
/* concated harmony reexport findTransform */__webpack_require__.d(__webpack_exports__, "findTransform", function() { return findTransform; }); /* concated harmony reexport findTransform */__webpack_require__.d(__webpack_exports__, "findTransform", function() { return findTransform; });
/* concated harmony reexport getBlockFromExample */__webpack_require__.d(__webpack_exports__, "getBlockFromExample", function() { return factory_getBlockFromExample; });
/* concated harmony reexport parse */__webpack_require__.d(__webpack_exports__, "parse", function() { return parser; }); /* concated harmony reexport parse */__webpack_require__.d(__webpack_exports__, "parse", function() { return parser; });
/* concated harmony reexport getBlockAttributes */__webpack_require__.d(__webpack_exports__, "getBlockAttributes", function() { return getBlockAttributes; }); /* concated harmony reexport getBlockAttributes */__webpack_require__.d(__webpack_exports__, "getBlockAttributes", function() { return getBlockAttributes; });
/* concated harmony reexport parseWithAttributeSchema */__webpack_require__.d(__webpack_exports__, "parseWithAttributeSchema", function() { return parseWithAttributeSchema; }); /* concated harmony reexport parseWithAttributeSchema */__webpack_require__.d(__webpack_exports__, "parseWithAttributeSchema", function() { return parseWithAttributeSchema; });

File diff suppressed because one or more lines are too long

View File

@ -555,7 +555,8 @@ function _typeof(obj) {
/***/ }), /***/ }),
/* 32 */, /* 32 */,
/* 33 */ /* 33 */,
/* 34 */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
/** /**
@ -573,7 +574,6 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
/***/ }), /***/ }),
/* 34 */,
/* 35 */, /* 35 */,
/* 36 */, /* 36 */,
/* 37 */ /* 37 */
@ -2908,7 +2908,7 @@ var _object = __webpack_require__(50);
var _object2 = _interopRequireDefault(_object); var _object2 = _interopRequireDefault(_object);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2948,7 +2948,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -5726,7 +5726,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -5834,7 +5834,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -5868,7 +5868,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -6068,7 +6068,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -6089,7 +6089,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -6396,7 +6396,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -6718,7 +6718,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -7566,7 +7566,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -8245,7 +8245,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -10633,7 +10633,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -11082,7 +11082,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -11765,7 +11765,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -11906,7 +11906,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -11927,7 +11927,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -11948,7 +11948,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -12140,7 +12140,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -12629,7 +12629,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -13087,7 +13087,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -13777,7 +13777,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -15385,7 +15385,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -16421,7 +16421,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -16560,7 +16560,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -16924,7 +16924,7 @@ var external_React_ = __webpack_require__(28);
var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_); var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
// EXTERNAL MODULE: ./node_modules/prop-types/index.js // EXTERNAL MODULE: ./node_modules/prop-types/index.js
var prop_types = __webpack_require__(33); var prop_types = __webpack_require__(34);
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
// CONCATENATED MODULE: ./node_modules/react-portal/es/utils.js // CONCATENATED MODULE: ./node_modules/react-portal/es/utils.js
@ -19371,23 +19371,28 @@ var getStringSize = fast_memoize_1.default(function (n) {
} }
return n + "px"; return n + "px";
}); });
var getPixelSize = function (size, parentSize) {
if (size && typeof size === 'string') {
if (endsWith(size, '%')) {
var ratio = Number(size.replace('%', '')) / 100;
return parentSize * ratio;
}
else if (endsWith(size, 'vw')) {
var ratio = Number(size.replace('vw', '')) / 100;
return window.innerWidth * ratio;
}
else if (endsWith(size, 'vh')) {
var ratio = Number(size.replace('vh', '')) / 100;
return window.innerHeight * ratio;
}
}
return size;
};
var calculateNewMax = fast_memoize_1.default(function (parentSize, maxWidth, maxHeight, minWidth, minHeight) { var calculateNewMax = fast_memoize_1.default(function (parentSize, maxWidth, maxHeight, minWidth, minHeight) {
if (maxWidth && typeof maxWidth === 'string' && endsWith(maxWidth, '%')) { maxWidth = getPixelSize(maxWidth, parentSize.width);
var ratio = Number(maxWidth.replace('%', '')) / 100; maxHeight = getPixelSize(maxHeight, parentSize.height);
maxWidth = parentSize.width * ratio; minWidth = getPixelSize(minWidth, parentSize.width);
} minHeight = getPixelSize(minHeight, parentSize.height);
if (maxHeight && typeof maxHeight === 'string' && endsWith(maxHeight, '%')) {
var ratio = Number(maxHeight.replace('%', '')) / 100;
maxHeight = parentSize.height * ratio;
}
if (minWidth && typeof minWidth === 'string' && endsWith(minWidth, '%')) {
var ratio = Number(minWidth.replace('%', '')) / 100;
minWidth = parentSize.width * ratio;
}
if (minHeight && typeof minHeight === 'string' && endsWith(minHeight, '%')) {
var ratio = Number(minHeight.replace('%', '')) / 100;
minHeight = parentSize.height * ratio;
}
return { return {
maxWidth: typeof maxWidth === 'undefined' ? undefined : Number(maxWidth), maxWidth: typeof maxWidth === 'undefined' ? undefined : Number(maxWidth),
maxHeight: typeof maxHeight === 'undefined' ? undefined : Number(maxHeight), maxHeight: typeof maxHeight === 'undefined' ? undefined : Number(maxHeight),
@ -19461,13 +19466,6 @@ var Resizable = /** @class */ (function (_super) {
_this.onResizeStart = _this.onResizeStart.bind(_this); _this.onResizeStart = _this.onResizeStart.bind(_this);
_this.onMouseMove = _this.onMouseMove.bind(_this); _this.onMouseMove = _this.onMouseMove.bind(_this);
_this.onMouseUp = _this.onMouseUp.bind(_this); _this.onMouseUp = _this.onMouseUp.bind(_this);
if (typeof window !== 'undefined') {
window.addEventListener('mouseup', _this.onMouseUp);
window.addEventListener('mousemove', _this.onMouseMove);
window.addEventListener('mouseleave', _this.onMouseUp);
window.addEventListener('touchmove', _this.onMouseMove);
window.addEventListener('touchend', _this.onMouseUp);
}
return _this; return _this;
} }
Object.defineProperty(Resizable.prototype, "parentNode", { Object.defineProperty(Resizable.prototype, "parentNode", {
@ -19587,6 +19585,24 @@ var Resizable = /** @class */ (function (_super) {
this.base.style.minWidth = minWidth; this.base.style.minWidth = minWidth;
return size; return size;
}; };
Resizable.prototype.bindEvents = function () {
if (typeof window !== 'undefined') {
window.addEventListener('mouseup', this.onMouseUp);
window.addEventListener('mousemove', this.onMouseMove);
window.addEventListener('mouseleave', this.onMouseUp);
window.addEventListener('touchmove', this.onMouseMove);
window.addEventListener('touchend', this.onMouseUp);
}
};
Resizable.prototype.unbindEvents = function () {
if (typeof window !== 'undefined') {
window.removeEventListener('mouseup', this.onMouseUp);
window.removeEventListener('mousemove', this.onMouseMove);
window.removeEventListener('mouseleave', this.onMouseUp);
window.removeEventListener('touchmove', this.onMouseMove);
window.removeEventListener('touchend', this.onMouseUp);
}
};
Resizable.prototype.componentDidMount = function () { Resizable.prototype.componentDidMount = function () {
this.setState({ this.setState({
width: this.state.width || this.size.width, width: this.state.width || this.size.width,
@ -19616,11 +19632,7 @@ var Resizable = /** @class */ (function (_super) {
}; };
Resizable.prototype.componentWillUnmount = function () { Resizable.prototype.componentWillUnmount = function () {
if (typeof window !== 'undefined') { if (typeof window !== 'undefined') {
window.removeEventListener('mouseup', this.onMouseUp); this.unbindEvents();
window.removeEventListener('mousemove', this.onMouseMove);
window.removeEventListener('mouseleave', this.onMouseUp);
window.removeEventListener('touchmove', this.onMouseMove);
window.removeEventListener('touchend', this.onMouseUp);
var parent_1 = this.parentNode; var parent_1 = this.parentNode;
if (!this.base || !parent_1) { if (!this.base || !parent_1) {
return; return;
@ -19788,6 +19800,7 @@ var Resizable = /** @class */ (function (_super) {
typeof this.props.lockAspectRatio === 'number' ? this.props.lockAspectRatio : this.size.width / this.size.height; typeof this.props.lockAspectRatio === 'number' ? this.props.lockAspectRatio : this.size.width / this.size.height;
// For boundary // For boundary
this.setBoundingClientRect(); this.setBoundingClientRect();
this.bindEvents();
this.setState({ this.setState({
original: { original: {
x: clientX, x: clientX,
@ -19890,6 +19903,7 @@ var Resizable = /** @class */ (function (_super) {
if (this.props.size) { if (this.props.size) {
this.setState(this.props.size); this.setState(this.props.size);
} }
this.unbindEvents();
this.setState({ isResizing: false, resizeCursor: 'auto' }); this.setState({ isResizing: false, resizeCursor: 'auto' });
}; };
Resizable.prototype.updateSize = function (size) { Resizable.prototype.updateSize = function (size) {
@ -22749,7 +22763,7 @@ Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -22850,7 +22864,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -24344,7 +24358,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -24371,7 +24385,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
var DISPLAY = { var DISPLAY = {
BLOCK: 'block', BLOCK: 'block',
FLEX: 'flex', FLEX: 'flex',
INLINE_BLOCK: 'inline-block' INLINE: 'inline',
INLINE_BLOCK: 'inline-block',
CONTENTS: 'contents'
}; };
var propTypes = (0, _airbnbPropTypes.forbidExtraProps)({ var propTypes = (0, _airbnbPropTypes.forbidExtraProps)({
@ -24426,12 +24442,13 @@ var OutsideClickHandler = function (_React$Component) {
return componentDidMount; return componentDidMount;
}() }()
}, { }, {
key: 'componentWillReceiveProps', key: 'componentDidUpdate',
value: function () { value: function () {
function componentWillReceiveProps(_ref2) { function componentDidUpdate(_ref2) {
var disabled = _ref2.disabled, var prevDisabled = _ref2.disabled;
useCapture = _ref2.useCapture; var _props2 = this.props,
var prevDisabled = this.props.disabled; disabled = _props2.disabled,
useCapture = _props2.useCapture;
if (prevDisabled !== disabled) { if (prevDisabled !== disabled) {
if (disabled) { if (disabled) {
@ -24442,7 +24459,7 @@ var OutsideClickHandler = function (_React$Component) {
} }
} }
return componentWillReceiveProps; return componentDidUpdate;
}() }()
}, { }, {
key: 'componentWillUnmount', key: 'componentWillUnmount',
@ -24534,9 +24551,9 @@ var OutsideClickHandler = function (_React$Component) {
key: 'render', key: 'render',
value: function () { value: function () {
function render() { function render() {
var _props2 = this.props, var _props3 = this.props,
children = _props2.children, children = _props3.children,
display = _props2.display; display = _props3.display;
return _react2['default'].createElement( return _react2['default'].createElement(
@ -25186,7 +25203,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -25570,7 +25587,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -26076,7 +26093,7 @@ var _react = __webpack_require__(28);
var _react2 = _interopRequireDefault(_react); var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(33); var _propTypes = __webpack_require__(34);
var _propTypes2 = _interopRequireDefault(_propTypes); var _propTypes2 = _interopRequireDefault(_propTypes);
@ -27552,179 +27569,6 @@ var external_this_wp_richText_ = __webpack_require__(22);
// EXTERNAL MODULE: external {"this":["wp","dom"]} // EXTERNAL MODULE: external {"this":["wp","dom"]}
var external_this_wp_dom_ = __webpack_require__(25); var external_this_wp_dom_ = __webpack_require__(25);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(18);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js
/**
* External dependencies
*/
/**
* WordPress dependencies
*/
/**
* Input types which are classified as button types, for use in considering
* whether element is a (focus-normalized) button.
*
* @type {string[]}
*/
var INPUT_BUTTON_TYPES = ['button', 'submit'];
/**
* Returns true if the given element is a button element subject to focus
* normalization, or false otherwise.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
*
* @param {Element} element Element to test.
*
* @return {boolean} Whether element is a button.
*/
function isFocusNormalizedButton(element) {
switch (element.nodeName) {
case 'A':
case 'BUTTON':
return true;
case 'INPUT':
return Object(external_lodash_["includes"])(INPUT_BUTTON_TYPES, element.type);
}
return false;
}
/* harmony default export */ var with_focus_outside = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) {
return (
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(_class, _Component);
function _class() {
var _this;
Object(classCallCheck["a" /* default */])(this, _class);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments));
_this.bindNode = _this.bindNode.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.cancelBlurCheck = _this.cancelBlurCheck.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.queueBlurCheck = _this.queueBlurCheck.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.normalizeButtonFocus = _this.normalizeButtonFocus.bind(Object(assertThisInitialized["a" /* default */])(_this));
return _this;
}
Object(createClass["a" /* default */])(_class, [{
key: "componentWillUnmount",
value: function componentWillUnmount() {
this.cancelBlurCheck();
}
}, {
key: "bindNode",
value: function bindNode(node) {
if (node) {
this.node = node;
} else {
delete this.node;
this.cancelBlurCheck();
}
}
}, {
key: "queueBlurCheck",
value: function queueBlurCheck(event) {
var _this2 = this;
// React does not allow using an event reference asynchronously
// due to recycling behavior, except when explicitly persisted.
event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`.
if (this.preventBlurCheck) {
return;
}
this.blurCheckTimeout = setTimeout(function () {
// If document is not focused then focus should remain
// inside the wrapped component and therefore we cancel
// this blur event thereby leaving focus in place.
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus.
if (!document.hasFocus()) {
event.preventDefault();
return;
}
if ('function' === typeof _this2.node.handleFocusOutside) {
_this2.node.handleFocusOutside(event);
}
}, 0);
}
}, {
key: "cancelBlurCheck",
value: function cancelBlurCheck() {
clearTimeout(this.blurCheckTimeout);
}
/**
* Handles a mousedown or mouseup event to respectively assign and
* unassign a flag for preventing blur check on button elements. Some
* browsers, namely Firefox and Safari, do not emit a focus event on
* button elements when clicked, while others do. The logic here
* intends to normalize this as treating click on buttons as focus.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
*
* @param {MouseEvent} event Event for mousedown or mouseup.
*/
}, {
key: "normalizeButtonFocus",
value: function normalizeButtonFocus(event) {
var type = event.type,
target = event.target;
var isInteractionEnd = Object(external_lodash_["includes"])(['mouseup', 'touchend'], type);
if (isInteractionEnd) {
this.preventBlurCheck = false;
} else if (isFocusNormalizedButton(target)) {
this.preventBlurCheck = true;
}
}
}, {
key: "render",
value: function render() {
// Disable reason: See `normalizeButtonFocus` for browser-specific
// focus event normalization.
/* eslint-disable jsx-a11y/no-static-element-interactions */
return Object(external_this_wp_element_["createElement"])("div", {
onFocus: this.cancelBlurCheck,
onMouseDown: this.normalizeButtonFocus,
onMouseUp: this.normalizeButtonFocus,
onTouchStart: this.normalizeButtonFocus,
onTouchEnd: this.normalizeButtonFocus,
onBlur: this.queueBlurCheck
}, Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({
ref: this.bindNode
}, this.props)));
/* eslint-enable jsx-a11y/no-static-element-interactions */
}
}]);
return _class;
}(external_this_wp_element_["Component"])
);
}, 'withFocusOutside'));
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
var objectWithoutProperties = __webpack_require__(21); var objectWithoutProperties = __webpack_require__(21);
@ -27784,6 +27628,9 @@ function Button(props, ref) {
} }
/* harmony default export */ var build_module_button = (Object(external_this_wp_element_["forwardRef"])(Button)); /* harmony default export */ var build_module_button = (Object(external_this_wp_element_["forwardRef"])(Button));
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(18);
// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]}
var external_this_wp_isShallowEqual_ = __webpack_require__(41); var external_this_wp_isShallowEqual_ = __webpack_require__(41);
var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_);
@ -28289,6 +28136,176 @@ var withConstrainedTabbing = Object(external_this_wp_compose_["createHigherOrder
}, 'withConstrainedTabbing'); }, 'withConstrainedTabbing');
/* harmony default export */ var with_constrained_tabbing = (withConstrainedTabbing); /* harmony default export */ var with_constrained_tabbing = (withConstrainedTabbing);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js
/**
* External dependencies
*/
/**
* WordPress dependencies
*/
/**
* Input types which are classified as button types, for use in considering
* whether element is a (focus-normalized) button.
*
* @type {string[]}
*/
var INPUT_BUTTON_TYPES = ['button', 'submit'];
/**
* Returns true if the given element is a button element subject to focus
* normalization, or false otherwise.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
*
* @param {Element} element Element to test.
*
* @return {boolean} Whether element is a button.
*/
function isFocusNormalizedButton(element) {
switch (element.nodeName) {
case 'A':
case 'BUTTON':
return true;
case 'INPUT':
return Object(external_lodash_["includes"])(INPUT_BUTTON_TYPES, element.type);
}
return false;
}
/* harmony default export */ var with_focus_outside = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) {
return (
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(_class, _Component);
function _class() {
var _this;
Object(classCallCheck["a" /* default */])(this, _class);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments));
_this.bindNode = _this.bindNode.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.cancelBlurCheck = _this.cancelBlurCheck.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.queueBlurCheck = _this.queueBlurCheck.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.normalizeButtonFocus = _this.normalizeButtonFocus.bind(Object(assertThisInitialized["a" /* default */])(_this));
return _this;
}
Object(createClass["a" /* default */])(_class, [{
key: "componentWillUnmount",
value: function componentWillUnmount() {
this.cancelBlurCheck();
}
}, {
key: "bindNode",
value: function bindNode(node) {
if (node) {
this.node = node;
} else {
delete this.node;
this.cancelBlurCheck();
}
}
}, {
key: "queueBlurCheck",
value: function queueBlurCheck(event) {
var _this2 = this;
// React does not allow using an event reference asynchronously
// due to recycling behavior, except when explicitly persisted.
event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`.
if (this.preventBlurCheck) {
return;
}
this.blurCheckTimeout = setTimeout(function () {
// If document is not focused then focus should remain
// inside the wrapped component and therefore we cancel
// this blur event thereby leaving focus in place.
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus.
if (!document.hasFocus()) {
event.preventDefault();
return;
}
if ('function' === typeof _this2.node.handleFocusOutside) {
_this2.node.handleFocusOutside(event);
}
}, 0);
}
}, {
key: "cancelBlurCheck",
value: function cancelBlurCheck() {
clearTimeout(this.blurCheckTimeout);
}
/**
* Handles a mousedown or mouseup event to respectively assign and
* unassign a flag for preventing blur check on button elements. Some
* browsers, namely Firefox and Safari, do not emit a focus event on
* button elements when clicked, while others do. The logic here
* intends to normalize this as treating click on buttons as focus.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
*
* @param {MouseEvent} event Event for mousedown or mouseup.
*/
}, {
key: "normalizeButtonFocus",
value: function normalizeButtonFocus(event) {
var type = event.type,
target = event.target;
var isInteractionEnd = Object(external_lodash_["includes"])(['mouseup', 'touchend'], type);
if (isInteractionEnd) {
this.preventBlurCheck = false;
} else if (isFocusNormalizedButton(target)) {
this.preventBlurCheck = true;
}
}
}, {
key: "render",
value: function render() {
// Disable reason: See `normalizeButtonFocus` for browser-specific
// focus event normalization.
/* eslint-disable jsx-a11y/no-static-element-interactions */
return Object(external_this_wp_element_["createElement"])("div", {
onFocus: this.cancelBlurCheck,
onMouseDown: this.normalizeButtonFocus,
onMouseUp: this.normalizeButtonFocus,
onTouchStart: this.normalizeButtonFocus,
onTouchEnd: this.normalizeButtonFocus,
onBlur: this.queueBlurCheck
}, Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({
ref: this.bindNode
}, this.props)));
/* eslint-enable jsx-a11y/no-static-element-interactions */
}
}]);
return _class;
}(external_this_wp_element_["Component"])
);
}, 'withFocusOutside'));
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/detect-outside.js // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/detect-outside.js
@ -31090,7 +31107,6 @@ var external_this_wp_a11y_ = __webpack_require__(46);
/** /**
* A raw completer option. * A raw completer option.
* *
@ -31234,7 +31250,6 @@ function (_Component) {
Object(classCallCheck["a" /* default */])(this, Autocomplete); Object(classCallCheck["a" /* default */])(this, Autocomplete);
_this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Autocomplete).apply(this, arguments)); _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Autocomplete).apply(this, arguments));
_this.bindNode = _this.bindNode.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.select = _this.select.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.select = _this.select.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.reset = _this.reset.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.reset = _this.reset.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.resetWhenSuppressed = _this.resetWhenSuppressed.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.resetWhenSuppressed = _this.resetWhenSuppressed.bind(Object(assertThisInitialized["a" /* default */])(_this));
@ -31245,11 +31260,6 @@ function (_Component) {
} }
Object(createClass["a" /* default */])(Autocomplete, [{ Object(createClass["a" /* default */])(Autocomplete, [{
key: "bindNode",
value: function bindNode(node) {
this.node = node;
}
}, {
key: "insertCompletion", key: "insertCompletion",
value: function insertCompletion(replacement) { value: function insertCompletion(replacement) {
var _this$state = this.state, var _this$state = this.state,
@ -31304,12 +31314,7 @@ function (_Component) {
}, { }, {
key: "reset", key: "reset",
value: function reset() { value: function reset() {
var isMounted = !!this.node; // Autocompletions may replace the block containing this component, this.setState(this.constructor.getInitialState());
// so we make sure it is mounted before resetting the state.
if (isMounted) {
this.setState(this.constructor.getInitialState());
}
} }
}, { }, {
key: "resetWhenSuppressed", key: "resetWhenSuppressed",
@ -31322,11 +31327,6 @@ function (_Component) {
this.reset(); this.reset();
} }
} }
}, {
key: "handleFocusOutside",
value: function handleFocusOutside() {
this.reset();
}
}, { }, {
key: "announce", key: "announce",
value: function announce(filteredOptions) { value: function announce(filteredOptions) {
@ -31479,31 +31479,14 @@ function (_Component) {
event.preventDefault(); event.preventDefault();
event.stopPropagation();
}
}, {
key: "toggleKeyEvents",
value: function toggleKeyEvents(isListening) {
// This exists because we must capture ENTER key presses before RichText.
// It seems that react fires the simulated capturing events after the
// native browser event has already bubbled so we can't stopPropagation
// and avoid RichText getting the event from TinyMCE, hence we must
// register a native event handler.
var handler = isListening ? 'addEventListener' : 'removeEventListener';
this.node[handler]('keydown', this.handleKeyDown, true);
} }
}, { }, {
key: "componentDidUpdate", key: "componentDidUpdate",
value: function componentDidUpdate(prevProps, prevState) { value: function componentDidUpdate(prevProps) {
var _this$props2 = this.props, var _this$props2 = this.props,
record = _this$props2.record, record = _this$props2.record,
completers = _this$props2.completers; completers = _this$props2.completers;
var prevRecord = prevProps.record; var prevRecord = prevProps.record;
var prevOpen = prevState.open;
if (!this.state.open !== !prevOpen) {
this.toggleKeyEvents(!!this.state.open);
}
if (Object(external_this_wp_richText_["isCollapsed"])(record)) { if (Object(external_this_wp_richText_["isCollapsed"])(record)) {
var text = Object(external_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, 0))); var text = Object(external_lodash_["deburr"])(Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(record, 0)));
@ -31581,7 +31564,6 @@ function (_Component) {
}, { }, {
key: "componentWillUnmount", key: "componentWillUnmount",
value: function componentWillUnmount() { value: function componentWillUnmount() {
this.toggleKeyEvents(false);
this.debouncedLoadOptions.cancel(); this.debouncedLoadOptions.cancel();
} }
}, { }, {
@ -31591,7 +31573,8 @@ function (_Component) {
var _this$props3 = this.props, var _this$props3 = this.props,
children = _this$props3.children, children = _this$props3.children,
instanceId = _this$props3.instanceId; instanceId = _this$props3.instanceId,
isSelected = _this$props3.isSelected;
var _this$state6 = this.state, var _this$state6 = this.state,
open = _this$state6.open, open = _this$state6.open,
suppress = _this$state6.suppress, suppress = _this$state6.suppress,
@ -31608,19 +31591,13 @@ function (_Component) {
var isExpanded = suppress !== idx && filteredOptions.length > 0; var isExpanded = suppress !== idx && filteredOptions.length > 0;
var listBoxId = isExpanded ? "components-autocomplete-listbox-".concat(instanceId) : null; var listBoxId = isExpanded ? "components-autocomplete-listbox-".concat(instanceId) : null;
var activeId = isExpanded ? "components-autocomplete-item-".concat(instanceId, "-").concat(selectedKey) : null; // Disable reason: Clicking the editor should reset the autocomplete when the menu is suppressed var activeId = isExpanded ? "components-autocomplete-item-".concat(instanceId, "-").concat(selectedKey) : null;
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, children({
/* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
return Object(external_this_wp_element_["createElement"])("div", {
ref: this.bindNode,
onClick: this.resetWhenSuppressed,
className: "components-autocomplete"
}, children({
isExpanded: isExpanded, isExpanded: isExpanded,
listBoxId: listBoxId, listBoxId: listBoxId,
activeId: activeId activeId: activeId,
}), isExpanded && Object(external_this_wp_element_["createElement"])(popover, { onKeyDown: this.handleKeyDown
}), isExpanded && isSelected && Object(external_this_wp_element_["createElement"])(popover, {
focusOnMount: false, focusOnMount: false,
onClose: this.reset, onClose: this.reset,
position: "top right", position: "top right",
@ -31645,13 +31622,12 @@ function (_Component) {
} }
}, option.label); }, option.label);
})))); }))));
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
} }
}]); }]);
return Autocomplete; return Autocomplete;
}(external_this_wp_element_["Component"]); }(external_this_wp_element_["Component"]);
/* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([with_spoken_messages, external_this_wp_compose_["withInstanceId"], with_focus_outside])(autocomplete_Autocomplete)); /* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([with_spoken_messages, external_this_wp_compose_["withInstanceId"]])(autocomplete_Autocomplete));
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js

File diff suppressed because one or more lines are too long

View File

@ -230,7 +230,7 @@ function _iterableToArray(iter) {
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -546,6 +546,7 @@ __webpack_require__.d(build_module_actions_namespaceObject, "receiveEmbedPreview
__webpack_require__.d(build_module_actions_namespaceObject, "editEntityRecord", function() { return editEntityRecord; }); __webpack_require__.d(build_module_actions_namespaceObject, "editEntityRecord", function() { return editEntityRecord; });
__webpack_require__.d(build_module_actions_namespaceObject, "undo", function() { return undo; }); __webpack_require__.d(build_module_actions_namespaceObject, "undo", function() { return undo; });
__webpack_require__.d(build_module_actions_namespaceObject, "redo", function() { return redo; }); __webpack_require__.d(build_module_actions_namespaceObject, "redo", function() { return redo; });
__webpack_require__.d(build_module_actions_namespaceObject, "__unstableCreateUndoLevel", function() { return __unstableCreateUndoLevel; });
__webpack_require__.d(build_module_actions_namespaceObject, "saveEntityRecord", function() { return saveEntityRecord; }); __webpack_require__.d(build_module_actions_namespaceObject, "saveEntityRecord", function() { return saveEntityRecord; });
__webpack_require__.d(build_module_actions_namespaceObject, "saveEditedEntityRecord", function() { return saveEditedEntityRecord; }); __webpack_require__.d(build_module_actions_namespaceObject, "saveEditedEntityRecord", function() { return saveEditedEntityRecord; });
__webpack_require__.d(build_module_actions_namespaceObject, "receiveUploadPermissions", function() { return receiveUploadPermissions; }); __webpack_require__.d(build_module_actions_namespaceObject, "receiveUploadPermissions", function() { return receiveUploadPermissions; });
@ -824,7 +825,7 @@ function receiveQueriedItems(items) {
} }
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js // EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js
var equivalent_key_map = __webpack_require__(79); var equivalent_key_map = __webpack_require__(79);
@ -1427,6 +1428,17 @@ function redo() {
} }
}, _marked3); }, _marked3);
} }
/**
* Forces the creation of a new undo level.
*
* @return {Object} Action object.
*/
function __unstableCreateUndoLevel() {
return {
type: 'CREATE_UNDO_LEVEL'
};
}
/** /**
* Action triggered to save an entity record. * Action triggered to save an entity record.
* *
@ -1446,6 +1458,8 @@ function saveEntityRecord(kind, name, record) {
recordId, recordId,
updatedRecord, updatedRecord,
error, error,
persistedEntity,
currentEdits,
path, path,
persistedRecord, persistedRecord,
currentUser, currentUser,
@ -1576,43 +1590,97 @@ function saveEntityRecord(kind, name, record) {
return receiveAutosaves(persistedRecord.id, updatedRecord); return receiveAutosaves(persistedRecord.id, updatedRecord);
case 38: case 38:
_context4.next = 47; _context4.next = 55;
break; break;
case 40: case 40:
// Auto drafts should be converted to drafts on explicit saves, // Auto drafts should be converted to drafts on explicit saves and we should not respect their default title,
// but some plugins break with this behavior so we can't filter it on the server. // but some plugins break with this behavior so we can't filter it on the server.
_data = record; _data = record;
if (kind === 'postType' && persistedRecord.status === 'auto-draft' && !_data.status) { if (kind === 'postType' && persistedRecord && persistedRecord.status === 'auto-draft') {
_data = Object(objectSpread["a" /* default */])({}, _data, { if (!_data.status) {
status: 'draft' _data = Object(objectSpread["a" /* default */])({}, _data, {
}); status: 'draft'
} });
}
if (!_data.title || _data.title === 'Auto Draft') {
_data = Object(objectSpread["a" /* default */])({}, _data, {
title: ''
});
}
} // We perform an optimistic update here to clear all the edits that
// will be persisted so that if the server filters them, the new
// filtered values are always accepted.
_context4.next = 44; _context4.next = 44;
return controls_select('getEntityRecord', kind, name, recordId);
case 44:
persistedEntity = _context4.sent;
_context4.next = 47;
return controls_select('getEntityRecordEdits', kind, name, recordId);
case 47:
currentEdits = _context4.sent;
_context4.next = 50;
return receiveEntityRecords(kind, name, Object(objectSpread["a" /* default */])({}, persistedEntity, _data), undefined, true);
case 50:
_context4.next = 52;
return apiFetch({ return apiFetch({
path: path, path: path,
method: recordId ? 'PUT' : 'POST', method: recordId ? 'PUT' : 'POST',
data: _data data: _data
}); });
case 44: case 52:
updatedRecord = _context4.sent; updatedRecord = _context4.sent;
_context4.next = 47; _context4.next = 55;
return receiveEntityRecords(kind, name, updatedRecord, undefined, true); return receiveEntityRecords(kind, name, updatedRecord, undefined, true);
case 47: case 55:
_context4.next = 52; _context4.next = 77;
break; break;
case 49: case 57:
_context4.prev = 49; _context4.prev = 57;
_context4.t0 = _context4["catch"](11); _context4.t0 = _context4["catch"](11);
error = _context4.t0; error = _context4.t0; // If we got to the point in the try block where we made an optimistic update,
// we need to roll it back here.
case 52: if (!(persistedEntity && currentEdits)) {
_context4.next = 54; _context4.next = 77;
break;
}
_context4.next = 63;
return receiveEntityRecords(kind, name, persistedEntity, undefined, true);
case 63:
_context4.t1 = editEntityRecord;
_context4.t2 = kind;
_context4.t3 = name;
_context4.t4 = recordId;
_context4.t5 = objectSpread["a" /* default */];
_context4.t6 = {};
_context4.t7 = currentEdits;
_context4.next = 72;
return controls_select('getEntityRecordEdits', kind, name, recordId);
case 72:
_context4.t8 = _context4.sent;
_context4.t9 = (0, _context4.t5)(_context4.t6, _context4.t7, _context4.t8);
_context4.t10 = {
undoIgnore: true
};
_context4.next = 77;
return (0, _context4.t1)(_context4.t2, _context4.t3, _context4.t4, _context4.t9, _context4.t10);
case 77:
_context4.next = 79;
return { return {
type: 'SAVE_ENTITY_RECORD_FINISH', type: 'SAVE_ENTITY_RECORD_FINISH',
kind: kind, kind: kind,
@ -1622,15 +1690,15 @@ function saveEntityRecord(kind, name, record) {
isAutosave: isAutosave isAutosave: isAutosave
}; };
case 54: case 79:
return _context4.abrupt("return", updatedRecord); return _context4.abrupt("return", updatedRecord);
case 55: case 80:
case "end": case "end":
return _context4.stop(); return _context4.stop();
} }
} }
}, _marked4, null, [[11, 49]]); }, _marked4, null, [[11, 57]]);
} }
/** /**
* Action triggered to save an entity record's edits. * Action triggered to save an entity record's edits.
@ -2392,12 +2460,20 @@ var reducer_entities = function entities() {
var UNDO_INITIAL_STATE = []; var UNDO_INITIAL_STATE = [];
UNDO_INITIAL_STATE.offset = 0; UNDO_INITIAL_STATE.offset = 0;
var lastEditAction;
function reducer_undo() { function reducer_undo() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : UNDO_INITIAL_STATE; var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : UNDO_INITIAL_STATE;
var action = arguments.length > 1 ? arguments[1] : undefined; var action = arguments.length > 1 ? arguments[1] : undefined;
switch (action.type) { switch (action.type) {
case 'EDIT_ENTITY_RECORD': case 'EDIT_ENTITY_RECORD':
case 'CREATE_UNDO_LEVEL':
if (action.type === 'CREATE_UNDO_LEVEL') {
action = lastEditAction;
} else {
lastEditAction = action;
}
if (action.meta.isUndo || action.meta.isRedo) { if (action.meta.isUndo || action.meta.isRedo) {
var _nextState = Object(toConsumableArray["a" /* default */])(state); var _nextState = Object(toConsumableArray["a" /* default */])(state);
@ -2766,7 +2842,7 @@ var getEntityRecordNonTransientEdits = Object(rememo["a" /* default */])(functio
*/ */
function hasEditsForEntityRecord(state, kind, name, recordId) { function hasEditsForEntityRecord(state, kind, name, recordId) {
return Object.keys(getEntityRecordNonTransientEdits(state, kind, name, recordId)).length > 0; return isSavingEntityRecord(state, kind, name, recordId) || Object.keys(getEntityRecordNonTransientEdits(state, kind, name, recordId)).length > 0;
} }
/** /**
* Returns the specified entity record, merged with its edits. * Returns the specified entity record, merged with its edits.

File diff suppressed because one or more lines are too long

View File

@ -1180,9 +1180,6 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
// EXTERNAL MODULE: external {"this":["wp","i18n"]} // EXTERNAL MODULE: external {"this":["wp","i18n"]}
var external_this_wp_i18n_ = __webpack_require__(1); var external_this_wp_i18n_ = __webpack_require__(1);
// EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
var external_this_wp_blockEditor_ = __webpack_require__(6);
// EXTERNAL MODULE: external {"this":["wp","plugins"]} // EXTERNAL MODULE: external {"this":["wp","plugins"]}
var external_this_wp_plugins_ = __webpack_require__(52); var external_this_wp_plugins_ = __webpack_require__(52);
@ -1383,6 +1380,9 @@ function FullscreenModeClose(_ref) {
}; };
})(FullscreenModeClose)); })(FullscreenModeClose));
// EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
var external_this_wp_blockEditor_ = __webpack_require__(6);
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js
@ -1412,7 +1412,8 @@ function HeaderToolbar(_ref) {
"aria-label": toolbarAriaLabel "aria-label": toolbarAriaLabel
}, Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Inserter"], { }, Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Inserter"], {
disabled: !showInserter, disabled: !showInserter,
position: "bottom right" position: "bottom right",
showInserterHelpPanel: true
}), Object(external_this_wp_element_["createElement"])(external_this_wp_nux_["DotTip"], { }), Object(external_this_wp_element_["createElement"])(external_this_wp_nux_["DotTip"], {
tipId: "core/editor.inserter" tipId: "core/editor.inserter"
}, Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!'))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryUndo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryRedo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["TableOfContents"], { }, Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!'))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryUndo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryRedo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["TableOfContents"], {
@ -4007,7 +4008,6 @@ function (_Component) {
/** /**
* Internal dependencies * Internal dependencies
*/ */
@ -4061,7 +4061,7 @@ function Layout(_ref) {
, ,
"aria-label": Object(external_this_wp_i18n_["__"])('Editor content'), "aria-label": Object(external_this_wp_i18n_["__"])('Editor content'),
tabIndex: "-1" tabIndex: "-1"
}, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorNotices"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PreserveScrollInReorder"], null), Object(external_this_wp_element_["createElement"])(components_keyboard_shortcuts, null), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal, null), Object(external_this_wp_element_["createElement"])(manage_blocks_modal, null), Object(external_this_wp_element_["createElement"])(options_modal, null), (mode === 'text' || !isRichEditingEnabled) && Object(external_this_wp_element_["createElement"])(text_editor, null), isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])(visual_editor, null), Object(external_this_wp_element_["createElement"])("div", { }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorNotices"], null), Object(external_this_wp_element_["createElement"])(components_keyboard_shortcuts, null), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal, null), Object(external_this_wp_element_["createElement"])(manage_blocks_modal, null), Object(external_this_wp_element_["createElement"])(options_modal, null), (mode === 'text' || !isRichEditingEnabled) && Object(external_this_wp_element_["createElement"])(text_editor, null), isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])(visual_editor, null), Object(external_this_wp_element_["createElement"])("div", {
className: "edit-post-layout__metaboxes" className: "edit-post-layout__metaboxes"
}, Object(external_this_wp_element_["createElement"])(meta_boxes, { }, Object(external_this_wp_element_["createElement"])(meta_boxes, {
location: "normal" location: "normal"
@ -5071,7 +5071,7 @@ function _typeof(obj) {
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -6182,7 +6182,7 @@ function metaBoxUpdatesSuccess() {
} }
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
/** /**
@ -6498,6 +6498,7 @@ var getMetaBoxContainer = function getMetaBoxContainer(location) {
var saveMetaboxUnsubscribe;
var effects = { var effects = {
SET_META_BOXES_PER_LOCATIONS: function SET_META_BOXES_PER_LOCATIONS(action, store) { SET_META_BOXES_PER_LOCATIONS: function SET_META_BOXES_PER_LOCATIONS(action, store) {
// Allow toggling metaboxes panels // Allow toggling metaboxes panels
@ -6518,9 +6519,14 @@ var effects = {
// //
// See: https://github.com/WordPress/WordPress/blob/5.1.1/wp-admin/includes/post.php#L2307-L2309 // See: https://github.com/WordPress/WordPress/blob/5.1.1/wp-admin/includes/post.php#L2307-L2309
var hasActiveMetaBoxes = Object(external_this_wp_data_["select"])('core/edit-post').hasMetaBoxes(); // Save metaboxes when performing a full save on the post. var hasActiveMetaBoxes = Object(external_this_wp_data_["select"])('core/edit-post').hasMetaBoxes(); // First remove any existing subscription in order to prevent multiple saves
Object(external_this_wp_data_["subscribe"])(function () { if (!!saveMetaboxUnsubscribe) {
saveMetaboxUnsubscribe();
} // Save metaboxes when performing a full save on the post.
saveMetaboxUnsubscribe = Object(external_this_wp_data_["subscribe"])(function () {
var isSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost(); var isSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost();
var isAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes on save completion, except for autosaves that are not a post preview. var isAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes on save completion, except for autosaves that are not a post preview.

File diff suppressed because one or more lines are too long

View File

@ -226,7 +226,7 @@ var __rest = (this && this.__rest) || function (s, e) {
}; };
exports.__esModule = true; exports.__esModule = true;
var React = __webpack_require__(28); var React = __webpack_require__(28);
var PropTypes = __webpack_require__(33); var PropTypes = __webpack_require__(34);
var autosize = __webpack_require__(133); var autosize = __webpack_require__(133);
var _getLineHeight = __webpack_require__(134); var _getLineHeight = __webpack_require__(134);
var getLineHeight = _getLineHeight; var getLineHeight = _getLineHeight;
@ -1110,6 +1110,13 @@ function _typeof(obj) {
/***/ }), /***/ }),
/***/ 33: /***/ 33:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["dataControls"]; }());
/***/ }),
/***/ 34:
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
/** /**
@ -1128,7 +1135,7 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -1408,13 +1415,6 @@ function isShallowEqual( a, b, fromIndex ) {
}); });
/***/ }),
/***/ 36:
/***/ (function(module, exports) {
(function() { module.exports = this["wp"]["dataControls"]; }());
/***/ }), /***/ }),
/***/ 365: /***/ 365:
@ -1631,6 +1631,7 @@ __webpack_require__.d(actions_namespaceObject, "savePost", function() { return s
__webpack_require__.d(actions_namespaceObject, "refreshPost", function() { return refreshPost; }); __webpack_require__.d(actions_namespaceObject, "refreshPost", function() { return refreshPost; });
__webpack_require__.d(actions_namespaceObject, "trashPost", function() { return trashPost; }); __webpack_require__.d(actions_namespaceObject, "trashPost", function() { return trashPost; });
__webpack_require__.d(actions_namespaceObject, "autosave", function() { return actions_autosave; }); __webpack_require__.d(actions_namespaceObject, "autosave", function() { return actions_autosave; });
__webpack_require__.d(actions_namespaceObject, "__experimentalLocalAutosave", function() { return actions_experimentalLocalAutosave; });
__webpack_require__.d(actions_namespaceObject, "redo", function() { return actions_redo; }); __webpack_require__.d(actions_namespaceObject, "redo", function() { return actions_redo; });
__webpack_require__.d(actions_namespaceObject, "undo", function() { return actions_undo; }); __webpack_require__.d(actions_namespaceObject, "undo", function() { return actions_undo; });
__webpack_require__.d(actions_namespaceObject, "createUndoLevel", function() { return createUndoLevel; }); __webpack_require__.d(actions_namespaceObject, "createUndoLevel", function() { return createUndoLevel; });
@ -1835,7 +1836,7 @@ var objectSpread = __webpack_require__(7);
var external_this_wp_data_ = __webpack_require__(4); var external_this_wp_data_ = __webpack_require__(4);
// EXTERNAL MODULE: external {"this":["wp","dataControls"]} // EXTERNAL MODULE: external {"this":["wp","dataControls"]}
var external_this_wp_dataControls_ = __webpack_require__(36); var external_this_wp_dataControls_ = __webpack_require__(33);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(10); var defineProperty = __webpack_require__(10);
@ -2560,6 +2561,36 @@ function getRegistry() {
type: 'GET_REGISTRY' type: 'GET_REGISTRY'
}; };
} }
/**
* Function returning a sessionStorage key to set or retrieve a given post's
* automatic session backup.
*
* Keys are crucially prefixed with 'wp-autosave-' so that wp-login.php's
* `loggedout` handler can clear sessionStorage of any user-private content.
*
* @see https://github.com/WordPress/wordpress-develop/blob/6dad32d2aed47e6c0cf2aee8410645f6d7aba6bd/src/wp-login.php#L103
*
* @param {string} postId Post ID.
* @return {string} sessionStorage key
*/
function postKey(postId) {
return "wp-autosave-block-editor-post-".concat(postId);
}
function localAutosaveGet(postId) {
return window.sessionStorage.getItem(postKey(postId));
}
function localAutosaveSet(postId, title, content, excerpt) {
window.sessionStorage.setItem(postKey(postId), JSON.stringify({
post_title: title,
content: content,
excerpt: excerpt
}));
}
function localAutosaveClear(postId) {
window.sessionStorage.removeItem(postKey(postId));
}
var controls = { var controls = {
AWAIT_NEXT_STATE_CHANGE: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { AWAIT_NEXT_STATE_CHANGE: Object(external_this_wp_data_["createRegistryControl"])(function (registry) {
return function () { return function () {
@ -2575,7 +2606,14 @@ var controls = {
return function () { return function () {
return registry; return registry;
}; };
}) }),
LOCAL_AUTOSAVE_SET: function LOCAL_AUTOSAVE_SET(_ref) {
var postId = _ref.postId,
title = _ref.title,
content = _ref.content,
excerpt = _ref.excerpt;
localAutosaveSet(postId, title, content, excerpt);
}
}; };
/* harmony default export */ var store_controls = (controls); /* harmony default export */ var store_controls = (controls);
@ -2719,12 +2757,15 @@ regenerator_default.a.mark(trashPost),
regenerator_default.a.mark(actions_autosave), regenerator_default.a.mark(actions_autosave),
_marked11 = _marked11 =
/*#__PURE__*/ /*#__PURE__*/
regenerator_default.a.mark(actions_redo), regenerator_default.a.mark(actions_experimentalLocalAutosave),
_marked12 = _marked12 =
/*#__PURE__*/ /*#__PURE__*/
regenerator_default.a.mark(actions_undo), regenerator_default.a.mark(actions_redo),
_marked13 = _marked13 =
/*#__PURE__*/ /*#__PURE__*/
regenerator_default.a.mark(actions_undo),
_marked14 =
/*#__PURE__*/
regenerator_default.a.mark(actions_resetEditorBlocks); regenerator_default.a.mark(actions_resetEditorBlocks);
/** /**
@ -3650,6 +3691,48 @@ function actions_autosave(options) {
} }
}, _marked10); }, _marked10);
} }
function actions_experimentalLocalAutosave() {
var post, title, content, excerpt;
return regenerator_default.a.wrap(function __experimentalLocalAutosave$(_context11) {
while (1) {
switch (_context11.prev = _context11.next) {
case 0:
_context11.next = 2;
return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost');
case 2:
post = _context11.sent;
_context11.next = 5;
return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'title');
case 5:
title = _context11.sent;
_context11.next = 8;
return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'content');
case 8:
content = _context11.sent;
_context11.next = 11;
return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getEditedPostAttribute', 'excerpt');
case 11:
excerpt = _context11.sent;
_context11.next = 14;
return {
type: 'LOCAL_AUTOSAVE_SET',
postId: post.id,
title: title,
content: content,
excerpt: excerpt
};
case 14:
case "end":
return _context11.stop();
}
}
}, _marked11);
}
/** /**
* Returns an action object used in signalling that undo history should * Returns an action object used in signalling that undo history should
* restore last popped state. * restore last popped state.
@ -3658,19 +3741,19 @@ function actions_autosave(options) {
*/ */
function actions_redo() { function actions_redo() {
return regenerator_default.a.wrap(function redo$(_context11) { return regenerator_default.a.wrap(function redo$(_context12) {
while (1) { while (1) {
switch (_context11.prev = _context11.next) { switch (_context12.prev = _context12.next) {
case 0: case 0:
_context11.next = 2; _context12.next = 2;
return Object(external_this_wp_dataControls_["dispatch"])('core', 'redo'); return Object(external_this_wp_dataControls_["dispatch"])('core', 'redo');
case 2: case 2:
case "end": case "end":
return _context11.stop(); return _context12.stop();
} }
} }
}, _marked11); }, _marked12);
} }
/** /**
* Returns an action object used in signalling that undo history should pop. * Returns an action object used in signalling that undo history should pop.
@ -3679,19 +3762,19 @@ function actions_redo() {
*/ */
function actions_undo() { function actions_undo() {
return regenerator_default.a.wrap(function undo$(_context12) { return regenerator_default.a.wrap(function undo$(_context13) {
while (1) { while (1) {
switch (_context12.prev = _context12.next) { switch (_context13.prev = _context13.next) {
case 0: case 0:
_context12.next = 2; _context13.next = 2;
return Object(external_this_wp_dataControls_["dispatch"])('core', 'undo'); return Object(external_this_wp_dataControls_["dispatch"])('core', 'undo');
case 2: case 2:
case "end": case "end":
return _context12.stop(); return _context13.stop();
} }
} }
}, _marked12); }, _marked13);
} }
/** /**
* Returns an action object used in signalling that undo history record should * Returns an action object used in signalling that undo history record should
@ -3951,21 +4034,25 @@ function actions_resetEditorBlocks(blocks) {
_schema, _schema,
source, source,
edits, edits,
_args14 = arguments; _ref2,
id,
type,
noChange,
_args15 = arguments;
return regenerator_default.a.wrap(function resetEditorBlocks$(_context13) { return regenerator_default.a.wrap(function resetEditorBlocks$(_context14) {
while (1) { while (1) {
switch (_context13.prev = _context13.next) { switch (_context14.prev = _context14.next) {
case 0: case 0:
options = _args14.length > 1 && _args14[1] !== undefined ? _args14[1] : {}; options = _args15.length > 1 && _args15[1] !== undefined ? _args15[1] : {};
_context13.next = 3; _context14.next = 3;
return Object(external_this_wp_dataControls_["select"])('core/block-editor', '__experimentalGetLastBlockAttributeChanges'); return Object(external_this_wp_dataControls_["select"])('core/block-editor', '__experimentalGetLastBlockAttributeChanges');
case 3: case 3:
lastBlockAttributesChange = _context13.sent; lastBlockAttributesChange = _context14.sent;
if (!lastBlockAttributesChange) { if (!lastBlockAttributesChange) {
_context13.next = 36; _context14.next = 36;
break; break;
} }
@ -3975,103 +4062,134 @@ function actions_resetEditorBlocks(blocks) {
case 8: case 8:
if (!(_i3 < _Object$entries2.length)) { if (!(_i3 < _Object$entries2.length)) {
_context13.next = 35; _context14.next = 35;
break; break;
} }
_Object$entries2$_i = Object(slicedToArray["a" /* default */])(_Object$entries2[_i3], 2), clientId = _Object$entries2$_i[0], attributes = _Object$entries2$_i[1]; _Object$entries2$_i = Object(slicedToArray["a" /* default */])(_Object$entries2[_i3], 2), clientId = _Object$entries2$_i[0], attributes = _Object$entries2$_i[1];
_context13.next = 12; _context14.next = 12;
return Object(external_this_wp_dataControls_["select"])('core/block-editor', 'getBlockName', clientId); return Object(external_this_wp_dataControls_["select"])('core/block-editor', 'getBlockName', clientId);
case 12: case 12:
blockName = _context13.sent; blockName = _context14.sent;
if (!updatedBlockTypes.has(blockName)) { if (!updatedBlockTypes.has(blockName)) {
_context13.next = 15; _context14.next = 15;
break; break;
} }
return _context13.abrupt("continue", 32); return _context14.abrupt("continue", 32);
case 15: case 15:
updatedBlockTypes.add(blockName); updatedBlockTypes.add(blockName);
_context13.next = 18; _context14.next = 18;
return Object(external_this_wp_dataControls_["select"])('core/blocks', 'getBlockType', blockName); return Object(external_this_wp_dataControls_["select"])('core/blocks', 'getBlockType', blockName);
case 18: case 18:
blockType = _context13.sent; blockType = _context14.sent;
_i4 = 0, _Object$entries3 = Object.entries(attributes); _i4 = 0, _Object$entries3 = Object.entries(attributes);
case 20: case 20:
if (!(_i4 < _Object$entries3.length)) { if (!(_i4 < _Object$entries3.length)) {
_context13.next = 32; _context14.next = 32;
break; break;
} }
_Object$entries3$_i = Object(slicedToArray["a" /* default */])(_Object$entries3[_i4], 2), _attributeName = _Object$entries3$_i[0], newAttributeValue = _Object$entries3$_i[1]; _Object$entries3$_i = Object(slicedToArray["a" /* default */])(_Object$entries3[_i4], 2), _attributeName = _Object$entries3$_i[0], newAttributeValue = _Object$entries3$_i[1];
if (blockType.attributes.hasOwnProperty(_attributeName)) { if (blockType.attributes.hasOwnProperty(_attributeName)) {
_context13.next = 24; _context14.next = 24;
break; break;
} }
return _context13.abrupt("continue", 29); return _context14.abrupt("continue", 29);
case 24: case 24:
_schema = blockType.attributes[_attributeName]; _schema = blockType.attributes[_attributeName];
source = block_sources_namespaceObject[_schema.source]; source = block_sources_namespaceObject[_schema.source];
if (!(source && source.update)) { if (!(source && source.update)) {
_context13.next = 29; _context14.next = 29;
break; break;
} }
return _context13.delegateYield(source.update(_schema, newAttributeValue), "t0", 28); return _context14.delegateYield(source.update(_schema, newAttributeValue), "t0", 28);
case 28: case 28:
updatedSources.add(source); updatedSources.add(source);
case 29: case 29:
_i4++; _i4++;
_context13.next = 20; _context14.next = 20;
break; break;
case 32: case 32:
_i3++; _i3++;
_context13.next = 8; _context14.next = 8;
break; break;
case 35: case 35:
return _context13.delegateYield(resetLastBlockSourceDependencies(Array.from(updatedSources)), "t1", 36); return _context14.delegateYield(resetLastBlockSourceDependencies(Array.from(updatedSources)), "t1", 36);
case 36: case 36:
return _context13.delegateYield(getBlocksWithSourcedAttributes(blocks), "t2", 37); return _context14.delegateYield(getBlocksWithSourcedAttributes(blocks), "t2", 37);
case 37: case 37:
_context13.t3 = _context13.t2; _context14.t3 = _context14.t2;
edits = { edits = {
blocks: _context13.t3 blocks: _context14.t3
}; };
if (options.__unstableShouldCreateUndoLevel !== false) { if (!(options.__unstableShouldCreateUndoLevel !== false)) {
// We create a new function here on every persistent edit _context14.next = 55;
// to make sure the edit makes the post dirty and creates break;
// a new undo level.
edits.content = function (_ref2) {
var _ref2$blocks = _ref2.blocks,
blocksForSerialization = _ref2$blocks === void 0 ? [] : _ref2$blocks;
return serialize_blocks(blocksForSerialization);
};
} }
return _context13.delegateYield(actions_editPost(edits), "t4", 41); _context14.next = 42;
return Object(external_this_wp_dataControls_["select"])(STORE_KEY, 'getCurrentPost');
case 41: case 42:
_ref2 = _context14.sent;
id = _ref2.id;
type = _ref2.type;
_context14.next = 47;
return Object(external_this_wp_dataControls_["select"])('core', 'getEditedEntityRecord', 'postType', type, id);
case 47:
_context14.t4 = _context14.sent.blocks;
_context14.t5 = edits.blocks;
noChange = _context14.t4 === _context14.t5;
if (!noChange) {
_context14.next = 54;
break;
}
_context14.next = 53;
return Object(external_this_wp_dataControls_["dispatch"])('core', '__unstableCreateUndoLevel', 'postType', type, id);
case 53:
return _context14.abrupt("return", _context14.sent);
case 54:
// We create a new function here on every persistent edit
// to make sure the edit makes the post dirty and creates
// a new undo level.
edits.content = function (_ref3) {
var _ref3$blocks = _ref3.blocks,
blocksForSerialization = _ref3$blocks === void 0 ? [] : _ref3$blocks;
return serialize_blocks(blocksForSerialization);
};
case 55:
return _context14.delegateYield(actions_editPost(edits), "t6", 56);
case 56:
case "end": case "end":
return _context13.stop(); return _context14.stop();
} }
} }
}, _marked13); }, _marked14);
} }
/* /*
* Returns an action object used in signalling that the post editor settings have been updated. * Returns an action object used in signalling that the post editor settings have been updated.
@ -4098,26 +4216,26 @@ var actions_getBlockEditorAction = function getBlockEditorAction(name) {
var _len, var _len,
args, args,
_key, _key,
_args15 = arguments; _args16 = arguments;
return regenerator_default.a.wrap(function _callee$(_context14) { return regenerator_default.a.wrap(function _callee$(_context15) {
while (1) { while (1) {
switch (_context14.prev = _context14.next) { switch (_context15.prev = _context15.next) {
case 0: case 0:
external_this_wp_deprecated_default()('`wp.data.dispatch( \'core/editor\' ).' + name + '`', { external_this_wp_deprecated_default()('`wp.data.dispatch( \'core/editor\' ).' + name + '`', {
alternative: '`wp.data.dispatch( \'core/block-editor\' ).' + name + '`' alternative: '`wp.data.dispatch( \'core/block-editor\' ).' + name + '`'
}); });
for (_len = _args15.length, args = new Array(_len), _key = 0; _key < _len; _key++) { for (_len = _args16.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = _args15[_key]; args[_key] = _args16[_key];
} }
_context14.next = 4; _context15.next = 4;
return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/block-editor', name].concat(args)); return external_this_wp_dataControls_["dispatch"].apply(void 0, ['core/block-editor', name].concat(args));
case 4: case 4:
case "end": case "end":
return _context14.stop(); return _context15.stop();
} }
} }
}, _callee); }, _callee);
@ -4282,7 +4400,7 @@ var insertDefaultBlock = actions_getBlockEditorAction('insertDefaultBlock');
var updateBlockListSettings = actions_getBlockEditorAction('updateBlockListSettings'); var updateBlockListSettings = actions_getBlockEditorAction('updateBlockListSettings');
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// EXTERNAL MODULE: external {"this":["wp","date"]} // EXTERNAL MODULE: external {"this":["wp","date"]}
var external_this_wp_date_ = __webpack_require__(56); var external_this_wp_date_ = __webpack_require__(56);
@ -7269,6 +7387,7 @@ function (_Component) {
*/ */
var requestIdleCallback = window.requestIdleCallback ? window.requestIdleCallback : window.requestAnimationFrame; var requestIdleCallback = window.requestIdleCallback ? window.requestIdleCallback : window.requestAnimationFrame;
/** /**
* Function which returns true if the current environment supports browser * Function which returns true if the current environment supports browser
@ -7288,67 +7407,28 @@ var hasSessionStorageSupport = Object(external_lodash_["once"])(function () {
return false; return false;
} }
}); });
/**
* Function returning a sessionStorage key to set or retrieve a given post's
* automatic session backup.
*
* Keys are crucially prefixed with 'wp-autosave-' so that wp-login.php's
* `loggedout` handler can clear sessionStorage of any user-private content.
*
* @see https://github.com/WordPress/wordpress-develop/blob/6dad32d2aed47e6c0cf2aee8410645f6d7aba6bd/src/wp-login.php#L103
*
* @param {string} postId Post ID.
* @return {string} sessionStorage key
*/
function postKey(postId) {
return "wp-autosave-block-editor-post-".concat(postId);
}
/**
* Custom hook which returns a callback function to be invoked when a local
* autosave should occur.
*
* @return {Function} Callback function.
*/
function useAutosaveCallback() {
var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
return {
postId: select('core/editor').getCurrentPostId(),
getEditedPostAttribute: select('core/editor').getEditedPostAttribute
};
}),
postId = _useSelect.postId,
getEditedPostAttribute = _useSelect.getEditedPostAttribute;
return Object(external_this_wp_element_["useCallback"])(function () {
var saveToSessionStorage = function saveToSessionStorage() {
window.sessionStorage.setItem(postKey(postId), JSON.stringify({
post_title: getEditedPostAttribute('title'),
content: getEditedPostAttribute('content'),
excerpt: getEditedPostAttribute('excerpt')
}));
};
requestIdleCallback(saveToSessionStorage);
}, [postId]);
}
/** /**
* Custom hook which manages the creation of a notice prompting the user to * Custom hook which manages the creation of a notice prompting the user to
* restore a local autosave, if one exists. * restore a local autosave, if one exists.
*/ */
function useAutosaveNotice() { function useAutosaveNotice() {
var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) { var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
var _postId = select('core/editor').getCurrentPostId();
var postType = select('core/editor').getCurrentPostType();
var user = select('core').getCurrentUser();
return { return {
postId: select('core/editor').getCurrentPostId(), postId: _postId,
getEditedPostAttribute: select('core/editor').getEditedPostAttribute getEditedPostAttribute: select('core/editor').getEditedPostAttribute,
remoteAutosave: select('core').getAutosave(postType, _postId, user.id),
hasFetchedAutosave: select('core').hasFetchedAutosaves(postType, _postId) && user.id
}; };
}), }),
postId = _useSelect2.postId, postId = _useSelect.postId,
getEditedPostAttribute = _useSelect2.getEditedPostAttribute; getEditedPostAttribute = _useSelect.getEditedPostAttribute,
remoteAutosave = _useSelect.remoteAutosave,
hasFetchedAutosave = _useSelect.hasFetchedAutosave;
var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'), var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'),
createWarningNotice = _useDispatch.createWarningNotice, createWarningNotice = _useDispatch.createWarningNotice,
@ -7359,37 +7439,47 @@ function useAutosaveNotice() {
resetEditorBlocks = _useDispatch2.resetEditorBlocks; resetEditorBlocks = _useDispatch2.resetEditorBlocks;
Object(external_this_wp_element_["useEffect"])(function () { Object(external_this_wp_element_["useEffect"])(function () {
var autosave = window.sessionStorage.getItem(postKey(postId)); if (!hasFetchedAutosave) {
return;
}
if (!autosave) { var localAutosave = localAutosaveGet(postId);
if (!localAutosave) {
return; return;
} }
try { try {
autosave = JSON.parse(autosave); localAutosave = JSON.parse(localAutosave);
} catch (error) { } catch (error) {
// Not usable if it can't be parsed. // Not usable if it can't be parsed.
return; return;
} }
var _autosave = autosave, var _localAutosave = localAutosave,
title = _autosave.post_title, title = _localAutosave.post_title,
content = _autosave.content, content = _localAutosave.content,
excerpt = _autosave.excerpt; excerpt = _localAutosave.excerpt;
var edits = { var edits = {
title: title, title: title,
content: content, content: content,
excerpt: excerpt excerpt: excerpt
}; // Only display a notice if there is a difference between what has been };
// saved and that which is stored in sessionStorage. {
// Only display a notice if there is a difference between what has been
// saved and that which is stored in sessionStorage.
var hasDifference = Object.keys(edits).some(function (key) {
return edits[key] !== getEditedPostAttribute(key);
});
var hasDifference = Object.keys(edits).some(function (key) { if (!hasDifference) {
return edits[key] !== getEditedPostAttribute(key); // If there is no difference, it can be safely ejected from storage.
}); localAutosaveClear(postId);
return;
}
}
if (!hasDifference) { if (remoteAutosave) {
// If there is no difference, it can be safely ejected from storage.
window.sessionStorage.removeItem(postKey(postId));
return; return;
} }
@ -7405,7 +7495,7 @@ function useAutosaveNotice() {
} }
}] }]
}); });
}, [postId]); }, [postId, hasFetchedAutosave]);
} }
/** /**
* Custom hook which ejects a local autosave after a successful save occurs. * Custom hook which ejects a local autosave after a successful save occurs.
@ -7413,36 +7503,48 @@ function useAutosaveNotice() {
function useAutosavePurge() { function useAutosavePurge() {
var _useSelect3 = Object(external_this_wp_data_["useSelect"])(function (select) { var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) {
return { return {
postId: select('core/editor').getCurrentPostId(), postId: select('core/editor').getCurrentPostId(),
isDirty: select('core/editor').isEditedPostDirty() postType: select('core/editor').getCurrentPostType(),
isDirty: select('core/editor').isEditedPostDirty(),
isAutosaving: select('core/editor').isAutosavingPost(),
didError: select('core/editor').didPostSaveRequestFail()
}; };
}), }),
postId = _useSelect3.postId, postId = _useSelect2.postId,
isDirty = _useSelect3.isDirty; isDirty = _useSelect2.isDirty,
isAutosaving = _useSelect2.isAutosaving,
didError = _useSelect2.didError;
var lastIsDirty = Object(external_this_wp_element_["useRef"])(isDirty); var lastIsDirty = Object(external_this_wp_element_["useRef"])(isDirty);
var lastIsAutosaving = Object(external_this_wp_element_["useRef"])(isAutosaving);
Object(external_this_wp_element_["useEffect"])(function () { Object(external_this_wp_element_["useEffect"])(function () {
if (lastIsDirty.current && !isDirty) { if (lastIsAutosaving.current && !isAutosaving && !didError) {
window.sessionStorage.removeItem(postKey(postId)); localAutosaveClear(postId);
} }
lastIsDirty.current = isDirty; lastIsDirty.current = isDirty;
}, [isDirty]); lastIsAutosaving.current = isAutosaving;
}, [isDirty, isAutosaving, didError]);
} }
function LocalAutosaveMonitor() { function LocalAutosaveMonitor() {
var autosave = useAutosaveCallback(); var _useDispatch3 = Object(external_this_wp_data_["useDispatch"])('core/editor'),
__experimentalLocalAutosave = _useDispatch3.__experimentalLocalAutosave;
var autosave = Object(external_this_wp_element_["useCallback"])(function () {
requestIdleCallback(__experimentalLocalAutosave);
}, []);
useAutosaveNotice(); useAutosaveNotice();
useAutosavePurge(); useAutosavePurge();
var _useSelect4 = Object(external_this_wp_data_["useSelect"])(function (select) { var _useSelect3 = Object(external_this_wp_data_["useSelect"])(function (select) {
return { return {
localAutosaveInterval: select('core/editor').getEditorSettings().__experimentalLocalAutosaveInterval localAutosaveInterval: select('core/editor').getEditorSettings().__experimentalLocalAutosaveInterval
}; };
}), }),
localAutosaveInterval = _useSelect4.localAutosaveInterval; localAutosaveInterval = _useSelect3.localAutosaveInterval;
return Object(external_this_wp_element_["createElement"])(autosave_monitor, { return Object(external_this_wp_element_["createElement"])(autosave_monitor, {
interval: localAutosaveInterval, interval: localAutosaveInterval,
@ -10813,7 +10915,7 @@ function (_Component) {
onSave: dispatch('core/editor').savePost onSave: dispatch('core/editor').savePost
}; };
}), external_this_wp_compose_["withSafeTimeout"], Object(external_this_wp_viewport_["withViewportMatch"])({ }), external_this_wp_compose_["withSafeTimeout"], Object(external_this_wp_viewport_["withViewportMatch"])({
isLargeViewport: 'medium' isLargeViewport: 'small'
})])(post_saved_state_PostSavedState)); })])(post_saved_state_PostSavedState));
// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-schedule/check.js // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-schedule/check.js
@ -10998,13 +11100,12 @@ function (_Component) {
Object(createClass["a" /* default */])(HierarchicalTermSelector, [{ Object(createClass["a" /* default */])(HierarchicalTermSelector, [{
key: "onChange", key: "onChange",
value: function onChange(event) { value: function onChange(termId) {
var _this$props = this.props, var _this$props = this.props,
onUpdateTerms = _this$props.onUpdateTerms, onUpdateTerms = _this$props.onUpdateTerms,
_this$props$terms = _this$props.terms, _this$props$terms = _this$props.terms,
terms = _this$props$terms === void 0 ? [] : _this$props$terms, terms = _this$props$terms === void 0 ? [] : _this$props$terms,
taxonomy = _this$props.taxonomy; taxonomy = _this$props.taxonomy;
var termId = parseInt(event.target.value, 10);
var hasTerm = terms.indexOf(termId) !== -1; var hasTerm = terms.indexOf(termId) !== -1;
var newTerms = hasTerm ? Object(external_lodash_["without"])(terms, termId) : [].concat(Object(toConsumableArray["a" /* default */])(terms), [termId]); var newTerms = hasTerm ? Object(external_lodash_["without"])(terms, termId) : [].concat(Object(toConsumableArray["a" /* default */])(terms), [termId]);
onUpdateTerms(newTerms, taxonomy.rest_base); onUpdateTerms(newTerms, taxonomy.rest_base);
@ -11316,20 +11417,18 @@ function (_Component) {
var _this$props$terms2 = this.props.terms, var _this$props$terms2 = this.props.terms,
terms = _this$props$terms2 === void 0 ? [] : _this$props$terms2; terms = _this$props$terms2 === void 0 ? [] : _this$props$terms2;
return renderedTerms.map(function (term) { return renderedTerms.map(function (term) {
var id = "editor-post-taxonomies-hierarchical-term-".concat(term.id);
return Object(external_this_wp_element_["createElement"])("div", { return Object(external_this_wp_element_["createElement"])("div", {
key: term.id, key: term.id,
className: "editor-post-taxonomies__hierarchical-terms-choice" className: "editor-post-taxonomies__hierarchical-terms-choice"
}, Object(external_this_wp_element_["createElement"])("input", { }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], {
id: id,
className: "editor-post-taxonomies__hierarchical-terms-input",
type: "checkbox",
checked: terms.indexOf(term.id) !== -1, checked: terms.indexOf(term.id) !== -1,
value: term.id, onChange: function onChange() {
onChange: _this4.onChange var termId = parseInt(term.id, 10);
}), Object(external_this_wp_element_["createElement"])("label", {
htmlFor: id _this4.onChange(termId);
}, Object(external_lodash_["unescape"])(term.name)), !!term.children.length && Object(external_this_wp_element_["createElement"])("div", { },
label: Object(external_lodash_["unescape"])(term.name)
}), !!term.children.length && Object(external_this_wp_element_["createElement"])("div", {
className: "editor-post-taxonomies__hierarchical-terms-subchoices" className: "editor-post-taxonomies__hierarchical-terms-subchoices"
}, _this4.renderTerms(term.children))); }, _this4.renderTerms(term.children)));
}); });
@ -13842,7 +13941,7 @@ function Stars(_ref) {
var halfStarCount = Math.ceil(rating - fullStarCount); var halfStarCount = Math.ceil(rating - fullStarCount);
var emptyStarCount = 5 - (fullStarCount + halfStarCount); var emptyStarCount = 5 - (fullStarCount + halfStarCount);
return Object(external_this_wp_element_["createElement"])("div", { return Object(external_this_wp_element_["createElement"])("div", {
"aria-label": Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s out of 5 stars', stars), stars) "aria-label": Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s out of 5 stars'), stars)
}, Object(external_lodash_["times"])(fullStarCount, function (i) { }, Object(external_lodash_["times"])(fullStarCount, function (i) {
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], {
key: "full_stars_".concat(i), key: "full_stars_".concat(i),
@ -13959,7 +14058,7 @@ function DownloadableBlockAuthorInfo(_ref) {
className: "block-directory-downloadable-block-author-info__content-author" className: "block-directory-downloadable-block-author-info__content-author"
}, Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Authored by %s'), author)), Object(external_this_wp_element_["createElement"])("span", { }, Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Authored by %s'), author)), Object(external_this_wp_element_["createElement"])("span", {
className: "block-directory-downloadable-block-author-info__content" className: "block-directory-downloadable-block-author-info__content"
}, Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('This author has %d block, with an average rating of %d.', 'This author has %d blocks, with an average rating of %d.', authorBlockCount, authorBlockRating), authorBlockCount, authorBlockRating))); }, Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('This author has %d block, with an average rating of %d.', 'This author has %d blocks, with an average rating of %d.', authorBlockCount), authorBlockCount, authorBlockRating)));
} }
/* harmony default export */ var downloadable_block_author_info = (DownloadableBlockAuthorInfo); /* harmony default export */ var downloadable_block_author_info = (DownloadableBlockAuthorInfo);
@ -14286,7 +14385,7 @@ function InserterMenuDownloadableBlocksPanel() {
filterValue = _ref.filterValue, filterValue = _ref.filterValue,
hasItems = _ref.hasItems; hasItems = _ref.hasItems;
if (!hasItems) { if (hasItems || !filterValue) {
return null; return null;
} }
@ -14744,16 +14843,15 @@ var withFontSizes = deprecateFunction('withFontSizes', external_this_wp_blockEdi
*/ */
var defaultAutocompleters = [autocompleters_user];
function setDefaultCompleters(completers, blockName) { function setDefaultCompleters() {
if (!completers) { var completers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
// Provide copies so filters may directly modify them. var blockName = arguments.length > 1 ? arguments[1] : undefined;
completers = defaultAutocompleters.map(external_lodash_["clone"]); // Add blocks autocompleter for Paragraph block // Provide copies so filters may directly modify them.
completers.push(Object(external_lodash_["clone"])(autocompleters_user)); // Add blocks autocompleter for Paragraph block
if (blockName === Object(external_this_wp_blocks_["getDefaultBlockName"])()) { if (blockName === Object(external_this_wp_blocks_["getDefaultBlockName"])()) {
completers.push(Object(external_lodash_["clone"])(autocompleters_block)); completers.push(Object(external_lodash_["clone"])(autocompleters_block));
}
} }
return completers; return completers;

File diff suppressed because one or more lines are too long

View File

@ -363,7 +363,7 @@ function _typeof(obj) {
/***/ }), /***/ }),
/***/ 34: /***/ 35:
/***/ (function(module, exports) { /***/ (function(module, exports) {
(function() { module.exports = this["wp"]["blob"]; }()); (function() { module.exports = this["wp"]["blob"]; }());
@ -796,7 +796,7 @@ var external_this_wp_apiFetch_ = __webpack_require__(32);
var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_);
// EXTERNAL MODULE: external {"this":["wp","blob"]} // EXTERNAL MODULE: external {"this":["wp","blob"]}
var external_this_wp_blob_ = __webpack_require__(34); var external_this_wp_blob_ = __webpack_require__(35);
// CONCATENATED MODULE: ./node_modules/@wordpress/media-utils/build-module/utils/upload-media.js // CONCATENATED MODULE: ./node_modules/@wordpress/media-utils/build-module/utils/upload-media.js

File diff suppressed because one or more lines are too long

View File

@ -229,7 +229,7 @@ function _iterableToArray(iter) {
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -706,7 +706,7 @@ function enableTips() {
var slicedToArray = __webpack_require__(23); var slicedToArray = __webpack_require__(23);
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// EXTERNAL MODULE: external "lodash" // EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(2); var external_lodash_ = __webpack_require__(2);

File diff suppressed because one or more lines are too long

View File

@ -434,7 +434,7 @@ function _typeof(obj) {
/***/ }), /***/ }),
/***/ 35: /***/ 36:
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
@ -788,7 +788,7 @@ function reducer_formatTypes() {
})); }));
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(35); var rememo = __webpack_require__(36);
// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/store/selectors.js // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/store/selectors.js
/** /**
@ -4167,6 +4167,10 @@ function (_Component) {
_this.Editable = _this.Editable.bind(Object(assertThisInitialized["a" /* default */])(_this)); _this.Editable = _this.Editable.bind(Object(assertThisInitialized["a" /* default */])(_this));
_this.onKeyDown = function (event) { _this.onKeyDown = function (event) {
if (event.defaultPrevented) {
return;
}
_this.handleDelete(event); _this.handleDelete(event);
_this.handleEnter(event); _this.handleEnter(event);
@ -4387,7 +4391,7 @@ function (_Component) {
// (CJK), do not trigger a change if characters are being composed. // (CJK), do not trigger a change if characters are being composed.
// Browsers setting `isComposing` to `true` will usually emit a final // Browsers setting `isComposing` to `true` will usually emit a final
// `input` event when the characters are composed. // `input` event when the characters are composed.
if (event && event.nativeEvent.isComposing) { if (event && event.nativeEvent && event.nativeEvent.isComposing) {
// Also don't update any selection. // Also don't update any selection.
document.removeEventListener('selectionchange', this.onSelectionChange); document.removeEventListener('selectionchange', this.onSelectionChange);
return; return;
@ -4396,6 +4400,10 @@ function (_Component) {
var inputType; var inputType;
if (event) { if (event) {
inputType = event.inputType;
}
if (!inputType) {
inputType = event.nativeEvent.inputType; inputType = event.nativeEvent.inputType;
} // The browser formatted something or tried to insert HTML. } // The browser formatted something or tried to insert HTML.
// Overwrite it. It will be handled later by the format library if // Overwrite it. It will be handled later by the format library if
@ -4463,7 +4471,9 @@ function (_Component) {
value: function onCompositionEnd() { value: function onCompositionEnd() {
// Ensure the value is up-to-date for browsers that don't emit a final // Ensure the value is up-to-date for browsers that don't emit a final
// input event after composition. // input event after composition.
this.onInput(); // Tracking selection changes can be resumed. this.onInput({
inputType: 'insertText'
}); // Tracking selection changes can be resumed.
document.addEventListener('selectionchange', this.onSelectionChange); document.addEventListener('selectionchange', this.onSelectionChange);
} }
@ -4722,11 +4732,17 @@ function (_Component) {
}, { }, {
key: "handleSpace", key: "handleSpace",
value: function handleSpace(event) { value: function handleSpace(event) {
var keyCode = event.keyCode,
shiftKey = event.shiftKey,
altKey = event.altKey,
metaKey = event.metaKey,
ctrlKey = event.ctrlKey;
var _this$props5 = this.props, var _this$props5 = this.props,
tagName = _this$props5.tagName, tagName = _this$props5.tagName,
multilineTag = _this$props5.__unstableMultilineTag; multilineTag = _this$props5.__unstableMultilineTag;
if (event.keyCode !== external_this_wp_keycodes_["SPACE"] || multilineTag !== 'li') { if ( // Only override when no modifiers are pressed.
shiftKey || altKey || metaKey || ctrlKey || keyCode !== external_this_wp_keycodes_["SPACE"] || multilineTag !== 'li') {
return; return;
} }
@ -5034,6 +5050,8 @@ function (_Component) {
}, { }, {
key: "Editable", key: "Editable",
value: function Editable(props) { value: function Editable(props) {
var _this3 = this;
var _this$props9 = this.props, var _this$props9 = this.props,
_this$props9$tagName = _this$props9.tagName, _this$props9$tagName = _this$props9.tagName,
Tagname = _this$props9$tagName === void 0 ? 'div' : _this$props9$tagName, Tagname = _this$props9$tagName === void 0 ? 'div' : _this$props9$tagName,
@ -5056,7 +5074,11 @@ function (_Component) {
onPaste: this.onPaste, onPaste: this.onPaste,
onInput: this.onInput, onInput: this.onInput,
onCompositionEnd: this.onCompositionEnd, onCompositionEnd: this.onCompositionEnd,
onKeyDown: this.onKeyDown, onKeyDown: props.onKeyDown ? function (event) {
props.onKeyDown(event);
_this3.onKeyDown(event);
} : this.onKeyDown,
onFocus: this.onFocus, onFocus: this.onFocus,
onBlur: this.onBlur, onBlur: this.onBlur,
onMouseDown: this.onPointerDown, onMouseDown: this.onPointerDown,

File diff suppressed because one or more lines are too long

View File

@ -225,47 +225,47 @@ function wp_default_packages_scripts( &$scripts ) {
$packages_versions = array( $packages_versions = array(
'a11y' => '2.5.0', 'a11y' => '2.5.0',
'annotations' => '1.7.0', 'annotations' => '1.7.1',
'api-fetch' => '3.6.0', 'api-fetch' => '3.6.1',
'autop' => '2.5.0', 'autop' => '2.5.0',
'blob' => '2.5.0', 'blob' => '2.5.0',
'block-editor' => '3.2.0', 'block-editor' => '3.2.1',
'block-library' => '2.9.0', 'block-library' => '2.9.1',
'block-serialization-default-parser' => '3.4.0', 'block-serialization-default-parser' => '3.4.0',
'blocks' => '6.7.0', 'blocks' => '6.7.1',
'components' => '8.3.0', 'components' => '8.3.1',
'compose' => '3.7.0', 'compose' => '3.7.1',
'core-data' => '2.7.0', 'core-data' => '2.7.1',
'data' => '4.9.0', 'data' => '4.9.1',
'data-controls' => '1.3.0', 'data-controls' => '1.3.1',
'date' => '3.5.0', 'date' => '3.5.0',
'deprecated' => '2.6.0', 'deprecated' => '2.6.0',
'dom' => '2.5.0', 'dom' => '2.5.1',
'dom-ready' => '2.5.0', 'dom-ready' => '2.5.0',
'edit-post' => '3.8.0', 'edit-post' => '3.8.1',
'editor' => '9.7.0', 'editor' => '9.7.1',
'element' => '2.8.0', 'element' => '2.8.1',
'escape-html' => '1.5.0', 'escape-html' => '1.5.0',
'format-library' => '1.9.0', 'format-library' => '1.9.1',
'hooks' => '2.6.0', 'hooks' => '2.6.0',
'html-entities' => '2.5.0', 'html-entities' => '2.5.0',
'i18n' => '3.6.0', 'i18n' => '3.6.1',
'is-shallow-equal' => '1.6.0', 'is-shallow-equal' => '1.6.0',
'keycodes' => '2.6.0', 'keycodes' => '2.6.1',
'list-reusable-blocks' => '1.8.0', 'list-reusable-blocks' => '1.8.1',
'media-utils' => '1.2.0', 'media-utils' => '1.2.1',
'notices' => '1.8.0', 'notices' => '1.8.1',
'nux' => '3.7.0', 'nux' => '3.7.1',
'plugins' => '2.7.0', 'plugins' => '2.7.1',
'priority-queue' => '1.3.0', 'priority-queue' => '1.3.0',
'redux-routine' => '3.6.0', 'redux-routine' => '3.6.1',
'rich-text' => '3.7.0', 'rich-text' => '3.7.1',
'shortcode' => '2.4.0', 'shortcode' => '2.4.1',
'server-side-render' => '1.3.0', 'server-side-render' => '1.3.1',
'token-list' => '1.6.0', 'token-list' => '1.6.1',
'url' => '2.8.0', 'url' => '2.8.0',
'viewport' => '2.8.0', 'viewport' => '2.8.1',
'wordcount' => '2.6.0', 'wordcount' => '2.6.1',
); );
$packages_dependencies = array( $packages_dependencies = array(

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-beta1-46363'; $wp_version = '5.3-beta1-46364';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.