Editor: Update WordPress packages from Gutenberg 10.5
Applies changes between the Gutenberg plugin v10.4 and v10.5. It contains the latest version of WordPress packages and PHP changes applied to non-experimental features. Props youknowriad. See #52991. Built from https://develop.svn.wordpress.org/trunk@50824 git-svn-id: http://core.svn.wordpress.org/trunk@50433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8cfc803e28
commit
b8871304cf
File diff suppressed because one or more lines are too long
|
@ -7,29 +7,35 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* Registers the style attribute used by the border feature if needed for block types that
|
||||
* support borders.
|
||||
* Registers the style attribute used by the border feature if needed for block
|
||||
* types that support borders.
|
||||
*
|
||||
* @since 5.8.0
|
||||
* @access private
|
||||
* @since 5.8.0
|
||||
* @access private
|
||||
*
|
||||
* @param WP_Block_Type $block_type Block Type.
|
||||
*/
|
||||
function wp_register_border_support( $block_type ) {
|
||||
// Determine border related features supported.
|
||||
// Border width, style etc can be added in the future.
|
||||
$has_border_radius_support = block_has_support( $block_type, array( '__experimentalBorder', 'radius' ), false );
|
||||
// Determine if any border related features are supported.
|
||||
$has_border_support = block_has_support( $block_type, array( '__experimentalBorder' ) );
|
||||
$has_border_color_support = block_has_support( $block_type, array( '__experimentalBorder', 'color' ) );
|
||||
|
||||
// Setup attributes and styles within that if needed.
|
||||
if ( ! $block_type->attributes ) {
|
||||
$block_type->attributes = array();
|
||||
}
|
||||
|
||||
if ( $has_border_radius_support && ! array_key_exists( 'style', $block_type->attributes ) ) {
|
||||
if ( $has_border_support && ! array_key_exists( 'style', $block_type->attributes ) ) {
|
||||
$block_type->attributes['style'] = array(
|
||||
'type' => 'object',
|
||||
);
|
||||
}
|
||||
|
||||
if ( $has_border_color_support && ! array_key_exists( 'borderColor', $block_type->attributes ) ) {
|
||||
$block_type->attributes['borderColor'] = array(
|
||||
'type' => 'string',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,33 +51,64 @@ function wp_register_border_support( $block_type ) {
|
|||
* @return array Border CSS classes and inline styles.
|
||||
*/
|
||||
function wp_apply_border_support( $block_type, $block_attributes ) {
|
||||
$border_support = _wp_array_get( $block_type->supports, array( '__experimentalBorder' ), false );
|
||||
|
||||
if (
|
||||
is_array( $border_support ) &&
|
||||
array_key_exists( '__experimentalSkipSerialization', $border_support ) &&
|
||||
$border_support['__experimentalSkipSerialization']
|
||||
) {
|
||||
if ( wp_skip_border_serialization( $block_type ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
// Arrays used to ease addition of further border related features in future.
|
||||
$styles = array();
|
||||
$classes = array();
|
||||
$styles = array();
|
||||
|
||||
// Border Radius.
|
||||
$has_border_radius_support = block_has_support( $block_type, array( '__experimentalBorder', 'radius' ), false );
|
||||
if ( $has_border_radius_support ) {
|
||||
if ( isset( $block_attributes['style']['border']['radius'] ) ) {
|
||||
$border_radius = intval( $block_attributes['style']['border']['radius'] );
|
||||
$styles[] = sprintf( 'border-radius: %dpx;', $border_radius );
|
||||
// Border radius.
|
||||
if (
|
||||
block_has_support( $block_type, array( '__experimentalBorder', 'radius' ) ) &&
|
||||
isset( $block_attributes['style']['border']['radius'] )
|
||||
) {
|
||||
$border_radius = (int) $block_attributes['style']['border']['radius'];
|
||||
$styles[] = sprintf( 'border-radius: %dpx;', $border_radius );
|
||||
}
|
||||
|
||||
// Border style.
|
||||
if (
|
||||
block_has_support( $block_type, array( '__experimentalBorder', 'style' ) ) &&
|
||||
isset( $block_attributes['style']['border']['style'] )
|
||||
) {
|
||||
$border_style = $block_attributes['style']['border']['style'];
|
||||
$styles[] = sprintf( 'border-style: %s;', $border_style );
|
||||
}
|
||||
|
||||
// Border width.
|
||||
if (
|
||||
block_has_support( $block_type, array( '__experimentalBorder', 'width' ) ) &&
|
||||
isset( $block_attributes['style']['border']['width'] )
|
||||
) {
|
||||
$border_width = intval( $block_attributes['style']['border']['width'] );
|
||||
$styles[] = sprintf( 'border-width: %dpx;', $border_width );
|
||||
}
|
||||
|
||||
// Border color.
|
||||
if ( block_has_support( $block_type, array( '__experimentalBorder', 'color' ) ) ) {
|
||||
$has_named_border_color = array_key_exists( 'borderColor', $block_attributes );
|
||||
$has_custom_border_color = isset( $block_attributes['style']['border']['color'] );
|
||||
|
||||
if ( $has_named_border_color || $has_custom_border_color ) {
|
||||
$classes[] = 'has-border-color';
|
||||
}
|
||||
|
||||
if ( $has_named_border_color ) {
|
||||
$classes[] = sprintf( 'has-%s-border-color', $block_attributes['borderColor'] );
|
||||
} elseif ( $has_custom_border_color ) {
|
||||
$border_color = $block_attributes['style']['border']['color'];
|
||||
$styles[] = sprintf( 'border-color: %s;', $border_color );
|
||||
}
|
||||
}
|
||||
|
||||
// Border width, style etc can be added here.
|
||||
|
||||
// Collect classes and styles.
|
||||
$attributes = array();
|
||||
|
||||
if ( ! empty( $classes ) ) {
|
||||
$attributes['class'] = implode( ' ', $classes );
|
||||
}
|
||||
|
||||
if ( ! empty( $styles ) ) {
|
||||
$attributes['style'] = implode( ' ', $styles );
|
||||
}
|
||||
|
@ -79,6 +116,25 @@ function wp_apply_border_support( $block_type, $block_attributes ) {
|
|||
return $attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether serialization of the current block's border properties should
|
||||
* occur.
|
||||
*
|
||||
* @since 5.8.0
|
||||
* @access private
|
||||
*
|
||||
* @param WP_Block_type $block_type Block type.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
function wp_skip_border_serialization( $block_type ) {
|
||||
$border_support = _wp_array_get( $block_type->supports, array( '__experimentalBorder' ), false );
|
||||
|
||||
return is_array( $border_support ) &&
|
||||
array_key_exists( '__experimentalSkipSerialization', $border_support ) &&
|
||||
$border_support['__experimentalSkipSerialization'];
|
||||
}
|
||||
|
||||
// Register the block support.
|
||||
WP_Block_Supports::get_instance()->register(
|
||||
'border',
|
||||
|
|
|
@ -88,7 +88,7 @@ function wp_apply_colors_support( $block_type, $block_attributes ) {
|
|||
$classes = array();
|
||||
$styles = array();
|
||||
|
||||
// Text Colors.
|
||||
// Text colors.
|
||||
// Check support for text colors.
|
||||
if ( $has_text_colors_support ) {
|
||||
$has_named_text_color = array_key_exists( 'textColor', $block_attributes );
|
||||
|
@ -106,7 +106,7 @@ function wp_apply_colors_support( $block_type, $block_attributes ) {
|
|||
}
|
||||
}
|
||||
|
||||
// Link Colors.
|
||||
// Link colors.
|
||||
if ( $has_link_colors_support ) {
|
||||
$has_link_color = isset( $block_attributes['style']['color']['link'] );
|
||||
// Apply required class and style.
|
||||
|
@ -124,7 +124,7 @@ function wp_apply_colors_support( $block_type, $block_attributes ) {
|
|||
}
|
||||
}
|
||||
|
||||
// Background Colors.
|
||||
// Background colors.
|
||||
if ( $has_background_colors_support ) {
|
||||
$has_named_background_color = array_key_exists( 'backgroundColor', $block_attributes );
|
||||
$has_custom_background_color = isset( $block_attributes['style']['color']['background'] );
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
"apiVersion": 2,
|
||||
"name": "core/button",
|
||||
"category": "design",
|
||||
"parent": [
|
||||
"core/buttons"
|
||||
],
|
||||
"parent": [ "core/buttons" ],
|
||||
"attributes": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
|
@ -38,12 +36,6 @@
|
|||
"placeholder": {
|
||||
"type": "string"
|
||||
},
|
||||
"borderRadius": {
|
||||
"type": "number"
|
||||
},
|
||||
"style": {
|
||||
"type": "object"
|
||||
},
|
||||
"backgroundColor": {
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -65,7 +57,13 @@
|
|||
"__experimentalSkipSerialization": true,
|
||||
"gradients": true
|
||||
},
|
||||
"fontSize": true,
|
||||
"reusable": false,
|
||||
"__experimentalBorder": {
|
||||
"radius": true,
|
||||
"__experimentalSkipSerialization": true
|
||||
},
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalSelector": ".wp-block-button__link"
|
||||
},
|
||||
"editorStyle": "wp-block-button-editor",
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
"apiVersion": 2,
|
||||
"name": "core/column",
|
||||
"category": "text",
|
||||
"parent": [
|
||||
"core/columns"
|
||||
],
|
||||
"parent": [ "core/columns" ],
|
||||
"attributes": {
|
||||
"verticalAlignment": {
|
||||
"type": "string"
|
||||
|
|
|
@ -9,10 +9,7 @@
|
|||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [
|
||||
"wide",
|
||||
"full"
|
||||
],
|
||||
"align": [ "wide", "full" ],
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"apiVersion": 2,
|
||||
"name": "core/cover",
|
||||
"category": "media",
|
||||
"attributes": {
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"hasParallax": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"isRepeated": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"dimRatio": {
|
||||
"type": "number",
|
||||
"default": 50
|
||||
},
|
||||
"overlayColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"customOverlayColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"backgroundType": {
|
||||
"type": "string",
|
||||
"default": "image"
|
||||
},
|
||||
"focalPoint": {
|
||||
"type": "object"
|
||||
},
|
||||
"minHeight": {
|
||||
"type": "number"
|
||||
},
|
||||
"minHeightUnit": {
|
||||
"type": "string"
|
||||
},
|
||||
"gradient": {
|
||||
"type": "string"
|
||||
},
|
||||
"customGradient": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentPosition": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"padding": true
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-cover-editor",
|
||||
"style": "wp-block-cover"
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* Server-side rendering of the `core/file` block.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
* When the `core/file` block is rendering, check if we need to enqueue the `'wp-block-library-file` script.
|
||||
*
|
||||
* @param array $attributes The block attributes.
|
||||
* @param array $content The block content.
|
||||
*
|
||||
* @return string Returns the block content.
|
||||
*/
|
||||
function render_block_core_file( $attributes, $content ) {
|
||||
if ( ! empty( $attributes['displayPreview'] ) ) {
|
||||
// Check if it's already enqueued, so we don't add the inline script multiple times.
|
||||
if ( ! wp_script_is( 'wp-block-library-file' ) ) {
|
||||
wp_enqueue_script( 'wp-block-library-file', plugins_url( 'file/frontend.js', __FILE__ ) );
|
||||
}
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers the `core/file` block on server.
|
||||
*/
|
||||
function register_block_core_file() {
|
||||
register_block_type_from_metadata(
|
||||
__DIR__ . '/file',
|
||||
array(
|
||||
'render_callback' => 'render_block_core_file',
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'init', 'register_block_core_file' );
|
|
@ -34,6 +34,13 @@
|
|||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "a[download]"
|
||||
},
|
||||
"displayPreview": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"previewHeight": {
|
||||
"type": "number",
|
||||
"default": 600
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "h1,h2,h3,h4,h5,h6",
|
||||
"default": ""
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"level": {
|
||||
"type": "number",
|
||||
|
|
|
@ -10,6 +10,7 @@ require ABSPATH . WPINC . '/blocks/archives.php';
|
|||
require ABSPATH . WPINC . '/blocks/block.php';
|
||||
require ABSPATH . WPINC . '/blocks/calendar.php';
|
||||
require ABSPATH . WPINC . '/blocks/categories.php';
|
||||
require ABSPATH . WPINC . '/blocks/file.php';
|
||||
require ABSPATH . WPINC . '/blocks/latest-comments.php';
|
||||
require ABSPATH . WPINC . '/blocks/latest-posts.php';
|
||||
require ABSPATH . WPINC . '/blocks/rss.php';
|
||||
|
@ -33,7 +34,6 @@ function register_core_block_types_from_metadata() {
|
|||
'column',
|
||||
'columns',
|
||||
'embed',
|
||||
'file',
|
||||
'freeform',
|
||||
'gallery',
|
||||
'group',
|
||||
|
|
|
@ -58,11 +58,7 @@
|
|||
},
|
||||
"featuredImageAlign": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"left",
|
||||
"center",
|
||||
"right"
|
||||
]
|
||||
"enum": [ "left", "center", "right" ]
|
||||
},
|
||||
"featuredImageSizeSlug": {
|
||||
"type": "string",
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
"attributes": {
|
||||
"ordered": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
"default": false,
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"values": {
|
||||
"type": "string",
|
||||
|
@ -13,7 +14,8 @@
|
|||
"selector": "ol,ul",
|
||||
"multiline": "li",
|
||||
"__unstableMultilineWrapperTags": [ "ol", "ul" ],
|
||||
"default": ""
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
|
@ -23,6 +25,9 @@
|
|||
},
|
||||
"reversed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "p",
|
||||
"default": ""
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"dropCap": {
|
||||
"type": "boolean",
|
||||
|
@ -21,10 +22,7 @@
|
|||
},
|
||||
"direction": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ltr",
|
||||
"rtl"
|
||||
]
|
||||
"enum": [ "ltr", "rtl" ]
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
"source": "html",
|
||||
"selector": "pre",
|
||||
"default": "",
|
||||
"__unstablePreserveWhiteSpace": true
|
||||
"__unstablePreserveWhiteSpace": true,
|
||||
"__experimentalRole": "content"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
|
|
|
@ -7,13 +7,15 @@
|
|||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "blockquote",
|
||||
"multiline": "p"
|
||||
"multiline": "p",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"citation": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "cite",
|
||||
"default": ""
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"mainColor": {
|
||||
"type": "string"
|
||||
|
@ -30,12 +32,7 @@
|
|||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [
|
||||
"left",
|
||||
"right",
|
||||
"wide",
|
||||
"full"
|
||||
]
|
||||
"align": [ "left", "right", "wide", "full" ]
|
||||
},
|
||||
"editorStyle": "wp-block-pullquote-editor",
|
||||
"style": "wp-block-pullquote"
|
||||
|
|
|
@ -8,13 +8,15 @@
|
|||
"source": "html",
|
||||
"selector": "blockquote",
|
||||
"multiline": "p",
|
||||
"default": ""
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"citation": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "cite",
|
||||
"default": ""
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"align": {
|
||||
"type": "string"
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
"category": "widgets",
|
||||
"attributes": {
|
||||
"label": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"showLabel": {
|
||||
"type": "boolean",
|
||||
|
@ -12,7 +13,8 @@
|
|||
},
|
||||
"placeholder": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
"default": "",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"width": {
|
||||
"type": "number"
|
||||
|
@ -21,7 +23,8 @@
|
|||
"type": "string"
|
||||
},
|
||||
"buttonText": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"buttonPosition": {
|
||||
"type": "string",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": ["center","wide","full"]
|
||||
"align": [ "center", "wide", "full" ]
|
||||
},
|
||||
"editorStyle": "wp-block-separator-editor",
|
||||
"style": "wp-block-separator"
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
/**
|
||||
* Renders the `core/social-link` block on server.
|
||||
*
|
||||
* @param Array $attributes The block attributes.
|
||||
* @param String $content InnerBlocks content of the Block.
|
||||
* @param WPBlock $block Block object.
|
||||
* @param Array $attributes The block attributes.
|
||||
* @param String $content InnerBlocks content of the Block.
|
||||
* @param WP_Block $block Block object.
|
||||
*
|
||||
* @return string Rendered HTML of the referenced block.
|
||||
*/
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
"apiVersion": 2,
|
||||
"name": "core/social-link",
|
||||
"category": "widgets",
|
||||
"parent": [
|
||||
"core/social-links"
|
||||
],
|
||||
"parent": [ "core/social-links" ],
|
||||
"attributes": {
|
||||
"url": {
|
||||
"type": "string"
|
||||
|
|
|
@ -35,11 +35,7 @@
|
|||
"iconBackgroundColorValue": "iconBackgroundColorValue"
|
||||
},
|
||||
"supports": {
|
||||
"align": [
|
||||
"left",
|
||||
"center",
|
||||
"right"
|
||||
],
|
||||
"align": [ "left", "center", "right" ],
|
||||
"anchor": true
|
||||
},
|
||||
"editorStyle": "wp-block-social-links-editor",
|
||||
|
|
|
@ -11,9 +11,7 @@
|
|||
"type": "number"
|
||||
}
|
||||
},
|
||||
"usesContext": [
|
||||
"orientation"
|
||||
],
|
||||
"usesContext": [ "orientation" ],
|
||||
"supports": {
|
||||
"anchor": true
|
||||
},
|
||||
|
|
|
@ -14,10 +14,7 @@
|
|||
"source": "html"
|
||||
}
|
||||
},
|
||||
"default": [
|
||||
{},
|
||||
{}
|
||||
]
|
||||
"default": [ {}, {} ]
|
||||
},
|
||||
"columns": {
|
||||
"type": "number",
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
"source": "html",
|
||||
"selector": "pre",
|
||||
"default": "",
|
||||
"__unstablePreserveWhiteSpace": true
|
||||
"__unstablePreserveWhiteSpace": true,
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"textAlign": {
|
||||
"type": "string"
|
||||
|
@ -16,6 +17,10 @@
|
|||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true
|
||||
},
|
||||
"__experimentalFontFamily": true,
|
||||
"fontSize": true,
|
||||
"spacing": {
|
||||
|
|
|
@ -679,6 +679,16 @@
|
|||
.block-editor-block-list__insertion-point-popover.is-without-arrow {
|
||||
z-index: 28;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow * {
|
||||
pointer-events: none;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter {
|
||||
pointer-events: all;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter * {
|
||||
pointer-events: all;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content {
|
||||
background: none;
|
||||
|
@ -1577,7 +1587,6 @@
|
|||
padding: 0;
|
||||
}
|
||||
.components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group {
|
||||
padding: 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
@ -1620,6 +1629,7 @@
|
|||
.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview {
|
||||
width: 300px;
|
||||
height: auto;
|
||||
max-height: 500px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
|
@ -1650,6 +1660,38 @@
|
|||
padding: 12px;
|
||||
}
|
||||
|
||||
.block-editor-block-switcher__preview-patterns-container {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container {
|
||||
cursor: pointer;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item {
|
||||
height: 100%;
|
||||
border-radius: 2px;
|
||||
transition: all 0.05s ease-in-out;
|
||||
position: relative;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover, .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus {
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #007cba;
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
outline: 2px solid transparent;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover {
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #1e1e1e;
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title {
|
||||
padding: 4px;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.block-editor-block-types-list > [role=presentation] {
|
||||
padding: 4px;
|
||||
margin-right: -4px;
|
||||
|
@ -1760,6 +1802,17 @@
|
|||
min-width: 230px;
|
||||
}
|
||||
|
||||
.components-border-style-control__select {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.components-border-style-control__select button {
|
||||
width: 100%;
|
||||
}
|
||||
.components-border-style-control__select ul li,
|
||||
.components-border-style-control__select ul li:last-child {
|
||||
margin: 6px;
|
||||
}
|
||||
|
||||
.block-editor-button-block-appender {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -3121,7 +3174,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
display: inline-block;
|
||||
line-height: 0;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.block-editor-block-toolbar__slot {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
@ -3283,7 +3336,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
|
||||
.block-editor-inserter__search {
|
||||
padding: 16px;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: #fff;
|
||||
|
@ -3387,7 +3439,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
margin-top: -8px;
|
||||
}
|
||||
.block-editor-inserter__tabs .components-tab-panel__tabs {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 72px;
|
||||
background: #fff;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -679,6 +679,16 @@
|
|||
.block-editor-block-list__insertion-point-popover.is-without-arrow {
|
||||
z-index: 28;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow * {
|
||||
pointer-events: none;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter {
|
||||
pointer-events: all;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter * {
|
||||
pointer-events: all;
|
||||
}
|
||||
.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content {
|
||||
background: none;
|
||||
|
@ -1577,7 +1587,6 @@
|
|||
padding: 0;
|
||||
}
|
||||
.components-popover.block-editor-block-switcher__popover .components-popover__content > div .components-menu-group {
|
||||
padding: 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
@ -1620,6 +1629,7 @@
|
|||
.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview {
|
||||
width: 300px;
|
||||
height: auto;
|
||||
max-height: 500px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
|
@ -1650,6 +1660,38 @@
|
|||
padding: 12px;
|
||||
}
|
||||
|
||||
.block-editor-block-switcher__preview-patterns-container {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container {
|
||||
cursor: pointer;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item {
|
||||
height: 100%;
|
||||
border-radius: 2px;
|
||||
transition: all 0.05s ease-in-out;
|
||||
position: relative;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover, .block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus {
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #007cba;
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
outline: 2px solid transparent;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover {
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px #1e1e1e;
|
||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;
|
||||
}
|
||||
.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title {
|
||||
padding: 4px;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.block-editor-block-types-list > [role=presentation] {
|
||||
padding: 4px;
|
||||
margin-left: -4px;
|
||||
|
@ -1760,6 +1802,17 @@
|
|||
min-width: 230px;
|
||||
}
|
||||
|
||||
.components-border-style-control__select {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.components-border-style-control__select button {
|
||||
width: 100%;
|
||||
}
|
||||
.components-border-style-control__select ul li,
|
||||
.components-border-style-control__select ul li:last-child {
|
||||
margin: 6px;
|
||||
}
|
||||
|
||||
.block-editor-button-block-appender {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -3121,7 +3174,7 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
display: inline-block;
|
||||
line-height: 0;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.block-editor-block-toolbar__slot {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
@ -3283,7 +3336,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
|
||||
.block-editor-inserter__search {
|
||||
padding: 16px;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: #fff;
|
||||
|
@ -3387,7 +3439,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|||
margin-top: -8px;
|
||||
}
|
||||
.block-editor-inserter__tabs .components-tab-panel__tabs {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 72px;
|
||||
background: #fff;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -374,10 +374,29 @@ div[data-type="core/button"] {
|
|||
|
||||
.wp-block-file {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wp-block[data-align=left] > .wp-block-file, .wp-block[data-align=right] > .wp-block-file {
|
||||
height: auto;
|
||||
}
|
||||
.wp-block-file .components-resizable-box__container {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.wp-block-file .wp-block-file__preview {
|
||||
margin-bottom: 1em;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.wp-block-file .wp-block-file__preview-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
.wp-block-file .wp-block-file__content-wrapper {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
@ -650,7 +669,6 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af
|
|||
display: none;
|
||||
width: auto;
|
||||
margin: 0;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: 31;
|
||||
top: 0;
|
||||
|
@ -1324,6 +1342,7 @@ figure.wp-block-image:not(.wp-block) {
|
|||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
display: none;
|
||||
line-height: 0;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator svg {
|
||||
|
@ -1495,6 +1514,18 @@ figure.wp-block-image:not(.wp-block) {
|
|||
margin: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-page-list-modal {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.wp-block-page-list-modal-buttons {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-page-list-modal-buttons .components-button {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus {
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
@ -1696,13 +1727,13 @@ figure.wp-block-image:not(.wp-block) {
|
|||
.wp-block-site-logo a {
|
||||
pointer-events: none;
|
||||
}
|
||||
.wp-block-site-logo.is-resized {
|
||||
.wp-block-site-logo:not(.is-default-size) {
|
||||
display: table;
|
||||
}
|
||||
.wp-block-site-logo:not(.is-resized) {
|
||||
.wp-block-site-logo.is-default-size {
|
||||
width: 120px;
|
||||
}
|
||||
.wp-block-site-logo:not(.is-resized) img {
|
||||
.wp-block-site-logo.is-default-size img {
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-site-logo .custom-logo-link {
|
||||
|
@ -1779,17 +1810,7 @@ figure.wp-block-image:not(.wp-block) {
|
|||
.wp-block-social-links__social-placeholder {
|
||||
display: flex;
|
||||
opacity: 0.8;
|
||||
transition: all 0.1s ease-in-out;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.wp-block-social-links__social-placeholder {
|
||||
transition-duration: 0s;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
}
|
||||
.is-selected > .wp-block-social-links__social-placeholder {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.wp-block-social-links__social-placeholder > .wp-social-link {
|
||||
padding-right: 0 !important;
|
||||
|
@ -1811,9 +1832,6 @@ figure.wp-block-image:not(.wp-block) {
|
|||
padding-right: calc((2/3) * 1em);
|
||||
padding-left: calc((2/3) * 1em);
|
||||
}
|
||||
.wp-block-social-links__social-placeholder + .block-list-appender {
|
||||
box-shadow: inset 0 0 0 1px #757575;
|
||||
}
|
||||
.wp-block-social-links__social-placeholder .wp-social-link::before {
|
||||
content: "";
|
||||
display: block;
|
||||
|
@ -1825,6 +1843,21 @@ figure.wp-block-image:not(.wp-block) {
|
|||
background: currentColor;
|
||||
}
|
||||
|
||||
.wp-block-social-links .wp-block-social-links__social-prompt {
|
||||
list-style: none;
|
||||
order: 2;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 24px;
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
cursor: default;
|
||||
}
|
||||
.wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
|
||||
margin-left: 8px;
|
||||
padding: 0.25em;
|
||||
}
|
||||
|
||||
.wp-block-social-links .block-list-appender {
|
||||
margin: 4px 0 4px auto;
|
||||
border-radius: 9999px;
|
||||
|
@ -1877,12 +1910,6 @@ figure.wp-block-image:not(.wp-block) {
|
|||
opacity: 1;
|
||||
}
|
||||
|
||||
[data-type="core/social-links"] .wp-social-link:focus {
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color);
|
||||
outline: 2px solid transparent;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block[data-type="core/spacer"]::before {
|
||||
content: "";
|
||||
display: block;
|
||||
|
@ -2054,14 +2081,24 @@ figure.wp-block-image:not(.wp-block) {
|
|||
outline: 1px solid #ddd;
|
||||
}
|
||||
|
||||
pre.wp-block-verse {
|
||||
color: #1e1e1e;
|
||||
}
|
||||
|
||||
.wp-block[data-align=center] > .wp-block-video {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-video {
|
||||
position: relative;
|
||||
}
|
||||
.wp-block-video.is-transient video {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.wp-block-video .components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 50%;
|
||||
margin-top: -9px;
|
||||
margin-right: -9px;
|
||||
}
|
||||
|
||||
.editor-video-poster-control .components-base-control__label {
|
||||
display: block;
|
||||
}
|
||||
|
@ -2199,6 +2236,7 @@ pre.wp-block-verse {
|
|||
}
|
||||
.block-setup-block-layout-list__container .block-setup-block-layout-list__list-item .block-setup-block-layout-list__item {
|
||||
height: 100%;
|
||||
max-height: 140px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 2px;
|
||||
|
@ -2237,6 +2275,7 @@ pre.wp-block-verse {
|
|||
}
|
||||
.block-setup-block-layout-list__container .block-setup-block-layout-list__list-item.is-block-variation .block-setup-block-layout-list__item {
|
||||
height: 90px;
|
||||
min-height: 90px;
|
||||
}
|
||||
.block-setup-block-layout-list__container .block-setup-block-layout-list__list-item:not(.is-block-variation) + .block-setup-block-layout-list__list-item.is-block-variation .block-setup-block-layout-list__item {
|
||||
height: 100%;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -375,10 +375,29 @@ div[data-type="core/button"] {
|
|||
|
||||
.wp-block-file {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wp-block[data-align=left] > .wp-block-file, .wp-block[data-align=right] > .wp-block-file {
|
||||
height: auto;
|
||||
}
|
||||
.wp-block-file .components-resizable-box__container {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.wp-block-file .wp-block-file__preview {
|
||||
margin-bottom: 1em;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.wp-block-file .wp-block-file__preview-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
.wp-block-file .wp-block-file__content-wrapper {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
@ -655,7 +674,6 @@ div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::af
|
|||
display: none;
|
||||
width: auto;
|
||||
margin: 0;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: 31;
|
||||
top: 0;
|
||||
|
@ -1329,6 +1347,7 @@ figure.wp-block-image:not(.wp-block) {
|
|||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
display: none;
|
||||
line-height: 0;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator svg {
|
||||
|
@ -1500,6 +1519,18 @@ figure.wp-block-image:not(.wp-block) {
|
|||
margin: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-page-list-modal {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.wp-block-page-list-modal-buttons {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-page-list-modal-buttons .components-button {
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus {
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
@ -1701,13 +1732,13 @@ figure.wp-block-image:not(.wp-block) {
|
|||
.wp-block-site-logo a {
|
||||
pointer-events: none;
|
||||
}
|
||||
.wp-block-site-logo.is-resized {
|
||||
.wp-block-site-logo:not(.is-default-size) {
|
||||
display: table;
|
||||
}
|
||||
.wp-block-site-logo:not(.is-resized) {
|
||||
.wp-block-site-logo.is-default-size {
|
||||
width: 120px;
|
||||
}
|
||||
.wp-block-site-logo:not(.is-resized) img {
|
||||
.wp-block-site-logo.is-default-size img {
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-site-logo .custom-logo-link {
|
||||
|
@ -1784,17 +1815,7 @@ figure.wp-block-image:not(.wp-block) {
|
|||
.wp-block-social-links__social-placeholder {
|
||||
display: flex;
|
||||
opacity: 0.8;
|
||||
transition: all 0.1s ease-in-out;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.wp-block-social-links__social-placeholder {
|
||||
transition-duration: 0s;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
}
|
||||
.is-selected > .wp-block-social-links__social-placeholder {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.wp-block-social-links__social-placeholder > .wp-social-link {
|
||||
padding-left: 0 !important;
|
||||
|
@ -1816,9 +1837,6 @@ figure.wp-block-image:not(.wp-block) {
|
|||
padding-left: calc((2/3) * 1em);
|
||||
padding-right: calc((2/3) * 1em);
|
||||
}
|
||||
.wp-block-social-links__social-placeholder + .block-list-appender {
|
||||
box-shadow: inset 0 0 0 1px #757575;
|
||||
}
|
||||
.wp-block-social-links__social-placeholder .wp-social-link::before {
|
||||
content: "";
|
||||
display: block;
|
||||
|
@ -1830,6 +1848,21 @@ figure.wp-block-image:not(.wp-block) {
|
|||
background: currentColor;
|
||||
}
|
||||
|
||||
.wp-block-social-links .wp-block-social-links__social-prompt {
|
||||
list-style: none;
|
||||
order: 2;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 24px;
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
cursor: default;
|
||||
}
|
||||
.wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
|
||||
margin-right: 8px;
|
||||
padding: 0.25em;
|
||||
}
|
||||
|
||||
.wp-block-social-links .block-list-appender {
|
||||
margin: 4px auto 4px 0;
|
||||
border-radius: 9999px;
|
||||
|
@ -1882,12 +1915,6 @@ figure.wp-block-image:not(.wp-block) {
|
|||
opacity: 1;
|
||||
}
|
||||
|
||||
[data-type="core/social-links"] .wp-social-link:focus {
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color);
|
||||
outline: 2px solid transparent;
|
||||
}
|
||||
|
||||
.block-editor-block-list__block[data-type="core/spacer"]::before {
|
||||
content: "";
|
||||
display: block;
|
||||
|
@ -2059,14 +2086,24 @@ figure.wp-block-image:not(.wp-block) {
|
|||
outline: 1px solid #ddd;
|
||||
}
|
||||
|
||||
pre.wp-block-verse {
|
||||
color: #1e1e1e;
|
||||
}
|
||||
|
||||
.wp-block[data-align=center] > .wp-block-video {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-video {
|
||||
position: relative;
|
||||
}
|
||||
.wp-block-video.is-transient video {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.wp-block-video .components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-top: -9px;
|
||||
margin-left: -9px;
|
||||
}
|
||||
|
||||
.editor-video-poster-control .components-base-control__label {
|
||||
display: block;
|
||||
}
|
||||
|
@ -2204,6 +2241,7 @@ pre.wp-block-verse {
|
|||
}
|
||||
.block-setup-block-layout-list__container .block-setup-block-layout-list__list-item .block-setup-block-layout-list__item {
|
||||
height: 100%;
|
||||
max-height: 140px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 2px;
|
||||
|
@ -2242,6 +2280,7 @@ pre.wp-block-verse {
|
|||
}
|
||||
.block-setup-block-layout-list__container .block-setup-block-layout-list__list-item.is-block-variation .block-setup-block-layout-list__item {
|
||||
height: 90px;
|
||||
min-height: 90px;
|
||||
}
|
||||
.block-setup-block-layout-list__container .block-setup-block-layout-list__list-item:not(.is-block-variation) + .block-setup-block-layout-list__list-item.is-block-variation .block-setup-block-layout-list__item {
|
||||
height: 100%;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -115,6 +115,9 @@
|
|||
.wp-block-buttons > .wp-block-button.has-custom-width .wp-block-button__link {
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-buttons > .wp-block-button.has-custom-font-size .wp-block-button__link {
|
||||
font-size: inherit;
|
||||
}
|
||||
.wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
|
||||
width: calc(25% - 0.5em);
|
||||
}
|
||||
|
@ -235,6 +238,10 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-button.aligncenter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-calendar {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -489,7 +496,7 @@
|
|||
font-size: 0;
|
||||
min-height: inherit;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-cover-image::after,
|
||||
.wp-block-cover::after {
|
||||
content: none;
|
||||
|
@ -736,6 +743,9 @@ section.wp-block-cover-image > h2,
|
|||
.wp-block-file.alignright {
|
||||
text-align: right;
|
||||
}
|
||||
.wp-block-file .wp-block-file__embed {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background: #32373c;
|
||||
border-radius: 2em;
|
||||
|
@ -790,7 +800,7 @@ section.wp-block-cover-image > h2,
|
|||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
|
@ -809,7 +819,7 @@ section.wp-block-cover-image > h2,
|
|||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
|
@ -859,7 +869,7 @@ section.wp-block-cover-image > h2,
|
|||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item img,
|
||||
|
@ -1334,6 +1344,8 @@ ul.has-background {
|
|||
}
|
||||
.is-vertical .wp-block-navigation__container {
|
||||
display: block;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.items-justified-center > ul {
|
||||
|
@ -1348,6 +1360,19 @@ ul.has-background {
|
|||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.is-vertical.items-justified-center > ul {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.is-vertical.items-justified-right > ul {
|
||||
align-items: flex-end;
|
||||
}
|
||||
.is-vertical.items-justified-right > ul .wp-block-navigation-link,
|
||||
.is-vertical.items-justified-right > ul .wp-block-pages-list__item {
|
||||
margin-left: 0;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.wp-block-navigation .wp-block-pages-list__item,
|
||||
.wp-block-navigation .wp-block-navigation-link {
|
||||
display: flex;
|
||||
|
@ -1639,6 +1664,10 @@ p.has-text-color a {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-post-title a {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-preformatted {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
@ -1909,8 +1938,9 @@ p.has-text-color a {
|
|||
.wp-block-site-logo a {
|
||||
display: inline-block;
|
||||
}
|
||||
.wp-block-site-logo:not(.is-resized) img {
|
||||
.wp-block-site-logo.is-default-size img {
|
||||
width: 120px;
|
||||
height: auto;
|
||||
}
|
||||
.wp-block-site-logo .aligncenter {
|
||||
display: table;
|
||||
|
@ -2399,7 +2429,7 @@ pre.wp-block-verse {
|
|||
.wp-block-video video {
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-video [poster] {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -116,6 +116,9 @@
|
|||
.wp-block-buttons > .wp-block-button.has-custom-width .wp-block-button__link {
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-buttons > .wp-block-button.has-custom-font-size .wp-block-button__link {
|
||||
font-size: inherit;
|
||||
}
|
||||
.wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
|
||||
width: calc(25% - 0.5em);
|
||||
}
|
||||
|
@ -249,6 +252,10 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-button.aligncenter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-calendar {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -505,7 +512,7 @@
|
|||
font-size: 0;
|
||||
min-height: inherit;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-cover-image::after,
|
||||
.wp-block-cover::after {
|
||||
content: none;
|
||||
|
@ -753,6 +760,9 @@ section.wp-block-cover-image > h2,
|
|||
/*rtl:ignore*/
|
||||
text-align: right;
|
||||
}
|
||||
.wp-block-file .wp-block-file__embed {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background: #32373c;
|
||||
border-radius: 2em;
|
||||
|
@ -807,7 +817,7 @@ section.wp-block-cover-image > h2,
|
|||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image figure,
|
||||
.wp-block-gallery .blocks-gallery-item figure,
|
||||
.blocks-gallery-grid .blocks-gallery-image figure,
|
||||
|
@ -826,7 +836,7 @@ section.wp-block-cover-image > h2,
|
|||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery .blocks-gallery-image img,
|
||||
.wp-block-gallery .blocks-gallery-item img,
|
||||
.blocks-gallery-grid .blocks-gallery-image img,
|
||||
|
@ -876,7 +886,7 @@ section.wp-block-cover-image > h2,
|
|||
.blocks-gallery-grid.is-cropped .blocks-gallery-item img {
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a,
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item img,
|
||||
|
@ -1369,6 +1379,8 @@ ul.has-background {
|
|||
}
|
||||
.is-vertical .wp-block-navigation__container {
|
||||
display: block;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.items-justified-center > ul {
|
||||
|
@ -1383,6 +1395,19 @@ ul.has-background {
|
|||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.is-vertical.items-justified-center > ul {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.is-vertical.items-justified-right > ul {
|
||||
align-items: flex-end;
|
||||
}
|
||||
.is-vertical.items-justified-right > ul .wp-block-navigation-link,
|
||||
.is-vertical.items-justified-right > ul .wp-block-pages-list__item {
|
||||
margin-right: 0;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.wp-block-navigation .wp-block-pages-list__item,
|
||||
.wp-block-navigation .wp-block-navigation-link {
|
||||
display: flex;
|
||||
|
@ -1674,6 +1699,10 @@ p.has-text-color a {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-post-title a {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-preformatted {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
@ -1949,8 +1978,9 @@ p.has-text-color a {
|
|||
.wp-block-site-logo a {
|
||||
display: inline-block;
|
||||
}
|
||||
.wp-block-site-logo:not(.is-resized) img {
|
||||
.wp-block-site-logo.is-default-size img {
|
||||
width: 120px;
|
||||
height: auto;
|
||||
}
|
||||
.wp-block-site-logo .aligncenter {
|
||||
display: table;
|
||||
|
@ -2439,7 +2469,7 @@ pre.wp-block-verse {
|
|||
.wp-block-video video {
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.wp-block-video [poster] {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -371,8 +371,8 @@
|
|||
background: none;
|
||||
outline: none;
|
||||
text-align: right;
|
||||
/* Mimics the default link style in common.css */
|
||||
color: #0073aa;
|
||||
color: #007cba;
|
||||
color: var(--wp-admin-theme-color);
|
||||
text-decoration: underline;
|
||||
transition-property: border, background, color;
|
||||
transition-duration: 0.05s;
|
||||
|
@ -385,14 +385,8 @@
|
|||
transition-delay: 0s;
|
||||
}
|
||||
}
|
||||
.components-button.is-link:hover:not(:disabled), .components-button.is-link:active:not(:disabled) {
|
||||
color: #00a0d2;
|
||||
box-shadow: none;
|
||||
}
|
||||
.components-button.is-link:focus {
|
||||
color: #124964;
|
||||
box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
|
||||
box-shadow: 0 0 0 1px #5b9dd9, 0 0 var(--wp-admin-border-width-focus) 1px rgba(30, 140, 190, 0.8);
|
||||
border-radius: 2px;
|
||||
}
|
||||
.components-button.is-link.is-destructive {
|
||||
color: #cc1818;
|
||||
|
@ -2347,6 +2341,9 @@ input.components-combobox-control__input[type=text]:focus {
|
|||
fill: #cacccd;
|
||||
}
|
||||
.components-datetime {
|
||||
padding: 16px;
|
||||
}
|
||||
.components-panel__body .components-datetime {
|
||||
padding: 0;
|
||||
}
|
||||
.components-datetime .components-datetime__calendar-help {
|
||||
|
@ -2450,6 +2447,31 @@ input.components-combobox-control__input[type=text]:focus {
|
|||
visibility: hidden;
|
||||
}
|
||||
|
||||
.components-datetime__date .CalendarDay .components-datetime__date__day {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-content: center;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
.components-datetime__date .CalendarDay .components-datetime__date__day.has-events::before {
|
||||
content: " ";
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
right: 50%;
|
||||
margin-right: -2px;
|
||||
bottom: 0;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.components-datetime__date .CalendarDay:not(.CalendarDay__selected) .components-datetime__date__day.has-events::before {
|
||||
background: #007cba;
|
||||
background: var(--wp-admin-theme-color);
|
||||
}
|
||||
|
||||
.components-datetime__time {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
@ -2649,10 +2671,6 @@ body.is-dragging-components-draggable {
|
|||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
}
|
||||
|
||||
.components-drop-zone__provider {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.components-dropdown {
|
||||
display: inline-block;
|
||||
}
|
||||
|
@ -3462,7 +3480,6 @@ body.is-dragging-components-draggable {
|
|||
height: 60px;
|
||||
z-index: 10;
|
||||
position: relative;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
margin: 0 -32px 24px;
|
||||
|
@ -3757,7 +3774,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
box-shadow: inset 0 0 0 1px #1e1e1e;
|
||||
outline: 1px solid transparent;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.components-placeholder.components-placeholder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -4183,6 +4200,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
}
|
||||
}
|
||||
.components-radio-control__input[type=radio]:checked::before {
|
||||
box-sizing: inherit;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
transform: translate(-7px, 7px);
|
||||
|
@ -4222,10 +4240,10 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
content: "";
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border: 2px solid #fff;
|
||||
border: 2px solid #007cba;
|
||||
border: 2px solid var(--wp-admin-theme-color);
|
||||
border-radius: 50%;
|
||||
background: #007cba;
|
||||
background: var(--wp-admin-theme-color);
|
||||
background: #fff;
|
||||
cursor: inherit;
|
||||
position: absolute;
|
||||
top: calc(50% - 8px);
|
||||
|
@ -4234,16 +4252,16 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
|
||||
.components-resizable-box__side-handle::before {
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
content: "";
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border: 2px solid #fff;
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
background: #007cba;
|
||||
background: var(--wp-admin-theme-color);
|
||||
cursor: inherit;
|
||||
position: absolute;
|
||||
top: calc(50% - 4px);
|
||||
left: calc(50% - 4px);
|
||||
top: calc(50% - 1px);
|
||||
left: calc(50% - 1px);
|
||||
transition: transform 0.1s ease-in;
|
||||
opacity: 0;
|
||||
}
|
||||
|
@ -4254,11 +4272,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
}
|
||||
}
|
||||
|
||||
.is-dark-theme .components-resizable-box__side-handle::before,
|
||||
.is-dark-theme .components-resizable-box__handle::after {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
.components-resizable-box__side-handle {
|
||||
z-index: 2;
|
||||
}
|
||||
|
@ -4323,7 +4336,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
|
||||
/* This CSS is shown only to Safari, which has a bug with table-caption making it jumpy.
|
||||
See https://bugs.webkit.org/show_bug.cgi?id=187903. */
|
||||
@media not all and (min-resolution: 0.001dpcm) {
|
||||
@media not all and (-webkit-min-device-pixel-ratio: 0), not all and (min-resolution: 0.001dpcm) {
|
||||
@supports (-webkit-appearance: none) {
|
||||
.components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before,
|
||||
.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before,
|
||||
|
@ -4929,7 +4942,7 @@ div.components-toolbar > div {
|
|||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
div.components-toolbar > div {
|
||||
display: flex;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -371,8 +371,8 @@
|
|||
background: none;
|
||||
outline: none;
|
||||
text-align: left;
|
||||
/* Mimics the default link style in common.css */
|
||||
color: #0073aa;
|
||||
color: #007cba;
|
||||
color: var(--wp-admin-theme-color);
|
||||
text-decoration: underline;
|
||||
transition-property: border, background, color;
|
||||
transition-duration: 0.05s;
|
||||
|
@ -385,14 +385,8 @@
|
|||
transition-delay: 0s;
|
||||
}
|
||||
}
|
||||
.components-button.is-link:hover:not(:disabled), .components-button.is-link:active:not(:disabled) {
|
||||
color: #00a0d2;
|
||||
box-shadow: none;
|
||||
}
|
||||
.components-button.is-link:focus {
|
||||
color: #124964;
|
||||
box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
|
||||
box-shadow: 0 0 0 1px #5b9dd9, 0 0 var(--wp-admin-border-width-focus) 1px rgba(30, 140, 190, 0.8);
|
||||
border-radius: 2px;
|
||||
}
|
||||
.components-button.is-link.is-destructive {
|
||||
color: #cc1818;
|
||||
|
@ -2354,6 +2348,9 @@ input.components-combobox-control__input[type=text]:focus {
|
|||
|
||||
/*rtl:end:ignore*/
|
||||
.components-datetime {
|
||||
padding: 16px;
|
||||
}
|
||||
.components-panel__body .components-datetime {
|
||||
padding: 0;
|
||||
}
|
||||
.components-datetime .components-datetime__calendar-help {
|
||||
|
@ -2459,6 +2456,31 @@ input.components-combobox-control__input[type=text]:focus {
|
|||
visibility: hidden;
|
||||
}
|
||||
|
||||
.components-datetime__date .CalendarDay .components-datetime__date__day {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-content: center;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
.components-datetime__date .CalendarDay .components-datetime__date__day.has-events::before {
|
||||
content: " ";
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
margin-left: -2px;
|
||||
bottom: 0;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.components-datetime__date .CalendarDay:not(.CalendarDay__selected) .components-datetime__date__day.has-events::before {
|
||||
background: #007cba;
|
||||
background: var(--wp-admin-theme-color);
|
||||
}
|
||||
|
||||
.components-datetime__time {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
@ -2659,10 +2681,6 @@ body.is-dragging-components-draggable {
|
|||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
}
|
||||
|
||||
.components-drop-zone__provider {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.components-dropdown {
|
||||
display: inline-block;
|
||||
}
|
||||
|
@ -3472,7 +3490,6 @@ body.is-dragging-components-draggable {
|
|||
height: 60px;
|
||||
z-index: 10;
|
||||
position: relative;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
margin: 0 -32px 24px;
|
||||
|
@ -3769,7 +3786,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
box-shadow: inset 0 0 0 1px #1e1e1e;
|
||||
outline: 1px solid transparent;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.components-placeholder.components-placeholder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -4199,6 +4216,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
}
|
||||
}
|
||||
.components-radio-control__input[type=radio]:checked::before {
|
||||
box-sizing: inherit;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
transform: translate(7px, 7px);
|
||||
|
@ -4238,10 +4256,10 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
content: "";
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border: 2px solid #fff;
|
||||
border: 2px solid #007cba;
|
||||
border: 2px solid var(--wp-admin-theme-color);
|
||||
border-radius: 50%;
|
||||
background: #007cba;
|
||||
background: var(--wp-admin-theme-color);
|
||||
background: #fff;
|
||||
cursor: inherit;
|
||||
position: absolute;
|
||||
top: calc(50% - 8px);
|
||||
|
@ -4250,16 +4268,16 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
|
||||
.components-resizable-box__side-handle::before {
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
content: "";
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border: 2px solid #fff;
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
background: #007cba;
|
||||
background: var(--wp-admin-theme-color);
|
||||
cursor: inherit;
|
||||
position: absolute;
|
||||
top: calc(50% - 4px);
|
||||
right: calc(50% - 4px);
|
||||
top: calc(50% - 1px);
|
||||
right: calc(50% - 1px);
|
||||
transition: transform 0.1s ease-in;
|
||||
opacity: 0;
|
||||
}
|
||||
|
@ -4270,11 +4288,6 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
}
|
||||
}
|
||||
|
||||
.is-dark-theme .components-resizable-box__side-handle::before,
|
||||
.is-dark-theme .components-resizable-box__handle::after {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
.components-resizable-box__side-handle {
|
||||
z-index: 2;
|
||||
}
|
||||
|
@ -4339,7 +4352,7 @@ body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right
|
|||
|
||||
/* This CSS is shown only to Safari, which has a bug with table-caption making it jumpy.
|
||||
See https://bugs.webkit.org/show_bug.cgi?id=187903. */
|
||||
@media not all and (min-resolution: 0.001dpcm) {
|
||||
@media not all and (-webkit-min-device-pixel-ratio: 0), not all and (min-resolution: 0.001dpcm) {
|
||||
@supports (-webkit-appearance: none) {
|
||||
.components-resizable-box__side-handle.components-resizable-box__handle-top:hover::before,
|
||||
.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover::before,
|
||||
|
@ -4948,7 +4961,7 @@ div.components-toolbar > div {
|
|||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
div.components-toolbar > div {
|
||||
display: flex;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -133,7 +133,6 @@
|
|||
z-index: 0;
|
||||
}
|
||||
.interface-complementary-area .components-panel__header {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
|
@ -409,7 +408,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||
.edit-post-header > .edit-post-header__settings {
|
||||
order: 1;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.edit-post-header > .edit-post-header__settings {
|
||||
order: initial;
|
||||
}
|
||||
|
@ -1088,7 +1087,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
}
|
||||
|
||||
.edit-post-layout .interface-interface-skeleton__content {
|
||||
background-color: #bbb;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.edit-post-layout__inserter-panel {
|
||||
|
@ -1178,7 +1177,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
}
|
||||
|
||||
.edit-post-manage-blocks-modal__category-title {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
padding: 16px 0;
|
||||
|
@ -1489,7 +1487,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
margin: -5px 0;
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.editor-post-author__select {
|
||||
width: auto;
|
||||
}
|
||||
|
@ -1526,6 +1524,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
text-align: left;
|
||||
}
|
||||
|
||||
.edit-post-post-schedule__dialog .components-popover__content > div {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.editor-post-slug__input {
|
||||
margin: -5px 0;
|
||||
padding: 2px;
|
||||
|
@ -1537,19 +1539,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.edit-post-post-template {
|
||||
width: 100%;
|
||||
justify-content: left;
|
||||
}
|
||||
.edit-post-post-template span {
|
||||
display: block;
|
||||
width: 45%;
|
||||
}
|
||||
|
||||
.edit-post-post-template__value {
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
.edit-post-post-visibility {
|
||||
width: 100%;
|
||||
justify-content: left;
|
||||
|
@ -1638,6 +1627,19 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color);
|
||||
}
|
||||
|
||||
.edit-post-template__modal-actions {
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.edit-post-template__actions button:not(:last-child) {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
h2.edit-post-template-summary__title {
|
||||
margin: 0;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.edit-post-text-editor {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
@ -1690,7 +1692,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
}
|
||||
|
||||
.edit-post-text-editor__toolbar {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
|
@ -1732,7 +1733,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
.edit-post-visual-editor .components-button.is-tertiary, .edit-post-visual-editor .components-button.has-icon {
|
||||
padding: 6px;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.edit-post-visual-editor {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
@ -1745,6 +1746,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
.editor-styles-wrapper > * {
|
||||
cursor: auto;
|
||||
}
|
||||
.editor-styles-wrapper > div {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__post-title-wrapper .editor-post-title {
|
||||
margin-top: 2em;
|
||||
|
@ -1753,6 +1757,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__exit-template-mode {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
.edit-post-welcome-guide {
|
||||
width: 312px;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -133,7 +133,6 @@
|
|||
z-index: 0;
|
||||
}
|
||||
.interface-complementary-area .components-panel__header {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
|
@ -409,7 +408,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|||
.edit-post-header > .edit-post-header__settings {
|
||||
order: 1;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.edit-post-header > .edit-post-header__settings {
|
||||
order: initial;
|
||||
}
|
||||
|
@ -1088,7 +1087,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
}
|
||||
|
||||
.edit-post-layout .interface-interface-skeleton__content {
|
||||
background-color: #bbb;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.edit-post-layout__inserter-panel {
|
||||
|
@ -1178,7 +1177,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
}
|
||||
|
||||
.edit-post-manage-blocks-modal__category-title {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
padding: 16px 0;
|
||||
|
@ -1489,7 +1487,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
margin: -5px 0;
|
||||
width: 100%;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.editor-post-author__select {
|
||||
width: auto;
|
||||
}
|
||||
|
@ -1530,6 +1528,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
text-align: right;
|
||||
}
|
||||
|
||||
.edit-post-post-schedule__dialog .components-popover__content > div {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.editor-post-slug__input {
|
||||
margin: -5px 0;
|
||||
padding: 2px;
|
||||
|
@ -1541,19 +1543,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.edit-post-post-template {
|
||||
width: 100%;
|
||||
justify-content: left;
|
||||
}
|
||||
.edit-post-post-template span {
|
||||
display: block;
|
||||
width: 45%;
|
||||
}
|
||||
|
||||
.edit-post-post-template__value {
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
.edit-post-post-visibility {
|
||||
width: 100%;
|
||||
justify-content: left;
|
||||
|
@ -1642,6 +1631,19 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color);
|
||||
}
|
||||
|
||||
.edit-post-template__modal-actions {
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.edit-post-template__actions button:not(:last-child) {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
h2.edit-post-template-summary__title {
|
||||
margin: 0;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.edit-post-text-editor {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
@ -1694,7 +1696,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
}
|
||||
|
||||
.edit-post-text-editor__toolbar {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
|
@ -1736,7 +1737,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
.edit-post-visual-editor .components-button.is-tertiary, .edit-post-visual-editor .components-button.has-icon {
|
||||
padding: 6px;
|
||||
}
|
||||
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||
@supports (position: sticky) {
|
||||
.edit-post-visual-editor {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
@ -1749,6 +1750,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
.editor-styles-wrapper > * {
|
||||
cursor: auto;
|
||||
}
|
||||
.editor-styles-wrapper > div {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__post-title-wrapper .editor-post-title {
|
||||
margin-top: 2em;
|
||||
|
@ -1757,6 +1761,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__exit-template-mode {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
}
|
||||
|
||||
.edit-post-welcome-guide {
|
||||
width: 312px;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -193,7 +193,6 @@
|
|||
}
|
||||
|
||||
.components-editor-notices__dismissible {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
@ -291,14 +290,6 @@
|
|||
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.editor-page-attributes__template {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.editor-page-attributes__template label,
|
||||
.editor-page-attributes__template select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-page-attributes__order {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -820,6 +811,7 @@
|
|||
}
|
||||
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked::before,
|
||||
.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked::before {
|
||||
box-sizing: inherit;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
transform: translate(-7px, 7px);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -193,7 +193,6 @@
|
|||
}
|
||||
|
||||
.components-editor-notices__dismissible {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
right: 0;
|
||||
|
@ -291,14 +290,6 @@
|
|||
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.editor-page-attributes__template {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.editor-page-attributes__template label,
|
||||
.editor-page-attributes__template select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-page-attributes__order {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -820,6 +811,7 @@
|
|||
}
|
||||
.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio[type=radio]:checked::before,
|
||||
.editor-post-visibility__dialog-fieldset .editor-post-visibility__dialog-radio[type=radio]:checked::before {
|
||||
box-sizing: inherit;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
transform: translate(7px, 7px);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 473);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 475);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -94,14 +94,14 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 273:
|
||||
/***/ 278:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["domReady"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 473:
|
||||
/***/ 475:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -113,7 +113,7 @@ __webpack_require__.d(__webpack_exports__, "setup", function() { return /* bindi
|
|||
__webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; });
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","domReady"]
|
||||
var external_wp_domReady_ = __webpack_require__(273);
|
||||
var external_wp_domReady_ = __webpack_require__(278);
|
||||
var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","i18n"]
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=473)}({1:function(t,e){t.exports=window.wp.i18n},273:function(t,e){t.exports=window.wp.domReady},473:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return u})),n.d(e,"speak",(function(){return d}));var r=n(273),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.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;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var p="";function u(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),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("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n<t.length;n++)t[n].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),p===t&&(t+=" "),p=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(u)}});
|
||||
this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=475)}({1:function(t,e){t.exports=window.wp.i18n},278:function(t,e){t.exports=window.wp.domReady},475:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return u})),n.d(e,"speak",(function(){return d}));var r=n(278),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.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;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var p="";function u(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),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("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n<t.length;n++)t[n].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),p===t&&(t+=" "),p=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(u)}});
|
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 464);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 466);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -94,12 +94,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ 14:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45);
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
|
@ -139,7 +139,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -173,7 +173,7 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 203:
|
||||
/***/ 209:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -302,24 +302,13 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33:
|
||||
/***/ 30:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["hooks"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
@ -609,7 +598,18 @@ function isShallowEqual( a, b, fromIndex ) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44:
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 45:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -631,7 +631,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 464:
|
||||
/***/ 466:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -658,7 +658,7 @@ __webpack_require__.d(actions_namespaceObject, "__experimentalUpdateAnnotationRa
|
|||
__webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotationsBySource", function() { return __experimentalRemoveAnnotationsBySource; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(13);
|
||||
var objectWithoutProperties = __webpack_require__(14);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","richText"]
|
||||
var external_wp_richText_ = __webpack_require__(19);
|
||||
|
@ -869,7 +869,7 @@ var format_name = annotation_annotation.name,
|
|||
Object(external_wp_richText_["registerFormatType"])(format_name, settings);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","hooks"]
|
||||
var external_wp_hooks_ = __webpack_require__(33);
|
||||
var external_wp_hooks_ = __webpack_require__(30);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","data"]
|
||||
var external_wp_data_ = __webpack_require__(4);
|
||||
|
@ -1123,7 +1123,7 @@ function __experimentalGetAnnotations(state) {
|
|||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
|
||||
var v4 = __webpack_require__(203);
|
||||
var v4 = __webpack_require__(209);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/actions.js
|
||||
/**
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 463);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 465);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -94,12 +94,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ 14:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45);
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
|
@ -136,7 +136,7 @@ function _objectWithoutProperties(source, excluded) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44:
|
||||
/***/ 45:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -158,7 +158,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 463:
|
||||
/***/ 465:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -169,7 +169,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
var defineProperty = __webpack_require__(5);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(13);
|
||||
var objectWithoutProperties = __webpack_require__(14);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","i18n"]
|
||||
var external_wp_i18n_ = __webpack_require__(1);
|
||||
|
@ -359,7 +359,7 @@ function createPreloadingMiddleware(preloadedData) {
|
|||
headers: cacheData.headers
|
||||
}));
|
||||
} else if ('OPTIONS' === method && cache[method] && cache[method][path]) {
|
||||
return Promise.resolve(cache[method][path]);
|
||||
return Promise.resolve(parse ? cache[method][path].body : cache[method][path]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["autop"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 296);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 299);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -96,18 +96,21 @@ this["wp"] = this["wp"] || {}; this["wp"]["autop"] =
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -129,7 +132,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -177,7 +180,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 296:
|
||||
/***/ 299:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -593,7 +596,7 @@ function removep(html) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -604,7 +607,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["blob"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 297);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 300);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 297:
|
||||
/***/ 300:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
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=297)}({297: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,"getBlobTypeByURL",(function(){return l})),n.d(t,"revokeBlobURL",(function(){return d})),n.d(t,"isBlobURL",(function(){return a}));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){var t;return null===(t=c(e))||void 0===t?void 0:t.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(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=300)}({300: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,"getBlobTypeByURL",(function(){return l})),n.d(t,"revokeBlobURL",(function(){return d})),n.d(t,"isBlobURL",(function(){return a}));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){var t;return null===(t=c(e))||void 0===t?void 0:t.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
|
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 457);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 459);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -117,18 +117,21 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] =
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -150,7 +153,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -163,40 +166,12 @@ function _slicedToArray(arr, i) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||||
|
||||
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
||||
key = sourceSymbolKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 136:
|
||||
/***/ 133:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
|
||||
|
||||
|
@ -237,6 +212,34 @@ function Icon(_ref) {
|
|||
/* harmony default export */ __webpack_exports__["a"] = (Icon);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45);
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||||
|
||||
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
||||
key = sourceSymbolKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15:
|
||||
|
@ -256,7 +259,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -290,7 +293,7 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 213:
|
||||
/***/ 217:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -332,7 +335,7 @@ function _arrayLikeToArray(arr, len) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 274:
|
||||
/***/ 279:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["editPost"]; }());
|
||||
|
@ -357,7 +360,21 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 298:
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["components"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 30:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["hooks"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 301:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -382,7 +399,7 @@ var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 299:
|
||||
/***/ 302:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -409,28 +426,21 @@ var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["components"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 30:
|
||||
/***/ 31:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["editor"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33:
|
||||
/***/ 37:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["hooks"]; }());
|
||||
(function() { module.exports = window["wp"]["coreData"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -441,7 +451,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -452,17 +462,6 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
@ -471,13 +470,17 @@ function _iterableToArray(iter) {
|
|||
/***/ }),
|
||||
|
||||
/***/ 42:
|
||||
/***/ (function(module, exports) {
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
(function() { module.exports = window["wp"]["coreData"]; }());
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44:
|
||||
/***/ 45:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -499,7 +502,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 457:
|
||||
/***/ 459:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -541,7 +544,7 @@ var external_wp_element_ = __webpack_require__(0);
|
|||
var external_wp_plugins_ = __webpack_require__(73);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","hooks"]
|
||||
var external_wp_hooks_ = __webpack_require__(33);
|
||||
var external_wp_hooks_ = __webpack_require__(30);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","blocks"]
|
||||
var external_wp_blocks_ = __webpack_require__(9);
|
||||
|
@ -550,7 +553,7 @@ var external_wp_blocks_ = __webpack_require__(9);
|
|||
var external_wp_data_ = __webpack_require__(4);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","editor"]
|
||||
var external_wp_editor_ = __webpack_require__(30);
|
||||
var external_wp_editor_ = __webpack_require__(31);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(5);
|
||||
|
@ -1527,7 +1530,7 @@ var external_wp_components_ = __webpack_require__(3);
|
|||
var external_wp_compose_ = __webpack_require__(11);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","coreData"]
|
||||
var external_wp_coreData_ = __webpack_require__(42);
|
||||
var external_wp_coreData_ = __webpack_require__(37);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(8);
|
||||
|
@ -1536,10 +1539,10 @@ var esm_extends = __webpack_require__(8);
|
|||
var external_wp_htmlEntities_ = __webpack_require__(57);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
|
||||
var build_module_icon = __webpack_require__(136);
|
||||
var build_module_icon = __webpack_require__(133);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
|
||||
var star_filled = __webpack_require__(298);
|
||||
var star_filled = __webpack_require__(301);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","primitives"]
|
||||
var external_wp_primitives_ = __webpack_require__(7);
|
||||
|
@ -1560,7 +1563,7 @@ var starHalf = Object(external_wp_element_["createElement"])(external_wp_primiti
|
|||
/* harmony default export */ var star_half = (starHalf);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
|
||||
var star_empty = __webpack_require__(299);
|
||||
var star_empty = __webpack_require__(302);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js
|
||||
|
||||
|
@ -1935,7 +1938,7 @@ function DownloadableBlocksInserterPanel(_ref) {
|
|||
/* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
|
||||
var block_default = __webpack_require__(213);
|
||||
var block_default = __webpack_require__(217);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
|
||||
|
||||
|
@ -2100,7 +2103,7 @@ function InserterMenuDownloadableBlocksPanel() {
|
|||
/* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","editPost"]
|
||||
var external_wp_editPost_ = __webpack_require__(274);
|
||||
var external_wp_editPost_ = __webpack_require__(279);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js
|
||||
|
||||
|
@ -2184,7 +2187,7 @@ function InstalledBlocksPrePublishPanel() {
|
|||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(13);
|
||||
var objectWithoutProperties = __webpack_require__(14);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/plugins/get-install-missing/install-button.js
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockSerializationDefaultParser"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 316);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 319);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -96,18 +96,21 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockSerializationDefaultParser"] =
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -129,7 +132,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -177,7 +180,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 316:
|
||||
/***/ 319:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -567,7 +570,7 @@ function addBlockFromStack(endOffset) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -578,7 +581,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
this.wp=this.wp||{},this.wp.blockSerializationDefaultParser=function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));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=316)}({12:function(t,n,r){"use strict";r.d(n,"a",(function(){return i}));var e=r(37);var o=r(28),u=r(38);function i(t,n){return Object(e.a)(t)||function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],e=!0,o=!1,u=void 0;try{for(var i,c=t[Symbol.iterator]();!(e=(i=c.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){o=!0,u=t}finally{try{e||null==c.return||c.return()}finally{if(o)throw u}}return r}}(t,n)||Object(o.a)(t,n)||Object(u.a)()}},24:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}r.d(n,"a",(function(){return e}))},28:function(t,n,r){"use strict";r.d(n,"a",(function(){return o}));var e=r(24);function o(t,n){if(t){if("string"==typeof t)return Object(e.a)(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(e.a)(t,n):void 0}}},316:function(t,n,r){"use strict";r.r(n),r.d(n,"parse",(function(){return s}));var e,o,u,i,c=r(12),a=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function l(t,n,r,e,o){return{blockName:t,attrs:n,innerBlocks:r,innerHTML:e,innerContent:o}}function f(t){return l(null,{},[],t,[t])}var s=function(t){e=t,o=0,u=[],i=[],a.lastIndex=0;do{}while(p());return u};function p(){var t=function(){var t=a.exec(e);if(null===t)return["no-more-tokens"];var n=t.index,r=Object(c.a)(t,7),o=r[0],u=r[1],i=r[2],l=r[3],f=r[4],s=r[6],p=o.length,b=!!u,d=!!s,v=(i||"core/")+l,h=!!f,y=h?function(t){try{return JSON.parse(t)}catch(t){return null}}(f):{};if(d)return["void-block",v,y,n,p];if(b)return["block-closer",v,null,n,p];return["block-opener",v,y,n,p]}(),n=Object(c.a)(t,5),r=n[0],s=n[1],p=n[2],h=n[3],y=n[4],k=i.length,O=h>o?o:null;switch(r){case"no-more-tokens":if(0===k)return b(),!1;if(1===k)return v(),!1;for(;0<i.length;)v();return!1;case"void-block":return 0===k?(null!==O&&u.push(f(e.substr(O,h-O))),u.push(l(s,p,[],"",[])),o=h+y,!0):(d(l(s,p,[],"",[]),h,y),o=h+y,!0);case"block-opener":return i.push(function(t,n,r,e,o){return{block:t,tokenStart:n,tokenLength:r,prevOffset:e||n+r,leadingHtmlStart:o}}(l(s,p,[],"",[]),h,y,h+y,O)),o=h+y,!0;case"block-closer":if(0===k)return b(),!1;if(1===k)return v(h),o=h+y,!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+y,d(g.block,g.tokenStart,g.tokenLength,h+y),o=h+y,!0;default:return b(),!1}}function b(t){var n=t||e.length-o;0!==n&&u.push(f(e.substr(o,n)))}function d(t,n,r,o){var u=i[i.length-1];u.block.innerBlocks.push(t);var c=e.substr(u.prevOffset,n-u.prevOffset);c&&(u.block.innerHTML+=c,u.block.innerContent.push(c)),u.block.innerContent.push(null),u.prevOffset=o||n+r}function v(t){var n=i.pop(),r=n.block,o=n.leadingHtmlStart,c=n.prevOffset,a=n.tokenStart,l=t?e.substr(c,t-c):e.substr(c);l&&(r.innerHTML+=l,r.innerContent.push(l)),null!==o&&u.push(f(e.substr(o,a-o))),u.push(r)}},37:function(t,n,r){"use strict";function e(t){if(Array.isArray(t))return t}r.d(n,"a",(function(){return e}))},38:function(t,n,r){"use strict";function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(n,"a",(function(){return e}))}});
|
||||
this.wp=this.wp||{},this.wp.blockSerializationDefaultParser=function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));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=319)}({12:function(t,n,r){"use strict";r.d(n,"a",(function(){return i}));var e=r(38);var o=r(28),u=r(39);function i(t,n){return Object(e.a)(t)||function(t,n){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=r){var e,o,u=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(e=r.next()).done)&&(u.push(e.value),!n||u.length!==n);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return u}}(t,n)||Object(o.a)(t,n)||Object(u.a)()}},24:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}r.d(n,"a",(function(){return e}))},28:function(t,n,r){"use strict";r.d(n,"a",(function(){return o}));var e=r(24);function o(t,n){if(t){if("string"==typeof t)return Object(e.a)(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(e.a)(t,n):void 0}}},319:function(t,n,r){"use strict";r.r(n),r.d(n,"parse",(function(){return s}));var e,o,u,i,c=r(12),l=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function a(t,n,r,e,o){return{blockName:t,attrs:n,innerBlocks:r,innerHTML:e,innerContent:o}}function f(t){return a(null,{},[],t,[t])}var s=function(t){e=t,o=0,u=[],i=[],l.lastIndex=0;do{}while(p());return u};function p(){var t=function(){var t=l.exec(e);if(null===t)return["no-more-tokens"];var n=t.index,r=Object(c.a)(t,7),o=r[0],u=r[1],i=r[2],a=r[3],f=r[4],s=r[6],p=o.length,b=!!u,d=!!s,v=(i||"core/")+a,h=!!f,y=h?function(t){try{return JSON.parse(t)}catch(t){return null}}(f):{};if(d)return["void-block",v,y,n,p];if(b)return["block-closer",v,null,n,p];return["block-opener",v,y,n,p]}(),n=Object(c.a)(t,5),r=n[0],s=n[1],p=n[2],h=n[3],y=n[4],k=i.length,O=h>o?o:null;switch(r){case"no-more-tokens":if(0===k)return b(),!1;if(1===k)return v(),!1;for(;0<i.length;)v();return!1;case"void-block":return 0===k?(null!==O&&u.push(f(e.substr(O,h-O))),u.push(a(s,p,[],"",[])),o=h+y,!0):(d(a(s,p,[],"",[]),h,y),o=h+y,!0);case"block-opener":return i.push(function(t,n,r,e,o){return{block:t,tokenStart:n,tokenLength:r,prevOffset:e||n+r,leadingHtmlStart:o}}(a(s,p,[],"",[]),h,y,h+y,O)),o=h+y,!0;case"block-closer":if(0===k)return b(),!1;if(1===k)return v(h),o=h+y,!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+y,d(g.block,g.tokenStart,g.tokenLength,h+y),o=h+y,!0;default:return b(),!1}}function b(t){var n=t||e.length-o;0!==n&&u.push(f(e.substr(o,n)))}function d(t,n,r,o){var u=i[i.length-1];u.block.innerBlocks.push(t);var c=e.substr(u.prevOffset,n-u.prevOffset);c&&(u.block.innerHTML+=c,u.block.innerContent.push(c)),u.block.innerContent.push(null),u.prevOffset=o||n+r}function v(t){var n=i.pop(),r=n.block,o=n.leadingHtmlStart,c=n.prevOffset,l=n.tokenStart,a=t?e.substr(c,t-c):e.substr(c);a&&(r.innerHTML+=a,r.innerContent.push(a)),null!==o&&u.push(f(e.substr(o,l-o))),u.push(r)}},38:function(t,n,r){"use strict";function e(t){if(Array.isArray(t))return t}r.d(n,"a",(function(){return e}))},39:function(t,n,r){"use strict";function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(n,"a",(function(){return e}))}});
|
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blocks"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 452);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 454);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -108,7 +108,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blocks"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 116:
|
||||
/***/ 119:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["autop"]; }());
|
||||
|
@ -124,18 +124,21 @@ this["wp"] = this["wp"] || {}; this["wp"]["blocks"] =
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -157,7 +160,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -170,32 +173,13 @@ function _slicedToArray(arr, i) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 127:
|
||||
/***/ 131:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["shortcode"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; });
|
||||
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37);
|
||||
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
||||
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28);
|
||||
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38);
|
||||
|
||||
|
||||
|
||||
|
||||
function _toArray(arr) {
|
||||
return Object(_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(arr) || Object(_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(arr) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(arr) || Object(_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])();
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
@ -213,7 +197,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -233,6 +217,25 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; });
|
||||
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
|
||||
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42);
|
||||
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28);
|
||||
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39);
|
||||
|
||||
|
||||
|
||||
|
||||
function _toArray(arr) {
|
||||
return Object(_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(arr) || Object(_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(arr) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(arr) || Object(_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])();
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
@ -240,7 +243,7 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 203:
|
||||
/***/ 209:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -334,7 +337,7 @@ function v4(options, buf, offset) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 213:
|
||||
/***/ 217:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -437,14 +440,14 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 280:
|
||||
/***/ 285:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["blockSerializationDefaultParser"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 281:
|
||||
/***/ 286:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;;/*! showdown v 1.9.1 - 02-11-2019 */
|
||||
|
@ -5589,7 +5592,7 @@ if (true) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33:
|
||||
/***/ 30:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["hooks"]; }());
|
||||
|
@ -5603,7 +5606,7 @@ if (true) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -5614,7 +5617,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -5625,17 +5628,6 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
@ -5923,6 +5915,17 @@ function isShallowEqual( a, b, fromIndex ) {
|
|||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 43:
|
||||
|
@ -5932,7 +5935,7 @@ function isShallowEqual( a, b, fromIndex ) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 452:
|
||||
/***/ 454:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -6000,6 +6003,7 @@ __webpack_require__.d(__webpack_exports__, "isValidIcon", function() { return /*
|
|||
__webpack_require__.d(__webpack_exports__, "__experimentalGetBlockLabel", function() { return /* reexport */ getBlockLabel; });
|
||||
__webpack_require__.d(__webpack_exports__, "__experimentalGetAccessibleBlockLabel", function() { return /* reexport */ getAccessibleBlockLabel; });
|
||||
__webpack_require__.d(__webpack_exports__, "__experimentalSanitizeBlockAttributes", function() { return /* reexport */ __experimentalSanitizeBlockAttributes; });
|
||||
__webpack_require__.d(__webpack_exports__, "__experimentalGetBlockAttributesNamesByRole", function() { return /* reexport */ __experimentalGetBlockAttributesNamesByRole; });
|
||||
__webpack_require__.d(__webpack_exports__, "doBlocksMatchTemplate", function() { return /* reexport */ doBlocksMatchTemplate; });
|
||||
__webpack_require__.d(__webpack_exports__, "synchronizeBlocksWithTemplate", function() { return /* reexport */ synchronizeBlocksWithTemplate; });
|
||||
__webpack_require__.d(__webpack_exports__, "children", function() { return /* reexport */ api_children; });
|
||||
|
@ -6854,13 +6858,13 @@ Object(external_wp_data_["register"])(store);
|
|||
var slicedToArray = __webpack_require__(12);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
|
||||
var v4 = __webpack_require__(203);
|
||||
var v4 = __webpack_require__(209);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","hooks"]
|
||||
var external_wp_hooks_ = __webpack_require__(33);
|
||||
var external_wp_hooks_ = __webpack_require__(30);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js
|
||||
var block_default = __webpack_require__(213);
|
||||
var block_default = __webpack_require__(217);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js
|
||||
var tinycolor = __webpack_require__(62);
|
||||
|
@ -7117,6 +7121,28 @@ function __experimentalSanitizeBlockAttributes(name, attributes) {
|
|||
return accumulator;
|
||||
}, {});
|
||||
}
|
||||
/**
|
||||
* Filter block attributes by `role` and return their names.
|
||||
*
|
||||
* @param {string} name Block attribute's name.
|
||||
* @param {string} role The role of a block attribute.
|
||||
*
|
||||
* @return {string[]} The attribute names that have the provided role.
|
||||
*/
|
||||
|
||||
function __experimentalGetBlockAttributesNamesByRole(name, role) {
|
||||
var _getBlockType;
|
||||
|
||||
var attributes = (_getBlockType = registration_getBlockType(name)) === null || _getBlockType === void 0 ? void 0 : _getBlockType.attributes;
|
||||
if (!attributes) return [];
|
||||
var attributesNames = Object.keys(attributes);
|
||||
if (!role) return attributesNames;
|
||||
return attributesNames.filter(function (attributeName) {
|
||||
var _attributes$attribute;
|
||||
|
||||
return ((_attributes$attribute = attributes[attributeName]) === null || _attributes$attribute === void 0 ? void 0 : _attributes$attribute.__experimentalRole) === role;
|
||||
});
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/constants.js
|
||||
/**
|
||||
|
@ -8125,6 +8151,10 @@ function getBlockTransforms(direction, blockTypeOrName) {
|
|||
|
||||
var usingMobileTransformations = transforms.supportedMobileTransforms && Array.isArray(transforms.supportedMobileTransforms);
|
||||
var filteredTransforms = usingMobileTransformations ? Object(external_lodash_["filter"])(transforms[direction], function (t) {
|
||||
if (t.type === 'raw') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!t.blocks || !t.blocks.length) {
|
||||
return false;
|
||||
}
|
||||
|
@ -8431,13 +8461,13 @@ function query(selector, matchers) {
|
|||
};
|
||||
}
|
||||
// EXTERNAL MODULE: external ["wp","autop"]
|
||||
var external_wp_autop_ = __webpack_require__(116);
|
||||
var external_wp_autop_ = __webpack_require__(119);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","blockSerializationDefaultParser"]
|
||||
var external_wp_blockSerializationDefaultParser_ = __webpack_require__(280);
|
||||
var external_wp_blockSerializationDefaultParser_ = __webpack_require__(285);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
|
||||
var toArray = __webpack_require__(147);
|
||||
var toArray = __webpack_require__(151);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
||||
var classCallCheck = __webpack_require__(25);
|
||||
|
@ -9422,7 +9452,7 @@ function createQueuedLogger() {
|
|||
}
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","isShallowEqual"]
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(65);
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(67);
|
||||
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
|
@ -12136,7 +12166,7 @@ function figureContentReducer(node, doc, schema) {
|
|||
}
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","shortcode"]
|
||||
var external_wp_shortcode_ = __webpack_require__(127);
|
||||
var external_wp_shortcode_ = __webpack_require__(131);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js
|
||||
|
||||
|
@ -12230,7 +12260,7 @@ function segmentHTMLToShortcodeBlock(HTML) {
|
|||
/* harmony default export */ var shortcode_converter = (segmentHTMLToShortcodeBlock);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/showdown/dist/showdown.js
|
||||
var showdown = __webpack_require__(281);
|
||||
var showdown = __webpack_require__(286);
|
||||
var showdown_default = /*#__PURE__*/__webpack_require__.n(showdown);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js
|
||||
|
@ -14376,7 +14406,7 @@ else {}
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 65:
|
||||
/***/ 67:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["isShallowEqual"]; }());
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 454);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 456);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -103,18 +103,21 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] =
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -136,7 +139,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -149,7 +152,14 @@ function _slicedToArray(arr, i) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 126:
|
||||
/***/ 13:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["React"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 130:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -157,7 +167,7 @@ function _slicedToArray(arr, i) {
|
|||
/* unused harmony export useCallbackOne */
|
||||
/* unused harmony export useMemo */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useMemoOne; });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
|
||||
|
@ -206,13 +216,6 @@ var useCallback = useCallbackOne;
|
|||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["React"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15:
|
||||
|
@ -232,7 +235,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -252,15 +255,15 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ 155:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var e=__webpack_require__(14),n={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},t=function(t){var r=t.onResize,u=e.useRef();return function(n,t){var r=function(){return n.current&&n.current.contentDocument&&n.current.contentDocument.defaultView};function u(){t();var e=r();e&&e.addEventListener("resize",t)}e.useEffect((function(){return r()?u():n.current&&n.current.addEventListener&&n.current.addEventListener("load",u),function(){var e=r();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(u,(function(){return r(u)})),e.createElement("iframe",{style:n,src:"about:blank",ref:u,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},r=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};module.exports=function(n){void 0===n&&(n=r);var u=e.useState(n(null)),o=u[0],i=u[1],c=e.useCallback((function(e){return i(n(e.current))}),[n]);return[e.useMemo((function(){return e.createElement(t,{onResize:c})}),[c]),o]};
|
||||
var e=__webpack_require__(13),n={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},t=function(t){var r=t.onResize,u=e.useRef();return function(n,t){var r=function(){return n.current&&n.current.contentDocument&&n.current.contentDocument.defaultView};function u(){t();var e=r();e&&e.addEventListener("resize",t)}e.useEffect((function(){return r()?u():n.current&&n.current.addEventListener&&n.current.addEventListener("load",u),function(){var e=r();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(u,(function(){return r(u)})),e.createElement("iframe",{style:n,src:"about:blank",ref:u,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},r=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};module.exports=function(n){void 0===n&&(n=r);var u=e.useState(n(null)),o=u[0],i=u[1],c=e.useCallback((function(e){return i(n(e.current))}),[n]);return[e.useMemo((function(){return e.createElement(t,{onResize:c})}),[c]),o]};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 152:
|
||||
/***/ 156:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["priorityQueue"]; }());
|
||||
|
@ -289,7 +292,7 @@ function _assertThisInitialized(self) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 183:
|
||||
/***/ 188:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
/*!
|
||||
|
@ -1343,7 +1346,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 285:
|
||||
/***/ 289:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */
|
||||
|
@ -2409,7 +2412,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 32:
|
||||
/***/ 33:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -2460,7 +2463,7 @@ function _possibleConstructorReturn(self, call) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -2471,7 +2474,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -2482,18 +2485,18 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 428:
|
||||
/***/ 431:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
/**
|
||||
|
@ -2546,7 +2549,7 @@ function _iterableToArray(iter) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 454:
|
||||
/***/ 456:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -2584,6 +2587,7 @@ __webpack_require__.d(__webpack_exports__, "useDebounce", function() { return /*
|
|||
__webpack_require__.d(__webpack_exports__, "useThrottle", function() { return /* reexport */ useThrottle; });
|
||||
__webpack_require__.d(__webpack_exports__, "useMergeRefs", function() { return /* reexport */ useMergeRefs; });
|
||||
__webpack_require__.d(__webpack_exports__, "useRefEffect", function() { return /* reexport */ useRefEffect; });
|
||||
__webpack_require__.d(__webpack_exports__, "__experimentalUseDropZone", function() { return /* reexport */ useDropZone; });
|
||||
|
||||
// EXTERNAL MODULE: external "lodash"
|
||||
var external_lodash_ = __webpack_require__(2);
|
||||
|
@ -2673,7 +2677,7 @@ var classCallCheck = __webpack_require__(25);
|
|||
var createClass = __webpack_require__(26);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
||||
var inherits = __webpack_require__(32);
|
||||
var inherits = __webpack_require__(33);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
||||
var possibleConstructorReturn = __webpack_require__(34);
|
||||
|
@ -2682,7 +2686,7 @@ var possibleConstructorReturn = __webpack_require__(34);
|
|||
var getPrototypeOf = __webpack_require__(22);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","isShallowEqual"]
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(65);
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(67);
|
||||
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/pure/index.js
|
||||
|
@ -3304,7 +3308,7 @@ function useConstrainedTabbing() {
|
|||
var slicedToArray = __webpack_require__(12);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/clipboard/dist/clipboard.js
|
||||
var dist_clipboard = __webpack_require__(183);
|
||||
var dist_clipboard = __webpack_require__(188);
|
||||
var clipboard_default = /*#__PURE__*/__webpack_require__.n(dist_clipboard);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-copy-on-click/index.js
|
||||
|
@ -4029,11 +4033,11 @@ function useDragging(_ref) {
|
|||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/mousetrap/mousetrap.js
|
||||
var mousetrap_mousetrap = __webpack_require__(285);
|
||||
var mousetrap_mousetrap = __webpack_require__(289);
|
||||
var mousetrap_default = /*#__PURE__*/__webpack_require__.n(mousetrap_mousetrap);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/mousetrap/plugins/global-bind/mousetrap-global-bind.js
|
||||
var mousetrap_global_bind = __webpack_require__(428);
|
||||
var mousetrap_global_bind = __webpack_require__(431);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-keyboard-shortcut/index.js
|
||||
/**
|
||||
|
@ -4323,7 +4327,7 @@ use_viewport_match_useViewportMatch.__experimentalWidthProvider = ViewportMatchW
|
|||
/* harmony default export */ var use_viewport_match = (use_viewport_match_useViewportMatch);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/react-resize-aware/dist/index.js
|
||||
var dist = __webpack_require__(151);
|
||||
var dist = __webpack_require__(155);
|
||||
var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-resize-observer/index.js
|
||||
|
@ -4360,7 +4364,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|||
var toConsumableArray = __webpack_require__(15);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","priorityQueue"]
|
||||
var external_wp_priorityQueue_ = __webpack_require__(152);
|
||||
var external_wp_priorityQueue_ = __webpack_require__(156);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-async-list/index.js
|
||||
|
||||
|
@ -4507,7 +4511,7 @@ function useWarnOnChange(object) {
|
|||
/* harmony default export */ var use_warn_on_change = (useWarnOnChange);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/use-memo-one/dist/use-memo-one.esm.js
|
||||
var use_memo_one_esm = __webpack_require__(126);
|
||||
var use_memo_one_esm = __webpack_require__(130);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-debounce/index.js
|
||||
/**
|
||||
|
@ -4585,6 +4589,175 @@ function useThrottle() {
|
|||
return throttled;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-drop-zone/index.js
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
/** @typedef {import('@wordpress/element').RefCallback} RefCallback */
|
||||
|
||||
function useFreshRef(value) {
|
||||
var ref = Object(external_wp_element_["useRef"])();
|
||||
ref.current = value;
|
||||
return ref;
|
||||
}
|
||||
/**
|
||||
* A hook to facilitate drag and drop handling.
|
||||
*
|
||||
* @param {Object} $1 Named parameters.
|
||||
* @param {boolean} $1.isDisabled Whether or not to disable the drop zone.
|
||||
* @param {DragEvent} $1.onDragStart Called when dragging has started.
|
||||
* @param {DragEvent} $1.onDragEnter Called when the zone is entered.
|
||||
* @param {DragEvent} $1.onDragOver Called when the zone is moved within.
|
||||
* @param {DragEvent} $1.onDragLeave Called when the zone is left.
|
||||
* @param {MouseEvent} $1.onDragEnd Called when dragging has ended.
|
||||
* @param {DragEvent} $1.onDrop Called when dropping in the zone.
|
||||
*
|
||||
* @return {RefCallback} Ref callback to be passed to the drop zone element.
|
||||
*/
|
||||
|
||||
|
||||
function useDropZone(_ref) {
|
||||
var isDisabled = _ref.isDisabled,
|
||||
_onDrop = _ref.onDrop,
|
||||
_onDragStart = _ref.onDragStart,
|
||||
_onDragEnter = _ref.onDragEnter,
|
||||
_onDragLeave = _ref.onDragLeave,
|
||||
_onDragEnd = _ref.onDragEnd,
|
||||
_onDragOver = _ref.onDragOver;
|
||||
var onDropRef = useFreshRef(_onDrop);
|
||||
var onDragStartRef = useFreshRef(_onDragStart);
|
||||
var onDragEnterRef = useFreshRef(_onDragEnter);
|
||||
var onDragLeaveRef = useFreshRef(_onDragLeave);
|
||||
var onDragEndRef = useFreshRef(_onDragEnd);
|
||||
var onDragOverRef = useFreshRef(_onDragOver);
|
||||
return useRefEffect(function (element) {
|
||||
if (isDisabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
var isDragging = false;
|
||||
var ownerDocument = element.ownerDocument;
|
||||
|
||||
function maybeDragStart(event) {
|
||||
if (isDragging) {
|
||||
return;
|
||||
}
|
||||
|
||||
isDragging = true;
|
||||
ownerDocument.removeEventListener('dragenter', maybeDragStart);
|
||||
|
||||
if (onDragStartRef.current) {
|
||||
onDragStartRef.current(event);
|
||||
}
|
||||
}
|
||||
|
||||
function onDragEnter(event) {
|
||||
event.preventDefault(); // The `dragenter` event will also fire when entering child
|
||||
// elements, but we only want to call `onDragEnter` when
|
||||
// entering the drop zone, which means the `relatedTarget`
|
||||
// (element that has been left) should be outside the drop zone.
|
||||
|
||||
if (element.contains(event.relatedTarget)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (onDragEnterRef.current) {
|
||||
onDragEnterRef.current(event);
|
||||
}
|
||||
}
|
||||
|
||||
function onDragOver(event) {
|
||||
// Only call onDragOver for the innermost hovered drop zones.
|
||||
if (!event.defaultPrevented && onDragOverRef.current) {
|
||||
onDragOverRef.current(event);
|
||||
} // Prevent the browser default while also signalling to parent
|
||||
// drop zones that `onDragOver` is already handled.
|
||||
|
||||
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
function onDragLeave(event) {
|
||||
// The `dragleave` event will also fire when leaving child
|
||||
// elements, but we only want to call `onDragLeave` when
|
||||
// leaving the drop zone, which means the `relatedTarget`
|
||||
// (element that has been entered) should be outside the drop
|
||||
// zone.
|
||||
if (element.contains(event.relatedTarget)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (onDragLeaveRef.current) {
|
||||
onDragLeaveRef.current(event);
|
||||
}
|
||||
}
|
||||
|
||||
function onDrop(event) {
|
||||
// Don't handle drop if an inner drop zone already handled it.
|
||||
if (event.defaultPrevented) {
|
||||
return;
|
||||
} // Prevent the browser default while also signalling to parent
|
||||
// drop zones that `onDrop` is already handled.
|
||||
|
||||
|
||||
event.preventDefault(); // This seemingly useless line has been shown to resolve a
|
||||
// Safari issue where files dragged directly from the dock are
|
||||
// not recognized.
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
event.dataTransfer && event.dataTransfer.files.length;
|
||||
|
||||
if (onDropRef.current) {
|
||||
onDropRef.current(event);
|
||||
}
|
||||
|
||||
maybeDragEnd(event);
|
||||
}
|
||||
|
||||
function maybeDragEnd(event) {
|
||||
if (!isDragging) {
|
||||
return;
|
||||
}
|
||||
|
||||
isDragging = false;
|
||||
ownerDocument.addEventListener('dragenter', maybeDragStart);
|
||||
|
||||
if (onDragEndRef.current) {
|
||||
onDragEndRef.current(event);
|
||||
}
|
||||
}
|
||||
|
||||
element.addEventListener('drop', onDrop);
|
||||
element.addEventListener('dragenter', onDragEnter);
|
||||
element.addEventListener('dragover', onDragOver);
|
||||
element.addEventListener('dragleave', onDragLeave); // Note that `dragend` doesn't fire consistently for file and HTML
|
||||
// drag events where the drag origin is outside the browser window.
|
||||
// In Firefox it may also not fire if the originating node is
|
||||
// removed.
|
||||
|
||||
ownerDocument.addEventListener('dragend', maybeDragEnd);
|
||||
ownerDocument.addEventListener('mouseup', maybeDragEnd); // The `dragstart` event doesn't fire if the drag started outside
|
||||
// the document.
|
||||
|
||||
ownerDocument.addEventListener('dragenter', maybeDragStart);
|
||||
return function () {
|
||||
element.removeEventListener('drop', onDrop);
|
||||
element.removeEventListener('dragenter', onDragEnter);
|
||||
element.removeEventListener('dragover', onDragOver);
|
||||
element.removeEventListener('dragleave', onDragLeave);
|
||||
ownerDocument.removeEventListener('dragend', maybeDragEnd);
|
||||
ownerDocument.removeEventListener('mouseup', maybeDragEnd);
|
||||
ownerDocument.addEventListener('dragenter', maybeDragStart);
|
||||
};
|
||||
}, [isDisabled]);
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/index.js
|
||||
// Utils
|
||||
// Compose helper (aliased flowRight from Lodash)
|
||||
|
@ -4620,6 +4793,7 @@ function useThrottle() {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
@ -4690,7 +4864,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 65:
|
||||
/***/ 67:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["isShallowEqual"]; }());
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["coreData"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 455);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 458);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -101,7 +101,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["coreData"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 104:
|
||||
/***/ 107:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -425,18 +425,21 @@ module.exports = EquivalentKeyMap;
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -458,7 +461,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -471,25 +474,6 @@ function _slicedToArray(arr, i) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 147:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; });
|
||||
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37);
|
||||
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
||||
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28);
|
||||
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38);
|
||||
|
||||
|
||||
|
||||
|
||||
function _toArray(arr) {
|
||||
return Object(_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(arr) || Object(_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(arr) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(arr) || Object(_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])();
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
@ -507,7 +491,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -527,6 +511,25 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; });
|
||||
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
|
||||
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42);
|
||||
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28);
|
||||
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39);
|
||||
|
||||
|
||||
|
||||
|
||||
function _toArray(arr) {
|
||||
return Object(_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(arr) || Object(_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(arr) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(arr) || Object(_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])();
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 16:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
@ -541,7 +544,7 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 203:
|
||||
/***/ 209:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -713,7 +716,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -724,7 +727,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -735,17 +738,6 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
@ -1035,7 +1027,18 @@ function isShallowEqual( a, b, fromIndex ) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 455:
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 458:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -1163,7 +1166,7 @@ var toConsumableArray = __webpack_require__(15);
|
|||
var external_lodash_ = __webpack_require__(2);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","isShallowEqual"]
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(65);
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(67);
|
||||
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/if-matching-action.js
|
||||
|
@ -1309,10 +1312,10 @@ var external_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(ext
|
|||
var external_wp_i18n_ = __webpack_require__(1);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
|
||||
var toArray = __webpack_require__(147);
|
||||
var toArray = __webpack_require__(151);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
|
||||
var v4 = __webpack_require__(203);
|
||||
var v4 = __webpack_require__(209);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","url"]
|
||||
var external_wp_url_ = __webpack_require__(29);
|
||||
|
@ -4525,7 +4528,7 @@ var rememo = __webpack_require__(40);
|
|||
var STORE_NAME = 'core';
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js
|
||||
var equivalent_key_map = __webpack_require__(104);
|
||||
var equivalent_key_map = __webpack_require__(107);
|
||||
var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/queried-data/selectors.js
|
||||
|
@ -4770,7 +4773,7 @@ var getUserQueryResults = Object(rememo["a" /* default */])(function (state, que
|
|||
* @param {Object} state Data state.
|
||||
* @param {string} kind Entity kind.
|
||||
*
|
||||
* @return {boolean} Whether the entities are loaded
|
||||
* @return {Array<Object>} Array of entities with config matching kind.
|
||||
*/
|
||||
|
||||
function getEntitiesByKind(state, kind) {
|
||||
|
@ -6119,50 +6122,62 @@ function resolvers_experimentalGetTemplateForLink(link) {
|
|||
while (1) {
|
||||
switch (_context12.prev = _context12.next) {
|
||||
case 0:
|
||||
_context12.next = 2;
|
||||
_context12.prev = 0;
|
||||
_context12.next = 3;
|
||||
return regularFetch(Object(external_wp_url_["addQueryArgs"])(link, {
|
||||
'_wp-find-template': true
|
||||
}));
|
||||
|
||||
case 2:
|
||||
case 3:
|
||||
template = _context12.sent;
|
||||
_context12.next = 8;
|
||||
break;
|
||||
|
||||
if (!(template === null)) {
|
||||
_context12.next = 5;
|
||||
case 6:
|
||||
_context12.prev = 6;
|
||||
_context12.t0 = _context12["catch"](0);
|
||||
|
||||
case 8:
|
||||
if (template) {
|
||||
_context12.next = 10;
|
||||
break;
|
||||
}
|
||||
|
||||
return _context12.abrupt("return");
|
||||
|
||||
case 5:
|
||||
_context12.next = 7;
|
||||
case 10:
|
||||
_context12.next = 12;
|
||||
return resolvers_getEntityRecord('postType', 'wp_template', template.id);
|
||||
|
||||
case 7:
|
||||
_context12.next = 9;
|
||||
case 12:
|
||||
_context12.next = 14;
|
||||
return external_wp_data_["controls"].select('core', 'getEntityRecord', 'postType', 'wp_template', template.id);
|
||||
|
||||
case 9:
|
||||
case 14:
|
||||
record = _context12.sent;
|
||||
|
||||
if (!record) {
|
||||
_context12.next = 13;
|
||||
_context12.next = 18;
|
||||
break;
|
||||
}
|
||||
|
||||
_context12.next = 13;
|
||||
_context12.next = 18;
|
||||
return receiveEntityRecords('postType', 'wp_template', [record], {
|
||||
'find-template': link
|
||||
});
|
||||
|
||||
case 13:
|
||||
case 18:
|
||||
case "end":
|
||||
return _context12.stop();
|
||||
}
|
||||
}
|
||||
}, _marked12);
|
||||
}, _marked12, null, [[0, 6]]);
|
||||
}
|
||||
|
||||
resolvers_experimentalGetTemplateForLink.shouldInvalidate = function (action) {
|
||||
return (action.type === 'RECEIVE_ITEMS' || action.type === 'REMOVE_ITEMS') && action.invalidateCache && action.kind === 'postType' && action.name === 'wp_template';
|
||||
};
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/locks/selectors.js
|
||||
|
||||
|
||||
|
@ -6464,6 +6479,11 @@ var external_wp_htmlEntities_ = __webpack_require__(57);
|
|||
|
||||
|
||||
|
||||
|
||||
function _experimental_fetch_link_suggestions_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
||||
|
||||
function _experimental_fetch_link_suggestions_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { _experimental_fetch_link_suggestions_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { _experimental_fetch_link_suggestions_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
@ -6477,6 +6497,12 @@ var external_wp_htmlEntities_ = __webpack_require__(57);
|
|||
* @typedef { 'post' | 'term' | 'post-format' } WPLinkSearchType
|
||||
*/
|
||||
|
||||
/**
|
||||
* A link with an id may be of kind post-type or taxonomy
|
||||
*
|
||||
* @typedef { 'post-type' | 'taxonomy' } WPKind
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef WPLinkSearchOptions
|
||||
*
|
||||
|
@ -6494,6 +6520,7 @@ var external_wp_htmlEntities_ = __webpack_require__(57);
|
|||
* @property {string} url Link url.
|
||||
* @property {string} title Title of the link.
|
||||
* @property {string} type The taxonomy or post type slug or type URL.
|
||||
* @property {WPKind} [kind] Link kind of post-type or taxonomy
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -6564,6 +6591,15 @@ var fetchLinkSuggestions = /*#__PURE__*/function () {
|
|||
type: 'post',
|
||||
subtype: subtype
|
||||
})
|
||||
}).then(function (results) {
|
||||
return results.map(function (result) {
|
||||
return _experimental_fetch_link_suggestions_objectSpread(_experimental_fetch_link_suggestions_objectSpread({}, result), {}, {
|
||||
meta: {
|
||||
kind: 'post-type',
|
||||
subtype: subtype
|
||||
}
|
||||
});
|
||||
});
|
||||
}).catch(function () {
|
||||
return [];
|
||||
}) // fail by returning no results
|
||||
|
@ -6579,6 +6615,15 @@ var fetchLinkSuggestions = /*#__PURE__*/function () {
|
|||
type: 'term',
|
||||
subtype: subtype
|
||||
})
|
||||
}).then(function (results) {
|
||||
return results.map(function (result) {
|
||||
return _experimental_fetch_link_suggestions_objectSpread(_experimental_fetch_link_suggestions_objectSpread({}, result), {}, {
|
||||
meta: {
|
||||
kind: 'taxonomy',
|
||||
subtype: subtype
|
||||
}
|
||||
});
|
||||
});
|
||||
}).catch(function () {
|
||||
return [];
|
||||
}));
|
||||
|
@ -6613,11 +6658,14 @@ var fetchLinkSuggestions = /*#__PURE__*/function () {
|
|||
* @param {{ id: number, url:string, title?:string, subtype?: string, type?: string }} result
|
||||
*/
|
||||
function (result) {
|
||||
var _result$meta;
|
||||
|
||||
return {
|
||||
id: result.id,
|
||||
url: result.url,
|
||||
title: Object(external_wp_htmlEntities_["decodeEntities"])(result.title || '') || Object(external_wp_i18n_["__"])('(no title)'),
|
||||
type: result.subtype || result.type
|
||||
type: result.subtype || result.type,
|
||||
kind: result === null || result === void 0 ? void 0 : (_result$meta = result.meta) === null || _result$meta === void 0 ? void 0 : _result$meta.kind
|
||||
};
|
||||
});
|
||||
}));
|
||||
|
@ -6857,7 +6905,7 @@ function _setPrototypeOf(o, p) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 65:
|
||||
/***/ 67:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["isShallowEqual"]; }());
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dataControls"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 430);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 432);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -101,7 +101,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dataControls"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 430:
|
||||
/***/ 432:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
this.wp=this.wp||{},this.wp.dataControls=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},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,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=430)}({35:function(t,n){t.exports=window.wp.deprecated},4:function(t,n){t.exports=window.wp.data},430:function(t,n,e){"use strict";e.r(n),e.d(n,"apiFetch",(function(){return s})),e.d(n,"select",(function(){return l})),e.d(n,"syncSelect",(function(){return a})),e.d(n,"dispatch",(function(){return p})),e.d(n,"__unstableAwaitPromise",(function(){return d})),e.d(n,"controls",(function(){return f}));var r=e(50),o=e.n(r),i=e(4),c=e(35),u=e.n(c);function s(t){return{type:"API_FETCH",request:t}}function l(){return u()("`select` control in `@wordpress/data-controls`",{since:"5.7",alternative:"built-in `resolveSelect` control in `@wordpress/data`"}),i.controls.resolveSelect.apply(i.controls,arguments)}function a(){return u()("`syncSelect` control in `@wordpress/data-controls`",{since:"5.7",alternative:"built-in `select` control in `@wordpress/data`"}),i.controls.select.apply(i.controls,arguments)}function p(){return u()("`dispatch` control in `@wordpress/data-controls`",{since:"5.7",alternative:"built-in `dispatch` control in `@wordpress/data`"}),i.controls.dispatch.apply(i.controls,arguments)}var d=function(t){return{type:"AWAIT_PROMISE",promise:t}},f={AWAIT_PROMISE:function(t){return t.promise},API_FETCH:function(t){var n=t.request;return o()(n)}}},50:function(t,n){t.exports=window.wp.apiFetch}});
|
||||
this.wp=this.wp||{},this.wp.dataControls=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},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,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=432)}({35:function(t,n){t.exports=window.wp.deprecated},4:function(t,n){t.exports=window.wp.data},432:function(t,n,e){"use strict";e.r(n),e.d(n,"apiFetch",(function(){return s})),e.d(n,"select",(function(){return l})),e.d(n,"syncSelect",(function(){return a})),e.d(n,"dispatch",(function(){return p})),e.d(n,"__unstableAwaitPromise",(function(){return d})),e.d(n,"controls",(function(){return f}));var r=e(50),o=e.n(r),i=e(4),c=e(35),u=e.n(c);function s(t){return{type:"API_FETCH",request:t}}function l(){return u()("`select` control in `@wordpress/data-controls`",{since:"5.7",alternative:"built-in `resolveSelect` control in `@wordpress/data`"}),i.controls.resolveSelect.apply(i.controls,arguments)}function a(){return u()("`syncSelect` control in `@wordpress/data-controls`",{since:"5.7",alternative:"built-in `select` control in `@wordpress/data`"}),i.controls.select.apply(i.controls,arguments)}function p(){return u()("`dispatch` control in `@wordpress/data-controls`",{since:"5.7",alternative:"built-in `dispatch` control in `@wordpress/data`"}),i.controls.dispatch.apply(i.controls,arguments)}var d=function(t){return{type:"AWAIT_PROMISE",promise:t}},f={AWAIT_PROMISE:function(t){return t.promise},API_FETCH:function(t){var n=t.request;return o()(n)}}},50:function(t,n){t.exports=window.wp.apiFetch}});
|
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["data"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 456);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 457);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["data"] =
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 104:
|
||||
/***/ 107:
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -425,18 +425,21 @@ module.exports = EquivalentKeyMap;
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -458,7 +461,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -471,7 +474,14 @@ function _slicedToArray(arr, i) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 126:
|
||||
/***/ 13:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["React"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 130:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -479,7 +489,7 @@ function _slicedToArray(arr, i) {
|
|||
/* unused harmony export useCallbackOne */
|
||||
/* unused harmony export useMemo */
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useMemoOne; });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
|
||||
|
@ -528,40 +538,6 @@ var useCallback = useCallbackOne;
|
|||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 139:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
var g;
|
||||
|
||||
// This works in non-strict mode
|
||||
g = (function() {
|
||||
return this;
|
||||
})();
|
||||
|
||||
try {
|
||||
// This works if eval is allowed (see CSP)
|
||||
g = g || new Function("return this")();
|
||||
} catch (e) {
|
||||
// This works if the window reference is available
|
||||
if (typeof window === "object") g = window;
|
||||
}
|
||||
|
||||
// g can still be undefined, but nothing to do about it...
|
||||
// We return undefined, instead of nothing here, so it's
|
||||
// easier to handle this case. if(!global) { ...}
|
||||
|
||||
module.exports = g;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["React"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15:
|
||||
|
@ -581,7 +557,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -601,14 +577,14 @@ function _toConsumableArray(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 152:
|
||||
/***/ 156:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["priorityQueue"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 153:
|
||||
/***/ 157:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = isPromise;
|
||||
|
@ -628,7 +604,7 @@ function isPromise(obj) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 172:
|
||||
/***/ 178:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
function combineReducers( reducers ) {
|
||||
|
@ -694,33 +670,6 @@ module.exports = combineReducers;
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 207:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(287);
|
||||
/* global window */
|
||||
|
||||
|
||||
var root;
|
||||
|
||||
if (typeof self !== 'undefined') {
|
||||
root = self;
|
||||
} else if (typeof window !== 'undefined') {
|
||||
root = window;
|
||||
} else if (typeof global !== 'undefined') {
|
||||
root = global;
|
||||
} else if (true) {
|
||||
root = module;
|
||||
} else {}
|
||||
|
||||
var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(root);
|
||||
/* harmony default export */ __webpack_exports__["a"] = (result);
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(139), __webpack_require__(429)(module)))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 24:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
@ -756,37 +705,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 286:
|
||||
/***/ 290:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["reduxRoutine"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 287:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return symbolObservablePonyfill; });
|
||||
function symbolObservablePonyfill(root) {
|
||||
var result;
|
||||
var Symbol = root.Symbol;
|
||||
|
||||
if (typeof Symbol === 'function') {
|
||||
if (Symbol.observable) {
|
||||
result = Symbol.observable;
|
||||
} else {
|
||||
result = Symbol('observable');
|
||||
Symbol.observable = result;
|
||||
}
|
||||
} else {
|
||||
result = '@@observable';
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 35:
|
||||
|
@ -796,7 +719,7 @@ function symbolObservablePonyfill(root) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -807,7 +730,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -818,49 +741,18 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 429:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function(originalModule) {
|
||||
if (!originalModule.webpackPolyfill) {
|
||||
var module = Object.create(originalModule);
|
||||
// module.parent = undefined by default
|
||||
if (!module.children) module.children = [];
|
||||
Object.defineProperty(module, "loaded", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return module.l;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(module, "id", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return module.i;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(module, "exports", {
|
||||
enumerable: true
|
||||
});
|
||||
module.webpackPolyfill = 1;
|
||||
}
|
||||
return module;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 456:
|
||||
/***/ 457:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -918,7 +810,7 @@ __webpack_require__.d(plugins_namespaceObject, "controls", function() { return p
|
|||
__webpack_require__.d(plugins_namespaceObject, "persistence", function() { return plugins_persistence; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/turbo-combine-reducers/index.js
|
||||
var turbo_combine_reducers = __webpack_require__(172);
|
||||
var turbo_combine_reducers = __webpack_require__(178);
|
||||
var turbo_combine_reducers_default = /*#__PURE__*/__webpack_require__.n(turbo_combine_reducers);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
|
@ -937,12 +829,65 @@ var asyncToGenerator = __webpack_require__(48);
|
|||
var external_regeneratorRuntime_ = __webpack_require__(16);
|
||||
var external_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_regeneratorRuntime_);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/symbol-observable/es/index.js
|
||||
var es = __webpack_require__(207);
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||||
|
||||
|
||||
function ownKeys(object, enumerableOnly) {
|
||||
var keys = Object.keys(object);
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var symbols = Object.getOwnPropertySymbols(object);
|
||||
|
||||
if (enumerableOnly) {
|
||||
symbols = symbols.filter(function (sym) {
|
||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
||||
});
|
||||
}
|
||||
|
||||
keys.push.apply(keys, symbols);
|
||||
}
|
||||
|
||||
return keys;
|
||||
}
|
||||
|
||||
function _objectSpread2(target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var source = arguments[i] != null ? arguments[i] : {};
|
||||
|
||||
if (i % 2) {
|
||||
ownKeys(Object(source), true).forEach(function (key) {
|
||||
Object(defineProperty["a" /* default */])(target, key, source[key]);
|
||||
});
|
||||
} else if (Object.getOwnPropertyDescriptors) {
|
||||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
||||
} else {
|
||||
ownKeys(Object(source)).forEach(function (key) {
|
||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
// CONCATENATED MODULE: ./node_modules/redux/es/redux.js
|
||||
|
||||
|
||||
/**
|
||||
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
|
||||
*
|
||||
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
|
||||
* during build.
|
||||
* @param {number} code
|
||||
*/
|
||||
function formatProdErrorMessage(code) {
|
||||
return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
|
||||
}
|
||||
|
||||
// Inlined version of the `symbol-observable` polyfill
|
||||
var $$observable = (function () {
|
||||
return typeof Symbol === 'function' && Symbol.observable || '@@observable';
|
||||
})();
|
||||
|
||||
/**
|
||||
* These are private action types reserved by Redux.
|
||||
* For any unknown actions, you must return the current state.
|
||||
|
@ -976,6 +921,14 @@ function isPlainObject(obj) {
|
|||
return Object.getPrototypeOf(obj) === proto;
|
||||
}
|
||||
|
||||
function kindOf(val) {
|
||||
var typeOfVal = typeof val;
|
||||
|
||||
if (false) {}
|
||||
|
||||
return typeOfVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Redux store that holds the state tree.
|
||||
* The only way to change the data in the store is to call `dispatch()` on it.
|
||||
|
@ -1002,11 +955,11 @@ function isPlainObject(obj) {
|
|||
* and subscribe to changes.
|
||||
*/
|
||||
|
||||
function createStore(reducer, preloadedState, enhancer) {
|
||||
function redux_createStore(reducer, preloadedState, enhancer) {
|
||||
var _ref2;
|
||||
|
||||
if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
|
||||
throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');
|
||||
throw new Error( true ? formatProdErrorMessage(0) : undefined);
|
||||
}
|
||||
|
||||
if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
|
||||
|
@ -1016,14 +969,14 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
if (typeof enhancer !== 'undefined') {
|
||||
if (typeof enhancer !== 'function') {
|
||||
throw new Error('Expected the enhancer to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(1) : undefined);
|
||||
}
|
||||
|
||||
return enhancer(createStore)(reducer, preloadedState);
|
||||
return enhancer(redux_createStore)(reducer, preloadedState);
|
||||
}
|
||||
|
||||
if (typeof reducer !== 'function') {
|
||||
throw new Error('Expected the reducer to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(2) : undefined);
|
||||
}
|
||||
|
||||
var currentReducer = reducer;
|
||||
|
@ -1053,7 +1006,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function getState() {
|
||||
if (isDispatching) {
|
||||
throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
|
||||
throw new Error( true ? formatProdErrorMessage(3) : undefined);
|
||||
}
|
||||
|
||||
return currentState;
|
||||
|
@ -1085,11 +1038,11 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function subscribe(listener) {
|
||||
if (typeof listener !== 'function') {
|
||||
throw new Error('Expected the listener to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(4) : undefined);
|
||||
}
|
||||
|
||||
if (isDispatching) {
|
||||
throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
|
||||
throw new Error( true ? formatProdErrorMessage(5) : undefined);
|
||||
}
|
||||
|
||||
var isSubscribed = true;
|
||||
|
@ -1101,7 +1054,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
}
|
||||
|
||||
if (isDispatching) {
|
||||
throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
|
||||
throw new Error( true ? formatProdErrorMessage(6) : undefined);
|
||||
}
|
||||
|
||||
isSubscribed = false;
|
||||
|
@ -1140,15 +1093,15 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function dispatch(action) {
|
||||
if (!isPlainObject(action)) {
|
||||
throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
|
||||
throw new Error( true ? formatProdErrorMessage(7) : undefined);
|
||||
}
|
||||
|
||||
if (typeof action.type === 'undefined') {
|
||||
throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
|
||||
throw new Error( true ? formatProdErrorMessage(8) : undefined);
|
||||
}
|
||||
|
||||
if (isDispatching) {
|
||||
throw new Error('Reducers may not dispatch actions.');
|
||||
throw new Error( true ? formatProdErrorMessage(9) : undefined);
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -1181,7 +1134,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
|
||||
function replaceReducer(nextReducer) {
|
||||
if (typeof nextReducer !== 'function') {
|
||||
throw new Error('Expected the nextReducer to be a function.');
|
||||
throw new Error( true ? formatProdErrorMessage(10) : undefined);
|
||||
}
|
||||
|
||||
currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
|
||||
|
@ -1216,7 +1169,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
*/
|
||||
subscribe: function subscribe(observer) {
|
||||
if (typeof observer !== 'object' || observer === null) {
|
||||
throw new TypeError('Expected the observer to be an object.');
|
||||
throw new Error( true ? formatProdErrorMessage(11) : undefined);
|
||||
}
|
||||
|
||||
function observeState() {
|
||||
|
@ -1231,7 +1184,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
unsubscribe: unsubscribe
|
||||
};
|
||||
}
|
||||
}, _ref[es["a" /* default */]] = function () {
|
||||
}, _ref[$$observable] = function () {
|
||||
return this;
|
||||
}, _ref;
|
||||
} // When a store is created, an "INIT" action is dispatched so that every
|
||||
|
@ -1247,7 +1200,7 @@ function createStore(reducer, preloadedState, enhancer) {
|
|||
subscribe: subscribe,
|
||||
getState: getState,
|
||||
replaceReducer: replaceReducer
|
||||
}, _ref2[es["a" /* default */]] = observable, _ref2;
|
||||
}, _ref2[$$observable] = observable, _ref2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1273,12 +1226,6 @@ function warning(message) {
|
|||
|
||||
}
|
||||
|
||||
function getUndefinedStateErrorMessage(key, action) {
|
||||
var actionType = action && action.type;
|
||||
var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
|
||||
return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
|
||||
}
|
||||
|
||||
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
|
||||
var reducerKeys = Object.keys(reducers);
|
||||
var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
|
||||
|
@ -1288,7 +1235,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|||
}
|
||||
|
||||
if (!isPlainObject(inputState)) {
|
||||
return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
|
||||
return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
|
||||
}
|
||||
|
||||
var unexpectedKeys = Object.keys(inputState).filter(function (key) {
|
||||
|
@ -1312,13 +1259,13 @@ function assertReducerShape(reducers) {
|
|||
});
|
||||
|
||||
if (typeof initialState === 'undefined') {
|
||||
throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
|
||||
throw new Error( true ? formatProdErrorMessage(12) : undefined);
|
||||
}
|
||||
|
||||
if (typeof reducer(undefined, {
|
||||
type: ActionTypes.PROBE_UNKNOWN_ACTION()
|
||||
}) === 'undefined') {
|
||||
throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
|
||||
throw new Error( true ? formatProdErrorMessage(13) : undefined);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -1390,8 +1337,8 @@ function combineReducers(reducers) {
|
|||
var nextStateForKey = reducer(previousStateForKey, action);
|
||||
|
||||
if (typeof nextStateForKey === 'undefined') {
|
||||
var errorMessage = getUndefinedStateErrorMessage(_key, action);
|
||||
throw new Error(errorMessage);
|
||||
var actionType = action && action.type;
|
||||
throw new Error( true ? formatProdErrorMessage(14) : undefined);
|
||||
}
|
||||
|
||||
nextState[_key] = nextStateForKey;
|
||||
|
@ -1437,7 +1384,7 @@ function bindActionCreators(actionCreators, dispatch) {
|
|||
}
|
||||
|
||||
if (typeof actionCreators !== 'object' || actionCreators === null) {
|
||||
throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
|
||||
throw new Error( true ? formatProdErrorMessage(16) : undefined);
|
||||
}
|
||||
|
||||
var boundActionCreators = {};
|
||||
|
@ -1453,54 +1400,6 @@ function bindActionCreators(actionCreators, dispatch) {
|
|||
return boundActionCreators;
|
||||
}
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function ownKeys(object, enumerableOnly) {
|
||||
var keys = Object.keys(object);
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
keys.push.apply(keys, Object.getOwnPropertySymbols(object));
|
||||
}
|
||||
|
||||
if (enumerableOnly) keys = keys.filter(function (sym) {
|
||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
||||
});
|
||||
return keys;
|
||||
}
|
||||
|
||||
function _objectSpread2(target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var source = arguments[i] != null ? arguments[i] : {};
|
||||
|
||||
if (i % 2) {
|
||||
ownKeys(source, true).forEach(function (key) {
|
||||
_defineProperty(target, key, source[key]);
|
||||
});
|
||||
} else if (Object.getOwnPropertyDescriptors) {
|
||||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
||||
} else {
|
||||
ownKeys(source).forEach(function (key) {
|
||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* Composes single-argument functions from right to left. The rightmost
|
||||
* function can take multiple arguments as it provides the signature for
|
||||
|
@ -1560,7 +1459,7 @@ function applyMiddleware() {
|
|||
var store = createStore.apply(void 0, arguments);
|
||||
|
||||
var _dispatch = function dispatch() {
|
||||
throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
|
||||
throw new Error( true ? formatProdErrorMessage(15) : undefined);
|
||||
};
|
||||
|
||||
var middlewareAPI = {
|
||||
|
@ -1573,7 +1472,7 @@ function applyMiddleware() {
|
|||
return middleware(middlewareAPI);
|
||||
});
|
||||
_dispatch = compose.apply(void 0, chain)(store.dispatch);
|
||||
return _objectSpread2({}, store, {
|
||||
return _objectSpread2(_objectSpread2({}, store), {}, {
|
||||
dispatch: _dispatch
|
||||
});
|
||||
};
|
||||
|
@ -1592,11 +1491,11 @@ if (false) {}
|
|||
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js
|
||||
var equivalent_key_map = __webpack_require__(104);
|
||||
var equivalent_key_map = __webpack_require__(107);
|
||||
var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","reduxRoutine"]
|
||||
var external_wp_reduxRoutine_ = __webpack_require__(286);
|
||||
var external_wp_reduxRoutine_ = __webpack_require__(290);
|
||||
var external_wp_reduxRoutine_default = /*#__PURE__*/__webpack_require__.n(external_wp_reduxRoutine_);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
||||
|
@ -1843,7 +1742,7 @@ var builtinControls = (_builtinControls = {}, Object(defineProperty["a" /* defau
|
|||
})), _builtinControls);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/is-promise/index.js
|
||||
var is_promise = __webpack_require__(153);
|
||||
var is_promise = __webpack_require__(157);
|
||||
var is_promise_default = /*#__PURE__*/__webpack_require__.n(is_promise);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/promise-middleware.js
|
||||
|
@ -2474,7 +2373,7 @@ function instantiateReduxStore(key, options, registry, thunkArgs) {
|
|||
metadata: metadata_reducer,
|
||||
root: reducer
|
||||
});
|
||||
return createStore(enhancedReducer, {
|
||||
return redux_createStore(enhancedReducer, {
|
||||
root: initialState
|
||||
}, Object(external_lodash_["flowRight"])(enhancers));
|
||||
}
|
||||
|
@ -3474,13 +3373,13 @@ var external_wp_element_ = __webpack_require__(0);
|
|||
var external_wp_compose_ = __webpack_require__(11);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/use-memo-one/dist/use-memo-one.esm.js
|
||||
var use_memo_one_esm = __webpack_require__(126);
|
||||
var use_memo_one_esm = __webpack_require__(130);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","priorityQueue"]
|
||||
var external_wp_priorityQueue_ = __webpack_require__(152);
|
||||
var external_wp_priorityQueue_ = __webpack_require__(156);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","isShallowEqual"]
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(65);
|
||||
var external_wp_isShallowEqual_ = __webpack_require__(67);
|
||||
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/registry-provider/context.js
|
||||
|
@ -3675,21 +3574,28 @@ function useAsyncMode() {
|
|||
|
||||
|
||||
var renderQueue = Object(external_wp_priorityQueue_["createQueue"])();
|
||||
/** @typedef {import('./types').WPDataStore} WPDataStore */
|
||||
|
||||
/**
|
||||
* Custom react hook for retrieving props from registered selectors.
|
||||
*
|
||||
* In general, this custom React hook follows the
|
||||
* [rules of hooks](https://reactjs.org/docs/hooks-rules.html).
|
||||
*
|
||||
* @param {Function} _mapSelect Function called on every state change. The
|
||||
* returned value is exposed to the component
|
||||
* implementing this hook. The function receives
|
||||
* the `registry.select` method on the first
|
||||
* argument and the `registry` on the second
|
||||
* argument.
|
||||
* @param {Array} deps If provided, this memoizes the mapSelect so the
|
||||
* same `mapSelect` is invoked on every state
|
||||
* change unless the dependencies change.
|
||||
* @param {Function|WPDataStore|string} _mapSelect Function called on every state change. The
|
||||
* returned value is exposed to the component
|
||||
* implementing this hook. The function receives
|
||||
* the `registry.select` method on the first
|
||||
* argument and the `registry` on the second
|
||||
* argument.
|
||||
* When a store key is passed, all selectors for
|
||||
* the store will be returned. This is only meant
|
||||
* for usage of these selectors in event
|
||||
* callbacks, not for data needed to create the
|
||||
* element tree.
|
||||
* @param {Array} deps If provided, this memoizes the mapSelect so the
|
||||
* same `mapSelect` is invoked on every state
|
||||
* change unless the dependencies change.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
|
@ -3716,10 +3622,35 @@ var renderQueue = Object(external_wp_priorityQueue_["createQueue"])();
|
|||
* doesn't change and other props are passed in that do change, the price will
|
||||
* not change because the dependency is just the currency.
|
||||
*
|
||||
* When data is only used in an event callback, the data should not be retrieved
|
||||
* on render, so it may be useful to get the selectors function instead.
|
||||
*
|
||||
* **Don't use `useSelect` this way when calling the selectors in the render
|
||||
* function because your component won't re-render on a data change.**
|
||||
*
|
||||
* ```js
|
||||
* import { useSelect } from '@wordpress/data';
|
||||
*
|
||||
* function Paste( { children } ) {
|
||||
* const { getSettings } = useSelect( 'my-shop' );
|
||||
* function onPaste() {
|
||||
* // Do something with the settings.
|
||||
* const settings = getSettings();
|
||||
* }
|
||||
* return <div onPaste={ onPaste }>{ children }</div>;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @return {Function} A custom react hook.
|
||||
*/
|
||||
|
||||
function useSelect(_mapSelect, deps) {
|
||||
var isWithoutMapping = typeof _mapSelect !== 'function';
|
||||
|
||||
if (isWithoutMapping) {
|
||||
deps = [];
|
||||
}
|
||||
|
||||
var mapSelect = Object(external_wp_element_["useCallback"])(_mapSelect, deps);
|
||||
var registry = useRegistry();
|
||||
var isAsync = useAsyncMode(); // React can sometimes clear the `useMemo` cache.
|
||||
|
@ -3757,29 +3688,35 @@ function useSelect(_mapSelect, deps) {
|
|||
}, deps || []);
|
||||
var mapOutput;
|
||||
|
||||
try {
|
||||
if (latestMapSelect.current !== mapSelect || latestMapOutputError.current) {
|
||||
mapOutput = trapSelect(function () {
|
||||
return mapSelect(registry.select, registry);
|
||||
});
|
||||
} else {
|
||||
mapOutput = latestMapOutput.current;
|
||||
}
|
||||
} catch (error) {
|
||||
var errorMessage = "An error occurred while running 'mapSelect': ".concat(error.message);
|
||||
if (!isWithoutMapping) {
|
||||
try {
|
||||
if (latestMapSelect.current !== mapSelect || latestMapOutputError.current) {
|
||||
mapOutput = trapSelect(function () {
|
||||
return mapSelect(registry.select, registry);
|
||||
});
|
||||
} else {
|
||||
mapOutput = latestMapOutput.current;
|
||||
}
|
||||
} catch (error) {
|
||||
var errorMessage = "An error occurred while running 'mapSelect': ".concat(error.message);
|
||||
|
||||
if (latestMapOutputError.current) {
|
||||
errorMessage += "\nThe error may be correlated with this previous error:\n";
|
||||
errorMessage += "".concat(latestMapOutputError.current.stack, "\n\n");
|
||||
errorMessage += 'Original stack trace:';
|
||||
throw new Error(errorMessage);
|
||||
} else {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(errorMessage);
|
||||
if (latestMapOutputError.current) {
|
||||
errorMessage += "\nThe error may be correlated with this previous error:\n";
|
||||
errorMessage += "".concat(latestMapOutputError.current.stack, "\n\n");
|
||||
errorMessage += 'Original stack trace:';
|
||||
throw new Error(errorMessage);
|
||||
} else {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(errorMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Object(external_wp_compose_["useIsomorphicLayoutEffect"])(function () {
|
||||
if (isWithoutMapping) {
|
||||
return;
|
||||
}
|
||||
|
||||
latestMapSelect.current = mapSelect;
|
||||
latestMapOutput.current = mapOutput;
|
||||
latestMapOutputError.current = undefined;
|
||||
|
@ -3794,6 +3731,10 @@ function useSelect(_mapSelect, deps) {
|
|||
}
|
||||
});
|
||||
Object(external_wp_compose_["useIsomorphicLayoutEffect"])(function () {
|
||||
if (isWithoutMapping) {
|
||||
return;
|
||||
}
|
||||
|
||||
var onStoreChange = function onStoreChange() {
|
||||
if (isMountedAndNotUnsubscribing.current) {
|
||||
try {
|
||||
|
@ -3841,8 +3782,8 @@ function useSelect(_mapSelect, deps) {
|
|||
});
|
||||
renderQueue.flush(queueContext);
|
||||
};
|
||||
}, [registry, trapSelect, depsChangedFlag]);
|
||||
return mapOutput;
|
||||
}, [registry, trapSelect, depsChangedFlag, isWithoutMapping]);
|
||||
return isWithoutMapping ? registry.select(_mapSelect) : mapOutput;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/with-select/index.js
|
||||
|
@ -4447,7 +4388,7 @@ function _defineProperty(obj, key, value) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 65:
|
||||
/***/ 67:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["isShallowEqual"]; }());
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -82,26 +82,26 @@ this["wp"] = this["wp"] || {}; this["wp"]["deprecated"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 435);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 437);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 33:
|
||||
/***/ 30:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["hooks"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 435:
|
||||
/***/ 437:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logged", function() { return logged; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return deprecated; });
|
||||
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33);
|
||||
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30);
|
||||
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/**
|
||||
* WordPress dependencies
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=435)}({33:function(e,t){e.exports=window.wp.hooks},435:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",(function(){return r})),n.d(t,"default",(function(){return c}));var o=n(33),r=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.since,c=t.version,i=t.alternative,u=t.plugin,a=t.link,l=t.hint,d=u?" from ".concat(u):"",f=n?" since version ".concat(n):"",s=c?" and will be removed".concat(d," in version ").concat(c):"",p=i?" Please use ".concat(i," instead."):"",b=a?" See: ".concat(a):"",v=l?" Note: ".concat(l):"",y="".concat(e," is deprecated").concat(f).concat(s,".").concat(p).concat(b).concat(v);y in r||(Object(o.doAction)("deprecated",e,t,y),console.warn(y),r[y]=!0)}}}).default;
|
||||
this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=437)}({30:function(e,t){e.exports=window.wp.hooks},437:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",(function(){return r})),n.d(t,"default",(function(){return c}));var o=n(30),r=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.since,c=t.version,i=t.alternative,u=t.plugin,a=t.link,l=t.hint,d=u?" from ".concat(u):"",f=n?" since version ".concat(n):"",s=c?" and will be removed".concat(d," in version ").concat(c):"",p=i?" Please use ".concat(i," instead."):"",b=a?" See: ".concat(a):"",v=l?" Note: ".concat(l):"",y="".concat(e," is deprecated").concat(f).concat(s,".").concat(p).concat(b).concat(v);y in r||(Object(o.doAction)("deprecated",e,t,y),console.warn(y),r[y]=!0)}}}).default;
|
|
@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["domReady"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 436);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 438);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 436:
|
||||
/***/ 438:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
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=436)}({436:function(e,t,n){"use strict";function r(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}n.r(t),n.d(t,"default",(function(){return r}))}}).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=438)}({438:function(e,t,n){"use strict";function r(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}n.r(t),n.d(t,"default",(function(){return r}))}}).default;
|
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 453);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 455);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -104,7 +104,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -166,18 +166,18 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 453:
|
||||
/***/ 455:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -527,9 +527,7 @@ function findNext(element) {
|
|||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/utils/assert-is-defined.js
|
||||
function assertIsDefined(val, name) {
|
||||
if (val === undefined || val === null) {
|
||||
throw new Error("Expected '".concat(name, "' to be defined, but received ").concat(val));
|
||||
}
|
||||
if (false) {}
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/get-rectangle-from-range.js
|
||||
|
@ -616,6 +614,10 @@ function computeCaretRect(win) {
|
|||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/document-has-text-selection.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check whether the current document has selected text. This applies to ranges
|
||||
* of text in the document, and not selection inside <input> and <textarea>
|
||||
|
@ -627,44 +629,71 @@ function computeCaretRect(win) {
|
|||
*
|
||||
* @return {boolean} True if there is selection, false if not.
|
||||
*/
|
||||
|
||||
function documentHasTextSelection(doc) {
|
||||
assertIsDefined(doc.defaultView, 'doc.defaultView');
|
||||
var selection = doc.defaultView.getSelection();
|
||||
assertIsDefined(selection, 'selection');
|
||||
var range = selection.rangeCount ? selection.getRangeAt(0) : null;
|
||||
return range && !range.collapsed;
|
||||
return !!range && !range.collapsed;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/is-html-input-element.js
|
||||
/* eslint-disable jsdoc/valid-types */
|
||||
|
||||
/**
|
||||
* @param {Node} node
|
||||
* @return {node is HTMLInputElement} Whether the node is an HTMLInputElement.
|
||||
*/
|
||||
function isHTMLInputElement(node) {
|
||||
/* eslint-enable jsdoc/valid-types */
|
||||
return !!node && node.nodeName === 'INPUT';
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/is-text-field.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/* eslint-disable jsdoc/valid-types */
|
||||
|
||||
/**
|
||||
* Check whether the given element is a text field, where text field is defined
|
||||
* by the ability to select within the input, or that it is contenteditable.
|
||||
*
|
||||
* See: https://html.spec.whatwg.org/#textFieldSelection
|
||||
*
|
||||
* @param {HTMLElement} element The HTML element.
|
||||
*
|
||||
* @return {boolean} True if the element is an text field, false if not.
|
||||
* @param {Node} node The HTML element.
|
||||
* @return {element is HTMLElement} True if the element is an text field, false if not.
|
||||
*/
|
||||
function isTextField(element) {
|
||||
var nodeName = element.nodeName,
|
||||
contentEditable = element.contentEditable;
|
||||
|
||||
function isTextField(node) {
|
||||
/* eslint-enable jsdoc/valid-types */
|
||||
var nonTextInputs = ['button', 'checkbox', 'hidden', 'file', 'radio', 'image', 'range', 'reset', 'submit', 'number'];
|
||||
return nodeName === 'INPUT' && !nonTextInputs.includes(element.type) || nodeName === 'TEXTAREA' || contentEditable === 'true';
|
||||
return isHTMLInputElement(node) && node.type && !nonTextInputs.includes(node.type) || node.nodeName === 'TEXTAREA' ||
|
||||
/** @type {HTMLElement} */
|
||||
node.contentEditable === 'true';
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/is-number-input.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/* eslint-disable jsdoc/valid-types */
|
||||
|
||||
/**
|
||||
* Check whether the given element is an input field of type number
|
||||
* and has a valueAsNumber
|
||||
*
|
||||
* @param {HTMLElement} element The HTML element.
|
||||
* @param {Node} node The HTML node.
|
||||
*
|
||||
* @return {boolean} True if the element is input and holds a number.
|
||||
* @return {node is HTMLInputElement} True if the node is input and holds a number.
|
||||
*/
|
||||
function isNumberInput(element) {
|
||||
var nodeName = element.nodeName,
|
||||
type = element.type,
|
||||
valueAsNumber = element.valueAsNumber;
|
||||
return nodeName === 'INPUT' && type === 'number' && !!valueAsNumber;
|
||||
|
||||
function isNumberInput(node) {
|
||||
/* eslint-enable jsdoc/valid-types */
|
||||
return isHTMLInputElement(node) && node.type === 'number' && !!node.valueAsNumber;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/input-field-has-uncollapsed-selection.js
|
||||
|
@ -682,7 +711,7 @@ function isNumberInput(element) {
|
|||
*
|
||||
* See: https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection#Related_objects.
|
||||
*
|
||||
* @param {HTMLElement} element The HTML element.
|
||||
* @param {Element} element The HTML element.
|
||||
*
|
||||
* @return {boolean} Whether the input/textareaa element has some "selection".
|
||||
*/
|
||||
|
@ -693,7 +722,9 @@ function inputFieldHasUncollapsedSelection(element) {
|
|||
}
|
||||
|
||||
try {
|
||||
var selectionStart = element.selectionStart,
|
||||
var selectionStart =
|
||||
/** @type {HTMLInputElement | HTMLTextAreaElement} */
|
||||
element.selectionStart,
|
||||
selectionEnd = element.selectionEnd;
|
||||
return selectionStart !== null && selectionStart !== selectionEnd;
|
||||
} catch (error) {
|
||||
|
@ -726,7 +757,7 @@ function inputFieldHasUncollapsedSelection(element) {
|
|||
*/
|
||||
|
||||
function documentHasUncollapsedSelection(doc) {
|
||||
return documentHasTextSelection(doc) || inputFieldHasUncollapsedSelection(doc.activeElement);
|
||||
return documentHasTextSelection(doc) || !!doc.activeElement && inputFieldHasUncollapsedSelection(doc.activeElement);
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/document-has-selection.js
|
||||
|
@ -746,12 +777,25 @@ function documentHasUncollapsedSelection(doc) {
|
|||
*/
|
||||
|
||||
function documentHasSelection(doc) {
|
||||
return isTextField(doc.activeElement) || isNumberInput(doc.activeElement) || documentHasTextSelection(doc);
|
||||
return !!doc.activeElement && (isTextField(doc.activeElement) || isNumberInput(doc.activeElement) || documentHasTextSelection(doc));
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/get-computed-style.js
|
||||
function getComputedStyle(node) {
|
||||
return node.ownerDocument.defaultView.getComputedStyle(node);
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/* eslint-disable jsdoc/valid-types */
|
||||
|
||||
/**
|
||||
* @param {Element} element
|
||||
* @return {ReturnType<Window['getComputedStyle']>} The computed style for the element.
|
||||
*/
|
||||
|
||||
function getComputedStyle(element) {
|
||||
/* eslint-enable jsdoc/valid-types */
|
||||
assertIsDefined(element.ownerDocument.defaultView, 'element.ownerDocument.defaultView');
|
||||
return element.ownerDocument.defaultView.getComputedStyle(element);
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/get-scroll-container.js
|
||||
|
@ -762,14 +806,14 @@ function getComputedStyle(node) {
|
|||
/**
|
||||
* Given a DOM node, finds the closest scrollable container node.
|
||||
*
|
||||
* @param {Element} node Node from which to start.
|
||||
* @param {Element | null} node Node from which to start.
|
||||
*
|
||||
* @return {?Element} Scrollable container node, if found.
|
||||
* @return {Element | undefined} Scrollable container node, if found.
|
||||
*/
|
||||
|
||||
function getScrollContainer(node) {
|
||||
if (!node) {
|
||||
return;
|
||||
return undefined;
|
||||
} // Scrollable if scrollable height exceeds displayed...
|
||||
|
||||
|
||||
|
@ -784,7 +828,9 @@ function getScrollContainer(node) {
|
|||
} // Continue traversing
|
||||
|
||||
|
||||
return getScrollContainer(node.parentNode);
|
||||
return getScrollContainer(
|
||||
/** @type {Element} */
|
||||
node.parentNode);
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/get-offset-parent.js
|
||||
|
@ -801,7 +847,7 @@ function getScrollContainer(node) {
|
|||
*
|
||||
* @param {Node} node Node from which to find offset parent.
|
||||
*
|
||||
* @return {?Node} Offset parent.
|
||||
* @return {Node | null} Offset parent.
|
||||
*/
|
||||
|
||||
function getOffsetParent(node) {
|
||||
|
@ -809,7 +855,9 @@ function getOffsetParent(node) {
|
|||
// an element node, so find the closest element node.
|
||||
var closestElement;
|
||||
|
||||
while (closestElement = node.parentNode) {
|
||||
while (closestElement =
|
||||
/** @type {Node} */
|
||||
node.parentNode) {
|
||||
if (closestElement.nodeType === closestElement.ELEMENT_NODE) {
|
||||
break;
|
||||
}
|
||||
|
@ -821,29 +869,48 @@ function getOffsetParent(node) {
|
|||
// does not otherwise consider the node itself.
|
||||
|
||||
|
||||
if (getComputedStyle(closestElement).position !== 'static') {
|
||||
if (getComputedStyle(
|
||||
/** @type {Element} */
|
||||
closestElement).position !== 'static') {
|
||||
return closestElement;
|
||||
}
|
||||
} // offsetParent is undocumented/draft
|
||||
|
||||
return closestElement.offsetParent;
|
||||
|
||||
return (
|
||||
/** @type {Node & { offsetParent: Node }} */
|
||||
closestElement.offsetParent
|
||||
);
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/is-input-or-text-area.js
|
||||
/* eslint-disable jsdoc/valid-types */
|
||||
|
||||
/**
|
||||
* @param {Element} element
|
||||
* @return {element is HTMLInputElement | HTMLTextAreaElement} Whether the element is an input or textarea
|
||||
*/
|
||||
function isInputOrTextArea(element) {
|
||||
/* eslint-enable jsdoc/valid-types */
|
||||
return element.tagName === 'INPUT' || element.tagName === 'TEXTAREA';
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/is-entirely-selected.js
|
||||
/**
|
||||
* External dependencies
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Check whether the contents of the element have been entirely selected.
|
||||
* Returns true if there is no possibility of selection.
|
||||
*
|
||||
* @param {Element} element The element to check.
|
||||
* @param {HTMLElement} element The element to check.
|
||||
*
|
||||
* @return {boolean} True if entirely selected, false if not.
|
||||
*/
|
||||
|
||||
function isEntirelySelected(element) {
|
||||
if (Object(external_lodash_["includes"])(['INPUT', 'TEXTAREA'], element.nodeName)) {
|
||||
if (isInputOrTextArea(element)) {
|
||||
return element.selectionStart === 0 && element.value.length === element.selectionEnd;
|
||||
}
|
||||
|
||||
|
@ -853,7 +920,9 @@ function isEntirelySelected(element) {
|
|||
|
||||
var ownerDocument = element.ownerDocument;
|
||||
var defaultView = ownerDocument.defaultView;
|
||||
assertIsDefined(defaultView, 'defaultView');
|
||||
var selection = defaultView.getSelection();
|
||||
assertIsDefined(selection, 'selection');
|
||||
var range = selection.rangeCount ? selection.getRangeAt(0) : null;
|
||||
|
||||
if (!range) {
|
||||
|
@ -870,7 +939,10 @@ function isEntirelySelected(element) {
|
|||
}
|
||||
|
||||
var lastChild = element.lastChild;
|
||||
var lastChildContentLength = lastChild.nodeType === lastChild.TEXT_NODE ? lastChild.data.length : lastChild.childNodes.length;
|
||||
assertIsDefined(lastChild, 'lastChild');
|
||||
var lastChildContentLength = lastChild.nodeType === lastChild.TEXT_NODE ?
|
||||
/** @type {Text} */
|
||||
lastChild.data.length : lastChild.childNodes.length;
|
||||
return startContainer === element.firstChild && endContainer === element.lastChild && startOffset === 0 && endOffset === lastChildContentLength;
|
||||
}
|
||||
|
||||
|
@ -885,6 +957,7 @@ var toConsumableArray = __webpack_require__(15);
|
|||
* some browsers ignore when creating a union.
|
||||
*
|
||||
* @param {Range} range The range to check.
|
||||
* @return {number | undefined} Height of the range or undefined if the range has no client rectangles.
|
||||
*/
|
||||
function getRangeHeight(range) {
|
||||
var rects = Array.from(range.getClientRects());
|
||||
|
@ -905,6 +978,10 @@ function getRangeHeight(range) {
|
|||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/is-selection-forward.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns true if the given selection object is in the forward direction, or
|
||||
* false otherwise.
|
||||
|
@ -915,11 +992,14 @@ function getRangeHeight(range) {
|
|||
*
|
||||
* @return {boolean} Whether the selection is forward.
|
||||
*/
|
||||
|
||||
function isSelectionForward(selection) {
|
||||
var anchorNode = selection.anchorNode,
|
||||
focusNode = selection.focusNode,
|
||||
anchorOffset = selection.anchorOffset,
|
||||
focusOffset = selection.focusOffset;
|
||||
assertIsDefined(anchorNode, 'anchorNode');
|
||||
assertIsDefined(focusNode, 'focusNode');
|
||||
var position = anchorNode.compareDocumentPosition(focusNode); // Disable reason: `Node#compareDocumentPosition` returns a bitmask value,
|
||||
// so bitwise operators are intended.
|
||||
|
||||
|
@ -996,7 +1076,7 @@ function caretRangeFromPoint(doc, x, y) {
|
|||
* @param {Document} doc The document of the range.
|
||||
* @param {number} x Horizontal position within the current viewport.
|
||||
* @param {number} y Vertical position within the current viewport.
|
||||
* @param {Element} container Container in which the range is expected to be found.
|
||||
* @param {HTMLElement} container Container in which the range is expected to be found.
|
||||
*
|
||||
* @return {?Range} The best range for the given point.
|
||||
*/
|
||||
|
@ -1022,10 +1102,6 @@ function hiddenCaretRangeFromPoint(doc, x, y, container) {
|
|||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/is-edge.js
|
||||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
@ -1035,20 +1111,23 @@ function hiddenCaretRangeFromPoint(doc, x, y, container) {
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check whether the selection is at the edge of the container. Checks for
|
||||
* horizontal position by default. Set `onlyVertical` to true to check only
|
||||
* vertically.
|
||||
*
|
||||
* @param {Element} container Focusable element.
|
||||
* @param {boolean} isReverse Set to true to check left, false to check right.
|
||||
* @param {boolean} onlyVertical Set to true to check only vertical position.
|
||||
* @param {Element} container Focusable element.
|
||||
* @param {boolean} isReverse Set to true to check left, false to check right.
|
||||
* @param {boolean} [onlyVertical=false] Set to true to check only vertical position.
|
||||
*
|
||||
* @return {boolean} True if at the edge, false if not.
|
||||
*/
|
||||
|
||||
function isEdge(container, isReverse, onlyVertical) {
|
||||
if (Object(external_lodash_["includes"])(['INPUT', 'TEXTAREA'], container.tagName)) {
|
||||
function isEdge(container, isReverse) {
|
||||
var onlyVertical = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
||||
|
||||
if (isInputOrTextArea(container)) {
|
||||
if (container.selectionStart !== container.selectionEnd) {
|
||||
return false;
|
||||
}
|
||||
|
@ -1060,15 +1139,18 @@ function isEdge(container, isReverse, onlyVertical) {
|
|||
return container.value.length === container.selectionStart;
|
||||
}
|
||||
|
||||
if (!container.isContentEditable) {
|
||||
if (!
|
||||
/** @type {HTMLElement} */
|
||||
container.isContentEditable) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var ownerDocument = container.ownerDocument;
|
||||
var defaultView = ownerDocument.defaultView;
|
||||
assertIsDefined(defaultView, 'defaultView');
|
||||
var selection = defaultView.getSelection();
|
||||
|
||||
if (!selection.rangeCount) {
|
||||
if (!selection || !selection.rangeCount) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1091,7 +1173,9 @@ function isEdge(container, isReverse, onlyVertical) {
|
|||
// collapsed selection.
|
||||
|
||||
|
||||
if (!isCollapsed && getRangeHeight(range) > collapsedRangeRect.height && isForward === isReverse) {
|
||||
var rangeHeight = getRangeHeight(range);
|
||||
|
||||
if (!isCollapsed && rangeHeight && rangeHeight > collapsedRangeRect.height && isForward === isReverse) {
|
||||
return false;
|
||||
} // In the case of RTL scripts, the horizontal edge is at the opposite side.
|
||||
|
||||
|
@ -1113,7 +1197,9 @@ function isEdge(container, isReverse, onlyVertical) {
|
|||
|
||||
var x = isReverseDir ? containerRect.left + 1 : containerRect.right - 1;
|
||||
var y = isReverse ? containerRect.top + 1 : containerRect.bottom - 1;
|
||||
var testRange = hiddenCaretRangeFromPoint(ownerDocument, x, y, container);
|
||||
var testRange = hiddenCaretRangeFromPoint(ownerDocument, x, y,
|
||||
/** @type {HTMLElement} */
|
||||
container);
|
||||
|
||||
if (!testRange) {
|
||||
return false;
|
||||
|
@ -1173,7 +1259,7 @@ function isVerticalEdge(container, isReverse) {
|
|||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/place-caret-at-horizontal-edge.js
|
||||
/**
|
||||
* External dependencies
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1181,22 +1267,25 @@ function isVerticalEdge(container, isReverse) {
|
|||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Places the caret at start or end of a given element.
|
||||
*
|
||||
* @param {Element} container Focusable element.
|
||||
* @param {HTMLElement} container Focusable element.
|
||||
* @param {boolean} isReverse True for end, false for start.
|
||||
* @param {boolean} mayUseScroll Whether to allow scrolling.
|
||||
* @param {boolean} [mayUseScroll=false] Whether to allow scrolling.
|
||||
*/
|
||||
|
||||
function placeCaretAtHorizontalEdge(container, isReverse, mayUseScroll) {
|
||||
function placeCaretAtHorizontalEdge(container, isReverse) {
|
||||
var mayUseScroll = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
||||
|
||||
if (!container) {
|
||||
return;
|
||||
}
|
||||
|
||||
container.focus();
|
||||
|
||||
if (Object(external_lodash_["includes"])(['INPUT', 'TEXTAREA'], container.tagName)) {
|
||||
if (isInputOrTextArea(container)) {
|
||||
// The element may not support selection setting.
|
||||
if (typeof container.selectionStart !== 'number') {
|
||||
return;
|
||||
|
@ -1239,7 +1328,9 @@ function placeCaretAtHorizontalEdge(container, isReverse, mayUseScroll) {
|
|||
}
|
||||
|
||||
var defaultView = ownerDocument.defaultView;
|
||||
assertIsDefined(defaultView, 'defaultView');
|
||||
var selection = defaultView.getSelection();
|
||||
assertIsDefined(selection, 'selection');
|
||||
selection.removeAllRanges();
|
||||
selection.addRange(range);
|
||||
}
|
||||
|
@ -1250,10 +1341,11 @@ function placeCaretAtHorizontalEdge(container, isReverse, mayUseScroll) {
|
|||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Places the caret at the top or bottom of a given element.
|
||||
*
|
||||
* @param {Element} container Focusable element.
|
||||
* @param {HTMLElement} container Focusable element.
|
||||
* @param {boolean} isReverse True for bottom, false for top.
|
||||
* @param {DOMRect} [rect] The rectangle to position the caret with.
|
||||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow.
|
||||
|
@ -1298,7 +1390,9 @@ function placeCaretAtVerticalEdge(container, isReverse, rect) {
|
|||
return;
|
||||
}
|
||||
|
||||
assertIsDefined(defaultView, 'defaultView');
|
||||
var selection = defaultView.getSelection();
|
||||
assertIsDefined(selection, 'selection');
|
||||
selection.removeAllRanges();
|
||||
selection.addRange(range);
|
||||
container.focus(); // Editable was already focussed, it goes back to old range...
|
||||
|
@ -1350,6 +1444,7 @@ function remove(node) {
|
|||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Given two DOM nodes, replaces the former with the latter in the DOM.
|
||||
*
|
||||
|
@ -1359,6 +1454,7 @@ function remove(node) {
|
|||
*/
|
||||
|
||||
function replace(processedNode, newNode) {
|
||||
assertIsDefined(processedNode.parentNode, 'processedNode.parentNode');
|
||||
insertAfter(newNode, processedNode.parentNode);
|
||||
remove(processedNode);
|
||||
}
|
||||
|
@ -1388,6 +1484,10 @@ function unwrap(node) {
|
|||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/replace-tag.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Replaces the given node with a new node with the given tag name.
|
||||
*
|
||||
|
@ -1396,6 +1496,7 @@ function unwrap(node) {
|
|||
*
|
||||
* @return {Element} The new node.
|
||||
*/
|
||||
|
||||
function replaceTag(node, tagName) {
|
||||
var newNode = node.ownerDocument.createElement(tagName);
|
||||
|
||||
|
@ -1403,18 +1504,25 @@ function replaceTag(node, tagName) {
|
|||
newNode.appendChild(node.firstChild);
|
||||
}
|
||||
|
||||
assertIsDefined(node.parentNode, 'node.parentNode');
|
||||
node.parentNode.replaceChild(newNode, node);
|
||||
return newNode;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom/wrap.js
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Wraps the given node with a new node with the given tag name.
|
||||
*
|
||||
* @param {Element} newNode The node to insert.
|
||||
* @param {Element} referenceNode The node to wrap.
|
||||
*/
|
||||
|
||||
function wrap(newNode, referenceNode) {
|
||||
assertIsDefined(referenceNode.parentNode, 'referenceNode.parentNode');
|
||||
referenceNode.parentNode.insertBefore(newNode, referenceNode);
|
||||
newNode.appendChild(referenceNode);
|
||||
}
|
||||
|
@ -1835,8 +1943,8 @@ function cleanNodeList(nodeList, doc, schema, inline) {
|
|||
* Given a schema, unwraps or removes nodes, attributes and classes on HTML.
|
||||
*
|
||||
* @param {string} HTML The HTML to clean up.
|
||||
* @param {Object} schema Schema for the HTML.
|
||||
* @param {Object} inline Whether to clean for inline mode.
|
||||
* @param {import('./clean-node-list').Schema} schema Schema for the HTML.
|
||||
* @param {boolean} inline Whether to clean for inline mode.
|
||||
*
|
||||
* @return {string} The cleaned up HTML.
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["element"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 466);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 468);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 105:
|
||||
/***/ 108:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["escapeHtml"]; }());
|
||||
|
@ -103,18 +103,21 @@ this["wp"] = this["wp"] || {}; this["wp"]["element"] =
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -136,7 +139,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -150,11 +153,18 @@ function _slicedToArray(arr, i) {
|
|||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["React"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45);
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
|
@ -177,14 +187,7 @@ function _objectWithoutProperties(source, excluded) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["React"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 144:
|
||||
/***/ 147:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["ReactDOM"]; }());
|
||||
|
@ -208,7 +211,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -270,7 +273,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -281,7 +284,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -292,18 +295,18 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44:
|
||||
/***/ 45:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -325,7 +328,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 466:
|
||||
/***/ 468:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -378,7 +381,7 @@ var esm_typeof = __webpack_require__(56);
|
|||
var toConsumableArray = __webpack_require__(15);
|
||||
|
||||
// EXTERNAL MODULE: external "React"
|
||||
var external_React_ = __webpack_require__(14);
|
||||
var external_React_ = __webpack_require__(13);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/create-interpolate-element.js
|
||||
|
||||
|
@ -734,7 +737,7 @@ function closeOuterElement(endOffset) {
|
|||
var defineProperty = __webpack_require__(5);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(13);
|
||||
var objectWithoutProperties = __webpack_require__(14);
|
||||
|
||||
// EXTERNAL MODULE: external "lodash"
|
||||
var external_lodash_ = __webpack_require__(2);
|
||||
|
@ -974,7 +977,7 @@ function switchChildrenNodeName(children, nodeName) {
|
|||
}
|
||||
|
||||
// EXTERNAL MODULE: external "ReactDOM"
|
||||
var external_ReactDOM_ = __webpack_require__(144);
|
||||
var external_ReactDOM_ = __webpack_require__(147);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/react-platform.js
|
||||
/**
|
||||
|
@ -1077,7 +1080,7 @@ var Platform = {
|
|||
/* harmony default export */ var platform = (Platform);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","escapeHtml"]
|
||||
var external_wp_escapeHtml_ = __webpack_require__(105);
|
||||
var external_wp_escapeHtml_ = __webpack_require__(108);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/raw-html.js
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["escapeHtml"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 478);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 480);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 478:
|
||||
/***/ 480:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
this.wp=this.wp||{},this.wp.escapeHtml=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=478)}({478:function(e,t,n){"use strict";n.r(t),n.d(t,"escapeAmpersand",(function(){return u})),n.d(t,"escapeQuotationMark",(function(){return o})),n.d(t,"escapeLessThan",(function(){return i})),n.d(t,"escapeAttribute",(function(){return c})),n.d(t,"escapeHTML",(function(){return a})),n.d(t,"escapeEditableHTML",(function(){return f})),n.d(t,"isValidAttributeName",(function(){return p}));var r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(/</g,"<")}function c(e){return function(e){return e.replace(/>/g,">")}(o(u(e)))}function a(e){return i(u(e))}function f(e){return i(e.replace(/&/g,"&"))}function p(e){return!r.test(e)}}});
|
||||
this.wp=this.wp||{},this.wp.escapeHtml=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=480)}({480:function(e,t,n){"use strict";n.r(t),n.d(t,"escapeAmpersand",(function(){return u})),n.d(t,"escapeQuotationMark",(function(){return o})),n.d(t,"escapeLessThan",(function(){return i})),n.d(t,"escapeAttribute",(function(){return c})),n.d(t,"escapeHTML",(function(){return a})),n.d(t,"escapeEditableHTML",(function(){return f})),n.d(t,"isValidAttributeName",(function(){return p}));var r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(/</g,"<")}function c(e){return function(e){return e.replace(/>/g,">")}(o(u(e)))}function a(e){return i(u(e))}function f(e){return i(e.replace(/&/g,"&"))}function p(e){return!r.test(e)}}});
|
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 459);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 461);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -110,18 +110,21 @@ this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] =
|
|||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
||||
var arrayWithHoles = __webpack_require__(37);
|
||||
var arrayWithHoles = __webpack_require__(38);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
var _n = true;
|
||||
var _d = false;
|
||||
var _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
@ -143,7 +146,7 @@ function _iterableToArrayLimit(arr, i) {
|
|||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
||||
var nonIterableRest = __webpack_require__(38);
|
||||
var nonIterableRest = __webpack_require__(39);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
||||
|
||||
|
@ -156,40 +159,12 @@ function _slicedToArray(arr, i) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||||
|
||||
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
||||
key = sourceSymbolKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 136:
|
||||
/***/ 133:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
|
||||
|
||||
|
@ -230,6 +205,34 @@ function Icon(_ref) {
|
|||
/* harmony default export */ __webpack_exports__["a"] = (Icon);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
||||
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45);
|
||||
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
||||
var key, i;
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||||
|
||||
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
||||
key = sourceSymbolKeys[i];
|
||||
if (excluded.indexOf(key) >= 0) continue;
|
||||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 19:
|
||||
|
@ -239,7 +242,14 @@ function Icon(_ref) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 196:
|
||||
/***/ 2:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["lodash"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 201:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -264,14 +274,7 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["lodash"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 218:
|
||||
/***/ 223:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -296,7 +299,7 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 220:
|
||||
/***/ 225:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -370,7 +373,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 300:
|
||||
/***/ 303:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -395,7 +398,7 @@ var formatStrikethrough = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 314:
|
||||
/***/ 317:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -420,7 +423,7 @@ var button = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 315:
|
||||
/***/ 318:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -445,7 +448,7 @@ var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 37:
|
||||
/***/ 38:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -456,7 +459,7 @@ function _arrayWithHoles(arr) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ 39:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -474,7 +477,7 @@ function _nonIterableRest() {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 427:
|
||||
/***/ 430:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -499,7 +502,7 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44:
|
||||
/***/ 45:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -521,7 +524,14 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 459:
|
||||
/***/ 46:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["a11y"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 461:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -529,7 +539,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(13);
|
||||
var objectWithoutProperties = __webpack_require__(14);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","richText"]
|
||||
var external_wp_richText_ = __webpack_require__(19);
|
||||
|
@ -617,7 +627,7 @@ var bold = {
|
|||
};
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js
|
||||
var code = __webpack_require__(315);
|
||||
var code = __webpack_require__(318);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/code/index.js
|
||||
|
||||
|
@ -702,7 +712,7 @@ var slicedToArray = __webpack_require__(12);
|
|||
var external_wp_components_ = __webpack_require__(3);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js
|
||||
var keyboard_return = __webpack_require__(218);
|
||||
var keyboard_return = __webpack_require__(223);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js
|
||||
|
||||
|
@ -937,10 +947,10 @@ var external_wp_url_ = __webpack_require__(29);
|
|||
var external_wp_htmlEntities_ = __webpack_require__(57);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
|
||||
var link_off = __webpack_require__(220);
|
||||
var link_off = __webpack_require__(225);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
|
||||
var library_link = __webpack_require__(196);
|
||||
var library_link = __webpack_require__(201);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","a11y"]
|
||||
var external_wp_a11y_ = __webpack_require__(46);
|
||||
|
@ -1331,7 +1341,7 @@ var link_link = {
|
|||
};
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js
|
||||
var format_strikethrough = __webpack_require__(300);
|
||||
var format_strikethrough = __webpack_require__(303);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js
|
||||
|
||||
|
@ -1417,10 +1427,10 @@ var underline = {
|
|||
};
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
|
||||
var icon = __webpack_require__(136);
|
||||
var icon = __webpack_require__(133);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/text-color.js
|
||||
var text_color = __webpack_require__(427);
|
||||
var text_color = __webpack_require__(430);
|
||||
|
||||
// EXTERNAL MODULE: external ["wp","data"]
|
||||
var external_wp_data_ = __webpack_require__(4);
|
||||
|
@ -1750,7 +1760,7 @@ var superscript_superscript = {
|
|||
};
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/button.js
|
||||
var library_button = __webpack_require__(314);
|
||||
var library_button = __webpack_require__(317);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/keyboard/index.js
|
||||
|
||||
|
@ -1834,13 +1844,6 @@ default_formats.forEach(function (_ref) {
|
|||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 46:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = window["wp"]["a11y"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5:
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["hooks"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 460);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 462);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
@ -104,7 +104,7 @@ function _arrayWithoutHoles(arr) {
|
|||
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
||||
var iterableToArray = __webpack_require__(39);
|
||||
var iterableToArray = __webpack_require__(42);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
||||
var unsupportedIterableToArray = __webpack_require__(28);
|
||||
|
@ -172,18 +172,18 @@ function _unsupportedIterableToArray(o, minLen) {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39:
|
||||
/***/ 42:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 460:
|
||||
/***/ 462:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["htmlEntities"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 438);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 440);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 438:
|
||||
/***/ 440:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue