PluginProbe
Gutenberg / 14.5.2
Gutenberg v14.5.2
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/hooks/index.js +52 -52 12.6.0 → 14.5.2 View file →
@@ -1,5 +1,5 @@
1 -/******/ (function() { // webpackBootstrap
1 +/******/ (() => { // webpackBootstrap
2 2 /******/ "use strict";
3 3 /******/ // The require scope
4 4 /******/ var __webpack_require__ = {};
5 5 /******/
@@ -4,11 +4,11 @@
4 4 /******/ var __webpack_require__ = {};
5 5 /******/
6 6 /************************************************************************/
7 7 /******/ /* webpack/runtime/define property getters */
8 -/******/ !function() {
8 +/******/ (() => {
9 9 /******/ // define getter functions for harmony exports
10 -/******/ __webpack_require__.d = function(exports, definition) {
10 +/******/ __webpack_require__.d = (exports, definition) => {
11 11 /******/ for(var key in definition) {
12 12 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13 13 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14 14 /******/ }
@@ -13,25 +13,25 @@
13 13 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14 14 /******/ }
15 15 /******/ }
16 16 /******/ };
17 -/******/ }();
17 +/******/ })();
18 18 /******/
19 19 /******/ /* webpack/runtime/hasOwnProperty shorthand */
20 -/******/ !function() {
21 -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
22 -/******/ }();
20 +/******/ (() => {
21 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22 +/******/ })();
23 23 /******/
24 24 /******/ /* webpack/runtime/make namespace object */
25 -/******/ !function() {
25 +/******/ (() => {
26 26 /******/ // define __esModule on exports
27 -/******/ __webpack_require__.r = function(exports) {
27 +/******/ __webpack_require__.r = (exports) => {
28 28 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
29 29 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
30 30 /******/ }
31 31 /******/ Object.defineProperty(exports, '__esModule', { value: true });
32 32 /******/ };
33 -/******/ }();
33 +/******/ })();
34 34 /******/
35 35 /************************************************************************/
36 36 var __webpack_exports__ = {};
37 37 // ESM COMPAT FLAG
@@ -38,28 +38,28 @@
38 38 __webpack_require__.r(__webpack_exports__);
39 39
40 40 // EXPORTS
41 41 __webpack_require__.d(__webpack_exports__, {
42 - "actions": function() { return /* binding */ actions; },
43 - "addAction": function() { return /* binding */ addAction; },
44 - "addFilter": function() { return /* binding */ addFilter; },
45 - "applyFilters": function() { return /* binding */ applyFilters; },
46 - "createHooks": function() { return /* reexport */ build_module_createHooks; },
47 - "currentAction": function() { return /* binding */ currentAction; },
48 - "currentFilter": function() { return /* binding */ currentFilter; },
49 - "defaultHooks": function() { return /* binding */ defaultHooks; },
50 - "didAction": function() { return /* binding */ didAction; },
51 - "didFilter": function() { return /* binding */ didFilter; },
52 - "doAction": function() { return /* binding */ doAction; },
53 - "doingAction": function() { return /* binding */ doingAction; },
54 - "doingFilter": function() { return /* binding */ doingFilter; },
55 - "filters": function() { return /* binding */ filters; },
56 - "hasAction": function() { return /* binding */ hasAction; },
57 - "hasFilter": function() { return /* binding */ hasFilter; },
58 - "removeAction": function() { return /* binding */ removeAction; },
59 - "removeAllActions": function() { return /* binding */ removeAllActions; },
60 - "removeAllFilters": function() { return /* binding */ removeAllFilters; },
61 - "removeFilter": function() { return /* binding */ removeFilter; }
42 + "actions": () => (/* binding */ actions),
43 + "addAction": () => (/* binding */ addAction),
44 + "addFilter": () => (/* binding */ addFilter),
45 + "applyFilters": () => (/* binding */ applyFilters),
46 + "createHooks": () => (/* reexport */ build_module_createHooks),
47 + "currentAction": () => (/* binding */ currentAction),
48 + "currentFilter": () => (/* binding */ currentFilter),
49 + "defaultHooks": () => (/* binding */ defaultHooks),
50 + "didAction": () => (/* binding */ didAction),
51 + "didFilter": () => (/* binding */ didFilter),
52 + "doAction": () => (/* binding */ doAction),
53 + "doingAction": () => (/* binding */ doingAction),
54 + "doingFilter": () => (/* binding */ doingFilter),
55 + "filters": () => (/* binding */ filters),
56 + "hasAction": () => (/* binding */ hasAction),
57 + "hasFilter": () => (/* binding */ hasFilter),
58 + "removeAction": () => (/* binding */ removeAction),
59 + "removeAllActions": () => (/* binding */ removeAllActions),
60 + "removeAllFilters": () => (/* binding */ removeAllFilters),
61 + "removeFilter": () => (/* binding */ removeFilter)
62 62 });
63 63
64 64 ;// CONCATENATED MODULE: ./packages/hooks/build-module/validateNamespace.js
65 65 /**
@@ -85,10 +85,10 @@
85 85
86 86 return true;
87 87 }
88 88
89 -/* harmony default export */ var build_module_validateNamespace = (validateNamespace);
90 -//# sourceMappingURL=validateNamespace.js.map
89 +/* harmony default export */ const build_module_validateNamespace = (validateNamespace);
90 +
91 91 ;// CONCATENATED MODULE: ./packages/hooks/build-module/validateHookName.js
92 92 /**
93 93 * Validate a hookName string.
94 94 *
@@ -119,10 +119,10 @@
119 119
120 120 return true;
121 121 }
122 122
123 -/* harmony default export */ var build_module_validateHookName = (validateHookName);
124 -//# sourceMappingURL=validateHookName.js.map
123 +/* harmony default export */ const build_module_validateHookName = (validateHookName);
124 +
125 125 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createAddHook.js
126 126 /**
127 127 * Internal dependencies
128 128 */
@@ -223,10 +223,10 @@
223 223 }
224 224 };
225 225 }
226 226
227 -/* harmony default export */ var build_module_createAddHook = (createAddHook);
228 -//# sourceMappingURL=createAddHook.js.map
227 +/* harmony default export */ const build_module_createAddHook = (createAddHook);
228 +
229 229 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createRemoveHook.js
230 230 /**
231 231 * Internal dependencies
232 232 */
@@ -267,9 +267,9 @@
267 267 }
268 268
269 269 if (!removeAll && !build_module_validateNamespace(namespace)) {
270 270 return;
271 - } // Bail if no hooks exist by this name
271 + } // Bail if no hooks exist by this name.
272 272
273 273
274 274 if (!hooksStore[hookName]) {
275 275 return 0;
@@ -312,10 +312,10 @@
312 312 return handlersRemoved;
313 313 };
314 314 }
315 315
316 -/* harmony default export */ var build_module_createRemoveHook = (createRemoveHook);
317 -//# sourceMappingURL=createRemoveHook.js.map
316 +/* harmony default export */ const build_module_createRemoveHook = (createRemoveHook);
317 +
318 318 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createHasHook.js
319 319 /**
320 320 * @callback HasHook
321 321 *
@@ -349,10 +349,10 @@
349 349 return hookName in hooksStore;
350 350 };
351 351 }
352 352
353 -/* harmony default export */ var build_module_createHasHook = (createHasHook);
354 -//# sourceMappingURL=createHasHook.js.map
353 +/* harmony default export */ const build_module_createHasHook = (createHasHook);
354 +
355 355 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createRunHook.js
356 356 /**
357 357 * Returns a function which, when invoked, will execute all callbacks
358 358 * registered to a hook of the specified type, optionally returning the final
@@ -415,10 +415,10 @@
415 415 }
416 416 };
417 417 }
418 418
419 -/* harmony default export */ var build_module_createRunHook = (createRunHook);
420 -//# sourceMappingURL=createRunHook.js.map
419 +/* harmony default export */ const build_module_createRunHook = (createRunHook);
420 +
421 421 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createCurrentHook.js
422 422 /**
423 423 * Returns a function which, when invoked, will return the name of the
424 424 * currently running hook, or `null` if no hook of the given type is currently
@@ -437,10 +437,10 @@
437 437 return (_hooksStore$__current = (_hooksStore$__current2 = hooksStore.__current[hooksStore.__current.length - 1]) === null || _hooksStore$__current2 === void 0 ? void 0 : _hooksStore$__current2.name) !== null && _hooksStore$__current !== void 0 ? _hooksStore$__current : null;
438 438 };
439 439 }
440 440
441 -/* harmony default export */ var build_module_createCurrentHook = (createCurrentHook);
442 -//# sourceMappingURL=createCurrentHook.js.map
441 +/* harmony default export */ const build_module_createCurrentHook = (createCurrentHook);
442 +
443 443 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createDoingHook.js
444 444 /**
445 445 * @callback DoingHook
446 446 * Returns whether a hook is currently being executed.
@@ -473,10 +473,10 @@
473 473 return hooksStore.__current[0] ? hookName === hooksStore.__current[0].name : false;
474 474 };
475 475 }
476 476
477 -/* harmony default export */ var build_module_createDoingHook = (createDoingHook);
478 -//# sourceMappingURL=createDoingHook.js.map
477 +/* harmony default export */ const build_module_createDoingHook = (createDoingHook);
478 +
479 479 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createDidHook.js
480 480 /**
481 481 * Internal dependencies
482 482 */
@@ -512,10 +512,10 @@
512 512 return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0;
513 513 };
514 514 }
515 515
516 -/* harmony default export */ var build_module_createDidHook = (createDidHook);
517 -//# sourceMappingURL=createDidHook.js.map
516 +/* harmony default export */ const build_module_createDidHook = (createDidHook);
517 +
518 518 ;// CONCATENATED MODULE: ./packages/hooks/build-module/createHooks.js
519 519 /**
520 520 * Internal dependencies
521 521 */
@@ -573,10 +573,10 @@
573 573 function createHooks() {
574 574 return new _Hooks();
575 575 }
576 576
577 -/* harmony default export */ var build_module_createHooks = (createHooks);
578 -//# sourceMappingURL=createHooks.js.map
577 +/* harmony default export */ const build_module_createHooks = (createHooks);
578 +
579 579 ;// CONCATENATED MODULE: ./packages/hooks/build-module/index.js
580 580 /**
581 581 * Internal dependencies
582 582 */
@@ -635,8 +635,8 @@
635 635 actions,
636 636 filters
637 637 } = defaultHooks;
638 638
639 -//# sourceMappingURL=index.js.map
639 +
640 640 (window.wp = window.wp || {}).hooks = __webpack_exports__;
641 641 /******/ })()
642 642 ;