Editor: update npm packages for 6.4.2.
Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility. Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz. See #59828. Built from https://develop.svn.wordpress.org/trunk@57109 git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f3a843e952
commit
078ed1a3a6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -44,11 +44,15 @@ function render_block_core_query( $attributes, $content, $block ) {
|
||||||
$block->block_type->supports['interactivity'] = true;
|
$block->block_type->supports['interactivity'] = true;
|
||||||
|
|
||||||
// Add a div to announce messages using `aria-live`.
|
// Add a div to announce messages using `aria-live`.
|
||||||
$last_div_position = strripos( $content, '</div>' );
|
$html_tag = 'div';
|
||||||
|
if ( ! empty( $attributes['tagName'] ) ) {
|
||||||
|
$html_tag = esc_attr( $attributes['tagName'] );
|
||||||
|
}
|
||||||
|
$last_tag_position = strripos( $content, '</' . $html_tag . '>' );
|
||||||
$content = substr_replace(
|
$content = substr_replace(
|
||||||
$content,
|
$content,
|
||||||
'<div
|
'<div
|
||||||
class="wp-block-query__enhanced-pagination-navigation-announce screen-reader-text"
|
class="screen-reader-text"
|
||||||
aria-live="polite"
|
aria-live="polite"
|
||||||
data-wp-text="context.core.query.message"
|
data-wp-text="context.core.query.message"
|
||||||
></div>
|
></div>
|
||||||
|
@ -57,7 +61,7 @@ function render_block_core_query( $attributes, $content, $block ) {
|
||||||
data-wp-class--start-animation="selectors.core.query.startAnimation"
|
data-wp-class--start-animation="selectors.core.query.startAnimation"
|
||||||
data-wp-class--finish-animation="selectors.core.query.finishAnimation"
|
data-wp-class--finish-animation="selectors.core.query.finishAnimation"
|
||||||
></div>',
|
></div>',
|
||||||
$last_div_position,
|
$last_tag_position,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,3 +45,12 @@
|
||||||
margin:0;
|
margin:0;
|
||||||
min-height:40px;
|
min-height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.patterns-rename-pattern-category-modal__validation-message{
|
||||||
|
color:#cc1818;
|
||||||
|
}
|
||||||
|
@media (min-width:782px){
|
||||||
|
.patterns-rename-pattern-category-modal__validation-message{
|
||||||
|
width:320px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1 @@
|
||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}
|
|
@ -45,3 +45,12 @@
|
||||||
margin:0;
|
margin:0;
|
||||||
min-height:40px;
|
min-height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.patterns-rename-pattern-category-modal__validation-message{
|
||||||
|
color:#cc1818;
|
||||||
|
}
|
||||||
|
@media (min-width:782px){
|
||||||
|
.patterns-rename-pattern-category-modal__validation-message{
|
||||||
|
width:320px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1 @@
|
||||||
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}
|
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}
|
|
@ -28435,14 +28435,14 @@ function BlockPatternsSyncFilter({
|
||||||
const shouldDisableNonUserSources = getShouldDisableNonUserSources(category);
|
const shouldDisableNonUserSources = getShouldDisableNonUserSources(category);
|
||||||
const patternSyncMenuOptions = (0,external_wp_element_namespaceObject.useMemo)(() => [{
|
const patternSyncMenuOptions = (0,external_wp_element_namespaceObject.useMemo)(() => [{
|
||||||
value: SYNC_TYPES.all,
|
value: SYNC_TYPES.all,
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('All')
|
label: (0,external_wp_i18n_namespaceObject._x)('All', 'Option that shows all patterns')
|
||||||
}, {
|
}, {
|
||||||
value: SYNC_TYPES.full,
|
value: SYNC_TYPES.full,
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
|
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that shows all synchronized patterns'),
|
||||||
disabled: shouldDisableSyncFilter
|
disabled: shouldDisableSyncFilter
|
||||||
}, {
|
}, {
|
||||||
value: SYNC_TYPES.unsynced,
|
value: SYNC_TYPES.unsynced,
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Not synced'),
|
label: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Option that shows all patterns that are not synchronized'),
|
||||||
disabled: shouldDisableSyncFilter
|
disabled: shouldDisableSyncFilter
|
||||||
}], [shouldDisableSyncFilter]);
|
}], [shouldDisableSyncFilter]);
|
||||||
const patternSourceMenuOptions = (0,external_wp_element_namespaceObject.useMemo)(() => [{
|
const patternSourceMenuOptions = (0,external_wp_element_namespaceObject.useMemo)(() => [{
|
||||||
|
@ -35204,6 +35204,7 @@ const MediaReplaceFlow = ({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -35316,6 +35317,7 @@ function BackgroundImagePanelItem(props) {
|
||||||
title,
|
title,
|
||||||
url
|
url
|
||||||
} = attributes.style?.background?.backgroundImage || {};
|
} = attributes.style?.background?.backgroundImage || {};
|
||||||
|
const replaceContainerRef = (0,external_wp_element_namespaceObject.useRef)();
|
||||||
const {
|
const {
|
||||||
mediaUpload
|
mediaUpload
|
||||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||||
|
@ -35394,16 +35396,18 @@ function BackgroundImagePanelItem(props) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
const hasValue = hasBackgroundImageValue(props);
|
||||||
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
|
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
|
||||||
className: "single-column",
|
className: "single-column",
|
||||||
hasValue: () => hasBackgroundImageValue(props),
|
hasValue: () => hasValue,
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Background image'),
|
label: (0,external_wp_i18n_namespaceObject.__)('Background image'),
|
||||||
onDeselect: () => resetBackgroundImage(props),
|
onDeselect: () => resetBackgroundImage(props),
|
||||||
isShownByDefault: true,
|
isShownByDefault: true,
|
||||||
resetAllFilter: resetAllFilter,
|
resetAllFilter: resetAllFilter,
|
||||||
panelId: clientId
|
panelId: clientId
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)("div", {
|
}, (0,external_wp_element_namespaceObject.createElement)("div", {
|
||||||
className: "block-editor-hooks__background__inspector-media-replace-container"
|
className: "block-editor-hooks__background__inspector-media-replace-container",
|
||||||
|
ref: replaceContainerRef
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(media_replace_flow, {
|
}, (0,external_wp_element_namespaceObject.createElement)(media_replace_flow, {
|
||||||
mediaId: id,
|
mediaId: id,
|
||||||
mediaURL: url,
|
mediaURL: url,
|
||||||
|
@ -35416,8 +35420,16 @@ function BackgroundImagePanelItem(props) {
|
||||||
url: url
|
url: url
|
||||||
}),
|
}),
|
||||||
variant: "secondary"
|
variant: "secondary"
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
}, hasValue && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||||
onClick: () => resetBackgroundImage(props)
|
onClick: () => {
|
||||||
|
const [toggleButton] = external_wp_dom_namespaceObject.focus.tabbable.find(replaceContainerRef.current);
|
||||||
|
// Focus the toggle button and close the dropdown menu.
|
||||||
|
// This ensures similar behaviour as to selecting an image, where the dropdown is
|
||||||
|
// closed and focus is redirected to the dropdown toggle button.
|
||||||
|
toggleButton?.focus();
|
||||||
|
toggleButton?.click();
|
||||||
|
resetBackgroundImage(props);
|
||||||
|
}
|
||||||
}, (0,external_wp_i18n_namespaceObject.__)('Reset '))), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DropZone, {
|
}, (0,external_wp_i18n_namespaceObject.__)('Reset '))), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DropZone, {
|
||||||
onFilesDrop: onFilesDrop,
|
onFilesDrop: onFilesDrop,
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Drop to upload')
|
label: (0,external_wp_i18n_namespaceObject.__)('Drop to upload')
|
||||||
|
@ -41782,11 +41794,10 @@ function useMultiOriginColorPresets(settings, {
|
||||||
return (0,external_wp_element_namespaceObject.useMemo)(() => [...userPresets, ...themePresets, ...(disableDefault ? filters_panel_EMPTY_ARRAY : defaultPresets)], [disableDefault, userPresets, themePresets, defaultPresets]);
|
return (0,external_wp_element_namespaceObject.useMemo)(() => [...userPresets, ...themePresets, ...(disableDefault ? filters_panel_EMPTY_ARRAY : defaultPresets)], [disableDefault, userPresets, themePresets, defaultPresets]);
|
||||||
}
|
}
|
||||||
function useHasFiltersPanel(settings) {
|
function useHasFiltersPanel(settings) {
|
||||||
const hasDuotone = useHasDuotoneControl(settings);
|
return useHasDuotoneControl(settings);
|
||||||
return hasDuotone;
|
|
||||||
}
|
}
|
||||||
function useHasDuotoneControl(settings) {
|
function useHasDuotoneControl(settings) {
|
||||||
return settings.color.customDuotone || settings.color.defaultDuotone;
|
return settings.color.customDuotone || settings.color.defaultDuotone || settings.color.duotone.length > 0;
|
||||||
}
|
}
|
||||||
function FiltersToolsPanel({
|
function FiltersToolsPanel({
|
||||||
resetAllFilter,
|
resetAllFilter,
|
||||||
|
@ -41867,8 +41878,6 @@ function FiltersPanel({
|
||||||
};
|
};
|
||||||
const hasDuotone = () => !!value?.filter?.duotone;
|
const hasDuotone = () => !!value?.filter?.duotone;
|
||||||
const resetDuotone = () => setDuotone(undefined);
|
const resetDuotone = () => setDuotone(undefined);
|
||||||
const disableCustomColors = !settings?.color?.custom;
|
|
||||||
const disableCustomDuotone = !settings?.color?.customDuotone || colorPalette?.length === 0 && disableCustomColors;
|
|
||||||
const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(previousValue => {
|
const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(previousValue => {
|
||||||
return {
|
return {
|
||||||
...previousValue,
|
...previousValue,
|
||||||
|
@ -41917,9 +41926,11 @@ function FiltersPanel({
|
||||||
paddingSize: "medium"
|
paddingSize: "medium"
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, null, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Create a two-tone color effect without losing your original image.')), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DuotonePicker, {
|
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, null, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Create a two-tone color effect without losing your original image.')), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DuotonePicker, {
|
||||||
colorPalette: colorPalette,
|
colorPalette: colorPalette,
|
||||||
duotonePalette: duotonePalette,
|
duotonePalette: duotonePalette
|
||||||
disableCustomColors: disableCustomColors,
|
// TODO: Re-enable both when custom colors are supported for block-level styles.
|
||||||
disableCustomDuotone: disableCustomDuotone,
|
,
|
||||||
|
disableCustomColors: true,
|
||||||
|
disableCustomDuotone: true,
|
||||||
value: duotone,
|
value: duotone,
|
||||||
onChange: setDuotone
|
onChange: setDuotone
|
||||||
})))
|
})))
|
||||||
|
@ -44419,7 +44430,7 @@ const withBlockRenameControl = (0,external_wp_compose_namespaceObject.createHigh
|
||||||
setAttributes,
|
setAttributes,
|
||||||
isSelected
|
isSelected
|
||||||
} = props;
|
} = props;
|
||||||
const supportsBlockNaming = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'renaming', true);
|
const supportsBlockNaming = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, '__experimentalMetadata', false);
|
||||||
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, isSelected && supportsBlockNaming && (0,external_wp_element_namespaceObject.createElement)(inspector_controls, {
|
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, isSelected && supportsBlockNaming && (0,external_wp_element_namespaceObject.createElement)(inspector_controls, {
|
||||||
group: "advanced"
|
group: "advanced"
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
|
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -23670,6 +23670,14 @@ const deprecated_v8 = {
|
||||||
height,
|
height,
|
||||||
...attributes
|
...attributes
|
||||||
}) {
|
}) {
|
||||||
|
// We need to perform a check here because in cases
|
||||||
|
// where attributes are added dynamically to blocks,
|
||||||
|
// block invalidation overrides the isEligible() method
|
||||||
|
// and forces the migration to run, so it's not guaranteed
|
||||||
|
// that `behaviors` or `behaviors.lightbox` will be defined.
|
||||||
|
if (!attributes.behaviors?.lightbox) {
|
||||||
|
return attributes;
|
||||||
|
}
|
||||||
const {
|
const {
|
||||||
behaviors: {
|
behaviors: {
|
||||||
lightbox: {
|
lightbox: {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -34463,6 +34463,8 @@ var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
|
||||||
var external_wp_richText_namespaceObject = window["wp"]["richText"];
|
var external_wp_richText_namespaceObject = window["wp"]["richText"];
|
||||||
;// CONCATENATED MODULE: external ["wp","a11y"]
|
;// CONCATENATED MODULE: external ["wp","a11y"]
|
||||||
var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
|
||||||
|
;// CONCATENATED MODULE: external ["wp","keycodes"]
|
||||||
|
var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/strings.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/strings.js
|
||||||
/**
|
/**
|
||||||
* External dependencies
|
* External dependencies
|
||||||
|
@ -37233,11 +37235,40 @@ function useOnClickOutside(ref, handler) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
const getNodeText = node => {
|
||||||
|
if (node === null) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
switch (typeof node) {
|
||||||
|
case 'string':
|
||||||
|
case 'number':
|
||||||
|
return node.toString();
|
||||||
|
break;
|
||||||
|
case 'boolean':
|
||||||
|
return '';
|
||||||
|
break;
|
||||||
|
case 'object':
|
||||||
|
{
|
||||||
|
if (node instanceof Array) {
|
||||||
|
return node.map(getNodeText).join('');
|
||||||
|
}
|
||||||
|
if ('props' in node) {
|
||||||
|
return getNodeText(node.props.children);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
};
|
||||||
const EMPTY_FILTERED_OPTIONS = [];
|
const EMPTY_FILTERED_OPTIONS = [];
|
||||||
function useAutocomplete({
|
function useAutocomplete({
|
||||||
record,
|
record,
|
||||||
|
@ -37330,11 +37361,24 @@ function useAutocomplete({
|
||||||
}
|
}
|
||||||
switch (event.key) {
|
switch (event.key) {
|
||||||
case 'ArrowUp':
|
case 'ArrowUp':
|
||||||
setSelectedIndex((selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1);
|
{
|
||||||
break;
|
const newIndex = (selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1;
|
||||||
|
setSelectedIndex(newIndex);
|
||||||
|
// See the related PR as to why this is necessary: https://github.com/WordPress/gutenberg/pull/54902.
|
||||||
|
if ((0,external_wp_keycodes_namespaceObject.isAppleOS)()) {
|
||||||
|
(0,external_wp_a11y_namespaceObject.speak)(getNodeText(filteredOptions[newIndex].label), 'assertive');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 'ArrowDown':
|
case 'ArrowDown':
|
||||||
setSelectedIndex((selectedIndex + 1) % filteredOptions.length);
|
{
|
||||||
break;
|
const newIndex = (selectedIndex + 1) % filteredOptions.length;
|
||||||
|
setSelectedIndex(newIndex);
|
||||||
|
if ((0,external_wp_keycodes_namespaceObject.isAppleOS)()) {
|
||||||
|
(0,external_wp_a11y_namespaceObject.speak)(getNodeText(filteredOptions[newIndex].label), 'assertive');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 'Escape':
|
case 'Escape':
|
||||||
setAutocompleter(null);
|
setAutocompleter(null);
|
||||||
setAutocompleterUI(null);
|
setAutocompleterUI(null);
|
||||||
|
@ -74890,8 +74934,6 @@ const UnconnectedToolsPanelItem = (props, forwardedRef) => {
|
||||||
const component_ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');
|
const component_ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');
|
||||||
/* harmony default export */ var tools_panel_item_component = (component_ToolsPanelItem);
|
/* harmony default export */ var tools_panel_item_component = (component_ToolsPanelItem);
|
||||||
|
|
||||||
;// CONCATENATED MODULE: external ["wp","keycodes"]
|
|
||||||
var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-context.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-context.js
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -21402,14 +21402,7 @@ function ScreenBlock({
|
||||||
inheritedValue: inheritedStyleWithLayout,
|
inheritedValue: inheritedStyleWithLayout,
|
||||||
value: styleWithLayout,
|
value: styleWithLayout,
|
||||||
onChange: setStyle,
|
onChange: setStyle,
|
||||||
settings: {
|
settings: settings,
|
||||||
...settings,
|
|
||||||
color: {
|
|
||||||
...settings.color,
|
|
||||||
customDuotone: false //TO FIX: Custom duotone only works on the block level right now
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
includeLayoutControls: true
|
includeLayoutControls: true
|
||||||
}), hasImageSettingsPanel && (0,external_wp_element_namespaceObject.createElement)(ImageSettingsPanel, {
|
}), hasImageSettingsPanel && (0,external_wp_element_namespaceObject.createElement)(ImageSettingsPanel, {
|
||||||
onChange: onChangeLightbox,
|
onChange: onChangeLightbox,
|
||||||
|
@ -35975,7 +35968,6 @@ function DuplicateMenuItem({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WordPress dependencies
|
* WordPress dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -35997,6 +35989,27 @@ function DuplicateMenuItem({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Downloads a file.
|
||||||
|
* Also used in packages/list-reusable-blocks/src/utils/file.js.
|
||||||
|
*
|
||||||
|
* @param {string} fileName File Name.
|
||||||
|
* @param {string} content File Content.
|
||||||
|
* @param {string} contentType File mime type.
|
||||||
|
*/
|
||||||
|
function grid_item_download(fileName, content, contentType) {
|
||||||
|
const file = new window.Blob([content], {
|
||||||
|
type: contentType
|
||||||
|
});
|
||||||
|
const a = document.createElement('a');
|
||||||
|
a.href = URL.createObjectURL(file);
|
||||||
|
a.download = fileName;
|
||||||
|
a.style.display = 'none';
|
||||||
|
document.body.appendChild(a);
|
||||||
|
a.click();
|
||||||
|
document.body.removeChild(a);
|
||||||
|
}
|
||||||
const {
|
const {
|
||||||
useGlobalStyle: grid_item_useGlobalStyle
|
useGlobalStyle: grid_item_useGlobalStyle
|
||||||
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
|
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
|
||||||
|
@ -36066,7 +36079,7 @@ function GridItem({
|
||||||
content: item.patternBlock.content.raw,
|
content: item.patternBlock.content.raw,
|
||||||
syncStatus: item.patternBlock.wp_pattern_sync_status
|
syncStatus: item.patternBlock.wp_pattern_sync_status
|
||||||
};
|
};
|
||||||
return download_default()(JSON.stringify(json, null, 2), `${paramCase(item.title || item.name)}.json`, 'application/json');
|
return grid_item_download(`${paramCase(item.title || item.name)}.json`, JSON.stringify(json, null, 2), 'application/json');
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only custom patterns or custom template parts can be renamed or deleted.
|
// Only custom patterns or custom template parts can be renamed or deleted.
|
||||||
|
@ -36306,9 +36319,9 @@ const {
|
||||||
useHistory: patterns_list_useHistory
|
useHistory: patterns_list_useHistory
|
||||||
} = unlock(external_wp_router_namespaceObject.privateApis);
|
} = unlock(external_wp_router_namespaceObject.privateApis);
|
||||||
const SYNC_FILTERS = {
|
const SYNC_FILTERS = {
|
||||||
all: (0,external_wp_i18n_namespaceObject.__)('All'),
|
all: (0,external_wp_i18n_namespaceObject._x)('All', 'Option that shows all patterns'),
|
||||||
[PATTERN_SYNC_TYPES.full]: (0,external_wp_i18n_namespaceObject.__)('Synced'),
|
[PATTERN_SYNC_TYPES.full]: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that shows all synchronized patterns'),
|
||||||
[PATTERN_SYNC_TYPES.unsynced]: (0,external_wp_i18n_namespaceObject.__)('Not synced')
|
[PATTERN_SYNC_TYPES.unsynced]: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Option that shows all patterns that are not synchronized')
|
||||||
};
|
};
|
||||||
const SYNC_DESCRIPTIONS = {
|
const SYNC_DESCRIPTIONS = {
|
||||||
all: '',
|
all: '',
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11049,7 +11049,7 @@ function PostSyncStatusModal() {
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
|
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
|
||||||
spacing: "5"
|
spacing: "5"
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(ReusableBlocksRenameHint, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
|
}, (0,external_wp_element_namespaceObject.createElement)(ReusableBlocksRenameHint, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
|
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
|
||||||
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
|
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
|
||||||
checked: !syncType,
|
checked: !syncType,
|
||||||
onChange: () => {
|
onChange: () => {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -22,14 +22,14 @@ var preact_module_n,
|
||||||
preact_module_t,
|
preact_module_t,
|
||||||
i,
|
i,
|
||||||
preact_module_o,
|
preact_module_o,
|
||||||
r,
|
preact_module_r,
|
||||||
preact_module_f,
|
preact_module_f,
|
||||||
preact_module_e,
|
preact_module_e,
|
||||||
preact_module_c = {},
|
preact_module_c = {},
|
||||||
s = [],
|
s = [],
|
||||||
a = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
|
a = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
|
||||||
v = Array.isArray;
|
h = Array.isArray;
|
||||||
function h(n, l) {
|
function v(n, l) {
|
||||||
for (var u in l) n[u] = l[u];
|
for (var u in l) n[u] = l[u];
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
@ -58,10 +58,10 @@ function d(n, t, i, o, r) {
|
||||||
__e: null,
|
__e: null,
|
||||||
__d: void 0,
|
__d: void 0,
|
||||||
__c: null,
|
__c: null,
|
||||||
__h: null,
|
|
||||||
constructor: void 0,
|
constructor: void 0,
|
||||||
__v: null == r ? ++preact_module_u : r,
|
__v: null == r ? ++preact_module_u : r,
|
||||||
__i: -1
|
__i: -1,
|
||||||
|
__u: 0
|
||||||
};
|
};
|
||||||
return null == r && null != preact_module_l.vnode && preact_module_l.vnode(f), f;
|
return null == r && null != preact_module_l.vnode && preact_module_l.vnode(f), f;
|
||||||
}
|
}
|
||||||
|
@ -70,102 +70,104 @@ function _() {
|
||||||
current: null
|
current: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
function k(n) {
|
function g(n) {
|
||||||
return n.children;
|
return n.children;
|
||||||
}
|
}
|
||||||
function m(n, l) {
|
function b(n, l) {
|
||||||
this.props = n, this.context = l;
|
this.props = n, this.context = l;
|
||||||
}
|
}
|
||||||
function b(n, l) {
|
function m(n, l) {
|
||||||
if (null == l) return n.__ ? b(n.__, n.__i + 1) : null;
|
if (null == l) return n.__ ? m(n.__, n.__i + 1) : null;
|
||||||
for (var u; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
|
for (var u; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
|
||||||
return "function" == typeof n.type ? b(n) : null;
|
return "function" == typeof n.type ? m(n) : null;
|
||||||
}
|
}
|
||||||
function g(n) {
|
function k(n) {
|
||||||
var l, u;
|
var l, u;
|
||||||
if (null != (n = n.__) && null != n.__c) {
|
if (null != (n = n.__) && null != n.__c) {
|
||||||
for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) {
|
for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) {
|
||||||
n.__e = n.__c.base = u.__e;
|
n.__e = n.__c.base = u.__e;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return g(n);
|
return k(n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function w(n) {
|
function w(n) {
|
||||||
(!n.__d && (n.__d = !0) && i.push(n) && !x.__r++ || preact_module_o !== preact_module_l.debounceRendering) && ((preact_module_o = preact_module_l.debounceRendering) || r)(x);
|
(!n.__d && (n.__d = !0) && i.push(n) && !x.__r++ || preact_module_o !== preact_module_l.debounceRendering) && ((preact_module_o = preact_module_l.debounceRendering) || preact_module_r)(x);
|
||||||
}
|
}
|
||||||
function x() {
|
function x() {
|
||||||
var n, l, u, t, o, r, e, c, s;
|
var n, l, u, t, o, r, e, c, s;
|
||||||
for (i.sort(preact_module_f); n = i.shift();) n.__d && (l = i.length, t = void 0, o = void 0, r = void 0, c = (e = (u = n).__v).__e, (s = u.__P) && (t = [], o = [], (r = h({}, e)).__v = e.__v + 1, z(s, r, e, u.__n, void 0 !== s.ownerSVGElement, null != e.__h ? [c] : null, t, null == c ? b(e) : c, e.__h, o), r.__.__k[r.__i] = r, L(t, r, o), r.__e != c && g(r)), i.length > l && i.sort(preact_module_f));
|
for (i.sort(preact_module_f); n = i.shift();) n.__d && (l = i.length, t = void 0, r = (o = (u = n).__v).__e, c = [], s = [], (e = u.__P) && ((t = v({}, o)).__v = o.__v + 1, L(e, t, o, u.__n, void 0 !== e.ownerSVGElement, 32 & o.__u ? [r] : null, c, null == r ? m(o) : r, !!(32 & o.__u), s), t.__.__k[t.__i] = t, M(c, t, s), t.__e != r && k(t)), i.length > l && i.sort(preact_module_f));
|
||||||
x.__r = 0;
|
x.__r = 0;
|
||||||
}
|
}
|
||||||
function C(n, l, u, t, i, o, r, f, e, a, h) {
|
function C(n, l, u, t, i, o, r, f, e, a, h) {
|
||||||
var p,
|
var v,
|
||||||
|
p,
|
||||||
y,
|
y,
|
||||||
|
d,
|
||||||
_,
|
_,
|
||||||
m,
|
g = t && t.__k || s,
|
||||||
g,
|
b = l.length;
|
||||||
w,
|
for (u.__d = e, P(u, l, g), e = u.__d, v = 0; v < b; v++) null != (y = u.__k[v]) && "boolean" != typeof y && "function" != typeof y && (p = -1 === y.__i ? preact_module_c : g[y.__i] || preact_module_c, y.__i = v, L(n, y, p, i, o, r, f, e, a, h), d = y.__e, y.ref && p.ref != y.ref && (p.ref && z(p.ref, null, y), h.push(y.ref, y.__c || d, y)), null == _ && null != d && (_ = d), 65536 & y.__u || p.__k === y.__k ? e = S(y, e, n) : "function" == typeof y.type && void 0 !== y.__d ? e = y.__d : d && (e = d.nextSibling), y.__d = void 0, y.__u &= -196609);
|
||||||
x,
|
u.__d = e, u.__e = _;
|
||||||
C,
|
|
||||||
$,
|
|
||||||
D = 0,
|
|
||||||
H = t && t.__k || s,
|
|
||||||
I = H.length,
|
|
||||||
T = I,
|
|
||||||
j = l.length;
|
|
||||||
for (u.__k = [], p = 0; p < j; p++) null != (m = u.__k[p] = null == (m = l[p]) || "boolean" == typeof m || "function" == typeof m ? null : m.constructor == String || "number" == typeof m || "bigint" == typeof m ? d(null, m, null, null, m) : v(m) ? d(k, {
|
|
||||||
children: m
|
|
||||||
}, null, null, null) : m.__b > 0 ? d(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) ? (m.__ = u, m.__b = u.__b + 1, m.__i = p, -1 === (C = A(m, H, x = p + D, T)) ? _ = preact_module_c : (_ = H[C] || preact_module_c, H[C] = void 0, T--), z(n, m, _, i, o, r, f, e, a, h), g = m.__e, (y = m.ref) && _.ref != y && (_.ref && N(_.ref, null, m), h.push(y, m.__c || g, m)), null == w && null != g && (w = g), ($ = _ === preact_module_c || null === _.__v) ? -1 == C && D-- : C !== x && (C === x + 1 ? D++ : C > x ? T > j - x ? D += C - x : D-- : D = C < x && C == x - 1 ? C - x : 0), x = p + D, "function" == typeof m.type ? (C !== x || _.__k === m.__k ? e = P(m, e, n) : void 0 !== m.__d ? e = m.__d : g && (e = g.nextSibling), m.__d = void 0) : g && (e = C !== x || $ ? S(n, g, e) : g.nextSibling), "function" == typeof u.type && (u.__d = e)) : (_ = H[p]) && null == _.key && _.__e && (_.__e == e && (e = b(_), "function" == typeof u.type && (u.__d = e)), O(_, _, !1), H[p] = null);
|
|
||||||
for (u.__e = w, p = I; p--;) null != H[p] && ("function" == typeof u.type && null != H[p].__e && H[p].__e == e && (u.__d = H[p].__e.nextSibling), O(H[p], H[p]));
|
|
||||||
}
|
}
|
||||||
function P(n, l, u) {
|
function P(n, l, u) {
|
||||||
for (var t, i = n.__k, o = 0; i && o < i.length; o++) (t = i[o]) && (t.__ = n, l = "function" == typeof t.type ? P(t, l, u) : S(u, t.__e, l));
|
var t,
|
||||||
return l;
|
i,
|
||||||
|
o,
|
||||||
|
r,
|
||||||
|
f,
|
||||||
|
e = l.length,
|
||||||
|
c = u.length,
|
||||||
|
s = c,
|
||||||
|
a = 0;
|
||||||
|
for (n.__k = [], t = 0; t < e; t++) null != (i = n.__k[t] = null == (i = l[t]) || "boolean" == typeof i || "function" == typeof i ? null : "string" == typeof i || "number" == typeof i || "bigint" == typeof i || i.constructor == String ? d(null, i, null, null, i) : h(i) ? d(g, {
|
||||||
|
children: i
|
||||||
|
}, null, null, null) : i.__b > 0 ? d(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) ? (i.__ = n, i.__b = n.__b + 1, f = H(i, u, r = t + a, s), i.__i = f, o = null, -1 !== f && (s--, (o = u[f]) && (o.__u |= 131072)), null == o || null === o.__v ? (-1 == f && a--, "function" != typeof i.type && (i.__u |= 65536)) : f !== r && (f === r + 1 ? a++ : f > r ? s > e - r ? a += f - r : a-- : a = f < r && f == r - 1 ? f - r : 0, f !== t + a && (i.__u |= 65536))) : (o = u[t]) && null == o.key && o.__e && (o.__e == n.__d && (n.__d = m(o)), N(o, o, !1), u[t] = null, s--);
|
||||||
|
if (s) for (t = 0; t < c; t++) null != (o = u[t]) && 0 == (131072 & o.__u) && (o.__e == n.__d && (n.__d = m(o)), N(o, o));
|
||||||
|
}
|
||||||
|
function S(n, l, u) {
|
||||||
|
var t, i;
|
||||||
|
if ("function" == typeof n.type) {
|
||||||
|
for (t = n.__k, i = 0; t && i < t.length; i++) t[i] && (t[i].__ = n, l = S(t[i], l, u));
|
||||||
|
return l;
|
||||||
|
}
|
||||||
|
return n.__e != l && (u.insertBefore(n.__e, l || null), l = n.__e), l && l.nextSibling;
|
||||||
}
|
}
|
||||||
function $(n, l) {
|
function $(n, l) {
|
||||||
return l = l || [], null == n || "boolean" == typeof n || (v(n) ? n.some(function (n) {
|
return l = l || [], null == n || "boolean" == typeof n || (h(n) ? n.some(function (n) {
|
||||||
$(n, l);
|
$(n, l);
|
||||||
}) : l.push(n)), l;
|
}) : l.push(n)), l;
|
||||||
}
|
}
|
||||||
function S(n, l, u) {
|
function H(n, l, u, t) {
|
||||||
return l != u && n.insertBefore(l, u || null), l.nextSibling;
|
|
||||||
}
|
|
||||||
function A(n, l, u, t) {
|
|
||||||
var i = n.key,
|
var i = n.key,
|
||||||
o = n.type,
|
o = n.type,
|
||||||
r = u - 1,
|
r = u - 1,
|
||||||
f = u + 1,
|
f = u + 1,
|
||||||
e = l[u];
|
e = l[u];
|
||||||
if (null === e || e && i == e.key && o === e.type) return u;
|
if (null === e || e && i == e.key && o === e.type) return u;
|
||||||
if (t > (null != e ? 1 : 0)) for (; r >= 0 || f < l.length;) {
|
if (t > (null != e && 0 == (131072 & e.__u) ? 1 : 0)) for (; r >= 0 || f < l.length;) {
|
||||||
if (r >= 0) {
|
if (r >= 0) {
|
||||||
if ((e = l[r]) && i == e.key && o === e.type) return r;
|
if ((e = l[r]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return r;
|
||||||
r--;
|
r--;
|
||||||
}
|
}
|
||||||
if (f < l.length) {
|
if (f < l.length) {
|
||||||
if ((e = l[f]) && i == e.key && o === e.type) return f;
|
if ((e = l[f]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return f;
|
||||||
f++;
|
f++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
function D(n, l, u, t, i) {
|
function I(n, l, u) {
|
||||||
var o;
|
|
||||||
for (o in u) "children" === o || "key" === o || o in l || I(n, o, null, u[o], t);
|
|
||||||
for (o in l) i && "function" != typeof l[o] || "children" === o || "key" === o || "value" === o || "checked" === o || u[o] === l[o] || I(n, o, l[o], u[o], t);
|
|
||||||
}
|
|
||||||
function H(n, l, u) {
|
|
||||||
"-" === l[0] ? n.setProperty(l, null == u ? "" : u) : n[l] = null == u ? "" : "number" != typeof u || a.test(l) ? u : u + "px";
|
"-" === l[0] ? n.setProperty(l, null == u ? "" : u) : n[l] = null == u ? "" : "number" != typeof u || a.test(l) ? u : u + "px";
|
||||||
}
|
}
|
||||||
function I(n, l, u, t, i) {
|
function T(n, l, u, t, i) {
|
||||||
var o;
|
var o;
|
||||||
n: if ("style" === l) {
|
n: if ("style" === l) {
|
||||||
if ("string" == typeof u) n.style.cssText = u;else {
|
if ("string" == typeof u) n.style.cssText = u;else {
|
||||||
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || H(n.style, l, "");
|
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || I(n.style, l, "");
|
||||||
if (u) for (l in u) t && u[l] === t[l] || H(n.style, l, u[l]);
|
if (u) for (l in u) t && u[l] === t[l] || I(n.style, l, u[l]);
|
||||||
}
|
}
|
||||||
} else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/(PointerCapture)$|Capture$/, "$1")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t ? u.u = t.u : (u.u = Date.now(), n.addEventListener(l, o ? j : T, o)) : n.removeEventListener(l, o ? j : T, o);else if ("dangerouslySetInnerHTML" !== l) {
|
} else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/(PointerCapture)$|Capture$/, "$1")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t ? u.u = t.u : (u.u = Date.now(), n.addEventListener(l, o ? D : A, o)) : n.removeEventListener(l, o ? D : A, o);else {
|
||||||
if (i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && "rowSpan" !== l && "colSpan" !== l && "role" !== l && l in n) try {
|
if (i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && "rowSpan" !== l && "colSpan" !== l && "role" !== l && l in n) try {
|
||||||
n[l] = null == u ? "" : u;
|
n[l] = null == u ? "" : u;
|
||||||
break n;
|
break n;
|
||||||
|
@ -173,63 +175,63 @@ function I(n, l, u, t, i) {
|
||||||
"function" == typeof u || (null == u || !1 === u && "-" !== l[4] ? n.removeAttribute(l) : n.setAttribute(l, u));
|
"function" == typeof u || (null == u || !1 === u && "-" !== l[4] ? n.removeAttribute(l) : n.setAttribute(l, u));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function T(n) {
|
function A(n) {
|
||||||
var u = this.l[n.type + !1];
|
var u = this.l[n.type + !1];
|
||||||
if (n.t) {
|
if (n.t) {
|
||||||
if (n.t <= u.u) return;
|
if (n.t <= u.u) return;
|
||||||
} else n.t = Date.now();
|
} else n.t = Date.now();
|
||||||
return u(preact_module_l.event ? preact_module_l.event(n) : n);
|
return u(preact_module_l.event ? preact_module_l.event(n) : n);
|
||||||
}
|
}
|
||||||
function j(n) {
|
function D(n) {
|
||||||
return this.l[n.type + !0](preact_module_l.event ? preact_module_l.event(n) : n);
|
return this.l[n.type + !0](preact_module_l.event ? preact_module_l.event(n) : n);
|
||||||
}
|
}
|
||||||
function z(n, u, t, i, o, r, f, e, c, s) {
|
function L(n, u, t, i, o, r, f, e, c, s) {
|
||||||
var a,
|
var a,
|
||||||
p,
|
p,
|
||||||
y,
|
y,
|
||||||
d,
|
d,
|
||||||
_,
|
_,
|
||||||
b,
|
m,
|
||||||
g,
|
k,
|
||||||
w,
|
w,
|
||||||
x,
|
x,
|
||||||
P,
|
P,
|
||||||
$,
|
|
||||||
S,
|
S,
|
||||||
A,
|
$,
|
||||||
D,
|
|
||||||
H,
|
H,
|
||||||
I = u.type;
|
I,
|
||||||
|
T,
|
||||||
|
A = u.type;
|
||||||
if (void 0 !== u.constructor) return null;
|
if (void 0 !== u.constructor) return null;
|
||||||
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null, r = [e]), (a = preact_module_l.__b) && a(u);
|
128 & t.__u && (c = !!(32 & t.__u), r = [e = u.__e = t.__e]), (a = preact_module_l.__b) && a(u);
|
||||||
n: if ("function" == typeof I) try {
|
n: if ("function" == typeof A) try {
|
||||||
if (w = u.props, x = (a = I.contextType) && i[a.__c], P = a ? x ? x.props.value : a.__ : i, t.__c ? g = (p = u.__c = t.__c).__ = p.__E : ("prototype" in I && I.prototype.render ? u.__c = p = new I(w, P) : (u.__c = p = new m(w, P), p.constructor = I, p.render = q), x && x.sub(p), p.props = w, p.state || (p.state = {}), p.context = P, p.__n = i, y = p.__d = !0, p.__h = [], p._sb = []), null == p.__s && (p.__s = p.state), null != I.getDerivedStateFromProps && (p.__s == p.state && (p.__s = h({}, p.__s)), h(p.__s, I.getDerivedStateFromProps(w, p.__s))), d = p.props, _ = p.state, p.__v = u, y) null == I.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
|
if (w = u.props, x = (a = A.contextType) && i[a.__c], P = a ? x ? x.props.value : a.__ : i, t.__c ? k = (p = u.__c = t.__c).__ = p.__E : ("prototype" in A && A.prototype.render ? u.__c = p = new A(w, P) : (u.__c = p = new b(w, P), p.constructor = A, p.render = O), x && x.sub(p), p.props = w, p.state || (p.state = {}), p.context = P, p.__n = i, y = p.__d = !0, p.__h = [], p._sb = []), null == p.__s && (p.__s = p.state), null != A.getDerivedStateFromProps && (p.__s == p.state && (p.__s = v({}, p.__s)), v(p.__s, A.getDerivedStateFromProps(w, p.__s))), d = p.props, _ = p.state, p.__v = u, y) null == A.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
|
||||||
if (null == I.getDerivedStateFromProps && w !== d && null != p.componentWillReceiveProps && p.componentWillReceiveProps(w, P), !p.__e && (null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(w, p.__s, P) || u.__v === t.__v)) {
|
if (null == A.getDerivedStateFromProps && w !== d && null != p.componentWillReceiveProps && p.componentWillReceiveProps(w, P), !p.__e && (null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(w, p.__s, P) || u.__v === t.__v)) {
|
||||||
for (u.__v !== t.__v && (p.props = w, p.state = p.__s, p.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
|
for (u.__v !== t.__v && (p.props = w, p.state = p.__s, p.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
|
||||||
n && (n.__ = u);
|
n && (n.__ = u);
|
||||||
}), $ = 0; $ < p._sb.length; $++) p.__h.push(p._sb[$]);
|
}), S = 0; S < p._sb.length; S++) p.__h.push(p._sb[S]);
|
||||||
p._sb = [], p.__h.length && f.push(p);
|
p._sb = [], p.__h.length && f.push(p);
|
||||||
break n;
|
break n;
|
||||||
}
|
}
|
||||||
null != p.componentWillUpdate && p.componentWillUpdate(w, p.__s, P), null != p.componentDidUpdate && p.__h.push(function () {
|
null != p.componentWillUpdate && p.componentWillUpdate(w, p.__s, P), null != p.componentDidUpdate && p.__h.push(function () {
|
||||||
p.componentDidUpdate(d, _, b);
|
p.componentDidUpdate(d, _, m);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (p.context = P, p.props = w, p.__P = n, p.__e = !1, S = preact_module_l.__r, A = 0, "prototype" in I && I.prototype.render) {
|
if (p.context = P, p.props = w, p.__P = n, p.__e = !1, $ = preact_module_l.__r, H = 0, "prototype" in A && A.prototype.render) {
|
||||||
for (p.state = p.__s, p.__d = !1, S && S(u), a = p.render(p.props, p.state, p.context), D = 0; D < p._sb.length; D++) p.__h.push(p._sb[D]);
|
for (p.state = p.__s, p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), I = 0; I < p._sb.length; I++) p.__h.push(p._sb[I]);
|
||||||
p._sb = [];
|
p._sb = [];
|
||||||
} else do {
|
} else do {
|
||||||
p.__d = !1, S && S(u), a = p.render(p.props, p.state, p.context), p.state = p.__s;
|
p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), p.state = p.__s;
|
||||||
} while (p.__d && ++A < 25);
|
} while (p.__d && ++H < 25);
|
||||||
p.state = p.__s, null != p.getChildContext && (i = h(h({}, i), p.getChildContext())), y || null == p.getSnapshotBeforeUpdate || (b = p.getSnapshotBeforeUpdate(d, _)), C(n, v(H = null != a && a.type === k && null == a.key ? a.props.children : a) ? H : [H], u, t, i, o, r, f, e, c, s), p.base = u.__e, u.__h = null, p.__h.length && f.push(p), g && (p.__E = p.__ = null);
|
p.state = p.__s, null != p.getChildContext && (i = v(v({}, i), p.getChildContext())), y || null == p.getSnapshotBeforeUpdate || (m = p.getSnapshotBeforeUpdate(d, _)), C(n, h(T = null != a && a.type === g && null == a.key ? a.props.children : a) ? T : [T], u, t, i, o, r, f, e, c, s), p.base = u.__e, u.__u &= -161, p.__h.length && f.push(p), k && (p.__E = p.__ = null);
|
||||||
} catch (n) {
|
} catch (n) {
|
||||||
u.__v = null, c || null != r ? (u.__e = e, u.__h = !!c, r[r.indexOf(e)] = null) : (u.__e = t.__e, u.__k = t.__k), preact_module_l.__e(n, u, t);
|
u.__v = null, c || null != r ? (u.__e = e, u.__u |= c ? 160 : 32, r[r.indexOf(e)] = null) : (u.__e = t.__e, u.__k = t.__k), preact_module_l.__e(n, u, t);
|
||||||
} else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = M(t.__e, u, t, i, o, r, f, c, s);
|
} else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = j(t.__e, u, t, i, o, r, f, c, s);
|
||||||
(a = preact_module_l.diffed) && a(u);
|
(a = preact_module_l.diffed) && a(u);
|
||||||
}
|
}
|
||||||
function L(n, u, t) {
|
function M(n, u, t) {
|
||||||
u.__d = void 0;
|
u.__d = void 0;
|
||||||
for (var i = 0; i < t.length; i++) N(t[i], t[++i], t[++i]);
|
for (var i = 0; i < t.length; i++) z(t[i], t[++i], t[++i]);
|
||||||
preact_module_l.__c && preact_module_l.__c(u, n), n.some(function (u) {
|
preact_module_l.__c && preact_module_l.__c(u, n), n.some(function (u) {
|
||||||
try {
|
try {
|
||||||
n = u.__h, u.__h = [], n.some(function (n) {
|
n = u.__h, u.__h = [], n.some(function (n) {
|
||||||
|
@ -240,42 +242,44 @@ function L(n, u, t) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function M(l, u, t, i, o, r, f, e, s) {
|
function j(l, u, t, i, o, r, f, e, s) {
|
||||||
var a,
|
var a,
|
||||||
h,
|
v,
|
||||||
y,
|
y,
|
||||||
d = t.props,
|
d,
|
||||||
_ = u.props,
|
_,
|
||||||
k = u.type,
|
g,
|
||||||
m = 0;
|
b,
|
||||||
if ("svg" === k && (o = !0), null != r) for (; m < r.length; m++) if ((a = r[m]) && "setAttribute" in a == !!k && (k ? a.localName === k : 3 === a.nodeType)) {
|
k = t.props,
|
||||||
l = a, r[m] = null;
|
w = u.props,
|
||||||
|
x = u.type;
|
||||||
|
if ("svg" === x && (o = !0), null != r) for (a = 0; a < r.length; a++) if ((_ = r[a]) && "setAttribute" in _ == !!x && (x ? _.localName === x : 3 === _.nodeType)) {
|
||||||
|
l = _, r[a] = null;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (null == l) {
|
if (null == l) {
|
||||||
if (null === k) return document.createTextNode(_);
|
if (null === x) return document.createTextNode(w);
|
||||||
l = o ? document.createElementNS("http://www.w3.org/2000/svg", k) : document.createElement(k, _.is && _), r = null, e = !1;
|
l = o ? document.createElementNS("http://www.w3.org/2000/svg", x) : document.createElement(x, w.is && w), r = null, e = !1;
|
||||||
}
|
}
|
||||||
if (null === k) d === _ || e && l.data === _ || (l.data = _);else {
|
if (null === x) k === w || e && l.data === w || (l.data = w);else {
|
||||||
if (r = r && preact_module_n.call(l.childNodes), h = (d = t.props || preact_module_c).dangerouslySetInnerHTML, y = _.dangerouslySetInnerHTML, !e) {
|
if (r = r && preact_module_n.call(l.childNodes), k = t.props || preact_module_c, !e && null != r) for (k = {}, a = 0; a < l.attributes.length; a++) k[(_ = l.attributes[a]).name] = _.value;
|
||||||
if (null != r) for (d = {}, m = 0; m < l.attributes.length; m++) d[l.attributes[m].name] = l.attributes[m].value;
|
for (a in k) _ = k[a], "children" == a || ("dangerouslySetInnerHTML" == a ? y = _ : "key" === a || a in w || T(l, a, null, _, o));
|
||||||
(y || h) && (y && (h && y.__html == h.__html || y.__html === l.innerHTML) || (l.innerHTML = y && y.__html || ""));
|
for (a in w) _ = w[a], "children" == a ? d = _ : "dangerouslySetInnerHTML" == a ? v = _ : "value" == a ? g = _ : "checked" == a ? b = _ : "key" === a || e && "function" != typeof _ || k[a] === _ || T(l, a, _, k[a], o);
|
||||||
}
|
if (v) e || y && (v.__html === y.__html || v.__html === l.innerHTML) || (l.innerHTML = v.__html), u.__k = [];else if (y && (l.innerHTML = ""), C(l, h(d) ? d : [d], u, t, i, o && "foreignObject" !== x, r, f, r ? r[0] : t.__k && m(t, 0), e, s), null != r) for (a = r.length; a--;) null != r[a] && p(r[a]);
|
||||||
if (D(l, _, d, o, e), y) u.__k = [];else if (C(l, v(m = u.props.children) ? m : [m], u, t, i, o && "foreignObject" !== k, r, f, r ? r[0] : t.__k && b(t, 0), e, s), null != r) for (m = r.length; m--;) null != r[m] && p(r[m]);
|
e || (a = "value", void 0 !== g && (g !== l[a] || "progress" === x && !g || "option" === x && g !== k[a]) && T(l, a, g, k[a], !1), a = "checked", void 0 !== b && b !== l[a] && T(l, a, b, k[a], !1));
|
||||||
e || ("value" in _ && void 0 !== (m = _.value) && (m !== l.value || "progress" === k && !m || "option" === k && m !== d.value) && I(l, "value", m, d.value, !1), "checked" in _ && void 0 !== (m = _.checked) && m !== l.checked && I(l, "checked", m, d.checked, !1));
|
|
||||||
}
|
}
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
function N(n, u, t) {
|
function z(n, u, t) {
|
||||||
try {
|
try {
|
||||||
"function" == typeof n ? n(u) : n.current = u;
|
"function" == typeof n ? n(u) : n.current = u;
|
||||||
} catch (n) {
|
} catch (n) {
|
||||||
preact_module_l.__e(n, t);
|
preact_module_l.__e(n, t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function O(n, u, t) {
|
function N(n, u, t) {
|
||||||
var i, o;
|
var i, o;
|
||||||
if (preact_module_l.unmount && preact_module_l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || N(i, null, u)), null != (i = n.__c)) {
|
if (preact_module_l.unmount && preact_module_l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || z(i, null, u)), null != (i = n.__c)) {
|
||||||
if (i.componentWillUnmount) try {
|
if (i.componentWillUnmount) try {
|
||||||
i.componentWillUnmount();
|
i.componentWillUnmount();
|
||||||
} catch (n) {
|
} catch (n) {
|
||||||
|
@ -283,29 +287,29 @@ function O(n, u, t) {
|
||||||
}
|
}
|
||||||
i.base = i.__P = null, n.__c = void 0;
|
i.base = i.__P = null, n.__c = void 0;
|
||||||
}
|
}
|
||||||
if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && O(i[o], u, t || "function" != typeof n.type);
|
if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && N(i[o], u, t || "function" != typeof n.type);
|
||||||
t || null == n.__e || p(n.__e), n.__ = n.__e = n.__d = void 0;
|
t || null == n.__e || p(n.__e), n.__ = n.__e = n.__d = void 0;
|
||||||
}
|
}
|
||||||
function q(n, l, u) {
|
function O(n, l, u) {
|
||||||
return this.constructor(n, u);
|
return this.constructor(n, u);
|
||||||
}
|
}
|
||||||
function B(u, t, i) {
|
function q(u, t, i) {
|
||||||
var o, r, f, e;
|
var o, r, f, e;
|
||||||
preact_module_l.__ && preact_module_l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], e = [], z(t, u = (!o && i || t).__k = y(k, null, [u]), r || preact_module_c, preact_module_c, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? preact_module_n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o, e), L(f, u, e);
|
preact_module_l.__ && preact_module_l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], e = [], L(t, u = (!o && i || t).__k = y(g, null, [u]), r || preact_module_c, preact_module_c, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? preact_module_n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o, e), M(f, u, e);
|
||||||
}
|
}
|
||||||
function E(n, l) {
|
function B(n, l) {
|
||||||
B(n, l, E);
|
q(n, l, B);
|
||||||
}
|
}
|
||||||
function F(l, u, t) {
|
function E(l, u, t) {
|
||||||
var i,
|
var i,
|
||||||
o,
|
o,
|
||||||
r,
|
r,
|
||||||
f,
|
f,
|
||||||
e = h({}, l.props);
|
e = v({}, l.props);
|
||||||
for (r in l.type && l.type.defaultProps && (f = l.type.defaultProps), u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : e[r] = void 0 === u[r] && void 0 !== f ? f[r] : u[r];
|
for (r in l.type && l.type.defaultProps && (f = l.type.defaultProps), u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : e[r] = void 0 === u[r] && void 0 !== f ? f[r] : u[r];
|
||||||
return arguments.length > 2 && (e.children = arguments.length > 3 ? preact_module_n.call(arguments, 2) : t), d(l.type, e, i || l.key, o || l.ref, null);
|
return arguments.length > 2 && (e.children = arguments.length > 3 ? preact_module_n.call(arguments, 2) : t), d(l.type, e, i || l.key, o || l.ref, null);
|
||||||
}
|
}
|
||||||
function G(n, l) {
|
function F(n, l) {
|
||||||
var u = {
|
var u = {
|
||||||
__c: l = "__cC" + preact_module_e++,
|
__c: l = "__cC" + preact_module_e++,
|
||||||
__: n,
|
__: n,
|
||||||
|
@ -342,12 +346,12 @@ preact_module_n = s.slice, preact_module_l = {
|
||||||
}
|
}
|
||||||
}, preact_module_u = 0, preact_module_t = function (n) {
|
}, preact_module_u = 0, preact_module_t = function (n) {
|
||||||
return null != n && null == n.constructor;
|
return null != n && null == n.constructor;
|
||||||
}, m.prototype.setState = function (n, l) {
|
}, b.prototype.setState = function (n, l) {
|
||||||
var u;
|
var u;
|
||||||
u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = h({}, this.state), "function" == typeof n && (n = n(h({}, u), this.props)), n && h(u, n), null != n && this.__v && (l && this._sb.push(l), w(this));
|
u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = v({}, this.state), "function" == typeof n && (n = n(v({}, u), this.props)), n && v(u, n), null != n && this.__v && (l && this._sb.push(l), w(this));
|
||||||
}, m.prototype.forceUpdate = function (n) {
|
}, b.prototype.forceUpdate = function (n) {
|
||||||
this.__v && (this.__e = !0, n && this.__h.push(n), w(this));
|
this.__v && (this.__e = !0, n && this.__h.push(n), w(this));
|
||||||
}, m.prototype.render = k, i = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, preact_module_f = function (n, l) {
|
}, b.prototype.render = g, i = [], preact_module_r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, preact_module_f = function (n, l) {
|
||||||
return n.__v.__b - l.__v.__b;
|
return n.__v.__b - l.__v.__b;
|
||||||
}, x.__r = 0, preact_module_e = 0;
|
}, x.__r = 0, preact_module_e = 0;
|
||||||
|
|
||||||
|
@ -1095,7 +1099,7 @@ signals_module_l("__h", function (n, r, i, t) {
|
||||||
if (t < 3 || 9 === t) r.__$f |= 2;
|
if (t < 3 || 9 === t) r.__$f |= 2;
|
||||||
n(r, i, t);
|
n(r, i, t);
|
||||||
});
|
});
|
||||||
m.prototype.shouldComponentUpdate = function (n, r) {
|
b.prototype.shouldComponentUpdate = function (n, r) {
|
||||||
var i = this.__$u;
|
var i = this.__$u;
|
||||||
if (!(i && void 0 !== i.s || 4 & this.__$f)) return !0;
|
if (!(i && void 0 !== i.s || 4 & this.__$f)) return !0;
|
||||||
if (3 & this.__$f) return !0;
|
if (3 & this.__$f) return !0;
|
||||||
|
@ -1254,7 +1258,7 @@ function Portal(props) {
|
||||||
const _this = this;
|
const _this = this;
|
||||||
const container = props._container;
|
const container = props._container;
|
||||||
_this.componentWillUnmount = function () {
|
_this.componentWillUnmount = function () {
|
||||||
B(null, _this._temp);
|
q(null, _this._temp);
|
||||||
_this._temp = null;
|
_this._temp = null;
|
||||||
_this._container = null;
|
_this._container = null;
|
||||||
};
|
};
|
||||||
|
@ -1294,7 +1298,7 @@ function Portal(props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render our wrapping element into temp.
|
// Render our wrapping element into temp.
|
||||||
B(y(ContextProvider, {
|
q(y(ContextProvider, {
|
||||||
context: _this.context
|
context: _this.context
|
||||||
}, props._vnode), _this._temp);
|
}, props._vnode), _this._temp);
|
||||||
}
|
}
|
||||||
|
@ -1508,32 +1512,95 @@ const store = ({
|
||||||
;// CONCATENATED MODULE: ./node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
;// CONCATENATED MODULE: ./node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
||||||
|
|
||||||
|
|
||||||
var jsxRuntime_module_r = 0;
|
var jsxRuntime_module_t = /["&<]/;
|
||||||
function jsxRuntime_module_o(o, e, n, t, f, l) {
|
function jsxRuntime_module_n(r) {
|
||||||
var s,
|
if (0 === r.length || !1 === jsxRuntime_module_t.test(r)) return r;
|
||||||
i,
|
for (var e = 0, n = 0, o = "", f = ""; n < r.length; n++) {
|
||||||
u = {};
|
switch (r.charCodeAt(n)) {
|
||||||
for (i in e) "ref" == i ? s = e[i] : u[i] = e[i];
|
case 34:
|
||||||
var a = {
|
f = """;
|
||||||
type: o,
|
break;
|
||||||
props: u,
|
case 38:
|
||||||
|
f = "&";
|
||||||
|
break;
|
||||||
|
case 60:
|
||||||
|
f = "<";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
n !== e && (o += r.slice(e, n)), o += f, e = n + 1;
|
||||||
|
}
|
||||||
|
return n !== e && (o += r.slice(e, n)), o;
|
||||||
|
}
|
||||||
|
var jsxRuntime_module_o = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
|
||||||
|
jsxRuntime_module_f = 0,
|
||||||
|
jsxRuntime_module_i = Array.isArray;
|
||||||
|
function jsxRuntime_module_u(e, t, n, o, i, u) {
|
||||||
|
var a,
|
||||||
|
c,
|
||||||
|
p = {};
|
||||||
|
for (c in t) "ref" == c ? a = t[c] : p[c] = t[c];
|
||||||
|
var l = {
|
||||||
|
type: e,
|
||||||
|
props: p,
|
||||||
key: n,
|
key: n,
|
||||||
ref: s,
|
ref: a,
|
||||||
__k: null,
|
__k: null,
|
||||||
__: null,
|
__: null,
|
||||||
__b: 0,
|
__b: 0,
|
||||||
__e: null,
|
__e: null,
|
||||||
__d: void 0,
|
__d: void 0,
|
||||||
__c: null,
|
__c: null,
|
||||||
__h: null,
|
|
||||||
constructor: void 0,
|
constructor: void 0,
|
||||||
__v: --jsxRuntime_module_r,
|
__v: --jsxRuntime_module_f,
|
||||||
__i: -1,
|
__i: -1,
|
||||||
__source: f,
|
__u: 0,
|
||||||
__self: l
|
__source: i,
|
||||||
|
__self: u
|
||||||
};
|
};
|
||||||
if ("function" == typeof o && (s = o.defaultProps)) for (i in s) void 0 === u[i] && (u[i] = s[i]);
|
if ("function" == typeof e && (a = e.defaultProps)) for (c in a) void 0 === p[c] && (p[c] = a[c]);
|
||||||
return preact_module_l.vnode && preact_module_l.vnode(a), a;
|
return preact_module_l.vnode && preact_module_l.vnode(l), l;
|
||||||
|
}
|
||||||
|
function jsxRuntime_module_a(r) {
|
||||||
|
var t = jsxRuntime_module_u(e, {
|
||||||
|
tpl: r,
|
||||||
|
exprs: [].slice.call(arguments, 1)
|
||||||
|
});
|
||||||
|
return t.key = t.__v, t;
|
||||||
|
}
|
||||||
|
var jsxRuntime_module_c = {},
|
||||||
|
jsxRuntime_module_p = /[A-Z]/g;
|
||||||
|
function jsxRuntime_module_l(e, t) {
|
||||||
|
if (r.attr) {
|
||||||
|
var f = r.attr(e, t);
|
||||||
|
if ("string" == typeof f) return f;
|
||||||
|
}
|
||||||
|
if ("ref" === e || "key" === e) return "";
|
||||||
|
if ("style" === e && "object" == typeof t) {
|
||||||
|
var i = "";
|
||||||
|
for (var u in t) {
|
||||||
|
var a = t[u];
|
||||||
|
if (null != a && "" !== a) {
|
||||||
|
var l = "-" == u[0] ? u : jsxRuntime_module_c[u] || (jsxRuntime_module_c[u] = u.replace(jsxRuntime_module_p, "-$&").toLowerCase()),
|
||||||
|
_ = ";";
|
||||||
|
"number" != typeof a || l.startsWith("--") || jsxRuntime_module_o.test(l) || (_ = "px;"), i = i + l + ":" + a + _;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return e + '="' + i + '"';
|
||||||
|
}
|
||||||
|
return null == t || !1 === t || "function" == typeof t || "object" == typeof t ? "" : !0 === t ? e : e + '="' + jsxRuntime_module_n(t) + '"';
|
||||||
|
}
|
||||||
|
function jsxRuntime_module_(r) {
|
||||||
|
if (null == r || "boolean" == typeof r || "function" == typeof r) return null;
|
||||||
|
if ("object" == typeof r) {
|
||||||
|
if (void 0 === r.constructor) return r;
|
||||||
|
if (jsxRuntime_module_i(r)) {
|
||||||
|
for (var e = 0; e < r.length; e++) r[e] = jsxRuntime_module_(r[e]);
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return jsxRuntime_module_n("" + r);
|
||||||
}
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/src/hooks.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/src/hooks.js
|
||||||
|
@ -1575,7 +1642,7 @@ function jsxRuntime_module_o(o, e, n, t, f, l) {
|
||||||
|
|
||||||
// Main context.
|
// Main context.
|
||||||
|
|
||||||
const context = G({});
|
const context = F({});
|
||||||
|
|
||||||
// WordPress Directives.
|
// WordPress Directives.
|
||||||
const directiveCallbacks = {};
|
const directiveCallbacks = {};
|
||||||
|
@ -1711,12 +1778,12 @@ const Directives = ({
|
||||||
}), []);
|
}), []);
|
||||||
|
|
||||||
// Create a fresh copy of the vnode element.
|
// Create a fresh copy of the vnode element.
|
||||||
element = F(element, {
|
element = E(element, {
|
||||||
ref: elemRef
|
ref: elemRef
|
||||||
});
|
});
|
||||||
|
|
||||||
// Recursively render the wrapper for the next priority level.
|
// Recursively render the wrapper for the next priority level.
|
||||||
const children = nextPriorityLevels.length > 0 ? jsxRuntime_module_o(Directives, {
|
const children = nextPriorityLevels.length > 0 ? jsxRuntime_module_u(Directives, {
|
||||||
directives: directives,
|
directives: directives,
|
||||||
priorityLevels: nextPriorityLevels,
|
priorityLevels: nextPriorityLevels,
|
||||||
element: element,
|
element: element,
|
||||||
|
@ -1773,7 +1840,7 @@ preact_module_l.vnode = vnode => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const slotsContext = G();
|
const slotsContext = F();
|
||||||
const Fill = ({
|
const Fill = ({
|
||||||
slot,
|
slot,
|
||||||
children
|
children
|
||||||
|
@ -1801,7 +1868,7 @@ const SlotProvider = ({
|
||||||
return (
|
return (
|
||||||
// TODO: We can change this to use deepsignal once this PR is merged.
|
// TODO: We can change this to use deepsignal once this PR is merged.
|
||||||
// https://github.com/luisherranz/deepsignal/pull/38
|
// https://github.com/luisherranz/deepsignal/pull/38
|
||||||
jsxRuntime_module_o(slotsContext.Provider, {
|
jsxRuntime_module_u(slotsContext.Provider, {
|
||||||
value: signals_core_module_a({}),
|
value: signals_core_module_a({}),
|
||||||
children: children
|
children: children
|
||||||
})
|
})
|
||||||
|
@ -1865,7 +1932,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
|
||||||
mergeDeepSignals(currentValue.current, newValue, true);
|
mergeDeepSignals(currentValue.current, newValue, true);
|
||||||
return currentValue.current;
|
return currentValue.current;
|
||||||
}, [newContext, inheritedValue]);
|
}, [newContext, inheritedValue]);
|
||||||
return jsxRuntime_module_o(Provider, {
|
return jsxRuntime_module_u(Provider, {
|
||||||
value: currentValue.current,
|
value: currentValue.current,
|
||||||
children: children
|
children: children
|
||||||
});
|
});
|
||||||
|
@ -2097,7 +2164,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
|
||||||
}) => {
|
}) => {
|
||||||
// Preserve the initial inner HTML.
|
// Preserve the initial inner HTML.
|
||||||
const cached = hooks_module_F(() => innerHTML, []);
|
const cached = hooks_module_F(() => innerHTML, []);
|
||||||
return jsxRuntime_module_o(Type, {
|
return jsxRuntime_module_u(Type, {
|
||||||
dangerouslySetInnerHTML: {
|
dangerouslySetInnerHTML: {
|
||||||
__html: cached
|
__html: cached
|
||||||
},
|
},
|
||||||
|
@ -2137,27 +2204,27 @@ const mergeDeepSignals = (target, source, overwrite) => {
|
||||||
const name = typeof slot === 'string' ? slot : slot.name;
|
const name = typeof slot === 'string' ? slot : slot.name;
|
||||||
const position = slot.position || 'children';
|
const position = slot.position || 'children';
|
||||||
if (position === 'before') {
|
if (position === 'before') {
|
||||||
return jsxRuntime_module_o(k, {
|
return jsxRuntime_module_u(g, {
|
||||||
children: [jsxRuntime_module_o(Slot, {
|
children: [jsxRuntime_module_u(Slot, {
|
||||||
name: name
|
name: name
|
||||||
}), children]
|
}), children]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (position === 'after') {
|
if (position === 'after') {
|
||||||
return jsxRuntime_module_o(k, {
|
return jsxRuntime_module_u(g, {
|
||||||
children: [children, jsxRuntime_module_o(Slot, {
|
children: [children, jsxRuntime_module_u(Slot, {
|
||||||
name: name
|
name: name
|
||||||
})]
|
})]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (position === 'replace') {
|
if (position === 'replace') {
|
||||||
return jsxRuntime_module_o(Slot, {
|
return jsxRuntime_module_u(Slot, {
|
||||||
name: name,
|
name: name,
|
||||||
children: children
|
children: children
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (position === 'children') {
|
if (position === 'children') {
|
||||||
element.props.children = jsxRuntime_module_o(Slot, {
|
element.props.children = jsxRuntime_module_u(Slot, {
|
||||||
name: name,
|
name: name,
|
||||||
children: element.props.children
|
children: element.props.children
|
||||||
});
|
});
|
||||||
|
@ -2183,7 +2250,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
|
||||||
const slot = evaluate(fill, {
|
const slot = evaluate(fill, {
|
||||||
context: contextValue
|
context: contextValue
|
||||||
});
|
});
|
||||||
return jsxRuntime_module_o(Fill, {
|
return jsxRuntime_module_u(Fill, {
|
||||||
slot: slot,
|
slot: slot,
|
||||||
children: children
|
children: children
|
||||||
});
|
});
|
||||||
|
@ -2196,7 +2263,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
|
||||||
props: {
|
props: {
|
||||||
children
|
children
|
||||||
}
|
}
|
||||||
}) => jsxRuntime_module_o(SlotProvider, {
|
}) => jsxRuntime_module_u(SlotProvider, {
|
||||||
children: children
|
children: children
|
||||||
}), {
|
}), {
|
||||||
priority: 4
|
priority: 4
|
||||||
|
@ -2382,7 +2449,7 @@ const renderRegions = page => {
|
||||||
document.querySelectorAll(`[${attrName}]`).forEach(region => {
|
document.querySelectorAll(`[${attrName}]`).forEach(region => {
|
||||||
const id = region.getAttribute(attrName);
|
const id = region.getAttribute(attrName);
|
||||||
const fragment = getRegionRootFragment(region);
|
const fragment = getRegionRootFragment(region);
|
||||||
B(page.regions[id], fragment);
|
q(page.regions[id], fragment);
|
||||||
});
|
});
|
||||||
if (page.title) {
|
if (page.title) {
|
||||||
document.title = page.title;
|
document.title = page.title;
|
||||||
|
@ -2434,7 +2501,7 @@ const init = async () => {
|
||||||
if (!hydratedIslands.has(node)) {
|
if (!hydratedIslands.has(node)) {
|
||||||
const fragment = getRegionRootFragment(node);
|
const fragment = getRegionRootFragment(node);
|
||||||
const vdom = toVdom(node);
|
const vdom = toVdom(node);
|
||||||
E(vdom, fragment);
|
B(vdom, fragment);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -477,7 +477,7 @@ function CreatePatternModal({
|
||||||
onChange: setCategoryTerms,
|
onChange: setCategoryTerms,
|
||||||
categoryMap: categoryMap
|
categoryMap: categoryMap
|
||||||
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
|
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
|
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
|
||||||
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
|
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
|
||||||
checked: syncType === PATTERN_SYNC_TYPES.full,
|
checked: syncType === PATTERN_SYNC_TYPES.full,
|
||||||
onChange: () => {
|
onChange: () => {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -382,7 +382,7 @@ function ReusableBlockConvertButton({
|
||||||
onChange: setTitle,
|
onChange: setTitle,
|
||||||
placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern')
|
placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern')
|
||||||
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
|
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
|
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
|
||||||
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
|
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
|
||||||
checked: !syncType,
|
checked: !syncType,
|
||||||
onChange: () => {
|
onChange: () => {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.5-alpha-57108';
|
$wp_version = '6.5-alpha-57109';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue