mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Block Editor: Update @wordpress
dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages. - Upgrades React from 16.5.2 to 16.6.3. - Adds a missing `wp-date` dependency to the editor script. - Updates changed dependencies in `script-loader.php`. - Fixes undefined notices in some blocks. - Removes incorrect `gutenberg` textdomain. Merges [43891], [43903], and [43919] to trunk. Props atimmer, aduth, youknowriad, danielbachhuber. See #45145. Built from https://develop.svn.wordpress.org/trunk@44262 git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9d7aa3436e
commit
4f86a03258
@ -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', 'default' );
|
||||
|
||||
/** 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', 'default' );
|
||||
break;
|
||||
case 'monthly':
|
||||
$label = __( 'Select Month', 'gutenberg' );
|
||||
$label = __( 'Select Month', 'default' );
|
||||
break;
|
||||
case 'daily':
|
||||
$label = __( 'Select Day', 'gutenberg' );
|
||||
$label = __( 'Select Day', 'default' );
|
||||
break;
|
||||
case 'weekly':
|
||||
$label = __( 'Select Week', 'gutenberg' );
|
||||
$label = __( 'Select Week', 'default' );
|
||||
break;
|
||||
default:
|
||||
$label = __( 'Select Post', 'gutenberg' );
|
||||
$label = __( 'Select Post', 'default' );
|
||||
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.', 'default' )
|
||||
);
|
||||
} 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', 'default' );
|
||||
$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)', 'default' );
|
||||
}
|
||||
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', 'default' ),
|
||||
$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.', 'default' )
|
||||
);
|
||||
|
||||
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(
|
||||
$args = array(
|
||||
'numberposts' => $attributes['postsToShow'],
|
||||
'post_status' => 'publish',
|
||||
'order' => $attributes['order'],
|
||||
'orderby' => $attributes['orderBy'],
|
||||
'category' => $attributes['categories'],
|
||||
)
|
||||
);
|
||||
|
||||
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)', 'default' );
|
||||
}
|
||||
$list_items_markup .= sprintf(
|
||||
'<li><a href="%1$s">%2$s</a>',
|
||||
|
@ -269,13 +269,11 @@ class WP_Block_Parser {
|
||||
*/
|
||||
if ( 0 === $stack_depth ) {
|
||||
if ( isset( $leading_html_start ) ) {
|
||||
$this->output[] = (array) self::freeform(
|
||||
substr(
|
||||
$this->output[] = (array) self::freeform( substr(
|
||||
$this->document,
|
||||
$leading_html_start,
|
||||
$start_offset - $leading_html_start
|
||||
)
|
||||
);
|
||||
) );
|
||||
}
|
||||
|
||||
$this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() );
|
||||
@ -294,16 +292,13 @@ class WP_Block_Parser {
|
||||
|
||||
case 'block-opener':
|
||||
// track all newly-opened blocks on the stack
|
||||
array_push(
|
||||
$this->stack,
|
||||
new WP_Block_Parser_Frame(
|
||||
array_push( $this->stack, new WP_Block_Parser_Frame(
|
||||
new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
|
||||
$start_offset,
|
||||
$token_length,
|
||||
$start_offset + $token_length,
|
||||
$leading_html_start
|
||||
)
|
||||
);
|
||||
) );
|
||||
$this->offset = $start_offset + $token_length;
|
||||
return true;
|
||||
|
||||
@ -504,13 +499,11 @@ class WP_Block_Parser {
|
||||
}
|
||||
|
||||
if ( isset( $stack_top->leading_html_start ) ) {
|
||||
$this->output[] = (array) self::freeform(
|
||||
substr(
|
||||
$this->output[] = (array) self::freeform( substr(
|
||||
$this->document,
|
||||
$stack_top->leading_html_start,
|
||||
$stack_top->token_start - $stack_top->leading_html_start
|
||||
)
|
||||
);
|
||||
) );
|
||||
}
|
||||
|
||||
$this->output[] = (array) $stack_top->block;
|
||||
|
129
wp-includes/css/dist/block-library/editor-rtl.css
vendored
129
wp-includes/css/dist/block-library/editor-rtl.css
vendored
@ -28,39 +28,12 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.block-editor ul.wp-block-archives {
|
||||
padding-right: 2.5em; }
|
||||
|
||||
.wp-block-audio {
|
||||
margin: 0; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%; }
|
||||
|
||||
.editor-block-list__block[data-type="core/button"][data-align="center"] {
|
||||
text-align: center; }
|
||||
|
||||
@ -78,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 {
|
||||
@ -94,11 +69,11 @@
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
width: 380px; }
|
||||
width: 374px; }
|
||||
.block-library-button__inline-link .editor-url-input {
|
||||
width: auto; }
|
||||
.block-library-button__inline-link .editor-url-input__suggestions {
|
||||
width: 308px;
|
||||
width: 302px;
|
||||
z-index: 6; }
|
||||
.block-library-button__inline-link > .dashicon {
|
||||
width: 36px; }
|
||||
@ -174,70 +149,63 @@
|
||||
.wp-block-columns .editor-block-list__layout .editor-block-list__block {
|
||||
max-width: none; }
|
||||
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns .editor-block-list__layout:first-child {
|
||||
margin-right: 30px; }
|
||||
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns .editor-block-list__layout:last-child {
|
||||
margin-left: 30px; }
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks {
|
||||
padding-right: 14px;
|
||||
padding-left: 14px; }
|
||||
@media (min-width: 600px) {
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks {
|
||||
padding-right: 60px;
|
||||
padding-left: 60px; } }
|
||||
|
||||
.wp-block-columns {
|
||||
display: block; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout {
|
||||
display: flex;
|
||||
flex-wrap: wrap; }
|
||||
@media (min-width: 782px) {
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout {
|
||||
flex-wrap: nowrap; } }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
margin-top: -28px;
|
||||
margin-bottom: -28px;
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
margin-right: -14px;
|
||||
margin-left: -14px;
|
||||
min-width: 0;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
flex-basis: 100%; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div > .editor-inner-blocks {
|
||||
margin-top: -28px;
|
||||
margin-bottom: -28px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit::before {
|
||||
right: 0;
|
||||
left: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
|
||||
margin-right: -1px; }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] {
|
||||
padding-right: 14px;
|
||||
padding-left: 14px;
|
||||
margin-left: inherit;
|
||||
margin-right: 0; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
|
||||
top: 36px;
|
||||
transform: translateY(-38px);
|
||||
margin-right: -17px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit::before {
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-list__breadcrumb {
|
||||
top: 0;
|
||||
left: 0; } }
|
||||
margin-right: 14px;
|
||||
margin-left: 14px; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] {
|
||||
flex-basis: 50%;
|
||||
flex-grow: 0; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit {
|
||||
padding-right: 16px;
|
||||
padding-left: 16px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(odd) > .editor-block-list__block-edit {
|
||||
padding-right: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(even) > .editor-block-list__block-edit {
|
||||
padding-left: 0; } }
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) > .editor-block-list__block-edit {
|
||||
padding-right: 16px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child) > .editor-block-list__block-edit {
|
||||
padding-left: 16px; } }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(odd) {
|
||||
margin-left: 32px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(even) {
|
||||
margin-right: 32px; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) {
|
||||
margin-right: 32px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child) {
|
||||
margin-left: 32px; } }
|
||||
|
||||
.wp-block-columns [data-type="core/column"] {
|
||||
pointer-events: none; }
|
||||
@ -246,7 +214,7 @@
|
||||
.wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb {
|
||||
display: none; }
|
||||
|
||||
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .editor-inner-blocks {
|
||||
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .editor-block-list__layout > * {
|
||||
pointer-events: all; }
|
||||
|
||||
.wp-block-cover-image .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
@ -275,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;
|
||||
@ -296,7 +266,7 @@
|
||||
align-items: center;
|
||||
margin-bottom: 0; }
|
||||
.wp-block-file.is-transient {
|
||||
animation: loading_fade 1.6s ease-in-out infinite; }
|
||||
animation: edit-post__loading-fade-animation 1.6s ease-in-out infinite; }
|
||||
.wp-block-file .wp-block-file__content-wrapper {
|
||||
flex-grow: 1; }
|
||||
.wp-block-file .wp-block-file__textlink {
|
||||
@ -512,7 +482,7 @@ body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .b
|
||||
outline: 4px solid #0085ba; }
|
||||
|
||||
.blocks-gallery-item .is-transient img {
|
||||
animation: loading_fade 1.6s ease-in-out infinite; }
|
||||
opacity: 0.3; }
|
||||
|
||||
.blocks-gallery-item .editor-rich-text {
|
||||
position: absolute;
|
||||
@ -604,7 +574,14 @@ body.admin-color-light .block-library-gallery-item__inline-menu {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 50%;
|
||||
transform: translate(50%, -50%); }
|
||||
margin-top: -9px;
|
||||
margin-right: -9px; }
|
||||
|
||||
.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2) {
|
||||
margin-left: 0; }
|
||||
|
||||
.wp-block-heading h1,
|
||||
.wp-block-heading h2,
|
||||
@ -654,9 +631,15 @@ body.admin-color-light .block-library-gallery-item__inline-menu {
|
||||
.wp-block-image {
|
||||
position: relative; }
|
||||
.wp-block-image.is-transient img {
|
||||
animation: loading_fade 1.6s ease-in-out infinite; }
|
||||
opacity: 0.3; }
|
||||
.wp-block-image figcaption img {
|
||||
display: inline; }
|
||||
.wp-block-image .components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 50%;
|
||||
margin-top: -9px;
|
||||
margin-right: -9px; }
|
||||
|
||||
.wp-block-image .components-resizable-box__container {
|
||||
display: inline-block; }
|
||||
|
File diff suppressed because one or more lines are too long
129
wp-includes/css/dist/block-library/editor.css
vendored
129
wp-includes/css/dist/block-library/editor.css
vendored
@ -28,39 +28,12 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.block-editor ul.wp-block-archives {
|
||||
padding-left: 2.5em; }
|
||||
|
||||
.wp-block-audio {
|
||||
margin: 0; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%; }
|
||||
|
||||
.editor-block-list__block[data-type="core/button"][data-align="center"] {
|
||||
text-align: center; }
|
||||
|
||||
@ -79,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 {
|
||||
@ -95,11 +70,11 @@
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
width: 380px; }
|
||||
width: 374px; }
|
||||
.block-library-button__inline-link .editor-url-input {
|
||||
width: auto; }
|
||||
.block-library-button__inline-link .editor-url-input__suggestions {
|
||||
width: 308px;
|
||||
width: 302px;
|
||||
z-index: 6; }
|
||||
.block-library-button__inline-link > .dashicon {
|
||||
width: 36px; }
|
||||
@ -175,70 +150,63 @@
|
||||
.wp-block-columns .editor-block-list__layout .editor-block-list__block {
|
||||
max-width: none; }
|
||||
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns .editor-block-list__layout:first-child {
|
||||
margin-left: 30px; }
|
||||
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns .editor-block-list__layout:last-child {
|
||||
margin-right: 30px; }
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks {
|
||||
padding-left: 14px;
|
||||
padding-right: 14px; }
|
||||
@media (min-width: 600px) {
|
||||
.editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks {
|
||||
padding-left: 60px;
|
||||
padding-right: 60px; } }
|
||||
|
||||
.wp-block-columns {
|
||||
display: block; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout {
|
||||
display: flex;
|
||||
flex-wrap: wrap; }
|
||||
@media (min-width: 782px) {
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout {
|
||||
flex-wrap: nowrap; } }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
margin-top: -28px;
|
||||
margin-bottom: -28px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
margin-left: -14px;
|
||||
margin-right: -14px;
|
||||
min-width: 0;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
flex-basis: 100%; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div > .editor-inner-blocks {
|
||||
margin-top: -28px;
|
||||
margin-bottom: -28px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit::before {
|
||||
left: 0;
|
||||
right: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
|
||||
margin-left: -1px; }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] {
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
margin-right: inherit;
|
||||
margin-left: 0; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar {
|
||||
top: 36px;
|
||||
transform: translateY(-38px);
|
||||
margin-left: -17px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit::before {
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-list__breadcrumb {
|
||||
top: 0;
|
||||
right: 0; } }
|
||||
margin-left: 14px;
|
||||
margin-right: 14px; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] {
|
||||
flex-basis: 50%;
|
||||
flex-grow: 0; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit {
|
||||
padding-left: 16px;
|
||||
padding-right: 16px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(odd) > .editor-block-list__block-edit {
|
||||
padding-left: 0; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(even) > .editor-block-list__block-edit {
|
||||
padding-right: 0; } }
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) > .editor-block-list__block-edit {
|
||||
padding-left: 16px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child) > .editor-block-list__block-edit {
|
||||
padding-right: 16px; } }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(odd) {
|
||||
margin-right: 32px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(even) {
|
||||
margin-left: 32px; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) {
|
||||
margin-left: 32px; }
|
||||
.wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child) {
|
||||
margin-right: 32px; } }
|
||||
|
||||
.wp-block-columns [data-type="core/column"] {
|
||||
pointer-events: none; }
|
||||
@ -247,7 +215,7 @@
|
||||
.wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb {
|
||||
display: none; }
|
||||
|
||||
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .editor-inner-blocks {
|
||||
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .editor-block-list__layout > * {
|
||||
pointer-events: all; }
|
||||
|
||||
.wp-block-cover-image .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
@ -276,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;
|
||||
@ -297,7 +267,7 @@
|
||||
align-items: center;
|
||||
margin-bottom: 0; }
|
||||
.wp-block-file.is-transient {
|
||||
animation: loading_fade 1.6s ease-in-out infinite; }
|
||||
animation: edit-post__loading-fade-animation 1.6s ease-in-out infinite; }
|
||||
.wp-block-file .wp-block-file__content-wrapper {
|
||||
flex-grow: 1; }
|
||||
.wp-block-file .wp-block-file__textlink {
|
||||
@ -517,7 +487,7 @@ body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .b
|
||||
outline: 4px solid #0085ba; }
|
||||
|
||||
.blocks-gallery-item .is-transient img {
|
||||
animation: loading_fade 1.6s ease-in-out infinite; }
|
||||
opacity: 0.3; }
|
||||
|
||||
.blocks-gallery-item .editor-rich-text {
|
||||
position: absolute;
|
||||
@ -609,7 +579,14 @@ body.admin-color-light .block-library-gallery-item__inline-menu {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%); }
|
||||
margin-top: -9px;
|
||||
margin-left: -9px; }
|
||||
|
||||
.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2) {
|
||||
margin-right: 0; }
|
||||
|
||||
.wp-block-heading h1,
|
||||
.wp-block-heading h2,
|
||||
@ -659,9 +636,15 @@ body.admin-color-light .block-library-gallery-item__inline-menu {
|
||||
.wp-block-image {
|
||||
position: relative; }
|
||||
.wp-block-image.is-transient img {
|
||||
animation: loading_fade 1.6s ease-in-out infinite; }
|
||||
opacity: 0.3; }
|
||||
.wp-block-image figcaption img {
|
||||
display: inline; }
|
||||
.wp-block-image .components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-top: -9px;
|
||||
margin-left: -9px; }
|
||||
|
||||
.wp-block-image .components-resizable-box__container {
|
||||
display: inline-block; }
|
||||
|
File diff suppressed because one or more lines are too long
150
wp-includes/css/dist/block-library/style-rtl.css
vendored
150
wp-includes/css/dist/block-library/style-rtl.css
vendored
@ -28,36 +28,17 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.wp-block-audio figcaption {
|
||||
margin-top: 0.5em;
|
||||
color: #6c7781;
|
||||
margin-bottom: 1em;
|
||||
color: #555d66;
|
||||
text-align: center;
|
||||
font-size: 13px; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%;
|
||||
min-width: 300px; }
|
||||
|
||||
.editor-block-list__layout .reusable-block-edit-panel {
|
||||
align-items: center;
|
||||
background: #f8f9f9;
|
||||
@ -112,11 +93,19 @@
|
||||
left: -14px; }
|
||||
|
||||
.wp-block-button {
|
||||
color: #fff;
|
||||
margin-bottom: 1.5em; }
|
||||
.wp-block-button .wp-block-button__link {
|
||||
.wp-block-button.aligncenter {
|
||||
text-align: center; }
|
||||
.wp-block-button.alignright {
|
||||
text-align: right; }
|
||||
|
||||
.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;
|
||||
@ -127,33 +116,17 @@
|
||||
text-decoration: none;
|
||||
white-space: normal;
|
||||
word-break: break-all; }
|
||||
.wp-block-button.is-style-squared .wp-block-button__link {
|
||||
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active {
|
||||
color: inherit; }
|
||||
|
||||
.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.is-style-outline .wp-block-button__link {
|
||||
.is-style-outline {
|
||||
color: #32373c; }
|
||||
.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; }
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
|
||||
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; }
|
||||
|
||||
.wp-block-categories.alignleft {
|
||||
margin-right: 2em; }
|
||||
@ -171,24 +144,23 @@
|
||||
.wp-block-column {
|
||||
flex: 1;
|
||||
margin-bottom: 1em;
|
||||
flex-basis: 100%; }
|
||||
flex-basis: 100%;
|
||||
min-width: 0;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word; }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-column {
|
||||
flex-basis: 50%;
|
||||
flex-grow: 0; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-column {
|
||||
padding-right: 16px;
|
||||
padding-left: 16px; }
|
||||
.wp-block-column:nth-child(odd) {
|
||||
padding-right: 0; }
|
||||
margin-left: 32px; }
|
||||
.wp-block-column:nth-child(even) {
|
||||
padding-left: 0; } }
|
||||
@media (min-width: 782px) {
|
||||
margin-right: 32px; }
|
||||
.wp-block-column:not(:first-child) {
|
||||
padding-right: 16px; }
|
||||
margin-right: 32px; }
|
||||
.wp-block-column:not(:last-child) {
|
||||
padding-left: 16px; } }
|
||||
margin-left: 32px; } }
|
||||
|
||||
.wp-block-cover-image,
|
||||
.wp-block-cover {
|
||||
@ -201,7 +173,8 @@
|
||||
margin: 0 0 1.5em 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center; }
|
||||
align-items: center;
|
||||
overflow: hidden; }
|
||||
.wp-block-cover-image.has-left-content,
|
||||
.wp-block-cover.has-left-content {
|
||||
justify-content: flex-start; }
|
||||
@ -323,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;
|
||||
@ -332,8 +310,8 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
-o-object-fit: fill;
|
||||
object-fit: fill; }
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover; }
|
||||
|
||||
.editor-block-list__block[data-type="core/embed"][data-align="left"] .editor-block-list__block-edit,
|
||||
.editor-block-list__block[data-type="core/embed"][data-align="right"] .editor-block-list__block-edit,
|
||||
@ -551,11 +529,7 @@
|
||||
.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n) {
|
||||
margin-left: 0; } }
|
||||
.wp-block-gallery .blocks-gallery-image:last-child,
|
||||
.wp-block-gallery .blocks-gallery-item:last-child,
|
||||
.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2) {
|
||||
.wp-block-gallery .blocks-gallery-item:last-child {
|
||||
margin-left: 0; }
|
||||
.wp-block-gallery .blocks-gallery-item.has-add-item-button {
|
||||
width: 100%; }
|
||||
@ -872,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
152
wp-includes/css/dist/block-library/style.css
vendored
152
wp-includes/css/dist/block-library/style.css
vendored
@ -28,36 +28,17 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.wp-block-audio figcaption {
|
||||
margin-top: 0.5em;
|
||||
color: #6c7781;
|
||||
margin-bottom: 1em;
|
||||
color: #555d66;
|
||||
text-align: center;
|
||||
font-size: 13px; }
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%;
|
||||
min-width: 300px; }
|
||||
|
||||
.editor-block-list__layout .reusable-block-edit-panel {
|
||||
align-items: center;
|
||||
background: #f8f9f9;
|
||||
@ -112,11 +93,20 @@
|
||||
right: -14px; }
|
||||
|
||||
.wp-block-button {
|
||||
color: #fff;
|
||||
margin-bottom: 1.5em; }
|
||||
.wp-block-button .wp-block-button__link {
|
||||
.wp-block-button.aligncenter {
|
||||
text-align: center; }
|
||||
.wp-block-button.alignright {
|
||||
/*rtl:ignore*/
|
||||
text-align: right; }
|
||||
|
||||
.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;
|
||||
@ -127,34 +117,17 @@
|
||||
text-decoration: none;
|
||||
white-space: normal;
|
||||
word-break: break-all; }
|
||||
.wp-block-button.is-style-squared .wp-block-button__link {
|
||||
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active {
|
||||
color: inherit; }
|
||||
|
||||
.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.is-style-outline .wp-block-button__link {
|
||||
.is-style-outline {
|
||||
color: #32373c; }
|
||||
.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; }
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
|
||||
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; }
|
||||
|
||||
.wp-block-categories.alignleft {
|
||||
/*rtl:ignore*/
|
||||
@ -174,24 +147,23 @@
|
||||
.wp-block-column {
|
||||
flex: 1;
|
||||
margin-bottom: 1em;
|
||||
flex-basis: 100%; }
|
||||
flex-basis: 100%;
|
||||
min-width: 0;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word; }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-column {
|
||||
flex-basis: 50%;
|
||||
flex-grow: 0; } }
|
||||
@media (min-width: 600px) {
|
||||
.wp-block-column {
|
||||
padding-left: 16px;
|
||||
padding-right: 16px; }
|
||||
.wp-block-column:nth-child(odd) {
|
||||
padding-left: 0; }
|
||||
margin-right: 32px; }
|
||||
.wp-block-column:nth-child(even) {
|
||||
padding-right: 0; } }
|
||||
@media (min-width: 782px) {
|
||||
margin-left: 32px; }
|
||||
.wp-block-column:not(:first-child) {
|
||||
padding-left: 16px; }
|
||||
margin-left: 32px; }
|
||||
.wp-block-column:not(:last-child) {
|
||||
padding-right: 16px; } }
|
||||
margin-right: 32px; } }
|
||||
|
||||
.wp-block-cover-image,
|
||||
.wp-block-cover {
|
||||
@ -204,7 +176,8 @@
|
||||
margin: 0 0 1.5em 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center; }
|
||||
align-items: center;
|
||||
overflow: hidden; }
|
||||
.wp-block-cover-image.has-left-content,
|
||||
.wp-block-cover.has-left-content {
|
||||
justify-content: flex-start; }
|
||||
@ -326,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;
|
||||
@ -335,8 +313,8 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
-o-object-fit: fill;
|
||||
object-fit: fill; }
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover; }
|
||||
|
||||
.editor-block-list__block[data-type="core/embed"][data-align="left"] .editor-block-list__block-edit,
|
||||
.editor-block-list__block[data-type="core/embed"][data-align="right"] .editor-block-list__block-edit,
|
||||
@ -555,11 +533,7 @@
|
||||
.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n) {
|
||||
margin-right: 0; } }
|
||||
.wp-block-gallery .blocks-gallery-image:last-child,
|
||||
.wp-block-gallery .blocks-gallery-item:last-child,
|
||||
.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),
|
||||
.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2) {
|
||||
.wp-block-gallery .blocks-gallery-item:last-child {
|
||||
margin-right: 0; }
|
||||
.wp-block-gallery .blocks-gallery-item.has-add-item-button {
|
||||
width: 100%; }
|
||||
@ -882,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
24
wp-includes/css/dist/block-library/theme-rtl.css
vendored
24
wp-includes/css/dist/block-library/theme-rtl.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Menlo, Consolas, monaco, monospace;
|
||||
font-size: 14px;
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.wp-block-preformatted pre{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-quote{margin:20px 0}.wp-block-quote cite,.wp-block-quote footer,.wp-block-quote__citation{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote:not(.is-large):not(.is-style-large){border-right:4px solid #000;padding-right:1em}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin:1.65em auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-table{width:100%;min-width:240px;border-collapse:collapse}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor;word-break:break-all}
|
||||
.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.wp-block-preformatted pre{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-quote{margin:20px 0}.wp-block-quote cite,.wp-block-quote footer,.wp-block-quote__citation{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote:not(.is-large):not(.is-style-large){border-right:4px solid #000;padding-right:1em}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin:1.65em auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-table{width:100%;min-width:240px;border-collapse:collapse}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor;word-break:break-all}
|
24
wp-includes/css/dist/block-library/theme.css
vendored
24
wp-includes/css/dist/block-library/theme.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Menlo, Consolas, monaco, monospace;
|
||||
font-size: 14px;
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.wp-block-preformatted pre{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-quote{margin:20px 0}.wp-block-quote cite,.wp-block-quote footer,.wp-block-quote__citation{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote:not(.is-large):not(.is-style-large){border-left:4px solid #000;padding-left:1em}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin:1.65em auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-table{width:100%;min-width:240px;border-collapse:collapse}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor;word-break:break-all}
|
||||
.wp-block-code{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px}.wp-block-preformatted pre{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-pullquote{border-top:4px solid #555d66;border-bottom:4px solid #555d66;color:#40464d}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:#40464d;text-transform:uppercase;font-size:13px;font-style:normal}.wp-block-quote{margin:20px 0}.wp-block-quote cite,.wp-block-quote footer,.wp-block-quote__citation{color:#6c7781;font-size:13px;margin-top:1em;position:relative;font-style:normal}.wp-block-quote:not(.is-large):not(.is-style-large){border-left:4px solid #000;padding-left:1em}.wp-block-separator{border:none;border-bottom:2px solid #8f98a1;margin:1.65em auto}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){max-width:100px}.wp-block-table{width:100%;min-width:240px;border-collapse:collapse}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid currentColor;word-break:break-all}
|
112
wp-includes/css/dist/components/style-rtl.css
vendored
112
wp-includes/css/dist/components/style-rtl.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.components-autocomplete__popover .components-popover__content {
|
||||
min-width: 200px; }
|
||||
|
||||
@ -1672,7 +1648,7 @@ svg.dashicon {
|
||||
order: 1; }
|
||||
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button {
|
||||
font-size: 11px;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select {
|
||||
padding: 2px;
|
||||
margin-left: 4px; }
|
||||
@ -2052,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;
|
||||
@ -2062,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;
|
||||
@ -2233,9 +2216,15 @@ body.is-dragging-components-draggable {
|
||||
left: 0;
|
||||
pointer-events: none;
|
||||
outline: 4px solid transparent;
|
||||
animation: editor_region_focus 0.1s ease-out;
|
||||
animation: editor-animation__region-focus 0.2s ease-out;
|
||||
animation-fill-mode: forwards; }
|
||||
|
||||
@keyframes editor-animation__region-focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
.components-icon-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -2293,10 +2282,14 @@ body.is-dragging-components-draggable {
|
||||
display: inline-block;
|
||||
flex: 0 0 auto; }
|
||||
.components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]),
|
||||
.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #555d66; }
|
||||
@media (min-width: 782px) {
|
||||
.components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]),
|
||||
.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none; }
|
||||
box-shadow: none; } }
|
||||
.components-menu-item__button:focus:not(:disabled):not([aria-disabled="true"]),
|
||||
.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
@ -2333,7 +2326,7 @@ body.is-dragging-components-draggable {
|
||||
right: 0;
|
||||
background-color: rgba(255, 255, 255, 0.4);
|
||||
z-index: 100000;
|
||||
animation: fade-in 0.2s ease-out 0s;
|
||||
animation: edit-post__fade-in-animation 0.2s ease-out 0s;
|
||||
animation-fill-mode: forwards; }
|
||||
|
||||
.components-modal__frame {
|
||||
@ -2358,9 +2351,15 @@ body.is-dragging-components-draggable {
|
||||
max-width: calc(100% - 16px - 16px);
|
||||
max-height: calc(100% - 56px - 56px);
|
||||
transform: translate(50%, -50%);
|
||||
animation: modal-appear 0.1s ease-out;
|
||||
animation: components-modal__appear-animation 0.1s ease-out;
|
||||
animation-fill-mode: forwards; } }
|
||||
|
||||
@keyframes components-modal__appear-animation {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.components-modal__header {
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #e2e4e7;
|
||||
@ -2379,7 +2378,7 @@ body.is-dragging-components-draggable {
|
||||
margin: 0 -16px 16px; }
|
||||
.components-modal__header .components-modal__header-heading {
|
||||
font-size: 1em;
|
||||
font-weight: normal; }
|
||||
font-weight: 400; }
|
||||
.components-modal__header h1 {
|
||||
line-height: 1;
|
||||
margin: 0; }
|
||||
@ -2581,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,
|
||||
@ -2604,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 {
|
||||
@ -2634,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 {
|
||||
@ -2646,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%; }
|
||||
@ -2697,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%; }
|
||||
@ -2720,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;
|
||||
@ -2730,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; }
|
||||
@ -2958,7 +2956,13 @@ body.lockscroll {
|
||||
height: 4px;
|
||||
border-radius: 100%;
|
||||
transform-origin: 6px 6px;
|
||||
animation: rotation 1s infinite linear; }
|
||||
animation: components-spinner__animation 1s infinite linear; }
|
||||
|
||||
@keyframes components-spinner__animation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
.components-text-control__input {
|
||||
width: 100%;
|
||||
|
File diff suppressed because one or more lines are too long
88
wp-includes/css/dist/components/style.css
vendored
88
wp-includes/css/dist/components/style.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.components-autocomplete__popover .components-popover__content {
|
||||
min-width: 200px; }
|
||||
|
||||
@ -1672,7 +1648,7 @@ svg.dashicon {
|
||||
order: 1; }
|
||||
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button {
|
||||
font-size: 11px;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select {
|
||||
padding: 2px;
|
||||
margin-right: 4px; }
|
||||
@ -2052,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;
|
||||
@ -2062,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;
|
||||
@ -2233,9 +2216,15 @@ body.is-dragging-components-draggable {
|
||||
right: 0;
|
||||
pointer-events: none;
|
||||
outline: 4px solid transparent;
|
||||
animation: editor_region_focus 0.1s ease-out;
|
||||
animation: editor-animation__region-focus 0.2s ease-out;
|
||||
animation-fill-mode: forwards; }
|
||||
|
||||
@keyframes editor-animation__region-focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
.components-icon-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -2293,10 +2282,14 @@ body.is-dragging-components-draggable {
|
||||
display: inline-block;
|
||||
flex: 0 0 auto; }
|
||||
.components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]),
|
||||
.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #555d66; }
|
||||
@media (min-width: 782px) {
|
||||
.components-menu-item__button:hover:not(:disabled):not([aria-disabled="true"]),
|
||||
.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none; }
|
||||
box-shadow: none; } }
|
||||
.components-menu-item__button:focus:not(:disabled):not([aria-disabled="true"]),
|
||||
.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
@ -2333,7 +2326,7 @@ body.is-dragging-components-draggable {
|
||||
left: 0;
|
||||
background-color: rgba(255, 255, 255, 0.4);
|
||||
z-index: 100000;
|
||||
animation: fade-in 0.2s ease-out 0s;
|
||||
animation: edit-post__fade-in-animation 0.2s ease-out 0s;
|
||||
animation-fill-mode: forwards; }
|
||||
|
||||
.components-modal__frame {
|
||||
@ -2358,9 +2351,15 @@ body.is-dragging-components-draggable {
|
||||
max-width: calc(100% - 16px - 16px);
|
||||
max-height: calc(100% - 56px - 56px);
|
||||
transform: translate(-50%, -50%);
|
||||
animation: modal-appear 0.1s ease-out;
|
||||
animation: components-modal__appear-animation 0.1s ease-out;
|
||||
animation-fill-mode: forwards; } }
|
||||
|
||||
@keyframes components-modal__appear-animation {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.components-modal__header {
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #e2e4e7;
|
||||
@ -2379,7 +2378,7 @@ body.is-dragging-components-draggable {
|
||||
margin: 0 -16px 16px; }
|
||||
.components-modal__header .components-modal__header-heading {
|
||||
font-size: 1em;
|
||||
font-weight: normal; }
|
||||
font-weight: 400; }
|
||||
.components-modal__header h1 {
|
||||
line-height: 1;
|
||||
margin: 0; }
|
||||
@ -2583,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,
|
||||
@ -2607,6 +2607,7 @@ body.is-dragging-components-draggable {
|
||||
.components-placeholder__instructions {
|
||||
margin-bottom: 1em; }
|
||||
|
||||
/*!rtl:begin:ignore*/
|
||||
.components-popover {
|
||||
position: fixed;
|
||||
z-index: 1000000;
|
||||
@ -2653,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 {
|
||||
@ -2666,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 {
|
||||
@ -2707,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 {
|
||||
@ -2741,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; }
|
||||
@ -2972,7 +2966,13 @@ body.lockscroll {
|
||||
height: 4px;
|
||||
border-radius: 100%;
|
||||
transform-origin: 6px 6px;
|
||||
animation: rotation 1s infinite linear; }
|
||||
animation: components-spinner__animation 1s infinite linear; }
|
||||
|
||||
@keyframes components-spinner__animation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
.components-text-control__input {
|
||||
width: 100%;
|
||||
|
File diff suppressed because one or more lines are too long
106
wp-includes/css/dist/edit-post/style-rtl.css
vendored
106
wp-includes/css/dist/edit-post/style-rtl.css
vendored
@ -28,48 +28,28 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
body.is-fullscreen-mode {
|
||||
body.js.is-fullscreen-mode {
|
||||
margin-top: -46px;
|
||||
height: calc(100% + 46px);
|
||||
animation: fade-in 0.3s ease-out 0s;
|
||||
animation: edit-post__fade-in-animation 0.3s ease-out 0s;
|
||||
animation-fill-mode: forwards; }
|
||||
@media (min-width: 782px) {
|
||||
body.is-fullscreen-mode {
|
||||
body.js.is-fullscreen-mode {
|
||||
margin-top: -32px;
|
||||
height: calc(100% + 32px); } }
|
||||
body.is-fullscreen-mode #adminmenumain,
|
||||
body.is-fullscreen-mode #wpadminbar {
|
||||
body.js.is-fullscreen-mode #adminmenumain,
|
||||
body.js.is-fullscreen-mode #wpadminbar {
|
||||
display: none; }
|
||||
body.is-fullscreen-mode #wpcontent,
|
||||
body.is-fullscreen-mode #wpfooter {
|
||||
body.js.is-fullscreen-mode #wpcontent,
|
||||
body.js.is-fullscreen-mode #wpfooter {
|
||||
margin-right: 0; }
|
||||
body.is-fullscreen-mode .edit-post-header {
|
||||
body.js.is-fullscreen-mode .edit-post-header {
|
||||
transform: translateY(-100%);
|
||||
animation: slide_in_top 0.1s forwards; }
|
||||
animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; }
|
||||
|
||||
@keyframes edit-post-fullscreen-mode__slide-in-animation {
|
||||
100% {
|
||||
transform: translateY(0%); } }
|
||||
|
||||
.edit-post-header {
|
||||
height: 56px;
|
||||
@ -297,14 +277,14 @@ body.is-fullscreen-mode .edit-post-header {
|
||||
|
||||
.edit-post-keyboard-shortcut-help__title {
|
||||
font-size: 1rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__section {
|
||||
margin: 0 0 2rem 0; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__section-title {
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__shortcut {
|
||||
display: flex;
|
||||
@ -316,7 +296,7 @@ body.is-fullscreen-mode .edit-post-header {
|
||||
|
||||
.edit-post-keyboard-shortcut-help__shortcut-term {
|
||||
order: 1;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
margin: 0 1rem 0 0; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__shortcut-description {
|
||||
@ -462,10 +442,14 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
width: 280px;
|
||||
border-right: 1px solid #e2e4e7;
|
||||
transform: translateX(-100%);
|
||||
animation: slide_in_right 0.1s forwards; }
|
||||
animation: edit-post-layout__slide-in-animation 0.1s forwards; }
|
||||
body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel {
|
||||
top: 0; } }
|
||||
|
||||
@keyframes edit-post-layout__slide-in-animation {
|
||||
100% {
|
||||
transform: translateX(0%); } }
|
||||
|
||||
.edit-post-layout .editor-post-publish-panel__header-publish-button .components-button.is-large {
|
||||
height: 33px;
|
||||
line-height: 32px; }
|
||||
@ -729,6 +713,15 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
.editor-post-author__select {
|
||||
width: auto; } }
|
||||
|
||||
.edit-post-post-link__link-post-name {
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-post-link__preview-label {
|
||||
margin: 0; }
|
||||
|
||||
.edit-post-post-link__link {
|
||||
word-wrap: break-word; }
|
||||
|
||||
.edit-post-post-schedule {
|
||||
width: 100%;
|
||||
position: relative; }
|
||||
@ -890,6 +883,7 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
padding-top: 40px; } }
|
||||
|
||||
.edit-post-text-editor {
|
||||
width: 100%;
|
||||
margin-right: 16px;
|
||||
margin-left: 16px;
|
||||
padding-top: 44px; }
|
||||
@ -995,9 +989,6 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
position: relative; }
|
||||
.edit-post-visual-editor .editor-default-block-appender[data-root-client-id=""] .editor-default-block-appender__content:hover {
|
||||
outline: 1px solid transparent; }
|
||||
@media (min-width: 600px) {
|
||||
.edit-post-visual-editor .editor-default-block-appender .editor-default-block-appender__content {
|
||||
padding: 0 14px; } }
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible="true"] + p,
|
||||
.edit-post-visual-editor .editor-default-block-appender__content {
|
||||
@ -1006,14 +997,14 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
|
||||
.edit-post-options-modal__title {
|
||||
font-size: 1rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-options-modal__section {
|
||||
margin: 0 0 2rem 0; }
|
||||
|
||||
.edit-post-options-modal__section-title {
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-options-modal__option {
|
||||
border-top: 1px solid #e2e4e7; }
|
||||
@ -1027,21 +1018,10 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
flex-grow: 1;
|
||||
padding: 0.6rem 10px 0.6rem 0; }
|
||||
|
||||
@keyframes animate_fade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(4px); }
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0); } }
|
||||
|
||||
@keyframes move_background {
|
||||
from {
|
||||
background-position: 100% 0; }
|
||||
to {
|
||||
background-position: 28px 0; } }
|
||||
|
||||
@keyframes loading_fade {
|
||||
/**
|
||||
* Animations
|
||||
*/
|
||||
@keyframes edit-post__loading-fade-animation {
|
||||
0% {
|
||||
opacity: 0.5; }
|
||||
50% {
|
||||
@ -1049,13 +1029,11 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
100% {
|
||||
opacity: 0.5; } }
|
||||
|
||||
@keyframes slide_in_right {
|
||||
100% {
|
||||
transform: translateX(0%); } }
|
||||
|
||||
@keyframes slide_in_top {
|
||||
100% {
|
||||
transform: translateY(0%); } }
|
||||
@keyframes edit-post__fade-in-animation {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
html.wp-toolbar {
|
||||
background: #fff; }
|
||||
|
File diff suppressed because one or more lines are too long
106
wp-includes/css/dist/edit-post/style.css
vendored
106
wp-includes/css/dist/edit-post/style.css
vendored
@ -28,48 +28,28 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
body.is-fullscreen-mode {
|
||||
body.js.is-fullscreen-mode {
|
||||
margin-top: -46px;
|
||||
height: calc(100% + 46px);
|
||||
animation: fade-in 0.3s ease-out 0s;
|
||||
animation: edit-post__fade-in-animation 0.3s ease-out 0s;
|
||||
animation-fill-mode: forwards; }
|
||||
@media (min-width: 782px) {
|
||||
body.is-fullscreen-mode {
|
||||
body.js.is-fullscreen-mode {
|
||||
margin-top: -32px;
|
||||
height: calc(100% + 32px); } }
|
||||
body.is-fullscreen-mode #adminmenumain,
|
||||
body.is-fullscreen-mode #wpadminbar {
|
||||
body.js.is-fullscreen-mode #adminmenumain,
|
||||
body.js.is-fullscreen-mode #wpadminbar {
|
||||
display: none; }
|
||||
body.is-fullscreen-mode #wpcontent,
|
||||
body.is-fullscreen-mode #wpfooter {
|
||||
body.js.is-fullscreen-mode #wpcontent,
|
||||
body.js.is-fullscreen-mode #wpfooter {
|
||||
margin-left: 0; }
|
||||
body.is-fullscreen-mode .edit-post-header {
|
||||
body.js.is-fullscreen-mode .edit-post-header {
|
||||
transform: translateY(-100%);
|
||||
animation: slide_in_top 0.1s forwards; }
|
||||
animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; }
|
||||
|
||||
@keyframes edit-post-fullscreen-mode__slide-in-animation {
|
||||
100% {
|
||||
transform: translateY(0%); } }
|
||||
|
||||
.edit-post-header {
|
||||
height: 56px;
|
||||
@ -297,14 +277,14 @@ body.is-fullscreen-mode .edit-post-header {
|
||||
|
||||
.edit-post-keyboard-shortcut-help__title {
|
||||
font-size: 1rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__section {
|
||||
margin: 0 0 2rem 0; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__section-title {
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__shortcut {
|
||||
display: flex;
|
||||
@ -316,7 +296,7 @@ body.is-fullscreen-mode .edit-post-header {
|
||||
|
||||
.edit-post-keyboard-shortcut-help__shortcut-term {
|
||||
order: 1;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
margin: 0 0 0 1rem; }
|
||||
|
||||
.edit-post-keyboard-shortcut-help__shortcut-description {
|
||||
@ -462,10 +442,14 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
width: 280px;
|
||||
border-left: 1px solid #e2e4e7;
|
||||
transform: translateX(100%);
|
||||
animation: slide_in_right 0.1s forwards; }
|
||||
animation: edit-post-layout__slide-in-animation 0.1s forwards; }
|
||||
body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel {
|
||||
top: 0; } }
|
||||
|
||||
@keyframes edit-post-layout__slide-in-animation {
|
||||
100% {
|
||||
transform: translateX(0%); } }
|
||||
|
||||
.edit-post-layout .editor-post-publish-panel__header-publish-button .components-button.is-large {
|
||||
height: 33px;
|
||||
line-height: 32px; }
|
||||
@ -729,6 +713,15 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
.editor-post-author__select {
|
||||
width: auto; } }
|
||||
|
||||
.edit-post-post-link__link-post-name {
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-post-link__preview-label {
|
||||
margin: 0; }
|
||||
|
||||
.edit-post-post-link__link {
|
||||
word-wrap: break-word; }
|
||||
|
||||
.edit-post-post-schedule {
|
||||
width: 100%;
|
||||
position: relative; }
|
||||
@ -890,6 +883,7 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
padding-top: 40px; } }
|
||||
|
||||
.edit-post-text-editor {
|
||||
width: 100%;
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
padding-top: 44px; }
|
||||
@ -995,9 +989,6 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
position: relative; }
|
||||
.edit-post-visual-editor .editor-default-block-appender[data-root-client-id=""] .editor-default-block-appender__content:hover {
|
||||
outline: 1px solid transparent; }
|
||||
@media (min-width: 600px) {
|
||||
.edit-post-visual-editor .editor-default-block-appender .editor-default-block-appender__content {
|
||||
padding: 0 14px; } }
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible="true"] + p,
|
||||
.edit-post-visual-editor .editor-default-block-appender__content {
|
||||
@ -1006,14 +997,14 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
|
||||
.edit-post-options-modal__title {
|
||||
font-size: 1rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-options-modal__section {
|
||||
margin: 0 0 2rem 0; }
|
||||
|
||||
.edit-post-options-modal__section-title {
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold; }
|
||||
font-weight: 600; }
|
||||
|
||||
.edit-post-options-modal__option {
|
||||
border-top: 1px solid #e2e4e7; }
|
||||
@ -1027,21 +1018,10 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
flex-grow: 1;
|
||||
padding: 0.6rem 0 0.6rem 10px; }
|
||||
|
||||
@keyframes animate_fade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(4px); }
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0); } }
|
||||
|
||||
@keyframes move_background {
|
||||
from {
|
||||
background-position: 0 0; }
|
||||
to {
|
||||
background-position: 28px 0; } }
|
||||
|
||||
@keyframes loading_fade {
|
||||
/**
|
||||
* Animations
|
||||
*/
|
||||
@keyframes edit-post__loading-fade-animation {
|
||||
0% {
|
||||
opacity: 0.5; }
|
||||
50% {
|
||||
@ -1049,13 +1029,11 @@ body.is-fullscreen-mode .components-notice-list {
|
||||
100% {
|
||||
opacity: 0.5; } }
|
||||
|
||||
@keyframes slide_in_right {
|
||||
100% {
|
||||
transform: translateX(0%); } }
|
||||
|
||||
@keyframes slide_in_top {
|
||||
100% {
|
||||
transform: translateY(0%); } }
|
||||
@keyframes edit-post__fade-in-animation {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
html.wp-toolbar {
|
||||
background: #fff; }
|
||||
|
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
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
body {
|
||||
font-family: "Noto Serif", serif;
|
||||
font-size: 16px;
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#191e23}p{font-size:16px;line-height:1.8}ol,ul{margin:0;padding:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.mce-content-body{line-height:1.8}
|
||||
body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#191e23}p{font-size:16px;line-height:1.8}ol,ul{margin:0;padding:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.mce-content-body{line-height:1.8}
|
24
wp-includes/css/dist/editor/editor-styles.css
vendored
24
wp-includes/css/dist/editor/editor-styles.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
body {
|
||||
font-family: "Noto Serif", serif;
|
||||
font-size: 16px;
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#191e23}p{font-size:16px;line-height:1.8}ol,ul{margin:0;padding:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.mce-content-body{line-height:1.8}
|
||||
body{font-family:"Noto Serif",serif;font-size:16px;line-height:1.8;color:#191e23}p{font-size:16px;line-height:1.8}ol,ul{margin:0;padding:0}ul{list-style-type:disc}ol{list-style-type:decimal}ol ul,ul ul{list-style-type:circle}.mce-content-body{line-height:1.8}
|
133
wp-includes/css/dist/editor/style-rtl.css
vendored
133
wp-includes/css/dist/editor/style-rtl.css
vendored
@ -29,30 +29,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.editor-autocompleters__block .editor-block-icon {
|
||||
margin-left: 8px; }
|
||||
|
||||
@ -143,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;
|
||||
@ -317,13 +289,16 @@
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning {
|
||||
min-height: 36px; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit > :not(.editor-warning) {
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit > * {
|
||||
pointer-events: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning {
|
||||
pointer-events: all; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before {
|
||||
outline-color: rgba(145, 151, 162, 0.25); }
|
||||
.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before {
|
||||
@ -388,6 +363,11 @@
|
||||
right: auto;
|
||||
left: 0; }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar,
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar {
|
||||
top: 14px; } }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit {
|
||||
float: left;
|
||||
margin-right: 2em; }
|
||||
@ -434,7 +414,7 @@
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover {
|
||||
right: -13px; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit .editor-block-list__breadcrumb {
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-list__breadcrumb {
|
||||
left: 0; }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
@ -615,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; }
|
||||
|
||||
@ -698,10 +681,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar {
|
||||
margin-left: 15px; }
|
||||
|
||||
.editor-block-list__block[data-align="full"] .editor-block-contextual-toolbar {
|
||||
margin-right: -42px;
|
||||
margin-left: -42px; }
|
||||
|
||||
.editor-block-list__block .editor-block-contextual-toolbar > * {
|
||||
pointer-events: auto; }
|
||||
|
||||
@ -775,11 +754,8 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
background: #007cba; }
|
||||
.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar {
|
||||
opacity: 0;
|
||||
animation: fade-in 60ms ease-out 0.5s;
|
||||
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;
|
||||
@ -882,13 +858,13 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
margin-top: 14px; }
|
||||
.editor-block-compare__wrapper .editor-block-compare__heading {
|
||||
font-size: 1em;
|
||||
font-weight: normal; }
|
||||
font-weight: 400; }
|
||||
|
||||
.editor-block-mover {
|
||||
min-height: 56px;
|
||||
opacity: 0; }
|
||||
.editor-block-mover.is-visible {
|
||||
animation: fade-in 0.2s ease-out 0s;
|
||||
animation: edit-post__fade-in-animation 0.2s ease-out 0s;
|
||||
animation-fill-mode: forwards; }
|
||||
@media (min-width: 600px) {
|
||||
.editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .editor-block-mover {
|
||||
@ -949,6 +925,13 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
.editor-block-mover__control:focus {
|
||||
z-index: 1; } }
|
||||
|
||||
.editor-block-navigation__container {
|
||||
padding: 7px; }
|
||||
|
||||
.editor-block-navigation__label {
|
||||
margin: 0 0 8px;
|
||||
color: #6c7781; }
|
||||
|
||||
.editor-block-navigation__list,
|
||||
.editor-block-navigation__paragraph {
|
||||
padding: 0;
|
||||
@ -985,12 +968,25 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
width: 2px; }
|
||||
|
||||
.editor-block-navigation__item-button {
|
||||
padding: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 6px;
|
||||
text-align: right;
|
||||
color: #40464d;
|
||||
border-radius: 4px; }
|
||||
.editor-block-navigation__item-button .editor-block-icon {
|
||||
margin-left: 6px; }
|
||||
.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none; }
|
||||
.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
outline-offset: -2px;
|
||||
outline: 1px dotted #555d66; }
|
||||
.editor-block-navigation__item-button.is-selected, .editor-block-navigation__item-button.is-selected:focus {
|
||||
color: #32373c;
|
||||
background: #edeff0; }
|
||||
@ -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;
|
||||
@ -1251,14 +1247,12 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
display: block;
|
||||
margin-right: 1px;
|
||||
margin-left: 1px;
|
||||
cursor: text;
|
||||
width: 100%;
|
||||
outline: 1px solid transparent;
|
||||
transition: 0.2s outline;
|
||||
resize: none;
|
||||
padding: 0 14px;
|
||||
padding: 0 14px 0 50px;
|
||||
color: rgba(14, 28, 46, 0.62); }
|
||||
.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
color: rgba(255, 255, 255, 0.65); }
|
||||
@ -1652,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,
|
||||
@ -1974,7 +1991,7 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
color: #a2aab2;
|
||||
overflow: hidden; }
|
||||
.editor-post-saved-state.is-saving {
|
||||
animation: loading_fade 0.5s infinite; }
|
||||
animation: edit-post__loading-fade-animation 0.5s infinite; }
|
||||
.editor-post-saved-state .dashicon {
|
||||
display: inline-block;
|
||||
flex: 0 0 auto; }
|
||||
@ -2126,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;
|
||||
@ -2144,6 +2164,7 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
color: #191e23;
|
||||
transition: border 0.1s ease-out;
|
||||
padding: 19px 14px;
|
||||
word-break: keep-all;
|
||||
border: 1px solid transparent;
|
||||
border-right-width: 0;
|
||||
border-left-width: 0;
|
||||
@ -2158,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; }
|
||||
@ -2267,9 +2288,12 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
margin-top: 0; }
|
||||
margin-top: 0;
|
||||
height: 100%; }
|
||||
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] > p {
|
||||
margin-top: 0; }
|
||||
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
|
||||
padding-left: 36px; }
|
||||
.editor-rich-text__tinymce + .editor-rich-text__tinymce {
|
||||
pointer-events: none; }
|
||||
.editor-rich-text__tinymce + .editor-rich-text__tinymce,
|
||||
@ -2402,7 +2426,7 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
max-height: 200px;
|
||||
transition: all 0.15s ease-in-out;
|
||||
padding: 4px 0;
|
||||
width: 374px;
|
||||
width: 302px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.editor-url-input__suggestions,
|
||||
@ -2521,8 +2545,7 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
.editor-warning .editor-warning__actions {
|
||||
display: flex; }
|
||||
.editor-warning .editor-warning__action {
|
||||
margin: 0 0 0 6px;
|
||||
margin-right: 0; }
|
||||
margin: 0 0 0 6px; }
|
||||
|
||||
.editor-warning__secondary {
|
||||
margin: 3px -4px 0 0; }
|
||||
|
File diff suppressed because one or more lines are too long
133
wp-includes/css/dist/editor/style.css
vendored
133
wp-includes/css/dist/editor/style.css
vendored
@ -29,30 +29,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.editor-autocompleters__block .editor-block-icon {
|
||||
margin-right: 8px; }
|
||||
|
||||
@ -143,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;
|
||||
@ -317,13 +289,16 @@
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning {
|
||||
min-height: 36px; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit > :not(.editor-warning) {
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit > * {
|
||||
pointer-events: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning {
|
||||
pointer-events: all; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before {
|
||||
outline-color: rgba(145, 151, 162, 0.25); }
|
||||
.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before {
|
||||
@ -388,6 +363,11 @@
|
||||
left: auto;
|
||||
right: 0; }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar,
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar {
|
||||
top: 14px; } }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit {
|
||||
/*!rtl:begin:ignore*/
|
||||
float: left;
|
||||
@ -442,7 +422,7 @@
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover {
|
||||
left: -13px; }
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit .editor-block-list__breadcrumb {
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-list__breadcrumb {
|
||||
right: 0; }
|
||||
|
||||
@media (min-width: 600px) {
|
||||
@ -623,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; }
|
||||
|
||||
@ -708,10 +691,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
/*rtl:ignore*/
|
||||
margin-left: 15px; }
|
||||
|
||||
.editor-block-list__block[data-align="full"] .editor-block-contextual-toolbar {
|
||||
margin-left: -42px;
|
||||
margin-right: -42px; }
|
||||
|
||||
.editor-block-list__block .editor-block-contextual-toolbar > * {
|
||||
pointer-events: auto; }
|
||||
|
||||
@ -787,11 +766,8 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
background: #007cba; }
|
||||
.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar {
|
||||
opacity: 0;
|
||||
animation: fade-in 60ms ease-out 0.5s;
|
||||
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;
|
||||
@ -894,13 +870,13 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
margin-top: 14px; }
|
||||
.editor-block-compare__wrapper .editor-block-compare__heading {
|
||||
font-size: 1em;
|
||||
font-weight: normal; }
|
||||
font-weight: 400; }
|
||||
|
||||
.editor-block-mover {
|
||||
min-height: 56px;
|
||||
opacity: 0; }
|
||||
.editor-block-mover.is-visible {
|
||||
animation: fade-in 0.2s ease-out 0s;
|
||||
animation: edit-post__fade-in-animation 0.2s ease-out 0s;
|
||||
animation-fill-mode: forwards; }
|
||||
@media (min-width: 600px) {
|
||||
.editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .editor-block-mover {
|
||||
@ -961,6 +937,13 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
.editor-block-mover__control:focus {
|
||||
z-index: 1; } }
|
||||
|
||||
.editor-block-navigation__container {
|
||||
padding: 7px; }
|
||||
|
||||
.editor-block-navigation__label {
|
||||
margin: 0 0 8px;
|
||||
color: #6c7781; }
|
||||
|
||||
.editor-block-navigation__list,
|
||||
.editor-block-navigation__paragraph {
|
||||
padding: 0;
|
||||
@ -997,12 +980,25 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
width: 2px; }
|
||||
|
||||
.editor-block-navigation__item-button {
|
||||
padding: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 6px;
|
||||
text-align: left;
|
||||
color: #40464d;
|
||||
border-radius: 4px; }
|
||||
.editor-block-navigation__item-button .editor-block-icon {
|
||||
margin-right: 6px; }
|
||||
.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none; }
|
||||
.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) {
|
||||
color: #191e23;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
outline-offset: -2px;
|
||||
outline: 1px dotted #555d66; }
|
||||
.editor-block-navigation__item-button.is-selected, .editor-block-navigation__item-button.is-selected:focus {
|
||||
color: #32373c;
|
||||
background: #edeff0; }
|
||||
@ -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;
|
||||
@ -1263,14 +1259,12 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
display: block;
|
||||
margin-left: 1px;
|
||||
margin-right: 1px;
|
||||
cursor: text;
|
||||
width: 100%;
|
||||
outline: 1px solid transparent;
|
||||
transition: 0.2s outline;
|
||||
resize: none;
|
||||
padding: 0 14px;
|
||||
padding: 0 50px 0 14px;
|
||||
color: rgba(14, 28, 46, 0.62); }
|
||||
.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
color: rgba(255, 255, 255, 0.65); }
|
||||
@ -1664,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,
|
||||
@ -1986,7 +2003,7 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{
|
||||
color: #a2aab2;
|
||||
overflow: hidden; }
|
||||
.editor-post-saved-state.is-saving {
|
||||
animation: loading_fade 0.5s infinite; }
|
||||
animation: edit-post__loading-fade-animation 0.5s infinite; }
|
||||
.editor-post-saved-state .dashicon {
|
||||
display: inline-block;
|
||||
flex: 0 0 auto; }
|
||||
@ -2138,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;
|
||||
@ -2156,6 +2176,7 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
color: #191e23;
|
||||
transition: border 0.1s ease-out;
|
||||
padding: 19px 14px;
|
||||
word-break: keep-all;
|
||||
border: 1px solid transparent;
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
@ -2170,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; }
|
||||
@ -2279,9 +2300,12 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
margin-top: 0; }
|
||||
margin-top: 0;
|
||||
height: 100%; }
|
||||
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] > p {
|
||||
margin-top: 0; }
|
||||
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
|
||||
padding-right: 36px; }
|
||||
.editor-rich-text__tinymce + .editor-rich-text__tinymce {
|
||||
pointer-events: none; }
|
||||
.editor-rich-text__tinymce + .editor-rich-text__tinymce,
|
||||
@ -2414,7 +2438,7 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
max-height: 200px;
|
||||
transition: all 0.15s ease-in-out;
|
||||
padding: 4px 0;
|
||||
width: 374px;
|
||||
width: 302px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.editor-url-input__suggestions,
|
||||
@ -2533,8 +2557,7 @@ body.admin-color-light .editor-post-text-editor__link{
|
||||
.editor-warning .editor-warning__actions {
|
||||
display: flex; }
|
||||
.editor-warning .editor-warning__action {
|
||||
margin: 0 6px 0 0;
|
||||
margin-left: 0; }
|
||||
margin: 0 6px 0 0; }
|
||||
|
||||
.editor-warning__secondary {
|
||||
margin: 3px 0 0 -4px; }
|
||||
|
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
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.editor-format-toolbar__link-container-content {
|
||||
display: flex; }
|
||||
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.editor-format-toolbar__link-container-content{display:flex}.editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}
|
||||
.editor-format-toolbar__link-container-content{display:flex}.editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}
|
24
wp-includes/css/dist/format-library/style.css
vendored
24
wp-includes/css/dist/format-library/style.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.editor-format-toolbar__link-container-content {
|
||||
display: flex; }
|
||||
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.editor-format-toolbar__link-container-content{display:flex}.editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}
|
||||
.editor-format-toolbar__link-container-content{display:flex}.editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f}
|
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.list-reusable-blocks-import-dropdown__content .components-popover__content {
|
||||
padding: 10px; }
|
||||
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:left}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;padding:9px 0 4px;align-items:center;vertical-align:top}
|
||||
.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:left}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;padding:9px 0 4px;align-items:center;vertical-align:top}
|
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.list-reusable-blocks-import-dropdown__content .components-popover__content {
|
||||
padding: 10px; }
|
||||
|
||||
|
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:right}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;padding:9px 0 4px;align-items:center;vertical-align:top}
|
||||
.list-reusable-blocks-import-dropdown__content .components-popover__content{padding:10px}.list-reusable-blocks-import-form__label{display:block;margin-bottom:10px}.list-reusable-blocks-import-form__button{margin-top:20px;float:right}.list-reusable-blocks-import-form .components-notice__content{margin:0}.list-reusable-blocks__container{display:inline-flex;padding:9px 0 4px;align-items:center;vertical-align:top}
|
24
wp-includes/css/dist/nux/style-rtl.css
vendored
24
wp-includes/css/dist/nux/style-rtl.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(-360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.nux-dot-tip::before, .nux-dot-tip::after {
|
||||
border-radius: 100%;
|
||||
content: " ";
|
||||
|
2
wp-includes/css/dist/nux/style-rtl.min.css
vendored
2
wp-includes/css/dist/nux/style-rtl.min.css
vendored
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.nux-dot-tip::after,.nux-dot-tip::before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip::before{animation:nux-pulse 1.6s infinite cubic-bezier(.17,.67,.92,.62);background:rgba(0,115,156,.9);height:24px;right:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip::after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{100%{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:5px 20px 5px 41px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;left:0;top:0}.nux-dot-tip.is-top{margin-top:-4px}.nux-dot-tip.is-bottom{margin-top:4px}.nux-dot-tip.is-middle.is-left{margin-right:-4px}.nux-dot-tip.is-middle.is-right{margin-right:4px}.nux-dot-tip.is-top .components-popover__content{margin-bottom:20px}.nux-dot-tip.is-bottom .components-popover__content{margin-top:20px}.nux-dot-tip.is-middle.is-left .components-popover__content{margin-left:20px}.nux-dot-tip.is-middle.is-right .components-popover__content{margin-right:20px}.nux-dot-tip:not(.is-mobile).is-center,.nux-dot-tip:not(.is-mobile).is-left,.nux-dot-tip:not(.is-mobile).is-right{z-index:1000001}@media (max-width:600px){.nux-dot-tip:not(.is-mobile).is-center .components-popover__content,.nux-dot-tip:not(.is-mobile).is-left .components-popover__content,.nux-dot-tip:not(.is-mobile).is-right .components-popover__content{align-self:end;right:5px;margin:20px 0 0 0;max-width:none!important;position:fixed;left:5px;width:auto}}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:0}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:0}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-12px}
|
||||
.nux-dot-tip::after,.nux-dot-tip::before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip::before{animation:nux-pulse 1.6s infinite cubic-bezier(.17,.67,.92,.62);background:rgba(0,115,156,.9);height:24px;right:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip::after{background:#00739c;height:8px;right:-4px;top:-4px;width:8px}@keyframes nux-pulse{100%{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:5px 20px 5px 41px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;left:0;top:0}.nux-dot-tip.is-top{margin-top:-4px}.nux-dot-tip.is-bottom{margin-top:4px}.nux-dot-tip.is-middle.is-left{margin-right:-4px}.nux-dot-tip.is-middle.is-right{margin-right:4px}.nux-dot-tip.is-top .components-popover__content{margin-bottom:20px}.nux-dot-tip.is-bottom .components-popover__content{margin-top:20px}.nux-dot-tip.is-middle.is-left .components-popover__content{margin-left:20px}.nux-dot-tip.is-middle.is-right .components-popover__content{margin-right:20px}.nux-dot-tip:not(.is-mobile).is-center,.nux-dot-tip:not(.is-mobile).is-left,.nux-dot-tip:not(.is-mobile).is-right{z-index:1000001}@media (max-width:600px){.nux-dot-tip:not(.is-mobile).is-center .components-popover__content,.nux-dot-tip:not(.is-mobile).is-left .components-popover__content,.nux-dot-tip:not(.is-mobile).is-right .components-popover__content{align-self:end;right:5px;margin:20px 0 0 0;max-width:none!important;position:fixed;left:5px;width:auto}}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:0}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:0}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-12px}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-12px}
|
24
wp-includes/css/dist/nux/style.css
vendored
24
wp-includes/css/dist/nux/style.css
vendored
@ -28,30 +28,6 @@
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0; }
|
||||
to {
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes editor_region_focus {
|
||||
from {
|
||||
box-shadow: inset 0 0 0 0 #33b3db; }
|
||||
to {
|
||||
box-shadow: inset 0 0 0 4px #33b3db; } }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes modal-appear {
|
||||
from {
|
||||
margin-top: 32px; }
|
||||
to {
|
||||
margin-top: 0; } }
|
||||
|
||||
.nux-dot-tip::before, .nux-dot-tip::after {
|
||||
border-radius: 100%;
|
||||
content: " ";
|
||||
|
2
wp-includes/css/dist/nux/style.min.css
vendored
2
wp-includes/css/dist/nux/style.min.css
vendored
@ -1 +1 @@
|
||||
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes editor_region_focus{from{box-shadow:inset 0 0 0 0 #33b3db}to{box-shadow:inset 0 0 0 4px #33b3db}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes modal-appear{from{margin-top:32px}to{margin-top:0}}.nux-dot-tip::after,.nux-dot-tip::before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip::before{animation:nux-pulse 1.6s infinite cubic-bezier(.17,.67,.92,.62);background:rgba(0,115,156,.9);height:24px;left:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip::after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{100%{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:5px 41px 5px 20px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;right:0;top:0}.nux-dot-tip.is-top{margin-top:-4px}.nux-dot-tip.is-bottom{margin-top:4px}.nux-dot-tip.is-middle.is-left{margin-left:-4px}.nux-dot-tip.is-middle.is-right{margin-left:4px}.nux-dot-tip.is-top .components-popover__content{margin-bottom:20px}.nux-dot-tip.is-bottom .components-popover__content{margin-top:20px}.nux-dot-tip.is-middle.is-left .components-popover__content{margin-right:20px}.nux-dot-tip.is-middle.is-right .components-popover__content{margin-left:20px}.nux-dot-tip:not(.is-mobile).is-center,.nux-dot-tip:not(.is-mobile).is-left,.nux-dot-tip:not(.is-mobile).is-right{z-index:1000001}@media (max-width:600px){.nux-dot-tip:not(.is-mobile).is-center .components-popover__content,.nux-dot-tip:not(.is-mobile).is-left .components-popover__content,.nux-dot-tip:not(.is-mobile).is-right .components-popover__content{align-self:end;left:5px;margin:20px 0 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{/*!rtl:ignore*/margin-left:0}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{/*!rtl:ignore*/margin-right:0}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-right .components-popover__content{/*!rtl:ignore*/margin-left:-12px}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-left .components-popover__content{/*!rtl:ignore*/margin-right:-12px}
|
||||
.nux-dot-tip::after,.nux-dot-tip::before{border-radius:100%;content:" ";pointer-events:none;position:absolute}.nux-dot-tip::before{animation:nux-pulse 1.6s infinite cubic-bezier(.17,.67,.92,.62);background:rgba(0,115,156,.9);height:24px;left:-12px;top:-12px;transform:scale(.33333);width:24px}.nux-dot-tip::after{background:#00739c;height:8px;left:-4px;top:-4px;width:8px}@keyframes nux-pulse{100%{background:rgba(0,115,156,0);transform:scale(1)}}.nux-dot-tip .components-popover__content{padding:5px 41px 5px 20px;width:350px}@media (min-width:600px){.nux-dot-tip .components-popover__content{width:450px}}.nux-dot-tip .components-popover__content .nux-dot-tip__disable{position:absolute;right:0;top:0}.nux-dot-tip.is-top{margin-top:-4px}.nux-dot-tip.is-bottom{margin-top:4px}.nux-dot-tip.is-middle.is-left{margin-left:-4px}.nux-dot-tip.is-middle.is-right{margin-left:4px}.nux-dot-tip.is-top .components-popover__content{margin-bottom:20px}.nux-dot-tip.is-bottom .components-popover__content{margin-top:20px}.nux-dot-tip.is-middle.is-left .components-popover__content{margin-right:20px}.nux-dot-tip.is-middle.is-right .components-popover__content{margin-left:20px}.nux-dot-tip:not(.is-mobile).is-center,.nux-dot-tip:not(.is-mobile).is-left,.nux-dot-tip:not(.is-mobile).is-right{z-index:1000001}@media (max-width:600px){.nux-dot-tip:not(.is-mobile).is-center .components-popover__content,.nux-dot-tip:not(.is-mobile).is-left .components-popover__content,.nux-dot-tip:not(.is-mobile).is-right .components-popover__content{align-self:end;left:5px;margin:20px 0 0 0;max-width:none!important;position:fixed;right:5px;width:auto}}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{/*!rtl:ignore*/margin-left:0}.nux-dot-tip.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{/*!rtl:ignore*/margin-right:0}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-right .components-popover__content{/*!rtl:ignore*/margin-left:-12px}.nux-dot-tip.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-left .components-popover__content{/*!rtl:ignore*/margin-right:-12px}
|
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=325)}({180:function(e,t){!function(){e.exports=this.wp.domReady}()},325: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=325)}({182:function(e,t){!function(){e.exports=this.wp.domReady}()},325: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)}}});
|
416
wp-includes/js/dist/annotations.js
vendored
416
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,29 +400,84 @@ 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);
|
||||
}
|
||||
var annotation = {
|
||||
name: name,
|
||||
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Annotation'),
|
||||
tagName: 'mark',
|
||||
className: 'annotation-text',
|
||||
attributes: {
|
||||
className: 'class'
|
||||
},
|
||||
edit: function edit() {
|
||||
return null;
|
||||
},
|
||||
__experimentalGetPropsForEditableTreePreparation: function __experimentalGetPropsForEditableTreePreparation(select, _ref) {
|
||||
var richTextIdentifier = _ref.richTextIdentifier,
|
||||
blockClientId = _ref.blockClientId;
|
||||
return {
|
||||
annotations: select('core/annotations').__experimentalGetAnnotationsForRichText(blockClientId, richTextIdentifier)
|
||||
/**
|
||||
* 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
|
||||
};
|
||||
},
|
||||
__experimentalCreatePrepareEditableTree: function __experimentalCreatePrepareEditableTree(props) {
|
||||
} // 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 (props.annotations.length === 0) {
|
||||
if (annotations.length === 0) {
|
||||
return formats;
|
||||
}
|
||||
|
||||
@ -423,9 +485,58 @@ var annotation = {
|
||||
formats: formats,
|
||||
text: text
|
||||
};
|
||||
record = applyAnnotations(record, props.annotations);
|
||||
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: FORMAT_NAME,
|
||||
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Annotation'),
|
||||
tagName: 'mark',
|
||||
className: 'annotation-text',
|
||||
attributes: {
|
||||
className: 'class',
|
||||
id: 'id'
|
||||
},
|
||||
edit: function edit() {
|
||||
return null;
|
||||
},
|
||||
__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 {
|
||||
removeAnnotation: dispatch(STORE_KEY).__experimentalRemoveAnnotation,
|
||||
updateAnnotationRange: dispatch(STORE_KEY).__experimentalUpdateAnnotationRange
|
||||
};
|
||||
},
|
||||
__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_REMOVE_SOURCE':
|
||||
var idsToRemove = [];
|
||||
var allAnnotations = state.all.filter(function (annotation) {
|
||||
if (annotation.source === action.source) {
|
||||
idsToRemove.push(annotation.id);
|
||||
return false;
|
||||
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 true;
|
||||
return annotation;
|
||||
});
|
||||
return hasChangedRange ? newAnnotations : annotationsForBlock;
|
||||
});
|
||||
|
||||
case 'ANNOTATION_REMOVE_SOURCE':
|
||||
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
6
wp-includes/js/dist/api-fetch.js
vendored
6
wp-includes/js/dist/api-fetch.js
vendored
@ -800,12 +800,14 @@ var createPreloadingMiddleware = function createPreloadingMiddleware(preloadedDa
|
||||
var _options$parse = options.parse,
|
||||
parse = _options$parse === void 0 ? true : _options$parse;
|
||||
|
||||
if (typeof options.path === 'string' && parse) {
|
||||
if (typeof options.path === 'string') {
|
||||
var method = options.method || 'GET';
|
||||
var path = getStablePath(options.path);
|
||||
|
||||
if ('GET' === method && preloadedData[path]) {
|
||||
if (parse && 'GET' === method && preloadedData[path]) {
|
||||
return Promise.resolve(preloadedData[path].body);
|
||||
} else if ('OPTIONS' === method && preloadedData[method][path]) {
|
||||
return Promise.resolve(preloadedData[method][path]);
|
||||
}
|
||||
}
|
||||
|
||||
|
2
wp-includes/js/dist/api-fetch.js.map
vendored
2
wp-includes/js/dist/api-fetch.js.map
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:")}}});
|
1214
wp-includes/js/dist/block-library.js
vendored
1214
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(24),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)}},24:function(n,t,r){"use strict";var e=r(36);var u=r(37);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})},36:function(n,t,r){"use strict";function e(n){if(Array.isArray(n))return n}r.d(t,"a",function(){return e})},37: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})}});
|
342
wp-includes/js/dist/blocks.js
vendored
342
wp-includes/js/dist/blocks.js
vendored
File diff suppressed because one or more lines are too long
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
401
wp-includes/js/dist/components.js
vendored
401
wp-includes/js/dist/components.js
vendored
@ -4858,7 +4858,6 @@ function (_Component) {
|
||||
var _this$props = this.props,
|
||||
currentDate = _this$props.currentDate,
|
||||
is12Hour = _this$props.is12Hour,
|
||||
locale = _this$props.locale,
|
||||
onChange = _this$props.onChange;
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
|
||||
className: "components-datetime"
|
||||
@ -4868,9 +4867,7 @@ function (_Component) {
|
||||
is12Hour: is12Hour
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_date__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
||||
currentDate: currentDate,
|
||||
onChange: onChange,
|
||||
locale: locale,
|
||||
is12Hour: is12Hour
|
||||
onChange: onChange
|
||||
})), this.state.calendarHelpIsVisible && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
|
||||
className: "components-datetime__calendar-help"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("h4", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Click to Select')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("ul", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("li", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Click the right or left arrows to select other months in the past or the future.')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("li", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Click the desired day to select it.'))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("h4", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Navigating with a keyboard')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("ul", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("li", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("abbr", {
|
||||
@ -6335,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");
|
||||
|
||||
|
||||
|
||||
@ -6350,7 +6345,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -6371,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
|
||||
@ -6399,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() {
|
||||
@ -6468,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,
|
||||
@ -9347,7 +9324,7 @@ function Icon(_ref) {
|
||||
/*!******************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/components/build-module/index.js ***!
|
||||
\******************************************************************/
|
||||
/*! exports provided: Autocomplete, BaseControl, Button, ButtonGroup, CheckboxControl, ClipboardButton, ColorIndicator, ColorPalette, ColorPicker, Dashicon, DateTimePicker, DatePicker, TimePicker, Disabled, Draggable, DropZone, DropZoneProvider, Dropdown, DropdownMenu, ExternalLink, FocusableIframe, FontSizePicker, FormFileUpload, FormToggle, FormTokenField, Icon, IconButton, KeyboardShortcuts, MenuGroup, MenuItem, MenuItemsChoice, Modal, ScrollLock, NavigableMenu, TabbableContainer, Notice, NoticeList, Panel, PanelBody, PanelHeader, PanelRow, Placeholder, Popover, QueryControls, RadioControl, RangeControl, ResizableBox, ResponsiveWrapper, SandBox, SelectControl, Spinner, ServerSideRender, TabPanel, TextControl, TextareaControl, ToggleControl, Toolbar, ToolbarButton, Tooltip, TreeSelect, createSlotFill, Slot, Fill, SlotFillProvider, navigateRegions, withConstrainedTabbing, withFallbackStyles, withFilters, withFocusOutside, withFocusReturn, withNotices, withSpokenMessages, Circle, G, Path, Polygon, Rect, SVG */
|
||||
/*! exports provided: Autocomplete, BaseControl, Button, ButtonGroup, CheckboxControl, ClipboardButton, ColorIndicator, ColorPalette, ColorPicker, Dashicon, DateTimePicker, DatePicker, TimePicker, Disabled, Draggable, DropZone, DropZoneProvider, Dropdown, DropdownMenu, ExternalLink, FocusableIframe, FontSizePicker, FormFileUpload, FormToggle, FormTokenField, Icon, IconButton, KeyboardShortcuts, MenuGroup, MenuItem, MenuItemsChoice, Modal, ScrollLock, NavigableMenu, TabbableContainer, Notice, NoticeList, Panel, PanelBody, PanelHeader, PanelRow, Placeholder, Popover, QueryControls, RadioControl, RangeControl, ResizableBox, ResponsiveWrapper, SandBox, SelectControl, Spinner, ServerSideRender, TabPanel, TextControl, TextareaControl, ToggleControl, Toolbar, ToolbarButton, Tooltip, TreeSelect, IsolatedEventContainer, createSlotFill, Slot, Fill, SlotFillProvider, navigateRegions, withConstrainedTabbing, withFallbackStyles, withFilters, withFocusOutside, withFocusReturn, withNotices, withSpokenMessages, Circle, G, Path, Polygon, Rect, SVG */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -9542,38 +9519,41 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _tree_select__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./tree-select */ "./node_modules/@wordpress/components/build-module/tree-select/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeSelect", function() { return _tree_select__WEBPACK_IMPORTED_MODULE_57__["default"]; });
|
||||
|
||||
/* harmony import */ var _slot_fill__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./slot-fill */ "./node_modules/@wordpress/components/build-module/slot-fill/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSlotFill", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_58__["createSlotFill"]; });
|
||||
/* harmony import */ var _isolated_event_container__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./isolated-event-container */ "./node_modules/@wordpress/components/build-module/isolated-event-container/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsolatedEventContainer", function() { return _isolated_event_container__WEBPACK_IMPORTED_MODULE_58__["default"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slot", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_58__["Slot"]; });
|
||||
/* harmony import */ var _slot_fill__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./slot-fill */ "./node_modules/@wordpress/components/build-module/slot-fill/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSlotFill", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_59__["createSlotFill"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Fill", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_58__["Fill"]; });
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slot", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_59__["Slot"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SlotFillProvider", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_58__["Provider"]; });
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Fill", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_59__["Fill"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_navigate_regions__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./higher-order/navigate-regions */ "./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "navigateRegions", function() { return _higher_order_navigate_regions__WEBPACK_IMPORTED_MODULE_59__["default"]; });
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SlotFillProvider", function() { return _slot_fill__WEBPACK_IMPORTED_MODULE_59__["Provider"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./higher-order/with-constrained-tabbing */ "./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withConstrainedTabbing", function() { return _higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_60__["default"]; });
|
||||
/* harmony import */ var _higher_order_navigate_regions__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./higher-order/navigate-regions */ "./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "navigateRegions", function() { return _higher_order_navigate_regions__WEBPACK_IMPORTED_MODULE_60__["default"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_fallback_styles__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./higher-order/with-fallback-styles */ "./node_modules/@wordpress/components/build-module/higher-order/with-fallback-styles/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFallbackStyles", function() { return _higher_order_with_fallback_styles__WEBPACK_IMPORTED_MODULE_61__["default"]; });
|
||||
/* harmony import */ var _higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./higher-order/with-constrained-tabbing */ "./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withConstrainedTabbing", function() { return _higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_61__["default"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_filters__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./higher-order/with-filters */ "./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFilters", function() { return _higher_order_with_filters__WEBPACK_IMPORTED_MODULE_62__["default"]; });
|
||||
/* harmony import */ var _higher_order_with_fallback_styles__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./higher-order/with-fallback-styles */ "./node_modules/@wordpress/components/build-module/higher-order/with-fallback-styles/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFallbackStyles", function() { return _higher_order_with_fallback_styles__WEBPACK_IMPORTED_MODULE_62__["default"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_focus_outside__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./higher-order/with-focus-outside */ "./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFocusOutside", function() { return _higher_order_with_focus_outside__WEBPACK_IMPORTED_MODULE_63__["default"]; });
|
||||
/* harmony import */ var _higher_order_with_filters__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./higher-order/with-filters */ "./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFilters", function() { return _higher_order_with_filters__WEBPACK_IMPORTED_MODULE_63__["default"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./higher-order/with-focus-return */ "./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFocusReturn", function() { return _higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_64__["default"]; });
|
||||
/* harmony import */ var _higher_order_with_focus_outside__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./higher-order/with-focus-outside */ "./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFocusOutside", function() { return _higher_order_with_focus_outside__WEBPACK_IMPORTED_MODULE_64__["default"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_notices__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./higher-order/with-notices */ "./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withNotices", function() { return _higher_order_with_notices__WEBPACK_IMPORTED_MODULE_65__["default"]; });
|
||||
/* harmony import */ var _higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./higher-order/with-focus-return */ "./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withFocusReturn", function() { return _higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_65__["default"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_spoken_messages__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./higher-order/with-spoken-messages */ "./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withSpokenMessages", function() { return _higher_order_with_spoken_messages__WEBPACK_IMPORTED_MODULE_66__["default"]; });
|
||||
/* harmony import */ var _higher_order_with_notices__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./higher-order/with-notices */ "./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withNotices", function() { return _higher_order_with_notices__WEBPACK_IMPORTED_MODULE_66__["default"]; });
|
||||
|
||||
/* harmony import */ var _higher_order_with_spoken_messages__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./higher-order/with-spoken-messages */ "./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withSpokenMessages", function() { return _higher_order_with_spoken_messages__WEBPACK_IMPORTED_MODULE_67__["default"]; });
|
||||
|
||||
// Components
|
||||
// eslint-disable-next-line camelcase
|
||||
@ -9633,6 +9613,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Higher-Order Components
|
||||
@ -9647,6 +9628,85 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@wordpress/components/build-module/isolated-event-container/index.js":
|
||||
/*!*******************************************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js ***!
|
||||
\*******************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* 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_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __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_4__ = __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_5__ = __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_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
|
||||
var IsolatedEventContainer =
|
||||
/*#__PURE__*/
|
||||
function (_Component) {
|
||||
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(IsolatedEventContainer, _Component);
|
||||
|
||||
function IsolatedEventContainer(props) {
|
||||
var _this;
|
||||
|
||||
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, IsolatedEventContainer);
|
||||
|
||||
_this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(IsolatedEventContainer).call(this, props));
|
||||
_this.stopEventPropagationOutsideContainer = _this.stopEventPropagationOutsideContainer.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
return _this;
|
||||
}
|
||||
|
||||
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(IsolatedEventContainer, [{
|
||||
key: "stopEventPropagationOutsideContainer",
|
||||
value: function stopEventPropagationOutsideContainer(event) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _this$props = this.props,
|
||||
children = _this$props.children,
|
||||
props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["children"]); // Disable reason: this stops certain events from propagating outside of the component.
|
||||
// - onMouseDown is disabled as this can cause interactions with other DOM elements
|
||||
|
||||
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
||||
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
||||
onMouseDown: this.stopEventPropagationOutsideContainer
|
||||
}), children);
|
||||
}
|
||||
}]);
|
||||
|
||||
return IsolatedEventContainer;
|
||||
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (IsolatedEventContainer);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@wordpress/components/build-module/keyboard-shortcuts/index.js":
|
||||
@ -10336,19 +10396,18 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __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_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_11__);
|
||||
/* harmony import */ var _frame__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./frame */ "./node_modules/@wordpress/components/build-module/modal/frame.js");
|
||||
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./header */ "./node_modules/@wordpress/components/build-module/modal/header.js");
|
||||
/* harmony import */ var _aria_helper__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./aria-helper */ "./node_modules/@wordpress/components/build-module/modal/aria-helper.js");
|
||||
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_10__);
|
||||
/* harmony import */ var _frame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./frame */ "./node_modules/@wordpress/components/build-module/modal/frame.js");
|
||||
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./header */ "./node_modules/@wordpress/components/build-module/modal/header.js");
|
||||
/* harmony import */ var _aria_helper__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./aria-helper */ "./node_modules/@wordpress/components/build-module/modal/aria-helper.js");
|
||||
/* harmony import */ var _isolated_event_container__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../isolated-event-container */ "./node_modules/@wordpress/components/build-module/isolated-event-container/index.js");
|
||||
|
||||
|
||||
|
||||
@ -10375,6 +10434,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
// Used to count the number of open modals.
|
||||
|
||||
var parentElement,
|
||||
@ -10394,7 +10454,6 @@ function (_Component) {
|
||||
|
||||
_this.prepareDOM();
|
||||
|
||||
_this.stopEventPropagationOutsideModal = _this.stopEventPropagationOutsideModal.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
@ -10470,7 +10529,7 @@ function (_Component) {
|
||||
}, {
|
||||
key: "openFirstModal",
|
||||
value: function openFirstModal() {
|
||||
_aria_helper__WEBPACK_IMPORTED_MODULE_14__["hideApp"](parentElement);
|
||||
_aria_helper__WEBPACK_IMPORTED_MODULE_13__["hideApp"](parentElement);
|
||||
document.body.classList.add(this.props.bodyOpenClassName);
|
||||
}
|
||||
/**
|
||||
@ -10482,17 +10541,7 @@ function (_Component) {
|
||||
key: "closeLastModal",
|
||||
value: function closeLastModal() {
|
||||
document.body.classList.remove(this.props.bodyOpenClassName);
|
||||
_aria_helper__WEBPACK_IMPORTED_MODULE_14__["showApp"]();
|
||||
}
|
||||
/**
|
||||
* Stop all onMouseDown events propagating further - they should only go to the modal
|
||||
* @param {string} event Event object
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "stopEventPropagationOutsideModal",
|
||||
value: function stopEventPropagationOutsideModal(event) {
|
||||
event.stopPropagation();
|
||||
_aria_helper__WEBPACK_IMPORTED_MODULE_13__["showApp"]();
|
||||
}
|
||||
/**
|
||||
* Renders the modal.
|
||||
@ -10521,20 +10570,19 @@ function (_Component) {
|
||||
|
||||
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createPortal"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_9___default()('components-modal__screen-overlay', overlayClassName),
|
||||
onMouseDown: this.stopEventPropagationOutsideModal
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_frame__WEBPACK_IMPORTED_MODULE_12__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_9___default()('components-modal__frame', className),
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createPortal"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_isolated_event_container__WEBPACK_IMPORTED_MODULE_14__["default"], {
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()('components-modal__screen-overlay', overlayClassName)
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_frame__WEBPACK_IMPORTED_MODULE_11__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()('components-modal__frame', className),
|
||||
onRequestClose: onRequestClose,
|
||||
aria: {
|
||||
labelledby: title ? headingId : null,
|
||||
describedby: aria.describedby
|
||||
}
|
||||
}, otherProps), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {
|
||||
}, otherProps), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", {
|
||||
className: 'components-modal__content',
|
||||
tabIndex: "0"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_header__WEBPACK_IMPORTED_MODULE_13__["default"], {
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_header__WEBPACK_IMPORTED_MODULE_12__["default"], {
|
||||
closeLabel: closeButtonLabel,
|
||||
headingId: headingId,
|
||||
icon: icon,
|
||||
@ -10547,13 +10595,13 @@ function (_Component) {
|
||||
}]);
|
||||
|
||||
return Modal;
|
||||
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
||||
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]);
|
||||
|
||||
Modal.defaultProps = {
|
||||
bodyOpenClassName: 'modal-open',
|
||||
role: 'dialog',
|
||||
title: null,
|
||||
onRequestClose: lodash__WEBPACK_IMPORTED_MODULE_10__["noop"],
|
||||
onRequestClose: lodash__WEBPACK_IMPORTED_MODULE_9__["noop"],
|
||||
focusOnMount: true,
|
||||
shouldCloseOnEsc: true,
|
||||
shouldCloseOnClickOutside: true,
|
||||
@ -10565,7 +10613,7 @@ Modal.defaultProps = {
|
||||
describedby: null
|
||||
}
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_11__["withInstanceId"])(Modal));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_10__["withInstanceId"])(Modal));
|
||||
|
||||
|
||||
/***/ }),
|
||||
@ -10861,7 +10909,7 @@ function NavigableMenu(_ref, ref) {
|
||||
stopNavigationEvents: true,
|
||||
onlyBrowserTabstops: false,
|
||||
role: role,
|
||||
"aria-orientation": orientation,
|
||||
"aria-orientation": role === 'presentation' ? null : orientation,
|
||||
eventToOffset: eventToOffset
|
||||
}, rest));
|
||||
}
|
||||
@ -10971,6 +11019,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -10986,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", {
|
||||
@ -11076,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);
|
||||
@ -11195,6 +11250,8 @@ function (_Component) {
|
||||
className: "components-panel__body-toggle",
|
||||
onClick: this.toggle,
|
||||
"aria-expanded": isOpened
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("span", {
|
||||
"aria-hidden": "true"
|
||||
}, isOpened ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_primitives__WEBPACK_IMPORTED_MODULE_11__["SVG"], {
|
||||
className: "components-panel__arrow",
|
||||
width: "24px",
|
||||
@ -11217,7 +11274,7 @@ function (_Component) {
|
||||
d: "M0,0h24v24H0V0z"
|
||||
})), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_primitives__WEBPACK_IMPORTED_MODULE_11__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_primitives__WEBPACK_IMPORTED_MODULE_11__["Path"], {
|
||||
d: "M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"
|
||||
}))), title, icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
||||
})))), title, icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
||||
icon: icon,
|
||||
className: "components-panel__icon",
|
||||
size: 20
|
||||
@ -11500,17 +11557,20 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
|
||||
/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/dom */ "@wordpress/dom");
|
||||
/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_10__);
|
||||
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes");
|
||||
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_11__);
|
||||
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils */ "./node_modules/@wordpress/components/build-module/popover/utils.js");
|
||||
/* harmony import */ var _higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../higher-order/with-focus-return */ "./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js");
|
||||
/* harmony import */ var _higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../higher-order/with-constrained-tabbing */ "./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js");
|
||||
/* harmony import */ var _detect_outside__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./detect-outside */ "./node_modules/@wordpress/components/build-module/popover/detect-outside.js");
|
||||
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../icon-button */ "./node_modules/@wordpress/components/build-module/icon-button/index.js");
|
||||
/* harmony import */ var _scroll_lock__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../scroll-lock */ "./node_modules/@wordpress/components/build-module/scroll-lock/index.js");
|
||||
/* harmony import */ var _slot_fill__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../slot-fill */ "./node_modules/@wordpress/components/build-module/slot-fill/index.js");
|
||||
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "@wordpress/is-shallow-equal");
|
||||
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_10__);
|
||||
/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/dom */ "@wordpress/dom");
|
||||
/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom__WEBPACK_IMPORTED_MODULE_11__);
|
||||
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/keycodes */ "@wordpress/keycodes");
|
||||
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_12__);
|
||||
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./node_modules/@wordpress/components/build-module/popover/utils.js");
|
||||
/* harmony import */ var _higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../higher-order/with-focus-return */ "./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js");
|
||||
/* harmony import */ var _higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../higher-order/with-constrained-tabbing */ "./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js");
|
||||
/* harmony import */ var _detect_outside__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./detect-outside */ "./node_modules/@wordpress/components/build-module/popover/detect-outside.js");
|
||||
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../icon-button */ "./node_modules/@wordpress/components/build-module/icon-button/index.js");
|
||||
/* harmony import */ var _scroll_lock__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../scroll-lock */ "./node_modules/@wordpress/components/build-module/scroll-lock/index.js");
|
||||
/* harmony import */ var _isolated_event_container__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../isolated-event-container */ "./node_modules/@wordpress/components/build-module/isolated-event-container/index.js");
|
||||
/* harmony import */ var _slot_fill__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../slot-fill */ "./node_modules/@wordpress/components/build-module/slot-fill/index.js");
|
||||
|
||||
|
||||
|
||||
@ -11525,6 +11585,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
@ -11543,7 +11604,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
var FocusManaged = Object(_higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_14__["default"])(Object(_higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_13__["default"])(function (_ref) {
|
||||
|
||||
var FocusManaged = Object(_higher_order_with_constrained_tabbing__WEBPACK_IMPORTED_MODULE_15__["default"])(Object(_higher_order_with_focus_return__WEBPACK_IMPORTED_MODULE_14__["default"])(function (_ref) {
|
||||
var children = _ref.children;
|
||||
return children;
|
||||
}));
|
||||
@ -11566,13 +11628,12 @@ function (_Component) {
|
||||
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Popover);
|
||||
|
||||
_this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(Popover).apply(this, arguments));
|
||||
_this.focus = _this.focus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.refresh = _this.refresh.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.getAnchorRect = _this.getAnchorRect.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.updatePopoverSize = _this.updatePopoverSize.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.computePopoverPosition = _this.computePopoverPosition.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.maybeClose = _this.maybeClose.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.throttledRefresh = _this.throttledRefresh.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.refresh = _this.refresh.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.refreshOnAnchorMove = _this.refreshOnAnchorMove.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this)));
|
||||
_this.contentNode = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createRef"])();
|
||||
_this.anchorNode = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createRef"])();
|
||||
_this.state = {
|
||||
@ -11584,7 +11645,10 @@ function (_Component) {
|
||||
contentWidth: null,
|
||||
isMobile: false,
|
||||
popoverSize: null
|
||||
};
|
||||
}; // Property used keep track of the previous anchor rect
|
||||
// used to compute the popover position and size.
|
||||
|
||||
_this.anchorRect = {};
|
||||
return _this;
|
||||
}
|
||||
|
||||
@ -11610,7 +11674,7 @@ function (_Component) {
|
||||
key: "componentDidUpdate",
|
||||
value: function componentDidUpdate(prevProps) {
|
||||
if (prevProps.position !== this.props.position) {
|
||||
this.computePopoverPosition();
|
||||
this.computePopoverPosition(this.state.popoverSize, this.anchorRect);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
@ -11636,7 +11700,7 @@ function (_Component) {
|
||||
*/
|
||||
|
||||
if (isActive) {
|
||||
this.autoRefresh = setInterval(this.throttledRefresh, 500);
|
||||
this.autoRefresh = setInterval(this.refreshOnAnchorMove, 500);
|
||||
} else {
|
||||
clearInterval(this.autoRefresh);
|
||||
}
|
||||
@ -11652,19 +11716,51 @@ function (_Component) {
|
||||
|
||||
this.rafHandle = window.requestAnimationFrame(this.refresh);
|
||||
}
|
||||
/**
|
||||
* Calling refreshOnAnchorMove
|
||||
* will only refresh the popover position if the anchor moves.
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "refreshOnAnchorMove",
|
||||
value: function refreshOnAnchorMove() {
|
||||
var _this$props$getAnchor = this.props.getAnchorRect,
|
||||
getAnchorRect = _this$props$getAnchor === void 0 ? this.getAnchorRect : _this$props$getAnchor;
|
||||
var anchorRect = getAnchorRect(this.anchorNode.current);
|
||||
var didAnchorRectChange = !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_10___default()(anchorRect, this.anchorRect);
|
||||
|
||||
if (didAnchorRectChange) {
|
||||
this.anchorRect = anchorRect;
|
||||
this.computePopoverPosition(this.state.popoverSize, anchorRect);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Calling `refresh()` will force the Popover to recalculate its size and
|
||||
* position. This is useful when a DOM change causes the anchor node to change
|
||||
* position.
|
||||
*
|
||||
* @return {void}
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "refresh",
|
||||
value: function refresh() {
|
||||
var popoverSize = this.updatePopoverSize();
|
||||
this.computePopoverPosition(popoverSize);
|
||||
var _this$props$getAnchor2 = this.props.getAnchorRect,
|
||||
getAnchorRect = _this$props$getAnchor2 === void 0 ? this.getAnchorRect : _this$props$getAnchor2;
|
||||
var anchorRect = getAnchorRect(this.anchorNode.current);
|
||||
var contentRect = this.contentNode.current.getBoundingClientRect();
|
||||
var popoverSize = {
|
||||
width: contentRect.width,
|
||||
height: contentRect.height
|
||||
};
|
||||
var didPopoverSizeChange = !this.state.popoverSize || popoverSize.width !== this.state.popoverSize.width || popoverSize.height !== this.state.popoverSize.height;
|
||||
|
||||
if (didPopoverSizeChange) {
|
||||
this.setState({
|
||||
popoverSize: popoverSize
|
||||
});
|
||||
}
|
||||
|
||||
this.anchorRect = anchorRect;
|
||||
this.computePopoverPosition(popoverSize, anchorRect);
|
||||
}
|
||||
}, {
|
||||
key: "focus",
|
||||
@ -11678,7 +11774,7 @@ function (_Component) {
|
||||
if (focusOnMount === 'firstElement') {
|
||||
// Find first tabbable node within content and shift focus, falling
|
||||
// back to the popover panel itself.
|
||||
var firstTabbable = _wordpress_dom__WEBPACK_IMPORTED_MODULE_10__["focus"].tabbable.find(this.contentNode.current)[0];
|
||||
var firstTabbable = _wordpress_dom__WEBPACK_IMPORTED_MODULE_11__["focus"].tabbable.find(this.contentNode.current)[0];
|
||||
|
||||
if (firstTabbable) {
|
||||
firstTabbable.focus();
|
||||
@ -11721,34 +11817,15 @@ function (_Component) {
|
||||
bottom: rect.bottom - bottomPad
|
||||
};
|
||||
}
|
||||
}, {
|
||||
key: "updatePopoverSize",
|
||||
value: function updatePopoverSize() {
|
||||
var popoverSize = {
|
||||
width: this.contentNode.current.scrollWidth,
|
||||
height: this.contentNode.current.scrollHeight
|
||||
};
|
||||
|
||||
if (!this.state.popoverSize || popoverSize.width !== this.state.popoverSize.width || popoverSize.height !== this.state.popoverSize.height) {
|
||||
this.setState({
|
||||
popoverSize: popoverSize
|
||||
});
|
||||
return popoverSize;
|
||||
}
|
||||
|
||||
return this.state.popoverSize;
|
||||
}
|
||||
}, {
|
||||
key: "computePopoverPosition",
|
||||
value: function computePopoverPosition(popoverSize) {
|
||||
value: function computePopoverPosition(popoverSize, anchorRect) {
|
||||
var _this$props = this.props,
|
||||
_this$props$getAnchor = _this$props.getAnchorRect,
|
||||
getAnchorRect = _this$props$getAnchor === void 0 ? this.getAnchorRect : _this$props$getAnchor,
|
||||
_this$props$position = _this$props.position,
|
||||
position = _this$props$position === void 0 ? 'top' : _this$props$position,
|
||||
expandOnMobile = _this$props.expandOnMobile;
|
||||
|
||||
var newPopoverPosition = Object(_utils__WEBPACK_IMPORTED_MODULE_12__["computePopoverPosition"])(getAnchorRect(this.anchorNode.current), popoverSize || this.state.popoverSize, position, expandOnMobile);
|
||||
var newPopoverPosition = Object(_utils__WEBPACK_IMPORTED_MODULE_13__["computePopoverPosition"])(anchorRect, popoverSize, position, expandOnMobile);
|
||||
|
||||
if (this.state.yAxis !== newPopoverPosition.yAxis || this.state.xAxis !== newPopoverPosition.xAxis || this.state.popoverLeft !== newPopoverPosition.popoverLeft || this.state.popoverTop !== newPopoverPosition.popoverTop || this.state.contentHeight !== newPopoverPosition.contentHeight || this.state.contentWidth !== newPopoverPosition.contentWidth || this.state.isMobile !== newPopoverPosition.isMobile) {
|
||||
this.setState(newPopoverPosition);
|
||||
@ -11761,7 +11838,7 @@ function (_Component) {
|
||||
onKeyDown = _this$props2.onKeyDown,
|
||||
onClose = _this$props2.onClose; // Close on escape
|
||||
|
||||
if (event.keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_11__["ESCAPE"] && onClose) {
|
||||
if (event.keyCode === _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_12__["ESCAPE"] && onClose) {
|
||||
event.stopPropagation();
|
||||
onClose();
|
||||
} // Preserve original content prop behavior
|
||||
@ -11808,9 +11885,9 @@ function (_Component) {
|
||||
|
||||
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
||||
|
||||
var content = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_detect_outside__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
||||
var content = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_detect_outside__WEBPACK_IMPORTED_MODULE_16__["default"], {
|
||||
onClickOutside: onClickOutside
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_isolated_event_container__WEBPACK_IMPORTED_MODULE_19__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
||||
className: classes,
|
||||
style: {
|
||||
top: !isMobile && popoverTop ? popoverTop + 'px' : undefined,
|
||||
@ -11823,7 +11900,7 @@ function (_Component) {
|
||||
className: "components-popover__header"
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", {
|
||||
className: "components-popover__header-title"
|
||||
}, headerTitle), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_icon_button__WEBPACK_IMPORTED_MODULE_16__["default"], {
|
||||
}, headerTitle), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_icon_button__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
||||
className: "components-popover__close",
|
||||
icon: "no-alt",
|
||||
onClick: onClose
|
||||
@ -11844,20 +11921,20 @@ function (_Component) {
|
||||
content = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(FocusManaged, null, content);
|
||||
}
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_slot_fill__WEBPACK_IMPORTED_MODULE_18__["Consumer"], null, function (_ref2) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_slot_fill__WEBPACK_IMPORTED_MODULE_20__["Consumer"], null, function (_ref2) {
|
||||
var getSlot = _ref2.getSlot;
|
||||
|
||||
// In case there is no slot context in which to render,
|
||||
// default to an in-place rendering.
|
||||
if (getSlot && getSlot(SLOT_NAME)) {
|
||||
content = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_slot_fill__WEBPACK_IMPORTED_MODULE_18__["Fill"], {
|
||||
content = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_slot_fill__WEBPACK_IMPORTED_MODULE_20__["Fill"], {
|
||||
name: SLOT_NAME
|
||||
}, content);
|
||||
}
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", {
|
||||
ref: _this3.anchorNode
|
||||
}, content, isMobile && expandOnMobile && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_scroll_lock__WEBPACK_IMPORTED_MODULE_17__["default"], null));
|
||||
}, content, isMobile && expandOnMobile && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_scroll_lock__WEBPACK_IMPORTED_MODULE_18__["default"], null));
|
||||
});
|
||||
}
|
||||
}]);
|
||||
@ -11872,7 +11949,7 @@ Popover.defaultProps = {
|
||||
var PopoverContainer = Popover;
|
||||
|
||||
PopoverContainer.Slot = function () {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_slot_fill__WEBPACK_IMPORTED_MODULE_18__["Slot"], {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_slot_fill__WEBPACK_IMPORTED_MODULE_20__["Slot"], {
|
||||
bubblesVirtually: true,
|
||||
name: SLOT_NAME
|
||||
});
|
||||
@ -11908,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
|
||||
*
|
||||
@ -11922,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 = {
|
||||
@ -13177,7 +13265,10 @@ function (_Component) {
|
||||
key: "componentDidMount",
|
||||
value: function componentDidMount() {
|
||||
this.isStillMounted = true;
|
||||
this.fetch(this.props);
|
||||
this.fetch(this.props); // Only debounce once the initial fetch occurs to ensure that the first
|
||||
// renders show data as soon as possible.
|
||||
|
||||
this.fetch = Object(lodash__WEBPACK_IMPORTED_MODULE_7__["debounce"])(this.fetch, 500);
|
||||
}
|
||||
}, {
|
||||
key: "componentWillUnmount",
|
||||
@ -13196,6 +13287,10 @@ function (_Component) {
|
||||
value: function fetch(props) {
|
||||
var _this2 = this;
|
||||
|
||||
if (!this.isStillMounted) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (null !== this.state.response) {
|
||||
this.setState({
|
||||
response: null
|
||||
@ -13207,17 +13302,19 @@ function (_Component) {
|
||||
attributes = _props$attributes === void 0 ? null : _props$attributes,
|
||||
_props$urlQueryArgs = props.urlQueryArgs,
|
||||
urlQueryArgs = _props$urlQueryArgs === void 0 ? {} : _props$urlQueryArgs;
|
||||
var path = rendererPath(block, attributes, urlQueryArgs);
|
||||
return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_9___default()({
|
||||
var path = rendererPath(block, attributes, urlQueryArgs); // Store the latest fetch request so that when we process it, we can
|
||||
// check if it is the current request, to avoid race conditions on slow networks.
|
||||
|
||||
var fetchRequest = this.currentFetchRequest = _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_9___default()({
|
||||
path: path
|
||||
}).then(function (response) {
|
||||
if (_this2.isStillMounted && response && response.rendered) {
|
||||
if (_this2.isStillMounted && fetchRequest === _this2.currentFetchRequest && response && response.rendered) {
|
||||
_this2.setState({
|
||||
response: response.rendered
|
||||
});
|
||||
}
|
||||
}).catch(function (error) {
|
||||
if (_this2.isStillMounted) {
|
||||
if (_this2.isStillMounted && fetchRequest === _this2.currentFetchRequest) {
|
||||
_this2.setState({
|
||||
response: {
|
||||
error: true,
|
||||
@ -13226,6 +13323,7 @@ function (_Component) {
|
||||
});
|
||||
}
|
||||
});
|
||||
return fetchRequest;
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
@ -42955,17 +43053,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
136
wp-includes/js/dist/compose.js
vendored
136
wp-includes/js/dist/compose.js
vendored
@ -394,7 +394,7 @@ var ifCondition = function ifCondition(predicate) {
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/compose/build-module/index.js ***!
|
||||
\***************************************************************/
|
||||
/*! exports provided: createHigherOrderComponent, ifCondition, pure, remountOnPropChange, withGlobalEvents, withInstanceId, withSafeTimeout, withState, compose */
|
||||
/*! exports provided: createHigherOrderComponent, ifCondition, pure, withGlobalEvents, withInstanceId, withSafeTimeout, withState, compose */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -412,20 +412,17 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _pure__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pure */ "./node_modules/@wordpress/compose/build-module/pure/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pure", function() { return _pure__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
||||
|
||||
/* harmony import */ var _remount_on_prop_change__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./remount-on-prop-change */ "./node_modules/@wordpress/compose/build-module/remount-on-prop-change/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "remountOnPropChange", function() { return _remount_on_prop_change__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
||||
/* harmony import */ var _with_global_events__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./with-global-events */ "./node_modules/@wordpress/compose/build-module/with-global-events/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withGlobalEvents", function() { return _with_global_events__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
||||
|
||||
/* harmony import */ var _with_global_events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./with-global-events */ "./node_modules/@wordpress/compose/build-module/with-global-events/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withGlobalEvents", function() { return _with_global_events__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
||||
/* harmony import */ var _with_instance_id__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./with-instance-id */ "./node_modules/@wordpress/compose/build-module/with-instance-id/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withInstanceId", function() { return _with_instance_id__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
||||
|
||||
/* harmony import */ var _with_instance_id__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./with-instance-id */ "./node_modules/@wordpress/compose/build-module/with-instance-id/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withInstanceId", function() { return _with_instance_id__WEBPACK_IMPORTED_MODULE_6__["default"]; });
|
||||
/* harmony import */ var _with_safe_timeout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./with-safe-timeout */ "./node_modules/@wordpress/compose/build-module/with-safe-timeout/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withSafeTimeout", function() { return _with_safe_timeout__WEBPACK_IMPORTED_MODULE_6__["default"]; });
|
||||
|
||||
/* harmony import */ var _with_safe_timeout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./with-safe-timeout */ "./node_modules/@wordpress/compose/build-module/with-safe-timeout/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withSafeTimeout", function() { return _with_safe_timeout__WEBPACK_IMPORTED_MODULE_7__["default"]; });
|
||||
|
||||
/* harmony import */ var _with_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./with-state */ "./node_modules/@wordpress/compose/build-module/with-state/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withState", function() { return _with_state__WEBPACK_IMPORTED_MODULE_8__["default"]; });
|
||||
/* harmony import */ var _with_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./with-state */ "./node_modules/@wordpress/compose/build-module/with-state/index.js");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withState", function() { return _with_state__WEBPACK_IMPORTED_MODULE_7__["default"]; });
|
||||
|
||||
/**
|
||||
* External dependencies
|
||||
@ -438,7 +435,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Composes multiple higher-order components into a single higher-order component. Performs right-to-left function
|
||||
* composition, where each successive invocation is supplied the return value of the previous.
|
||||
@ -556,109 +552,6 @@ var pure = Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_7__["d
|
||||
/* harmony default export */ __webpack_exports__["default"] = (pure);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@wordpress/compose/build-module/remount-on-prop-change/index.js":
|
||||
/*!**************************************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/compose/build-module/remount-on-prop-change/index.js ***!
|
||||
\**************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* 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_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __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_3__ = __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_4__ = __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_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.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 _create_higher_order_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../create-higher-order-component */ "./node_modules/@wordpress/compose/build-module/create-higher-order-component/index.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Higher-order component creator, creating a new component that remounts
|
||||
* the wrapped component each time a given prop value changes.
|
||||
*
|
||||
* @param {string} propName Prop name to monitor.
|
||||
*
|
||||
* @return {Function} Higher-order component.
|
||||
*/
|
||||
|
||||
var remountOnPropChange = function remountOnPropChange(propName) {
|
||||
return Object(_create_higher_order_component__WEBPACK_IMPORTED_MODULE_8__["default"])(function (WrappedComponent) {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7___default()('remountOnPropChange', {
|
||||
plugin: 'Gutenberg',
|
||||
version: '4.4.0'
|
||||
});
|
||||
return (
|
||||
/*#__PURE__*/
|
||||
function (_Component) {
|
||||
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(_class, _Component);
|
||||
|
||||
function _class(props) {
|
||||
var _this;
|
||||
|
||||
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, _class);
|
||||
|
||||
_this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(_class).apply(this, arguments));
|
||||
_this.state = {
|
||||
propChangeId: 0,
|
||||
propValue: props[propName]
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
|
||||
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(_class, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
||||
key: this.state.propChangeId
|
||||
}, this.props));
|
||||
}
|
||||
}], [{
|
||||
key: "getDerivedStateFromProps",
|
||||
value: function getDerivedStateFromProps(props, state) {
|
||||
if (props[propName] === state.propValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
propChangeId: state.propChangeId + 1,
|
||||
propValue: props[propName]
|
||||
};
|
||||
}
|
||||
}]);
|
||||
|
||||
return _class;
|
||||
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"])
|
||||
);
|
||||
}, 'remountOnPropChange');
|
||||
};
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = (remountOnPropChange);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@wordpress/compose/build-module/with-global-events/index.js":
|
||||
@ -1166,17 +1059,6 @@ function withState() {
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/deprecated":
|
||||
/*!*********************************************!*\
|
||||
!*** external {"this":["wp","deprecated"]} ***!
|
||||
\*********************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["deprecated"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/element":
|
||||
|
2
wp-includes/js/dist/compose.js.map
vendored
2
wp-includes/js/dist/compose.js.map
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
110
wp-includes/js/dist/core-data.js
vendored
110
wp-includes/js/dist/core-data.js
vendored
@ -319,7 +319,7 @@ function _toConsumableArray(arr) {
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/core-data/build-module/actions.js ***!
|
||||
\*******************************************************************/
|
||||
/*! exports provided: receiveUserQuery, addEntities, receiveEntityRecords, receiveThemeSupports, receiveEmbedPreview, saveEntityRecord */
|
||||
/*! exports provided: receiveUserQuery, addEntities, receiveEntityRecords, receiveThemeSupports, receiveEmbedPreview, saveEntityRecord, receiveUploadPermissions */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -330,6 +330,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveThemeSupports", function() { return receiveThemeSupports; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveEmbedPreview", function() { return receiveEmbedPreview; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveEntityRecord", function() { return saveEntityRecord; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveUploadPermissions", function() { return receiveUploadPermissions; });
|
||||
/* 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 lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
||||
@ -500,6 +501,20 @@ function saveEntityRecord(kind, name, record) {
|
||||
}
|
||||
}, _marked, this);
|
||||
}
|
||||
/**
|
||||
* Returns an action object used in signalling that Upload permissions have been received.
|
||||
*
|
||||
* @param {boolean} hasUploadPermissions Does the user have permission to upload files?
|
||||
*
|
||||
* @return {Object} Action object.
|
||||
*/
|
||||
|
||||
function receiveUploadPermissions(hasUploadPermissions) {
|
||||
return {
|
||||
type: 'RECEIVE_UPLOAD_PERMISSIONS',
|
||||
hasUploadPermissions: hasUploadPermissions
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
@ -799,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";
|
||||
@ -893,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);
|
||||
|
||||
|
||||
/***/ }),
|
||||
@ -1338,7 +1352,7 @@ var getQueriedItems = Object(rememo__WEBPACK_IMPORTED_MODULE_0__["default"])(fun
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/core-data/build-module/reducer.js ***!
|
||||
\*******************************************************************/
|
||||
/*! exports provided: terms, users, taxonomies, themeSupports, entitiesConfig, entities, embedPreviews, default */
|
||||
/*! exports provided: terms, users, taxonomies, themeSupports, entitiesConfig, entities, embedPreviews, hasUploadPermissions, default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -1350,6 +1364,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "entitiesConfig", function() { return entitiesConfig; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "entities", function() { return entities; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "embedPreviews", function() { return embedPreviews; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasUploadPermissions", function() { return hasUploadPermissions; });
|
||||
/* 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 _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");
|
||||
@ -1581,13 +1596,34 @@ function embedPreviews() {
|
||||
|
||||
return state;
|
||||
}
|
||||
/**
|
||||
* Reducer managing Upload permissions.
|
||||
*
|
||||
* @param {Object} state Current state.
|
||||
* @param {Object} action Dispatched action.
|
||||
*
|
||||
* @return {Object} Updated state.
|
||||
*/
|
||||
|
||||
function hasUploadPermissions() {
|
||||
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var action = arguments.length > 1 ? arguments[1] : undefined;
|
||||
|
||||
switch (action.type) {
|
||||
case 'RECEIVE_UPLOAD_PERMISSIONS':
|
||||
return action.hasUploadPermissions;
|
||||
}
|
||||
|
||||
return state;
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["combineReducers"])({
|
||||
terms: terms,
|
||||
users: users,
|
||||
taxonomies: taxonomies,
|
||||
themeSupports: themeSupports,
|
||||
entities: entities,
|
||||
embedPreviews: embedPreviews
|
||||
embedPreviews: embedPreviews,
|
||||
hasUploadPermissions: hasUploadPermissions
|
||||
}));
|
||||
|
||||
|
||||
@ -1597,7 +1633,7 @@ function embedPreviews() {
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/core-data/build-module/resolvers.js ***!
|
||||
\*********************************************************************/
|
||||
/*! exports provided: getAuthors, getEntityRecord, getEntityRecords, getThemeSupports, getEmbedPreview */
|
||||
/*! exports provided: getAuthors, getEntityRecord, getEntityRecords, getThemeSupports, getEmbedPreview, hasUploadPermissions */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -1607,6 +1643,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntityRecords", function() { return getEntityRecords; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeSupports", function() { return getThemeSupports; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEmbedPreview", function() { return getEmbedPreview; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasUploadPermissions", function() { return hasUploadPermissions; });
|
||||
/* 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 lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
||||
@ -1631,7 +1668,10 @@ regeneratorRuntime.mark(getEntityRecords),
|
||||
regeneratorRuntime.mark(getThemeSupports),
|
||||
_marked5 =
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(getEmbedPreview);
|
||||
regeneratorRuntime.mark(getEmbedPreview),
|
||||
_marked6 =
|
||||
/*#__PURE__*/
|
||||
regeneratorRuntime.mark(hasUploadPermissions);
|
||||
|
||||
/**
|
||||
* External dependencies
|
||||
@ -1857,6 +1897,46 @@ function getEmbedPreview(url) {
|
||||
}
|
||||
}, _marked5, this, [[0, 8]]);
|
||||
}
|
||||
/**
|
||||
* Requests Upload Permissions from the REST API.
|
||||
*/
|
||||
|
||||
function hasUploadPermissions() {
|
||||
var response, allowHeader;
|
||||
return regeneratorRuntime.wrap(function hasUploadPermissions$(_context6) {
|
||||
while (1) {
|
||||
switch (_context6.prev = _context6.next) {
|
||||
case 0:
|
||||
_context6.next = 2;
|
||||
return Object(_controls__WEBPACK_IMPORTED_MODULE_5__["apiFetch"])({
|
||||
path: '/wp/v2/media',
|
||||
method: 'OPTIONS',
|
||||
parse: false
|
||||
});
|
||||
|
||||
case 2:
|
||||
response = _context6.sent;
|
||||
|
||||
if (Object(lodash__WEBPACK_IMPORTED_MODULE_1__["hasIn"])(response, ['headers', 'get'])) {
|
||||
// If the request is fetched using the fetch api, the header can be
|
||||
// retrieved using the 'get' method.
|
||||
allowHeader = response.headers.get('allow');
|
||||
} else {
|
||||
// If the request was preloaded server-side and is returned by the
|
||||
// preloading middleware, the header will be a simple property.
|
||||
allowHeader = Object(lodash__WEBPACK_IMPORTED_MODULE_1__["get"])(response, ['headers', 'Allow'], '');
|
||||
}
|
||||
|
||||
_context6.next = 6;
|
||||
return Object(_actions__WEBPACK_IMPORTED_MODULE_3__["receiveUploadPermissions"])(Object(lodash__WEBPACK_IMPORTED_MODULE_1__["includes"])(allowHeader, 'POST'));
|
||||
|
||||
case 6:
|
||||
case "end":
|
||||
return _context6.stop();
|
||||
}
|
||||
}
|
||||
}, _marked6, this);
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
@ -1865,7 +1945,7 @@ function getEmbedPreview(url) {
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/core-data/build-module/selectors.js ***!
|
||||
\*********************************************************************/
|
||||
/*! exports provided: isRequestingEmbedPreview, getAuthors, getUserQueryResults, getEntitiesByKind, getEntity, getEntityRecord, getEntityRecords, getThemeSupports, getEmbedPreview, isPreviewEmbedFallback */
|
||||
/*! exports provided: isRequestingEmbedPreview, getAuthors, getUserQueryResults, getEntitiesByKind, getEntity, getEntityRecord, getEntityRecords, getThemeSupports, getEmbedPreview, isPreviewEmbedFallback, hasUploadPermissions */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -1880,6 +1960,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeSupports", function() { return getThemeSupports; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEmbedPreview", function() { return getEmbedPreview; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPreviewEmbedFallback", function() { return isPreviewEmbedFallback; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasUploadPermissions", function() { return hasUploadPermissions; });
|
||||
/* harmony import */ var rememo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rememo */ "./node_modules/rememo/es/rememo.js");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
||||
@ -2072,6 +2153,17 @@ function isPreviewEmbedFallback(state, url) {
|
||||
|
||||
return preview.html === oEmbedLinkCheck;
|
||||
}
|
||||
/**
|
||||
* Return Upload Permissions.
|
||||
*
|
||||
* @param {Object} state State tree.
|
||||
*
|
||||
* @return {boolean} Upload Permissions.
|
||||
*/
|
||||
|
||||
function hasUploadPermissions(state) {
|
||||
return state.hasUploadPermissions;
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
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
226
wp-includes/js/dist/data.js
vendored
226
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);
|
||||
@ -772,13 +767,15 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __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_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.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_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "@wordpress/is-shallow-equal");
|
||||
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7__);
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
|
||||
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__);
|
||||
/* harmony import */ var _registry_provider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../registry-provider */ "./node_modules/@wordpress/data/build-module/components/registry-provider/index.js");
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
|
||||
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/is-shallow-equal */ "@wordpress/is-shallow-equal");
|
||||
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__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__);
|
||||
/* harmony import */ var _registry_provider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../registry-provider */ "./node_modules/@wordpress/data/build-module/components/registry-provider/index.js");
|
||||
|
||||
|
||||
|
||||
|
||||
@ -810,7 +807,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
var withSelect = function withSelect(mapSelectToProps) {
|
||||
return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__["createHigherOrderComponent"])(function (WrappedComponent) {
|
||||
return Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__["createHigherOrderComponent"])(function (WrappedComponent) {
|
||||
/**
|
||||
* Default merge props. A constant value is used as the fallback since it
|
||||
* can be more efficiently shallow compared in case component is repeatedly
|
||||
@ -842,6 +839,7 @@ var withSelect = function withSelect(mapSelectToProps) {
|
||||
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ComponentWithSelect);
|
||||
|
||||
_this = Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__["default"])(ComponentWithSelect).call(this, props));
|
||||
_this.onStoreChange = _this.onStoreChange.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__["default"])(_this)));
|
||||
|
||||
_this.subscribe(props.registry);
|
||||
|
||||
@ -852,7 +850,14 @@ var withSelect = function withSelect(mapSelectToProps) {
|
||||
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(ComponentWithSelect, [{
|
||||
key: "componentDidMount",
|
||||
value: function componentDidMount() {
|
||||
this.canRunSelection = true;
|
||||
this.canRunSelection = true; // A state change may have occurred between the constructor and
|
||||
// mount of the component (e.g. during the wrapped component's own
|
||||
// constructor), in which case selection should be rerun.
|
||||
|
||||
if (this.hasQueuedSelection) {
|
||||
this.hasQueuedSelection = false;
|
||||
this.onStoreChange();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "componentWillUnmount",
|
||||
@ -873,7 +878,7 @@ var withSelect = function withSelect(mapSelectToProps) {
|
||||
// `mergeProps` to rendered component if and only if updated.
|
||||
|
||||
|
||||
var hasPropsChanged = hasRegistryChanged || !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7___default()(this.props.ownProps, nextProps.ownProps); // Only render if props have changed or merge props have been updated
|
||||
var hasPropsChanged = hasRegistryChanged || !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_8___default()(this.props.ownProps, nextProps.ownProps); // Only render if props have changed or merge props have been updated
|
||||
// from the store subscriber.
|
||||
|
||||
if (this.state === nextState && !hasPropsChanged) {
|
||||
@ -883,7 +888,7 @@ var withSelect = function withSelect(mapSelectToProps) {
|
||||
if (hasPropsChanged) {
|
||||
var nextMergeProps = getNextMergeProps(nextProps);
|
||||
|
||||
if (!_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7___default()(this.mergeProps, nextMergeProps)) {
|
||||
if (!_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_8___default()(this.mergeProps, nextMergeProps)) {
|
||||
// If merge props change as a result of the incoming props,
|
||||
// they should be reflected as such in the upcoming render.
|
||||
// While side effects are discouraged in lifecycle methods,
|
||||
@ -899,47 +904,48 @@ var withSelect = function withSelect(mapSelectToProps) {
|
||||
|
||||
return true;
|
||||
}
|
||||
}, {
|
||||
key: "onStoreChange",
|
||||
value: function onStoreChange() {
|
||||
if (!this.canRunSelection) {
|
||||
this.hasQueuedSelection = true;
|
||||
return;
|
||||
}
|
||||
|
||||
var nextMergeProps = getNextMergeProps(this.props);
|
||||
|
||||
if (_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_8___default()(this.mergeProps, nextMergeProps)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.mergeProps = nextMergeProps; // Schedule an update. Merge props are not assigned to state since
|
||||
// derivation of merge props from incoming props occurs within
|
||||
// shouldComponentUpdate, where setState is not allowed. setState
|
||||
// is used here instead of forceUpdate because forceUpdate bypasses
|
||||
// shouldComponentUpdate altogether, which isn't desireable if both
|
||||
// state and props change within the same render. Unfortunately,
|
||||
// this requires that next merge props are generated twice.
|
||||
|
||||
this.setState({});
|
||||
}
|
||||
}, {
|
||||
key: "subscribe",
|
||||
value: function subscribe(registry) {
|
||||
var _this2 = this;
|
||||
|
||||
this.unsubscribe = registry.subscribe(function () {
|
||||
if (!_this2.canRunSelection) {
|
||||
return;
|
||||
}
|
||||
|
||||
var nextMergeProps = getNextMergeProps(_this2.props);
|
||||
|
||||
if (_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_7___default()(_this2.mergeProps, nextMergeProps)) {
|
||||
return;
|
||||
}
|
||||
|
||||
_this2.mergeProps = nextMergeProps; // Schedule an update. Merge props are not assigned to state
|
||||
// because derivation of merge props from incoming props occurs
|
||||
// within shouldComponentUpdate, where setState is not allowed.
|
||||
// setState is used here instead of forceUpdate because forceUpdate
|
||||
// bypasses shouldComponentUpdate altogether, which isn't desireable
|
||||
// if both state and props change within the same render.
|
||||
// Unfortunately this requires that next merge props are generated
|
||||
// twice.
|
||||
|
||||
_this2.setState({});
|
||||
});
|
||||
this.unsubscribe = registry.subscribe(this.onStoreChange);
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props.ownProps, this.mergeProps));
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props.ownProps, this.mergeProps));
|
||||
}
|
||||
}]);
|
||||
|
||||
return ComponentWithSelect;
|
||||
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Component"]);
|
||||
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]);
|
||||
|
||||
return function (ownProps) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_registry_provider__WEBPACK_IMPORTED_MODULE_9__["RegistryConsumer"], null, function (registry) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(ComponentWithSelect, {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(_registry_provider__WEBPACK_IMPORTED_MODULE_10__["RegistryConsumer"], null, function (registry) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(ComponentWithSelect, {
|
||||
ownProps: ownProps,
|
||||
registry: registry
|
||||
});
|
||||
@ -973,7 +979,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/data/build-module/index.js ***!
|
||||
\************************************************************/
|
||||
/*! exports provided: withSelect, withDispatch, RegistryProvider, RegistryConsumer, createRegistry, plugins, combineReducers, select, dispatch, subscribe, registerGenericStore, registerStore, registerReducer, registerActions, registerSelectors, registerResolvers, use */
|
||||
/*! exports provided: withSelect, withDispatch, RegistryProvider, RegistryConsumer, createRegistry, plugins, combineReducers, select, dispatch, subscribe, registerGenericStore, registerStore, use */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
@ -983,10 +989,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribe", function() { return subscribe; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerGenericStore", function() { return registerGenericStore; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerStore", function() { return registerStore; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerReducer", function() { return registerReducer; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerActions", function() { return registerActions; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerSelectors", function() { return registerSelectors; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerResolvers", function() { return registerResolvers; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "use", function() { return use; });
|
||||
/* harmony import */ var turbo_combine_reducers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! turbo-combine-reducers */ "./node_modules/turbo-combine-reducers/index.js");
|
||||
/* harmony import */ var turbo_combine_reducers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(turbo_combine_reducers__WEBPACK_IMPORTED_MODULE_0__);
|
||||
@ -1040,10 +1042,6 @@ var dispatch = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].dispatc
|
||||
var subscribe = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].subscribe;
|
||||
var registerGenericStore = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].registerGenericStore;
|
||||
var registerStore = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].registerStore;
|
||||
var registerReducer = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].registerReducer;
|
||||
var registerActions = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].registerActions;
|
||||
var registerSelectors = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].registerSelectors;
|
||||
var registerResolvers = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].registerResolvers;
|
||||
var use = _default_registry__WEBPACK_IMPORTED_MODULE_1__["default"].use;
|
||||
|
||||
|
||||
@ -1091,36 +1089,15 @@ __webpack_require__.r(__webpack_exports__);
|
||||
*/
|
||||
|
||||
function createNamespace(key, options, registry) {
|
||||
// TODO: After register[Reducer|Actions|Selectors|Resolvers] are deprecated and removed,
|
||||
// this function can be greatly simplified because it should no longer be called to modify
|
||||
// a namespace, but only to create one, and only once for each namespace.
|
||||
// TODO: After removing `registry.namespaces`and making stores immutable after create,
|
||||
// reducer, store, actinos, selectors, and resolvers can all be removed from here.
|
||||
var _ref = registry.namespaces[key] || {},
|
||||
reducer = _ref.reducer,
|
||||
store = _ref.store,
|
||||
actions = _ref.actions,
|
||||
selectors = _ref.selectors,
|
||||
resolvers = _ref.resolvers;
|
||||
|
||||
if (options.reducer) {
|
||||
reducer = options.reducer;
|
||||
store = createReduxStore(reducer, key, registry);
|
||||
}
|
||||
var reducer = options.reducer;
|
||||
var store = createReduxStore(reducer, key, registry);
|
||||
var selectors, actions, resolvers;
|
||||
|
||||
if (options.actions) {
|
||||
if (!store) {
|
||||
throw new TypeError('Cannot specify actions when no reducer is present');
|
||||
}
|
||||
|
||||
actions = mapActions(options.actions, store);
|
||||
}
|
||||
|
||||
if (options.selectors) {
|
||||
if (!store) {
|
||||
throw new TypeError('Cannot specify selectors when no reducer is present');
|
||||
}
|
||||
|
||||
selectors = mapSelectors(options.selectors, store);
|
||||
}
|
||||
|
||||
@ -1152,7 +1129,9 @@ function createNamespace(key, options, registry) {
|
||||
listener();
|
||||
}
|
||||
});
|
||||
};
|
||||
}; // This can be simplified to just { subscribe, getSelectors, getActions }
|
||||
// Once we remove the use function.
|
||||
|
||||
|
||||
return {
|
||||
reducer: reducer,
|
||||
@ -1815,10 +1794,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* 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 lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "lodash");
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/deprecated */ "@wordpress/deprecated");
|
||||
/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _namespace_store_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./namespace-store.js */ "./node_modules/@wordpress/data/build-module/namespace-store.js");
|
||||
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./store */ "./node_modules/@wordpress/data/build-module/store/index.js");
|
||||
/* harmony import */ var _namespace_store_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./namespace-store.js */ "./node_modules/@wordpress/data/build-module/namespace-store.js");
|
||||
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./store */ "./node_modules/@wordpress/data/build-module/store/index.js");
|
||||
|
||||
|
||||
|
||||
@ -1826,11 +1803,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -1970,66 +1942,6 @@ function createRegistry() {
|
||||
select: select,
|
||||
dispatch: dispatch,
|
||||
use: use
|
||||
}; //
|
||||
// Deprecated
|
||||
//
|
||||
|
||||
registry.registerReducer = function (reducerKey, reducer) {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default()('registry.registerReducer', {
|
||||
alternative: 'registry.registerStore',
|
||||
plugin: 'Gutenberg',
|
||||
version: '4.4.0'
|
||||
});
|
||||
var namespace = Object(_namespace_store_js__WEBPACK_IMPORTED_MODULE_4__["default"])(reducerKey, {
|
||||
reducer: reducer
|
||||
}, registry);
|
||||
registerGenericStore(reducerKey, namespace);
|
||||
return namespace.store;
|
||||
}; //
|
||||
// Deprecated
|
||||
//
|
||||
|
||||
|
||||
registry.registerActions = function (reducerKey, actions) {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default()('registry.registerActions', {
|
||||
alternative: 'registry.registerStore',
|
||||
plugin: 'Gutenberg',
|
||||
version: '4.4.0'
|
||||
});
|
||||
var namespace = Object(_namespace_store_js__WEBPACK_IMPORTED_MODULE_4__["default"])(reducerKey, {
|
||||
actions: actions
|
||||
}, registry);
|
||||
registerGenericStore(reducerKey, namespace);
|
||||
}; //
|
||||
// Deprecated
|
||||
//
|
||||
|
||||
|
||||
registry.registerSelectors = function (reducerKey, selectors) {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default()('registry.registerSelectors', {
|
||||
alternative: 'registry.registerStore',
|
||||
plugin: 'Gutenberg',
|
||||
version: '4.4.0'
|
||||
});
|
||||
var namespace = Object(_namespace_store_js__WEBPACK_IMPORTED_MODULE_4__["default"])(reducerKey, {
|
||||
selectors: selectors
|
||||
}, registry);
|
||||
registerGenericStore(reducerKey, namespace);
|
||||
}; //
|
||||
// Deprecated
|
||||
//
|
||||
|
||||
|
||||
registry.registerResolvers = function (reducerKey, resolvers) {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default()('registry.registerResolvers', {
|
||||
alternative: 'registry.registerStore',
|
||||
plugin: 'Gutenberg',
|
||||
version: '4.4.0'
|
||||
});
|
||||
var namespace = Object(_namespace_store_js__WEBPACK_IMPORTED_MODULE_4__["default"])(reducerKey, {
|
||||
resolvers: resolvers
|
||||
}, registry);
|
||||
registerGenericStore(reducerKey, namespace);
|
||||
};
|
||||
/**
|
||||
* Registers a standard `@wordpress/data` store.
|
||||
@ -2040,13 +1952,12 @@ function createRegistry() {
|
||||
* @return {Object} Registered store object.
|
||||
*/
|
||||
|
||||
|
||||
registry.registerStore = function (reducerKey, options) {
|
||||
if (!options.reducer) {
|
||||
throw new TypeError('Must specify store reducer');
|
||||
}
|
||||
|
||||
var namespace = Object(_namespace_store_js__WEBPACK_IMPORTED_MODULE_4__["default"])(reducerKey, options, registry);
|
||||
var namespace = Object(_namespace_store_js__WEBPACK_IMPORTED_MODULE_3__["default"])(reducerKey, options, registry);
|
||||
registerGenericStore(reducerKey, namespace);
|
||||
return namespace.store;
|
||||
}; //
|
||||
@ -2061,7 +1972,7 @@ function createRegistry() {
|
||||
}
|
||||
|
||||
Object.entries(Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
||||
'core/data': _store__WEBPACK_IMPORTED_MODULE_5__["default"]
|
||||
'core/data': _store__WEBPACK_IMPORTED_MODULE_4__["default"]
|
||||
}, storeConfigs)).map(function (_ref) {
|
||||
var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, 2),
|
||||
name = _ref2[0],
|
||||
@ -3660,17 +3571,6 @@ module.exports = function(originalModule) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/deprecated":
|
||||
/*!*********************************************!*\
|
||||
!*** external {"this":["wp","deprecated"]} ***!
|
||||
\*********************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["deprecated"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/element":
|
||||
/*!******************************************!*\
|
||||
!*** external {"this":["wp","element"]} ***!
|
||||
|
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
52
wp-includes/js/dist/date.js
vendored
52
wp-includes/js/dist/date.js
vendored
@ -91,15 +91,13 @@ this["wp"] = this["wp"] || {}; this["wp"]["date"] =
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/@wordpress/date/build-module/index.js ***!
|
||||
\************************************************************/
|
||||
/*! exports provided: setSettings, __experimentalGetSettings, getSettings, moment, format, date, gmdate, dateI18n, isInTheFuture, getDate */
|
||||
/*! exports provided: setSettings, __experimentalGetSettings, format, date, gmdate, dateI18n, isInTheFuture, getDate */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSettings", function() { return setSettings; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalGetSettings", function() { return __experimentalGetSettings; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSettings", function() { return getSettings; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "moment", function() { return moment; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "date", function() { return date; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gmdate", function() { return gmdate; });
|
||||
@ -112,18 +110,11 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var moment_timezone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment_timezone__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment-timezone/moment-timezone-utils */ "./node_modules/moment-timezone/moment-timezone-utils.js");
|
||||
/* harmony import */ var moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/deprecated */ "@wordpress/deprecated");
|
||||
/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
// Changes made here will likely need to be made in `lib/client-assets.php` as
|
||||
// well because it uses the `setSettings()` function to change these settings.
|
||||
|
||||
@ -217,16 +208,6 @@ function setSettings(dateSettings) {
|
||||
|
||||
function __experimentalGetSettings() {
|
||||
return settings;
|
||||
} // deprecations
|
||||
|
||||
function getSettings() {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default()('wp.date.getSettings', {
|
||||
version: '4.4',
|
||||
alternative: 'wp.date.__experimentalGetSettings',
|
||||
plugin: 'Gutenberg',
|
||||
hint: 'Unstable APIs are strongly discouraged to be used, and are subject to removal without notice.'
|
||||
});
|
||||
return settings;
|
||||
}
|
||||
|
||||
function setupWPTimezone() {
|
||||
@ -237,24 +218,7 @@ function setupWPTimezone() {
|
||||
untils: [null],
|
||||
offsets: [-settings.timezone.offset * 60 || 0]
|
||||
}));
|
||||
} // Create a new moment object which mirrors moment but includes
|
||||
// the attached timezone, instead of setting a default timezone on
|
||||
// the global moment object.
|
||||
|
||||
|
||||
var moment = function moment() {
|
||||
_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_3___default()('wp.date.moment', {
|
||||
version: '4.4',
|
||||
alternative: 'the moment script as a dependency',
|
||||
plugin: 'Gutenberg'
|
||||
});
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return moment__WEBPACK_IMPORTED_MODULE_0___default.a.tz.apply(moment__WEBPACK_IMPORTED_MODULE_0___default.a, args.concat(['WP']));
|
||||
}; // Date constants.
|
||||
} // Date constants.
|
||||
|
||||
/**
|
||||
* Number of seconds in one minute.
|
||||
@ -262,6 +226,7 @@ var moment = function moment() {
|
||||
* @type {Number}
|
||||
*/
|
||||
|
||||
|
||||
var MINUTE_IN_SECONDS = 60;
|
||||
/**
|
||||
* Number of minutes in one hour.
|
||||
@ -1533,17 +1498,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
||||
}));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/deprecated":
|
||||
/*!*********************************************!*\
|
||||
!*** external {"this":["wp","deprecated"]} ***!
|
||||
\*********************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["deprecated"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "moment":
|
||||
|
2
wp-includes/js/dist/date.js.map
vendored
2
wp-includes/js/dist/date.js.map
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=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;
|
||||
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=268)}({23:function(e,t){!function(){e.exports=this.wp.hooks}()},268: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=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;
|
||||
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=269)}({269: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
745
wp-includes/js/dist/edit-post.js
vendored
745
wp-includes/js/dist/edit-post.js
vendored
File diff suppressed because it is too large
Load Diff
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
3032
wp-includes/js/dist/editor.js
vendored
3032
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.js.map
vendored
2
wp-includes/js/dist/element.js.map
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
54
wp-includes/js/dist/format-library.js
vendored
54
wp-includes/js/dist/format-library.js
vendored
@ -548,7 +548,7 @@ var image = {
|
||||
var _this$props = this.props,
|
||||
value = _this$props.value,
|
||||
onChange = _this$props.onChange;
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__["RichTextInserterItem"], {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__["MediaUploadCheck"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_10__["RichTextInserterItem"], {
|
||||
name: name,
|
||||
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["SVG"], {
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
@ -1010,23 +1010,37 @@ var LinkEditor = function LinkEditor(_ref2) {
|
||||
);
|
||||
};
|
||||
|
||||
var LinkViewer = function LinkViewer(_ref3) {
|
||||
var url = _ref3.url,
|
||||
editLink = _ref3.editLink;
|
||||
var LinkViewerUrl = function LinkViewerUrl(_ref3) {
|
||||
var url = _ref3.url;
|
||||
var prependedURL = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_11__["prependHTTP"])(url);
|
||||
var linkClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()('editor-format-toolbar__link-container-value', {
|
||||
'has-invalid-link': !Object(_utils__WEBPACK_IMPORTED_MODULE_15__["isValidHref"])(prependedURL)
|
||||
});
|
||||
|
||||
if (!url) {
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("span", {
|
||||
className: linkClassName
|
||||
});
|
||||
}
|
||||
|
||||
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["ExternalLink"], {
|
||||
className: linkClassName,
|
||||
href: url
|
||||
}, Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_11__["filterURLForDisplay"])(Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_11__["safeDecodeURI"])(url)));
|
||||
};
|
||||
|
||||
var LinkViewer = function LinkViewer(_ref4) {
|
||||
var url = _ref4.url,
|
||||
editLink = _ref4.editLink;
|
||||
return (// Disable reason: KeyPress must be suppressed so the block doesn't hide the toolbar
|
||||
|
||||
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
||||
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {
|
||||
className: "editor-format-toolbar__link-container-content",
|
||||
onKeyPress: stopKeyPropagation
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["ExternalLink"], {
|
||||
className: linkClassName,
|
||||
href: url
|
||||
}, Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_11__["filterURLForDisplay"])(Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_11__["safeDecodeURI"])(url))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["IconButton"], {
|
||||
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(LinkViewerUrl, {
|
||||
url: url
|
||||
}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["IconButton"], {
|
||||
icon: "edit",
|
||||
label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__["__"])('Edit'),
|
||||
onClick: editLink
|
||||
@ -1055,18 +1069,16 @@ function (_Component) {
|
||||
_this.onClickOutside = _this.onClickOutside.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.resetState = _this.resetState.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.autocompleteRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createRef"])();
|
||||
_this.state = {};
|
||||
_this.state = {
|
||||
opensInNewWindow: false,
|
||||
inputValue: ''
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
|
||||
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();
|
||||
@ -1083,7 +1095,8 @@ function (_Component) {
|
||||
key: "setLinkTarget",
|
||||
value: function setLinkTarget(opensInNewWindow) {
|
||||
var _this$props = this.props,
|
||||
url = _this$props.activeAttributes.url,
|
||||
_this$props$activeAtt = _this$props.activeAttributes.url,
|
||||
url = _this$props$activeAtt === void 0 ? '' : _this$props$activeAtt,
|
||||
value = _this$props.value,
|
||||
onChange = _this$props.onChange;
|
||||
this.setState({
|
||||
@ -1192,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"], {
|
||||
@ -1395,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)) {
|
||||
@ -1403,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);
|
||||
@ -1425,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
1780
wp-includes/js/dist/i18n.js
vendored
1780
wp-includes/js/dist/i18n.js
vendored
File diff suppressed because it is too large
Load Diff
2
wp-includes/js/dist/i18n.js.map
vendored
2
wp-includes/js/dist/i18n.js.map
vendored
File diff suppressed because one or more lines are too long
6
wp-includes/js/dist/i18n.min.js
vendored
6
wp-includes/js/dist/i18n.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/is-shallow-equal.min.js
vendored
2
wp-includes/js/dist/is-shallow-equal.min.js
vendored
@ -1 +1 @@
|
||||
this.wp=this.wp||{},this.wp.isShallowEqual=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=278)}({278:function(t,r,e){"use strict";var n=e(279),u=e(280),o=Array.isArray;t.exports=function(t,r){if(t&&r){if(t.constructor===Object&&r.constructor===Object)return n(t,r);if(o(t)&&o(r))return u(t,r)}return t===r}},279:function(t,r,e){"use strict";var n=Object.keys;t.exports=function(t,r){var e,u,o,i;if(t===r)return!0;if(e=n(t),u=n(r),e.length!==u.length)return!1;for(o=0;o<e.length;){if(t[i=e[o]]!==r[i])return!1;o++}return!0}},280:function(t,r,e){"use strict";t.exports=function(t,r){var e;if(t===r)return!0;if(t.length!==r.length)return!1;for(e=0;e<t.length;e++)if(t[e]!==r[e])return!1;return!0}}});
|
||||
this.wp=this.wp||{},this.wp.isShallowEqual=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=277)}({277:function(t,r,e){"use strict";var n=e(278),u=e(279),o=Array.isArray;t.exports=function(t,r){if(t&&r){if(t.constructor===Object&&r.constructor===Object)return n(t,r);if(o(t)&&o(r))return u(t,r)}return t===r}},278:function(t,r,e){"use strict";var n=Object.keys;t.exports=function(t,r){var e,u,o,i;if(t===r)return!0;if(e=n(t),u=n(r),e.length!==u.length)return!1;for(o=0;o<e.length;){if(t[i=e[o]]!==r[i])return!1;o++}return!0}},279:function(t,r,e){"use strict";t.exports=function(t,r){var e;if(t===r)return!0;if(t.length!==r.length)return!1;for(e=0;e<t.length;e++)if(t[e]!==r[e])return!1;return!0}}});
|
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=326)}({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(33);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}()},326: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()))}})},33: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})}});
|
||||
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=326)}({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})},326: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()))}})}});
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user