| @@ -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,11 +38,11 @@ | ||
| 38 | 38 | __webpack_require__.r(__webpack_exports__); |
| 39 | 39 | |
| 40 | 40 | // EXPORTS |
| 41 | 41 | __webpack_require__.d(__webpack_exports__, { |
| 42 | - "I18nProvider": function() { return /* binding */ I18nProvider; }, | |
| 43 | - "useI18n": function() { return /* binding */ useI18n; }, | |
| 44 | - "withI18n": function() { return /* binding */ withI18n; } | |
| 42 | + "I18nProvider": () => (/* binding */ I18nProvider), | |
| 43 | + "useI18n": () => (/* binding */ useI18n), | |
| 44 | + "withI18n": () => (/* binding */ withI18n) | |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | 47 | ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js |
| 48 | 48 | function _extends() { |
| @@ -62,11 +62,11 @@ | ||
| 62 | 62 | |
| 63 | 63 | return _extends.apply(this, arguments); |
| 64 | 64 | } |
| 65 | 65 | ;// CONCATENATED MODULE: external ["wp","element"] |
| 66 | -var external_wp_element_namespaceObject = window["wp"]["element"]; | |
| 66 | +const external_wp_element_namespaceObject = window["wp"]["element"]; | |
| 67 | 67 | ;// CONCATENATED MODULE: external ["wp","i18n"] |
| 68 | -var external_wp_i18n_namespaceObject = window["wp"]["i18n"]; | |
| 68 | +const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; | |
| 69 | 69 | ;// CONCATENATED MODULE: ./packages/react-i18n/build-module/index.js |
| 70 | 70 | |
| 71 | 71 | |
| 72 | 72 | |
| @@ -125,9 +125,9 @@ | ||
| 125 | 125 | const { |
| 126 | 126 | children, |
| 127 | 127 | i18n = external_wp_i18n_namespaceObject.defaultI18n |
| 128 | 128 | } = props; |
| 129 | - const [update, forceUpdate] = (0,external_wp_element_namespaceObject.useReducer)(() => [], []); // rerender translations whenever the i18n instance fires a change event | |
| 129 | + const [update, forceUpdate] = (0,external_wp_element_namespaceObject.useReducer)(() => [], []); // Rerender translations whenever the i18n instance fires a change event. | |
| 130 | 130 | |
| 131 | 131 | (0,external_wp_element_namespaceObject.useEffect)(() => i18n.subscribe(forceUpdate), [i18n]); |
| 132 | 132 | const value = (0,external_wp_element_namespaceObject.useMemo)(() => makeContextValue(i18n), [i18n, update]); |
| 133 | 133 | return (0,external_wp_element_namespaceObject.createElement)(I18nContext.Provider, { |
| @@ -179,8 +179,8 @@ | ||
| 179 | 179 | const innerComponentName = InnerComponent.displayName || InnerComponent.name || 'Component'; |
| 180 | 180 | EnhancedComponent.displayName = `WithI18n(${innerComponentName})`; |
| 181 | 181 | return EnhancedComponent; |
| 182 | 182 | } |
| 183 | -//# sourceMappingURL=index.js.map | |
| 183 | + | |
| 184 | 184 | (window.wp = window.wp || {}).reactI18n = __webpack_exports__; |
| 185 | 185 | /******/ })() |
| 186 | 186 | ; |