Block Editor: Update @wordpress package dependencies.

Update packages:

 - @wordpress/block-library@2.2.8
 - @wordpress/components@7.0.3
 - @wordpress/edit-post@3.1.3
 - @wordpress/editor@9.0.3
 - @wordpress/format-library@1.2.6
 - @wordpress/list-reusable-blocks@1.1.16
 - @wordpress/nux@3.0.4

Other changes:

Fix a translator comment in edit-form-blocks.php.
Rename the gutenberg_ functions in blocks/latest-comments.php.

Props pento.
Fixes #45145.

Built from https://develop.svn.wordpress.org/branches/5.0@43949


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
youknowriad 2018-11-30 09:59:52 +00:00
parent 98b042e189
commit 3dd6578998
53 changed files with 367 additions and 424 deletions

View File

@ -178,10 +178,7 @@ $styles = array(
),
);
/*
* Set a locale specific default font.
* Translators: Use this to specify the CSS font family for the default font
*/
/* Translators: Use this to specify the CSS font family for the default font */
$locale_font_family = esc_html_x( 'Noto Serif', 'CSS Font Family for Editor Font' );
$styles[] = array(
'css' => "body { font-family: '$locale_font_family' }",

View File

@ -2,7 +2,7 @@
/**
* Server-side rendering of the `core/archives` block.
*
* @package gutenberg
* @package WordPress
*/
/**

View File

@ -2,7 +2,7 @@
/**
* Server-side rendering of the `core/block` block.
*
* @package gutenberg
* @package WordPress
*/
/**

View File

@ -2,7 +2,7 @@
/**
* Server-side rendering of the `core/categories` block.
*
* @package gutenberg
* @package WordPress
*/
/**

View File

@ -2,7 +2,7 @@
/**
* Server-side rendering of the `core/latest-comments` block.
*
* @package gutenberg
* @package WordPress
*/
if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) {

View File

@ -2,7 +2,7 @@
/**
* Server-side rendering of the `core/latest-posts` block.
*
* @package gutenberg
* @package WordPress
*/
/**
@ -21,7 +21,7 @@ function render_block_core_latest_posts( $attributes ) {
);
if ( isset( $attributes['categories'] ) ) {
$args['categories'] = $attributes['categories'];
$args['category'] = $attributes['categories'];
}
$recent_posts = wp_get_recent_posts( $args );

View File

@ -2,7 +2,7 @@
/**
* Server-side rendering of the `core/shortcode` block.
*
* @package gutenberg
* @package WordPress
*/
/**

View File

@ -45,16 +45,15 @@
margin-bottom: 0;
position: relative; }
.wp-block-button .editor-rich-text__tinymce.mce-content-body {
cursor: text;
line-height: 24px; }
cursor: text; }
.wp-block-button:not(.has-text-color):not(.is-style-outline) .editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
color: #fff; }
.wp-block-button .editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
opacity: 0.8; }
.wp-block-button .editor-rich-text__tinymce[data-is-placeholder-visible="true"] {
height: auto; }
.editor-block-preview__content .wp-block-button {
max-width: 100%; }
.editor-block-preview__content .wp-block-button .editor-rich-text__tinymce[data-is-placeholder-visible="true"] {
height: auto; }
.editor-block-preview__content .wp-block-button .wp-block-button__link {
max-width: 100%;
overflow: hidden;
@ -241,6 +240,22 @@
.wp-block-cover.has-right-content .editor-rich-text__inline-toolbar {
justify-content: flex-end; }
.wp-block-cover-image.components-placeholder,
.wp-block-cover.components-placeholder {
background: rgba(139, 139, 150, 0.1);
min-height: 200px; }
.is-dark-theme .wp-block-cover-image.components-placeholder, .is-dark-theme
.wp-block-cover.components-placeholder {
background: rgba(255, 255, 255, 0.15); }
[data-align="left"] .wp-block-cover-image,
[data-align="right"] .wp-block-cover-image, [data-align="left"]
.wp-block-cover,
[data-align="right"]
.wp-block-cover {
max-width: 305px;
width: 100%; }
.wp-block-embed {
margin: 0;
clear: both; }
@ -281,7 +296,12 @@
margin-right: 1em; }
.wp-block-freeform.block-library-rich-text__tinymce {
overflow: hidden; }
overflow: hidden;
/**
* The following gallery styles were replicated
* from the styles applied in the tinymce skin,
* /wp-includes/js/tinymce/skins/wordpress/wp-content.css.
*/ }
.wp-block-freeform.block-library-rich-text__tinymce p,
.wp-block-freeform.block-library-rich-text__tinymce li {
line-height: 1.8; }
@ -352,6 +372,54 @@
outline: 0;
cursor: default;
border: 2px dashed #bababa; }
.wp-block-freeform.block-library-rich-text__tinymce .wpview-type-gallery::after {
content: "";
display: table;
clear: both; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus {
outline: none; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery a {
cursor: default; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery {
margin: auto -6px;
padding: 6px 0;
line-height: 1;
overflow-x: hidden; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item {
float: right;
margin: 0;
text-align: center;
padding: 6px;
box-sizing: border-box; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon {
margin: 0; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption {
font-size: 13px;
margin: 4px 0; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item {
width: 100%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item {
width: 50%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item {
width: 33.33333%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item {
width: 25%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item {
width: 20%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item {
width: 16.66667%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item {
width: 14.28571%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item {
width: 12.5%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item {
width: 11.11111%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery img {
max-width: 100%;
height: auto;
border: none;
padding: 0; }
.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active button,
.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover button,

File diff suppressed because one or more lines are too long

View File

@ -46,16 +46,15 @@
margin-bottom: 0;
position: relative; }
.wp-block-button .editor-rich-text__tinymce.mce-content-body {
cursor: text;
line-height: 24px; }
cursor: text; }
.wp-block-button:not(.has-text-color):not(.is-style-outline) .editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
color: #fff; }
.wp-block-button .editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
opacity: 0.8; }
.wp-block-button .editor-rich-text__tinymce[data-is-placeholder-visible="true"] {
height: auto; }
.editor-block-preview__content .wp-block-button {
max-width: 100%; }
.editor-block-preview__content .wp-block-button .editor-rich-text__tinymce[data-is-placeholder-visible="true"] {
height: auto; }
.editor-block-preview__content .wp-block-button .wp-block-button__link {
max-width: 100%;
overflow: hidden;
@ -242,6 +241,22 @@
.wp-block-cover.has-right-content .editor-rich-text__inline-toolbar {
justify-content: flex-end; }
.wp-block-cover-image.components-placeholder,
.wp-block-cover.components-placeholder {
background: rgba(139, 139, 150, 0.1);
min-height: 200px; }
.is-dark-theme .wp-block-cover-image.components-placeholder, .is-dark-theme
.wp-block-cover.components-placeholder {
background: rgba(255, 255, 255, 0.15); }
[data-align="left"] .wp-block-cover-image,
[data-align="right"] .wp-block-cover-image, [data-align="left"]
.wp-block-cover,
[data-align="right"]
.wp-block-cover {
max-width: 305px;
width: 100%; }
.wp-block-embed {
margin: 0;
clear: both; }
@ -282,7 +297,12 @@
margin-left: 1em; }
.wp-block-freeform.block-library-rich-text__tinymce {
overflow: hidden; }
overflow: hidden;
/**
* The following gallery styles were replicated
* from the styles applied in the tinymce skin,
* /wp-includes/js/tinymce/skins/wordpress/wp-content.css.
*/ }
.wp-block-freeform.block-library-rich-text__tinymce p,
.wp-block-freeform.block-library-rich-text__tinymce li {
line-height: 1.8; }
@ -357,6 +377,54 @@
outline: 0;
cursor: default;
border: 2px dashed #bababa; }
.wp-block-freeform.block-library-rich-text__tinymce .wpview-type-gallery::after {
content: "";
display: table;
clear: both; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus {
outline: none; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery a {
cursor: default; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery {
margin: auto -6px;
padding: 6px 0;
line-height: 1;
overflow-x: hidden; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item {
float: left;
margin: 0;
text-align: center;
padding: 6px;
box-sizing: border-box; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon {
margin: 0; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption {
font-size: 13px;
margin: 4px 0; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item {
width: 100%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item {
width: 50%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item {
width: 33.33333%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item {
width: 25%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item {
width: 20%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item {
width: 16.66667%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item {
width: 14.28571%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item {
width: 12.5%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item {
width: 11.11111%; }
.wp-block-freeform.block-library-rich-text__tinymce .gallery img {
max-width: 100%;
height: auto;
border: none;
padding: 0; }
.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active button,
.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover button,

File diff suppressed because one or more lines are too long

View File

@ -103,19 +103,18 @@
.wp-block-button__link {
background-color: #32373c;
border: none;
border-radius: 23px;
border-radius: 28px;
box-shadow: none;
color: inherit;
cursor: pointer;
display: inline-block;
font-size: 18px;
line-height: 24px;
margin: 0;
padding: 11px 24px;
padding: 12px 24px;
text-align: center;
text-decoration: none;
white-space: normal;
word-break: break-all; }
overflow-wrap: break-word; }
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active {
color: inherit; }
@ -284,18 +283,7 @@
.wp-block-cover-image.has-background-dim.has-background-dim-100::before,
.wp-block-cover.has-background-dim.has-background-dim-100::before {
opacity: 1; }
.wp-block-cover-image.components-placeholder,
.wp-block-cover.components-placeholder {
background: rgba(139, 139, 150, 0.1);
min-height: 200px; }
.is-dark-theme .wp-block-cover-image.components-placeholder, .is-dark-theme
.wp-block-cover.components-placeholder {
background: rgba(255, 255, 255, 0.15); }
[data-align="left"] .wp-block-cover-image,
[data-align="right"] .wp-block-cover-image, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, [data-align="left"]
.wp-block-cover,
[data-align="right"]
.wp-block-cover,
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
.wp-block-cover.alignleft,
.wp-block-cover.alignright {
max-width: 305px;

File diff suppressed because one or more lines are too long

View File

@ -104,19 +104,18 @@
.wp-block-button__link {
background-color: #32373c;
border: none;
border-radius: 23px;
border-radius: 28px;
box-shadow: none;
color: inherit;
cursor: pointer;
display: inline-block;
font-size: 18px;
line-height: 24px;
margin: 0;
padding: 11px 24px;
padding: 12px 24px;
text-align: center;
text-decoration: none;
white-space: normal;
word-break: break-all; }
overflow-wrap: break-word; }
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active {
color: inherit; }
@ -287,18 +286,7 @@
.wp-block-cover-image.has-background-dim.has-background-dim-100::before,
.wp-block-cover.has-background-dim.has-background-dim-100::before {
opacity: 1; }
.wp-block-cover-image.components-placeholder,
.wp-block-cover.components-placeholder {
background: rgba(139, 139, 150, 0.1);
min-height: 200px; }
.is-dark-theme .wp-block-cover-image.components-placeholder, .is-dark-theme
.wp-block-cover.components-placeholder {
background: rgba(255, 255, 255, 0.15); }
[data-align="left"] .wp-block-cover-image,
[data-align="right"] .wp-block-cover-image, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, [data-align="left"]
.wp-block-cover,
[data-align="right"]
.wp-block-cover,
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
.wp-block-cover.alignleft,
.wp-block-cover.alignright {
max-width: 305px;

File diff suppressed because one or more lines are too long

View File

@ -2369,13 +2369,16 @@ body.is-dragging-components-draggable {
justify-content: space-between;
background: #fff;
align-items: center;
box-sizing: border-box;
height: 56px;
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 10;
margin: 0 -16px 16px; }
@supports (-ms-ime-align: auto) {
.components-modal__header {
position: fixed;
width: 100%; } }
.components-modal__header .components-modal__header-heading {
font-size: 1em;
font-weight: 400; }
@ -2401,6 +2404,9 @@ body.is-dragging-components-draggable {
box-sizing: border-box;
height: 100%;
padding: 0 16px 16px; }
@supports (-ms-ime-align: auto) {
.components-modal__content {
padding-top: 56px; } }
.components-notice {
background-color: #e5f5fa;

File diff suppressed because one or more lines are too long

View File

@ -2369,13 +2369,16 @@ body.is-dragging-components-draggable {
justify-content: space-between;
background: #fff;
align-items: center;
box-sizing: border-box;
height: 56px;
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 10;
margin: 0 -16px 16px; }
@supports (-ms-ime-align: auto) {
.components-modal__header {
position: fixed;
width: 100%; } }
.components-modal__header .components-modal__header-heading {
font-size: 1em;
font-weight: 400; }
@ -2401,6 +2404,9 @@ body.is-dragging-components-draggable {
box-sizing: border-box;
height: 100%;
padding: 0 16px 16px; }
@supports (-ms-ime-align: auto) {
.components-modal__content {
padding-top: 56px; } }
.components-notice {
background-color: #e5f5fa;

File diff suppressed because one or more lines are too long

View File

@ -949,7 +949,8 @@ body.is-fullscreen-mode .components-notice-list {
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
width: calc(100% + 30px);
height: 0;
text-align: center; }
text-align: center;
float: right; }
.edit-post-visual-editor .editor-block-list__block[data-align="wide"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar,
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar {
max-width: 610px;
@ -958,9 +959,7 @@ body.is-fullscreen-mode .components-notice-list {
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
width: 100%;
margin-right: 0;
margin-left: 0; }
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar {
max-width: 608px; } }
margin-left: 0; } }
@media (min-width: 600px) {
.editor-post-title {

File diff suppressed because one or more lines are too long

View File

@ -949,7 +949,8 @@ body.is-fullscreen-mode .components-notice-list {
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
width: calc(100% + 30px);
height: 0;
text-align: center; }
text-align: center;
float: left; }
.edit-post-visual-editor .editor-block-list__block[data-align="wide"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar,
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar {
max-width: 610px;
@ -958,9 +959,7 @@ body.is-fullscreen-mode .components-notice-list {
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
width: 100%;
margin-left: 0;
margin-right: 0; }
.edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar {
max-width: 608px; } }
margin-right: 0; } }
@media (min-width: 600px) {
.editor-post-title {

File diff suppressed because one or more lines are too long

View File

@ -1102,12 +1102,14 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
display: flex;
height: 60px;
background: #fff; }
.editor-block-styles__item-preview > * {
.editor-block-styles__item-preview .editor-block-preview__content {
transform: scale(0.7);
transform-origin: center center;
font-family: "Noto Serif", serif; }
.editor-block-styles__item-preview .editor-block-preview__content {
width: 100%; }
width: 100%;
margin: 0;
padding: 0;
overflow: visible;
min-height: auto; }
.editor-block-styles__item-label {
text-align: center;
@ -1175,7 +1177,8 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
outline-offset: -2px; }
.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content {
min-width: 320px; }
min-width: 300px;
max-width: 340px; }
@media (min-width: 782px) {
.editor-block-switcher__popover .components-popover__content {

File diff suppressed because one or more lines are too long

View File

@ -1114,12 +1114,14 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
display: flex;
height: 60px;
background: #fff; }
.editor-block-styles__item-preview > * {
.editor-block-styles__item-preview .editor-block-preview__content {
transform: scale(0.7);
transform-origin: center center;
font-family: "Noto Serif", serif; }
.editor-block-styles__item-preview .editor-block-preview__content {
width: 100%; }
width: 100%;
margin: 0;
padding: 0;
overflow: visible;
min-height: auto; }
.editor-block-styles__item-label {
text-align: center;
@ -1187,7 +1189,8 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
outline-offset: -2px; }
.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content {
min-width: 320px; }
min-width: 300px;
max-width: 340px; }
@media (min-width: 782px) {
.editor-block-switcher__popover .components-popover__content {

File diff suppressed because one or more lines are too long

View File

@ -903,7 +903,7 @@ var objectKeys = Object.keys || function (obj) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -1223,7 +1223,7 @@ function _slicedToArray(arr, i) {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -3245,7 +3245,7 @@ function (_Component) {
'is-focused': isSelected
});
var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport;
var isLinkURLInputDisabled = linkDestination !== LINK_DESTINATION_CUSTOM;
var isLinkURLInputReadOnly = linkDestination !== LINK_DESTINATION_CUSTOM;
var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) {
return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
@ -3311,8 +3311,8 @@ function (_Component) {
label: Object(external_this_wp_i18n_["__"])('Link URL'),
value: href || '',
onChange: _this3.onSetCustomHref,
placeholder: !isLinkURLInputDisabled ? 'https://' : undefined,
disabled: isLinkURLInputDisabled
placeholder: !isLinkURLInputReadOnly ? 'https://' : undefined,
readOnly: isLinkURLInputReadOnly
}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
label: Object(external_this_wp_i18n_["__"])('Open in New Tab'),
onChange: _this3.onSetNewTab,
@ -8916,7 +8916,7 @@ function (_Component) {
var open = _ref.open;
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
className: "components-toolbar__control",
label: Object(external_this_wp_i18n_["__"])('Edit Media'),
label: Object(external_this_wp_i18n_["__"])('Edit media'),
icon: "edit",
onClick: open
});

File diff suppressed because one or more lines are too long

View File

@ -194,7 +194,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -520,24 +520,6 @@ function _slicedToArray(arr, i) {
/***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) {
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else {
// By explicitly using `prop-types` you are opting into new production behavior.
// http://fb.me/prop-types-in-prod
module.exports = __webpack_require__(109)();
}
/***/ }),
/* 29 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -558,6 +540,24 @@ function _typeof(obj) {
return _typeof(obj);
}
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else {
// By explicitly using `prop-types` you are opting into new production behavior.
// http://fb.me/prop-types-in-prod
module.exports = __webpack_require__(109)();
}
/***/ }),
/* 30 */
/***/ (function(module, exports) {
@ -2124,7 +2124,7 @@ var _object = __webpack_require__(42);
var _object2 = _interopRequireDefault(_object);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2164,7 +2164,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2593,7 +2593,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2714,7 +2714,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2748,7 +2748,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2842,7 +2842,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2863,7 +2863,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -2998,7 +2998,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -3320,7 +3320,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -3545,7 +3545,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -4309,7 +4309,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -7593,7 +7593,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -8042,7 +8042,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -8674,7 +8674,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -8815,7 +8815,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -8836,7 +8836,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -8857,7 +8857,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -9049,7 +9049,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -9538,7 +9538,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -9996,7 +9996,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -10686,7 +10686,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -12294,7 +12294,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -13330,7 +13330,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -13469,7 +13469,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -13832,7 +13832,7 @@ var external_React_ = __webpack_require__(26);
var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
var prop_types = __webpack_require__(28);
var prop_types = __webpack_require__(29);
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
// CONCATENATED MODULE: ./node_modules/react-portal/es/utils.js
@ -14116,7 +14116,6 @@ PortalWithState_PortalWithState.propTypes = {
children: prop_types_default.a.func.isRequired,
defaultOpen: prop_types_default.a.bool,
node: prop_types_default.a.any,
openByClickOn: prop_types_default.a.element,
closeOnEsc: prop_types_default.a.bool,
closeOnOutsideClick: prop_types_default.a.bool,
onOpen: prop_types_default.a.func,
@ -18628,7 +18627,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -18729,7 +18728,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -20223,7 +20222,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -20997,7 +20996,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -21381,7 +21380,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -21887,7 +21886,7 @@ var _react = __webpack_require__(26);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(28);
var _propTypes = __webpack_require__(29);
var _propTypes2 = _interopRequireDefault(_propTypes);
@ -31215,7 +31214,7 @@ function FormToggle(_ref) {
/* harmony default export */ var form_toggle = (FormToggle);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(29);
var esm_typeof = __webpack_require__(28);
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token.js

File diff suppressed because one or more lines are too long

View File

@ -112,7 +112,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -206,7 +206,7 @@ function _extends() {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";

File diff suppressed because one or more lines are too long

View File

@ -112,7 +112,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -406,7 +406,7 @@ function _slicedToArray(arr, i) {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";

File diff suppressed because one or more lines are too long

View File

@ -126,7 +126,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -460,7 +460,7 @@ function _slicedToArray(arr, i) {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -4245,16 +4245,16 @@ var settings_header_SettingsHeader = function SettingsHeader(_ref) {
var blockLabel = Object(external_this_wp_i18n_["__"])('Block');
var _ref2 = sidebarName === 'edit-post/document' ? // translators: ARIA label for the Document Settings sidebar tab, selected.
[Object(external_this_wp_i18n_["__"])('Document settings (selected)'), 'is-active'] : // translators: ARIA label for the Document Settings sidebar tab, not selected.
[Object(external_this_wp_i18n_["__"])('Document settings'), ''],
var _ref2 = sidebarName === 'edit-post/document' ? // translators: ARIA label for the Document sidebar tab, selected.
[Object(external_this_wp_i18n_["__"])('Document (selected)'), 'is-active'] : // translators: ARIA label for the Document sidebar tab, not selected.
[Object(external_this_wp_i18n_["__"])('Document'), ''],
_ref3 = Object(slicedToArray["a" /* default */])(_ref2, 2),
documentAriaLabel = _ref3[0],
documentActiveClass = _ref3[1];
var _ref4 = sidebarName === 'edit-post/block' ? // translators: ARIA label for the Block Settings sidebar tab, selected.
[Object(external_this_wp_i18n_["__"])('Block settings (selected)'), 'is-active'] : // translators: ARIA label for the Block Settings sidebar tab, not selected.
[Object(external_this_wp_i18n_["__"])('Block settings'), ''],
var _ref4 = sidebarName === 'edit-post/block' ? // translators: ARIA label for the Block sidebar tab, selected.
[Object(external_this_wp_i18n_["__"])('Block (selected)'), 'is-active'] : // translators: ARIA label for the Block sidebar tab, not selected.
[Object(external_this_wp_i18n_["__"])('Block'), ''],
_ref5 = Object(slicedToArray["a" /* default */])(_ref4, 2),
blockAriaLabel = _ref5[0],
blockActiveClass = _ref5[1];
@ -5194,182 +5194,6 @@ function (_Component) {
};
})(fullscreen_mode_FullscreenMode));
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/admin-notices/index.js
/**
* WordPress dependencies
*/
/**
* Mapping of server-supported notice class names to an equivalent notices
* module status.
*
* @type {Map}
*/
var NOTICE_CLASS_STATUSES = {
'notice-success': 'success',
updated: 'success',
'notice-warning': 'warning',
'notice-error': 'error',
error: 'error',
'notice-info': 'info'
};
/**
* Returns an array of admin notice Elements.
*
* @return {Element[]} Admin notice elements.
*/
function getAdminNotices() {
// The order is reversed to match expectations of rendered order, since a
// NoticesList is itself rendered in reverse order (newest to oldest).
return Object(toConsumableArray["a" /* default */])(document.querySelectorAll('#wpbody-content > .notice')).reverse();
}
/**
* Given an admin notice Element, returns the relevant notice content HTML.
*
* @param {Element} element Admin notice element.
*
* @return {Element} Upgraded notice HTML.
*/
function getNoticeHTML(element) {
var fragments = [];
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = element.childNodes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var child = _step.value;
if (child.nodeType !== window.Node.ELEMENT_NODE) {
var value = child.nodeValue.trim();
if (value) {
fragments.push(child.nodeValue);
}
} else if (!child.classList.contains('notice-dismiss')) {
fragments.push(child.outerHTML);
}
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return != null) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
return fragments.join('');
}
/**
* Given an admin notice Element, returns the upgraded status type, or
* undefined if one cannot be determined (i.e. one is not assigned).
*
* @param {Element} element Admin notice element.
*
* @return {?string} Upgraded status type.
*/
function getNoticeStatus(element) {
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = element.classList[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var className = _step2.value;
if (NOTICE_CLASS_STATUSES.hasOwnProperty(className)) {
return NOTICE_CLASS_STATUSES[className];
}
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
_iterator2.return();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}
}
var admin_notices_AdminNotices =
/*#__PURE__*/
function (_Component) {
Object(inherits["a" /* default */])(AdminNotices, _Component);
function AdminNotices() {
Object(classCallCheck["a" /* default */])(this, AdminNotices);
return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(AdminNotices).apply(this, arguments));
}
Object(createClass["a" /* default */])(AdminNotices, [{
key: "componentDidMount",
value: function componentDidMount() {
this.convertNotices();
}
}, {
key: "convertNotices",
value: function convertNotices() {
var createNotice = this.props.createNotice;
getAdminNotices().forEach(function (element) {
// Convert and create.
var status = getNoticeStatus(element);
var content = getNoticeHTML(element);
var isDismissible = element.classList.contains('is-dismissible');
createNotice(status, content, {
speak: false,
__unstableHTML: true,
isDismissible: isDismissible
}); // Remove (now-redundant) admin notice element.
element.parentNode.removeChild(element);
});
}
}, {
key: "render",
value: function render() {
return null;
}
}]);
return AdminNotices;
}(external_this_wp_element_["Component"]);
/* harmony default export */ var admin_notices = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
var _dispatch = dispatch('core/notices'),
createNotice = _dispatch.createNotice;
return {
createNotice: createNotice
};
})(admin_notices_AdminNotices));
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/layout/index.js
@ -5408,7 +5232,6 @@ function (_Component) {
function Layout(_ref) {
var mode = _ref.mode,
editorSidebarOpened = _ref.editorSidebarOpened,
@ -5435,7 +5258,7 @@ function Layout(_ref) {
};
return Object(external_this_wp_element_["createElement"])("div", {
className: className
}, Object(external_this_wp_element_["createElement"])(fullscreen_mode, null), Object(external_this_wp_element_["createElement"])(browser_url, null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["UnsavedChangesWarning"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AutosaveMonitor"], null), Object(external_this_wp_element_["createElement"])(admin_notices, null), Object(external_this_wp_element_["createElement"])(header, null), Object(external_this_wp_element_["createElement"])("div", {
}, Object(external_this_wp_element_["createElement"])(fullscreen_mode, null), Object(external_this_wp_element_["createElement"])(browser_url, null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["UnsavedChangesWarning"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AutosaveMonitor"], null), Object(external_this_wp_element_["createElement"])(header, null), Object(external_this_wp_element_["createElement"])("div", {
className: "edit-post-layout__content",
role: "region"
/* translators: accessibility text for the content landmark region. */

File diff suppressed because one or more lines are too long

View File

@ -209,7 +209,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -530,24 +530,6 @@ function _slicedToArray(arr, i) {
/***/ }),
/* 27 */,
/* 28 */
/***/ (function(module, exports, __webpack_require__) {
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else {
// By explicitly using `prop-types` you are opting into new production behavior.
// http://fb.me/prop-types-in-prod
module.exports = __webpack_require__(109)();
}
/***/ }),
/* 29 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -568,6 +550,24 @@ function _typeof(obj) {
return _typeof(obj);
}
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else {
// By explicitly using `prop-types` you are opting into new production behavior.
// http://fb.me/prop-types-in-prod
module.exports = __webpack_require__(109)();
}
/***/ }),
/* 30 */
/***/ (function(module, exports) {
@ -7234,7 +7234,7 @@ var __rest = (this && this.__rest) || function (s, e) {
};
exports.__esModule = true;
var React = __webpack_require__(26);
var PropTypes = __webpack_require__(28);
var PropTypes = __webpack_require__(29);
var autosize = __webpack_require__(271);
var _getLineHeight = __webpack_require__(272);
var getLineHeight = _getLineHeight;
@ -7996,7 +7996,7 @@ var toConsumableArray = __webpack_require__(19);
var defineProperty = __webpack_require__(15);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(29);
var esm_typeof = __webpack_require__(28);
// EXTERNAL MODULE: ./node_modules/redux-optimist/index.js
var redux_optimist = __webpack_require__(53);
@ -11283,8 +11283,11 @@ function hasSelectedBlock(state) {
function selectors_getSelectedBlockClientId(state) {
var _state$blockSelection2 = state.blockSelection,
start = _state$blockSelection2.start,
end = _state$blockSelection2.end;
return start === end && start ? start : null;
end = _state$blockSelection2.end; // We need to check the block exists because the current state.blockSelection reducer
// doesn't take into account the UNDO / REDO actions to update selection.
// To be removed when that's fixed.
return start && start === end && !!state.editor.present.blocks.byClientId[start] ? start : null;
}
/**
* Returns the currently selected block, or null if there is no selected block.
@ -20127,6 +20130,7 @@ var aria_diffAriaProps = function diffAriaProps(props, nextProps) {
var tinymce_window = window,
tinymce_getSelection = tinymce_window.getSelection;
var TEXT_NODE = window.Node.TEXT_NODE;
var userAgent = window.navigator.userAgent;
/**
* Zero-width space character used by TinyMCE as a caret landing point for
* inline boundary nodes.
@ -20137,20 +20141,6 @@ var TEXT_NODE = window.Node.TEXT_NODE;
*/
var TINYMCE_ZWSP = "\uFEFF";
/**
* Determines whether we need a fix to provide `input` events for contenteditable.
*
* @param {Element} editorNode The root editor node.
*
* @return {boolean} A boolean indicating whether the fix is needed.
*/
function needsInternetExplorerInputFix(editorNode) {
return (// Rely on userAgent in the absence of a reasonable feature test for contenteditable `input` events.
/Trident/.test(window.navigator.userAgent) && // IE11 dispatches input events for `<input>` and `<textarea>`.
!/input/i.test(editorNode.tagName) && !/textarea/i.test(editorNode.tagName)
);
}
/**
* Applies a fix that provides `input` events for contenteditable in Internet Explorer.
*
@ -20159,7 +20149,6 @@ function needsInternetExplorerInputFix(editorNode) {
* @return {Function} A function to remove the fix (for cleanup).
*/
function applyInternetExplorerInputFix(editorNode) {
/**
* Dispatches `input` events in response to `textinput` events.
@ -20217,6 +20206,13 @@ function applyInternetExplorerInputFix(editorNode) {
}
var IS_PLACEHOLDER_VISIBLE_ATTR_NAME = 'data-is-placeholder-visible';
/**
* Whether or not the user agent is Internet Explorer.
*
* @type {boolean}
*/
var IS_IE = userAgent.indexOf('Trident') >= 0;
var tinymce_TinyMCE =
/*#__PURE__*/
@ -20368,7 +20364,12 @@ function (_Component) {
editor.shortcuts.remove("access+".concat(number));
}); // Restore the original `setHTML` once initialized.
editor.dom.setHTML = setHTML;
editor.dom.setHTML = setHTML; // In IE11, focus is lost to parent after initialising
// TinyMCE, so we have to set it back.
if (IS_IE && document.activeElement !== _this3.editorNode && document.activeElement.contains(_this3.editorNode)) {
_this3.editorNode.focus();
}
});
editor.on('keydown', _this3.onKeyDown, true);
}
@ -20382,19 +20383,15 @@ function (_Component) {
if (this.props.setRef) {
this.props.setRef(editorNode);
}
/**
* A ref function can be used for cleanup because React calls it with
* `null` when unmounting.
*/
if (this.removeInternetExplorerInputFix) {
this.removeInternetExplorerInputFix();
this.removeInternetExplorerInputFix = null;
}
if (editorNode && needsInternetExplorerInputFix(editorNode)) {
this.removeInternetExplorerInputFix = applyInternetExplorerInputFix(editorNode);
if (IS_IE) {
if (editorNode) {
// Mounting:
this.removeInternetExplorerInputFix = applyInternetExplorerInputFix(editorNode);
} else {
// Unmounting:
this.removeInternetExplorerInputFix();
}
}
}
}, {

File diff suppressed because one or more lines are too long

View File

@ -167,7 +167,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -413,7 +413,7 @@ var utils_isEmptyElement = function isEmptyElement(element) {
};
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(29);
var esm_typeof = __webpack_require__(28);
// EXTERNAL MODULE: external {"this":["wp","escapeHtml"]}
var external_this_wp_escapeHtml_ = __webpack_require__(60);

File diff suppressed because one or more lines are too long

View File

@ -119,7 +119,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -318,7 +318,7 @@ function _objectWithoutProperties(source, excluded) {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";

File diff suppressed because one or more lines are too long

View File

@ -119,7 +119,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -188,7 +188,7 @@ function _inherits(subClass, superClass) {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";

File diff suppressed because one or more lines are too long

View File

@ -112,7 +112,7 @@ function _classCallCheck(instance, Constructor) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
@ -235,7 +235,7 @@ function _extends() {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -355,7 +355,7 @@ var plugin_context_withPluginContext = function withPluginContext(mapContextToPr
var objectSpread = __webpack_require__(8);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(29);
var esm_typeof = __webpack_require__(28);
// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/api/index.js

File diff suppressed because one or more lines are too long

View File

@ -302,7 +302,7 @@ exports.wrapControls = _wrap2.default;
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -731,7 +731,7 @@ function isGenerator(object) {
}
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(29);
var esm_typeof = __webpack_require__(28);
// EXTERNAL MODULE: ./node_modules/rungen/dist/index.js
var dist = __webpack_require__(194);

File diff suppressed because one or more lines are too long

View File

@ -188,7 +188,7 @@ function _toConsumableArray(arr) {
/***/ }),
/***/ 29:
/***/ 28:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -640,7 +640,7 @@ function concat() {
var toConsumableArray = __webpack_require__(19);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(29);
var esm_typeof = __webpack_require__(28);
// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/special-characters.js
var LINE_SEPARATOR = "\u2028";

File diff suppressed because one or more lines are too long

View File

@ -212,10 +212,10 @@ function wp_default_packages_scripts( &$scripts ) {
'annotations' => '1.0.3',
'autop' => '2.0.2',
'blob' => '2.1.0',
'block-library' => '2.2.7',
'block-library' => '2.2.8',
'block-serialization-default-parser' => '2.0.0',
'blocks' => '6.0.2',
'components' => '7.0.2',
'components' => '7.0.3',
'compose' => '3.0.0',
'core-data' => '2.0.14',
'data' => '4.0.1',
@ -223,19 +223,19 @@ function wp_default_packages_scripts( &$scripts ) {
'deprecated' => '2.0.3',
'dom' => '2.0.7',
'dom-ready' => '2.0.2',
'edit-post' => '3.1.2',
'editor' => '9.0.2',
'edit-post' => '3.1.3',
'editor' => '9.0.3',
'element' => '2.1.8',
'escape-html' => '1.0.1',
'format-library' => '1.2.5',
'format-library' => '1.2.6',
'hooks' => '2.0.3',
'html-entities' => '2.0.3',
'i18n' => '3.1.0',
'is-shallow-equal' => '1.1.4',
'keycodes' => '2.0.5',
'list-reusable-blocks' => '1.1.15',
'list-reusable-blocks' => '1.1.16',
'notices' => '1.1.0',
'nux' => '3.0.3',
'nux' => '3.0.4',
'plugins' => '2.0.9',
'redux-routine' => '3.0.3',
'rich-text' => '3.0.2',
@ -276,7 +276,6 @@ function wp_default_packages_scripts( &$scripts ) {
'block-library' => array(
'editor',
'lodash',
'moment',
'wp-api-fetch',
'wp-autop',
'wp-blob',

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-RC1-43947';
$wp_version = '5.0-RC1-43949';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.