mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-12 03:13:29 +01:00
Block Editor: Update @WordPress dependencies to match Gutenberg 4.5.1.
Updates packages: annotations, api-fetch, block-library, blocks, components, core-data, data, dom, edit-post, editor, format-library, jest-console, jest-preset-default, keycodes, html-entities, list-reusable-blocks, notices, nux, rich-text, scripts, token-list, url, viewport Fixes undefined notices in some blocks. Removes incorrect `'gutenberg'` textdomain too. See #45145 Built from https://develop.svn.wordpress.org/branches/5.0@43919 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6b781c6823
commit
0fb5da94e6
@ -177,6 +177,16 @@ $styles = array(
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
/*
|
||||
* Set a locale specific 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' }",
|
||||
);
|
||||
|
||||
if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
|
||||
foreach ( $editor_styles as $style ) {
|
||||
if ( preg_match( '~^(https?:)?//~', $style ) ) {
|
||||
|
@ -32,7 +32,7 @@ function render_block_core_archives( $attributes ) {
|
||||
$class .= ' wp-block-archives-dropdown';
|
||||
|
||||
$dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
|
||||
$title = __( 'Archives', 'gutenberg' );
|
||||
$title = __( 'Archives' );
|
||||
|
||||
/** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
|
||||
$dropdown_args = apply_filters(
|
||||
@ -50,19 +50,19 @@ function render_block_core_archives( $attributes ) {
|
||||
|
||||
switch ( $dropdown_args['type'] ) {
|
||||
case 'yearly':
|
||||
$label = __( 'Select Year', 'gutenberg' );
|
||||
$label = __( 'Select Year' );
|
||||
break;
|
||||
case 'monthly':
|
||||
$label = __( 'Select Month', 'gutenberg' );
|
||||
$label = __( 'Select Month' );
|
||||
break;
|
||||
case 'daily':
|
||||
$label = __( 'Select Day', 'gutenberg' );
|
||||
$label = __( 'Select Day' );
|
||||
break;
|
||||
case 'weekly':
|
||||
$label = __( 'Select Week', 'gutenberg' );
|
||||
$label = __( 'Select Week' );
|
||||
break;
|
||||
default:
|
||||
$label = __( 'Select Post', 'gutenberg' );
|
||||
$label = __( 'Select Post' );
|
||||
break;
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ function render_block_core_archives( $attributes ) {
|
||||
$block_content = sprintf(
|
||||
'<div class="%1$s">%2$s</div>',
|
||||
$classnames,
|
||||
__( 'No archives to show.', 'gutenberg' )
|
||||
__( 'No archives to show.' )
|
||||
);
|
||||
} else {
|
||||
|
||||
|
@ -27,7 +27,7 @@ function render_block_core_categories( $attributes ) {
|
||||
if ( ! empty( $attributes['displayAsDropdown'] ) ) {
|
||||
$id = 'wp-block-categories-' . $block_id;
|
||||
$args['id'] = $id;
|
||||
$args['show_option_none'] = __( 'Select Category', 'gutenberg' );
|
||||
$args['show_option_none'] = __( 'Select Category' );
|
||||
$wrapper_markup = '<div class="%1$s">%2$s</div>';
|
||||
$items_markup = wp_dropdown_categories( $args );
|
||||
$type = 'dropdown';
|
||||
|
@ -29,7 +29,7 @@ if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) {
|
||||
function gutenberg_draft_or_post_title( $post = 0 ) {
|
||||
$title = get_the_title( $post );
|
||||
if ( empty( $title ) ) {
|
||||
$title = __( '(no title)', 'gutenberg' );
|
||||
$title = __( '(no title)' );
|
||||
}
|
||||
return esc_html( $title );
|
||||
}
|
||||
@ -98,7 +98,7 @@ function gutenberg_render_block_core_latest_comments( $attributes = array() ) {
|
||||
|
||||
$list_items_markup .= sprintf(
|
||||
/* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */
|
||||
__( '%1$s on %2$s', 'gutenberg' ),
|
||||
__( '%1$s on %2$s' ),
|
||||
$author_markup,
|
||||
$post_title
|
||||
);
|
||||
@ -119,7 +119,7 @@ function gutenberg_render_block_core_latest_comments( $attributes = array() ) {
|
||||
}
|
||||
|
||||
$class = 'wp-block-latest-comments';
|
||||
if ( $attributes['align'] ) {
|
||||
if ( isset( $attributes['align'] ) ) {
|
||||
$class .= " align{$attributes['align']}";
|
||||
}
|
||||
if ( $attributes['displayAvatar'] ) {
|
||||
@ -143,7 +143,7 @@ function gutenberg_render_block_core_latest_comments( $attributes = array() ) {
|
||||
) : sprintf(
|
||||
'<div class="%1$s">%2$s</div>',
|
||||
$classnames,
|
||||
__( 'No comments to show.', 'gutenberg' )
|
||||
__( 'No comments to show.' )
|
||||
);
|
||||
|
||||
return $block_content;
|
||||
|
@ -13,16 +13,19 @@
|
||||
* @return string Returns the post content with latest posts added.
|
||||
*/
|
||||
function render_block_core_latest_posts( $attributes ) {
|
||||
$recent_posts = wp_get_recent_posts(
|
||||
array(
|
||||
'numberposts' => $attributes['postsToShow'],
|
||||
'post_status' => 'publish',
|
||||
'order' => $attributes['order'],
|
||||
'orderby' => $attributes['orderBy'],
|
||||
'category' => $attributes['categories'],
|
||||
)
|
||||
$args = array(
|
||||
'numberposts' => $attributes['postsToShow'],
|
||||
'post_status' => 'publish',
|
||||
'order' => $attributes['order'],
|
||||
'orderby' => $attributes['orderBy'],
|
||||
);
|
||||
|
||||
if ( isset( $attributes['categories'] ) ) {
|
||||
$args['categories'] = $attributes['categories'];
|
||||
}
|
||||
|
||||
$recent_posts = wp_get_recent_posts( $args );
|
||||
|
||||
$list_items_markup = '';
|
||||
|
||||
foreach ( $recent_posts as $post ) {
|
||||
@ -30,7 +33,7 @@ function render_block_core_latest_posts( $attributes ) {
|
||||
|
||||
$title = get_the_title( $post_id );
|
||||
if ( ! $title ) {
|
||||
$title = __( '(Untitled)', 'gutenberg' );
|
||||
$title = __( '(Untitled)' );
|
||||
}
|
||||
$list_items_markup .= sprintf(
|
||||
'<li><a href="%1$s">%2$s</a>',
|
||||
|
@ -51,6 +51,8 @@
|
||||
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 .wp-block-button__link {
|
||||
@ -241,8 +243,10 @@
|
||||
|
||||
.wp-block-embed {
|
||||
margin: 0;
|
||||
clear: both;
|
||||
min-width: 360px; }
|
||||
clear: both; }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-embed {
|
||||
min-width: 360px; } }
|
||||
.wp-block-embed.is-loading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
File diff suppressed because one or more lines are too long
@ -52,6 +52,8 @@
|
||||
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 .wp-block-button__link {
|
||||
@ -242,8 +244,10 @@
|
||||
|
||||
.wp-block-embed {
|
||||
margin: 0;
|
||||
clear: both;
|
||||
min-width: 360px; }
|
||||
clear: both; }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-embed {
|
||||
min-width: 360px; } }
|
||||
.wp-block-embed.is-loading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
File diff suppressed because one or more lines are too long
107
wp-includes/css/dist/block-library/style-rtl.css
vendored
107
wp-includes/css/dist/block-library/style-rtl.css
vendored
@ -93,48 +93,40 @@
|
||||
left: -14px; }
|
||||
|
||||
.wp-block-button {
|
||||
color: #fff;
|
||||
margin-bottom: 1.5em; }
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border: none;
|
||||
border-radius: 23px;
|
||||
box-shadow: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
margin: 0;
|
||||
padding: 11px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
white-space: normal;
|
||||
word-break: break-all; }
|
||||
.wp-block-button.is-style-squared .wp-block-button__link {
|
||||
border-radius: 0; }
|
||||
.wp-block-button.aligncenter {
|
||||
text-align: center; }
|
||||
.wp-block-button.alignright {
|
||||
text-align: right; }
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background-color: #32373c; }
|
||||
.wp-block-button__link:not(.has-background):hover, .wp-block-button__link:not(.has-background):focus, .wp-block-button__link:not(.has-background):active {
|
||||
background-color: #32373c; }
|
||||
.wp-block-button__link {
|
||||
background-color: #32373c;
|
||||
border: none;
|
||||
border-radius: 23px;
|
||||
box-shadow: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
margin: 0;
|
||||
padding: 11px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
white-space: normal;
|
||||
word-break: break-all; }
|
||||
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active {
|
||||
color: inherit; }
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link {
|
||||
background: transparent;
|
||||
border: 2px solid currentcolor; }
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:focus, .wp-block-button.is-style-outline .wp-block-button__link:active {
|
||||
border-color: currentcolor; }
|
||||
.is-style-squared .wp-block-button__link {
|
||||
border-radius: 0; }
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
|
||||
.is-style-outline {
|
||||
color: #32373c; }
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover, .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus, .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):active {
|
||||
color: #32373c; }
|
||||
|
||||
.wp-block-button__link:not(.has-text-color) {
|
||||
color: #fff; }
|
||||
.wp-block-button__link:not(.has-text-color):hover, .wp-block-button__link:not(.has-text-color):focus, .wp-block-button__link:not(.has-text-color):active {
|
||||
color: #fff; }
|
||||
.is-style-outline .wp-block-button__link {
|
||||
background: transparent;
|
||||
border: 2px solid currentcolor; }
|
||||
|
||||
.wp-block-categories.alignleft {
|
||||
margin-right: 2em; }
|
||||
@ -304,6 +296,11 @@
|
||||
.wp-block-cover.alignright {
|
||||
max-width: 305px;
|
||||
width: 100%; }
|
||||
.wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
||||
.wp-block-cover.aligncenter,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright {
|
||||
display: flex; }
|
||||
|
||||
.wp-block-cover__video-background {
|
||||
position: absolute;
|
||||
@ -849,70 +846,70 @@ pre.wp-block-verse {
|
||||
text-align: center;
|
||||
font-size: 13px; }
|
||||
|
||||
.has-pale-pink-background-color {
|
||||
.has-pale-pink-background-color.has-pale-pink-background-color {
|
||||
background-color: #f78da7; }
|
||||
|
||||
.has-vivid-red-background-color {
|
||||
.has-vivid-red-background-color.has-vivid-red-background-color {
|
||||
background-color: #cf2e2e; }
|
||||
|
||||
.has-luminous-vivid-orange-background-color {
|
||||
.has-luminous-vivid-orange-background-color.has-luminous-vivid-orange-background-color {
|
||||
background-color: #ff6900; }
|
||||
|
||||
.has-luminous-vivid-amber-background-color {
|
||||
.has-luminous-vivid-amber-background-color.has-luminous-vivid-amber-background-color {
|
||||
background-color: #fcb900; }
|
||||
|
||||
.has-light-green-cyan-background-color {
|
||||
.has-light-green-cyan-background-color.has-light-green-cyan-background-color {
|
||||
background-color: #7bdcb5; }
|
||||
|
||||
.has-vivid-green-cyan-background-color {
|
||||
.has-vivid-green-cyan-background-color.has-vivid-green-cyan-background-color {
|
||||
background-color: #00d084; }
|
||||
|
||||
.has-pale-cyan-blue-background-color {
|
||||
.has-pale-cyan-blue-background-color.has-pale-cyan-blue-background-color {
|
||||
background-color: #8ed1fc; }
|
||||
|
||||
.has-vivid-cyan-blue-background-color {
|
||||
.has-vivid-cyan-blue-background-color.has-vivid-cyan-blue-background-color {
|
||||
background-color: #0693e3; }
|
||||
|
||||
.has-very-light-gray-background-color {
|
||||
.has-very-light-gray-background-color.has-very-light-gray-background-color {
|
||||
background-color: #eee; }
|
||||
|
||||
.has-cyan-bluish-gray-background-color {
|
||||
.has-cyan-bluish-gray-background-color.has-cyan-bluish-gray-background-color {
|
||||
background-color: #abb8c3; }
|
||||
|
||||
.has-very-dark-gray-background-color {
|
||||
.has-very-dark-gray-background-color.has-very-dark-gray-background-color {
|
||||
background-color: #313131; }
|
||||
|
||||
.has-pale-pink-color {
|
||||
.has-pale-pink-color.has-pale-pink-color {
|
||||
color: #f78da7; }
|
||||
|
||||
.has-vivid-red-color {
|
||||
.has-vivid-red-color.has-vivid-red-color {
|
||||
color: #cf2e2e; }
|
||||
|
||||
.has-luminous-vivid-orange-color {
|
||||
.has-luminous-vivid-orange-color.has-luminous-vivid-orange-color {
|
||||
color: #ff6900; }
|
||||
|
||||
.has-luminous-vivid-amber-color {
|
||||
.has-luminous-vivid-amber-color.has-luminous-vivid-amber-color {
|
||||
color: #fcb900; }
|
||||
|
||||
.has-light-green-cyan-color {
|
||||
.has-light-green-cyan-color.has-light-green-cyan-color {
|
||||
color: #7bdcb5; }
|
||||
|
||||
.has-vivid-green-cyan-color {
|
||||
.has-vivid-green-cyan-color.has-vivid-green-cyan-color {
|
||||
color: #00d084; }
|
||||
|
||||
.has-pale-cyan-blue-color {
|
||||
.has-pale-cyan-blue-color.has-pale-cyan-blue-color {
|
||||
color: #8ed1fc; }
|
||||
|
||||
.has-vivid-cyan-blue-color {
|
||||
.has-vivid-cyan-blue-color.has-vivid-cyan-blue-color {
|
||||
color: #0693e3; }
|
||||
|
||||
.has-very-light-gray-color {
|
||||
.has-very-light-gray-color.has-very-light-gray-color {
|
||||
color: #eee; }
|
||||
|
||||
.has-cyan-bluish-gray-color {
|
||||
.has-cyan-bluish-gray-color.has-cyan-bluish-gray-color {
|
||||
color: #abb8c3; }
|
||||
|
||||
.has-very-dark-gray-color {
|
||||
.has-very-dark-gray-color.has-very-dark-gray-color {
|
||||
color: #313131; }
|
||||
|
||||
.has-small-font-size {
|
||||
|
File diff suppressed because one or more lines are too long
107
wp-includes/css/dist/block-library/style.css
vendored
107
wp-includes/css/dist/block-library/style.css
vendored
@ -93,49 +93,41 @@
|
||||
right: -14px; }
|
||||
|
||||
.wp-block-button {
|
||||
color: #fff;
|
||||
margin-bottom: 1.5em; }
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border: none;
|
||||
border-radius: 23px;
|
||||
box-shadow: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
margin: 0;
|
||||
padding: 11px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
white-space: normal;
|
||||
word-break: break-all; }
|
||||
.wp-block-button.is-style-squared .wp-block-button__link {
|
||||
border-radius: 0; }
|
||||
.wp-block-button.aligncenter {
|
||||
text-align: center; }
|
||||
.wp-block-button.alignright {
|
||||
/*rtl:ignore*/
|
||||
text-align: right; }
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background-color: #32373c; }
|
||||
.wp-block-button__link:not(.has-background):hover, .wp-block-button__link:not(.has-background):focus, .wp-block-button__link:not(.has-background):active {
|
||||
background-color: #32373c; }
|
||||
.wp-block-button__link {
|
||||
background-color: #32373c;
|
||||
border: none;
|
||||
border-radius: 23px;
|
||||
box-shadow: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
margin: 0;
|
||||
padding: 11px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
white-space: normal;
|
||||
word-break: break-all; }
|
||||
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active {
|
||||
color: inherit; }
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link {
|
||||
background: transparent;
|
||||
border: 2px solid currentcolor; }
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:focus, .wp-block-button.is-style-outline .wp-block-button__link:active {
|
||||
border-color: currentcolor; }
|
||||
.is-style-squared .wp-block-button__link {
|
||||
border-radius: 0; }
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
|
||||
.is-style-outline {
|
||||
color: #32373c; }
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover, .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus, .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):active {
|
||||
color: #32373c; }
|
||||
|
||||
.wp-block-button__link:not(.has-text-color) {
|
||||
color: #fff; }
|
||||
.wp-block-button__link:not(.has-text-color):hover, .wp-block-button__link:not(.has-text-color):focus, .wp-block-button__link:not(.has-text-color):active {
|
||||
color: #fff; }
|
||||
.is-style-outline .wp-block-button__link {
|
||||
background: transparent;
|
||||
border: 2px solid currentcolor; }
|
||||
|
||||
.wp-block-categories.alignleft {
|
||||
/*rtl:ignore*/
|
||||
@ -307,6 +299,11 @@
|
||||
.wp-block-cover.alignright {
|
||||
max-width: 305px;
|
||||
width: 100%; }
|
||||
.wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
||||
.wp-block-cover.aligncenter,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright {
|
||||
display: flex; }
|
||||
|
||||
.wp-block-cover__video-background {
|
||||
position: absolute;
|
||||
@ -859,70 +856,70 @@ pre.wp-block-verse {
|
||||
text-align: center;
|
||||
font-size: 13px; }
|
||||
|
||||
.has-pale-pink-background-color {
|
||||
.has-pale-pink-background-color.has-pale-pink-background-color {
|
||||
background-color: #f78da7; }
|
||||
|
||||
.has-vivid-red-background-color {
|
||||
.has-vivid-red-background-color.has-vivid-red-background-color {
|
||||
background-color: #cf2e2e; }
|
||||
|
||||
.has-luminous-vivid-orange-background-color {
|
||||
.has-luminous-vivid-orange-background-color.has-luminous-vivid-orange-background-color {
|
||||
background-color: #ff6900; }
|
||||
|
||||
.has-luminous-vivid-amber-background-color {
|
||||
.has-luminous-vivid-amber-background-color.has-luminous-vivid-amber-background-color {
|
||||
background-color: #fcb900; }
|
||||
|
||||
.has-light-green-cyan-background-color {
|
||||
.has-light-green-cyan-background-color.has-light-green-cyan-background-color {
|
||||
background-color: #7bdcb5; }
|
||||
|
||||
.has-vivid-green-cyan-background-color {
|
||||
.has-vivid-green-cyan-background-color.has-vivid-green-cyan-background-color {
|
||||
background-color: #00d084; }
|
||||
|
||||
.has-pale-cyan-blue-background-color {
|
||||
.has-pale-cyan-blue-background-color.has-pale-cyan-blue-background-color {
|
||||
background-color: #8ed1fc; }
|
||||
|
||||
.has-vivid-cyan-blue-background-color {
|
||||
.has-vivid-cyan-blue-background-color.has-vivid-cyan-blue-background-color {
|
||||
background-color: #0693e3; }
|
||||
|
||||
.has-very-light-gray-background-color {
|
||||
.has-very-light-gray-background-color.has-very-light-gray-background-color {
|
||||
background-color: #eee; }
|
||||
|
||||
.has-cyan-bluish-gray-background-color {
|
||||
.has-cyan-bluish-gray-background-color.has-cyan-bluish-gray-background-color {
|
||||
background-color: #abb8c3; }
|
||||
|
||||
.has-very-dark-gray-background-color {
|
||||
.has-very-dark-gray-background-color.has-very-dark-gray-background-color {
|
||||
background-color: #313131; }
|
||||
|
||||
.has-pale-pink-color {
|
||||
.has-pale-pink-color.has-pale-pink-color {
|
||||
color: #f78da7; }
|
||||
|
||||
.has-vivid-red-color {
|
||||
.has-vivid-red-color.has-vivid-red-color {
|
||||
color: #cf2e2e; }
|
||||
|
||||
.has-luminous-vivid-orange-color {
|
||||
.has-luminous-vivid-orange-color.has-luminous-vivid-orange-color {
|
||||
color: #ff6900; }
|
||||
|
||||
.has-luminous-vivid-amber-color {
|
||||
.has-luminous-vivid-amber-color.has-luminous-vivid-amber-color {
|
||||
color: #fcb900; }
|
||||
|
||||
.has-light-green-cyan-color {
|
||||
.has-light-green-cyan-color.has-light-green-cyan-color {
|
||||
color: #7bdcb5; }
|
||||
|
||||
.has-vivid-green-cyan-color {
|
||||
.has-vivid-green-cyan-color.has-vivid-green-cyan-color {
|
||||
color: #00d084; }
|
||||
|
||||
.has-pale-cyan-blue-color {
|
||||
.has-pale-cyan-blue-color.has-pale-cyan-blue-color {
|
||||
color: #8ed1fc; }
|
||||
|
||||
.has-vivid-cyan-blue-color {
|
||||
.has-vivid-cyan-blue-color.has-vivid-cyan-blue-color {
|
||||
color: #0693e3; }
|
||||
|
||||
.has-very-light-gray-color {
|
||||
.has-very-light-gray-color.has-very-light-gray-color {
|
||||
color: #eee; }
|
||||
|
||||
.has-cyan-bluish-gray-color {
|
||||
.has-cyan-bluish-gray-color.has-cyan-bluish-gray-color {
|
||||
color: #abb8c3; }
|
||||
|
||||
.has-very-dark-gray-color {
|
||||
.has-very-dark-gray-color.has-very-dark-gray-color {
|
||||
color: #313131; }
|
||||
|
||||
.has-small-font-size {
|
||||
|
File diff suppressed because one or more lines are too long
52
wp-includes/css/dist/components/style-rtl.css
vendored
52
wp-includes/css/dist/components/style-rtl.css
vendored
@ -2028,8 +2028,10 @@ body.is-dragging-components-draggable {
|
||||
body.admin-color-light .components-form-toggle.is-checked::before {
|
||||
background-color: #11a0d2;
|
||||
border: 2px solid #11a0d2; }
|
||||
.components-disabled .components-form-toggle {
|
||||
opacity: 0.3; }
|
||||
|
||||
.components-form-toggle__input[type="checkbox"] {
|
||||
.components-form-toggle input.components-form-toggle__input[type="checkbox"] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
@ -2038,7 +2040,12 @@ body.is-dragging-components-draggable {
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
z-index: 1; }
|
||||
z-index: 1;
|
||||
border: none; }
|
||||
.components-form-toggle input.components-form-toggle__input[type="checkbox"]:checked {
|
||||
background: none; }
|
||||
.components-form-toggle input.components-form-toggle__input[type="checkbox"]::before {
|
||||
content: ""; }
|
||||
|
||||
.components-form-toggle .components-form-toggle__on {
|
||||
outline: 1px solid transparent;
|
||||
@ -2573,7 +2580,8 @@ body.is-dragging-components-draggable {
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1em; }
|
||||
.components-placeholder__label .dashicon {
|
||||
.components-placeholder__label .dashicon,
|
||||
.components-placeholder__label .editor-block-icon {
|
||||
margin-left: 1ch; }
|
||||
|
||||
.components-placeholder__fieldset,
|
||||
@ -2596,18 +2604,17 @@ body.is-dragging-components-draggable {
|
||||
|
||||
.components-placeholder__instructions {
|
||||
margin-bottom: 1em; }
|
||||
|
||||
.components-popover {
|
||||
position: fixed;
|
||||
z-index: 1000000;
|
||||
right: 50%; }
|
||||
left: 50%; }
|
||||
.components-popover.is-mobile {
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile) {
|
||||
margin-right: 2px; }
|
||||
margin-left: 2px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile)::before {
|
||||
border: 8px solid #e2e4e7; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile)::after {
|
||||
@ -2626,10 +2633,10 @@ body.is-dragging-components-draggable {
|
||||
bottom: -6px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-top::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-top::after {
|
||||
border-bottom: none;
|
||||
border-right-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
border-top-style: solid;
|
||||
margin-right: -10px; }
|
||||
margin-left: -10px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom {
|
||||
margin-top: 8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before {
|
||||
@ -2638,31 +2645,31 @@ body.is-dragging-components-draggable {
|
||||
top: -6px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom::after {
|
||||
border-bottom-style: solid;
|
||||
border-right-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
border-top: none;
|
||||
margin-right: -10px; }
|
||||
margin-left: -10px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left {
|
||||
margin-left: -8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before {
|
||||
left: -8px; }
|
||||
right: -8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after {
|
||||
left: -6px; }
|
||||
right: -6px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after {
|
||||
border-bottom-color: transparent;
|
||||
border-right-style: solid;
|
||||
border-left: none;
|
||||
border-left-style: solid;
|
||||
border-right: none;
|
||||
border-top-color: transparent; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right {
|
||||
margin-left: 8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before {
|
||||
right: -8px; }
|
||||
left: -8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after {
|
||||
right: -6px; }
|
||||
left: -6px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before, .components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after {
|
||||
border-bottom-color: transparent;
|
||||
border-right: none;
|
||||
border-left-style: solid;
|
||||
border-left: none;
|
||||
border-right-style: solid;
|
||||
border-top-color: transparent; }
|
||||
.components-popover:not(.is-mobile).is-top {
|
||||
bottom: 100%; }
|
||||
@ -2689,8 +2696,8 @@ body.is-dragging-components-draggable {
|
||||
.components-popover:not(.is-mobile).is-top .components-popover__content {
|
||||
bottom: 100%; }
|
||||
.components-popover:not(.is-mobile).is-center .components-popover__content {
|
||||
right: 50%;
|
||||
transform: translateX(50%); }
|
||||
left: 50%;
|
||||
transform: translateX(-50%); }
|
||||
.components-popover:not(.is-mobile).is-right .components-popover__content {
|
||||
position: absolute;
|
||||
left: 100%; }
|
||||
@ -2712,7 +2719,7 @@ body.is-dragging-components-draggable {
|
||||
display: flex;
|
||||
height: 50px;
|
||||
justify-content: space-between;
|
||||
padding: 0 16px 0 8px; }
|
||||
padding: 0 8px 0 16px; }
|
||||
|
||||
.components-popover__header-title {
|
||||
overflow: hidden;
|
||||
@ -2722,7 +2729,6 @@ body.is-dragging-components-draggable {
|
||||
|
||||
.components-popover__close.components-icon-button {
|
||||
z-index: 5; }
|
||||
|
||||
.components-radio-control {
|
||||
display: flex;
|
||||
flex-direction: column; }
|
||||
|
File diff suppressed because one or more lines are too long
28
wp-includes/css/dist/components/style.css
vendored
28
wp-includes/css/dist/components/style.css
vendored
@ -2028,8 +2028,10 @@ body.is-dragging-components-draggable {
|
||||
body.admin-color-light .components-form-toggle.is-checked::before {
|
||||
background-color: #11a0d2;
|
||||
border: 2px solid #11a0d2; }
|
||||
.components-disabled .components-form-toggle {
|
||||
opacity: 0.3; }
|
||||
|
||||
.components-form-toggle__input[type="checkbox"] {
|
||||
.components-form-toggle input.components-form-toggle__input[type="checkbox"] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@ -2038,7 +2040,12 @@ body.is-dragging-components-draggable {
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
z-index: 1; }
|
||||
z-index: 1;
|
||||
border: none; }
|
||||
.components-form-toggle input.components-form-toggle__input[type="checkbox"]:checked {
|
||||
background: none; }
|
||||
.components-form-toggle input.components-form-toggle__input[type="checkbox"]::before {
|
||||
content: ""; }
|
||||
|
||||
.components-form-toggle .components-form-toggle__on {
|
||||
outline: 1px solid transparent;
|
||||
@ -2575,7 +2582,8 @@ body.is-dragging-components-draggable {
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1em; }
|
||||
.components-placeholder__label .dashicon {
|
||||
.components-placeholder__label .dashicon,
|
||||
.components-placeholder__label .editor-block-icon {
|
||||
margin-right: 1ch; }
|
||||
|
||||
.components-placeholder__fieldset,
|
||||
@ -2599,6 +2607,7 @@ body.is-dragging-components-draggable {
|
||||
.components-placeholder__instructions {
|
||||
margin-bottom: 1em; }
|
||||
|
||||
/*!rtl:begin:ignore*/
|
||||
.components-popover {
|
||||
position: fixed;
|
||||
z-index: 1000000;
|
||||
@ -2645,9 +2654,7 @@ body.is-dragging-components-draggable {
|
||||
border-top: none;
|
||||
margin-left: -10px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left {
|
||||
/*!rtl:begin:ignore*/
|
||||
margin-left: -8px;
|
||||
/*!rtl:end:ignore*/ }
|
||||
margin-left: -8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::before {
|
||||
right: -8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left::after {
|
||||
@ -2658,9 +2665,7 @@ body.is-dragging-components-draggable {
|
||||
border-right: none;
|
||||
border-top-color: transparent; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right {
|
||||
/*!rtl:begin:ignore*/
|
||||
margin-left: 8px;
|
||||
/*!rtl:end:ignore*/ }
|
||||
margin-left: 8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::before {
|
||||
left: -8px; }
|
||||
.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right::after {
|
||||
@ -2699,17 +2704,13 @@ body.is-dragging-components-draggable {
|
||||
transform: translateX(-50%); }
|
||||
.components-popover:not(.is-mobile).is-right .components-popover__content {
|
||||
position: absolute;
|
||||
/*!rtl:ignore*/
|
||||
left: 100%; }
|
||||
.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content {
|
||||
/*!rtl:ignore*/
|
||||
margin-left: -24px; }
|
||||
.components-popover:not(.is-mobile).is-left .components-popover__content {
|
||||
position: absolute;
|
||||
/*!rtl:ignore*/
|
||||
right: 100%; }
|
||||
.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content {
|
||||
/*!rtl:ignore*/
|
||||
margin-right: -24px; }
|
||||
|
||||
.components-popover__content > div {
|
||||
@ -2733,6 +2734,7 @@ body.is-dragging-components-draggable {
|
||||
.components-popover__close.components-icon-button {
|
||||
z-index: 5; }
|
||||
|
||||
/*!rtl:end:ignore*/
|
||||
.components-radio-control {
|
||||
display: flex;
|
||||
flex-direction: column; }
|
||||
|
File diff suppressed because one or more lines are too long
10
wp-includes/css/dist/edit-post/style-rtl.css
vendored
10
wp-includes/css/dist/edit-post/style-rtl.css
vendored
@ -713,11 +713,8 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
.editor-post-author__select {
|
||||
width: auto; } }
|
||||
|
||||
.edit-post-post-link__link {
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-post-link__link-post-name {
|
||||
font-weight: 800; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-post-link__preview-label {
|
||||
margin: 0; }
|
||||
@ -725,11 +722,6 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
.edit-post-post-link__link {
|
||||
word-wrap: break-word; }
|
||||
|
||||
.edit-post-post-link__permalink-settings {
|
||||
margin-top: 1em;
|
||||
font-weight: 500;
|
||||
display: block; }
|
||||
|
||||
.edit-post-post-schedule {
|
||||
width: 100%;
|
||||
position: relative; }
|
||||
|
File diff suppressed because one or more lines are too long
10
wp-includes/css/dist/edit-post/style.css
vendored
10
wp-includes/css/dist/edit-post/style.css
vendored
@ -713,11 +713,8 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
.editor-post-author__select {
|
||||
width: auto; } }
|
||||
|
||||
.edit-post-post-link__link {
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-post-link__link-post-name {
|
||||
font-weight: 800; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-post-link__preview-label {
|
||||
margin: 0; }
|
||||
@ -725,11 +722,6 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
.edit-post-post-link__link {
|
||||
word-wrap: break-word; }
|
||||
|
||||
.edit-post-post-link__permalink-settings {
|
||||
margin-top: 1em;
|
||||
font-weight: 500;
|
||||
display: block; }
|
||||
|
||||
.edit-post-post-schedule {
|
||||
width: 100%;
|
||||
position: relative; }
|
||||
|
2
wp-includes/css/dist/edit-post/style.min.css
vendored
2
wp-includes/css/dist/edit-post/style.min.css
vendored
File diff suppressed because one or more lines are too long
48
wp-includes/css/dist/editor/style-rtl.css
vendored
48
wp-includes/css/dist/editor/style-rtl.css
vendored
@ -119,17 +119,13 @@
|
||||
max-width: 24px;
|
||||
max-height: 24px; }
|
||||
|
||||
.editor-block-inspector__no-blocks,
|
||||
.editor-block-inspector__multi-blocks {
|
||||
.editor-block-inspector__no-blocks {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
background: #fff;
|
||||
padding: 32px 16px;
|
||||
text-align: center; }
|
||||
|
||||
.editor-block-inspector__multi-blocks {
|
||||
border-bottom: 1px solid #e2e4e7; }
|
||||
|
||||
.editor-block-inspector__card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
@ -599,10 +595,13 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
.editor-block-list__insertion-point-inserter:hover, .editor-block-list__insertion-point-inserter.is-visible {
|
||||
opacity: 1; }
|
||||
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point-inserter {
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter,
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter {
|
||||
opacity: 0;
|
||||
pointer-events: none; }
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point-inserter.is-visible {
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible,
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover,
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto; }
|
||||
|
||||
@ -757,9 +756,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
opacity: 0;
|
||||
animation: edit-post__fade-in-animation 60ms ease-out 0.5s;
|
||||
animation-fill-mode: forwards; }
|
||||
.editor-block-list__breadcrumb.is-light .components-toolbar {
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
color: #32373c; }
|
||||
[data-align="left"] .editor-block-list__breadcrumb,
|
||||
[data-align="right"] .editor-block-list__breadcrumb {
|
||||
left: 0;
|
||||
@ -1098,7 +1094,7 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
|
||||
.editor-block-styles__item-preview {
|
||||
outline: 1px solid transparent;
|
||||
box-shadow: inset 0 0 0 1px rgba(25, 30, 35, 0.2);
|
||||
border: 1px solid rgba(25, 30, 35, 0.2);
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
text-align: initial;
|
||||
@ -1650,6 +1646,29 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
.components-form-file-upload .editor-media-placeholder__button {
|
||||
margin-left: 4px; }
|
||||
|
||||
.editor-multi-selection-inspector__card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin: -16px;
|
||||
padding: 16px; }
|
||||
|
||||
.editor-multi-selection-inspector__card-content {
|
||||
flex-grow: 1; }
|
||||
|
||||
.editor-multi-selection-inspector__card-title {
|
||||
font-weight: 500;
|
||||
margin-bottom: 5px; }
|
||||
|
||||
.editor-multi-selection-inspector__card-description {
|
||||
font-size: 13px; }
|
||||
|
||||
.editor-multi-selection-inspector__card .editor-block-icon {
|
||||
margin-right: -2px;
|
||||
margin-left: 10px;
|
||||
padding: 0 3px;
|
||||
width: 36px;
|
||||
height: 24px; }
|
||||
|
||||
.editor-page-attributes__template {
|
||||
margin-bottom: 10px; }
|
||||
.editor-page-attributes__template label,
|
||||
@ -2124,6 +2143,9 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input {
|
||||
margin-right: 28px; }
|
||||
|
||||
.edit-post-post-visibility__dialog.components-popover.is-bottom {
|
||||
z-index: 100001; }
|
||||
|
||||
.editor-post-title__block {
|
||||
position: relative;
|
||||
padding: 5px 0;
|
||||
@ -2157,9 +2179,9 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
color: rgba(22, 36, 53, 0.55); }
|
||||
.editor-post-title__block .editor-post-title__input:-ms-input-placeholder {
|
||||
color: rgba(22, 36, 53, 0.55); }
|
||||
.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input {
|
||||
.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input {
|
||||
border-color: rgba(145, 151, 162, 0.25); }
|
||||
.is-dark-theme .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input {
|
||||
.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input {
|
||||
border-color: rgba(255, 255, 255, 0.3); }
|
||||
.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover {
|
||||
border-color: #007cba; }
|
||||
|
File diff suppressed because one or more lines are too long
48
wp-includes/css/dist/editor/style.css
vendored
48
wp-includes/css/dist/editor/style.css
vendored
@ -119,17 +119,13 @@
|
||||
max-width: 24px;
|
||||
max-height: 24px; }
|
||||
|
||||
.editor-block-inspector__no-blocks,
|
||||
.editor-block-inspector__multi-blocks {
|
||||
.editor-block-inspector__no-blocks {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
background: #fff;
|
||||
padding: 32px 16px;
|
||||
text-align: center; }
|
||||
|
||||
.editor-block-inspector__multi-blocks {
|
||||
border-bottom: 1px solid #e2e4e7; }
|
||||
|
||||
.editor-block-inspector__card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
@ -607,10 +603,13 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
.editor-block-list__insertion-point-inserter:hover, .editor-block-list__insertion-point-inserter.is-visible {
|
||||
opacity: 1; }
|
||||
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point-inserter {
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter,
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter {
|
||||
opacity: 0;
|
||||
pointer-events: none; }
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point-inserter.is-visible {
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible,
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover,
|
||||
.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto; }
|
||||
|
||||
@ -769,9 +768,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
opacity: 0;
|
||||
animation: edit-post__fade-in-animation 60ms ease-out 0.5s;
|
||||
animation-fill-mode: forwards; }
|
||||
.editor-block-list__breadcrumb.is-light .components-toolbar {
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
color: #32373c; }
|
||||
[data-align="left"] .editor-block-list__breadcrumb,
|
||||
[data-align="right"] .editor-block-list__breadcrumb {
|
||||
right: 0;
|
||||
@ -1110,7 +1106,7 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
|
||||
.editor-block-styles__item-preview {
|
||||
outline: 1px solid transparent;
|
||||
box-shadow: inset 0 0 0 1px rgba(25, 30, 35, 0.2);
|
||||
border: 1px solid rgba(25, 30, 35, 0.2);
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
text-align: initial;
|
||||
@ -1662,6 +1658,29 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
.components-form-file-upload .editor-media-placeholder__button {
|
||||
margin-right: 4px; }
|
||||
|
||||
.editor-multi-selection-inspector__card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin: -16px;
|
||||
padding: 16px; }
|
||||
|
||||
.editor-multi-selection-inspector__card-content {
|
||||
flex-grow: 1; }
|
||||
|
||||
.editor-multi-selection-inspector__card-title {
|
||||
font-weight: 500;
|
||||
margin-bottom: 5px; }
|
||||
|
||||
.editor-multi-selection-inspector__card-description {
|
||||
font-size: 13px; }
|
||||
|
||||
.editor-multi-selection-inspector__card .editor-block-icon {
|
||||
margin-left: -2px;
|
||||
margin-right: 10px;
|
||||
padding: 0 3px;
|
||||
width: 36px;
|
||||
height: 24px; }
|
||||
|
||||
.editor-page-attributes__template {
|
||||
margin-bottom: 10px; }
|
||||
.editor-page-attributes__template label,
|
||||
@ -2136,6 +2155,9 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input {
|
||||
margin-left: 28px; }
|
||||
|
||||
.edit-post-post-visibility__dialog.components-popover.is-bottom {
|
||||
z-index: 100001; }
|
||||
|
||||
.editor-post-title__block {
|
||||
position: relative;
|
||||
padding: 5px 0;
|
||||
@ -2169,9 +2191,9 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
color: rgba(22, 36, 53, 0.55); }
|
||||
.editor-post-title__block .editor-post-title__input:-ms-input-placeholder {
|
||||
color: rgba(22, 36, 53, 0.55); }
|
||||
.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input {
|
||||
.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input {
|
||||
border-color: rgba(145, 151, 162, 0.25); }
|
||||
.is-dark-theme .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar).is-selected .editor-post-title__input {
|
||||
.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input {
|
||||
border-color: rgba(255, 255, 255, 0.3); }
|
||||
.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover {
|
||||
border-color: #007cba; }
|
||||
|
2
wp-includes/css/dist/editor/style.min.css
vendored
2
wp-includes/css/dist/editor/style.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/a11y.min.js
vendored
2
wp-includes/js/dist/a11y.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=324)}({180:function(e,t){!function(){e.exports=this.wp.domReady}()},324:function(e,t,n){"use strict";n.r(t);var r=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},o=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""},i=n(180),a=n.n(i),u="",l=function(e){return e=e.replace(/<[^<>]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",function(){return p}),n.d(t,"speak",function(){return c});var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=r("polite")),null===t&&(t=r("assertive"))};a()(p);var c=function(e,t){o(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}});
|
||||
this.wp=this.wp||{},this.wp.a11y=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=324)}({182:function(e,t){!function(){e.exports=this.wp.domReady}()},324:function(e,t,n){"use strict";n.r(t);var r=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},o=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""},i=n(182),a=n.n(i),u="",l=function(e){return e=e.replace(/<[^<>]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",function(){return p}),n.d(t,"speak",function(){return c});var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=r("polite")),null===t&&(t=r("assertive"))};a()(p);var c=function(e,t){o(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}});
|
420
wp-includes/js/dist/annotations.js
vendored
420
wp-includes/js/dist/annotations.js
vendored
@ -339,20 +339,25 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyAnnotations", function() { return applyAnnotations; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAnnotations", function() { return removeAnnotations; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "annotation", function() { return annotation; });
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
|
||||
/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! memize */ "./node_modules/memize/index.js");
|
||||
/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/rich-text */ "@wordpress/rich-text");
|
||||
/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/**
|
||||
* WordPress dependencies
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
var name = 'core/annotation';
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
var FORMAT_NAME = 'core/annotation';
|
||||
var ANNOTATION_ATTRIBUTE_PREFIX = 'annotation-text-';
|
||||
var STORE_KEY = 'core/annotations';
|
||||
/**
|
||||
* Applies given annotations to the given record.
|
||||
*
|
||||
@ -375,11 +380,13 @@ function applyAnnotations(record) {
|
||||
end = record.text.length;
|
||||
}
|
||||
|
||||
var className = 'annotation-text-' + annotation.source;
|
||||
record = Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_1__["applyFormat"])(record, {
|
||||
type: 'core/annotation',
|
||||
var className = ANNOTATION_ATTRIBUTE_PREFIX + annotation.source;
|
||||
var id = ANNOTATION_ATTRIBUTE_PREFIX + annotation.id;
|
||||
record = Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_2__["applyFormat"])(record, {
|
||||
type: FORMAT_NAME,
|
||||
attributes: {
|
||||
className: className
|
||||
className: className,
|
||||
id: id
|
||||
}
|
||||
}, start, end);
|
||||
});
|
||||
@ -393,38 +400,142 @@ function applyAnnotations(record) {
|
||||
*/
|
||||
|
||||
function removeAnnotations(record) {
|
||||
return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_1__["removeFormat"])(record, 'core/annotation', 0, record.text.length);
|
||||
return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_2__["removeFormat"])(record, 'core/annotation', 0, record.text.length);
|
||||
}
|
||||
/**
|
||||
* Retrieves the positions of annotations inside an array of formats.
|
||||
*
|
||||
* @param {Array} formats Formats with annotations in there.
|
||||
* @return {Object} ID keyed positions of annotations.
|
||||
*/
|
||||
|
||||
function retrieveAnnotationPositions(formats) {
|
||||
var positions = {};
|
||||
formats.forEach(function (characterFormats, i) {
|
||||
characterFormats = characterFormats || [];
|
||||
characterFormats = characterFormats.filter(function (format) {
|
||||
return format.type === FORMAT_NAME;
|
||||
});
|
||||
characterFormats.forEach(function (format) {
|
||||
var id = format.attributes.id;
|
||||
id = id.replace(ANNOTATION_ATTRIBUTE_PREFIX, '');
|
||||
|
||||
if (!positions.hasOwnProperty(id)) {
|
||||
positions[id] = {
|
||||
start: i
|
||||
};
|
||||
} // Annotations refer to positions between characters.
|
||||
// Formats refer to the character themselves.
|
||||
// So we need to adjust for that here.
|
||||
|
||||
|
||||
positions[id].end = i + 1;
|
||||
});
|
||||
});
|
||||
return positions;
|
||||
}
|
||||
/**
|
||||
* Updates annotations in the state based on positions retrieved from RichText.
|
||||
*
|
||||
* @param {Array} annotations The annotations that are currently applied.
|
||||
* @param {Array} positions The current positions of the given annotations.
|
||||
* @param {Function} removeAnnotation Function to remove an annotation from the state.
|
||||
* @param {Function} updateAnnotationRange Function to update an annotation range in the state.
|
||||
*/
|
||||
|
||||
|
||||
function updateAnnotationsWithPositions(annotations, positions, _ref) {
|
||||
var removeAnnotation = _ref.removeAnnotation,
|
||||
updateAnnotationRange = _ref.updateAnnotationRange;
|
||||
annotations.forEach(function (currentAnnotation) {
|
||||
var position = positions[currentAnnotation.id]; // If we cannot find an annotation, delete it.
|
||||
|
||||
if (!position) {
|
||||
// Apparently the annotation has been removed, so remove it from the state:
|
||||
// Remove...
|
||||
removeAnnotation(currentAnnotation.id);
|
||||
return;
|
||||
}
|
||||
|
||||
var start = currentAnnotation.start,
|
||||
end = currentAnnotation.end;
|
||||
|
||||
if (start !== position.start || end !== position.end) {
|
||||
updateAnnotationRange(currentAnnotation.id, position.start, position.end);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create prepareEditableTree memoized based on the annotation props.
|
||||
*
|
||||
* @param {Object} The props with annotations in them.
|
||||
*
|
||||
* @return {Function} The prepareEditableTree.
|
||||
*/
|
||||
|
||||
|
||||
var createPrepareEditableTree = memize__WEBPACK_IMPORTED_MODULE_0___default()(function (props) {
|
||||
var annotations = props.annotations;
|
||||
return function (formats, text) {
|
||||
if (annotations.length === 0) {
|
||||
return formats;
|
||||
}
|
||||
|
||||
var record = {
|
||||
formats: formats,
|
||||
text: text
|
||||
};
|
||||
record = applyAnnotations(record, annotations);
|
||||
return record.formats;
|
||||
};
|
||||
});
|
||||
/**
|
||||
* Returns the annotations as a props object. Memoized to prevent re-renders.
|
||||
*
|
||||
* @param {Array} The annotations to put in the object.
|
||||
*
|
||||
* @return {Object} The annotations props object.
|
||||
*/
|
||||
|
||||
var getAnnotationObject = memize__WEBPACK_IMPORTED_MODULE_0___default()(function (annotations) {
|
||||
return {
|
||||
annotations: annotations
|
||||
};
|
||||
});
|
||||
var annotation = {
|
||||
name: name,
|
||||
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Annotation'),
|
||||
name: FORMAT_NAME,
|
||||
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Annotation'),
|
||||
tagName: 'mark',
|
||||
className: 'annotation-text',
|
||||
attributes: {
|
||||
className: 'class'
|
||||
className: 'class',
|
||||
id: 'id'
|
||||
},
|
||||
edit: function edit() {
|
||||
return null;
|
||||
},
|
||||
__experimentalGetPropsForEditableTreePreparation: function __experimentalGetPropsForEditableTreePreparation(select, _ref) {
|
||||
var richTextIdentifier = _ref.richTextIdentifier,
|
||||
blockClientId = _ref.blockClientId;
|
||||
__experimentalGetPropsForEditableTreePreparation: function __experimentalGetPropsForEditableTreePreparation(select, _ref2) {
|
||||
var richTextIdentifier = _ref2.richTextIdentifier,
|
||||
blockClientId = _ref2.blockClientId;
|
||||
return getAnnotationObject(select(STORE_KEY).__experimentalGetAnnotationsForRichText(blockClientId, richTextIdentifier));
|
||||
},
|
||||
__experimentalCreatePrepareEditableTree: createPrepareEditableTree,
|
||||
__experimentalGetPropsForEditableTreeChangeHandler: function __experimentalGetPropsForEditableTreeChangeHandler(dispatch) {
|
||||
return {
|
||||
annotations: select('core/annotations').__experimentalGetAnnotationsForRichText(blockClientId, richTextIdentifier)
|
||||
removeAnnotation: dispatch(STORE_KEY).__experimentalRemoveAnnotation,
|
||||
updateAnnotationRange: dispatch(STORE_KEY).__experimentalUpdateAnnotationRange
|
||||
};
|
||||
},
|
||||
__experimentalCreatePrepareEditableTree: function __experimentalCreatePrepareEditableTree(props) {
|
||||
return function (formats, text) {
|
||||
if (props.annotations.length === 0) {
|
||||
return formats;
|
||||
}
|
||||
|
||||
var record = {
|
||||
formats: formats,
|
||||
text: text
|
||||
};
|
||||
record = applyAnnotations(record, props.annotations);
|
||||
return record.formats;
|
||||
__experimentalCreateOnChangeEditableValue: function __experimentalCreateOnChangeEditableValue(props) {
|
||||
return function (formats) {
|
||||
var positions = retrieveAnnotationPositions(formats);
|
||||
var removeAnnotation = props.removeAnnotation,
|
||||
updateAnnotationRange = props.updateAnnotationRange,
|
||||
annotations = props.annotations;
|
||||
updateAnnotationsWithPositions(annotations, positions, {
|
||||
removeAnnotation: removeAnnotation,
|
||||
updateAnnotationRange: updateAnnotationRange
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
@ -491,13 +602,14 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/annotations/build-module/store/actions.js ***!
|
||||
\***************************************************************************/
|
||||
/*! exports provided: __experimentalAddAnnotation, __experimentalRemoveAnnotation, __experimentalRemoveAnnotationsBySource */
|
||||
/*! exports provided: __experimentalAddAnnotation, __experimentalRemoveAnnotation, __experimentalUpdateAnnotationRange, __experimentalRemoveAnnotationsBySource */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalAddAnnotation", function() { return __experimentalAddAnnotation; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalRemoveAnnotation", function() { return __experimentalRemoveAnnotation; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalUpdateAnnotationRange", function() { return __experimentalUpdateAnnotationRange; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalRemoveAnnotationsBySource", function() { return __experimentalRemoveAnnotationsBySource; });
|
||||
/* harmony import */ var uuid_v4__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! uuid/v4 */ "./node_modules/uuid/v4.js");
|
||||
/* harmony import */ var uuid_v4__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(uuid_v4__WEBPACK_IMPORTED_MODULE_0__);
|
||||
@ -570,6 +682,24 @@ function __experimentalRemoveAnnotation(annotationId) {
|
||||
annotationId: annotationId
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Updates the range of an annotation.
|
||||
*
|
||||
* @param {string} annotationId ID of the annotation to update.
|
||||
* @param {number} start The start of the new range.
|
||||
* @param {number} end The end of the new range.
|
||||
*
|
||||
* @return {Object} Action object.
|
||||
*/
|
||||
|
||||
function __experimentalUpdateAnnotationRange(annotationId, start, end) {
|
||||
return {
|
||||
type: 'ANNOTATION_UPDATE_RANGE',
|
||||
annotationId: annotationId,
|
||||
start: start,
|
||||
end: end
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Removes all annotations of a specific source.
|
||||
*
|
||||
@ -639,8 +769,8 @@ var store = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__["registerStore"]
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "annotations", function() { return annotations; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
|
||||
|
||||
@ -687,10 +817,7 @@ function isValidAnnotationRange(annotation) {
|
||||
|
||||
|
||||
function annotations() {
|
||||
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
||||
all: [],
|
||||
byBlockClientId: {}
|
||||
};
|
||||
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var action = arguments.length > 1 ? arguments[1] : undefined;
|
||||
|
||||
switch (action.type) {
|
||||
@ -709,44 +836,41 @@ function annotations() {
|
||||
return state;
|
||||
}
|
||||
|
||||
var previousAnnotationsForBlock = state.byBlockClientId[blockClientId] || [];
|
||||
return {
|
||||
all: Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(state.all).concat([newAnnotation]),
|
||||
byBlockClientId: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, state.byBlockClientId, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockClientId, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(previousAnnotationsForBlock).concat([action.id])))
|
||||
};
|
||||
var previousAnnotationsForBlock = Object(lodash__WEBPACK_IMPORTED_MODULE_3__["get"])(state, blockClientId, []);
|
||||
return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__["default"])({}, state, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, blockClientId, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(previousAnnotationsForBlock).concat([newAnnotation])));
|
||||
|
||||
case 'ANNOTATION_REMOVE':
|
||||
return {
|
||||
all: state.all.filter(function (annotation) {
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_3__["mapValues"])(state, function (annotationsForBlock) {
|
||||
return filterWithReference(annotationsForBlock, function (annotation) {
|
||||
return annotation.id !== action.annotationId;
|
||||
}),
|
||||
// We use filterWithReference to not refresh the reference if a block still has
|
||||
// the same annotations.
|
||||
byBlockClientId: Object(lodash__WEBPACK_IMPORTED_MODULE_3__["mapValues"])(state.byBlockClientId, function (annotationForBlock) {
|
||||
return filterWithReference(annotationForBlock, function (annotationId) {
|
||||
return annotationId !== action.annotationId;
|
||||
});
|
||||
})
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
case 'ANNOTATION_UPDATE_RANGE':
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_3__["mapValues"])(state, function (annotationsForBlock) {
|
||||
var hasChangedRange = false;
|
||||
var newAnnotations = annotationsForBlock.map(function (annotation) {
|
||||
if (annotation.id === action.annotationId) {
|
||||
hasChangedRange = true;
|
||||
return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__["default"])({}, annotation, {
|
||||
range: {
|
||||
start: action.start,
|
||||
end: action.end
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return annotation;
|
||||
});
|
||||
return hasChangedRange ? newAnnotations : annotationsForBlock;
|
||||
});
|
||||
|
||||
case 'ANNOTATION_REMOVE_SOURCE':
|
||||
var idsToRemove = [];
|
||||
var allAnnotations = state.all.filter(function (annotation) {
|
||||
if (annotation.source === action.source) {
|
||||
idsToRemove.push(annotation.id);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_3__["mapValues"])(state, function (annotationsForBlock) {
|
||||
return filterWithReference(annotationsForBlock, function (annotation) {
|
||||
return annotation.source !== action.source;
|
||||
});
|
||||
});
|
||||
return {
|
||||
all: allAnnotations,
|
||||
byBlockClientId: Object(lodash__WEBPACK_IMPORTED_MODULE_3__["mapValues"])(state.byBlockClientId, function (annotationForBlock) {
|
||||
return filterWithReference(annotationForBlock, function (annotationId) {
|
||||
return !idsToRemove.includes(annotationId);
|
||||
});
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
return state;
|
||||
@ -760,17 +884,20 @@ function annotations() {
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/annotations/build-module/store/selectors.js ***!
|
||||
\*****************************************************************************/
|
||||
/*! exports provided: __experimentalGetAnnotationsForBlock, __experimentalGetAnnotationsForRichText, __experimentalGetAnnotations */
|
||||
/*! exports provided: __experimentalGetAnnotationsForBlock, __experimentalGetAllAnnotationsForBlock, __experimentalGetAnnotationsForRichText, __experimentalGetAnnotations */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalGetAnnotationsForBlock", function() { return __experimentalGetAnnotationsForBlock; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalGetAllAnnotationsForBlock", function() { return __experimentalGetAllAnnotationsForBlock; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalGetAnnotationsForRichText", function() { return __experimentalGetAnnotationsForRichText; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalGetAnnotations", function() { return __experimentalGetAnnotations; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||||
/* harmony import */ var rememo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rememo */ "./node_modules/rememo/es/rememo.js");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
|
||||
|
||||
|
||||
|
||||
@ -778,6 +905,18 @@ __webpack_require__.r(__webpack_exports__);
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Shared reference to an empty array for cases where it is important to avoid
|
||||
* returning a new array reference on every invocation, as in a connected or
|
||||
* other pure component which performs `shouldComponentUpdate` check on props.
|
||||
* This should be used as a last resort, since the normalized data should be
|
||||
* maintained by the reducer result in state.
|
||||
*
|
||||
* @type {Array}
|
||||
*/
|
||||
|
||||
var EMPTY_ARRAY = [];
|
||||
/**
|
||||
* Returns the annotations for a specific client ID.
|
||||
*
|
||||
@ -788,12 +927,15 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
var __experimentalGetAnnotationsForBlock = Object(rememo__WEBPACK_IMPORTED_MODULE_2__["default"])(function (state, blockClientId) {
|
||||
return state.all.filter(function (annotation) {
|
||||
return annotation.selector === 'block' && annotation.blockClientId === blockClientId;
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_3__["get"])(state, blockClientId, []).filter(function (annotation) {
|
||||
return annotation.selector === 'block';
|
||||
});
|
||||
}, function (state, blockClientId) {
|
||||
return [state.byBlockClientId[blockClientId]];
|
||||
return [Object(lodash__WEBPACK_IMPORTED_MODULE_3__["get"])(state, blockClientId, EMPTY_ARRAY)];
|
||||
});
|
||||
var __experimentalGetAllAnnotationsForBlock = function __experimentalGetAllAnnotationsForBlock(state, blockClientId) {
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_3__["get"])(state, blockClientId, EMPTY_ARRAY);
|
||||
};
|
||||
/**
|
||||
* Returns the annotations that apply to the given RichText instance.
|
||||
*
|
||||
@ -808,8 +950,8 @@ var __experimentalGetAnnotationsForBlock = Object(rememo__WEBPACK_IMPORTED_MODUL
|
||||
*/
|
||||
|
||||
var __experimentalGetAnnotationsForRichText = Object(rememo__WEBPACK_IMPORTED_MODULE_2__["default"])(function (state, blockClientId, richTextIdentifier) {
|
||||
return state.all.filter(function (annotation) {
|
||||
return annotation.selector === 'range' && annotation.blockClientId === blockClientId && richTextIdentifier === annotation.richTextIdentifier;
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_3__["get"])(state, blockClientId, []).filter(function (annotation) {
|
||||
return annotation.selector === 'range' && richTextIdentifier === annotation.richTextIdentifier;
|
||||
}).map(function (annotation) {
|
||||
var range = annotation.range,
|
||||
other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(annotation, ["range"]);
|
||||
@ -817,7 +959,7 @@ var __experimentalGetAnnotationsForRichText = Object(rememo__WEBPACK_IMPORTED_MO
|
||||
return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, range, other);
|
||||
});
|
||||
}, function (state, blockClientId) {
|
||||
return [state.byBlockClientId[blockClientId]];
|
||||
return [Object(lodash__WEBPACK_IMPORTED_MODULE_3__["get"])(state, blockClientId, EMPTY_ARRAY)];
|
||||
});
|
||||
/**
|
||||
* Returns all annotations in the editor state.
|
||||
@ -827,10 +969,134 @@ var __experimentalGetAnnotationsForRichText = Object(rememo__WEBPACK_IMPORTED_MO
|
||||
*/
|
||||
|
||||
function __experimentalGetAnnotations(state) {
|
||||
return state.all;
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_3__["flatMap"])(state, function (annotations) {
|
||||
return annotations;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/memize/index.js":
|
||||
/*!**************************************!*\
|
||||
!*** ./node_modules/memize/index.js ***!
|
||||
\**************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = function memize( fn, options ) {
|
||||
var size = 0,
|
||||
maxSize, head, tail;
|
||||
|
||||
if ( options && options.maxSize ) {
|
||||
maxSize = options.maxSize;
|
||||
}
|
||||
|
||||
function memoized( /* ...args */ ) {
|
||||
var node = head,
|
||||
len = arguments.length,
|
||||
args, i;
|
||||
|
||||
searchCache: while ( node ) {
|
||||
// Perform a shallow equality test to confirm that whether the node
|
||||
// under test is a candidate for the arguments passed. Two arrays
|
||||
// are shallowly equal if their length matches and each entry is
|
||||
// strictly equal between the two sets. Avoid abstracting to a
|
||||
// function which could incur an arguments leaking deoptimization.
|
||||
|
||||
// Check whether node arguments match arguments length
|
||||
if ( node.args.length !== arguments.length ) {
|
||||
node = node.next;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check whether node arguments match arguments values
|
||||
for ( i = 0; i < len; i++ ) {
|
||||
if ( node.args[ i ] !== arguments[ i ] ) {
|
||||
node = node.next;
|
||||
continue searchCache;
|
||||
}
|
||||
}
|
||||
|
||||
// At this point we can assume we've found a match
|
||||
|
||||
// Surface matched node to head if not already
|
||||
if ( node !== head ) {
|
||||
// As tail, shift to previous. Must only shift if not also
|
||||
// head, since if both head and tail, there is no previous.
|
||||
if ( node === tail ) {
|
||||
tail = node.prev;
|
||||
}
|
||||
|
||||
// Adjust siblings to point to each other. If node was tail,
|
||||
// this also handles new tail's empty `next` assignment.
|
||||
node.prev.next = node.next;
|
||||
if ( node.next ) {
|
||||
node.next.prev = node.prev;
|
||||
}
|
||||
|
||||
node.next = head;
|
||||
node.prev = null;
|
||||
head.prev = node;
|
||||
head = node;
|
||||
}
|
||||
|
||||
// Return immediately
|
||||
return node.val;
|
||||
}
|
||||
|
||||
// No cached value found. Continue to insertion phase:
|
||||
|
||||
// Create a copy of arguments (avoid leaking deoptimization)
|
||||
args = new Array( len );
|
||||
for ( i = 0; i < len; i++ ) {
|
||||
args[ i ] = arguments[ i ];
|
||||
}
|
||||
|
||||
node = {
|
||||
args: args,
|
||||
|
||||
// Generate the result from original function
|
||||
val: fn.apply( null, args )
|
||||
};
|
||||
|
||||
// Don't need to check whether node is already head, since it would
|
||||
// have been returned above already if it was
|
||||
|
||||
// Shift existing head down list
|
||||
if ( head ) {
|
||||
head.prev = node;
|
||||
node.next = head;
|
||||
} else {
|
||||
// If no head, follows that there's no tail (at initial or reset)
|
||||
tail = node;
|
||||
}
|
||||
|
||||
// Trim tail if we're reached max size and are pending cache insertion
|
||||
if ( size === maxSize ) {
|
||||
tail = tail.prev;
|
||||
tail.next = null;
|
||||
} else {
|
||||
size++;
|
||||
}
|
||||
|
||||
head = node;
|
||||
|
||||
return node.val;
|
||||
}
|
||||
|
||||
memoized.clear = function() {
|
||||
head = null;
|
||||
tail = null;
|
||||
size = 0;
|
||||
};
|
||||
|
||||
if ( false ) {}
|
||||
|
||||
return memoized;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/rememo/es/rememo.js":
|
||||
|
2
wp-includes/js/dist/annotations.js.map
vendored
2
wp-includes/js/dist/annotations.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/annotations.min.js
vendored
2
wp-includes/js/dist/annotations.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/api-fetch.min.js
vendored
2
wp-includes/js/dist/api-fetch.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/autop.min.js
vendored
2
wp-includes/js/dist/autop.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/blob.min.js
vendored
2
wp-includes/js/dist/blob.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=195)}({195:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",function(){return f}),n.d(t,"getBlobByURL",function(){return c}),n.d(t,"revokeBlobURL",function(){return l}),n.d(t,"isBlobURL",function(){return d});var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
|
||||
this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=196)}({196:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",function(){return f}),n.d(t,"getBlobByURL",function(){return c}),n.d(t,"revokeBlobURL",function(){return l}),n.d(t,"isBlobURL",function(){return d});var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
|
861
wp-includes/js/dist/block-library.js
vendored
861
wp-includes/js/dist/block-library.js
vendored
File diff suppressed because it is too large
Load Diff
2
wp-includes/js/dist/block-library.js.map
vendored
2
wp-includes/js/dist/block-library.js.map
vendored
File diff suppressed because one or more lines are too long
6
wp-includes/js/dist/block-library.min.js
vendored
6
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.blockSerializationDefaultParser=function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=196)}({196:function(n,t,r){"use strict";r.r(t),r.d(t,"parse",function(){return a});var e,u,o,i,l=r(25),c=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:[^}]+|}+(?=})|(?!}\s+-->)[^])*?}\s+)?(\/)?-->/g;function s(n,t,r,e,u){return{blockName:n,attrs:t,innerBlocks:r,innerHTML:e,innerContent:u}}function f(n){return s(null,{},[],n,[n])}var a=function(n){e=n,u=0,o=[],i=[],c.lastIndex=0;do{}while(p());return o};function p(){var n=function(){var n=c.exec(e);if(null===n)return["no-more-tokens"];var t=n.index,r=Object(l.a)(n,6),u=r[0],o=r[1],i=r[2],s=r[3],f=r[4],a=r[5],p=u.length,b=!!o,v=!!a,d=(i||"core/")+s,h=!!f,k=h?function(n){try{return JSON.parse(n)}catch(n){return null}}(f):{};if(v)return["void-block",d,k,t,p];if(b)return["block-closer",d,null,t,p];return["block-opener",d,k,t,p]}(),t=Object(l.a)(n,5),r=t[0],a=t[1],p=t[2],h=t[3],k=t[4],y=i.length,O=h>u?u:null;switch(r){case"no-more-tokens":if(0===y)return b(),!1;if(1===y)return d(),!1;for(;0<i.length;)d();return!1;case"void-block":return 0===y?(null!==O&&o.push(f(e.substr(O,h-O))),o.push(s(a,p,[],"",[])),u=h+k,!0):(v(s(a,p,[],"",[]),h,k),u=h+k,!0);case"block-opener":return i.push(function(n,t,r,e,u){return{block:n,tokenStart:t,tokenLength:r,prevOffset:e||t+r,leadingHtmlStart:u}}(s(a,p,[],"",[]),h,k,h+k,O)),u=h+k,!0;case"block-closer":if(0===y)return b(),!1;if(1===y)return d(h),u=h+k,!0;var g=i.pop(),m=e.substr(g.prevOffset,h-g.prevOffset);return g.block.innerHTML+=m,g.block.innerContent.push(m),g.prevOffset=h+k,v(g.block,g.tokenStart,g.tokenLength,h+k),u=h+k,!0;default:return b(),!1}}function b(n){var t=n||e.length-u;0!==t&&o.push(f(e.substr(u,t)))}function v(n,t,r,u){var o=i[i.length-1];o.block.innerBlocks.push(n);var l=e.substr(o.prevOffset,t-o.prevOffset);l&&(o.block.innerHTML+=l,o.block.innerContent.push(l)),o.block.innerContent.push(null),o.prevOffset=u||t+r}function d(n){var t=i.pop(),r=t.block,u=t.leadingHtmlStart,l=t.prevOffset,c=t.tokenStart,s=n?e.substr(l,n-l):e.substr(l);s&&(r.innerHTML+=s,r.innerContent.push(s)),null!==u&&o.push(f(e.substr(u,c-u))),o.push(r)}},25:function(n,t,r){"use strict";var e=r(35);var u=r(36);function o(n,t){return Object(e.a)(n)||function(n,t){var r=[],e=!0,u=!1,o=void 0;try{for(var i,l=n[Symbol.iterator]();!(e=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);e=!0);}catch(n){u=!0,o=n}finally{try{e||null==l.return||l.return()}finally{if(u)throw o}}return r}(n,t)||Object(u.a)()}r.d(t,"a",function(){return o})},35:function(n,t,r){"use strict";function e(n){if(Array.isArray(n))return n}r.d(t,"a",function(){return e})},36:function(n,t,r){"use strict";function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",function(){return e})}});
|
||||
this.wp=this.wp||{},this.wp.blockSerializationDefaultParser=function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=197)}({197:function(n,t,r){"use strict";r.r(t),r.d(t,"parse",function(){return a});var e,u,o,i,l=r(25),c=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:[^}]+|}+(?=})|(?!}\s+-->)[^])*?}\s+)?(\/)?-->/g;function s(n,t,r,e,u){return{blockName:n,attrs:t,innerBlocks:r,innerHTML:e,innerContent:u}}function f(n){return s(null,{},[],n,[n])}var a=function(n){e=n,u=0,o=[],i=[],c.lastIndex=0;do{}while(p());return o};function p(){var n=function(){var n=c.exec(e);if(null===n)return["no-more-tokens"];var t=n.index,r=Object(l.a)(n,6),u=r[0],o=r[1],i=r[2],s=r[3],f=r[4],a=r[5],p=u.length,b=!!o,v=!!a,d=(i||"core/")+s,h=!!f,k=h?function(n){try{return JSON.parse(n)}catch(n){return null}}(f):{};if(v)return["void-block",d,k,t,p];if(b)return["block-closer",d,null,t,p];return["block-opener",d,k,t,p]}(),t=Object(l.a)(n,5),r=t[0],a=t[1],p=t[2],h=t[3],k=t[4],y=i.length,O=h>u?u:null;switch(r){case"no-more-tokens":if(0===y)return b(),!1;if(1===y)return d(),!1;for(;0<i.length;)d();return!1;case"void-block":return 0===y?(null!==O&&o.push(f(e.substr(O,h-O))),o.push(s(a,p,[],"",[])),u=h+k,!0):(v(s(a,p,[],"",[]),h,k),u=h+k,!0);case"block-opener":return i.push(function(n,t,r,e,u){return{block:n,tokenStart:t,tokenLength:r,prevOffset:e||t+r,leadingHtmlStart:u}}(s(a,p,[],"",[]),h,k,h+k,O)),u=h+k,!0;case"block-closer":if(0===y)return b(),!1;if(1===y)return d(h),u=h+k,!0;var g=i.pop(),m=e.substr(g.prevOffset,h-g.prevOffset);return g.block.innerHTML+=m,g.block.innerContent.push(m),g.prevOffset=h+k,v(g.block,g.tokenStart,g.tokenLength,h+k),u=h+k,!0;default:return b(),!1}}function b(n){var t=n||e.length-u;0!==t&&o.push(f(e.substr(u,t)))}function v(n,t,r,u){var o=i[i.length-1];o.block.innerBlocks.push(n);var l=e.substr(o.prevOffset,t-o.prevOffset);l&&(o.block.innerHTML+=l,o.block.innerContent.push(l)),o.block.innerContent.push(null),o.prevOffset=u||t+r}function d(n){var t=i.pop(),r=t.block,u=t.leadingHtmlStart,l=t.prevOffset,c=t.tokenStart,s=n?e.substr(l,n-l):e.substr(l);s&&(r.innerHTML+=s,r.innerContent.push(s)),null!==u&&o.push(f(e.substr(u,c-u))),o.push(r)}},25:function(n,t,r){"use strict";var e=r(35);var u=r(36);function o(n,t){return Object(e.a)(n)||function(n,t){var r=[],e=!0,u=!1,o=void 0;try{for(var i,l=n[Symbol.iterator]();!(e=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);e=!0);}catch(n){u=!0,o=n}finally{try{e||null==l.return||l.return()}finally{if(u)throw o}}return r}(n,t)||Object(u.a)()}r.d(t,"a",function(){return o})},35:function(n,t,r){"use strict";function e(n){if(Array.isArray(n))return n}r.d(t,"a",function(){return e})},36:function(n,t,r){"use strict";function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",function(){return e})}});
|
13
wp-includes/js/dist/blocks.js
vendored
13
wp-includes/js/dist/blocks.js
vendored
@ -2293,8 +2293,8 @@ function htmlToBlocks(_ref) {
|
||||
});
|
||||
|
||||
if (!rawTransform) {
|
||||
console.warn('A block registered a raw transformation schema for `' + node.nodeName + '` but did not match it. ' + 'Make sure there is a `selector` or `isMatch` property that can match the schema.\n' + 'Sanitized HTML: `' + node.outerHTML + '`');
|
||||
return;
|
||||
return Object(_factory__WEBPACK_IMPORTED_MODULE_2__["createBlock"])( // Should not be hardcoded.
|
||||
'core/html', Object(_parser__WEBPACK_IMPORTED_MODULE_4__["getBlockAttributes"])('core/html', node.outerHTML));
|
||||
}
|
||||
|
||||
var transform = rawTransform.transform,
|
||||
@ -2454,7 +2454,8 @@ function rawHandler(_ref4) {
|
||||
// additional tags, they do not remove any content.
|
||||
|
||||
|
||||
var filters = [// Needed to create more and nextpage blocks.
|
||||
var filters = [// Needed to adjust invalid lists.
|
||||
_list_reducer__WEBPACK_IMPORTED_MODULE_11__["default"], // Needed to create more and nextpage blocks.
|
||||
_special_comment_converter__WEBPACK_IMPORTED_MODULE_6__["default"], // Needed to create media blocks.
|
||||
_figure_content_reducer__WEBPACK_IMPORTED_MODULE_14__["default"], // Needed to create the quote block, which cannot handle text
|
||||
// without wrapper paragraphs.
|
||||
@ -2580,7 +2581,11 @@ function shallowTextContent(element) {
|
||||
// * There is only one list item.
|
||||
|
||||
if (prevElement && prevElement.nodeName === node.nodeName && list.children.length === 1) {
|
||||
prevElement.appendChild(list.firstChild);
|
||||
// Move all child nodes, including any text nodes, if any.
|
||||
while (list.firstChild) {
|
||||
prevElement.appendChild(list.firstChild);
|
||||
}
|
||||
|
||||
list.parentNode.removeChild(list);
|
||||
}
|
||||
|
||||
|
2
wp-includes/js/dist/blocks.js.map
vendored
2
wp-includes/js/dist/blocks.js.map
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/blocks.min.js
vendored
4
wp-includes/js/dist/blocks.min.js
vendored
File diff suppressed because one or more lines are too long
74
wp-includes/js/dist/components.js
vendored
74
wp-includes/js/dist/components.js
vendored
@ -6332,9 +6332,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/deprecated */ "@wordpress/deprecated");
|
||||
/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7__);
|
||||
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../popover */ "./node_modules/@wordpress/components/build-module/popover/index.js");
|
||||
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../popover */ "./node_modules/@wordpress/components/build-module/popover/index.js");
|
||||
|
||||
|
||||
|
||||
@ -6347,7 +6345,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -6368,7 +6365,6 @@ function (_Component) {
|
||||
_this.toggle = _this.toggle.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
|
||||
_this.close = _this.close.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
|
||||
_this.closeIfClickOutside = _this.closeIfClickOutside.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
|
||||
_this.refresh = _this.refresh.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this)));
|
||||
_this.containerRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createRef"])();
|
||||
_this.state = {
|
||||
isOpen: false
|
||||
@ -6396,22 +6392,6 @@ function (_Component) {
|
||||
onToggle(isOpen);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* When contents change height due to user interaction,
|
||||
* `refresh` can be called to re-render Popover with correct
|
||||
* attributes which allow scroll, if need be.
|
||||
* @deprecated
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "refresh",
|
||||
value: function refresh() {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7___default()('Dropdown.refresh()', {
|
||||
plugin: 'Gutenberg',
|
||||
version: '4.5',
|
||||
hint: 'Popover is now automatically re-rendered without needing to execute "refresh"'
|
||||
});
|
||||
}
|
||||
}, {
|
||||
key: "toggle",
|
||||
value: function toggle() {
|
||||
@ -6465,7 +6445,7 @@ function (_Component) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
|
||||
className: className,
|
||||
ref: this.containerRef
|
||||
}, renderToggle(args), isOpen && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_popover__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
||||
}, renderToggle(args), isOpen && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_popover__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
||||
className: contentClassName,
|
||||
position: position,
|
||||
onClose: this.close,
|
||||
@ -11039,6 +11019,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -11054,10 +11035,16 @@ function Notice(_ref) {
|
||||
_ref$isDismissible = _ref.isDismissible,
|
||||
isDismissible = _ref$isDismissible === void 0 ? true : _ref$isDismissible,
|
||||
_ref$actions = _ref.actions,
|
||||
actions = _ref$actions === void 0 ? [] : _ref$actions;
|
||||
actions = _ref$actions === void 0 ? [] : _ref$actions,
|
||||
__unstableHTML = _ref.__unstableHTML;
|
||||
var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'components-notice', 'is-' + status, {
|
||||
'is-dismissible': isDismissible
|
||||
});
|
||||
|
||||
if (__unstableHTML) {
|
||||
children = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, children);
|
||||
}
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
||||
className: classes
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
||||
@ -11144,7 +11131,7 @@ function NoticeList(_ref) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", {
|
||||
className: className
|
||||
}, children, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(notices).reverse().map(function (notice) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(___WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_3__["omit"])(notice, 'content'), {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(___WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_3__["omit"])(notice, ['content']), {
|
||||
key: notice.id,
|
||||
onRemove: removeNotice(notice.id)
|
||||
}), notice.content);
|
||||
@ -11998,6 +11985,10 @@ var HEIGHT_OFFSET = 10; // used by the arrow and a bit of empty space
|
||||
var isMobileViewport = function isMobileViewport() {
|
||||
return window.innerWidth < 782;
|
||||
};
|
||||
|
||||
var isRTL = function isRTL() {
|
||||
return document.documentElement.dir === 'rtl';
|
||||
};
|
||||
/**
|
||||
* Utility used to compute the popover position over the xAxis
|
||||
*
|
||||
@ -12012,7 +12003,14 @@ var isMobileViewport = function isMobileViewport() {
|
||||
|
||||
|
||||
function computePopoverXAxisPosition(anchorRect, contentSize, xAxis, chosenYAxis) {
|
||||
var width = contentSize.width; // x axis alignment choices
|
||||
var width = contentSize.width; // Correct xAxis for RTL support
|
||||
|
||||
if (xAxis === 'left' && isRTL()) {
|
||||
xAxis = 'right';
|
||||
} else if (xAxis === 'right' && isRTL()) {
|
||||
xAxis = 'left';
|
||||
} // x axis alignment choices
|
||||
|
||||
|
||||
var anchorMidPoint = Math.round(anchorRect.left + anchorRect.width / 2);
|
||||
var centerAlignment = {
|
||||
@ -25978,7 +25976,7 @@ var getStringSize = function getStringSize(n) {
|
||||
return n + 'px';
|
||||
};
|
||||
|
||||
var definedProps = ['style', 'className', 'grid', 'snap', 'bounds', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent'];
|
||||
var definedProps = ['style', 'className', 'grid', 'snap', 'bounds', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent', 'scale'];
|
||||
|
||||
var baseClassName = '__resizable_base__';
|
||||
|
||||
@ -26168,6 +26166,8 @@ var Resizable = function (_React$Component) {
|
||||
lockAspectRatio = _props.lockAspectRatio,
|
||||
lockAspectRatioExtraHeight = _props.lockAspectRatioExtraHeight,
|
||||
lockAspectRatioExtraWidth = _props.lockAspectRatioExtraWidth;
|
||||
|
||||
var scale = this.props.scale || 1;
|
||||
var _props2 = this.props,
|
||||
maxWidth = _props2.maxWidth,
|
||||
maxHeight = _props2.maxHeight,
|
||||
@ -26202,19 +26202,19 @@ var Resizable = function (_React$Component) {
|
||||
var newWidth = original.width;
|
||||
var newHeight = original.height;
|
||||
if (/right/i.test(direction)) {
|
||||
newWidth = original.width + (clientX - original.x);
|
||||
newWidth = original.width + (clientX - original.x) / scale;
|
||||
if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
|
||||
}
|
||||
if (/left/i.test(direction)) {
|
||||
newWidth = original.width - (clientX - original.x);
|
||||
newWidth = original.width - (clientX - original.x) / scale;
|
||||
if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
|
||||
}
|
||||
if (/bottom/i.test(direction)) {
|
||||
newHeight = original.height + (clientY - original.y);
|
||||
newHeight = original.height + (clientY - original.y) / scale;
|
||||
if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
|
||||
}
|
||||
if (/top/i.test(direction)) {
|
||||
newHeight = original.height - (clientY - original.y);
|
||||
newHeight = original.height - (clientY - original.y) / scale;
|
||||
if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
|
||||
}
|
||||
|
||||
@ -26518,7 +26518,8 @@ Resizable.defaultProps = {
|
||||
grid: [1, 1],
|
||||
lockAspectRatio: false,
|
||||
lockAspectRatioExtraWidth: 0,
|
||||
lockAspectRatioExtraHeight: 0
|
||||
lockAspectRatioExtraHeight: 0,
|
||||
scale: 1
|
||||
};
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Resizable);
|
||||
@ -43023,17 +43024,6 @@ module.exports = g;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/deprecated":
|
||||
/*!*********************************************!*\
|
||||
!*** external {"this":["wp","deprecated"]} ***!
|
||||
\*********************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["deprecated"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/dom":
|
||||
/*!**************************************!*\
|
||||
!*** external {"this":["wp","dom"]} ***!
|
||||
|
2
wp-includes/js/dist/components.js.map
vendored
2
wp-includes/js/dist/components.js.map
vendored
File diff suppressed because one or more lines are too long
6
wp-includes/js/dist/components.min.js
vendored
6
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/compose.min.js
vendored
2
wp-includes/js/dist/compose.min.js
vendored
File diff suppressed because one or more lines are too long
5
wp-includes/js/dist/core-data.js
vendored
5
wp-includes/js/dist/core-data.js
vendored
@ -814,7 +814,7 @@ function getKindEntities(kind) {
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/core-data/build-module/index.js ***!
|
||||
\*****************************************************************/
|
||||
/*! exports provided: default */
|
||||
/*! no exports provided */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -908,14 +908,13 @@ var entityActions = _entities__WEBPACK_IMPORTED_MODULE_7__["defaultEntities"].re
|
||||
|
||||
return result;
|
||||
}, {});
|
||||
var store = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["registerStore"])(_name__WEBPACK_IMPORTED_MODULE_8__["REDUCER_KEY"], {
|
||||
Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["registerStore"])(_name__WEBPACK_IMPORTED_MODULE_8__["REDUCER_KEY"], {
|
||||
reducer: _reducer__WEBPACK_IMPORTED_MODULE_2__["default"],
|
||||
controls: _controls__WEBPACK_IMPORTED_MODULE_3__["default"],
|
||||
actions: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _actions__WEBPACK_IMPORTED_MODULE_5__, entityActions),
|
||||
selectors: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _selectors__WEBPACK_IMPORTED_MODULE_4__, entitySelectors),
|
||||
resolvers: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _resolvers__WEBPACK_IMPORTED_MODULE_6__, entityResolvers)
|
||||
});
|
||||
/* harmony default export */ __webpack_exports__["default"] = (store);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
2
wp-includes/js/dist/core-data.js.map
vendored
2
wp-includes/js/dist/core-data.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/core-data.min.js
vendored
2
wp-includes/js/dist/core-data.min.js
vendored
File diff suppressed because one or more lines are too long
9
wp-includes/js/dist/data.js
vendored
9
wp-includes/js/dist/data.js
vendored
@ -672,7 +672,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
var withDispatch = function withDispatch(mapDispatchToProps) {
|
||||
return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["createHigherOrderComponent"])(Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["compose"])([_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["pure"], function (WrappedComponent) {
|
||||
return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["createHigherOrderComponent"])(function (WrappedComponent) {
|
||||
var ComponentWithDispatch =
|
||||
/*#__PURE__*/
|
||||
function (_Component) {
|
||||
@ -692,11 +692,6 @@ var withDispatch = function withDispatch(mapDispatchToProps) {
|
||||
}
|
||||
|
||||
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(ComponentWithDispatch, [{
|
||||
key: "componentDidUpdate",
|
||||
value: function componentDidUpdate() {
|
||||
this.setProxyProps(this.props);
|
||||
}
|
||||
}, {
|
||||
key: "proxyDispatch",
|
||||
value: function proxyDispatch(propName) {
|
||||
var _mapDispatchToProps;
|
||||
@ -749,7 +744,7 @@ var withDispatch = function withDispatch(mapDispatchToProps) {
|
||||
});
|
||||
});
|
||||
};
|
||||
}]), 'withDispatch');
|
||||
}, 'withDispatch');
|
||||
};
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (withDispatch);
|
||||
|
2
wp-includes/js/dist/data.js.map
vendored
2
wp-includes/js/dist/data.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/data.min.js
vendored
2
wp-includes/js/dist/data.min.js
vendored
File diff suppressed because one or more lines are too long
6
wp-includes/js/dist/date.min.js
vendored
6
wp-includes/js/dist/date.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/deprecated.min.js
vendored
2
wp-includes/js/dist/deprecated.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=266)}({23:function(e,t){!function(){e.exports=this.wp.hooks}()},266:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",function(){return o}),n.d(t,"default",function(){return c});var r=n(23),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,u=t.plugin,i=t.link,a=t.hint,l=u?" from ".concat(u):"",f=n?"".concat(l," in ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",p=i?" See: ".concat(i):"",s=a?" Note: ".concat(a):"",b="".concat(e," is deprecated and will be removed").concat(f,".").concat(d).concat(p).concat(s);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default;
|
||||
this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=267)}({23:function(e,t){!function(){e.exports=this.wp.hooks}()},267:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",function(){return o}),n.d(t,"default",function(){return c});var r=n(23),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,u=t.plugin,i=t.link,a=t.hint,l=u?" from ".concat(u):"",f=n?"".concat(l," in ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",p=i?" See: ".concat(i):"",s=a?" Note: ".concat(a):"",b="".concat(e," is deprecated and will be removed").concat(f,".").concat(d).concat(p).concat(s);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default;
|
2
wp-includes/js/dist/dom-ready.min.js
vendored
2
wp-includes/js/dist/dom-ready.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.domReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=267)}({267:function(e,t,n){"use strict";n.r(t);t.default=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}}}).default;
|
||||
this.wp=this.wp||{},this.wp.domReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=268)}({268:function(e,t,n){"use strict";n.r(t);t.default=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}}}).default;
|
9
wp-includes/js/dist/dom.js
vendored
9
wp-includes/js/dist/dom.js
vendored
@ -680,7 +680,14 @@ function isEntirelySelected(element) {
|
||||
endContainer = range.endContainer,
|
||||
startOffset = range.startOffset,
|
||||
endOffset = range.endOffset;
|
||||
return startContainer === element && endContainer === element && startOffset === 0 && endOffset === element.childNodes.length;
|
||||
|
||||
if (startContainer === element && endContainer === element && startOffset === 0 && endOffset === element.childNodes.length) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var lastChild = element.lastChild;
|
||||
var lastChildContentLength = lastChild.nodeType === TEXT_NODE ? lastChild.data.length : lastChild.childNodes.length;
|
||||
return startContainer === element.firstChild && endContainer === element.lastChild && startOffset === 0 && endOffset === lastChildContentLength;
|
||||
}
|
||||
/**
|
||||
* Given a DOM node, finds the closest scrollable container node.
|
||||
|
2
wp-includes/js/dist/dom.js.map
vendored
2
wp-includes/js/dist/dom.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/dom.min.js
vendored
2
wp-includes/js/dist/dom.min.js
vendored
File diff suppressed because one or more lines are too long
433
wp-includes/js/dist/edit-post.js
vendored
433
wp-includes/js/dist/edit-post.js
vendored
@ -590,6 +590,204 @@ function _typeof(obj) {
|
||||
return _typeof(obj);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@wordpress/edit-post/build-module/components/admin-notices/index.js":
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/edit-post/build-module/components/admin-notices/index.js ***!
|
||||
\******************************************************************************************/
|
||||
/*! exports provided: AdminNotices, default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminNotices", function() { return AdminNotices; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__["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 AdminNotices =
|
||||
/*#__PURE__*/
|
||||
function (_Component) {
|
||||
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(AdminNotices, _Component);
|
||||
|
||||
function AdminNotices() {
|
||||
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, AdminNotices);
|
||||
|
||||
return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(AdminNotices).apply(this, arguments));
|
||||
}
|
||||
|
||||
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["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;
|
||||
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["withDispatch"])(function (dispatch) {
|
||||
var _dispatch = dispatch('core/notices'),
|
||||
createNotice = _dispatch.createNotice;
|
||||
|
||||
return {
|
||||
createNotice: createNotice
|
||||
};
|
||||
})(AdminNotices));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-group.js":
|
||||
@ -1179,17 +1377,17 @@ __webpack_require__.r(__webpack_exports__);
|
||||
function HeaderToolbar(_ref) {
|
||||
var hasFixedToolbar = _ref.hasFixedToolbar,
|
||||
isLargeViewport = _ref.isLargeViewport,
|
||||
mode = _ref.mode;
|
||||
showInserter = _ref.showInserter;
|
||||
var toolbarAriaLabel = hasFixedToolbar ?
|
||||
/* translators: accessibility text for the editor toolbar when Unified Toolbar is on */
|
||||
/* translators: accessibility text for the editor toolbar when Top Toolbar is on */
|
||||
Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Document and block tools') :
|
||||
/* translators: accessibility text for the editor toolbar when Unified Toolbar is off */
|
||||
/* translators: accessibility text for the editor toolbar when Top Toolbar is off */
|
||||
Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Document tools');
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["NavigableToolbar"], {
|
||||
className: "edit-post-header-toolbar",
|
||||
"aria-label": toolbarAriaLabel
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_fullscreen_mode_close__WEBPACK_IMPORTED_MODULE_7__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["Inserter"], {
|
||||
disabled: mode !== 'visual',
|
||||
disabled: !showInserter,
|
||||
position: "bottom right"
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_nux__WEBPACK_IMPORTED_MODULE_4__["DotTip"], {
|
||||
tipId: "core/editor.inserter"
|
||||
@ -1201,7 +1399,7 @@ function HeaderToolbar(_ref) {
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["withSelect"])(function (select) {
|
||||
return {
|
||||
hasFixedToolbar: select('core/edit-post').isFeatureActive('fixedToolbar'),
|
||||
mode: select('core/edit-post').getEditorMode()
|
||||
showInserter: select('core/edit-post').getEditorMode() === 'visual' && select('core/editor').getEditorSettings().richEditingEnabled
|
||||
};
|
||||
}), Object(_wordpress_viewport__WEBPACK_IMPORTED_MODULE_3__["withViewportMatch"])({
|
||||
isLargeViewport: 'medium'
|
||||
@ -1284,7 +1482,10 @@ function Header(_ref) {
|
||||
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["PostSavedState"], {
|
||||
forceIsDirty: hasActiveMetaboxes,
|
||||
forceIsSaving: isSaving
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["PostPreviewButton"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_post_publish_button_or_toggle__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__["PostPreviewButton"], {
|
||||
forceIsAutosaveable: hasActiveMetaboxes,
|
||||
forcePreviewLink: isSaving ? null : undefined
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_post_publish_button_or_toggle__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
||||
forceIsDirty: hasActiveMetaboxes,
|
||||
forceIsSaving: isSaving
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["IconButton"], {
|
||||
@ -1400,8 +1601,12 @@ function ModeSwitcher(_ref) {
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withSelect"])(function (select) {
|
||||
return {
|
||||
isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled,
|
||||
mode: select('core/edit-post').getEditorMode()
|
||||
};
|
||||
}), Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__["ifCondition"])(function (_ref2) {
|
||||
var isRichEditingEnabled = _ref2.isRichEditingEnabled;
|
||||
return isRichEditingEnabled;
|
||||
}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withDispatch"])(function (dispatch, ownProps) {
|
||||
return {
|
||||
onSwitch: function onSwitch(mode) {
|
||||
@ -1926,7 +2131,7 @@ function WritingMenu(_ref) {
|
||||
label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('View', 'noun')
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_feature_toggle__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||
feature: "fixedToolbar",
|
||||
label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Unified Toolbar'),
|
||||
label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Top Toolbar'),
|
||||
info: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Access all block and document tools in a single place'),
|
||||
onToggle: onClose
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_feature_toggle__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||
@ -2292,7 +2497,13 @@ function (_Component) {
|
||||
value: function toggleMode() {
|
||||
var _this$props = this.props,
|
||||
mode = _this$props.mode,
|
||||
switchMode = _this$props.switchMode;
|
||||
switchMode = _this$props.switchMode,
|
||||
isRichEditingEnabled = _this$props.isRichEditingEnabled;
|
||||
|
||||
if (!isRichEditingEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
switchMode(mode === 'visual' ? 'text' : 'visual');
|
||||
}
|
||||
}, {
|
||||
@ -2329,6 +2540,7 @@ function (_Component) {
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_10__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_9__["withSelect"])(function (select) {
|
||||
return {
|
||||
isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled,
|
||||
mode: select('core/edit-post').getEditorMode(),
|
||||
isEditorSidebarOpen: select('core/edit-post').isEditorSidebarOpened(),
|
||||
hasBlockSelection: !!select('core/editor').getBlockSelectionStart()
|
||||
@ -2391,6 +2603,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _sidebar_plugin_post_publish_panel__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../sidebar/plugin-post-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js");
|
||||
/* harmony import */ var _sidebar_plugin_pre_publish_panel__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../sidebar/plugin-pre-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js");
|
||||
/* harmony import */ var _fullscreen_mode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../fullscreen-mode */ "./node_modules/@wordpress/edit-post/build-module/components/fullscreen-mode/index.js");
|
||||
/* harmony import */ var _admin_notices__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../admin-notices */ "./node_modules/@wordpress/edit-post/build-module/components/admin-notices/index.js");
|
||||
|
||||
|
||||
|
||||
@ -2428,6 +2641,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
function Layout(_ref) {
|
||||
var mode = _ref.mode,
|
||||
editorSidebarOpened = _ref.editorSidebarOpened,
|
||||
@ -2438,7 +2652,8 @@ function Layout(_ref) {
|
||||
togglePublishSidebar = _ref.togglePublishSidebar,
|
||||
hasActiveMetaboxes = _ref.hasActiveMetaboxes,
|
||||
isSaving = _ref.isSaving,
|
||||
isMobileViewport = _ref.isMobileViewport;
|
||||
isMobileViewport = _ref.isMobileViewport,
|
||||
isRichEditingEnabled = _ref.isRichEditingEnabled;
|
||||
var sidebarIsOpened = editorSidebarOpened || pluginSidebarOpened || publishSidebarOpened;
|
||||
var className = classnames__WEBPACK_IMPORTED_MODULE_2___default()('edit-post-layout', {
|
||||
'is-sidebar-opened': sidebarIsOpened,
|
||||
@ -2453,14 +2668,14 @@ function Layout(_ref) {
|
||||
};
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
|
||||
className: className
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_fullscreen_mode__WEBPACK_IMPORTED_MODULE_22__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_browser_url__WEBPACK_IMPORTED_MODULE_10__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["UnsavedChangesWarning"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["AutosaveMonitor"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_header__WEBPACK_IMPORTED_MODULE_11__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_fullscreen_mode__WEBPACK_IMPORTED_MODULE_22__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_browser_url__WEBPACK_IMPORTED_MODULE_10__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["UnsavedChangesWarning"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["AutosaveMonitor"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_admin_notices__WEBPACK_IMPORTED_MODULE_23__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_header__WEBPACK_IMPORTED_MODULE_11__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
|
||||
className: "edit-post-layout__content",
|
||||
role: "region"
|
||||
/* translators: accessibility text for the content landmark region. */
|
||||
,
|
||||
"aria-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Editor content'),
|
||||
tabIndex: "-1"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["EditorNotices"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["PreserveScrollInReorder"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_14__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_keyboard_shortcut_help_modal__WEBPACK_IMPORTED_MODULE_15__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_options_modal__WEBPACK_IMPORTED_MODULE_16__["default"], null), mode === 'text' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_text_editor__WEBPACK_IMPORTED_MODULE_12__["default"], null), mode === 'visual' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_visual_editor__WEBPACK_IMPORTED_MODULE_13__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["EditorNotices"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_5__["PreserveScrollInReorder"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_14__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_keyboard_shortcut_help_modal__WEBPACK_IMPORTED_MODULE_15__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_options_modal__WEBPACK_IMPORTED_MODULE_16__["default"], null), (mode === 'text' || !isRichEditingEnabled) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_text_editor__WEBPACK_IMPORTED_MODULE_12__["default"], null), isRichEditingEnabled && mode === 'visual' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_visual_editor__WEBPACK_IMPORTED_MODULE_13__["default"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", {
|
||||
className: "edit-post-layout__metaboxes"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_meta_boxes__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
||||
location: "normal"
|
||||
@ -2493,7 +2708,8 @@ function Layout(_ref) {
|
||||
publishSidebarOpened: select('core/edit-post').isPublishSidebarOpened(),
|
||||
hasFixedToolbar: select('core/edit-post').isFeatureActive('fixedToolbar'),
|
||||
hasActiveMetaboxes: select('core/edit-post').hasMetaBoxes(),
|
||||
isSaving: select('core/edit-post').isSavingMetaBoxes()
|
||||
isSaving: select('core/edit-post').isSavingMetaBoxes(),
|
||||
isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled
|
||||
};
|
||||
}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__["withDispatch"])(function (dispatch) {
|
||||
var _dispatch = dispatch('core/edit-post'),
|
||||
@ -4166,8 +4382,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__);
|
||||
/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url");
|
||||
/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor");
|
||||
/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__);
|
||||
|
||||
|
||||
/**
|
||||
@ -4198,19 +4414,22 @@ function PostLink(_ref) {
|
||||
permalinkParts = _ref.permalinkParts,
|
||||
editPermalink = _ref.editPermalink,
|
||||
forceEmptyField = _ref.forceEmptyField,
|
||||
setState = _ref.setState;
|
||||
setState = _ref.setState,
|
||||
postTitle = _ref.postTitle,
|
||||
postSlug = _ref.postSlug,
|
||||
postID = _ref.postID;
|
||||
var prefix = permalinkParts.prefix,
|
||||
postName = permalinkParts.postName,
|
||||
suffix = permalinkParts.suffix;
|
||||
var prefixElement, postNameElement, suffixElement;
|
||||
var currentSlug = postSlug || Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["cleanForSlug"])(postTitle) || postID;
|
||||
|
||||
if (isEditable) {
|
||||
prefixElement = prefix && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
|
||||
className: "edit-post-post-link__link-prefix"
|
||||
}, prefix);
|
||||
postNameElement = postName && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
|
||||
postNameElement = currentSlug && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
|
||||
className: "edit-post-post-link__link-post-name"
|
||||
}, postName);
|
||||
}, currentSlug);
|
||||
suffixElement = suffix && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
|
||||
className: "edit-post-post-link__link-suffix"
|
||||
}, suffix);
|
||||
@ -4222,7 +4441,7 @@ function PostLink(_ref) {
|
||||
onToggle: onTogglePanel
|
||||
}, isEditable && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["TextControl"], {
|
||||
label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('URL'),
|
||||
value: forceEmptyField ? '' : postName,
|
||||
value: forceEmptyField ? '' : currentSlug,
|
||||
onChange: function onChange(newValue) {
|
||||
editPermalink(newValue); // When we delete the field the permalink gets
|
||||
// reverted to the original value.
|
||||
@ -4239,6 +4458,15 @@ function PostLink(_ref) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (forceEmptyField) {
|
||||
setState({
|
||||
forceEmptyField: false
|
||||
});
|
||||
}
|
||||
},
|
||||
onBlur: function onBlur(event) {
|
||||
editPermalink(Object(_wordpress_editor__WEBPACK_IMPORTED_MODULE_6__["cleanForSlug"])(event.target.value));
|
||||
|
||||
if (forceEmptyField) {
|
||||
setState({
|
||||
forceEmptyField: false
|
||||
@ -4247,15 +4475,11 @@ function PostLink(_ref) {
|
||||
}
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("p", {
|
||||
className: "edit-post-post-link__preview-label"
|
||||
}, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Preview')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("a", {
|
||||
}, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Preview')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["ExternalLink"], {
|
||||
className: "edit-post-post-link__link",
|
||||
href: postLink,
|
||||
target: "_blank"
|
||||
}, isEditable ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, prefixElement, postNameElement, suffixElement) : postLink), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("a", {
|
||||
className: "edit-post-post-link__permalink-settings",
|
||||
href: Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_6__["addQueryArgs"])('options-permalink.php'),
|
||||
target: "_blank"
|
||||
}, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Permalink Settings')));
|
||||
}, isEditable ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, prefixElement, postNameElement, suffixElement) : postLink));
|
||||
}
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__["withSelect"])(function (select) {
|
||||
@ -4274,7 +4498,8 @@ function PostLink(_ref) {
|
||||
getPostType = _select3.getPostType;
|
||||
|
||||
var _getCurrentPost = getCurrentPost(),
|
||||
link = _getCurrentPost.link;
|
||||
link = _getCurrentPost.link,
|
||||
id = _getCurrentPost.id;
|
||||
|
||||
var postTypeName = getEditedPostAttribute('type');
|
||||
var postType = getPostType(postTypeName);
|
||||
@ -4285,7 +4510,10 @@ function PostLink(_ref) {
|
||||
isPublished: isCurrentPostPublished(),
|
||||
isOpened: isEditorPanelOpened(PANEL_NAME),
|
||||
permalinkParts: getPermalinkParts(),
|
||||
isViewable: Object(lodash__WEBPACK_IMPORTED_MODULE_1__["get"])(postType, ['viewable'], false)
|
||||
isViewable: Object(lodash__WEBPACK_IMPORTED_MODULE_1__["get"])(postType, ['viewable'], false),
|
||||
postTitle: getEditedPostAttribute('title'),
|
||||
postSlug: getEditedPostAttribute('slug'),
|
||||
postID: id
|
||||
};
|
||||
}), Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["ifCondition"])(function (_ref2) {
|
||||
var isNew = _ref2.isNew,
|
||||
@ -4744,13 +4972,11 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _sidebar_header__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../sidebar-header */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _sidebar_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../sidebar-header */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js");
|
||||
|
||||
|
||||
|
||||
@ -4759,7 +4985,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -4767,37 +4992,35 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
var SettingsHeader = function SettingsHeader(_ref) {
|
||||
var count = _ref.count,
|
||||
openDocumentSettings = _ref.openDocumentSettings,
|
||||
var openDocumentSettings = _ref.openDocumentSettings,
|
||||
openBlockSettings = _ref.openBlockSettings,
|
||||
sidebarName = _ref.sidebarName;
|
||||
// Do not display "0 Blocks".
|
||||
var blockCount = count === 0 ? 1 : count;
|
||||
var blockLabel = blockCount === 1 ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Block') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["_n"])('%d Block', '%d Blocks', blockCount), blockCount);
|
||||
|
||||
var blockLabel = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Block');
|
||||
|
||||
var _ref2 = sidebarName === 'edit-post/document' ? // translators: ARIA label for the Document Settings sidebar tab, selected.
|
||||
[Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Document settings (selected)'), 'is-active'] : // translators: ARIA label for the Document Settings sidebar tab, not selected.
|
||||
[Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Document settings'), ''],
|
||||
[Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Document settings (selected)'), 'is-active'] : // translators: ARIA label for the Document Settings sidebar tab, not selected.
|
||||
[Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Document settings'), ''],
|
||||
_ref3 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["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(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Block settings (selected)'), 'is-active'] : // translators: ARIA label for the Block Settings sidebar tab, not selected.
|
||||
[Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Block settings'), ''],
|
||||
[Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Block settings (selected)'), 'is-active'] : // translators: ARIA label for the Block Settings sidebar tab, not selected.
|
||||
[Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Block settings'), ''],
|
||||
_ref5 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref4, 2),
|
||||
blockAriaLabel = _ref5[0],
|
||||
blockActiveClass = _ref5[1];
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_sidebar_header__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_sidebar_header__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||
className: "edit-post-sidebar__panel-tabs",
|
||||
closeLabel: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Close settings')
|
||||
closeLabel: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Close settings')
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("ul", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("li", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("button", {
|
||||
onClick: openDocumentSettings,
|
||||
className: "edit-post-sidebar__panel-tab ".concat(documentActiveClass),
|
||||
"aria-label": documentAriaLabel,
|
||||
"data-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Document')
|
||||
}, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Document'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("li", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("button", {
|
||||
"data-label": Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Document')
|
||||
}, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Document'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("li", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("button", {
|
||||
onClick: openBlockSettings,
|
||||
className: "edit-post-sidebar__panel-tab ".concat(blockActiveClass),
|
||||
"aria-label": blockAriaLabel,
|
||||
@ -4805,11 +5028,7 @@ var SettingsHeader = function SettingsHeader(_ref) {
|
||||
}, blockLabel))));
|
||||
};
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["compose"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__["withSelect"])(function (select) {
|
||||
return {
|
||||
count: select('core/editor').getSelectedBlockCount()
|
||||
};
|
||||
}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__["withDispatch"])(function (dispatch) {
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["withDispatch"])(function (dispatch) {
|
||||
var _dispatch = dispatch('core/edit-post'),
|
||||
openGeneralSidebar = _dispatch.openGeneralSidebar;
|
||||
|
||||
@ -4825,7 +5044,7 @@ var SettingsHeader = function SettingsHeader(_ref) {
|
||||
openGeneralSidebar('edit-post/block');
|
||||
}
|
||||
};
|
||||
}))(SettingsHeader));
|
||||
})(SettingsHeader));
|
||||
|
||||
|
||||
/***/ }),
|
||||
@ -5021,6 +5240,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes");
|
||||
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_5__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__);
|
||||
|
||||
|
||||
/**
|
||||
@ -5032,11 +5253,13 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
function TextEditor(_ref) {
|
||||
var onExit = _ref.onExit;
|
||||
var onExit = _ref.onExit,
|
||||
isRichEditingEnabled = _ref.isRichEditingEnabled;
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
||||
className: "edit-post-text-editor"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
||||
}, isRichEditingEnabled && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
||||
className: "edit-post-text-editor__toolbar"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("h2", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Editing Code')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["IconButton"], {
|
||||
onClick: onExit,
|
||||
@ -5047,13 +5270,17 @@ function TextEditor(_ref) {
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_1__["PostTitle"], null), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_1__["PostTextEditor"], null)));
|
||||
}
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["withDispatch"])(function (dispatch) {
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__["compose"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["withSelect"])(function (select) {
|
||||
return {
|
||||
isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled
|
||||
};
|
||||
}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["withDispatch"])(function (dispatch) {
|
||||
return {
|
||||
onExit: function onExit() {
|
||||
dispatch('core/edit-post').switchEditorMode('visual');
|
||||
}
|
||||
};
|
||||
})(TextEditor));
|
||||
}))(TextEditor));
|
||||
|
||||
|
||||
/***/ }),
|
||||
@ -5515,6 +5742,8 @@ function (_Component) {
|
||||
}, {
|
||||
key: "onOpen",
|
||||
value: function onOpen() {
|
||||
this.updateCollection();
|
||||
|
||||
if (!this.props.value) {
|
||||
return;
|
||||
}
|
||||
@ -5538,6 +5767,23 @@ function (_Component) {
|
||||
onClose();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "updateCollection",
|
||||
value: function updateCollection() {
|
||||
var frameContent = this.frame.content.get();
|
||||
|
||||
if (frameContent && frameContent.collection) {
|
||||
var collection = frameContent.collection; // clean all attachments we have in memory.
|
||||
|
||||
collection.toArray().forEach(function (model) {
|
||||
return model.trigger('destroy', model);
|
||||
}); // reset has more flag, if library had small amount of items all items may have been loaded before.
|
||||
|
||||
collection.mirroring._hasMore = true; // request items
|
||||
|
||||
collection.more();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "openModal",
|
||||
value: function openModal() {
|
||||
@ -5759,31 +6005,33 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_nux__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_nux__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _wordpress_viewport__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/viewport */ "@wordpress/viewport");
|
||||
/* harmony import */ var _wordpress_viewport__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_viewport__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _wordpress_block_library__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-library */ "@wordpress/block-library");
|
||||
/* harmony import */ var _wordpress_block_library__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_library__WEBPACK_IMPORTED_MODULE_5__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hooks */ "./node_modules/@wordpress/edit-post/build-module/hooks/index.js");
|
||||
/* harmony import */ var _plugins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./plugins */ "./node_modules/@wordpress/edit-post/build-module/plugins/index.js");
|
||||
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./store */ "./node_modules/@wordpress/edit-post/build-module/store/index.js");
|
||||
/* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./editor */ "./node_modules/@wordpress/edit-post/build-module/editor.js");
|
||||
/* harmony import */ var _components_block_settings_menu_plugin_block_settings_menu_item__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/block-settings-menu/plugin-block-settings-menu-item */ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginBlockSettingsMenuItem", function() { return _components_block_settings_menu_plugin_block_settings_menu_item__WEBPACK_IMPORTED_MODULE_11__["default"]; });
|
||||
/* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/notices */ "@wordpress/notices");
|
||||
/* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_notices__WEBPACK_IMPORTED_MODULE_5__);
|
||||
/* harmony import */ var _wordpress_block_library__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-library */ "@wordpress/block-library");
|
||||
/* harmony import */ var _wordpress_block_library__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_library__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__);
|
||||
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./hooks */ "./node_modules/@wordpress/edit-post/build-module/hooks/index.js");
|
||||
/* harmony import */ var _plugins__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./plugins */ "./node_modules/@wordpress/edit-post/build-module/plugins/index.js");
|
||||
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./store */ "./node_modules/@wordpress/edit-post/build-module/store/index.js");
|
||||
/* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./editor */ "./node_modules/@wordpress/edit-post/build-module/editor.js");
|
||||
/* harmony import */ var _components_block_settings_menu_plugin_block_settings_menu_item__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/block-settings-menu/plugin-block-settings-menu-item */ "./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginBlockSettingsMenuItem", function() { return _components_block_settings_menu_plugin_block_settings_menu_item__WEBPACK_IMPORTED_MODULE_12__["default"]; });
|
||||
|
||||
/* harmony import */ var _components_sidebar_plugin_post_publish_panel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/sidebar/plugin-post-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPostPublishPanel", function() { return _components_sidebar_plugin_post_publish_panel__WEBPACK_IMPORTED_MODULE_12__["default"]; });
|
||||
/* harmony import */ var _components_sidebar_plugin_post_publish_panel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/sidebar/plugin-post-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPostPublishPanel", function() { return _components_sidebar_plugin_post_publish_panel__WEBPACK_IMPORTED_MODULE_13__["default"]; });
|
||||
|
||||
/* harmony import */ var _components_sidebar_plugin_post_status_info__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/sidebar/plugin-post-status-info */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPostStatusInfo", function() { return _components_sidebar_plugin_post_status_info__WEBPACK_IMPORTED_MODULE_13__["default"]; });
|
||||
/* harmony import */ var _components_sidebar_plugin_post_status_info__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/sidebar/plugin-post-status-info */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPostStatusInfo", function() { return _components_sidebar_plugin_post_status_info__WEBPACK_IMPORTED_MODULE_14__["default"]; });
|
||||
|
||||
/* harmony import */ var _components_sidebar_plugin_pre_publish_panel__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/sidebar/plugin-pre-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPrePublishPanel", function() { return _components_sidebar_plugin_pre_publish_panel__WEBPACK_IMPORTED_MODULE_14__["default"]; });
|
||||
/* harmony import */ var _components_sidebar_plugin_pre_publish_panel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/sidebar/plugin-pre-publish-panel */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPrePublishPanel", function() { return _components_sidebar_plugin_pre_publish_panel__WEBPACK_IMPORTED_MODULE_15__["default"]; });
|
||||
|
||||
/* harmony import */ var _components_sidebar_plugin_sidebar__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/sidebar/plugin-sidebar */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginSidebar", function() { return _components_sidebar_plugin_sidebar__WEBPACK_IMPORTED_MODULE_15__["default"]; });
|
||||
/* harmony import */ var _components_sidebar_plugin_sidebar__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/sidebar/plugin-sidebar */ "./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginSidebar", function() { return _components_sidebar_plugin_sidebar__WEBPACK_IMPORTED_MODULE_16__["default"]; });
|
||||
|
||||
/* harmony import */ var _components_header_plugin_sidebar_more_menu_item__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/header/plugin-sidebar-more-menu-item */ "./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginSidebarMoreMenuItem", function() { return _components_header_plugin_sidebar_more_menu_item__WEBPACK_IMPORTED_MODULE_16__["default"]; });
|
||||
/* harmony import */ var _components_header_plugin_sidebar_more_menu_item__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/header/plugin-sidebar-more-menu-item */ "./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginSidebarMoreMenuItem", function() { return _components_header_plugin_sidebar_more_menu_item__WEBPACK_IMPORTED_MODULE_17__["default"]; });
|
||||
|
||||
|
||||
|
||||
@ -5797,6 +6045,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -5822,7 +6071,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
function reinitializeEditor(postType, postId, target, settings, initialEdits) {
|
||||
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["unmountComponentAtNode"])(target);
|
||||
var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits);
|
||||
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_editor__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
||||
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_editor__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
||||
settings: settings,
|
||||
onError: reboot,
|
||||
postId: postId,
|
||||
@ -5849,9 +6098,9 @@ function reinitializeEditor(postType, postId, target, settings, initialEdits) {
|
||||
function initializeEditor(id, postType, postId, settings, initialEdits) {
|
||||
var target = document.getElementById(id);
|
||||
var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits);
|
||||
Object(_wordpress_block_library__WEBPACK_IMPORTED_MODULE_5__["registerCoreBlocks"])();
|
||||
Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__["dispatch"])('core/nux').triggerGuide(['core/editor.inserter', 'core/editor.settings', 'core/editor.preview', 'core/editor.publish']);
|
||||
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_editor__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
||||
Object(_wordpress_block_library__WEBPACK_IMPORTED_MODULE_6__["registerCoreBlocks"])();
|
||||
Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["dispatch"])('core/nux').triggerGuide(['core/editor.inserter', 'core/editor.settings', 'core/editor.preview', 'core/editor.publish']);
|
||||
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_editor__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
||||
settings: settings,
|
||||
onError: reboot,
|
||||
postId: postId,
|
||||
@ -6381,17 +6630,20 @@ var effects = {
|
||||
}
|
||||
});
|
||||
var wasSavingPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/editor').isSavingPost();
|
||||
var wasAutosavingPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/editor').isAutosavingPost(); // Save metaboxes when performing a full save on the post.
|
||||
var wasAutosavingPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/editor').isAutosavingPost();
|
||||
var wasPreviewingPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/editor').isPreviewingPost(); // Save metaboxes when performing a full save on the post.
|
||||
|
||||
Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["subscribe"])(function () {
|
||||
var isSavingPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/editor').isSavingPost();
|
||||
var isAutosavingPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/editor').isAutosavingPost();
|
||||
var hasActiveMetaBoxes = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/edit-post').hasMetaBoxes(); // Save metaboxes on save completion when past save wasn't an autosave.
|
||||
var isPreviewingPost = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/editor').isPreviewingPost();
|
||||
var hasActiveMetaBoxes = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["select"])('core/edit-post').hasMetaBoxes(); // Save metaboxes on save completion, except for autosaves that are not a post preview.
|
||||
|
||||
var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && wasSavingPost && !wasAutosavingPost && !isSavingPost && !isAutosavingPost; // Save current state for next inspection.
|
||||
var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && (wasSavingPost && !isSavingPost && !wasAutosavingPost || wasAutosavingPost && wasPreviewingPost && !isPreviewingPost); // Save current state for next inspection.
|
||||
|
||||
wasSavingPost = isSavingPost;
|
||||
wasAutosavingPost = isAutosavingPost;
|
||||
wasPreviewingPost = isPreviewingPost;
|
||||
|
||||
if (shouldTriggerMetaboxesSave) {
|
||||
store.dispatch(Object(_actions__WEBPACK_IMPORTED_MODULE_7__["requestMetaBoxUpdates"])());
|
||||
@ -7843,6 +8095,17 @@ function isShallowEqual( a, b, fromIndex ) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/notices":
|
||||
/*!******************************************!*\
|
||||
!*** external {"this":["wp","notices"]} ***!
|
||||
\******************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["notices"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/nux":
|
||||
/*!**************************************!*\
|
||||
!*** external {"this":["wp","nux"]} ***!
|
||||
|
2
wp-includes/js/dist/edit-post.js.map
vendored
2
wp-includes/js/dist/edit-post.js.map
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/edit-post.min.js
vendored
4
wp-includes/js/dist/edit-post.min.js
vendored
File diff suppressed because one or more lines are too long
1573
wp-includes/js/dist/editor.js
vendored
1573
wp-includes/js/dist/editor.js
vendored
File diff suppressed because it is too large
Load Diff
2
wp-includes/js/dist/editor.js.map
vendored
2
wp-includes/js/dist/editor.js.map
vendored
File diff suppressed because one or more lines are too long
8
wp-includes/js/dist/editor.min.js
vendored
8
wp-includes/js/dist/editor.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/element.min.js
vendored
2
wp-includes/js/dist/element.min.js
vendored
File diff suppressed because one or more lines are too long
16
wp-includes/js/dist/format-library.js
vendored
16
wp-includes/js/dist/format-library.js
vendored
@ -1079,11 +1079,6 @@ function (_Component) {
|
||||
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(InlineLinkUI, [{
|
||||
key: "onKeyDown",
|
||||
value: function onKeyDown(event) {
|
||||
if (event.keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["ESCAPE"]) {
|
||||
event.stopPropagation();
|
||||
this.resetState();
|
||||
}
|
||||
|
||||
if ([_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["LEFT"], _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["DOWN"], _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["RIGHT"], _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["UP"], _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["BACKSPACE"], _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_10__["ENTER"]].indexOf(event.keyCode) > -1) {
|
||||
// Stop the key event from propagating up to ObserveTyping.startTypingInTextField.
|
||||
event.stopPropagation();
|
||||
@ -1210,6 +1205,7 @@ function (_Component) {
|
||||
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_13__["URLPopover"], {
|
||||
onClickOutside: this.onClickOutside,
|
||||
onClose: this.resetState,
|
||||
focusOnMount: showInput ? 'firstElement' : false,
|
||||
renderSettings: function renderSettings() {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["ToggleControl"], {
|
||||
@ -1413,7 +1409,7 @@ function isValidHref(href) {
|
||||
|
||||
if (!trimmedHref) {
|
||||
return false;
|
||||
} // Does the href start with something that looks like a url protocol?
|
||||
} // Does the href start with something that looks like a URL protocol?
|
||||
|
||||
|
||||
if (/^\S+:/.test(trimmedHref)) {
|
||||
@ -1421,6 +1417,12 @@ function isValidHref(href) {
|
||||
|
||||
if (!Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_1__["isValidProtocol"])(protocol)) {
|
||||
return false;
|
||||
} // Add some extra checks for http(s) URIs, since these are the most common use-case.
|
||||
// This ensures URIs with an http protocol have exactly two forward slashes following the protocol.
|
||||
|
||||
|
||||
if (Object(lodash__WEBPACK_IMPORTED_MODULE_0__["startsWith"])(protocol, 'http') && !/^https?:\/\/[^\/\s]/i.test(trimmedHref)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var authority = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_1__["getAuthority"])(trimmedHref);
|
||||
@ -1443,7 +1445,7 @@ function isValidHref(href) {
|
||||
|
||||
var fragment = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_1__["getFragment"])(trimmedHref);
|
||||
|
||||
if (fragment && !Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_1__["isValidFragment"])(trimmedHref)) {
|
||||
if (fragment && !Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_1__["isValidFragment"])(fragment)) {
|
||||
return false;
|
||||
}
|
||||
} // Validate anchor links.
|
||||
|
2
wp-includes/js/dist/format-library.js.map
vendored
2
wp-includes/js/dist/format-library.js.map
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/format-library.min.js
vendored
4
wp-includes/js/dist/format-library.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/i18n.min.js
vendored
2
wp-includes/js/dist/i18n.min.js
vendored
File diff suppressed because one or more lines are too long
3
wp-includes/js/dist/keycodes.js
vendored
3
wp-includes/js/dist/keycodes.js
vendored
@ -194,7 +194,7 @@ function _toConsumableArray(arr) {
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/keycodes/build-module/index.js ***!
|
||||
\****************************************************************/
|
||||
/*! exports provided: BACKSPACE, TAB, ENTER, ESCAPE, SPACE, LEFT, UP, RIGHT, DOWN, DELETE, F10, ALT, CTRL, COMMAND, SHIFT, rawShortcut, displayShortcutList, displayShortcut, shortcutAriaLabel, isKeyboardEvent */
|
||||
/*! exports provided: BACKSPACE, TAB, ENTER, ESCAPE, SPACE, LEFT, UP, RIGHT, DOWN, DELETE, F10, ALT, CTRL, COMMAND, SHIFT, modifiers, rawShortcut, displayShortcutList, displayShortcut, shortcutAriaLabel, isKeyboardEvent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -214,6 +214,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CTRL", function() { return CTRL; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMMAND", function() { return COMMAND; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHIFT", function() { return SHIFT; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "modifiers", function() { return modifiers; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rawShortcut", function() { return rawShortcut; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "displayShortcutList", function() { return displayShortcutList; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "displayShortcut", function() { return displayShortcut; });
|
||||
|
2
wp-includes/js/dist/keycodes.js.map
vendored
2
wp-includes/js/dist/keycodes.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/keycodes.min.js
vendored
2
wp-includes/js/dist/keycodes.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=325)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},15:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",function(){return e})},19:function(t,n,r){"use strict";var e=r(32);function u(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n<t.length;n++)r[n]=t[n];return r}}(t)||Object(e.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(n,"a",function(){return u})},2:function(t,n){!function(){t.exports=this.lodash}()},32:function(t,n,r){"use strict";function e(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(n,"a",function(){return e})},325:function(t,n,r){"use strict";r.r(n);var e=r(15),u=r(19),c=r(2),o=r(1);function i(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(c.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",function(){return a}),r.d(n,"TAB",function(){return f}),r.d(n,"ENTER",function(){return l}),r.d(n,"ESCAPE",function(){return d}),r.d(n,"SPACE",function(){return b}),r.d(n,"LEFT",function(){return s}),r.d(n,"UP",function(){return j}),r.d(n,"RIGHT",function(){return O}),r.d(n,"DOWN",function(){return p}),r.d(n,"DELETE",function(){return y}),r.d(n,"F10",function(){return v}),r.d(n,"ALT",function(){return h}),r.d(n,"CTRL",function(){return m}),r.d(n,"COMMAND",function(){return g}),r.d(n,"SHIFT",function(){return S}),r.d(n,"rawShortcut",function(){return w}),r.d(n,"displayShortcutList",function(){return C}),r.d(n,"displayShortcut",function(){return P}),r.d(n,"shortcutAriaLabel",function(){return E}),r.d(n,"isKeyboardEvent",function(){return _});var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(c.mapValues)(A,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return Object(u.a)(t(r)).concat([n.toLowerCase()]).join("+")}}),C=Object(c.mapValues)(A,function(t){return function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=o(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(o).reduce(function(t,n){var r=Object(c.get)(f,n,n);return a?Object(u.a)(t).concat([r]):Object(u.a)(t).concat([r,"+"])},[]),d=Object(c.capitalize)(n);return Object(u.a)(l).concat([d])}}),P=Object(c.mapValues)(C,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}}),E=Object(c.mapValues)(A,function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(o.__)("Comma")),Object(e.a)(r,".",Object(o.__)("Period")),Object(e.a)(r,"`",Object(o.__)("Backtick")),r);return Object(u.a)(t(a)).concat([n]).map(function(t){return Object(c.capitalize)(Object(c.get)(l,t,t))}).join(f?" ":" + ")}}),_=Object(c.mapValues)(A,function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every(function(t){return n["".concat(t,"Key")]})&&(r?n.key===r:Object(c.includes)(u,n.key.toLowerCase()))}})}});
|
||||
this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=325)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},15:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",function(){return e})},19:function(t,n,r){"use strict";var e=r(32);function u(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n<t.length;n++)r[n]=t[n];return r}}(t)||Object(e.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(n,"a",function(){return u})},2:function(t,n){!function(){t.exports=this.lodash}()},32:function(t,n,r){"use strict";function e(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(n,"a",function(){return e})},325:function(t,n,r){"use strict";r.r(n);var e=r(15),u=r(19),c=r(2),o=r(1);function i(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(c.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",function(){return a}),r.d(n,"TAB",function(){return f}),r.d(n,"ENTER",function(){return l}),r.d(n,"ESCAPE",function(){return d}),r.d(n,"SPACE",function(){return b}),r.d(n,"LEFT",function(){return s}),r.d(n,"UP",function(){return j}),r.d(n,"RIGHT",function(){return O}),r.d(n,"DOWN",function(){return p}),r.d(n,"DELETE",function(){return y}),r.d(n,"F10",function(){return v}),r.d(n,"ALT",function(){return h}),r.d(n,"CTRL",function(){return m}),r.d(n,"COMMAND",function(){return g}),r.d(n,"SHIFT",function(){return S}),r.d(n,"modifiers",function(){return A}),r.d(n,"rawShortcut",function(){return w}),r.d(n,"displayShortcutList",function(){return C}),r.d(n,"displayShortcut",function(){return P}),r.d(n,"shortcutAriaLabel",function(){return E}),r.d(n,"isKeyboardEvent",function(){return _});var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(c.mapValues)(A,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return Object(u.a)(t(r)).concat([n.toLowerCase()]).join("+")}}),C=Object(c.mapValues)(A,function(t){return function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=o(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(o).reduce(function(t,n){var r=Object(c.get)(f,n,n);return a?Object(u.a)(t).concat([r]):Object(u.a)(t).concat([r,"+"])},[]),d=Object(c.capitalize)(n);return Object(u.a)(l).concat([d])}}),P=Object(c.mapValues)(C,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}}),E=Object(c.mapValues)(A,function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(o.__)("Comma")),Object(e.a)(r,".",Object(o.__)("Period")),Object(e.a)(r,"`",Object(o.__)("Backtick")),r);return Object(u.a)(t(a)).concat([n]).map(function(t){return Object(c.capitalize)(Object(c.get)(l,t,t))}).join(f?" ":" + ")}}),_=Object(c.mapValues)(A,function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every(function(t){return n["".concat(t,"Key")]})&&(r?n.key===r:Object(c.includes)(u,n.key.toLowerCase()))}})}});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
50
wp-includes/js/dist/notices.js
vendored
50
wp-includes/js/dist/notices.js
vendored
@ -328,6 +328,11 @@ regeneratorRuntime.mark(createNotice);
|
||||
* @param {?boolean} options.isDismissible Whether the notice can
|
||||
* be dismissed by user.
|
||||
* Defaults to `true`.
|
||||
* @param {?boolean} options.speak Whether the notice
|
||||
* content should be
|
||||
* announced to screen
|
||||
* readers. Defaults to
|
||||
* `true`.
|
||||
* @param {?Array<WPNoticeAction>} options.actions User actions to be
|
||||
* presented with notice.
|
||||
*/
|
||||
@ -335,6 +340,8 @@ function createNotice() {
|
||||
var status,
|
||||
content,
|
||||
options,
|
||||
_options$speak,
|
||||
speak,
|
||||
_options$isDismissibl,
|
||||
isDismissible,
|
||||
_options$context,
|
||||
@ -343,24 +350,35 @@ function createNotice() {
|
||||
id,
|
||||
_options$actions,
|
||||
actions,
|
||||
__unstableHTML,
|
||||
_args = arguments;
|
||||
|
||||
return regeneratorRuntime.wrap(function createNotice$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
status = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'info';
|
||||
status = _args.length > 0 && _args[0] !== undefined ? _args[0] : _constants.DEFAULT_STATUS;
|
||||
content = _args.length > 1 ? _args[1] : undefined;
|
||||
options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
|
||||
_options$isDismissibl = options.isDismissible, isDismissible = _options$isDismissibl === void 0 ? true : _options$isDismissibl, _options$context = options.context, context = _options$context === void 0 ? _constants.DEFAULT_CONTEXT : _options$context, _options$id = options.id, id = _options$id === void 0 ? (0, _lodash.uniqueId)(context) : _options$id, _options$actions = options.actions, actions = _options$actions === void 0 ? [] : _options$actions;
|
||||
_context.next = 6;
|
||||
_options$speak = options.speak, speak = _options$speak === void 0 ? true : _options$speak, _options$isDismissibl = options.isDismissible, isDismissible = _options$isDismissibl === void 0 ? true : _options$isDismissibl, _options$context = options.context, context = _options$context === void 0 ? _constants.DEFAULT_CONTEXT : _options$context, _options$id = options.id, id = _options$id === void 0 ? (0, _lodash.uniqueId)(context) : _options$id, _options$actions = options.actions, actions = _options$actions === void 0 ? [] : _options$actions, __unstableHTML = options.__unstableHTML; // The supported value shape of content is currently limited to plain text
|
||||
// strings. To avoid setting expectation that e.g. a WPElement could be
|
||||
// supported, cast to a string.
|
||||
|
||||
content = String(content);
|
||||
|
||||
if (!speak) {
|
||||
_context.next = 8;
|
||||
break;
|
||||
}
|
||||
|
||||
_context.next = 8;
|
||||
return {
|
||||
type: 'SPEAK',
|
||||
message: content
|
||||
};
|
||||
|
||||
case 6:
|
||||
_context.next = 8;
|
||||
case 8:
|
||||
_context.next = 10;
|
||||
return {
|
||||
type: 'CREATE_NOTICE',
|
||||
context: context,
|
||||
@ -368,12 +386,13 @@ function createNotice() {
|
||||
id: id,
|
||||
status: status,
|
||||
content: content,
|
||||
__unstableHTML: __unstableHTML,
|
||||
isDismissible: isDismissible,
|
||||
actions: actions
|
||||
}
|
||||
};
|
||||
|
||||
case 8:
|
||||
case 10:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
@ -480,7 +499,7 @@ function removeNotice(id) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.DEFAULT_CONTEXT = void 0;
|
||||
exports.DEFAULT_STATUS = exports.DEFAULT_CONTEXT = void 0;
|
||||
|
||||
/**
|
||||
* Default context to use for notice grouping when not otherwise specified. Its
|
||||
@ -490,7 +509,15 @@ exports.DEFAULT_CONTEXT = void 0;
|
||||
* @type {string}
|
||||
*/
|
||||
var DEFAULT_CONTEXT = 'global';
|
||||
/**
|
||||
* Default notice status.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
|
||||
exports.DEFAULT_CONTEXT = DEFAULT_CONTEXT;
|
||||
var DEFAULT_STATUS = 'info';
|
||||
exports.DEFAULT_STATUS = DEFAULT_STATUS;
|
||||
|
||||
|
||||
/***/ }),
|
||||
@ -677,11 +704,16 @@ var DEFAULT_NOTICES = [];
|
||||
* `info`, `error`, or `warning`. Defaults
|
||||
* to `info`.
|
||||
* @property {string} content Notice message.
|
||||
* @property {string} __unstableHTML Notice message as raw HTML. Intended to
|
||||
* serve primarily for compatibility of
|
||||
* server-rendered notices, and SHOULD NOT
|
||||
* be used for notices. It is subject to
|
||||
* removal without notice.
|
||||
* @property {boolean} isDismissible Whether the notice can be dismissed by
|
||||
* user. Defaults to `true`.
|
||||
* @property {WPNoticeAction[]} actions User actions to present with notice.
|
||||
*
|
||||
* @typedef {Notice}
|
||||
* @typedef {WPNotice}
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -703,7 +735,7 @@ var DEFAULT_NOTICES = [];
|
||||
* @param {Object} state Notices state.
|
||||
* @param {?string} context Optional grouping context.
|
||||
*
|
||||
* @return {Notice[]} Array of notices.
|
||||
* @return {WPNotice[]} Array of notices.
|
||||
*/
|
||||
|
||||
function getNotices(state) {
|
||||
|
2
wp-includes/js/dist/notices.js.map
vendored
2
wp-includes/js/dist/notices.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/notices.min.js
vendored
2
wp-includes/js/dist/notices.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/nux.js.map
vendored
2
wp-includes/js/dist/nux.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/nux.min.js
vendored
2
wp-includes/js/dist/nux.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/plugins.min.js
vendored
2
wp-includes/js/dist/plugins.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/redux-routine.min.js
vendored
2
wp-includes/js/dist/redux-routine.min.js
vendored
File diff suppressed because one or more lines are too long
256
wp-includes/js/dist/rich-text.js
vendored
256
wp-includes/js/dist/rich-text.js
vendored
@ -578,10 +578,6 @@ function toFormat(_ref) {
|
||||
};
|
||||
}
|
||||
|
||||
if (formatType.__experimentalCreatePrepareEditableTree) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!attributes) {
|
||||
return {
|
||||
type: formatType.name
|
||||
@ -1809,27 +1805,51 @@ function normaliseFormats(_ref) {
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerFormatType", function() { return registerFormatType; });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
|
||||
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks");
|
||||
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);
|
||||
/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! memize */ "./node_modules/memize/index.js");
|
||||
/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
||||
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__);
|
||||
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks");
|
||||
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_8__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Shared reference to an empty array for cases where it is important to avoid
|
||||
* returning a new array reference on every invocation, as in a connected or
|
||||
* other pure component which performs `shouldComponentUpdate` check on props.
|
||||
* This should be used as a last resort, since the normalized data should be
|
||||
* maintained by the reducer result in state.
|
||||
*
|
||||
* @type {Array}
|
||||
*/
|
||||
|
||||
var EMPTY_ARRAY = [];
|
||||
/**
|
||||
* Registers a new format provided a unique name and an object defining its
|
||||
* behavior.
|
||||
@ -1856,7 +1876,7 @@ function registerFormatType(name, settings) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["select"])('core/rich-text').getFormatType(settings.name)) {
|
||||
if (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["select"])('core/rich-text').getFormatType(settings.name)) {
|
||||
window.console.error('Format "' + settings.name + '" is already registered.');
|
||||
return;
|
||||
}
|
||||
@ -1877,14 +1897,14 @@ function registerFormatType(name, settings) {
|
||||
}
|
||||
|
||||
if (settings.className === null) {
|
||||
var formatTypeForBareElement = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["select"])('core/rich-text').getFormatTypeForBareElement(settings.tagName);
|
||||
var formatTypeForBareElement = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["select"])('core/rich-text').getFormatTypeForBareElement(settings.tagName);
|
||||
|
||||
if (formatTypeForBareElement) {
|
||||
window.console.error("Format \"".concat(formatTypeForBareElement.name, "\" is already registered to handle bare tag name \"").concat(settings.tagName, "\"."));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var formatTypeForClassName = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["select"])('core/rich-text').getFormatTypeForClassName(settings.className);
|
||||
var formatTypeForClassName = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["select"])('core/rich-text').getFormatTypeForClassName(settings.className);
|
||||
|
||||
if (formatTypeForClassName) {
|
||||
window.console.error("Format \"".concat(formatTypeForClassName.name, "\" is already registered to handle class name \"").concat(settings.className, "\"."));
|
||||
@ -1907,25 +1927,76 @@ function registerFormatType(name, settings) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["dispatch"])('core/rich-text').addFormatTypes(settings);
|
||||
Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["dispatch"])('core/rich-text').addFormatTypes(settings);
|
||||
var getFunctionStackMemoized = memize__WEBPACK_IMPORTED_MODULE_6___default()(function () {
|
||||
var previousStack = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : EMPTY_ARRAY;
|
||||
var newFunction = arguments.length > 1 ? arguments[1] : undefined;
|
||||
return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(previousStack).concat([newFunction]);
|
||||
});
|
||||
|
||||
if (settings.__experimentalCreatePrepareEditableTree && settings.__experimentalGetPropsForEditableTreePreparation) {
|
||||
Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__["addFilter"])('experimentalRichText', name, function (OriginalComponent) {
|
||||
return Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withSelect"])(function (sel, _ref) {
|
||||
if (settings.__experimentalGetPropsForEditableTreePreparation) {
|
||||
Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_8__["addFilter"])('experimentalRichText', name, function (OriginalComponent) {
|
||||
var Component = OriginalComponent;
|
||||
|
||||
if (settings.__experimentalCreatePrepareEditableTree || settings.__experimentalCreateFormatToValue || settings.__experimentalCreateValueToFormat) {
|
||||
Component = function Component(props) {
|
||||
var additionalProps = {};
|
||||
|
||||
if (settings.__experimentalCreatePrepareEditableTree) {
|
||||
additionalProps.prepareEditableTree = getFunctionStackMemoized(props.prepareEditableTree, settings.__experimentalCreatePrepareEditableTree(props["format_".concat(name)], {
|
||||
richTextIdentifier: props.identifier,
|
||||
blockClientId: props.clientId
|
||||
}));
|
||||
}
|
||||
|
||||
if (settings.__experimentalCreateOnChangeEditableValue) {
|
||||
var dispatchProps = Object.keys(props).reduce(function (accumulator, propKey) {
|
||||
var propValue = props[propKey];
|
||||
var keyPrefix = "format_".concat(name, "_dispatch_");
|
||||
|
||||
if (propKey.startsWith(keyPrefix)) {
|
||||
var realKey = propKey.replace(keyPrefix, '');
|
||||
accumulator[realKey] = propValue;
|
||||
}
|
||||
|
||||
return accumulator;
|
||||
}, {});
|
||||
additionalProps.onChangeEditableValue = getFunctionStackMemoized(props.onChangeEditableValue, settings.__experimentalCreateOnChangeEditableValue(Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, props["format_".concat(name)], dispatchProps), {
|
||||
richTextIdentifier: props.identifier,
|
||||
blockClientId: props.clientId
|
||||
}));
|
||||
}
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(OriginalComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, additionalProps));
|
||||
};
|
||||
}
|
||||
|
||||
var hocs = [Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["withSelect"])(function (sel, _ref) {
|
||||
var clientId = _ref.clientId,
|
||||
identifier = _ref.identifier;
|
||||
return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, "format_".concat(name), settings.__experimentalGetPropsForEditableTreePreparation(sel, {
|
||||
return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "format_".concat(name), settings.__experimentalGetPropsForEditableTreePreparation(sel, {
|
||||
richTextIdentifier: identifier,
|
||||
blockClientId: clientId
|
||||
}));
|
||||
})(function (props) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(OriginalComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
||||
prepareEditableTree: Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(props.prepareEditableTree || []).concat([settings.__experimentalCreatePrepareEditableTree(props["format_".concat(name)], {
|
||||
richTextIdentifier: props.identifier,
|
||||
blockClientId: props.clientId
|
||||
})])
|
||||
})];
|
||||
|
||||
if (settings.__experimentalGetPropsForEditableTreeChangeHandler) {
|
||||
hocs.push(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_7__["withDispatch"])(function (disp, _ref3) {
|
||||
var clientId = _ref3.clientId,
|
||||
identifier = _ref3.identifier;
|
||||
|
||||
var dispatchProps = settings.__experimentalGetPropsForEditableTreeChangeHandler(disp, {
|
||||
richTextIdentifier: identifier,
|
||||
blockClientId: clientId
|
||||
});
|
||||
|
||||
return Object(lodash__WEBPACK_IMPORTED_MODULE_5__["mapKeys"])(dispatchProps, function (value, key) {
|
||||
return "format_".concat(name, "_dispatch_").concat(key);
|
||||
});
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__["compose"])(hocs)(Component);
|
||||
});
|
||||
}
|
||||
|
||||
@ -3294,6 +3365,128 @@ function unregisterFormatType(name) {
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/memize/index.js":
|
||||
/*!**************************************!*\
|
||||
!*** ./node_modules/memize/index.js ***!
|
||||
\**************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = function memize( fn, options ) {
|
||||
var size = 0,
|
||||
maxSize, head, tail;
|
||||
|
||||
if ( options && options.maxSize ) {
|
||||
maxSize = options.maxSize;
|
||||
}
|
||||
|
||||
function memoized( /* ...args */ ) {
|
||||
var node = head,
|
||||
len = arguments.length,
|
||||
args, i;
|
||||
|
||||
searchCache: while ( node ) {
|
||||
// Perform a shallow equality test to confirm that whether the node
|
||||
// under test is a candidate for the arguments passed. Two arrays
|
||||
// are shallowly equal if their length matches and each entry is
|
||||
// strictly equal between the two sets. Avoid abstracting to a
|
||||
// function which could incur an arguments leaking deoptimization.
|
||||
|
||||
// Check whether node arguments match arguments length
|
||||
if ( node.args.length !== arguments.length ) {
|
||||
node = node.next;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check whether node arguments match arguments values
|
||||
for ( i = 0; i < len; i++ ) {
|
||||
if ( node.args[ i ] !== arguments[ i ] ) {
|
||||
node = node.next;
|
||||
continue searchCache;
|
||||
}
|
||||
}
|
||||
|
||||
// At this point we can assume we've found a match
|
||||
|
||||
// Surface matched node to head if not already
|
||||
if ( node !== head ) {
|
||||
// As tail, shift to previous. Must only shift if not also
|
||||
// head, since if both head and tail, there is no previous.
|
||||
if ( node === tail ) {
|
||||
tail = node.prev;
|
||||
}
|
||||
|
||||
// Adjust siblings to point to each other. If node was tail,
|
||||
// this also handles new tail's empty `next` assignment.
|
||||
node.prev.next = node.next;
|
||||
if ( node.next ) {
|
||||
node.next.prev = node.prev;
|
||||
}
|
||||
|
||||
node.next = head;
|
||||
node.prev = null;
|
||||
head.prev = node;
|
||||
head = node;
|
||||
}
|
||||
|
||||
// Return immediately
|
||||
return node.val;
|
||||
}
|
||||
|
||||
// No cached value found. Continue to insertion phase:
|
||||
|
||||
// Create a copy of arguments (avoid leaking deoptimization)
|
||||
args = new Array( len );
|
||||
for ( i = 0; i < len; i++ ) {
|
||||
args[ i ] = arguments[ i ];
|
||||
}
|
||||
|
||||
node = {
|
||||
args: args,
|
||||
|
||||
// Generate the result from original function
|
||||
val: fn.apply( null, args )
|
||||
};
|
||||
|
||||
// Don't need to check whether node is already head, since it would
|
||||
// have been returned above already if it was
|
||||
|
||||
// Shift existing head down list
|
||||
if ( head ) {
|
||||
head.prev = node;
|
||||
node.next = head;
|
||||
} else {
|
||||
// If no head, follows that there's no tail (at initial or reset)
|
||||
tail = node;
|
||||
}
|
||||
|
||||
// Trim tail if we're reached max size and are pending cache insertion
|
||||
if ( size === maxSize ) {
|
||||
tail = tail.prev;
|
||||
tail.next = null;
|
||||
} else {
|
||||
size++;
|
||||
}
|
||||
|
||||
head = node;
|
||||
|
||||
return node.val;
|
||||
}
|
||||
|
||||
memoized.clear = function() {
|
||||
head = null;
|
||||
tail = null;
|
||||
size = 0;
|
||||
};
|
||||
|
||||
if ( false ) {}
|
||||
|
||||
return memoized;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/rememo/es/rememo.js":
|
||||
@ -3581,6 +3774,17 @@ function isShallowEqual( a, b, fromIndex ) {
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/compose":
|
||||
/*!******************************************!*\
|
||||
!*** external {"this":["wp","compose"]} ***!
|
||||
\******************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["compose"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/data":
|
||||
|
2
wp-includes/js/dist/rich-text.js.map
vendored
2
wp-includes/js/dist/rich-text.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/rich-text.min.js
vendored
2
wp-includes/js/dist/rich-text.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/shortcode.min.js
vendored
2
wp-includes/js/dist/shortcode.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.shortcode=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=297)}({2:function(t,e){!function(){t.exports=this.lodash}()},297:function(t,e,n){"use strict";n.r(e),n.d(e,"next",function(){return u}),n.d(e,"replace",function(){return o}),n.d(e,"string",function(){return c}),n.d(e,"regexp",function(){return s}),n.d(e,"attrs",function(){return a}),n.d(e,"fromMatch",function(){return f});var r=n(2),i=n(53);function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){var r=arguments;return e.replace(s(t),function(t,e,i,u,o,c,s,a){if("["===e&&"]"===a)return t;var l=n(f(r));return l?e+l+a:t})}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()(function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}});function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)(function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,function(t,n){e.set(n,t)}))},{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,function(e,n){t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},53:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o<s;o++)if(c.args[o]!==arguments[o]){c=c.next;continue t}return c!==r&&(c===i&&(i=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(e=new Array(s),o=0;o<s;o++)e[o]=arguments[o];return c={args:e,val:t.apply(null,e)},r?(r.prev=c,c.next=r):i=c,u===n?(i=i.prev).next=null:u++,r=c,c.val}return e&&e.maxSize&&(n=e.maxSize),o.clear=function(){r=null,i=null,u=0},o}}});
|
||||
this.wp=this.wp||{},this.wp.shortcode=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=297)}({2:function(t,e){!function(){t.exports=this.lodash}()},297:function(t,e,n){"use strict";n.r(e),n.d(e,"next",function(){return u}),n.d(e,"replace",function(){return o}),n.d(e,"string",function(){return c}),n.d(e,"regexp",function(){return s}),n.d(e,"attrs",function(){return a}),n.d(e,"fromMatch",function(){return f});var r=n(2),i=n(41);function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){var r=arguments;return e.replace(s(t),function(t,e,i,u,o,c,s,a){if("["===e&&"]"===a)return t;var l=n(f(r));return l?e+l+a:t})}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()(function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}});function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)(function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,function(t,n){e.set(n,t)}))},{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,function(e,n){t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},41:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o<s;o++)if(c.args[o]!==arguments[o]){c=c.next;continue t}return c!==r&&(c===i&&(i=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(e=new Array(s),o=0;o<s;o++)e[o]=arguments[o];return c={args:e,val:t.apply(null,e)},r?(r.prev=c,c.next=r):i=c,u===n?(i=i.prev).next=null:u++,r=c,c.val}return e&&e.maxSize&&(n=e.maxSize),o.clear=function(){r=null,i=null,u=0},o}}});
|
47
wp-includes/js/dist/token-list.js
vendored
47
wp-includes/js/dist/token-list.js
vendored
@ -194,8 +194,48 @@ function () {
|
||||
|
||||
|
||||
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(TokenList, [{
|
||||
key: "item",
|
||||
key: "toString",
|
||||
|
||||
/**
|
||||
* Returns the stringified form of the TokenList.
|
||||
*
|
||||
* @link https://dom.spec.whatwg.org/#DOMTokenList-stringification-behavior
|
||||
* @link https://www.ecma-international.org/ecma-262/9.0/index.html#sec-tostring
|
||||
*
|
||||
* @return {string} Token set as string.
|
||||
*/
|
||||
value: function toString() {
|
||||
return this.value;
|
||||
}
|
||||
/**
|
||||
* Returns an iterator for the TokenList, iterating items of the set.
|
||||
*
|
||||
* @link https://dom.spec.whatwg.org/#domtokenlist
|
||||
*
|
||||
* @return {Generator} TokenList iterator.
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: Symbol.iterator,
|
||||
value:
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(function value() {
|
||||
return regeneratorRuntime.wrap(function value$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
return _context.delegateYield(this._valueAsArray, "t0", 1);
|
||||
|
||||
case 1:
|
||||
return _context.abrupt("return", _context.t0);
|
||||
|
||||
case 2:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, value, this);
|
||||
})
|
||||
/**
|
||||
* Returns the token with index `index`.
|
||||
*
|
||||
@ -205,6 +245,9 @@ function () {
|
||||
*
|
||||
* @return {?string} Token at index.
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "item",
|
||||
value: function item(index) {
|
||||
return this._valueAsArray[index];
|
||||
}
|
||||
@ -377,5 +420,5 @@ function () {
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/******/ })["default"];
|
||||
//# sourceMappingURL=token-list.js.map
|
2
wp-includes/js/dist/token-list.js.map
vendored
2
wp-includes/js/dist/token-list.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/token-list.min.js
vendored
2
wp-includes/js/dist/token-list.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.tokenList=function(t){var e={};function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)n.d(r,u,function(e){return t[e]}.bind(null,u));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=298)}({10:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},2:function(t,e){!function(){t.exports=this.lodash}()},298:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return o});var r=n(10),u=n(9),i=n(2),o=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(r.a)(this,t),this.value=n,["entries","forEach","keys","values"].forEach(function(t){e[t]=function(){var e;return(e=this._valueAsArray)[t].apply(e,arguments)}.bind(e)})}return Object(u.a)(t,[{key:"item",value:function(t){return this._valueAsArray[t]}},{key:"contains",value:function(t){return-1!==this._valueAsArray.indexOf(t)}},{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.value+=" "+e.join(" ")}},{key:"remove",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.value=i.without.apply(void 0,[this._valueAsArray].concat(e)).join(" ")}},{key:"toggle",value:function(t,e){return void 0===e&&(e=!this.contains(t)),e?this.add(t):this.remove(t),e}},{key:"replace",value:function(t,e){return!!this.contains(t)&&(this.remove(t),this.add(e),!0)}},{key:"supports",value:function(){return!0}},{key:"value",get:function(){return this._currentValue},set:function(t){t=String(t),this._valueAsArray=Object(i.uniq)(Object(i.compact)(t.split(/\s+/g))),this._currentValue=this._valueAsArray.join(" ")}},{key:"length",get:function(){return this._valueAsArray.length}}]),t}()},9:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",function(){return u})}});
|
||||
this.wp=this.wp||{},this.wp.tokenList=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=298)}({10:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},2:function(e,t){!function(){e.exports=this.lodash}()},298:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return o});var r=n(10),u=n(9),i=n(2),o=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(r.a)(this,e),this.value=n,["entries","forEach","keys","values"].forEach(function(e){t[e]=function(){var t;return(t=this._valueAsArray)[e].apply(t,arguments)}.bind(t)})}return Object(u.a)(e,[{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._valueAsArray,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}},e,this)})},{key:"item",value:function(e){return this._valueAsArray[e]}},{key:"contains",value:function(e){return-1!==this._valueAsArray.indexOf(e)}},{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.value+=" "+t.join(" ")}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.value=i.without.apply(void 0,[this._valueAsArray].concat(t)).join(" ")}},{key:"toggle",value:function(e,t){return void 0===t&&(t=!this.contains(e)),t?this.add(e):this.remove(e),t}},{key:"replace",value:function(e,t){return!!this.contains(e)&&(this.remove(e),this.add(t),!0)}},{key:"supports",value:function(){return!0}},{key:"value",get:function(){return this._currentValue},set:function(e){e=String(e),this._valueAsArray=Object(i.uniq)(Object(i.compact)(e.split(/\s+/g))),this._currentValue=this._valueAsArray.join(" ")}},{key:"length",get:function(){return this._valueAsArray.length}}]),e}()},9:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return u})}}).default;
|
6
wp-includes/js/dist/url.js
vendored
6
wp-includes/js/dist/url.js
vendored
@ -217,7 +217,7 @@ function getProtocol(url) {
|
||||
*
|
||||
* @param {string} protocol The url protocol.
|
||||
*
|
||||
* @return {boolean} True if the argument is a valid protocol (e.g. http://, tel:).
|
||||
* @return {boolean} True if the argument is a valid protocol (e.g. http:, tel:).
|
||||
*/
|
||||
|
||||
function isValidProtocol(protocol) {
|
||||
@ -225,7 +225,7 @@ function isValidProtocol(protocol) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return /^[a-z\-.\+]+[0-9]*:(?:\/\/)?\/?$/i.test(protocol);
|
||||
return /^[a-z\-.\+]+[0-9]*:$/i.test(protocol);
|
||||
}
|
||||
/**
|
||||
* Returns the authority part of the URL.
|
||||
@ -326,7 +326,7 @@ function isValidQueryString(queryString) {
|
||||
*/
|
||||
|
||||
function getFragment(url) {
|
||||
var matches = /^\S+(#[^\s\?]*)/.exec(url);
|
||||
var matches = /^\S+?(#[^\s\?]*)/.exec(url);
|
||||
|
||||
if (matches) {
|
||||
return matches[1];
|
||||
|
2
wp-includes/js/dist/url.js.map
vendored
2
wp-includes/js/dist/url.js.map
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/url.min.js
vendored
2
wp-includes/js/dist/url.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/viewport.min.js
vendored
2
wp-includes/js/dist/viewport.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.viewport=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=316)}({19:function(t,e,r){"use strict";var n=r(32);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",function(){return o})},2:function(t,e){!function(){t.exports=this.lodash}()},316:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"setIsMatching",function(){return a});var o={};r.r(o),r.d(o,"isViewportMatch",function(){return s});var i=r(2),c=r(5);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}var f=r(19);function s(t,e){return!!t[Object(i.takeRight)([">="].concat(Object(f.a)(e.split(" "))),2).join(" ")]}Object(c.registerStore)("core/viewport",{reducer:u,actions:n,selectors:o});var p=r(6),d=function(t){return Object(p.createHigherOrderComponent)(Object(c.withSelect)(function(e){return Object(i.mapValues)(t,function(t){return e("core/viewport").isViewportMatch(t)})}),"withViewportMatch")},l=function(t){return Object(p.createHigherOrderComponent)(Object(p.compose)([d({isViewportMatch:t}),Object(p.ifCondition)(function(t){return t.isViewportMatch})]),"ifViewportMatches")};r.d(e,"ifViewportMatches",function(){return l}),r.d(e,"withViewportMatch",function(){return d});var h={"<":"max-width",">=":"min-width"},b=Object(i.debounce)(function(){var t=Object(i.mapValues)(w,function(t){return t.matches});Object(c.dispatch)("core/viewport").setIsMatching(t)},{leading:!0}),w=Object(i.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},function(t,e,r){return Object(i.forEach)(h,function(n,o){var i=window.matchMedia("(".concat(n,": ").concat(e,"px)"));i.addListener(b);var c=[o,r].join(" ");t[c]=i}),t},{});window.addEventListener("orientationchange",b),b()},32:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",function(){return n})},5:function(t,e){!function(){t.exports=this.wp.data}()},6:function(t,e){!function(){t.exports=this.wp.compose}()}});
|
||||
this.wp=this.wp||{},this.wp.viewport=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=316)}({19:function(t,e,r){"use strict";var n=r(32);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",function(){return o})},2:function(t,e){!function(){t.exports=this.lodash}()},316:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"setIsMatching",function(){return a});var o={};r.r(o),r.d(o,"isViewportMatch",function(){return s});var i=r(2),c=r(5);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}var f=r(19);function s(t,e){return!!t[Object(i.takeRight)([">="].concat(Object(f.a)(e.split(" "))),2).join(" ")]}Object(c.registerStore)("core/viewport",{reducer:u,actions:n,selectors:o});var p=r(7),d=function(t){return Object(p.createHigherOrderComponent)(Object(c.withSelect)(function(e){return Object(i.mapValues)(t,function(t){return e("core/viewport").isViewportMatch(t)})}),"withViewportMatch")},l=function(t){return Object(p.createHigherOrderComponent)(Object(p.compose)([d({isViewportMatch:t}),Object(p.ifCondition)(function(t){return t.isViewportMatch})]),"ifViewportMatches")};r.d(e,"ifViewportMatches",function(){return l}),r.d(e,"withViewportMatch",function(){return d});var h={"<":"max-width",">=":"min-width"},b=Object(i.debounce)(function(){var t=Object(i.mapValues)(w,function(t){return t.matches});Object(c.dispatch)("core/viewport").setIsMatching(t)},{leading:!0}),w=Object(i.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},function(t,e,r){return Object(i.forEach)(h,function(n,o){var i=window.matchMedia("(".concat(n,": ").concat(e,"px)"));i.addListener(b);var c=[o,r].join(" ");t[c]=i}),t},{});window.addEventListener("orientationchange",b),b()},32:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",function(){return n})},5:function(t,e){!function(){t.exports=this.wp.data}()},7:function(t,e){!function(){t.exports=this.wp.compose}()}});
|
@ -74,6 +74,8 @@ function wp_register_tinymce_scripts( &$scripts, $force_uncompressed = false ) {
|
||||
* @param WP_Scripts $scripts WP_Scripts object.
|
||||
*/
|
||||
function wp_default_packages_vendor( &$scripts ) {
|
||||
global $wp_locale;
|
||||
|
||||
$dev_suffix = wp_scripts_get_suffix( 'dev' );
|
||||
|
||||
$vendor_scripts = array(
|
||||
@ -100,9 +102,8 @@ function wp_default_packages_vendor( &$scripts ) {
|
||||
}
|
||||
|
||||
$scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );
|
||||
did_action( 'init' ) && $scripts->add_data(
|
||||
did_action( 'init' ) && $scripts->add_inline_script(
|
||||
'wp-polyfill',
|
||||
'data',
|
||||
wp_get_script_polyfill(
|
||||
$scripts,
|
||||
array(
|
||||
@ -110,11 +111,40 @@ function wp_default_packages_vendor( &$scripts ) {
|
||||
'document.contains' => 'wp-polyfill-node-contains',
|
||||
'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata',
|
||||
'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest',
|
||||
)
|
||||
),
|
||||
'after'
|
||||
)
|
||||
);
|
||||
|
||||
did_action( 'init' ) && $scripts->add_inline_script( 'lodash', 'window.lodash = _.noConflict();' );
|
||||
|
||||
did_action( 'init' ) && $scripts->add_inline_script(
|
||||
'moment',
|
||||
sprintf(
|
||||
"moment.locale( '%s', %s );",
|
||||
get_user_locale(),
|
||||
wp_json_encode(
|
||||
array(
|
||||
'months' => array_values( $wp_locale->month ),
|
||||
'monthsShort' => array_values( $wp_locale->month_abbrev ),
|
||||
'weekdays' => array_values( $wp_locale->weekday ),
|
||||
'weekdaysShort' => array_values( $wp_locale->weekday_abbrev ),
|
||||
'week' => array(
|
||||
'dow' => (int) get_option( 'start_of_week', 0 ),
|
||||
),
|
||||
'longDateFormat' => array(
|
||||
'LT' => get_option( 'time_format', __( 'g:i a', 'default' ) ),
|
||||
'LTS' => null,
|
||||
'L' => null,
|
||||
'LL' => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
|
||||
'LLL' => __( 'F j, Y g:i a', 'default' ),
|
||||
'LLLL' => null,
|
||||
),
|
||||
)
|
||||
)
|
||||
),
|
||||
'after'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -221,7 +251,6 @@ function wp_default_packages_scripts( &$scripts ) {
|
||||
'wp-a11y',
|
||||
'wp-api-fetch',
|
||||
'wp-compose',
|
||||
'wp-deprecated',
|
||||
'wp-dom',
|
||||
'wp-element',
|
||||
'wp-hooks',
|
||||
@ -272,6 +301,7 @@ function wp_default_packages_scripts( &$scripts ) {
|
||||
'wp-embed',
|
||||
'wp-i18n',
|
||||
'wp-keycodes',
|
||||
'wp-notices',
|
||||
'wp-nux',
|
||||
'wp-plugins',
|
||||
'wp-polyfill',
|
||||
@ -344,6 +374,7 @@ function wp_default_packages_scripts( &$scripts ) {
|
||||
),
|
||||
'nux' => array(
|
||||
'wp-element',
|
||||
'lodash',
|
||||
'wp-components',
|
||||
'wp-compose',
|
||||
'wp-data',
|
||||
@ -355,7 +386,6 @@ function wp_default_packages_scripts( &$scripts ) {
|
||||
'redux-routine' => array( 'wp-polyfill' ),
|
||||
'rich-text' => array(
|
||||
'lodash',
|
||||
'wp-blocks',
|
||||
'wp-data',
|
||||
'wp-escape-html',
|
||||
'wp-polyfill',
|
||||
@ -1688,11 +1718,13 @@ function wp_default_styles( &$styles ) {
|
||||
$fonts_url = '';
|
||||
|
||||
/*
|
||||
* Translators: If there are characters in your language that are not supported
|
||||
* by Noto Serif, translate this to 'off'. Do not translate into your own language.
|
||||
* Translators: Use this to specify the proper Google Font name and variants
|
||||
* to load that is supported by your language. Do not translate.
|
||||
* Set to 'off' to disable loading.
|
||||
*/
|
||||
if ( 'off' !== _x( 'on', 'Noto Serif font: on or off' ) ) {
|
||||
$fonts_url = 'https://fonts.googleapis.com/css?family=Noto+Serif%3A400%2C400i%2C700%2C700i';
|
||||
$font_family = _x( 'Noto Serif:400,400i,700,700i', 'Google Font Name and Variants' );
|
||||
if ( 'off' !== $font_family ) {
|
||||
$fonts_url = 'https://fonts.googleapis.com/css?family=' . urlencode( $font_family );
|
||||
}
|
||||
$styles->add( 'wp-editor-font', $fonts_url );
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-beta5-43918';
|
||||
$wp_version = '5.0-beta5-43919';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user