Editor: Update block editor packages for WordPress 6.0.1.

This brings a new version of the Gutenberg code from the [https://github.com/WordPress/gutenberg/tree/wp/6.0 wp/6.0 branch] into core.

The following packages were updated:
* `@wordpress/block-directory` to `3.4.12`
* `@wordpress/block-editor` to `8.5.9`
* `@wordpress/block-library` to `7.3.12`
* `@wordpress/components` to `19.8.5`
* `@wordpress/customize-widgets` to `3.3.12`
* `@wordpress/edit-post` to `6.3.12`
* `@wordpress/edit-site` to `4.3.12`
* `@wordpress/edit-widgets` to `4.3.12`
* `@wordpress/editor` to `12.5.9`
* `@wordpress/format-library` to `3.4.9`
* `@wordpress/icons` to `8.2.3`
* `@wordpress/interface` to `4.5.6`
* `@wordpress/list-reusable-blocks` to `3.4.5`
* `@wordpress/nux` to `5.4.5`
* `@wordpress/plugins` to `4.4.3`
* `@wordpress/preferences` to `1.2.5`
* `@wordpress/reusable-blocks` to `3.4.9`
* `@wordpress/server-side-render` to `3.4.6`
* `@wordpress/widgets` to `2.4.9`

Props zieladam.
Merges [53644] to the 6.0 branch.
See #56058.
Built from https://develop.svn.wordpress.org/branches/6.0@53645


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-07-04 12:10:37 +00:00
parent 898f1066c8
commit 636debbcc4
58 changed files with 576 additions and 313 deletions

File diff suppressed because one or more lines are too long

View File

@ -18,10 +18,6 @@
},
"textAlign": {
"type": "string"
},
"fontSize": {
"type": "string",
"default": "small"
}
},
"usesContext": [ "commentId" ],

View File

@ -24,9 +24,6 @@ function render_block_core_comment_date( $attributes, $content, $block ) {
}
$classes = '';
if ( isset( $attributes['fontSize'] ) ) {
$classes .= 'has-' . esc_attr( $attributes['fontSize'] ) . '-font-size';
}
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );
$formatted_date = get_comment_date(

View File

@ -14,10 +14,6 @@
"isLink": {
"type": "boolean",
"default": true
},
"fontSize": {
"type": "string",
"default": "small"
}
},
"usesContext": [ "commentId" ],

View File

@ -15,10 +15,6 @@
},
"textAlign": {
"type": "string"
},
"fontSize": {
"type": "string",
"default": "small"
}
},
"supports": {

View File

@ -11,10 +11,6 @@
"attributes": {
"textAlign": {
"type": "string"
},
"fontSize": {
"type": "string",
"default": "small"
}
},
"supports": {

View File

@ -32,12 +32,15 @@ function render_block_core_cover( $attributes, $content ) {
$image = get_the_post_thumbnail( null, 'post-thumbnail', $attr );
$content = str_replace(
'</span><div',
'</span>' . $image . '<div',
$content
);
/*
* Inserts the featured image between the (1st) cover 'background' `span` and 'inner_container' `div`,
* and removes eventual withespace characters between the two (typically introduced at template level)
*/
$inner_container_start = '/<div\b[^>]+wp-block-cover__inner-container[\s|"][^>]*>/U';
if ( 1 === preg_match( $inner_container_start, $content, $matches, PREG_OFFSET_CAPTURE ) ) {
$offset = $matches[0][1];
$content = substr( $content, 0, $offset ) . $image . substr( $content, $offset );
}
} else {
if ( in_the_loop() ) {
update_post_thumbnail_cache();

View File

@ -86,7 +86,8 @@ function block_core_gallery_render( $attributes, $content ) {
'wp_footer',
function () use ( $style ) {
echo '<style> ' . $style . '</style>';
}
},
11
);
return $content;
}

View File

@ -271,6 +271,9 @@ button.wp-block-navigation-item__content {
font-size: inherit;
font-family: inherit;
line-height: inherit;
font-style: inherit;
font-weight: inherit;
text-transform: inherit;
text-align: right;
}

File diff suppressed because one or more lines are too long

View File

@ -271,6 +271,9 @@ button.wp-block-navigation-item__content {
font-size: inherit;
font-family: inherit;
line-height: inherit;
font-style: inherit;
font-weight: inherit;
text-transform: inherit;
text-align: left;
}

File diff suppressed because one or more lines are too long

View File

@ -76,4 +76,7 @@
*/
.wp-block-post-comments-form * {
pointer-events: none;
}
.wp-block-post-comments-form *.block-editor-warning * {
pointer-events: auto;
}

View File

@ -1 +1 @@
.wp-block-post-comments-form *{pointer-events:none}
.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}

View File

@ -76,4 +76,7 @@
*/
.wp-block-post-comments-form * {
pointer-events: none;
}
.wp-block-post-comments-form *.block-editor-warning * {
pointer-events: auto;
}

View File

@ -1 +1 @@
.wp-block-post-comments-form *{pointer-events:none}
.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}

View File

@ -82,17 +82,29 @@ function render_block_core_post_template( $attributes, $content, $block ) {
$content = '';
while ( $query->have_posts() ) {
$query->the_post();
// Get an instance of the current Post Template block.
$block_instance = $block->parsed_block;
// Set the block name to one that does not correspond to an existing registered block.
// This ensures that for the inner instances of the Post Template block, we do not render any block supports.
$block_instance['blockName'] = 'core/null';
// Render the inner blocks of the Post Template block with `dynamic` set to `false` to prevent calling
// `render_callback` and ensure that no wrapper markup is included.
$block_content = (
new WP_Block(
$block->parsed_block,
$block_instance,
array(
'postType' => get_post_type(),
'postId' => get_the_ID(),
)
)
)->render( array( 'dynamic' => false ) );
$post_classes = implode( ' ', get_post_class( 'wp-block-post' ) );
$content .= '<li class="' . esc_attr( $post_classes ) . '">' . $block_content . '</li>';
// Wrap the render inner blocks in a `li` element with the appropriate post classes.
$post_classes = implode( ' ', get_post_class( 'wp-block-post' ) );
$content .= '<li class="' . esc_attr( $post_classes ) . '">' . $block_content . '</li>';
}
wp_reset_postdata();

View File

@ -2701,6 +2701,9 @@ div[data-type="core/post-featured-image"] img {
.wp-block-post-comments-form * {
pointer-events: none;
}
.wp-block-post-comments-form *.block-editor-warning * {
pointer-events: auto;
}
:root .editor-styles-wrapper {
/*

File diff suppressed because one or more lines are too long

View File

@ -2712,6 +2712,9 @@ div[data-type="core/post-featured-image"] img {
.wp-block-post-comments-form * {
pointer-events: none;
}
.wp-block-post-comments-form *.block-editor-warning * {
pointer-events: auto;
}
:root .editor-styles-wrapper {
/*

File diff suppressed because one or more lines are too long

View File

@ -1753,6 +1753,9 @@ button.wp-block-navigation-item__content {
font-size: inherit;
font-family: inherit;
line-height: inherit;
font-style: inherit;
font-weight: inherit;
text-transform: inherit;
text-align: right;
}

File diff suppressed because one or more lines are too long

View File

@ -1779,6 +1779,9 @@ button.wp-block-navigation-item__content {
font-size: inherit;
font-family: inherit;
line-height: inherit;
font-style: inherit;
font-weight: inherit;
text-transform: inherit;
text-align: left;
}

File diff suppressed because one or more lines are too long

View File

@ -863,7 +863,7 @@ var external_wp_compose_namespaceObject = window["wp"]["compose"];
var external_wp_coreData_namespaceObject = window["wp"]["coreData"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -876,7 +876,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","htmlEntities"]

File diff suppressed because one or more lines are too long

View File

@ -3085,7 +3085,7 @@ function migrateLightBlockWrapper(settings) {
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -3098,7 +3098,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","element"]
@ -36815,6 +36814,42 @@ function PresetDuotoneFilter(_ref6) {
const layoutBlockSupportKey = '__experimentalLayout';
/**
* Generates the utility classnames for the given blocks layout attributes.
* This method was primarily added to reintroduce classnames that were removed
* in the 5.9 release (https://github.com/WordPress/gutenberg/issues/38719), rather
* than providing an extensive list of all possible layout classes. The plan is to
* have the style engine generate a more extensive list of utility classnames which
* will then replace this method.
*
* @param { Array } attributes Array of block attributes.
*
* @return { Array } Array of CSS classname strings.
*/
function getLayoutClasses(attributes) {
var _attributes$layout, _attributes$layout2, _attributes$layout3;
const layoutClassnames = [];
if (!attributes.layout) {
return layoutClassnames;
}
if (attributes !== null && attributes !== void 0 && (_attributes$layout = attributes.layout) !== null && _attributes$layout !== void 0 && _attributes$layout.orientation) {
layoutClassnames.push(`is-${(0,external_lodash_namespaceObject.kebabCase)(attributes.layout.orientation)}`);
}
if (attributes !== null && attributes !== void 0 && (_attributes$layout2 = attributes.layout) !== null && _attributes$layout2 !== void 0 && _attributes$layout2.justifyContent) {
layoutClassnames.push(`is-content-justification-${(0,external_lodash_namespaceObject.kebabCase)(attributes.layout.justifyContent)}`);
}
if (attributes !== null && attributes !== void 0 && (_attributes$layout3 = attributes.layout) !== null && _attributes$layout3 !== void 0 && _attributes$layout3.flexWrap && attributes.layout.flexWrap === 'nowrap') {
layoutClassnames.push('is-nowrap');
}
return layoutClassnames;
}
function LayoutPanel(_ref) {
let {
@ -36983,9 +37018,10 @@ const withLayoutStyles = (0,external_wp_compose_namespaceObject.createHigherOrde
default: defaultBlockLayout
} = (0,external_wp_blocks_namespaceObject.getBlockSupport)(name, layoutBlockSupportKey) || {};
const usedLayout = layout !== null && layout !== void 0 && layout.inherit ? defaultThemeLayout : layout || defaultBlockLayout || {};
const layoutClasses = shouldRenderLayoutStyles ? getLayoutClasses(attributes) : null;
const className = classnames_default()(props === null || props === void 0 ? void 0 : props.className, {
[`wp-container-${id}`]: shouldRenderLayoutStyles
});
}, layoutClasses);
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, shouldRenderLayoutStyles && element && (0,external_wp_element_namespaceObject.createPortal)((0,external_wp_element_namespaceObject.createElement)(LayoutStyle, {
blockName: name,
selector: `.wp-container-${id}`,
@ -40727,6 +40763,11 @@ function __experimentalBlockVariationTransforms(_ref4) {
const hasUniqueIcons = (0,external_wp_element_namespaceObject.useMemo)(() => {
const variationIcons = new Set();
if (!variations) {
return false;
}
variations.forEach(variation => {
if (variation.icon) {
variationIcons.add(variation.icon);
@ -46177,17 +46218,32 @@ function usePasteHandler(props) {
}, []);
}
/**
* Normalizes a given string of HTML to remove the Windows specific "Fragment" comments
* and any preceeding and trailing whitespace.
* Normalizes a given string of HTML to remove the Windows-specific "Fragment"
* comments and any preceeding and trailing content.
*
* @param {string} html the html to be normalized
* @return {string} the normalized html
*/
function removeWindowsFragments(html) {
const startReg = /.*<!--StartFragment-->/s;
const endReg = /<!--EndFragment-->.*/s;
return html.replace(startReg, '').replace(endReg, '');
const startStr = '<!--StartFragment-->';
const startIdx = html.indexOf(startStr);
if (startIdx > -1) {
html = html.substring(startIdx + startStr.length);
} else {
// No point looking for EndFragment
return html;
}
const endStr = '<!--EndFragment-->';
const endIdx = html.indexOf(endStr);
if (endIdx > -1) {
html = html.substring(0, endIdx);
}
return html;
}
/**
* Removes the charset meta tag inserted by Chromium.

File diff suppressed because one or more lines are too long

View File

@ -1830,7 +1830,7 @@ const commentAuthorAvatar = (0,external_wp_element_namespaceObject.createElement
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -1843,7 +1843,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
// EXTERNAL MODULE: ./node_modules/classnames/index.js
@ -1939,8 +1938,8 @@ function useUserAvatar(_ref2) {
authorDetails: _authorId ? getUser(_authorId) : null
};
}, [postType, postId, userId]);
const avatarUrls = authorDetails ? Object.values(authorDetails.avatar_urls) : null;
const sizes = authorDetails ? Object.keys(authorDetails.avatar_urls) : null;
const avatarUrls = authorDetails && authorDetails !== null && authorDetails !== void 0 && authorDetails.avatar_urls ? Object.values(authorDetails.avatar_urls) : null;
const sizes = authorDetails && authorDetails !== null && authorDetails !== void 0 && authorDetails.avatar_urls ? Object.keys(authorDetails.avatar_urls) : null;
const {
minSize,
maxSize
@ -7363,7 +7362,7 @@ function edit_Edit(_ref) {
[`has-text-align-${textAlign}`]: textAlign
})
});
const displayName = (0,external_wp_data_namespaceObject.useSelect)(select => {
let displayName = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getEntityRecord
} = select(external_wp_coreData_namespaceObject.store);
@ -7404,13 +7403,13 @@ function edit_Edit(_ref) {
})));
if (!commentId || !displayName) {
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, inspectorControls, blockControls, (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject._x)('Comment Author', 'block title'))));
displayName = (0,external_wp_i18n_namespaceObject._x)('Comment Author', 'block title');
}
const displayAuthor = isLink ? (0,external_wp_element_namespaceObject.createElement)("a", {
href: "#comment-author-pseudo-link",
onClick: event => event.preventDefault()
}, displayName) : (0,external_wp_element_namespaceObject.createElement)("p", null, displayName);
}, displayName) : displayName;
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, inspectorControls, blockControls, (0,external_wp_element_namespaceObject.createElement)("div", blockProps, displayAuthor));
}
@ -7503,10 +7502,6 @@ const comment_author_name_metadata = {
},
textAlign: {
type: "string"
},
fontSize: {
type: "string",
"default": "small"
}
},
usesContext: ["commentId"],
@ -7745,7 +7740,7 @@ function comment_date_edit_Edit(_ref) {
setAttributes
} = _ref;
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
const [date] = (0,external_wp_coreData_namespaceObject.useEntityProp)('root', 'comment', 'date', commentId);
let [date] = (0,external_wp_coreData_namespaceObject.useEntityProp)('root', 'comment', 'date', commentId);
const [siteFormat = (0,external_wp_date_namespaceObject.__experimentalGetSettings)().formats.date] = (0,external_wp_coreData_namespaceObject.useEntityProp)('root', 'site', 'date_format');
const inspectorControls = (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
title: (0,external_wp_i18n_namespaceObject.__)('Settings')
@ -7764,12 +7759,12 @@ function comment_date_edit_Edit(_ref) {
})));
if (!commentId || !date) {
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, inspectorControls, (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject._x)('Comment Date', 'block title'))));
date = (0,external_wp_i18n_namespaceObject._x)('Comment Date', 'block title');
}
let commentDate = (0,external_wp_element_namespaceObject.createElement)("time", {
let commentDate = date instanceof Date ? (0,external_wp_element_namespaceObject.createElement)("time", {
dateTime: (0,external_wp_date_namespaceObject.dateI18n)('c', date)
}, (0,external_wp_date_namespaceObject.dateI18n)(format || siteFormat, date));
}, (0,external_wp_date_namespaceObject.dateI18n)(format || siteFormat, date)) : (0,external_wp_element_namespaceObject.createElement)("time", null, date);
if (isLink) {
commentDate = (0,external_wp_element_namespaceObject.createElement)("a", {
@ -7865,10 +7860,6 @@ const comment_date_metadata = {
isLink: {
type: "boolean",
"default": true
},
fontSize: {
type: "string",
"default": "small"
}
},
usesContext: ["commentId"],
@ -8002,10 +7993,6 @@ const comment_edit_link_metadata = {
},
textAlign: {
type: "string"
},
fontSize: {
type: "string",
"default": "small"
}
},
supports: {
@ -8131,10 +8118,6 @@ const comment_reply_link_metadata = {
attributes: {
textAlign: {
type: "string"
},
fontSize: {
type: "string",
"default": "small"
}
},
supports: {
@ -8852,7 +8835,9 @@ const edit_TEMPLATE = [['core/comments-title'], ['core/comment-template', {}, [[
radius: '20px'
}
}
}]]], ['core/column', {}, [['core/comment-author-name'], ['core/group', {
}]]], ['core/column', {}, [['core/comment-author-name', {
fontSize: 'small'
}], ['core/group', {
layout: {
type: 'flex'
},
@ -8864,7 +8849,13 @@ const edit_TEMPLATE = [['core/comments-title'], ['core/comment-template', {}, [[
}
}
}
}, [['core/comment-date'], ['core/comment-edit-link']]], ['core/comment-content'], ['core/comment-reply-link']]]]]]], ['core/comments-pagination'], ['core/post-comments-form']];
}, [['core/comment-date', {
fontSize: 'small'
}], ['core/comment-edit-link', {
fontSize: 'small'
}]]], ['core/comment-content'], ['core/comment-reply-link', {
fontSize: 'small'
}]]]]]]], ['core/comments-pagination'], ['core/post-comments-form']];
function CommentsQueryLoopEdit(_ref) {
let {
attributes,
@ -21633,6 +21624,8 @@ const MAX_POSTS_COLUMNS = 6;
/**
* Internal dependencies
*/
@ -21669,6 +21662,7 @@ function LatestPostsEdit(_ref) {
attributes,
setAttributes
} = _ref;
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(LatestPostsEdit);
const {
postsToShow,
order,
@ -21719,7 +21713,25 @@ function LatestPostsEdit(_ref) {
categoriesList: getEntityRecords('taxonomy', 'category', CATEGORIES_LIST_QUERY),
authorList: getUsers(USERS_LIST_QUERY)
};
}, [featuredImageSizeSlug, postsToShow, order, orderBy, categories, selectedAuthor]);
}, [featuredImageSizeSlug, postsToShow, order, orderBy, categories, selectedAuthor]); // If a user clicks to a link prevent redirection and show a warning.
const {
createWarningNotice,
removeNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
let noticeId;
const showRedirectionPreventedNotice = event => {
event.preventDefault(); // Remove previous warning if any, to show one at a time per block.
removeNotice(noticeId);
noticeId = `block-library/core/latest-posts/redirection-prevented/${instanceId}`;
createWarningNotice((0,external_wp_i18n_namespaceObject.__)('Links are disabled in the editor.'), {
id: noticeId,
type: 'snackbar'
});
};
const imageSizeOptions = imageSizes.filter(_ref2 => {
let {
slug
@ -21953,7 +21965,8 @@ function LatestPostsEdit(_ref) {
const needsReadMore = excerptLength < excerpt.trim().split(' ').length && post.excerpt.raw === '';
const postExcerpt = needsReadMore ? (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, excerpt.trim().split(' ', excerptLength).join(' '), (0,external_wp_i18n_namespaceObject.__)(' … '), (0,external_wp_element_namespaceObject.createElement)("a", {
href: post.link,
rel: "noopener noreferrer"
rel: "noopener noreferrer",
onClick: showRedirectionPreventedNotice
}, (0,external_wp_i18n_namespaceObject.__)('Read more'))) : excerpt;
return (0,external_wp_element_namespaceObject.createElement)("li", {
key: i
@ -21962,13 +21975,15 @@ function LatestPostsEdit(_ref) {
}, addLinkToFeaturedImage ? (0,external_wp_element_namespaceObject.createElement)("a", {
className: "wp-block-latest-posts__post-title",
href: post.link,
rel: "noreferrer noopener"
rel: "noreferrer noopener",
onClick: showRedirectionPreventedNotice
}, featuredImage) : featuredImage), (0,external_wp_element_namespaceObject.createElement)("a", {
href: post.link,
rel: "noreferrer noopener",
dangerouslySetInnerHTML: !!titleTrimmed ? {
__html: titleTrimmed
} : undefined
} : undefined,
onClick: showRedirectionPreventedNotice
}, !titleTrimmed ? (0,external_wp_i18n_namespaceObject.__)('(no title)') : null), displayAuthor && currentAuthor && (0,external_wp_element_namespaceObject.createElement)("div", {
className: "wp-block-latest-posts__post-author"
}, (0,external_wp_i18n_namespaceObject.sprintf)(
@ -23608,7 +23623,6 @@ const DEFAULT_MEDIA_SIZE_SLUG = 'full';
*/
const media_text_edit_TEMPLATE = [['core/paragraph', {
fontSize: 'large',
placeholder: (0,external_wp_i18n_namespaceObject._x)('Content…', 'content placeholder')
}]]; // this limits the resize to a safe zone to avoid making broken layouts
@ -31145,6 +31159,46 @@ const post_author_biography_settings = {
edit: post_author_biography_edit
};
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-form/form.js
/**
* WordPress dependencies
*/
const CommentsForm = () => {
const disabledFormRef = (0,external_wp_compose_namespaceObject.__experimentalUseDisabled)();
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(CommentsForm);
return (0,external_wp_element_namespaceObject.createElement)("div", {
className: "comment-respond"
}, (0,external_wp_element_namespaceObject.createElement)("h3", {
className: "comment-reply-title"
}, (0,external_wp_i18n_namespaceObject.__)('Leave a Reply')), (0,external_wp_element_namespaceObject.createElement)("form", {
noValidate: true,
className: "comment-form",
ref: disabledFormRef
}, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_element_namespaceObject.createElement)("label", {
htmlFor: `comment-${instanceId}`
}, (0,external_wp_i18n_namespaceObject.__)('Comment')), (0,external_wp_element_namespaceObject.createElement)("textarea", {
id: `comment-${instanceId}`,
name: "comment",
cols: "45",
rows: "8"
})), (0,external_wp_element_namespaceObject.createElement)("p", {
className: "form-submit wp-block-button"
}, (0,external_wp_element_namespaceObject.createElement)("input", {
name: "submit",
type: "submit",
className: "submit wp-block-button__link",
label: (0,external_wp_i18n_namespaceObject.__)('Post Comment'),
value: (0,external_wp_i18n_namespaceObject.__)('Post Comment')
}))));
};
/* harmony default export */ var post_comments_form_form = (CommentsForm);
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments/edit.js
@ -31162,6 +31216,11 @@ const post_author_biography_settings = {
/**
* Internal dependencies
*/
function PostCommentsEdit(_ref) {
let {
attributes: {
@ -31189,22 +31248,22 @@ function PostCommentsEdit(_ref) {
let warning = (0,external_wp_i18n_namespaceObject.__)('Post Comments block: This is just a placeholder, not a real comment. The final styling may differ because it also depends on the current theme. For better compatibility with the Block Editor, please consider replacing this block with the "Comments Query Loop" block.');
let showPlacholder = true;
let showPlaceholder = true;
if (!isSiteEditor && 'open' !== commentStatus) {
if ('closed' === commentStatus) {
warning = (0,external_wp_i18n_namespaceObject.sprintf)(
/* translators: 1: Post type (i.e. "post", "page") */
(0,external_wp_i18n_namespaceObject.__)('Post Comments block: Comments to this %s are not allowed.'), postType);
showPlacholder = false;
showPlaceholder = false;
} else if (!postTypeSupportsComments) {
warning = (0,external_wp_i18n_namespaceObject.sprintf)(
/* translators: 1: Post type (i.e. "post", "page") */
(0,external_wp_i18n_namespaceObject.__)('Post Comments block: Comments for this post type (%s) are not enabled.'), postType);
showPlacholder = false;
showPlaceholder = false;
} else if ('open' !== defaultCommentStatus) {
warning = (0,external_wp_i18n_namespaceObject.__)('Post Comments block: Comments are not enabled.');
showPlacholder = false;
showPlaceholder = false;
}
}
@ -31214,7 +31273,6 @@ function PostCommentsEdit(_ref) {
})
});
const disabledRef = (0,external_wp_compose_namespaceObject.__experimentalUseDisabled)();
const textareaId = (0,external_wp_compose_namespaceObject.useInstanceId)(PostCommentsEdit);
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
group: "block"
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
@ -31224,7 +31282,7 @@ function PostCommentsEdit(_ref) {
textAlign: nextAlign
});
}
})), (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, warning), showPlacholder && (0,external_wp_element_namespaceObject.createElement)("div", {
})), (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, warning), showPlaceholder && (0,external_wp_element_namespaceObject.createElement)("div", {
className: "wp-block-post-comments__placeholder",
ref: disabledRef
}, (0,external_wp_element_namespaceObject.createElement)("h3", null,
@ -31310,33 +31368,7 @@ function PostCommentsEdit(_ref) {
className: "alignright"
}, (0,external_wp_element_namespaceObject.createElement)("a", {
href: "#top"
}, (0,external_wp_i18n_namespaceObject.__)('Newer Comments'), " \xBB"))), (0,external_wp_element_namespaceObject.createElement)("div", {
className: "comment-respond"
}, (0,external_wp_element_namespaceObject.createElement)("h3", {
className: "comment-reply-title"
}, (0,external_wp_i18n_namespaceObject.__)('Leave a Reply')), (0,external_wp_element_namespaceObject.createElement)("form", {
className: "comment-form",
noValidate: true
}, (0,external_wp_element_namespaceObject.createElement)("p", {
className: "comment-form-comment"
}, (0,external_wp_element_namespaceObject.createElement)("label", {
htmlFor: `comment-${textareaId}`
}, (0,external_wp_i18n_namespaceObject.__)('Comment'), ' ', (0,external_wp_element_namespaceObject.createElement)("span", {
className: "required"
}, "*")), (0,external_wp_element_namespaceObject.createElement)("textarea", {
id: `comment-${textareaId}`,
name: "comment",
cols: "45",
rows: "8",
required: true
})), (0,external_wp_element_namespaceObject.createElement)("p", {
className: "form-submit wp-block-button"
}, (0,external_wp_element_namespaceObject.createElement)("input", {
name: "submit",
type: "submit",
className: "submit wp-block-button__link",
value: (0,external_wp_i18n_namespaceObject.__)('Post Comment')
})))))));
}, (0,external_wp_i18n_namespaceObject.__)('Newer Comments'), " \xBB"))), (0,external_wp_element_namespaceObject.createElement)(post_comments_form_form, null))));
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments/index.js
@ -31429,6 +31461,12 @@ const postCommentsForm = (0,external_wp_element_namespaceObject.createElement)(e
/**
* Internal dependencies
*/
function PostCommentsFormEdit(_ref) {
let {
attributes,
@ -31442,15 +31480,47 @@ function PostCommentsFormEdit(_ref) {
postId,
postType
} = context;
const [commentStatus] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postType, 'comment_status', postId);
const [commentStatus, setCommentStatus] = (0,external_wp_coreData_namespaceObject.useEntityProp)('postType', postType, 'comment_status', postId);
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
className: classnames_default()({
[`has-text-align-${textAlign}`]: textAlign
})
});
const isInSiteEditor = postType === undefined || postId === undefined;
const disabledFormRef = (0,external_wp_compose_namespaceObject.__experimentalUseDisabled)();
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(PostCommentsFormEdit);
const isSiteEditor = postType === undefined || postId === undefined;
const {
defaultCommentStatus
} = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getSettings().__experimentalDiscussionSettings);
const postTypeSupportsComments = (0,external_wp_data_namespaceObject.useSelect)(select => {
var _select$getPostType;
return postType ? !!((_select$getPostType = select(external_wp_coreData_namespaceObject.store).getPostType(postType)) !== null && _select$getPostType !== void 0 && _select$getPostType.supports.comments) : false;
});
let warning = false;
let actions;
let showPlaceholder = true;
if (!isSiteEditor && 'open' !== commentStatus) {
if ('closed' === commentStatus) {
warning = (0,external_wp_i18n_namespaceObject.sprintf)(
/* translators: 1: Post type (i.e. "post", "page") */
(0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments on this %s are not allowed.'), postType);
actions = [(0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
key: "enableComments",
onClick: () => setCommentStatus('open'),
variant: "primary"
}, (0,external_wp_i18n_namespaceObject._x)('Enable comments', 'action that affects the current post'))];
showPlaceholder = false;
} else if (!postTypeSupportsComments) {
warning = (0,external_wp_i18n_namespaceObject.sprintf)(
/* translators: 1: Post type (i.e. "post", "page") */
(0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments for this post type (%s) are not enabled.'), postType);
showPlaceholder = false;
} else if ('open' !== defaultCommentStatus) {
warning = (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: Comments are not enabled.');
showPlaceholder = false;
}
}
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
group: "block"
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, {
@ -31460,26 +31530,9 @@ function PostCommentsFormEdit(_ref) {
textAlign: nextAlign
});
}
})), (0,external_wp_element_namespaceObject.createElement)("div", blockProps, !commentStatus && !isInSiteEditor && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: comments are not enabled for this post type.')), 'open' !== commentStatus && !isInSiteEditor && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, null, (0,external_wp_i18n_namespaceObject.sprintf)(
/* translators: 1: Post type (i.e. "post", "page") */
(0,external_wp_i18n_namespaceObject.__)('Post Comments Form block: comments to this %s are not allowed.'), postType)), ('open' === commentStatus || isInSiteEditor) && (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)("h3", null, (0,external_wp_i18n_namespaceObject.__)('Leave a Reply')), (0,external_wp_element_namespaceObject.createElement)("form", {
noValidate: true,
className: "comment-form",
ref: disabledFormRef
}, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_element_namespaceObject.createElement)("label", {
htmlFor: `comment-${instanceId}`
}, (0,external_wp_i18n_namespaceObject.__)('Comment')), (0,external_wp_element_namespaceObject.createElement)("textarea", {
id: `comment-${instanceId}`,
name: "comment",
cols: "45",
rows: "8"
})), (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_element_namespaceObject.createElement)("input", {
name: "submit",
className: "submit wp-block-button__link",
label: (0,external_wp_i18n_namespaceObject.__)('Post Comment'),
value: (0,external_wp_i18n_namespaceObject.__)('Post Comment'),
readOnly: true
}))))));
})), (0,external_wp_element_namespaceObject.createElement)("div", blockProps, warning && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.Warning, {
actions: actions
}, warning), showPlaceholder ? (0,external_wp_element_namespaceObject.createElement)(post_comments_form_form, null) : null));
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/post-comments-form/index.js

File diff suppressed because one or more lines are too long

View File

@ -13355,7 +13355,7 @@ function synchronizeBlocksWithTemplate() {
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -13368,7 +13368,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","compose"]

File diff suppressed because one or more lines are too long

View File

@ -411,6 +411,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
var $replace = bind.call(Function.call, String.prototype.replace);
var $strSlice = bind.call(Function.call, String.prototype.slice);
var $exec = bind.call(Function.call, RegExp.prototype.exec);
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@ -466,6 +467,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
throw new $TypeError('"allowMissing" argument must be a boolean');
}
if ($exec(/^%?[^%]*%?$/g, name) === null) {
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
}
var parts = stringToPath(name);
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
@ -830,8 +834,9 @@ function addNumericSeparator(num, str) {
return $replace.call(str, sepRegex, '$&_');
}
var inspectCustom = (__webpack_require__(4080).custom);
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
var utilInspect = __webpack_require__(4080);
var inspectCustom = utilInspect.custom;
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
module.exports = function inspect_(obj, options, depth, seen) {
var opts = options || {};
@ -921,7 +926,7 @@ module.exports = function inspect_(obj, options, depth, seen) {
return inspect_(value, opts, depth + 1, seen);
}
if (typeof obj === 'function') {
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
var name = nameOf(obj);
var keys = arrObjKeys(obj, inspect);
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
@ -951,15 +956,15 @@ module.exports = function inspect_(obj, options, depth, seen) {
}
if (isError(obj)) {
var parts = arrObjKeys(obj, inspect);
if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
}
if (parts.length === 0) { return '[' + String(obj) + ']'; }
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
}
if (typeof obj === 'object' && customInspect) {
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
return obj[inspectSymbol]();
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
return utilInspect(obj, { depth: maxDepth - depth });
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
return obj.inspect();
}
@ -3530,7 +3535,7 @@ var ThrowTypeError = $gOPD
}())
: throwTypeError;
var hasSymbols = __webpack_require__(9905)();
var hasSymbols = __webpack_require__(1779)();
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
@ -3690,6 +3695,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
var $replace = bind.call(Function.call, String.prototype.replace);
var $strSlice = bind.call(Function.call, String.prototype.slice);
var $exec = bind.call(Function.call, RegExp.prototype.exec);
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@ -3745,6 +3751,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
throw new $TypeError('"allowMissing" argument must be a boolean');
}
if ($exec(/^%?[^%]*%?$/g, name) === null) {
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
}
var parts = stringToPath(name);
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
@ -3818,6 +3827,77 @@ module.exports = function GetIntrinsic(name, allowMissing) {
};
/***/ }),
/***/ 1779:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
var hasSymbolSham = __webpack_require__(8030);
module.exports = function hasNativeSymbols() {
if (typeof origSymbol !== 'function') { return false; }
if (typeof Symbol !== 'function') { return false; }
if (typeof origSymbol('foo') !== 'symbol') { return false; }
if (typeof Symbol('bar') !== 'symbol') { return false; }
return hasSymbolSham();
};
/***/ }),
/***/ 8030:
/***/ (function(module) {
"use strict";
/* eslint complexity: [2, 18], max-statements: [2, 33] */
module.exports = function hasSymbols() {
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
if (typeof Symbol.iterator === 'symbol') { return true; }
var obj = {};
var sym = Symbol('test');
var symObj = Object(sym);
if (typeof sym === 'string') { return false; }
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
// temp disabled per https://github.com/ljharb/object.assign/issues/17
// if (sym instanceof Symbol) { return false; }
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
// if (!(symObj instanceof Symbol)) { return false; }
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
var symVal = 42;
obj[sym] = symVal;
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
var syms = Object.getOwnPropertySymbols(obj);
if (syms.length !== 1 || syms[0] !== sym) { return false; }
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
if (typeof Object.getOwnPropertyDescriptor === 'function') {
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
}
return true;
};
/***/ }),
/***/ 9905:
@ -16377,7 +16457,7 @@ __webpack_require__.d(toggle_group_control_option_base_styles_namespaceObject, {
var external_wp_primitives_namespaceObject = window["wp"]["primitives"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function extends_extends() {
extends_extends = Object.assign || function (target) {
extends_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -16390,7 +16470,6 @@ function extends_extends() {
return target;
};
return extends_extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","element"]
@ -19555,6 +19634,7 @@ function createStyleElement(options) {
}
var StyleSheet = /*#__PURE__*/function () {
// Using Node instead of HTMLElement since container may be a ShadowRoot
function StyleSheet(options) {
var _this = this;
@ -20722,8 +20802,7 @@ var createCache = function createCache(options) {
if (false) {}
var inserted = {}; // $FlowFixMe
var inserted = {};
var container;
var nodesToHydrate = [];
@ -20962,6 +21041,8 @@ var processStyleValue = function processStyleValue(key, value) {
if (false) { var hyphenatedCache, hyphenPattern, msPattern, oldProcessStyleValue, contentValues, contentValuePattern; }
var noComponentSelectorMessage = (/* unused pure expression or super */ null && ('Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.'));
function handleInterpolation(mergedProps, registered, interpolation) {
if (interpolation == null) {
return '';
@ -24170,7 +24251,7 @@ var hoist_non_react_statics_cjs = __webpack_require__(1281);
var pkg = {
name: "@emotion/react",
version: "11.9.0",
version: "11.9.3",
main: "dist/emotion-react.cjs.js",
module: "dist/emotion-react.esm.js",
browser: {
@ -24198,8 +24279,8 @@ var pkg = {
dependencies: {
"@babel/runtime": "^7.13.10",
"@emotion/babel-plugin": "^11.7.1",
"@emotion/cache": "^11.7.1",
"@emotion/serialize": "^1.0.3",
"@emotion/cache": "^11.9.3",
"@emotion/serialize": "^1.0.4",
"@emotion/utils": "^1.1.0",
"@emotion/weak-memoize": "^0.2.5",
"hoist-non-react-statics": "^3.3.1"
@ -24218,12 +24299,11 @@ var pkg = {
},
devDependencies: {
"@babel/core": "^7.13.10",
"@definitelytyped/dtslint": "0.0.112",
"@emotion/css": "11.9.0",
"@emotion/css-prettifier": "1.0.1",
"@emotion/server": "11.4.0",
"@emotion/styled": "11.8.1",
"@types/react": "^16.9.11",
dtslint: "^4.2.1",
"@emotion/styled": "11.9.3",
"html-tag-names": "^1.1.2",
react: "16.14.0",
"svg-tag-names": "^1.1.1",
@ -26900,6 +26980,17 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/process.mjs
/**
* Browser-safe usage of process
*/
var defaultEnvironment = "production";
var env = typeof process === "undefined" || process.env === undefined
? defaultEnvironment
: "production" || 0;
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/definitions.mjs
var createDefinition = function (propNames) { return ({
isEnabled: function (props) { return propNames.some(function (name) { return !!props[name]; }); },
@ -26948,6 +27039,13 @@ function loadFeatures(features) {
;// CONCATENATED MODULE: ./node_modules/hey-listen/dist/hey-listen.es.js
var warning = function () { };
var invariant = function () { };
if (false) {}
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LazyContext.mjs
@ -26978,7 +27076,9 @@ function useFeatures(props, visualElement, preloadedFeatures) {
* If we're in development mode, check to make sure we're not rendering a motion component
* as a child of LazyMotion, as this will break the file-size benefits of using it.
*/
if (false) {}
if (env !== "production" && preloadedFeatures && lazyContext.strict) {
invariant(false, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
}
for (var i = 0; i < numFeatures; i++) {
var name_1 = featureNames[i];
var _a = featureDefinitions[name_1], isEnabled = _a.isEnabled, Component = _a.Component;
@ -27577,6 +27677,11 @@ var MotionValue = /** @class */ (function () {
*/
function MotionValue(init) {
var _this = this;
/**
* This will be replaced by the build step with the latest version number.
* When MotionValues are provided to motion components, warn if versions are mixed.
*/
this.version = "6.3.16";
/**
* Duration, in milliseconds, since last updating frame.
*
@ -27703,7 +27808,7 @@ var MotionValue = /** @class */ (function () {
* }
* ```
*
* @internalremarks
* @privateRemarks
*
* We could look into a `useOnChange` hook if the above lifecycle management proves confusing.
*
@ -27855,9 +27960,6 @@ var MotionValue = /** @class */ (function () {
};
return MotionValue;
}());
/**
* @internal
*/
function motionValue(init) {
return new MotionValue(init);
}
@ -27871,13 +27973,6 @@ var isMotionValue = function (value) {
;// CONCATENATED MODULE: ./node_modules/hey-listen/dist/hey-listen.es.js
var warning = function () { };
var invariant = function () { };
if (false) {}
;// CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/clamp.mjs
const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
@ -29496,8 +29591,6 @@ function getValueTransition(transition, key) {
/**
* Start animation on a MotionValue. This function is an interface between
* Framer Motion and Popmotion
*
* @internal
*/
function startAnimation(key, value, target, transition) {
if (transition === void 0) { transition = {}; }
@ -30121,7 +30214,7 @@ function addScaleCorrector(correctors) {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/styles/transform.mjs
var identityProjection = "translate3d(0px, 0px, 0) scale(1, 1)";
var identityProjection = "translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";
function buildProjectionTransform(delta, treeScale, latestTransform) {
/**
* The translations we use to calculate are always relative to the viewport coordinate space.
@ -30132,6 +30225,11 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
var xTranslate = delta.x.translate / treeScale.x;
var yTranslate = delta.y.translate / treeScale.y;
var transform = "translate3d(".concat(xTranslate, "px, ").concat(yTranslate, "px, 0) ");
/**
* Apply scale correction for the tree transform.
* This will apply scale to the screen-orientated axes.
*/
transform += "scale(".concat(1 / treeScale.x, ", ").concat(1 / treeScale.y, ") ");
if (latestTransform) {
var rotate = latestTransform.rotate, rotateX = latestTransform.rotateX, rotateY = latestTransform.rotateY;
if (rotate)
@ -30141,7 +30239,13 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
if (rotateY)
transform += "rotateY(".concat(rotateY, "deg) ");
}
transform += "scale(".concat(delta.x.scale, ", ").concat(delta.y.scale, ")");
/**
* Apply scale to match the size of the element to the size we want it.
* This will apply scale to the element-orientated axes.
*/
var elementScaleX = delta.x.scale * treeScale.x;
var elementScaleY = delta.y.scale * treeScale.y;
transform += "scale(".concat(elementScaleX, ", ").concat(elementScaleY, ")");
return transform === identityProjection ? "none" : transform;
}
@ -30239,8 +30343,6 @@ var FlatTree = /** @class */ (function () {
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
*
* TODO: Remove and move to library
*
* @internal
*/
function resolveMotionValue(value) {
var unwrappedValue = isMotionValue(value) ? value.get() : value;
@ -30297,7 +30399,7 @@ var globalProjectionState = {
hasEverUpdated: false,
};
function createProjectionNode(_a) {
var attachResizeListener = _a.attachResizeListener, defaultParent = _a.defaultParent, measureScroll = _a.measureScroll, resetTransform = _a.resetTransform;
var attachResizeListener = _a.attachResizeListener, defaultParent = _a.defaultParent, measureScroll = _a.measureScroll, checkIsScrollRoot = _a.checkIsScrollRoot, resetTransform = _a.resetTransform;
return /** @class */ (function () {
function ProjectionNode(id, latestValues, parent) {
var _this = this;
@ -30700,6 +30802,7 @@ function createProjectionNode(_a) {
};
ProjectionNode.prototype.updateScroll = function () {
if (this.options.layoutScroll && this.instance) {
this.isScrollRoot = checkIsScrollRoot(this.instance);
this.scroll = measureScroll(this.instance);
}
};
@ -30743,8 +30846,24 @@ function createProjectionNode(_a) {
*/
for (var i = 0; i < this.path.length; i++) {
var node = this.path[i];
var scroll_1 = node.scroll, options = node.options;
var scroll_1 = node.scroll, options = node.options, isScrollRoot = node.isScrollRoot;
if (node !== this.root && scroll_1 && options.layoutScroll) {
/**
* If this is a new scroll root, we want to remove all previous scrolls
* from the viewport box.
*/
if (isScrollRoot) {
copyBoxInto(boxWithoutScroll, box);
var rootScroll = this.root.scroll;
/**
* Undo the application of page scroll that was originally added
* to the measured bounding box.
*/
if (rootScroll) {
translateAxis(boxWithoutScroll.x, -rootScroll.x);
translateAxis(boxWithoutScroll.y, -rootScroll.y);
}
}
translateAxis(boxWithoutScroll.x, scroll_1.x);
translateAxis(boxWithoutScroll.y, scroll_1.y);
}
@ -31477,9 +31596,6 @@ function useProjectionId() {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
/**
* @internal
*/
var LayoutGroupContext = (0,external_React_.createContext)({});
@ -31488,7 +31604,7 @@ var LayoutGroupContext = (0,external_React_.createContext)({});
/**
* @internal
* Internal, exported only for usage in Framer
*/
var SwitchLayoutGroupContext = (0,external_React_.createContext)({});
@ -31585,8 +31701,6 @@ var VisualElementHandler = /** @class */ (function (_super) {
*
* Alongside this is a config option which provides a way of rendering the provided
* component "offline", or outside the React render cycle.
*
* @internal
*/
function motion_createMotionComponent(_a) {
var preloadedFeatures = _a.preloadedFeatures, createVisualElement = _a.createVisualElement, projectionNodeConstructor = _a.projectionNodeConstructor, useRender = _a.useRender, useVisualState = _a.useVisualState, Component = _a.Component;
@ -32019,7 +32133,7 @@ function useHTMLProps(props, visualState, isStatic) {
/**
* A list of all valid MotionProps.
*
* @internalremarks
* @privateRemarks
* This doesn't throw if a `MotionProp` name is missing - it should.
*/
var validMotionProps = new Set([
@ -32585,8 +32699,9 @@ var AnimationType;
function addDomEvent(target, eventName, handler, options) {
if (options === void 0) { options = { passive: true }; }
target.addEventListener(eventName, handler, options);
return function () { return target.removeEventListener(eventName, handler, options); };
return function () { return target.removeEventListener(eventName, handler); };
}
/**
* Attaches an event listener directly to the provided DOM element.
@ -32850,10 +32965,10 @@ function useHoverGesture(_a) {
var onHoverStart = _a.onHoverStart, onHoverEnd = _a.onHoverEnd, whileHover = _a.whileHover, visualElement = _a.visualElement;
usePointerEvent(visualElement, "pointerenter", onHoverStart || whileHover
? createHoverEvent(visualElement, true, onHoverStart)
: undefined);
: undefined, { passive: !onHoverStart });
usePointerEvent(visualElement, "pointerleave", onHoverEnd || whileHover
? createHoverEvent(visualElement, false, onHoverEnd)
: undefined);
: undefined, { passive: !onHoverEnd });
}
@ -32907,6 +33022,12 @@ function useTapGesture(_a) {
var hasPressListeners = onTap || onTapStart || onTapCancel || whileTap;
var isPressing = (0,external_React_.useRef)(false);
var cancelPointerEndListeners = (0,external_React_.useRef)(null);
/**
* Only set listener to passive if there are no external listeners.
*/
var eventOptions = {
passive: !(onTapStart || onTap || onTapCancel || onPointerDown),
};
function removePointerEndListener() {
var _a;
(_a = cancelPointerEndListeners.current) === null || _a === void 0 ? void 0 : _a.call(cancelPointerEndListeners);
@ -32941,19 +33062,32 @@ function useTapGesture(_a) {
if (isPressing.current)
return;
isPressing.current = true;
cancelPointerEndListeners.current = pipe(addPointerEvent(window, "pointerup", onPointerUp), addPointerEvent(window, "pointercancel", onPointerCancel));
cancelPointerEndListeners.current = pipe(addPointerEvent(window, "pointerup", onPointerUp, eventOptions), addPointerEvent(window, "pointercancel", onPointerCancel, eventOptions));
/**
* Ensure we trigger animations before firing event callback
*/
(_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Tap, true);
onTapStart === null || onTapStart === void 0 ? void 0 : onTapStart(event, info);
}
usePointerEvent(visualElement, "pointerdown", hasPressListeners ? onPointerDown : undefined);
usePointerEvent(visualElement, "pointerdown", hasPressListeners ? onPointerDown : undefined, eventOptions);
useUnmountEffect(removePointerEndListener);
}
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/warn-once.mjs
var warned = new Set();
function warnOnce(condition, message, element) {
if (condition || warned.has(message))
return;
console.warn(message);
if (element)
console.warn(element);
warned.add(message);
}
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs
@ -33086,7 +33220,9 @@ function useMissingIntersectionObserver(shouldObserve, state, visualElement, _a)
(0,external_React_.useEffect)(function () {
if (!shouldObserve || !fallback)
return;
if (false) {}
if (env !== "production") {
warnOnce(false, "IntersectionObserver not available on this device. whileInView animations will trigger on mount.");
}
/**
* Fire this in an rAF because, at this point, the animation state
* won't have flushed for the first time and there's certain logic in
@ -33428,9 +33564,6 @@ function getOrigin(target, transition, visualElement) {
/**
* @internal
*/
function animateVisualElement(visualElement, definition, options) {
if (options === void 0) { options = {}; }
visualElement.notifyAnimationStart(definition);
@ -34690,7 +34823,7 @@ var VisualElementDragControls = /** @class */ (function () {
* constraints as the window resizes.
*/
var stopResizeListener = addDomEvent(window, "resize", function () {
_this.scalePositionWithinConstraints();
return _this.scalePositionWithinConstraints();
});
/**
* If the element's layout changes, calculate the delta and apply that to
@ -34781,7 +34914,7 @@ function useDrag(props) {
* @param handlers -
* @param ref -
*
* @internalremarks
* @privateRemarks
* Currently this sets new pan gesture functions every render. The memo route has been explored
* in the past but ultimately we're still creating new functions every render. An optimisation
* to explore is creating the pan gestures and loading them into a `ref`.
@ -34886,6 +35019,7 @@ function createLifecycles() {
function updateMotionValuesFromProps(element, next, prev) {
var _a;
for (var key in next) {
@ -34897,6 +35031,11 @@ function updateMotionValuesFromProps(element, next, prev) {
* to our visual element's motion value map.
*/
element.addValue(key, nextValue);
/**
* Check the version of the incoming motion value with this version
* and warn against mismatches.
*/
if (false) {}
}
else if (isMotionValue(prevValue)) {
/**
@ -35655,6 +35794,9 @@ var checkAndConvertChangedValueTypes = function (visualElement, target, origin,
}
});
if (changedValueTypeKeys.length) {
var scrollY_1 = changedValueTypeKeys.indexOf("height") >= 0
? window.pageYOffset
: null;
var convertedTarget = convertChangedValueTypes(target, visualElement, changedValueTypeKeys);
// If we removed transform values, reapply them before the next render
if (removedTransformValues.length) {
@ -35665,6 +35807,9 @@ var checkAndConvertChangedValueTypes = function (visualElement, target, origin,
}
// Reapply original values
visualElement.syncRender();
// Restore scroll position
if (scrollY_1 !== null)
window.scrollTo({ top: scrollY_1 });
return { target: convertedTarget, transitionEnd: transitionEnd };
}
else {
@ -36103,15 +36248,14 @@ var layoutFeatures = {
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs
var DocumentProjectionNode = createProjectionNode({
attachResizeListener: function (ref, notify) {
ref.addEventListener("resize", notify, { passive: true });
return function () { return ref.removeEventListener("resize", notify); };
},
attachResizeListener: function (ref, notify) { return addDomEvent(ref, "resize", notify); },
measureScroll: function () { return ({
x: document.documentElement.scrollLeft || document.body.scrollLeft,
y: document.documentElement.scrollTop || document.body.scrollTop,
}); },
checkIsScrollRoot: function () { return true; },
});
@ -36140,6 +36284,9 @@ var HTMLProjectionNode_HTMLProjectionNode = createProjectionNode({
resetTransform: function (instance, value) {
instance.style.transform = value !== null && value !== void 0 ? value : "none";
},
checkIsScrollRoot: function (instance) {
return Boolean(window.getComputedStyle(instance).position === "fixed");
},
});
@ -38012,10 +38159,10 @@ function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/actions-e2a59bb9.esm.js
;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/actions-1416bf77.esm.js
function actions_e2a59bb9_esm_defineProperty(obj, key, value) {
function actions_1416bf77_esm_defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
@ -38030,7 +38177,7 @@ function actions_e2a59bb9_esm_defineProperty(obj, key, value) {
return obj;
}
function actions_e2a59bb9_esm_ownKeys(object, enumerableOnly) {
function actions_1416bf77_esm_ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
@ -38043,12 +38190,12 @@ function actions_e2a59bb9_esm_ownKeys(object, enumerableOnly) {
return keys;
}
function actions_e2a59bb9_esm_objectSpread2(target) {
function actions_1416bf77_esm_objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? actions_e2a59bb9_esm_ownKeys(Object(source), !0).forEach(function (key) {
actions_e2a59bb9_esm_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : actions_e2a59bb9_esm_ownKeys(Object(source)).forEach(function (key) {
i % 2 ? actions_1416bf77_esm_ownKeys(Object(source), !0).forEach(function (key) {
actions_1416bf77_esm_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : actions_1416bf77_esm_ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
@ -38457,7 +38604,7 @@ class Engine {
const config = this.config;
if (!state._active) this.clean();
if ((state._blocked || !state.intentional) && !state._force && !config.triggerAllEvents) return;
const memo = this.handler(actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, shared), state), {}, {
const memo = this.handler(actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, shared), state), {}, {
[this.aliasKey]: state.values
}));
if (memo !== undefined) state.memo = memo;
@ -38489,7 +38636,7 @@ class CoordinatesEngine extends Engine {
constructor(...args) {
super(...args);
actions_e2a59bb9_esm_defineProperty(this, "aliasKey", 'xy');
actions_1416bf77_esm_defineProperty(this, "aliasKey", 'xy');
}
reset() {
@ -38546,7 +38693,7 @@ const commonConfigResolver = {
},
eventOptions(value, _k, config) {
return actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, config.shared.eventOptions), value);
return actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, config.shared.eventOptions), value);
},
preventDefault(value = false) {
@ -38593,7 +38740,7 @@ const commonConfigResolver = {
if (false) {}
const DEFAULT_AXIS_THRESHOLD = 0;
const coordinatesConfigResolver = actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, commonConfigResolver), {}, {
const coordinatesConfigResolver = actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, commonConfigResolver), {}, {
axis(_v, _k, {
axis
}) {
@ -38640,7 +38787,7 @@ class DragEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
actions_e2a59bb9_esm_defineProperty(this, "ingKey", 'dragging');
actions_1416bf77_esm_defineProperty(this, "ingKey", 'dragging');
}
reset() {
@ -38863,6 +39010,7 @@ class DragEngine extends CoordinatesEngine {
}
setupScrollPrevention(event) {
this.state._preventScroll = false;
persistEvent(event);
const remove = this.eventStore.add(this.sharedConfig.window, 'touch', 'change', this.preventScroll.bind(this), {
passive: false
@ -38931,22 +39079,22 @@ function persistEvent(event) {
'persist' in event && typeof event.persist === 'function' && event.persist();
}
const actions_e2a59bb9_esm_isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement;
const actions_1416bf77_esm_isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement;
function actions_e2a59bb9_esm_supportsTouchEvents() {
return actions_e2a59bb9_esm_isBrowser && 'ontouchstart' in window;
function actions_1416bf77_esm_supportsTouchEvents() {
return actions_1416bf77_esm_isBrowser && 'ontouchstart' in window;
}
function isTouchScreen() {
return actions_e2a59bb9_esm_supportsTouchEvents() || actions_e2a59bb9_esm_isBrowser && window.navigator.maxTouchPoints > 1;
return actions_1416bf77_esm_supportsTouchEvents() || actions_1416bf77_esm_isBrowser && window.navigator.maxTouchPoints > 1;
}
function actions_e2a59bb9_esm_supportsPointerEvents() {
return actions_e2a59bb9_esm_isBrowser && 'onpointerdown' in window;
function actions_1416bf77_esm_supportsPointerEvents() {
return actions_1416bf77_esm_isBrowser && 'onpointerdown' in window;
}
function supportsPointerLock() {
return actions_e2a59bb9_esm_isBrowser && 'exitPointerLock' in window.document;
return actions_1416bf77_esm_isBrowser && 'exitPointerLock' in window.document;
}
function supportsGestureEvents() {
@ -38958,11 +39106,11 @@ function supportsGestureEvents() {
}
const SUPPORT = {
isBrowser: actions_e2a59bb9_esm_isBrowser,
isBrowser: actions_1416bf77_esm_isBrowser,
gesture: supportsGestureEvents(),
touch: isTouchScreen(),
touchscreen: isTouchScreen(),
pointer: actions_e2a59bb9_esm_supportsPointerEvents(),
pointer: actions_1416bf77_esm_supportsPointerEvents(),
pointerLock: supportsPointerLock()
};
@ -38976,7 +39124,7 @@ const DEFAULT_DRAG_AXIS_THRESHOLD = {
touch: 0,
pen: 8
};
const dragConfigResolver = actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
const dragConfigResolver = actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
device(_v, _k, {
pointer: {
touch = false,
@ -39048,7 +39196,7 @@ const dragConfigResolver = actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_e
axisThreshold(value) {
if (!value) return DEFAULT_DRAG_AXIS_THRESHOLD;
return actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
return actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
}
});
@ -39061,9 +39209,9 @@ class PinchEngine extends Engine {
constructor(...args) {
super(...args);
actions_e2a59bb9_esm_defineProperty(this, "ingKey", 'pinching');
actions_1416bf77_esm_defineProperty(this, "ingKey", 'pinching');
actions_e2a59bb9_esm_defineProperty(this, "aliasKey", 'da');
actions_1416bf77_esm_defineProperty(this, "aliasKey", 'da');
}
init() {
@ -39327,7 +39475,7 @@ class PinchEngine extends Engine {
}
const pinchConfigResolver = actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, commonConfigResolver), {}, {
const pinchConfigResolver = actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, commonConfigResolver), {}, {
device(_v, _k, {
shared,
pointer: {
@ -39385,7 +39533,7 @@ class MoveEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
actions_e2a59bb9_esm_defineProperty(this, "ingKey", 'moving');
actions_1416bf77_esm_defineProperty(this, "ingKey", 'moving');
}
move(event) {
@ -39427,7 +39575,7 @@ class MoveEngine extends CoordinatesEngine {
}
const moveConfigResolver = actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
const moveConfigResolver = actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
mouseOnly: (value = true) => value
});
@ -39435,7 +39583,7 @@ class ScrollEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
actions_e2a59bb9_esm_defineProperty(this, "ingKey", 'scrolling');
actions_1416bf77_esm_defineProperty(this, "ingKey", 'scrolling');
}
scroll(event) {
@ -39474,7 +39622,7 @@ class WheelEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
actions_e2a59bb9_esm_defineProperty(this, "ingKey", 'wheeling');
actions_1416bf77_esm_defineProperty(this, "ingKey", 'wheeling');
}
wheel(event) {
@ -39522,7 +39670,7 @@ class HoverEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
actions_e2a59bb9_esm_defineProperty(this, "ingKey", 'hovering');
actions_1416bf77_esm_defineProperty(this, "ingKey", 'hovering');
}
enter(event) {
@ -39553,42 +39701,42 @@ class HoverEngine extends CoordinatesEngine {
}
const hoverConfigResolver = actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
const hoverConfigResolver = actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
mouseOnly: (value = true) => value
});
const actions_e2a59bb9_esm_EngineMap = new Map();
const actions_1416bf77_esm_EngineMap = new Map();
const ConfigResolverMap = new Map();
function actions_e2a59bb9_esm_registerAction(action) {
actions_e2a59bb9_esm_EngineMap.set(action.key, action.engine);
function actions_1416bf77_esm_registerAction(action) {
actions_1416bf77_esm_EngineMap.set(action.key, action.engine);
ConfigResolverMap.set(action.key, action.resolver);
}
const actions_e2a59bb9_esm_dragAction = {
const actions_1416bf77_esm_dragAction = {
key: 'drag',
engine: DragEngine,
resolver: dragConfigResolver
};
const actions_e2a59bb9_esm_hoverAction = {
const actions_1416bf77_esm_hoverAction = {
key: 'hover',
engine: HoverEngine,
resolver: hoverConfigResolver
};
const actions_e2a59bb9_esm_moveAction = {
const actions_1416bf77_esm_moveAction = {
key: 'move',
engine: MoveEngine,
resolver: moveConfigResolver
};
const actions_e2a59bb9_esm_pinchAction = {
const actions_1416bf77_esm_pinchAction = {
key: 'pinch',
engine: PinchEngine,
resolver: pinchConfigResolver
};
const actions_e2a59bb9_esm_scrollAction = {
const actions_1416bf77_esm_scrollAction = {
key: 'scroll',
engine: ScrollEngine,
resolver: scrollConfigResolver
};
const actions_e2a59bb9_esm_wheelAction = {
const actions_1416bf77_esm_wheelAction = {
key: 'wheel',
engine: WheelEngine,
resolver: wheelConfigResolver
@ -39715,7 +39863,7 @@ function use_gesture_core_esm_parse(config, gestureKey) {
if (gestureKey) {
const resolver = ConfigResolverMap.get(gestureKey);
_config[gestureKey] = resolveWith(actions_e2a59bb9_esm_objectSpread2({
_config[gestureKey] = resolveWith(actions_1416bf77_esm_objectSpread2({
shared: _config.shared
}, rest), resolver);
} else {
@ -39723,7 +39871,7 @@ function use_gesture_core_esm_parse(config, gestureKey) {
const resolver = ConfigResolverMap.get(key);
if (resolver) {
_config[key] = resolveWith(actions_e2a59bb9_esm_objectSpread2({
_config[key] = resolveWith(actions_1416bf77_esm_objectSpread2({
shared: _config.shared
}, rest[key]), resolver);
} else if (false) {}
@ -39735,7 +39883,7 @@ function use_gesture_core_esm_parse(config, gestureKey) {
class EventStore {
constructor(ctrl, gestureKey) {
actions_e2a59bb9_esm_defineProperty(this, "_listeners", new Set());
actions_1416bf77_esm_defineProperty(this, "_listeners", new Set());
this._ctrl = ctrl;
this._gestureKey = gestureKey;
@ -39747,7 +39895,7 @@ class EventStore {
const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {};
const eventOptions = actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, _options), options);
const eventOptions = actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, _options), options);
element.addEventListener(type, handler, eventOptions);
@ -39770,7 +39918,7 @@ class EventStore {
class TimeoutStore {
constructor() {
actions_e2a59bb9_esm_defineProperty(this, "_timeouts", new Map());
actions_1416bf77_esm_defineProperty(this, "_timeouts", new Map());
}
add(key, callback, ms = 140, ...args) {
@ -39795,23 +39943,23 @@ class TimeoutStore {
class Controller {
constructor(handlers) {
actions_e2a59bb9_esm_defineProperty(this, "gestures", new Set());
actions_1416bf77_esm_defineProperty(this, "gestures", new Set());
actions_e2a59bb9_esm_defineProperty(this, "_targetEventStore", new EventStore(this));
actions_1416bf77_esm_defineProperty(this, "_targetEventStore", new EventStore(this));
actions_e2a59bb9_esm_defineProperty(this, "gestureEventStores", {});
actions_1416bf77_esm_defineProperty(this, "gestureEventStores", {});
actions_e2a59bb9_esm_defineProperty(this, "gestureTimeoutStores", {});
actions_1416bf77_esm_defineProperty(this, "gestureTimeoutStores", {});
actions_e2a59bb9_esm_defineProperty(this, "handlers", {});
actions_1416bf77_esm_defineProperty(this, "handlers", {});
actions_e2a59bb9_esm_defineProperty(this, "config", {});
actions_1416bf77_esm_defineProperty(this, "config", {});
actions_e2a59bb9_esm_defineProperty(this, "pointerIds", new Set());
actions_1416bf77_esm_defineProperty(this, "pointerIds", new Set());
actions_e2a59bb9_esm_defineProperty(this, "touchIds", new Set());
actions_1416bf77_esm_defineProperty(this, "touchIds", new Set());
actions_e2a59bb9_esm_defineProperty(this, "state", {
actions_1416bf77_esm_defineProperty(this, "state", {
shared: {
shiftKey: false,
metaKey: false,
@ -39872,7 +40020,7 @@ class Controller {
const bindFunction = bindToProps(props, gestureConfig.eventOptions, !!target);
if (gestureConfig.enabled) {
const Engine = actions_e2a59bb9_esm_EngineMap.get(gestureKey);
const Engine = actions_1416bf77_esm_EngineMap.get(gestureKey);
new Engine(this, args, gestureKey).bind(bindFunction);
}
}
@ -39880,7 +40028,7 @@ class Controller {
const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target);
for (const eventKey in this.nativeHandlers) {
nativeBindFunction(eventKey, '', event => this.nativeHandlers[eventKey](actions_e2a59bb9_esm_objectSpread2(actions_e2a59bb9_esm_objectSpread2({}, this.state.shared), {}, {
nativeBindFunction(eventKey, '', event => this.nativeHandlers[eventKey](actions_1416bf77_esm_objectSpread2(actions_1416bf77_esm_objectSpread2({}, this.state.shared), {}, {
event,
args
})), undefined, true);
@ -40021,7 +40169,7 @@ function useRecognizers(handlers, config = {}, gestureKey, nativeHandlers) {
}
function use_gesture_react_esm_useDrag(handler, config) {
actions_e2a59bb9_esm_registerAction(actions_e2a59bb9_esm_dragAction);
actions_1416bf77_esm_registerAction(actions_1416bf77_esm_dragAction);
return useRecognizers({
drag: handler
}, config || {}, 'drag');
@ -40056,7 +40204,7 @@ function useMove(handler, config) {
}
function useHover(handler, config) {
actions_e2a59bb9_esm_registerAction(actions_e2a59bb9_esm_hoverAction);
actions_1416bf77_esm_registerAction(actions_1416bf77_esm_hoverAction);
return useRecognizers({
hover: handler
}, config || {}, 'hover');
@ -61463,15 +61611,9 @@ function newChildrenMap() {
var getChildKey = function (child) { return child.key || ""; };
var isDev = "production" !== "production";
function updateChildLookup(children, allChildren) {
var seenChildren = isDev ? new Set() : null;
children.forEach(function (child) {
var key = getChildKey(child);
if (isDev && seenChildren && seenChildren.has(key)) {
console.warn("Children of AnimatePresence require unique keys. \"".concat(key, "\" is a duplicate."));
seenChildren.add(key);
}
allChildren.set(key, child);
});
}
@ -61603,7 +61745,11 @@ var AnimatePresence = function (_a) {
var key = child.key;
return exiting.has(key) ? (child) : (external_React_.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, presenceAffectsLayout: presenceAffectsLayout }, child));
});
if (false) {}
if (env !== "production" &&
exitBeforeEnter &&
childrenToRender.length > 1) {
console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour.");
}
return (external_React_.createElement(external_React_.Fragment, null, exiting.size
? childrenToRender
: childrenToRender.map(function (child) { return (0,external_React_.cloneElement)(child); })));

File diff suppressed because one or more lines are too long

View File

@ -2256,7 +2256,7 @@ const pure = create_higher_order_component(Wrapped => {
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -2269,7 +2269,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","deprecated"]

File diff suppressed because one or more lines are too long

View File

@ -270,7 +270,7 @@ var external_wp_coreData_namespaceObject = window["wp"]["coreData"];
var external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -283,7 +283,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/customize-widgets/build-module/components/block-inspector-button/index.js

File diff suppressed because one or more lines are too long

View File

@ -3630,7 +3630,7 @@ persistencePlugin.__unstableMigrate = pluginOptions => {
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -3643,7 +3643,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","element"]

File diff suppressed because one or more lines are too long

View File

@ -273,7 +273,7 @@ const replaceMediaUpload = () => external_wp_mediaUtils_namespaceObject.MediaUpl
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -286,7 +286,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external "lodash"

File diff suppressed because one or more lines are too long

View File

@ -1417,7 +1417,7 @@ var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external
var external_wp_notices_namespaceObject = window["wp"]["notices"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function extends_extends() {
extends_extends = Object.assign || function (target) {
extends_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -1430,7 +1430,6 @@ function extends_extends() {
return target;
};
return extends_extends.apply(this, arguments);
}
// EXTERNAL MODULE: ./node_modules/classnames/index.js
@ -12457,15 +12456,15 @@ const postAuthor = (0,external_wp_element_namespaceObject.createElement)(externa
* WordPress dependencies
*/
const blockDefault = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
const blockMeta = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24"
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, {
"fill-rule": "evenodd",
fillRule: "evenodd",
d: "M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",
"clip-rule": "evenodd"
clipRule: "evenodd"
}));
/* harmony default export */ var block_meta = (blockDefault);
/* harmony default export */ var block_meta = (blockMeta);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/post-date.js

File diff suppressed because one or more lines are too long

View File

@ -342,7 +342,7 @@ var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
var external_wp_notices_namespaceObject = window["wp"]["notices"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -355,7 +355,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
// EXTERNAL MODULE: ./node_modules/classnames/index.js

File diff suppressed because one or more lines are too long

View File

@ -1139,7 +1139,7 @@ __webpack_require__.d(actions_namespaceObject, {
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -1152,7 +1152,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","element"]

File diff suppressed because one or more lines are too long

View File

@ -719,7 +719,7 @@ function useShortcut(name, callback) {
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -732,7 +732,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/keyboard-shortcuts/build-module/components/shortcut-provider.js

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ShortcutProvider:function(){return _},__unstableUseShortcutEventMatch:function(){return D},store:function(){return O},useShortcut:function(){return U}});var n={};e.r(n),e.d(n,{registerShortcut:function(){return s},unregisterShortcut:function(){return l}});var r={};e.r(r),e.d(r,{getAllShortcutKeyCombinations:function(){return C},getAllShortcutRawKeyCombinations:function(){return T},getCategoryShortcuts:function(){return E},getShortcutAliases:function(){return R},getShortcutDescription:function(){return m},getShortcutKeyCombination:function(){return w},getShortcutRepresentation:function(){return b}});var o=window.wp.data,a=window.lodash;var u,i,c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":return(0,a.omit)(e,t.name)}return e};function s(e){let{name:t,category:n,description:r,keyCombination:o,aliases:a}=e;return{type:"REGISTER_SHORTCUT",name:t,category:n,keyCombination:o,aliases:a,description:r}}function l(e){return{type:"UNREGISTER_SHORTCUT",name:e}}function f(e){return[e]}function d(){var e={clear:function(){e.head=null}};return e}function p(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function h(e,t){var n,r;function o(){n=i?new WeakMap:d()}function a(){var n,o,a,u,i,c=arguments.length;for(u=new Array(c),a=0;a<c;a++)u[a]=arguments[a];for(i=t.apply(null,u),(n=r(i)).isUniqueByDependants||(n.lastDependants&&!p(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),o=n.head;o;){if(p(o.args,u,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,u)},u[0]=null,o.args=u,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=f),r=i?function(e){var t,r,o,a,i,c=n,s=!0;for(t=0;t<e.length;t++){if(r=e[t],!(i=r)||"object"!=typeof i){s=!1;break}c.has(r)?c=c.get(r):(o=new WeakMap,c.set(r,o),c=o)}return c.has(u)||((a=d()).isUniqueByDependants=s,c.set(u,a)),c.get(u)}:function(){return n},a.getDependants=t,a.clear=o,o(),a}u={},i="undefined"!=typeof WeakMap;var y=window.wp.keycodes;const g=[],v={display:y.displayShortcut,raw:y.rawShortcut,ariaLabel:y.shortcutAriaLabel};function S(e,t){return e?e.modifier?v[t][e.modifier](e.character):e.character:null}function w(e,t){return e[t]?e[t].keyCombination:null}function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"display";const r=w(e,t);return S(r,n)}function m(e,t){return e[t]?e[t].description:null}function R(e,t){return e[t]&&e[t].aliases?e[t].aliases:g}const C=h(((e,t)=>(0,a.compact)([w(e,t),...R(e,t)])),((e,t)=>[e[t]])),T=h(((e,t)=>C(e,t).map((e=>S(e,"raw")))),((e,t)=>[e[t]])),E=h(((e,t)=>Object.entries(e).filter((e=>{let[,n]=e;return n.category===t})).map((e=>{let[t]=e;return t}))),(e=>[e])),O=(0,o.createReduxStore)("core/keyboard-shortcuts",{reducer:c,actions:n,selectors:r});(0,o.register)(O);var k=window.wp.element;function D(){const{getAllShortcutKeyCombinations:e}=(0,o.useSelect)(O);return function(t,n){return e(t).some((e=>{let{modifier:t,character:r}=e;return y.isKeyboardEvent[t](n,r)}))}}const x=(0,k.createContext)();function U(e,t){let{isDisabled:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(0,k.useContext)(x),o=D(),a=(0,k.useRef)();a.current=t,(0,k.useEffect)((()=>{if(!n)return r.current.add(t),()=>{r.current.delete(t)};function t(t){o(e,t)&&a.current(t)}}),[e,n])}function j(){return j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}const{Provider:K}=x;function _(e){const t=(0,k.useRef)(new Set);return(0,k.createElement)(K,{value:t},(0,k.createElement)("div",j({},e,{onKeyDown:function(n){e.onKeyDown&&e.onKeyDown(n);for(const e of t.current)e(n)}})))}(window.wp=window.wp||{}).keyboardShortcuts=t}();
!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ShortcutProvider:function(){return _},__unstableUseShortcutEventMatch:function(){return D},store:function(){return E},useShortcut:function(){return j}});var n={};e.r(n),e.d(n,{registerShortcut:function(){return s},unregisterShortcut:function(){return l}});var r={};e.r(r),e.d(r,{getAllShortcutKeyCombinations:function(){return C},getAllShortcutRawKeyCombinations:function(){return O},getCategoryShortcuts:function(){return T},getShortcutAliases:function(){return R},getShortcutDescription:function(){return m},getShortcutKeyCombination:function(){return b},getShortcutRepresentation:function(){return w}});var o=window.wp.data,a=window.lodash;var i,u,c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":return(0,a.omit)(e,t.name)}return e};function s(e){let{name:t,category:n,description:r,keyCombination:o,aliases:a}=e;return{type:"REGISTER_SHORTCUT",name:t,category:n,keyCombination:o,aliases:a,description:r}}function l(e){return{type:"UNREGISTER_SHORTCUT",name:e}}function f(e){return[e]}function d(){var e={clear:function(){e.head=null}};return e}function p(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function h(e,t){var n,r;function o(){n=u?new WeakMap:d()}function a(){var n,o,a,i,u,c=arguments.length;for(i=new Array(c),a=0;a<c;a++)i[a]=arguments[a];for(u=t.apply(null,i),(n=r(u)).isUniqueByDependants||(n.lastDependants&&!p(u,n.lastDependants,0)&&n.clear(),n.lastDependants=u),o=n.head;o;){if(p(o.args,i,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,i)},i[0]=null,o.args=i,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=f),r=u?function(e){var t,r,o,a,u,c=n,s=!0;for(t=0;t<e.length;t++){if(r=e[t],!(u=r)||"object"!=typeof u){s=!1;break}c.has(r)?c=c.get(r):(o=new WeakMap,c.set(r,o),c=o)}return c.has(i)||((a=d()).isUniqueByDependants=s,c.set(i,a)),c.get(i)}:function(){return n},a.getDependants=t,a.clear=o,o(),a}i={},u="undefined"!=typeof WeakMap;var y=window.wp.keycodes;const g=[],v={display:y.displayShortcut,raw:y.rawShortcut,ariaLabel:y.shortcutAriaLabel};function S(e,t){return e?e.modifier?v[t][e.modifier](e.character):e.character:null}function b(e,t){return e[t]?e[t].keyCombination:null}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"display";const r=b(e,t);return S(r,n)}function m(e,t){return e[t]?e[t].description:null}function R(e,t){return e[t]&&e[t].aliases?e[t].aliases:g}const C=h(((e,t)=>(0,a.compact)([b(e,t),...R(e,t)])),((e,t)=>[e[t]])),O=h(((e,t)=>C(e,t).map((e=>S(e,"raw")))),((e,t)=>[e[t]])),T=h(((e,t)=>Object.entries(e).filter((e=>{let[,n]=e;return n.category===t})).map((e=>{let[t]=e;return t}))),(e=>[e])),E=(0,o.createReduxStore)("core/keyboard-shortcuts",{reducer:c,actions:n,selectors:r});(0,o.register)(E);var k=window.wp.element;function D(){const{getAllShortcutKeyCombinations:e}=(0,o.useSelect)(E);return function(t,n){return e(t).some((e=>{let{modifier:t,character:r}=e;return y.isKeyboardEvent[t](n,r)}))}}const x=(0,k.createContext)();function j(e,t){let{isDisabled:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(0,k.useContext)(x),o=D(),a=(0,k.useRef)();a.current=t,(0,k.useEffect)((()=>{if(!n)return r.current.add(t),()=>{r.current.delete(t)};function t(t){o(e,t)&&a.current(t)}}),[e,n])}function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}const{Provider:K}=x;function _(e){const t=(0,k.useRef)(new Set);return(0,k.createElement)(K,{value:t},(0,k.createElement)("div",U({},e,{onKeyDown:function(n){e.onKeyDown&&e.onKeyDown(n);for(const e of t.current)e(n)}})))}(window.wp=window.wp||{}).keyboardShortcuts=t}();

View File

@ -265,7 +265,7 @@ var memize_default = /*#__PURE__*/__webpack_require__.n(memize);
var external_wp_hooks_namespaceObject = window["wp"]["hooks"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -278,7 +278,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","compose"]

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(){var e={9756:function(e){e.exports=function(e,n){var r,t,i=0;function o(){var o,u,s=r,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(u=0;u<l;u++)if(s.args[u]!==arguments[u]){s=s.next;continue e}return s!==r&&(s===t&&(t=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];return s={args:o,val:e.apply(null,o)},r?(r.prev=s,s.next=r):t=s,i===n.maxSize?(t=t.prev).next=null:i++,r=s,s.val}return n=n||{},o.clear=function(){r=null,t=null,i=0},o}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};!function(){"use strict";r.r(t),r.d(t,{PluginArea:function(){return y},getPlugin:function(){return w},getPlugins:function(){return P},registerPlugin:function(){return v},unregisterPlugin:function(){return h},withPluginContext:function(){return p}});var e=window.wp.element,n=window.lodash,i=r(9756),o=r.n(i),u=window.wp.hooks;function s(){return s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},s.apply(this,arguments)}var l=window.wp.compose;const{Consumer:a,Provider:c}=(0,e.createContext)({name:null,icon:null}),p=n=>(0,l.createHigherOrderComponent)((r=>t=>(0,e.createElement)(a,null,(i=>(0,e.createElement)(r,s({},t,n(i,t)))))),"withPluginContext");class g extends e.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){const{name:n,onError:r}=this.props;r&&r(n,e)}render(){return this.state.hasError?null:this.props.children}}var d=window.wp.primitives;var m=(0,e.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(d.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));const f={};function v(e,r){if("object"!=typeof r)return console.error("No settings object provided!"),null;if("string"!=typeof e)return console.error("Plugin name must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(e))return console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'),null;f[e]&&console.error(`Plugin "${e}" is already registered.`),r=(0,u.applyFilters)("plugins.registerPlugin",r,e);const{render:t,scope:i}=r;if(!(0,n.isFunction)(t))return console.error('The "render" property must be specified and must be a valid function.'),null;if(i){if("string"!=typeof i)return console.error("Plugin scope must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(i))return console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'),null}return f[e]={name:e,icon:m,...r},(0,u.doAction)("plugins.pluginRegistered",r,e),r}function h(e){if(!f[e])return void console.error('Plugin "'+e+'" is not registered.');const n=f[e];return delete f[e],(0,u.doAction)("plugins.pluginUnregistered",n,e),n}function w(e){return f[e]}function P(e){return Object.values(f).filter((n=>n.scope===e))}class x extends e.Component{constructor(){super(...arguments),this.setPlugins=this.setPlugins.bind(this),this.memoizedContext=o()(((e,n)=>({name:e,icon:n}))),this.state=this.getCurrentPluginsState()}getCurrentPluginsState(){return{plugins:(0,n.map)(P(this.props.scope),(e=>{let{icon:n,name:r,render:t}=e;return{Plugin:t,context:this.memoizedContext(r,n)}}))}}componentDidMount(){(0,u.addAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered",this.setPlugins),(0,u.addAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered",this.setPlugins)}componentWillUnmount(){(0,u.removeAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered"),(0,u.removeAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered")}setPlugins(){this.setState(this.getCurrentPluginsState)}render(){return(0,e.createElement)("div",{style:{display:"none"}},(0,n.map)(this.state.plugins,(n=>{let{context:r,Plugin:t}=n;return(0,e.createElement)(c,{key:r.name,value:r},(0,e.createElement)(g,{name:r.name,onError:this.props.onError},(0,e.createElement)(t,null)))})))}}var y=x}(),(window.wp=window.wp||{}).plugins=t}();
!function(){var e={9756:function(e){e.exports=function(e,n){var r,t,i=0;function o(){var o,u,s=r,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(u=0;u<l;u++)if(s.args[u]!==arguments[u]){s=s.next;continue e}return s!==r&&(s===t&&(t=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(o=new Array(l),u=0;u<l;u++)o[u]=arguments[u];return s={args:o,val:e.apply(null,o)},r?(r.prev=s,s.next=r):t=s,i===n.maxSize?(t=t.prev).next=null:i++,r=s,s.val}return n=n||{},o.clear=function(){r=null,t=null,i=0},o}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};!function(){"use strict";r.r(t),r.d(t,{PluginArea:function(){return y},getPlugin:function(){return w},getPlugins:function(){return P},registerPlugin:function(){return v},unregisterPlugin:function(){return h},withPluginContext:function(){return p}});var e=window.wp.element,n=window.lodash,i=r(9756),o=r.n(i),u=window.wp.hooks;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},s.apply(this,arguments)}var l=window.wp.compose;const{Consumer:a,Provider:c}=(0,e.createContext)({name:null,icon:null}),p=n=>(0,l.createHigherOrderComponent)((r=>t=>(0,e.createElement)(a,null,(i=>(0,e.createElement)(r,s({},t,n(i,t)))))),"withPluginContext");class g extends e.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){const{name:n,onError:r}=this.props;r&&r(n,e)}render(){return this.state.hasError?null:this.props.children}}var d=window.wp.primitives;var m=(0,e.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(d.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));const f={};function v(e,r){if("object"!=typeof r)return console.error("No settings object provided!"),null;if("string"!=typeof e)return console.error("Plugin name must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(e))return console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'),null;f[e]&&console.error(`Plugin "${e}" is already registered.`),r=(0,u.applyFilters)("plugins.registerPlugin",r,e);const{render:t,scope:i}=r;if(!(0,n.isFunction)(t))return console.error('The "render" property must be specified and must be a valid function.'),null;if(i){if("string"!=typeof i)return console.error("Plugin scope must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(i))return console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'),null}return f[e]={name:e,icon:m,...r},(0,u.doAction)("plugins.pluginRegistered",r,e),r}function h(e){if(!f[e])return void console.error('Plugin "'+e+'" is not registered.');const n=f[e];return delete f[e],(0,u.doAction)("plugins.pluginUnregistered",n,e),n}function w(e){return f[e]}function P(e){return Object.values(f).filter((n=>n.scope===e))}class x extends e.Component{constructor(){super(...arguments),this.setPlugins=this.setPlugins.bind(this),this.memoizedContext=o()(((e,n)=>({name:e,icon:n}))),this.state=this.getCurrentPluginsState()}getCurrentPluginsState(){return{plugins:(0,n.map)(P(this.props.scope),(e=>{let{icon:n,name:r,render:t}=e;return{Plugin:t,context:this.memoizedContext(r,n)}}))}}componentDidMount(){(0,u.addAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered",this.setPlugins),(0,u.addAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered",this.setPlugins)}componentWillUnmount(){(0,u.removeAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered"),(0,u.removeAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered")}setPlugins(){this.setState(this.getCurrentPluginsState)}render(){return(0,e.createElement)("div",{style:{display:"none"}},(0,n.map)(this.state.plugins,(n=>{let{context:r,Plugin:t}=n;return(0,e.createElement)(c,{key:r.name,value:r},(0,e.createElement)(g,{name:r.name,onError:this.props.onError},(0,e.createElement)(t,null)))})))}}var y=x}(),(window.wp=window.wp||{}).plugins=t}();

View File

@ -43,7 +43,7 @@ __webpack_require__.d(__webpack_exports__, {
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -56,7 +56,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","element"]

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.d(t,{default:function(){return b}});var n=window.wp.element,o=window.wp.data,l=window.wp.deprecated,c=e.n(l),s=window.lodash,u=window.wp.compose,a=window.wp.i18n,i=window.wp.apiFetch,d=e.n(i),w=window.wp.url,p=window.wp.components,f=window.wp.blocks;function m(e){let{className:t}=e;return(0,n.createElement)(p.Placeholder,{className:t},(0,a.__)("Block rendered as empty."))}function v(e){let{response:t,className:r}=e;const o=(0,a.sprintf)((0,a.__)("Error loading block: %s"),t.errorMsg);return(0,n.createElement)(p.Placeholder,{className:r},o)}function h(e){let{children:t,showLoader:r}=e;return(0,n.createElement)("div",{style:{position:"relative"}},r&&(0,n.createElement)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"}},(0,n.createElement)(p.Spinner,null)),(0,n.createElement)("div",{style:{opacity:r?"0.3":1}},t))}function E(e){const{attributes:t,block:o,className:l,httpMethod:c="GET",urlQueryArgs:a,EmptyResponsePlaceholder:i=m,ErrorResponsePlaceholder:p=v,LoadingResponsePlaceholder:E=h}=e,y=(0,n.useRef)(!0),[g,b]=(0,n.useState)(!1),P=(0,n.useRef)(),[S,R]=(0,n.useState)(null),T=(0,u.usePrevious)(e),[_,O]=(0,n.useState)(!1);function M(){if(!y.current)return;O(!0);const e=t&&(0,f.__experimentalSanitizeBlockAttributes)(o,t),r="POST"===c,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,w.addQueryArgs)(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==t?{attributes:t}:{},...r})}(o,r?null:null!=e?e:null,a),l=r?{attributes:null!=e?e:null}:null,s=P.current=d()({path:n,data:l,method:r?"POST":"GET"}).then((e=>{y.current&&s===P.current&&e&&R(e.rendered)})).catch((e=>{y.current&&s===P.current&&R({error:!0,errorMsg:e.message})})).finally((()=>{y.current&&s===P.current&&O(!1)}));return s}const N=(0,u.useDebounce)(M,500);(0,n.useEffect)((()=>()=>{y.current=!1}),[]),(0,n.useEffect)((()=>{void 0===T?M():(0,s.isEqual)(T,e)||N()})),(0,n.useEffect)((()=>{if(!_)return;const e=setTimeout((()=>{b(!0)}),1e3);return()=>clearTimeout(e)}),[_]);const k=!!S,L=""===S,A=null==S?void 0:S.error;return _?(0,n.createElement)(E,r({},e,{showLoader:g}),k&&(0,n.createElement)(n.RawHTML,{className:l},S)):L||!k?(0,n.createElement)(i,e):A?(0,n.createElement)(p,r({response:S},e)):(0,n.createElement)(n.RawHTML,{className:l},S)}const y={},g=(0,o.withSelect)((e=>{const t=e("core/editor");if(t){const e=t.getCurrentPostId();if(e&&"number"==typeof e)return{currentPostId:e}}return y}))((e=>{let{urlQueryArgs:t=y,currentPostId:o,...l}=e;const c=(0,n.useMemo)((()=>o?{post_id:o,...t}:t),[o,t]);return(0,n.createElement)(E,r({urlQueryArgs:c},l))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=(0,n.forwardRef)(((e,t)=>(c()("wp.components.ServerSideRender",{version:"6.2",since:"5.3",alternative:"wp.serverSideRender"}),(0,n.createElement)(g,r({},e,{ref:t}))))));var b=g;(window.wp=window.wp||{}).serverSideRender=t.default}();
!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.d(t,{default:function(){return y}});var n=window.wp.element,o=window.wp.data,l=window.wp.deprecated,s=e.n(l),c=window.lodash,u=window.wp.compose,a=window.wp.i18n,i=window.wp.apiFetch,d=e.n(i),w=window.wp.url,p=window.wp.components,f=window.wp.blocks;function m(e){let{className:t}=e;return(0,n.createElement)(p.Placeholder,{className:t},(0,a.__)("Block rendered as empty."))}function v(e){let{response:t,className:r}=e;const o=(0,a.sprintf)((0,a.__)("Error loading block: %s"),t.errorMsg);return(0,n.createElement)(p.Placeholder,{className:r},o)}function h(e){let{children:t,showLoader:r}=e;return(0,n.createElement)("div",{style:{position:"relative"}},r&&(0,n.createElement)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"}},(0,n.createElement)(p.Spinner,null)),(0,n.createElement)("div",{style:{opacity:r?"0.3":1}},t))}function E(e){const{attributes:t,block:o,className:l,httpMethod:s="GET",urlQueryArgs:a,EmptyResponsePlaceholder:i=m,ErrorResponsePlaceholder:p=v,LoadingResponsePlaceholder:E=h}=e,b=(0,n.useRef)(!0),[g,y]=(0,n.useState)(!1),P=(0,n.useRef)(),[S,R]=(0,n.useState)(null),O=(0,u.usePrevious)(e),[T,_]=(0,n.useState)(!1);function M(){if(!b.current)return;_(!0);const e=t&&(0,f.__experimentalSanitizeBlockAttributes)(o,t),r="POST"===s,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,w.addQueryArgs)(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==t?{attributes:t}:{},...r})}(o,r?null:null!=e?e:null,a),l=r?{attributes:null!=e?e:null}:null,c=P.current=d()({path:n,data:l,method:r?"POST":"GET"}).then((e=>{b.current&&c===P.current&&e&&R(e.rendered)})).catch((e=>{b.current&&c===P.current&&R({error:!0,errorMsg:e.message})})).finally((()=>{b.current&&c===P.current&&_(!1)}));return c}const N=(0,u.useDebounce)(M,500);(0,n.useEffect)((()=>()=>{b.current=!1}),[]),(0,n.useEffect)((()=>{void 0===O?M():(0,c.isEqual)(O,e)||N()})),(0,n.useEffect)((()=>{if(!T)return;const e=setTimeout((()=>{y(!0)}),1e3);return()=>clearTimeout(e)}),[T]);const k=!!S,L=""===S,j=null==S?void 0:S.error;return T?(0,n.createElement)(E,r({},e,{showLoader:g}),k&&(0,n.createElement)(n.RawHTML,{className:l},S)):L||!k?(0,n.createElement)(i,e):j?(0,n.createElement)(p,r({response:S},e)):(0,n.createElement)(n.RawHTML,{className:l},S)}const b={},g=(0,o.withSelect)((e=>{const t=e("core/editor");if(t){const e=t.getCurrentPostId();if(e&&"number"==typeof e)return{currentPostId:e}}return b}))((e=>{let{urlQueryArgs:t=b,currentPostId:o,...l}=e;const s=(0,n.useMemo)((()=>o?{post_id:o,...t}:t),[o,t]);return(0,n.createElement)(E,r({urlQueryArgs:s},l))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=(0,n.forwardRef)(((e,t)=>(s()("wp.components.ServerSideRender",{version:"6.2",since:"5.3",alternative:"wp.serverSideRender"}),(0,n.createElement)(g,r({},e,{ref:t}))))));var y=g;(window.wp=window.wp||{}).serverSideRender=t.default}();

View File

@ -215,7 +215,7 @@ const addDimensionsEventListener = (breakpoints, operators) => {
var external_wp_compose_namespaceObject = window["wp"]["compose"];
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@ -228,7 +228,6 @@ function _extends() {
return target;
};
return _extends.apply(this, arguments);
}
;// CONCATENATED MODULE: external ["wp","element"]

View File

@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ifViewportMatches:function(){return f},store:function(){return d},withViewportMatch:function(){return h}});var r={};e.r(r),e.d(r,{setIsMatching:function(){return c}});var n={};e.r(n),e.d(n,{isViewportMatch:function(){return u}});var o=window.lodash,i=window.wp.data;var a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_IS_MATCHING"===t.type?t.values:e};function c(e){return{type:"SET_IS_MATCHING",values:e}}function u(e,t){return-1===t.indexOf(" ")&&(t=">= "+t),!!e[t]}const d=(0,i.createReduxStore)("core/viewport",{reducer:a,actions:r,selectors:n});(0,i.register)(d);var s=(e,t)=>{const r=(0,o.debounce)((()=>{const e=(0,o.mapValues)(n,(e=>e.matches));(0,i.dispatch)(d).setIsMatching(e)}),{leading:!0}),n=(0,o.reduce)(e,((e,n,i)=>((0,o.forEach)(t,((t,o)=>{const a=window.matchMedia(`(${t}: ${n}px)`);a.addListener(r);const c=[o,i].join(" ");e[c]=a})),e)),{});window.addEventListener("orientationchange",r),r(),r.flush()},p=window.wp.compose;function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}var l=window.wp.element;var h=e=>(0,p.createHigherOrderComponent)((t=>(0,p.pure)((r=>{const n=(0,o.mapValues)(e,(e=>{let[t,r]=e.split(" ");return void 0===r&&(r=t,t=">="),(0,p.useViewportMatch)(r,t)}));return(0,l.createElement)(t,w({},r,n))}))),"withViewportMatch");var f=e=>(0,p.createHigherOrderComponent)((0,p.compose)([h({isViewportMatch:e}),(0,p.ifCondition)((e=>e.isViewportMatch))]),"ifViewportMatches");s({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"}),(window.wp=window.wp||{}).viewport=t}();
!function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ifViewportMatches:function(){return f},store:function(){return s},withViewportMatch:function(){return h}});var r={};e.r(r),e.d(r,{setIsMatching:function(){return c}});var n={};e.r(n),e.d(n,{isViewportMatch:function(){return u}});var o=window.lodash,i=window.wp.data;var a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_IS_MATCHING"===t.type?t.values:e};function c(e){return{type:"SET_IS_MATCHING",values:e}}function u(e,t){return-1===t.indexOf(" ")&&(t=">= "+t),!!e[t]}const s=(0,i.createReduxStore)("core/viewport",{reducer:a,actions:r,selectors:n});(0,i.register)(s);var d=(e,t)=>{const r=(0,o.debounce)((()=>{const e=(0,o.mapValues)(n,(e=>e.matches));(0,i.dispatch)(s).setIsMatching(e)}),{leading:!0}),n=(0,o.reduce)(e,((e,n,i)=>((0,o.forEach)(t,((t,o)=>{const a=window.matchMedia(`(${t}: ${n}px)`);a.addListener(r);const c=[o,i].join(" ");e[c]=a})),e)),{});window.addEventListener("orientationchange",r),r(),r.flush()},p=window.wp.compose;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}var l=window.wp.element;var h=e=>(0,p.createHigherOrderComponent)((t=>(0,p.pure)((r=>{const n=(0,o.mapValues)(e,(e=>{let[t,r]=e.split(" ");return void 0===r&&(r=t,t=">="),(0,p.useViewportMatch)(r,t)}));return(0,l.createElement)(t,w({},r,n))}))),"withViewportMatch");var f=e=>(0,p.createHigherOrderComponent)((0,p.compose)([h({isViewportMatch:e}),(0,p.ifCondition)((e=>e.isViewportMatch))]),"ifViewportMatches");d({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"}),(window.wp=window.wp||{}).viewport=t}();

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0.1-alpha-53632';
$wp_version = '6.0.1-alpha-53645';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.