@commercetools-frontend/application-shell 27.5.3 → 27.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{application-entry-point-ClzPzijC.esm.js → application-entry-point-10a5e1a5.esm.js} +2 -2
- package/dist/{application-entry-point-DCc9mzT_.cjs.prod.js → application-entry-point-8c4b8e53.cjs.prod.js} +5 -5
- package/dist/{application-entry-point-BA5VbxIc.cjs.dev.js → application-entry-point-c87294b0.cjs.dev.js} +5 -5
- package/dist/{box-4tJmU3_W.cjs.prod.js → box-09bf50e1.cjs.prod.js} +4 -4
- package/dist/{box-4tJmU3_W.cjs.dev.js → box-4857aa65.cjs.dev.js} +4 -4
- package/dist/{box-BXyJiuSa.esm.js → box-9cf180c1.esm.js} +1 -1
- package/dist/{cart-729S0a9t.cjs.dev.js → cart-645074db.cjs.prod.js} +4 -4
- package/dist/{cart-729S0a9t.cjs.prod.js → cart-b0044279.cjs.dev.js} +4 -4
- package/dist/{cart-xlAkv0aT.esm.js → cart-bb491ca1.esm.js} +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +32 -30
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +32 -30
- package/dist/commercetools-frontend-application-shell.esm.js +4 -4
- package/dist/{connected-square-C1WU9BVu.cjs.dev.js → connected-square-2d046cb8.cjs.prod.js} +4 -4
- package/dist/{connected-square-C1WU9BVu.cjs.prod.js → connected-square-a2fea344.cjs.dev.js} +4 -4
- package/dist/{connected-square-Cbji-E55.esm.js → connected-square-fe6a790f.esm.js} +1 -1
- package/dist/{custom-view-dev-host-CIp-w2vx.cjs.prod.js → custom-view-dev-host-3305e2bc.cjs.prod.js} +18 -18
- package/dist/{custom-view-dev-host-CBMjNmL_.esm.js → custom-view-dev-host-640c9532.esm.js} +4 -4
- package/dist/{custom-view-dev-host-DVUsQqxA.cjs.dev.js → custom-view-dev-host-75992987.cjs.dev.js} +18 -18
- package/dist/{error-apologizer-BZx6w4kU.esm.js → error-apologizer-76f087f4.esm.js} +1 -1
- package/dist/{error-apologizer-BOXlzr0J.cjs.dev.js → error-apologizer-84dc825c.cjs.prod.js} +5 -5
- package/dist/{error-apologizer-BOXlzr0J.cjs.prod.js → error-apologizer-f6793491.cjs.dev.js} +5 -5
- package/dist/{gear-ChG3hBKf.cjs.dev.js → gear-4f7cde98.cjs.prod.js} +4 -4
- package/dist/{gear-3UwANbiU.esm.js → gear-ee90ba83.esm.js} +1 -1
- package/dist/{gear-ChG3hBKf.cjs.prod.js → gear-f2668579.cjs.dev.js} +4 -4
- package/dist/{get-mc-origin-_NmCItC0.cjs.dev.js → get-mc-origin-8f7a578c.cjs.prod.js} +4 -4
- package/dist/{get-mc-origin-_NmCItC0.cjs.prod.js → get-mc-origin-a86dff20.cjs.dev.js} +4 -4
- package/dist/{heart-NMdIq3_v.cjs.dev.js → heart-01f01038.cjs.prod.js} +4 -4
- package/dist/{heart-wVW-_6g7.esm.js → heart-86f780f3.esm.js} +1 -1
- package/dist/{heart-NMdIq3_v.cjs.prod.js → heart-e49dd92a.cjs.dev.js} +4 -4
- package/dist/{index-B1qlvYs8.cjs.prod.js → index-245e2980.cjs.prod.js} +15 -15
- package/dist/{index-_uv48GB6.esm.js → index-2f4618a5.esm.js} +26 -26
- package/dist/{index-Di6my-Pi.cjs.dev.js → index-614accc4.cjs.dev.js} +15 -15
- package/dist/{index-TsSkBxMJ.cjs.prod.js → index-6c32e6d7.cjs.prod.js} +77 -77
- package/dist/{index-A1guGz9o.esm.js → index-86039df7.esm.js} +4 -4
- package/dist/{index-B8BEzpzJ.cjs.dev.js → index-fb5f5a80.cjs.dev.js} +77 -77
- package/dist/{list-with-search-D5MULvFD.cjs.dev.js → list-with-search-027ab8eb.cjs.dev.js} +4 -4
- package/dist/{list-with-search-D5MULvFD.cjs.prod.js → list-with-search-6462447e.cjs.prod.js} +4 -4
- package/dist/{list-with-search-BR2LHaVL.esm.js → list-with-search-d2901e34.esm.js} +1 -1
- package/dist/{navbar-Ce_9gl4P.esm.js → navbar-9a40ead9.esm.js} +23 -23
- package/dist/{navbar-DQrQNRTd.cjs.dev.js → navbar-c51e0607.cjs.dev.js} +89 -89
- package/dist/{navbar-pofzN_Jd.cjs.prod.js → navbar-e287ce25.cjs.prod.js} +89 -89
- package/dist/{oidc-CB4raOTc.cjs.dev.js → oidc-8827f9fe.cjs.dev.js} +11 -6
- package/dist/{oidc-L-d-DX4J.esm.js → oidc-b2520905.esm.js} +7 -2
- package/dist/{oidc-callback-BnmeifSC.cjs.prod.js → oidc-callback-b5fc1aa2.cjs.prod.js} +21 -21
- package/dist/{oidc-callback-DF_a_cff.cjs.dev.js → oidc-callback-bc80389e.cjs.dev.js} +21 -21
- package/dist/{oidc-callback-DelrTHRw.esm.js → oidc-callback-dd5500b7.esm.js} +6 -6
- package/dist/{oidc-CB4raOTc.cjs.prod.js → oidc-d74e6aa2.cjs.prod.js} +11 -6
- package/dist/{paperclip-C0p8mWla.cjs.dev.js → paperclip-005ec544.cjs.dev.js} +4 -4
- package/dist/{paperclip-C015tsHx.esm.js → paperclip-a820ee87.esm.js} +1 -1
- package/dist/{paperclip-C0p8mWla.cjs.prod.js → paperclip-fe72a70d.cjs.prod.js} +4 -4
- package/dist/{plugin-BTWLp3pQ.cjs.dev.js → plugin-81ae1044.cjs.prod.js} +4 -4
- package/dist/{plugin-CbdhEahs.esm.js → plugin-c7bf9e53.esm.js} +1 -1
- package/dist/{plugin-BTWLp3pQ.cjs.prod.js → plugin-feb22442.cjs.dev.js} +4 -4
- package/dist/{project-container-ByreXOSS.cjs.dev.js → project-container-1c80e102.cjs.dev.js} +25 -25
- package/dist/{project-container-BtTcmn5s.cjs.prod.js → project-container-8b00270f.cjs.prod.js} +25 -25
- package/dist/{project-container-03Va5HMJ.esm.js → project-container-fbf49b70.esm.js} +10 -10
- package/dist/{project-expired-CwhVvrjd.esm.js → project-expired-1c9af59a.esm.js} +6 -6
- package/dist/{project-expired-DbygFsRt.cjs.dev.js → project-expired-d4dde004.cjs.dev.js} +10 -10
- package/dist/{project-expired-DxbSAzc-.cjs.prod.js → project-expired-f018f879.cjs.prod.js} +10 -10
- package/dist/{project-not-found-B_ZX0KSF.cjs.dev.js → project-not-found-0f5ac561.cjs.dev.js} +10 -10
- package/dist/{project-not-found-EyzSEDMi.esm.js → project-not-found-65614070.esm.js} +6 -6
- package/dist/{project-not-found-B382v9g8.cjs.prod.js → project-not-found-91cf4ccc.cjs.prod.js} +10 -10
- package/dist/{project-not-initialized-CE0RpJOi.cjs.dev.js → project-not-initialized-93a847b3.cjs.prod.js} +10 -10
- package/dist/{project-not-initialized-Yi5ArENH.esm.js → project-not-initialized-e77dc592.esm.js} +6 -6
- package/dist/{project-not-initialized-BrIsrCcH.cjs.prod.js → project-not-initialized-fbbedf5d.cjs.dev.js} +10 -10
- package/dist/{project-suspended-CFgux6uB.cjs.dev.js → project-suspended-53f153f9.cjs.dev.js} +10 -10
- package/dist/{project-suspended-DYWgwhSp.cjs.prod.js → project-suspended-8d3e02d2.cjs.prod.js} +10 -10
- package/dist/{project-suspended-DVtTPzYM.esm.js → project-suspended-b6956f20.esm.js} +6 -6
- package/dist/{redirect-to-login-CSibA2cS.cjs.prod.js → redirect-to-login-12f467b8.cjs.prod.js} +6 -6
- package/dist/{redirect-to-login-C7e206Ly.esm.js → redirect-to-login-2944c890.esm.js} +5 -5
- package/dist/{redirect-to-login-BUzKQvHB.cjs.dev.js → redirect-to-login-3bee13ba.cjs.dev.js} +6 -6
- package/dist/{redirect-to-logout-DWVTmFvG.esm.js → redirect-to-logout-95592a81.esm.js} +8 -8
- package/dist/{redirect-to-logout-DEzFWiQg.cjs.dev.js → redirect-to-logout-b91980e0.cjs.dev.js} +11 -11
- package/dist/{redirect-to-logout-BCoXrLcq.cjs.prod.js → redirect-to-logout-f97131fe.cjs.prod.js} +11 -11
- package/dist/{redirect-to-project-create-C3T20NCC.esm.js → redirect-to-project-create-9249e554.esm.js} +3 -3
- package/dist/{redirect-to-project-create-fdOEP1JY.cjs.prod.js → redirect-to-project-create-e4ff7797.cjs.prod.js} +10 -10
- package/dist/{redirect-to-project-create-Cm_YLQ6s.cjs.dev.js → redirect-to-project-create-f4f01842.cjs.dev.js} +10 -10
- package/dist/{redirector-kEZK2yk2.cjs.prod.js → redirector-0c72d0a4.cjs.prod.js} +5 -5
- package/dist/{redirector-BJKhr_2m.cjs.dev.js → redirector-72ccfbc2.cjs.dev.js} +5 -5
- package/dist/{redirector-C43H-HmU.esm.js → redirector-d856975f.esm.js} +2 -2
- package/dist/{requests-in-flight-loader-CMjFLaV7.cjs.dev.js → requests-in-flight-loader-0471a8ec.cjs.dev.js} +9 -9
- package/dist/{requests-in-flight-loader-DTptkPmL.esm.js → requests-in-flight-loader-5f25fce0.esm.js} +5 -5
- package/dist/{requests-in-flight-loader-ClSkyZTE.cjs.prod.js → requests-in-flight-loader-96fa7436.cjs.prod.js} +9 -9
- package/dist/{rocket-MzQlvF-e.cjs.dev.js → rocket-3372731a.cjs.dev.js} +4 -4
- package/dist/{rocket-n2pUnnN1.esm.js → rocket-bacf24be.esm.js} +1 -1
- package/dist/{rocket-MzQlvF-e.cjs.prod.js → rocket-cb99be06.cjs.prod.js} +4 -4
- package/dist/{route-catch-all-CFVFzkJy.esm.js → route-catch-all-7803b1fd.esm.js} +2 -2
- package/dist/{route-catch-all-CS-vK6G9.cjs.prod.js → route-catch-all-8e71a93c.cjs.prod.js} +3 -3
- package/dist/{route-catch-all-Bd3kJTWo.cjs.dev.js → route-catch-all-b979e1fd.cjs.dev.js} +3 -3
- package/dist/{service-page-project-switcher-DM8mXygs.cjs.prod.js → service-page-project-switcher-066f1abe.cjs.prod.js} +3 -3
- package/dist/{service-page-project-switcher-CUpN-hB_.cjs.dev.js → service-page-project-switcher-07f69b66.cjs.dev.js} +3 -3
- package/dist/{service-page-project-switcher-Cbyw7uBi.esm.js → service-page-project-switcher-2c445ff4.esm.js} +1 -1
- package/dist/{speedometer-CkbhtRm7.cjs.dev.js → speedometer-26f52e73.cjs.prod.js} +4 -4
- package/dist/{speedometer-qTE8jlw4.esm.js → speedometer-4c8e0b9c.esm.js} +1 -1
- package/dist/{speedometer-CkbhtRm7.cjs.prod.js → speedometer-c1ec5a1d.cjs.dev.js} +4 -4
- package/dist/{star-CHXVXKAZ.cjs.dev.js → star-6b9a91d2.cjs.dev.js} +4 -4
- package/dist/{star-Cd7NpXow.esm.js → star-af90a9c6.esm.js} +1 -1
- package/dist/{star-CHXVXKAZ.cjs.prod.js → star-e4902bbb.cjs.prod.js} +4 -4
- package/dist/{tag-multi-DHz3Ss3I.cjs.dev.js → tag-multi-1c065f61.cjs.prod.js} +4 -4
- package/dist/{tag-multi-CaoK1Txv.esm.js → tag-multi-4c2742de.esm.js} +1 -1
- package/dist/{tag-multi-DHz3Ss3I.cjs.prod.js → tag-multi-abef3e15.cjs.dev.js} +4 -4
- package/dist/{tree-structure-T11as8Tg.cjs.dev.js → tree-structure-3ec98cce.cjs.prod.js} +4 -4
- package/dist/{tree-structure-T11as8Tg.cjs.prod.js → tree-structure-96ab0b7e.cjs.dev.js} +4 -4
- package/dist/{tree-structure-C4ljezCR.esm.js → tree-structure-ca0498a0.esm.js} +1 -1
- package/dist/{use-applications-menu-GILf-qBs.cjs.prod.js → use-applications-menu-8984efa1.cjs.prod.js} +8 -8
- package/dist/{use-applications-menu-D5WOUztt.esm.js → use-applications-menu-bc2b9a66.esm.js} +1 -1
- package/dist/{use-applications-menu-GILf-qBs.cjs.dev.js → use-applications-menu-bd718ac8.cjs.dev.js} +8 -8
- package/dist/{user-filled-BtKs1mdQ.cjs.dev.js → user-filled-26f333b2.cjs.prod.js} +4 -4
- package/dist/{user-filled-BtKs1mdQ.cjs.prod.js → user-filled-34aeebcc.cjs.dev.js} +4 -4
- package/dist/{user-filled-Bm7DCxqD.esm.js → user-filled-61d8a81b.esm.js} +1 -1
- package/dist/{user-settings-menu-Bx9uqAX5.cjs.prod.js → user-settings-menu-013f0041.cjs.prod.js} +23 -23
- package/dist/{user-settings-menu-FUjp-WcB.esm.js → user-settings-menu-16e8d020.esm.js} +3 -3
- package/dist/{user-settings-menu--OOZgMo-.cjs.dev.js → user-settings-menu-dc598434.cjs.dev.js} +23 -23
- package/dist/{world-KIE1y9HU.cjs.dev.js → world-22189397.cjs.prod.js} +4 -4
- package/dist/{world-KIE1y9HU.cjs.prod.js → world-500baeb2.cjs.dev.js} +4 -4
- package/dist/{world-CFOYmDBy.esm.js → world-523efd61.esm.js} +1 -1
- package/package.json +16 -16
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +5 -3
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +5 -3
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +22 -21
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +22 -21
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +6 -7
- /package/dist/{get-mc-origin-gelxhmON.esm.js → get-mc-origin-fecfee07.esm.js} +0 -0
- /package/dist/{location-Bie7DUXJ.cjs.dev.js → location-537e0660.cjs.prod.js} +0 -0
- /package/dist/{location-Bie7DUXJ.cjs.prod.js → location-c835b8df.cjs.dev.js} +0 -0
- /package/dist/{location-CvWExDW6.esm.js → location-f21dbc25.esm.js} +0 -0
- /package/dist/{use-is-served-by-proxy-BPtJn8Xe.cjs.dev.js → use-is-served-by-proxy-28f19a6f.cjs.dev.js} +0 -0
- /package/dist/{use-is-served-by-proxy-BPtJn8Xe.cjs.prod.js → use-is-served-by-proxy-480e8de8.cjs.prod.js} +0 -0
- /package/dist/{use-is-served-by-proxy-CqFqj_JM.esm.js → use-is-served-by-proxy-a383da4b.esm.js} +0 -0
|
@@ -32,7 +32,7 @@ var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
|
32
32
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
33
33
|
var reduxLogger = require('redux-logger');
|
|
34
34
|
|
|
35
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
35
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
36
36
|
|
|
37
37
|
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
38
38
|
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
@@ -56,15 +56,15 @@ var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsW
|
|
|
56
56
|
const isShowRequestInFlightAction = action => action.type === constants.SHOW_LOADING;
|
|
57
57
|
const isHideRequestInFlightAction = action => action.type === constants.HIDE_LOADING;
|
|
58
58
|
const excludeFirstOccurrence = (list, item) => {
|
|
59
|
-
const index = _indexOfInstanceProperty__default
|
|
60
|
-
return [..._sliceInstanceProperty__default
|
|
59
|
+
const index = _indexOfInstanceProperty__default["default"](list).call(list, item);
|
|
60
|
+
return [..._sliceInstanceProperty__default["default"](list).call(list, 0, index), ..._sliceInstanceProperty__default["default"](list).call(list, index + 1)];
|
|
61
61
|
};
|
|
62
62
|
var requestsInFlightReducer = (requestsInFlight, action) => {
|
|
63
63
|
if (!requestsInFlight || !action) return [];
|
|
64
64
|
if (isShowRequestInFlightAction(action)) return [...requestsInFlight, action.payload];
|
|
65
65
|
if (isHideRequestInFlightAction(action)) {
|
|
66
66
|
// may only remove first occurence
|
|
67
|
-
if (!_includesInstanceProperty__default
|
|
67
|
+
if (!_includesInstanceProperty__default["default"](requestsInFlight).call(requestsInFlight, action.payload)) {
|
|
68
68
|
sentry.reportErrorToSentry(new Error(`Tried to hide "${action.payload}", but it was not progressing!`));
|
|
69
69
|
return requestsInFlight;
|
|
70
70
|
}
|
|
@@ -84,7 +84,7 @@ const hideNotificationsMiddleware = _ref => {
|
|
|
84
84
|
if (isHideAllNotificationsAction(action) || isAddNotificationErrorAction(action)) {
|
|
85
85
|
var _context;
|
|
86
86
|
const state = getState();
|
|
87
|
-
_forEachInstanceProperty__default
|
|
87
|
+
_forEachInstanceProperty__default["default"](_context = reactNotifications.selectPageNotifications(state)).call(_context, notification => {
|
|
88
88
|
next(notifications.removeNotification(notification.id));
|
|
89
89
|
});
|
|
90
90
|
}
|
|
@@ -110,14 +110,14 @@ const loggerMiddleware = reduxLogger.createLogger({
|
|
|
110
110
|
const type = action.type,
|
|
111
111
|
payload = action.payload;
|
|
112
112
|
if (!type) return false;
|
|
113
|
-
if (_startsWithInstanceProperty__default
|
|
113
|
+
if (_startsWithInstanceProperty__default["default"](type).call(type, 'SHOW_') || _startsWithInstanceProperty__default["default"](type).call(type, 'HIDE_') || _startsWithInstanceProperty__default["default"](type).call(type, 'APOLLO_')) return false;
|
|
114
114
|
switch (type) {
|
|
115
115
|
case notifications.REMOVE_NOTIFICATION:
|
|
116
116
|
return false;
|
|
117
117
|
case notifications.ADD_NOTIFICATION:
|
|
118
118
|
{
|
|
119
119
|
const ignoredKinds = ['api-error', 'unexpected-error'];
|
|
120
|
-
return !_includesInstanceProperty__default
|
|
120
|
+
return !_includesInstanceProperty__default["default"](ignoredKinds).call(ignoredKinds, payload.kind);
|
|
121
121
|
}
|
|
122
122
|
default:
|
|
123
123
|
return true;
|
|
@@ -125,11 +125,11 @@ const loggerMiddleware = reduxLogger.createLogger({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
|
|
128
|
-
function ownKeys(e, r) { var t = _Object$keys__default
|
|
129
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default
|
|
128
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
129
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
130
130
|
const mergeObjectValues = object => {
|
|
131
131
|
var _context;
|
|
132
|
-
return _reduceInstanceProperty__default
|
|
132
|
+
return _reduceInstanceProperty__default["default"](_context = _Object$entries__default["default"](object)).call(_context, (acc, _ref) => {
|
|
133
133
|
let _ref2 = _slicedToArray(_ref, 2),
|
|
134
134
|
value = _ref2[1];
|
|
135
135
|
return _objectSpread(_objectSpread({}, acc), value);
|
|
@@ -140,7 +140,7 @@ const patchedGetCorrelationId = () => applicationShellConnectors.getCorrelationI
|
|
|
140
140
|
});
|
|
141
141
|
const getAdditionalHeaders = () => {
|
|
142
142
|
const sessionToken = applicationShellConnectors.oidcStorage.getSessionToken();
|
|
143
|
-
return omitEmpty__default
|
|
143
|
+
return omitEmpty__default["default"]({
|
|
144
144
|
[constants.SUPPORTED_HEADERS.AUTHORIZATION]: sessionToken ? `Bearer ${sessionToken}` : undefined,
|
|
145
145
|
[constants.SUPPORTED_HEADERS.X_APPLICATION_ID]: window.app.applicationIdentifier,
|
|
146
146
|
[constants.SUPPORTED_HEADERS.X_CUSTOM_VIEW_ID]: window.app.customViewId,
|
|
@@ -170,7 +170,7 @@ const createInternalReducer = function () {
|
|
|
170
170
|
// notifications:
|
|
171
171
|
// Unexpected key "new Key" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "requestsInFlight", "notifications". Unexpected keys will be ignored.
|
|
172
172
|
// https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer
|
|
173
|
-
const preloadedStateReducers = mapValues__default
|
|
173
|
+
const preloadedStateReducers = mapValues__default["default"](preloadedState, value => () => value);
|
|
174
174
|
|
|
175
175
|
// NOTE: since we don't know in advance which reducers will be injected,
|
|
176
176
|
// we let TypeScript infer the type from the reducer map.
|
|
@@ -193,7 +193,7 @@ const createReduxStore = function () {
|
|
|
193
193
|
},
|
|
194
194
|
middleware: getDefaultMiddleware => {
|
|
195
195
|
var _context2;
|
|
196
|
-
return _concatInstanceProperty__default
|
|
196
|
+
return _concatInstanceProperty__default["default"](_context2 = getDefaultMiddleware({
|
|
197
197
|
// https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data
|
|
198
198
|
serializableCheck: false,
|
|
199
199
|
// This default check is logging warnings to console for some MC FE tests, probably
|
|
@@ -212,7 +212,7 @@ const createReduxStore = function () {
|
|
|
212
212
|
enhancedStore.injectReducers = _ref3 => {
|
|
213
213
|
let id = _ref3.id,
|
|
214
214
|
reducers = _ref3.reducers;
|
|
215
|
-
const hasReducerBeenInjected = _Reflect$has__default
|
|
215
|
+
const hasReducerBeenInjected = _Reflect$has__default["default"](enhancedStore.injectedReducers, id) && enhancedStore.injectedReducers[id] === reducers;
|
|
216
216
|
if (!hasReducerBeenInjected) {
|
|
217
217
|
// Keep track of the reducer by id, so we can check if it's been injected aleady
|
|
218
218
|
enhancedStore.injectedReducers[id] = reducers;
|
|
@@ -229,7 +229,7 @@ const createReduxStore = function () {
|
|
|
229
229
|
};
|
|
230
230
|
var internalReduxStore = createReduxStore();
|
|
231
231
|
|
|
232
|
-
const RouteCatchAll = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./route-catch-all-
|
|
232
|
+
const RouteCatchAll = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./route-catch-all-8e71a93c.cjs.prod.js' /* webpackChunkName: "route-catch-all" */); }));
|
|
233
233
|
|
|
234
234
|
exports.RouteCatchAll = RouteCatchAll;
|
|
235
235
|
exports.applyDefaultMiddlewares = applyDefaultMiddlewares;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { lazy, useEffect, useMemo, useRef, useLayoutEffect, Suspense, Component, StrictMode, useState, useCallback } from 'react';
|
|
2
2
|
import { useLocation, Switch, Route, Redirect, Router, useRouteMatch, useHistory, generatePath } from 'react-router-dom';
|
|
3
|
-
import { R as RouteCatchAll, i as internalReduxStore } from './index-
|
|
3
|
+
import { R as RouteCatchAll, i as internalReduxStore } from './index-86039df7.esm.js';
|
|
4
4
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
5
5
|
import _styled from '@emotion/styled/base';
|
|
6
6
|
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
@@ -21,14 +21,14 @@ import { STORAGE_KEYS, GRAPHQL_TARGETS, featureFlags, LOGOUT_REASONS, DOMAINS, C
|
|
|
21
21
|
import { AsyncLocaleData } from '@commercetools-frontend/i18n';
|
|
22
22
|
import { NotificationsList } from '@commercetools-frontend/react-notifications';
|
|
23
23
|
import { reportErrorToSentry, SentryUserTracker, boot } from '@commercetools-frontend/sentry';
|
|
24
|
-
import {
|
|
24
|
+
import { D as DIMENSIONS, C as CONTAINERS, N as NAVBAR, b as buildOidcScope, O as OIDC_CLAIMS } from './oidc-b2520905.esm.js';
|
|
25
25
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
26
26
|
import { customProperties, designTokens, ThemeProvider } from '@commercetools-uikit/design-system';
|
|
27
27
|
import Spacings from '@commercetools-uikit/spacings';
|
|
28
28
|
import { defineMessages, useIntl, FormattedMessage, IntlProvider } from 'react-intl';
|
|
29
29
|
import FlatButton from '@commercetools-uikit/flat-button';
|
|
30
30
|
import { AngleLeftIcon } from '@commercetools-uikit/icons';
|
|
31
|
-
import { l as location } from './location-
|
|
31
|
+
import { l as location } from './location-f21dbc25.esm.js';
|
|
32
32
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
33
33
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
34
34
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
@@ -70,9 +70,9 @@ import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
70
70
|
import { showUnexpectedErrorNotification } from '@commercetools-frontend/actions-global';
|
|
71
71
|
|
|
72
72
|
// NOTE: This string will be replaced on build time with the package version.
|
|
73
|
-
var version = "27.
|
|
73
|
+
var version = "27.6.0";
|
|
74
74
|
|
|
75
|
-
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-
|
|
75
|
+
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-5f25fce0.esm.js' /* webpackChunkName: "requests-in-flight-loader" */));
|
|
76
76
|
|
|
77
77
|
// Attempt to load the `projectKey` from localStorage
|
|
78
78
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -218,7 +218,7 @@ var messages = defineMessages({
|
|
|
218
218
|
|
|
219
219
|
const _excluded$3 = ["children"];
|
|
220
220
|
function ownKeys$a(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
221
|
-
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$a(Object(t),
|
|
221
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
222
222
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
223
223
|
var ProjectsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchUserProjects" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "user" }, name: { kind: "Name", value: "me" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "projects" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "isProductionProject" }, arguments: [], directives: [] }] } }] } }] } }] } }], loc: { start: 0, end: 258, source: { body: "query FetchUserProjects {\n user: me {\n id\n projects {\n total\n results {\n name\n key\n suspension {\n isActive\n }\n expiry {\n isActive\n }\n isProductionProject\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
224
224
|
const PROJECT_SWITCHER_LABEL_ID = 'project-switcher-label';
|
|
@@ -359,7 +359,7 @@ ProjectSwitcher.displayName = 'ProjectSwitcher';
|
|
|
359
359
|
// eslint-disable-next-line import/prefer-default-export
|
|
360
360
|
const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
|
|
361
361
|
|
|
362
|
-
const UserSettingsMenu = /*#__PURE__*/lazy(() => import('./user-settings-menu-
|
|
362
|
+
const UserSettingsMenu = /*#__PURE__*/lazy(() => import('./user-settings-menu-16e8d020.esm.js' /* webpackChunkName: "user-settings-menu" */));
|
|
363
363
|
|
|
364
364
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
365
365
|
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
@@ -507,7 +507,7 @@ const ConfigureIntlProvider = props => {
|
|
|
507
507
|
};
|
|
508
508
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
509
509
|
|
|
510
|
-
const ErrorApologizer = /*#__PURE__*/lazy(() => import('./error-apologizer-
|
|
510
|
+
const ErrorApologizer = /*#__PURE__*/lazy(() => import('./error-apologizer-76f087f4.esm.js' /* webpackChunkName: "error-apologizer" */));
|
|
511
511
|
|
|
512
512
|
var ProjectQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProject" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "projectKey" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "project" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "key" }, value: { kind: "Variable", name: { kind: "Name", value: "projectKey" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "currencies" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "initialized" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "daysLeft" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "isProductionProject" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "allPermissionsForAllApplications" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "owner" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "sampleDataImportDataset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "isUserAdminOfCurrentProject" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productCatalogModel" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 1035, source: { body: "query FetchProject($projectKey: String) {\n project(key: $projectKey) {\n key\n version\n name\n countries\n currencies\n languages\n initialized\n expiry {\n isActive\n daysLeft\n }\n suspension {\n isActive\n reason\n }\n isProductionProject\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n allPermissionsForAllApplications {\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n }\n owner {\n id\n name\n }\n sampleDataImportDataset\n isUserAdminOfCurrentProject\n productCatalogModel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
513
513
|
const FetchProject = props => {
|
|
@@ -555,16 +555,16 @@ const FetchUser = props => {
|
|
|
555
555
|
};
|
|
556
556
|
FetchUser.displayName = 'FetchUser';
|
|
557
557
|
|
|
558
|
-
const Navbar = /*#__PURE__*/lazy(() => import('./navbar-
|
|
558
|
+
const Navbar = /*#__PURE__*/lazy(() => import('./navbar-9a40ead9.esm.js' /* webpackChunkName: "navbar" */));
|
|
559
559
|
|
|
560
|
-
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-
|
|
560
|
+
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-fbf49b70.esm.js' /* webpackChunkName: "project-container" */));
|
|
561
561
|
|
|
562
|
-
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-
|
|
562
|
+
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-95592a81.esm.js' /* webpackChunkName: "redirect-to-logout" */));
|
|
563
563
|
|
|
564
|
-
const RedirectToProjectCreate = /*#__PURE__*/lazy(() => import('./redirect-to-project-create-
|
|
564
|
+
const RedirectToProjectCreate = /*#__PURE__*/lazy(() => import('./redirect-to-project-create-9249e554.esm.js' /* webpackChunkName: "redirect-to-project-create" */));
|
|
565
565
|
|
|
566
566
|
function ownKeys$9(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
567
|
-
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$9(Object(t),
|
|
567
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$9(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$9(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
568
568
|
var AllFeaturesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "AllFeatures" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 72, source: { body: "query AllFeatures {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
569
569
|
// This value is hard-coded here because we want to make sure that the
|
|
570
570
|
// app uses our account of LD. The value is meant to be public, so there
|
|
@@ -690,7 +690,7 @@ const ThemeSwitcher = () => {
|
|
|
690
690
|
};
|
|
691
691
|
|
|
692
692
|
function ownKeys$8(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
693
|
-
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$8(Object(t),
|
|
693
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$8(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$8(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
694
694
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
695
695
|
const getHasUnauthorizedError = graphQLErrors => _findInstanceProperty(graphQLErrors).call(graphQLErrors, gqlError => gqlError.extensions && gqlError.extensions.code && gqlError.extensions.code === 'UNAUTHENTICATED');
|
|
696
696
|
const getHasUserBeenDeletedError = graphQLErrors => _findInstanceProperty(graphQLErrors).call(graphQLErrors, gqlError => {
|
|
@@ -1014,7 +1014,7 @@ const ApplicationPageTitle = _ref => {
|
|
|
1014
1014
|
ApplicationPageTitle.displayName = 'ApplicationPageTitle';
|
|
1015
1015
|
|
|
1016
1016
|
function ownKeys$7(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1017
|
-
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$7(Object(t),
|
|
1017
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1018
1018
|
const SuspendedRoute = props => jsx(Route, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
1019
1019
|
children: jsx(Suspense, {
|
|
1020
1020
|
fallback: jsx(LoadingSpinner, {}),
|
|
@@ -1025,7 +1025,7 @@ SuspendedRoute.displayName = 'SuspendedRoute';
|
|
|
1025
1025
|
|
|
1026
1026
|
const _excluded$2 = ["condition", "fallback", "children"];
|
|
1027
1027
|
function ownKeys$6(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1028
|
-
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$6(Object(t),
|
|
1028
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$6(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$6(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1029
1029
|
const ProtectedRoute = _ref => {
|
|
1030
1030
|
let condition = _ref.condition,
|
|
1031
1031
|
_ref$fallback = _ref.fallback,
|
|
@@ -1041,7 +1041,7 @@ const ProtectedRoute = _ref => {
|
|
|
1041
1041
|
|
|
1042
1042
|
const _excluded$1 = ["loading", "fallback"];
|
|
1043
1043
|
function ownKeys$5(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1044
|
-
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(t),
|
|
1044
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1045
1045
|
const SuspendedProtectedRoute = _ref => {
|
|
1046
1046
|
let _ref$loading = _ref.loading,
|
|
1047
1047
|
loading = _ref$loading === void 0 ? jsx(LoadingSpinner, {}) : _ref$loading,
|
|
@@ -1187,10 +1187,10 @@ const hasCachedAuthenticationState = () => {
|
|
|
1187
1187
|
return window.localStorage.getItem(STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1188
1188
|
};
|
|
1189
1189
|
|
|
1190
|
-
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-
|
|
1190
|
+
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-dd5500b7.esm.js' /* webpackChunkName: "oidc-callback" */));
|
|
1191
1191
|
|
|
1192
1192
|
function ownKeys$4(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1193
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t),
|
|
1193
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1194
1194
|
const Authenticated = props => {
|
|
1195
1195
|
// We attempt to see if the user was already authenticated by looking
|
|
1196
1196
|
// at the "cached" flag in local storage.
|
|
@@ -1294,7 +1294,7 @@ let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
1294
1294
|
}(Component);
|
|
1295
1295
|
|
|
1296
1296
|
function ownKeys$3(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1297
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$3(Object(t),
|
|
1297
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$3(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$3(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1298
1298
|
/**
|
|
1299
1299
|
* NOTE:
|
|
1300
1300
|
* This function try-catches around a `JSON.parse` and return
|
|
@@ -1389,7 +1389,7 @@ const ApplicationShellProvider = props => {
|
|
|
1389
1389
|
};
|
|
1390
1390
|
ApplicationShellProvider.displayName = 'ApplicationShellProvider';
|
|
1391
1391
|
|
|
1392
|
-
const RedirectToLogin = /*#__PURE__*/lazy(() => import('./redirect-to-login-
|
|
1392
|
+
const RedirectToLogin = /*#__PURE__*/lazy(() => import('./redirect-to-login-2944c890.esm.js' /* webpackChunkName: "redirect-to-login" */));
|
|
1393
1393
|
|
|
1394
1394
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
1395
1395
|
const styles = process.env.NODE_ENV === "production" ? {
|
|
@@ -1457,7 +1457,7 @@ const ApplicationShell = props => {
|
|
|
1457
1457
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1458
1458
|
ApplicationShell.version = version;
|
|
1459
1459
|
|
|
1460
|
-
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-
|
|
1460
|
+
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-640c9532.esm.js' /* webpackChunkName: "custom-view-dev-host" */));
|
|
1461
1461
|
|
|
1462
1462
|
function CustomViewFlopFlipProvider(props) {
|
|
1463
1463
|
const adapterArgs = useMemo(() => ({
|
|
@@ -1474,7 +1474,7 @@ function CustomViewFlopFlipProvider(props) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
1476
|
function ownKeys$2(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1477
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(t),
|
|
1477
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1478
1478
|
const CustomViewWithPermissionCheck = props => {
|
|
1479
1479
|
const permissionKeys = entryPointUriPathToPermissionKeys(CUSTOM_VIEW_HOST_ENTRY_POINT_URI_PATH);
|
|
1480
1480
|
|
|
@@ -1571,7 +1571,7 @@ const customViewsThemesOverrides = {
|
|
|
1571
1571
|
};
|
|
1572
1572
|
|
|
1573
1573
|
function ownKeys$1(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1574
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(t),
|
|
1574
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1575
1575
|
const browserLocale = getBrowserLocale(window);
|
|
1576
1576
|
function NotificationsContainer(props) {
|
|
1577
1577
|
return jsxs(Fragment, {
|
|
@@ -1868,7 +1868,7 @@ function setupGlobalErrorListener() {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
|
|
1870
1870
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1871
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t),
|
|
1871
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1872
1872
|
|
|
1873
1873
|
/**
|
|
1874
1874
|
* The route path to match. Usually it starts with `/:projectKey/my-entry-point`.
|
|
@@ -1907,4 +1907,4 @@ function useRoutesCreator() {
|
|
|
1907
1907
|
};
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
-
export { ApplicationShell as A, ConfigureIntlProvider as C, ErrorBoundary as E, FetchProject as F, InjectReducers as I, ProjectSwitcher as P, RedirectToLogin as R, SetupFlopFlipProvider as S,
|
|
1910
|
+
export { ApplicationShell as A, ConfigureIntlProvider as C, ErrorBoundary as E, FetchProject as F, InjectReducers as I, ProjectSwitcher as P, RedirectToLogin as R, SetupFlopFlipProvider as S, RedirectToProjectCreate as a, ApplicationLoader as b, REQUESTS_IN_FLIGHT_LOADER_DOM_ID as c, ApplicationShellProvider as d, ApplicationPageTitle as e, CustomViewShellWrapper as f, getBrowserLocale as g, FetchUser as h, ErrorApologizer as i, RedirectToLogout as j, SuspendedRoute as k, ProtectedRoute as l, SuspendedProtectedRoute as m, getPreviousProjectKey as n, setupGlobalErrorListener as s, useRoutesCreator as u, version as v };
|
|
@@ -32,7 +32,7 @@ var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
|
32
32
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
33
33
|
var reduxLogger = require('redux-logger');
|
|
34
34
|
|
|
35
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
35
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
36
36
|
|
|
37
37
|
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
38
38
|
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
@@ -56,15 +56,15 @@ var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsW
|
|
|
56
56
|
const isShowRequestInFlightAction = action => action.type === constants.SHOW_LOADING;
|
|
57
57
|
const isHideRequestInFlightAction = action => action.type === constants.HIDE_LOADING;
|
|
58
58
|
const excludeFirstOccurrence = (list, item) => {
|
|
59
|
-
const index = _indexOfInstanceProperty__default
|
|
60
|
-
return [..._sliceInstanceProperty__default
|
|
59
|
+
const index = _indexOfInstanceProperty__default["default"](list).call(list, item);
|
|
60
|
+
return [..._sliceInstanceProperty__default["default"](list).call(list, 0, index), ..._sliceInstanceProperty__default["default"](list).call(list, index + 1)];
|
|
61
61
|
};
|
|
62
62
|
var requestsInFlightReducer = (requestsInFlight, action) => {
|
|
63
63
|
if (!requestsInFlight || !action) return [];
|
|
64
64
|
if (isShowRequestInFlightAction(action)) return [...requestsInFlight, action.payload];
|
|
65
65
|
if (isHideRequestInFlightAction(action)) {
|
|
66
66
|
// may only remove first occurence
|
|
67
|
-
if (!_includesInstanceProperty__default
|
|
67
|
+
if (!_includesInstanceProperty__default["default"](requestsInFlight).call(requestsInFlight, action.payload)) {
|
|
68
68
|
sentry.reportErrorToSentry(new Error(`Tried to hide "${action.payload}", but it was not progressing!`));
|
|
69
69
|
return requestsInFlight;
|
|
70
70
|
}
|
|
@@ -84,7 +84,7 @@ const hideNotificationsMiddleware = _ref => {
|
|
|
84
84
|
if (isHideAllNotificationsAction(action) || isAddNotificationErrorAction(action)) {
|
|
85
85
|
var _context;
|
|
86
86
|
const state = getState();
|
|
87
|
-
_forEachInstanceProperty__default
|
|
87
|
+
_forEachInstanceProperty__default["default"](_context = reactNotifications.selectPageNotifications(state)).call(_context, notification => {
|
|
88
88
|
next(notifications.removeNotification(notification.id));
|
|
89
89
|
});
|
|
90
90
|
}
|
|
@@ -110,14 +110,14 @@ const loggerMiddleware = reduxLogger.createLogger({
|
|
|
110
110
|
const type = action.type,
|
|
111
111
|
payload = action.payload;
|
|
112
112
|
if (!type) return false;
|
|
113
|
-
if (_startsWithInstanceProperty__default
|
|
113
|
+
if (_startsWithInstanceProperty__default["default"](type).call(type, 'SHOW_') || _startsWithInstanceProperty__default["default"](type).call(type, 'HIDE_') || _startsWithInstanceProperty__default["default"](type).call(type, 'APOLLO_')) return false;
|
|
114
114
|
switch (type) {
|
|
115
115
|
case notifications.REMOVE_NOTIFICATION:
|
|
116
116
|
return false;
|
|
117
117
|
case notifications.ADD_NOTIFICATION:
|
|
118
118
|
{
|
|
119
119
|
const ignoredKinds = ['api-error', 'unexpected-error'];
|
|
120
|
-
return !_includesInstanceProperty__default
|
|
120
|
+
return !_includesInstanceProperty__default["default"](ignoredKinds).call(ignoredKinds, payload.kind);
|
|
121
121
|
}
|
|
122
122
|
default:
|
|
123
123
|
return true;
|
|
@@ -125,11 +125,11 @@ const loggerMiddleware = reduxLogger.createLogger({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
|
|
128
|
-
function ownKeys(e, r) { var t = _Object$keys__default
|
|
129
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default
|
|
128
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
129
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
130
130
|
const mergeObjectValues = object => {
|
|
131
131
|
var _context;
|
|
132
|
-
return _reduceInstanceProperty__default
|
|
132
|
+
return _reduceInstanceProperty__default["default"](_context = _Object$entries__default["default"](object)).call(_context, (acc, _ref) => {
|
|
133
133
|
let _ref2 = _slicedToArray(_ref, 2),
|
|
134
134
|
value = _ref2[1];
|
|
135
135
|
return _objectSpread(_objectSpread({}, acc), value);
|
|
@@ -140,7 +140,7 @@ const patchedGetCorrelationId = () => applicationShellConnectors.getCorrelationI
|
|
|
140
140
|
});
|
|
141
141
|
const getAdditionalHeaders = () => {
|
|
142
142
|
const sessionToken = applicationShellConnectors.oidcStorage.getSessionToken();
|
|
143
|
-
return omitEmpty__default
|
|
143
|
+
return omitEmpty__default["default"]({
|
|
144
144
|
[constants.SUPPORTED_HEADERS.AUTHORIZATION]: sessionToken ? `Bearer ${sessionToken}` : undefined,
|
|
145
145
|
[constants.SUPPORTED_HEADERS.X_APPLICATION_ID]: window.app.applicationIdentifier,
|
|
146
146
|
[constants.SUPPORTED_HEADERS.X_CUSTOM_VIEW_ID]: window.app.customViewId,
|
|
@@ -170,7 +170,7 @@ const createInternalReducer = function () {
|
|
|
170
170
|
// notifications:
|
|
171
171
|
// Unexpected key "new Key" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "requestsInFlight", "notifications". Unexpected keys will be ignored.
|
|
172
172
|
// https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer
|
|
173
|
-
const preloadedStateReducers = mapValues__default
|
|
173
|
+
const preloadedStateReducers = mapValues__default["default"](preloadedState, value => () => value);
|
|
174
174
|
|
|
175
175
|
// NOTE: since we don't know in advance which reducers will be injected,
|
|
176
176
|
// we let TypeScript infer the type from the reducer map.
|
|
@@ -193,7 +193,7 @@ const createReduxStore = function () {
|
|
|
193
193
|
},
|
|
194
194
|
middleware: getDefaultMiddleware => {
|
|
195
195
|
var _context2;
|
|
196
|
-
return _concatInstanceProperty__default
|
|
196
|
+
return _concatInstanceProperty__default["default"](_context2 = getDefaultMiddleware({
|
|
197
197
|
// https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data
|
|
198
198
|
serializableCheck: false,
|
|
199
199
|
// This default check is logging warnings to console for some MC FE tests, probably
|
|
@@ -212,7 +212,7 @@ const createReduxStore = function () {
|
|
|
212
212
|
enhancedStore.injectReducers = _ref3 => {
|
|
213
213
|
let id = _ref3.id,
|
|
214
214
|
reducers = _ref3.reducers;
|
|
215
|
-
const hasReducerBeenInjected = _Reflect$has__default
|
|
215
|
+
const hasReducerBeenInjected = _Reflect$has__default["default"](enhancedStore.injectedReducers, id) && enhancedStore.injectedReducers[id] === reducers;
|
|
216
216
|
if (!hasReducerBeenInjected) {
|
|
217
217
|
// Keep track of the reducer by id, so we can check if it's been injected aleady
|
|
218
218
|
enhancedStore.injectedReducers[id] = reducers;
|
|
@@ -229,7 +229,7 @@ const createReduxStore = function () {
|
|
|
229
229
|
};
|
|
230
230
|
var internalReduxStore = createReduxStore();
|
|
231
231
|
|
|
232
|
-
const RouteCatchAll = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./route-catch-all-
|
|
232
|
+
const RouteCatchAll = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./route-catch-all-b979e1fd.cjs.dev.js' /* webpackChunkName: "route-catch-all" */); }));
|
|
233
233
|
|
|
234
234
|
exports.RouteCatchAll = RouteCatchAll;
|
|
235
235
|
exports.applyDefaultMiddlewares = applyDefaultMiddlewares;
|