Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity";
|
|
|
|
/******/ // The require scope
|
|
|
|
/******/ var __webpack_require__ = {};
|
|
|
|
/******/
|
|
|
|
/************************************************************************/
|
|
|
|
/******/ /* webpack/runtime/define property getters */
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ (() => {
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/ // define getter functions for harmony exports
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ __webpack_require__.d = (exports, definition) => {
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/ for(var key in definition) {
|
|
|
|
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
|
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
|
|
/******/ }
|
|
|
|
/******/ }
|
|
|
|
/******/ };
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ })();
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/
|
|
|
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ (() => {
|
|
|
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
|
|
/******/ })();
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/
|
|
|
|
/************************************************************************/
|
|
|
|
var __webpack_exports__ = {};
|
|
|
|
|
|
|
|
;// CONCATENATED MODULE: external "@wordpress/interactivity"
|
|
|
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
|
|
var y = x => () => x
|
2024-01-31 07:59:56 -05:00
|
|
|
const interactivity_namespaceObject = x({ ["getContext"]: () => __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext, ["getElement"]: () => __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getElement, ["store"]: () => __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store });
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/view.js
|
|
|
|
/**
|
|
|
|
* WordPress dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
const {
|
|
|
|
actions
|
|
|
|
} = (0,interactivity_namespaceObject.store)('core/search', {
|
|
|
|
state: {
|
|
|
|
get ariaLabel() {
|
|
|
|
const {
|
|
|
|
isSearchInputVisible,
|
|
|
|
ariaLabelCollapsed,
|
|
|
|
ariaLabelExpanded
|
|
|
|
} = (0,interactivity_namespaceObject.getContext)();
|
|
|
|
return isSearchInputVisible ? ariaLabelExpanded : ariaLabelCollapsed;
|
|
|
|
},
|
|
|
|
get ariaControls() {
|
|
|
|
const {
|
|
|
|
isSearchInputVisible,
|
|
|
|
inputId
|
|
|
|
} = (0,interactivity_namespaceObject.getContext)();
|
|
|
|
return isSearchInputVisible ? null : inputId;
|
|
|
|
},
|
|
|
|
get type() {
|
|
|
|
const {
|
|
|
|
isSearchInputVisible
|
|
|
|
} = (0,interactivity_namespaceObject.getContext)();
|
|
|
|
return isSearchInputVisible ? 'submit' : 'button';
|
|
|
|
},
|
|
|
|
get tabindex() {
|
|
|
|
const {
|
|
|
|
isSearchInputVisible
|
|
|
|
} = (0,interactivity_namespaceObject.getContext)();
|
|
|
|
return isSearchInputVisible ? '0' : '-1';
|
|
|
|
}
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
openSearchInput(event) {
|
|
|
|
const ctx = (0,interactivity_namespaceObject.getContext)();
|
|
|
|
const {
|
|
|
|
ref
|
|
|
|
} = (0,interactivity_namespaceObject.getElement)();
|
|
|
|
if (!ctx.isSearchInputVisible) {
|
|
|
|
event.preventDefault();
|
|
|
|
ctx.isSearchInputVisible = true;
|
|
|
|
ref.parentElement.querySelector('input').focus();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
closeSearchInput() {
|
|
|
|
const ctx = (0,interactivity_namespaceObject.getContext)();
|
|
|
|
ctx.isSearchInputVisible = false;
|
|
|
|
},
|
|
|
|
handleSearchKeydown(event) {
|
|
|
|
const {
|
|
|
|
ref
|
|
|
|
} = (0,interactivity_namespaceObject.getElement)();
|
|
|
|
// If Escape close the menu.
|
|
|
|
if (event?.key === 'Escape') {
|
|
|
|
actions.closeSearchInput();
|
|
|
|
ref.querySelector('button').focus();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
handleSearchFocusout(event) {
|
|
|
|
const {
|
|
|
|
ref
|
|
|
|
} = (0,interactivity_namespaceObject.getElement)();
|
|
|
|
// If focus is outside search form, and in the document, close menu
|
|
|
|
// event.target === The element losing focus
|
|
|
|
// event.relatedTarget === The element receiving focus (if any)
|
|
|
|
// When focusout is outside the document,
|
|
|
|
// `window.document.activeElement` doesn't change.
|
|
|
|
if (!ref.contains(event.relatedTarget) && event.target !== window.document.activeElement) {
|
|
|
|
actions.closeSearchInput();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-02-09 13:22:22 -05:00
|
|
|
}, {
|
|
|
|
lock: true
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
});
|
2024-01-31 07:59:56 -05:00
|
|
|
|