--- a/wp/wp-includes/js/dist/notices.js Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/js/dist/notices.js Tue Sep 27 16:37:53 2022 +0200
@@ -1,131 +1,71 @@
-this["wp"] = this["wp"] || {}; this["wp"]["notices"] =
-/******/ (function(modules) { // webpackBootstrap
-/******/ // The module cache
-/******/ var installedModules = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/
-/******/ // Check if module is in cache
-/******/ if(installedModules[moduleId]) {
-/******/ return installedModules[moduleId].exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = installedModules[moduleId] = {
-/******/ i: moduleId,
-/******/ l: false,
-/******/ exports: {}
+/******/ (function() { // webpackBootstrap
+/******/ "use strict";
+/******/ // The require scope
+/******/ var __webpack_require__ = {};
+/******/
+/************************************************************************/
+/******/ /* webpack/runtime/define property getters */
+/******/ !function() {
+/******/ // define getter functions for harmony exports
+/******/ __webpack_require__.d = function(exports, definition) {
+/******/ 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] });
+/******/ }
+/******/ }
/******/ };
-/******/
-/******/ // Execute the module function
-/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ // Flag the module as loaded
-/******/ module.l = true;
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
-/******/
-/******/
-/******/ // expose the modules object (__webpack_modules__)
-/******/ __webpack_require__.m = modules;
-/******/
-/******/ // expose the module cache
-/******/ __webpack_require__.c = installedModules;
-/******/
-/******/ // define getter function for harmony exports
-/******/ __webpack_require__.d = function(exports, name, getter) {
-/******/ if(!__webpack_require__.o(exports, name)) {
-/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ }
-/******/ };
-/******/
-/******/ // define __esModule on exports
-/******/ __webpack_require__.r = function(exports) {
-/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ }
-/******/ Object.defineProperty(exports, '__esModule', { value: true });
-/******/ };
-/******/
-/******/ // create a fake namespace object
-/******/ // mode & 1: value is a module id, require it
-/******/ // mode & 2: merge all properties of value into the ns
-/******/ // mode & 4: return value when already ns object
-/******/ // mode & 8|1: behave like require
-/******/ __webpack_require__.t = function(value, mode) {
-/******/ if(mode & 1) value = __webpack_require__(value);
-/******/ if(mode & 8) return value;
-/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ var ns = Object.create(null);
-/******/ __webpack_require__.r(ns);
-/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ return ns;
-/******/ };
-/******/
-/******/ // getDefaultExport function for compatibility with non-harmony modules
-/******/ __webpack_require__.n = function(module) {
-/******/ var getter = module && module.__esModule ?
-/******/ function getDefault() { return module['default']; } :
-/******/ function getModuleExports() { return module; };
-/******/ __webpack_require__.d(getter, 'a', getter);
-/******/ return getter;
-/******/ };
-/******/
-/******/ // Object.prototype.hasOwnProperty.call
-/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ // __webpack_public_path__
-/******/ __webpack_require__.p = "";
-/******/
-/******/
-/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = "Ko7W");
-/******/ })
+/******/ }();
+/******/
+/******/ /* webpack/runtime/hasOwnProperty shorthand */
+/******/ !function() {
+/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
+/******/ }();
+/******/
+/******/ /* webpack/runtime/make namespace object */
+/******/ !function() {
+/******/ // define __esModule on exports
+/******/ __webpack_require__.r = function(exports) {
+/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ }
+/******/ Object.defineProperty(exports, '__esModule', { value: true });
+/******/ };
+/******/ }();
+/******/
/************************************************************************/
-/******/ ({
-
-/***/ "1ZqX":
-/***/ (function(module, exports) {
-
-(function() { module.exports = window["wp"]["data"]; }());
-
-/***/ }),
-
-/***/ "Ko7W":
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
+var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
-__webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store; });
+__webpack_require__.d(__webpack_exports__, {
+ "store": function() { return /* reexport */ store; }
+});
// NAMESPACE OBJECT: ./node_modules/@wordpress/notices/build-module/store/actions.js
var actions_namespaceObject = {};
__webpack_require__.r(actions_namespaceObject);
-__webpack_require__.d(actions_namespaceObject, "createNotice", function() { return createNotice; });
-__webpack_require__.d(actions_namespaceObject, "createSuccessNotice", function() { return createSuccessNotice; });
-__webpack_require__.d(actions_namespaceObject, "createInfoNotice", function() { return createInfoNotice; });
-__webpack_require__.d(actions_namespaceObject, "createErrorNotice", function() { return createErrorNotice; });
-__webpack_require__.d(actions_namespaceObject, "createWarningNotice", function() { return createWarningNotice; });
-__webpack_require__.d(actions_namespaceObject, "removeNotice", function() { return removeNotice; });
+__webpack_require__.d(actions_namespaceObject, {
+ "createErrorNotice": function() { return createErrorNotice; },
+ "createInfoNotice": function() { return createInfoNotice; },
+ "createNotice": function() { return createNotice; },
+ "createSuccessNotice": function() { return createSuccessNotice; },
+ "createWarningNotice": function() { return createWarningNotice; },
+ "removeNotice": function() { return removeNotice; }
+});
// NAMESPACE OBJECT: ./node_modules/@wordpress/notices/build-module/store/selectors.js
var selectors_namespaceObject = {};
__webpack_require__.r(selectors_namespaceObject);
-__webpack_require__.d(selectors_namespaceObject, "getNotices", function() { return getNotices; });
-
-// EXTERNAL MODULE: external ["wp","data"]
-var external_wp_data_ = __webpack_require__("1ZqX");
+__webpack_require__.d(selectors_namespaceObject, {
+ "getNotices": function() { return getNotices; }
+});
-// EXTERNAL MODULE: external "lodash"
-var external_lodash_ = __webpack_require__("YLtl");
-
-// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js
+;// CONCATENATED MODULE: external ["wp","data"]
+var external_wp_data_namespaceObject = window["wp"]["data"];
+;// CONCATENATED MODULE: external "lodash"
+var external_lodash_namespaceObject = window["lodash"];
+;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js
/**
* Higher-order reducer creator which creates a combined reducer object, keyed
* by a property on the action object.
@@ -134,7 +74,9 @@
*
* @return {Function} Higher-order reducer.
*/
-const onSubKey = actionProperty => reducer => (state = {}, action) => {
+const onSubKey = actionProperty => reducer => function () {
+ let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
+ let action = arguments.length > 1 ? arguments[1] : undefined;
// Retrieve subkey from action. Do not track if undefined; useful for cases
// where reducer is scoped by action shape.
const key = action[actionProperty];
@@ -157,7 +99,7 @@
};
/* harmony default export */ var on_sub_key = (onSubKey);
-// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/reducer.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/reducer.js
/**
* External dependencies
*/
@@ -177,16 +119,19 @@
* @return {Object} Updated state.
*/
-const notices = on_sub_key('context')((state = [], action) => {
+const notices = on_sub_key('context')(function () {
+ let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
+ let action = arguments.length > 1 ? arguments[1] : undefined;
+
switch (action.type) {
case 'CREATE_NOTICE':
// Avoid duplicates on ID.
- return [...Object(external_lodash_["reject"])(state, {
+ return [...(0,external_lodash_namespaceObject.reject)(state, {
id: action.notice.id
}), action.notice];
case 'REMOVE_NOTICE':
- return Object(external_lodash_["reject"])(state, {
+ return (0,external_lodash_namespaceObject.reject)(state, {
id: action.id
});
}
@@ -195,7 +140,7 @@
});
/* harmony default export */ var reducer = (notices);
-// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/constants.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/constants.js
/**
* Default context to use for notice grouping when not otherwise specified. Its
* specific value doesn't hold much meaning, but it must be reasonably unique
@@ -212,7 +157,7 @@
const DEFAULT_STATUS = 'info';
-// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/actions.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/actions.js
/**
* External dependencies
*/
@@ -225,11 +170,11 @@
/**
* @typedef {Object} WPNoticeAction Object describing a user action option associated with a notice.
*
- * @property {string} label Message to use as action label.
- * @property {?string} url Optional URL of resource if action incurs
- * browser navigation.
- * @property {?Function} onClick Optional function to invoke when action is
- * triggered by user.
+ * @property {string} label Message to use as action label.
+ * @property {?string} url Optional URL of resource if action incurs
+ * browser navigation.
+ * @property {?Function} onClick Optional function to invoke when action is
+ * triggered by user.
*
*/
@@ -264,18 +209,21 @@
* @return {Object} Action object.
*/
-function createNotice(status = DEFAULT_STATUS, content, options = {}) {
+function createNotice() {
+ let status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_STATUS;
+ let content = arguments.length > 1 ? arguments[1] : undefined;
+ let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
const {
speak = true,
isDismissible = true,
context = DEFAULT_CONTEXT,
- id = Object(external_lodash_["uniqueId"])(context),
+ id = (0,external_lodash_namespaceObject.uniqueId)(context),
actions = [],
type = 'default',
__unstableHTML,
icon = null,
explicitDismiss = false,
- onDismiss = null
+ onDismiss
} = options; // The supported value shape of content is currently limited to plain text
// strings. To avoid setting expectation that e.g. a WPElement could be
// supported, cast to a string.
@@ -369,7 +317,8 @@
* @return {Object} Action object.
*/
-function removeNotice(id, context = DEFAULT_CONTEXT) {
+function removeNotice(id) {
+ let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT;
return {
type: 'REMOVE_NOTICE',
id,
@@ -377,7 +326,7 @@
};
}
-// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/selectors.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/selectors.js
/**
* Internal dependencies
*/
@@ -398,26 +347,26 @@
/**
* @typedef {Object} WPNotice Notice object.
*
- * @property {string} id Unique identifier of notice.
- * @property {string} status Status of notice, one of `success`,
- * `info`, `error`, or `warning`. Defaults
- * to `info`.
- * @property {string} content Notice message.
- * @property {string} spokenMessage Audibly announced message text used by
- * assistive technologies.
- * @property {string} __unstableHTML Notice message as raw HTML. Intended to
- * serve primarily for compatibility of
- * server-rendered notices, and SHOULD NOT
- * be used for notices. It is subject to
- * removal without notice.
- * @property {boolean} isDismissible Whether the notice can be dismissed by
- * user. Defaults to `true`.
- * @property {string} type Type of notice, one of `default`,
- * or `snackbar`. Defaults to `default`.
- * @property {boolean} speak Whether the notice content should be
- * announced to screen readers. Defaults to
- * `true`.
- * @property {WPNoticeAction[]} actions User actions to present with notice.
+ * @property {string} id Unique identifier of notice.
+ * @property {string} status Status of notice, one of `success`,
+ * `info`, `error`, or `warning`. Defaults
+ * to `info`.
+ * @property {string} content Notice message.
+ * @property {string} spokenMessage Audibly announced message text used by
+ * assistive technologies.
+ * @property {string} __unstableHTML Notice message as raw HTML. Intended to
+ * serve primarily for compatibility of
+ * server-rendered notices, and SHOULD NOT
+ * be used for notices. It is subject to
+ * removal without notice.
+ * @property {boolean} isDismissible Whether the notice can be dismissed by
+ * user. Defaults to `true`.
+ * @property {string} type Type of notice, one of `default`,
+ * or `snackbar`. Defaults to `default`.
+ * @property {boolean} speak Whether the notice content should be
+ * announced to screen readers. Defaults to
+ * `true`.
+ * @property {WPNoticeAction[]} actions User actions to present with notice.
*
*/
@@ -431,11 +380,12 @@
* @return {WPNotice[]} Array of notices.
*/
-function getNotices(state, context = DEFAULT_CONTEXT) {
+function getNotices(state) {
+ let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT;
return state[context] || DEFAULT_NOTICES;
}
-// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/index.js
+;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/index.js
/**
* WordPress dependencies
*/
@@ -455,24 +405,16 @@
* @type {Object}
*/
-const store = Object(external_wp_data_["createReduxStore"])('core/notices', {
+const store = (0,external_wp_data_namespaceObject.createReduxStore)('core/notices', {
reducer: reducer,
actions: actions_namespaceObject,
selectors: selectors_namespaceObject
});
-Object(external_wp_data_["register"])(store);
+(0,external_wp_data_namespaceObject.register)(store);
-// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/index.js
-
+;// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/index.js
-/***/ }),
-
-/***/ "YLtl":
-/***/ (function(module, exports) {
-
-(function() { module.exports = window["lodash"]; }());
-
-/***/ })
-
-/******/ });
\ No newline at end of file
+(window.wp = window.wp || {}).notices = __webpack_exports__;
+/******/ })()
+;
\ No newline at end of file