@commercetools-frontend/application-shell 27.11.4 → 27.13.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/commercetools-frontend-application-shell.cjs.dev.js +6 -3
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +6 -3
- package/dist/commercetools-frontend-application-shell.esm.js +2 -2
- package/dist/{custom-view-dev-host-b158476a.cjs.dev.js → custom-view-dev-host-225a8ccf.cjs.dev.js} +1 -1
- package/dist/{custom-view-dev-host-8812d484.esm.js → custom-view-dev-host-385620d6.esm.js} +1 -1
- package/dist/{custom-view-dev-host-6f4ac206.cjs.prod.js → custom-view-dev-host-dac47713.cjs.prod.js} +1 -1
- package/dist/declarations/src/utils/performance-marks/performance-marks.d.ts +3 -9
- package/dist/{error-apologizer-84dc825c.cjs.prod.js → error-apologizer-15c6ddd9.cjs.dev.js} +17 -1
- package/dist/{error-apologizer-76f087f4.esm.js → error-apologizer-9ba7c125.esm.js} +18 -2
- package/dist/{error-apologizer-f6793491.cjs.dev.js → error-apologizer-c7c5c7b4.cjs.prod.js} +17 -1
- package/dist/{index-c4fedc0e.esm.js → index-1343faef.esm.js} +11 -19
- package/dist/{index-8f45ab35.cjs.dev.js → index-788e7c64.cjs.dev.js} +14 -23
- package/dist/{index-580979e5.cjs.prod.js → index-7f68eea2.cjs.prod.js} +14 -23
- package/dist/{navbar-dd20a305.esm.js → navbar-96d5f599.esm.js} +17 -6
- package/dist/{navbar-fd5960d6.cjs.dev.js → navbar-d7967989.cjs.dev.js} +16 -5
- package/dist/{navbar-91057b56.cjs.prod.js → navbar-fc0b817f.cjs.prod.js} +15 -4
- package/dist/{oidc-callback-ca30acd2.cjs.dev.js → oidc-callback-74f3cf98.cjs.dev.js} +1 -1
- package/dist/{oidc-callback-49b656da.cjs.prod.js → oidc-callback-896987e2.cjs.prod.js} +1 -1
- package/dist/{oidc-callback-5a29567c.esm.js → oidc-callback-bd5cf9b1.esm.js} +1 -1
- package/dist/{project-container-e40ed0a0.cjs.prod.js → project-container-3bc1d23b.cjs.prod.js} +5 -5
- package/dist/{project-container-53f7e88b.cjs.dev.js → project-container-873f2416.cjs.dev.js} +5 -5
- package/dist/{project-container-8a69a6c8.esm.js → project-container-a88d0a06.esm.js} +5 -5
- package/dist/{project-expired-f285f118.cjs.dev.js → project-expired-309199bd.cjs.dev.js} +2 -2
- package/dist/{project-expired-e339d2e9.cjs.prod.js → project-expired-d4bc38d5.cjs.prod.js} +2 -2
- package/dist/{project-expired-37c96a37.esm.js → project-expired-f9cd959f.esm.js} +2 -2
- package/dist/{project-not-found-bab7901a.esm.js → project-not-found-270735d9.esm.js} +2 -2
- package/dist/{project-not-found-ab3ec84b.cjs.dev.js → project-not-found-b9acb3dd.cjs.dev.js} +2 -2
- package/dist/{project-not-found-cffdca85.cjs.prod.js → project-not-found-f5da575c.cjs.prod.js} +2 -2
- package/dist/{project-not-initialized-eaf5b172.cjs.prod.js → project-not-initialized-65025bb3.cjs.prod.js} +2 -2
- package/dist/{project-not-initialized-268c6831.cjs.dev.js → project-not-initialized-7bc7c128.cjs.dev.js} +2 -2
- package/dist/{project-not-initialized-0d1395be.esm.js → project-not-initialized-d84c8484.esm.js} +2 -2
- package/dist/{project-suspended-bf3c281f.cjs.dev.js → project-suspended-3a9dc9ba.cjs.dev.js} +2 -2
- package/dist/{project-suspended-cf31376c.esm.js → project-suspended-962290f7.esm.js} +2 -2
- package/dist/{project-suspended-61537dd5.cjs.prod.js → project-suspended-d4bdbf70.cjs.prod.js} +2 -2
- package/dist/{redirect-to-logout-2c5521a1.cjs.prod.js → redirect-to-logout-8eb64a48.cjs.prod.js} +1 -1
- package/dist/{redirect-to-logout-56bab4a7.cjs.dev.js → redirect-to-logout-d58a1de6.cjs.dev.js} +1 -1
- package/dist/{redirect-to-logout-3b9cdef7.esm.js → redirect-to-logout-e04903b5.esm.js} +1 -1
- package/dist/{requests-in-flight-loader-b205e7a2.cjs.prod.js → requests-in-flight-loader-3f779d41.cjs.prod.js} +1 -1
- package/dist/{requests-in-flight-loader-85c892e5.esm.js → requests-in-flight-loader-783bc2ab.esm.js} +1 -1
- package/dist/{requests-in-flight-loader-9e7f2d99.cjs.dev.js → requests-in-flight-loader-e3ff54f9.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-61331a2d.cjs.dev.js → service-page-project-switcher-660995a1.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-e8df0d27.cjs.prod.js → service-page-project-switcher-6a31025a.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-6b385663.esm.js → service-page-project-switcher-6b4381a1.esm.js} +1 -1
- package/package.json +16 -16
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-788e7c64.cjs.dev.js');
|
|
6
6
|
var applicationEntryPoint = require('./application-entry-point-e5623556.cjs.dev.js');
|
|
7
7
|
var oidc = require('./oidc-b9e7297c.cjs.dev.js');
|
|
8
8
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
9
9
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
10
10
|
var reactBroadcast = require('@flopflip/react-broadcast');
|
|
11
11
|
var launchdarklyAdapter = require('@flopflip/launchdarkly-adapter');
|
|
12
|
+
var constants = require('@commercetools-frontend/constants');
|
|
12
13
|
require('react');
|
|
13
14
|
require('react-router-dom');
|
|
14
|
-
require('@commercetools-frontend/constants');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
@@ -97,7 +97,6 @@ exports.CustomViewShell = dist_commercetoolsFrontendApplicationShell.CustomViewS
|
|
|
97
97
|
exports.ErrorApologizer = dist_commercetoolsFrontendApplicationShell.ErrorApologizer;
|
|
98
98
|
exports.FetchUser = dist_commercetoolsFrontendApplicationShell.FetchUser;
|
|
99
99
|
exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
|
|
100
|
-
exports.PERFORMANCE_MARKS = dist_commercetoolsFrontendApplicationShell.PERFORMANCE_MARKS;
|
|
101
100
|
exports.ProtectedRoute = dist_commercetoolsFrontendApplicationShell.ProtectedRoute;
|
|
102
101
|
exports.RedirectToLogin = dist_commercetoolsFrontendApplicationShell.RedirectToLogin;
|
|
103
102
|
exports.RedirectToLogout = dist_commercetoolsFrontendApplicationShell.RedirectToLogout;
|
|
@@ -217,3 +216,7 @@ Object.defineProperty(exports, 'ldAdapter', {
|
|
|
217
216
|
enumerable: true,
|
|
218
217
|
get: function () { return launchdarklyAdapter.adapter; }
|
|
219
218
|
});
|
|
219
|
+
Object.defineProperty(exports, 'PERFORMANCE_MARKS', {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () { return constants.PERFORMANCE_MARKS; }
|
|
222
|
+
});
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-7f68eea2.cjs.prod.js');
|
|
6
6
|
var applicationEntryPoint = require('./application-entry-point-516fd72c.cjs.prod.js');
|
|
7
7
|
var oidc = require('./oidc-0cba182b.cjs.prod.js');
|
|
8
8
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
9
9
|
var ssr = require('@commercetools-frontend/application-config/ssr');
|
|
10
10
|
var reactBroadcast = require('@flopflip/react-broadcast');
|
|
11
11
|
var launchdarklyAdapter = require('@flopflip/launchdarkly-adapter');
|
|
12
|
+
var constants = require('@commercetools-frontend/constants');
|
|
12
13
|
require('react');
|
|
13
14
|
require('react-router-dom');
|
|
14
|
-
require('@commercetools-frontend/constants');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
@@ -97,7 +97,6 @@ exports.CustomViewShell = dist_commercetoolsFrontendApplicationShell.CustomViewS
|
|
|
97
97
|
exports.ErrorApologizer = dist_commercetoolsFrontendApplicationShell.ErrorApologizer;
|
|
98
98
|
exports.FetchUser = dist_commercetoolsFrontendApplicationShell.FetchUser;
|
|
99
99
|
exports.InjectReducers = dist_commercetoolsFrontendApplicationShell.InjectReducers;
|
|
100
|
-
exports.PERFORMANCE_MARKS = dist_commercetoolsFrontendApplicationShell.PERFORMANCE_MARKS;
|
|
101
100
|
exports.ProtectedRoute = dist_commercetoolsFrontendApplicationShell.ProtectedRoute;
|
|
102
101
|
exports.RedirectToLogin = dist_commercetoolsFrontendApplicationShell.RedirectToLogin;
|
|
103
102
|
exports.RedirectToLogout = dist_commercetoolsFrontendApplicationShell.RedirectToLogout;
|
|
@@ -217,3 +216,7 @@ Object.defineProperty(exports, 'ldAdapter', {
|
|
|
217
216
|
enumerable: true,
|
|
218
217
|
get: function () { return launchdarklyAdapter.adapter; }
|
|
219
218
|
});
|
|
219
|
+
Object.defineProperty(exports, 'PERFORMANCE_MARKS', {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () { return constants.PERFORMANCE_MARKS; }
|
|
222
|
+
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { e as ApplicationPageTitle, A as ApplicationShell, d as ApplicationShellProvider, C as ConfigureIntlProvider, f as CustomViewShell, i as ErrorApologizer, h as FetchUser, I as InjectReducers,
|
|
1
|
+
export { e as ApplicationPageTitle, A as ApplicationShell, d as ApplicationShellProvider, C as ConfigureIntlProvider, f as CustomViewShell, i as ErrorApologizer, h as FetchUser, I as InjectReducers, l as ProtectedRoute, R as RedirectToLogin, j as RedirectToLogout, S as SetupFlopFlipProvider, m as SuspendedProtectedRoute, k as SuspendedRoute, g as getBrowserLocale, n as getPreviousProjectKey, o as selectProjectKeyInContext, s as setupGlobalErrorListener, u as useRoutesCreator, v as version } from './index-1343faef.esm.js';
|
|
2
2
|
export { R as RouteCatchAll, a as applyDefaultMiddlewares } from './application-entry-point-e20cafdb.esm.js';
|
|
3
3
|
export { R as REGIONS } from './oidc-cb344fae.esm.js';
|
|
4
4
|
export { buildApiUrl, createApolloClient, createApolloContextForProxyForwardTo, createHttpClientOptions, executeHttpClientRequest, getMcApiUrl, selectProjectKeyFromUrl, selectUserId, useMcLazyQuery, useMcMutation, useMcQuery } from '@commercetools-frontend/application-shell-connectors';
|
|
5
5
|
export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses } from '@commercetools-frontend/application-config/ssr';
|
|
6
6
|
export { ConfigureFlopFlip, ReconfigureFlopFlip, ToggleFeature, branchOnFeatureToggle, injectFeatureToggle, injectFeatureToggles, useAdapterReconfiguration, useAdapterStatus, useFeatureToggle, useFeatureToggles, useFlagVariation, useFlagVariations } from '@flopflip/react-broadcast';
|
|
7
7
|
export { adapter as ldAdapter } from '@flopflip/launchdarkly-adapter';
|
|
8
|
+
export { PERFORMANCE_MARKS } from '@commercetools-frontend/constants';
|
|
8
9
|
import 'react';
|
|
9
10
|
import 'react-router-dom';
|
|
10
|
-
import '@commercetools-frontend/constants';
|
|
11
11
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
12
12
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
13
13
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
package/dist/{custom-view-dev-host-b158476a.cjs.dev.js → custom-view-dev-host-225a8ccf.cjs.dev.js}
RENAMED
|
@@ -10,7 +10,7 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
10
10
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
11
11
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
12
12
|
var Text = require('@commercetools-uikit/text');
|
|
13
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
13
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-788e7c64.cjs.dev.js');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
15
|
require('@commercetools-frontend/constants');
|
|
16
16
|
require('./application-entry-point-e5623556.cjs.dev.js');
|
|
@@ -8,7 +8,7 @@ import Constraints from '@commercetools-uikit/constraints';
|
|
|
8
8
|
import PrimaryButton from '@commercetools-uikit/primary-button';
|
|
9
9
|
import Spacings from '@commercetools-uikit/spacings';
|
|
10
10
|
import Text from '@commercetools-uikit/text';
|
|
11
|
-
import { A as ApplicationShell } from './index-
|
|
11
|
+
import { A as ApplicationShell } from './index-1343faef.esm.js';
|
|
12
12
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
13
13
|
import '@commercetools-frontend/constants';
|
|
14
14
|
import './application-entry-point-e20cafdb.esm.js';
|
package/dist/{custom-view-dev-host-6f4ac206.cjs.prod.js → custom-view-dev-host-dac47713.cjs.prod.js}
RENAMED
|
@@ -10,7 +10,7 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
10
10
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
11
11
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
12
12
|
var Text = require('@commercetools-uikit/text');
|
|
13
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
13
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-7f68eea2.cjs.prod.js');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
15
|
require('@commercetools-frontend/constants');
|
|
16
16
|
require('./application-entry-point-516fd72c.cjs.prod.js');
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly INTL_READY: "mc:intl-ready";
|
|
5
|
-
readonly CONTENT_RENDERED: "mc:content-rendered";
|
|
6
|
-
readonly HYDRATION_USER: "mc:hydration-user";
|
|
7
|
-
readonly HYDRATION_PROJECT: "mc:hydration-project";
|
|
8
|
-
};
|
|
9
|
-
export type TPerformanceMark = (typeof PERFORMANCE_MARKS)[keyof typeof PERFORMANCE_MARKS];
|
|
1
|
+
import { PERFORMANCE_MARKS, type TPerformanceMark } from '@commercetools-frontend/constants';
|
|
2
|
+
export { PERFORMANCE_MARKS };
|
|
3
|
+
export type { TPerformanceMark };
|
|
10
4
|
export type TShellPerformanceMark = Exclude<TPerformanceMark, typeof PERFORMANCE_MARKS.SKELETON_VISIBLE>;
|
|
11
5
|
declare const markOnce: (performanceMark: TShellPerformanceMark) => void;
|
|
12
6
|
export default markOnce;
|
|
@@ -9,6 +9,7 @@ var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-
|
|
|
9
9
|
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
10
10
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
|
+
var react = require('react');
|
|
12
13
|
var reactIntl = require('react-intl');
|
|
13
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
14
15
|
var UnexpectedErrorSVG = require('@commercetools-frontend/assets/images/unexpected-error.svg');
|
|
@@ -39,7 +40,7 @@ var messages = reactIntl.defineMessages({
|
|
|
39
40
|
|
|
40
41
|
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; }
|
|
41
42
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
42
|
-
const
|
|
43
|
+
const ErrorApologizerPage = () => {
|
|
43
44
|
const intl = reactIntl.useIntl();
|
|
44
45
|
return jsxRuntime.jsx(applicationComponents.MaintenancePageLayout, {
|
|
45
46
|
imageSrc: UnexpectedErrorSVG__default["default"],
|
|
@@ -48,6 +49,21 @@ const ErrorApologizer = () => {
|
|
|
48
49
|
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.notifiedTeam))
|
|
49
50
|
});
|
|
50
51
|
};
|
|
52
|
+
const ErrorApologizer = () => {
|
|
53
|
+
const intl = react.useContext(reactIntl.IntlContext);
|
|
54
|
+
if (intl) {
|
|
55
|
+
return jsxRuntime.jsx(ErrorApologizerPage, {});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// The top-level error boundary sits above the application's IntlProvider.
|
|
59
|
+
// Without an intl context the fallback itself would throw, so the boundary
|
|
60
|
+
// would never commit and the original error would never be reported.
|
|
61
|
+
// Only the default (English) messages are available here.
|
|
62
|
+
return jsxRuntime.jsx(reactIntl.IntlProvider, {
|
|
63
|
+
locale: "en",
|
|
64
|
+
children: jsxRuntime.jsx(ErrorApologizerPage, {})
|
|
65
|
+
});
|
|
66
|
+
};
|
|
51
67
|
ErrorApologizer.displayName = 'ErrorApologizer';
|
|
52
68
|
|
|
53
69
|
exports["default"] = ErrorApologizer;
|
|
@@ -7,7 +7,8 @@ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-st
|
|
|
7
7
|
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
8
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
|
-
import {
|
|
10
|
+
import { useContext } from 'react';
|
|
11
|
+
import { defineMessages, IntlContext, IntlProvider, useIntl, FormattedMessage } from 'react-intl';
|
|
11
12
|
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
|
|
12
13
|
import UnexpectedErrorSVG from '@commercetools-frontend/assets/images/unexpected-error.svg';
|
|
13
14
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
@@ -25,7 +26,7 @@ var messages = defineMessages({
|
|
|
25
26
|
|
|
26
27
|
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; }
|
|
27
28
|
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; }
|
|
28
|
-
const
|
|
29
|
+
const ErrorApologizerPage = () => {
|
|
29
30
|
const intl = useIntl();
|
|
30
31
|
return jsx(MaintenancePageLayout, {
|
|
31
32
|
imageSrc: UnexpectedErrorSVG,
|
|
@@ -34,6 +35,21 @@ const ErrorApologizer = () => {
|
|
|
34
35
|
paragraph1: jsx(FormattedMessage, _objectSpread({}, messages.notifiedTeam))
|
|
35
36
|
});
|
|
36
37
|
};
|
|
38
|
+
const ErrorApologizer = () => {
|
|
39
|
+
const intl = useContext(IntlContext);
|
|
40
|
+
if (intl) {
|
|
41
|
+
return jsx(ErrorApologizerPage, {});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The top-level error boundary sits above the application's IntlProvider.
|
|
45
|
+
// Without an intl context the fallback itself would throw, so the boundary
|
|
46
|
+
// would never commit and the original error would never be reported.
|
|
47
|
+
// Only the default (English) messages are available here.
|
|
48
|
+
return jsx(IntlProvider, {
|
|
49
|
+
locale: "en",
|
|
50
|
+
children: jsx(ErrorApologizerPage, {})
|
|
51
|
+
});
|
|
52
|
+
};
|
|
37
53
|
ErrorApologizer.displayName = 'ErrorApologizer';
|
|
38
54
|
|
|
39
55
|
export { ErrorApologizer as default };
|
|
@@ -9,6 +9,7 @@ var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-
|
|
|
9
9
|
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
10
10
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
11
11
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
12
|
+
var react = require('react');
|
|
12
13
|
var reactIntl = require('react-intl');
|
|
13
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
14
15
|
var UnexpectedErrorSVG = require('@commercetools-frontend/assets/images/unexpected-error.svg');
|
|
@@ -39,7 +40,7 @@ var messages = reactIntl.defineMessages({
|
|
|
39
40
|
|
|
40
41
|
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; }
|
|
41
42
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
42
|
-
const
|
|
43
|
+
const ErrorApologizerPage = () => {
|
|
43
44
|
const intl = reactIntl.useIntl();
|
|
44
45
|
return jsxRuntime.jsx(applicationComponents.MaintenancePageLayout, {
|
|
45
46
|
imageSrc: UnexpectedErrorSVG__default["default"],
|
|
@@ -48,6 +49,21 @@ const ErrorApologizer = () => {
|
|
|
48
49
|
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.notifiedTeam))
|
|
49
50
|
});
|
|
50
51
|
};
|
|
52
|
+
const ErrorApologizer = () => {
|
|
53
|
+
const intl = react.useContext(reactIntl.IntlContext);
|
|
54
|
+
if (intl) {
|
|
55
|
+
return jsxRuntime.jsx(ErrorApologizerPage, {});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// The top-level error boundary sits above the application's IntlProvider.
|
|
59
|
+
// Without an intl context the fallback itself would throw, so the boundary
|
|
60
|
+
// would never commit and the original error would never be reported.
|
|
61
|
+
// Only the default (English) messages are available here.
|
|
62
|
+
return jsxRuntime.jsx(reactIntl.IntlProvider, {
|
|
63
|
+
locale: "en",
|
|
64
|
+
children: jsxRuntime.jsx(ErrorApologizerPage, {})
|
|
65
|
+
});
|
|
66
|
+
};
|
|
51
67
|
ErrorApologizer.displayName = 'ErrorApologizer';
|
|
52
68
|
|
|
53
69
|
exports["default"] = ErrorApologizer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { lazy, Suspense, useEffect, useMemo, useRef, useLayoutEffect, Component, StrictMode, useState, useCallback } from 'react';
|
|
2
2
|
import { useLocation, useHistory, Switch, Route, Redirect, Router, useRouteMatch, generatePath } from 'react-router-dom';
|
|
3
|
-
import { STORAGE_KEYS, isProjectKeylessApplicationEntryPointInProjectContext, GRAPHQL_TARGETS, isStaticUrlPathInPositionOfProjectKey, MC_MAIN_CONTAINER_PORTAL_ID, featureFlags, LOGOUT_REASONS, DOMAINS, STATIC_URL_PATHS, PROJECT_KEYLESS_APPLICATION_ENTRY_POINTS, PROJECT_KEYLESS_APPLICATION_ENTRY_POINTS_IN_PROJECT_CONTEXT, isProjectKeylessApplicationEntryPoint, CUSTOM_VIEW_HOST_ENTRY_POINT_URI_PATH, CUSTOM_VIEWS_EVENTS_NAMES, CUSTOM_VIEWS_EVENTS_META } from '@commercetools-frontend/constants';
|
|
3
|
+
import { STORAGE_KEYS, isProjectKeylessApplicationEntryPointInProjectContext, PERFORMANCE_MEASURE_SUFFIX, GRAPHQL_TARGETS, isStaticUrlPathInPositionOfProjectKey, MC_MAIN_CONTAINER_PORTAL_ID, PERFORMANCE_MARKS, featureFlags, LOGOUT_REASONS, DOMAINS, STATIC_URL_PATHS, PROJECT_KEYLESS_APPLICATION_ENTRY_POINTS, PROJECT_KEYLESS_APPLICATION_ENTRY_POINTS_IN_PROJECT_CONTEXT, isProjectKeylessApplicationEntryPoint, CUSTOM_VIEW_HOST_ENTRY_POINT_URI_PATH, CUSTOM_VIEWS_EVENTS_NAMES, CUSTOM_VIEWS_EVENTS_META } from '@commercetools-frontend/constants';
|
|
4
4
|
import { R as RouteCatchAll, A as ApplicationEntryPoint, i as internalReduxStore } from './application-entry-point-e20cafdb.esm.js';
|
|
5
5
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
6
6
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
@@ -71,9 +71,9 @@ import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
71
71
|
import { showUnexpectedErrorNotification } from '@commercetools-frontend/actions-global';
|
|
72
72
|
|
|
73
73
|
// NOTE: This string will be replaced on build time with the package version.
|
|
74
|
-
var version = "27.
|
|
74
|
+
var version = "27.13.0";
|
|
75
75
|
|
|
76
|
-
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-
|
|
76
|
+
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-783bc2ab.esm.js' /* webpackChunkName: "requests-in-flight-loader" */));
|
|
77
77
|
|
|
78
78
|
// Attempt to load the `projectKey` from localStorage
|
|
79
79
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -106,14 +106,6 @@ const selectProjectKeyInContext = _ref => {
|
|
|
106
106
|
return undefined;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
const PERFORMANCE_MARKS = {
|
|
110
|
-
SKELETON_VISIBLE: 'mc:skeleton-visible',
|
|
111
|
-
SHELL_CHROME_MOUNTED: 'mc:shell-chrome-mounted',
|
|
112
|
-
INTL_READY: 'mc:intl-ready',
|
|
113
|
-
CONTENT_RENDERED: 'mc:content-rendered',
|
|
114
|
-
HYDRATION_USER: 'mc:hydration-user',
|
|
115
|
-
HYDRATION_PROJECT: 'mc:hydration-project'
|
|
116
|
-
};
|
|
117
109
|
const alreadyMarked = new _Set();
|
|
118
110
|
const markOnce = performanceMark => {
|
|
119
111
|
if (alreadyMarked.has(performanceMark)) return;
|
|
@@ -121,7 +113,7 @@ const markOnce = performanceMark => {
|
|
|
121
113
|
try {
|
|
122
114
|
performance.mark(performanceMark);
|
|
123
115
|
alreadyMarked.add(performanceMark);
|
|
124
|
-
performance.measure(`${performanceMark}
|
|
116
|
+
performance.measure(`${performanceMark}${PERFORMANCE_MEASURE_SUFFIX}`, {
|
|
125
117
|
start: 0,
|
|
126
118
|
end: performanceMark
|
|
127
119
|
});
|
|
@@ -609,7 +601,7 @@ const ConfigureIntlProvider = props => {
|
|
|
609
601
|
};
|
|
610
602
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
611
603
|
|
|
612
|
-
const ErrorApologizer = /*#__PURE__*/lazy(() => import('./error-apologizer-
|
|
604
|
+
const ErrorApologizer = /*#__PURE__*/lazy(() => import('./error-apologizer-9ba7c125.esm.js' /* webpackChunkName: "error-apologizer" */));
|
|
613
605
|
|
|
614
606
|
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 } } } };
|
|
615
607
|
const FetchProject = props => {
|
|
@@ -667,7 +659,7 @@ const FetchUser = props => {
|
|
|
667
659
|
};
|
|
668
660
|
FetchUser.displayName = 'FetchUser';
|
|
669
661
|
|
|
670
|
-
const Navbar = /*#__PURE__*/lazy(() => import('./navbar-
|
|
662
|
+
const Navbar = /*#__PURE__*/lazy(() => import('./navbar-96d5f599.esm.js' /* webpackChunkName: "navbar" */));
|
|
671
663
|
|
|
672
664
|
const PerformanceMark = _ref => {
|
|
673
665
|
let mark = _ref.mark;
|
|
@@ -677,9 +669,9 @@ const PerformanceMark = _ref => {
|
|
|
677
669
|
return null;
|
|
678
670
|
};
|
|
679
671
|
|
|
680
|
-
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-
|
|
672
|
+
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-a88d0a06.esm.js' /* webpackChunkName: "project-container" */));
|
|
681
673
|
|
|
682
|
-
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-
|
|
674
|
+
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-e04903b5.esm.js' /* webpackChunkName: "redirect-to-logout" */));
|
|
683
675
|
|
|
684
676
|
const RedirectToProjectCreate = /*#__PURE__*/lazy(() => import('./redirect-to-project-create-3a88851c.esm.js' /* webpackChunkName: "redirect-to-project-create" */));
|
|
685
677
|
|
|
@@ -1350,7 +1342,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1350
1342
|
return window.localStorage.getItem(STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1351
1343
|
};
|
|
1352
1344
|
|
|
1353
|
-
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-
|
|
1345
|
+
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-bd5cf9b1.esm.js' /* webpackChunkName: "oidc-callback" */));
|
|
1354
1346
|
|
|
1355
1347
|
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; }
|
|
1356
1348
|
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; }
|
|
@@ -1624,7 +1616,7 @@ const ApplicationShell = props => {
|
|
|
1624
1616
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1625
1617
|
ApplicationShell.version = version;
|
|
1626
1618
|
|
|
1627
|
-
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-
|
|
1619
|
+
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-385620d6.esm.js' /* webpackChunkName: "custom-view-dev-host" */));
|
|
1628
1620
|
|
|
1629
1621
|
function CustomViewFlopFlipProvider(props) {
|
|
1630
1622
|
const adapterArgs = useMemo(() => ({
|
|
@@ -2074,4 +2066,4 @@ function useRoutesCreator() {
|
|
|
2074
2066
|
};
|
|
2075
2067
|
}
|
|
2076
2068
|
|
|
2077
|
-
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,
|
|
2069
|
+
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, selectProjectKeyInContext as o, setupGlobalErrorListener as s, useRoutesCreator as u, version as v };
|
|
@@ -107,9 +107,9 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
107
107
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
108
108
|
|
|
109
109
|
// NOTE: This string will be replaced on build time with the package version.
|
|
110
|
-
var version = "27.
|
|
110
|
+
var version = "27.13.0";
|
|
111
111
|
|
|
112
|
-
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-
|
|
112
|
+
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-e3ff54f9.cjs.dev.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
|
|
113
113
|
|
|
114
114
|
// Attempt to load the `projectKey` from localStorage
|
|
115
115
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -142,14 +142,6 @@ const selectProjectKeyInContext = _ref => {
|
|
|
142
142
|
return undefined;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
const PERFORMANCE_MARKS = {
|
|
146
|
-
SKELETON_VISIBLE: 'mc:skeleton-visible',
|
|
147
|
-
SHELL_CHROME_MOUNTED: 'mc:shell-chrome-mounted',
|
|
148
|
-
INTL_READY: 'mc:intl-ready',
|
|
149
|
-
CONTENT_RENDERED: 'mc:content-rendered',
|
|
150
|
-
HYDRATION_USER: 'mc:hydration-user',
|
|
151
|
-
HYDRATION_PROJECT: 'mc:hydration-project'
|
|
152
|
-
};
|
|
153
145
|
const alreadyMarked = new _Set__default["default"]();
|
|
154
146
|
const markOnce = performanceMark => {
|
|
155
147
|
if (alreadyMarked.has(performanceMark)) return;
|
|
@@ -157,7 +149,7 @@ const markOnce = performanceMark => {
|
|
|
157
149
|
try {
|
|
158
150
|
performance.mark(performanceMark);
|
|
159
151
|
alreadyMarked.add(performanceMark);
|
|
160
|
-
performance.measure(`${performanceMark}
|
|
152
|
+
performance.measure(`${performanceMark}${constants.PERFORMANCE_MEASURE_SUFFIX}`, {
|
|
161
153
|
start: 0,
|
|
162
154
|
end: performanceMark
|
|
163
155
|
});
|
|
@@ -645,7 +637,7 @@ const ConfigureIntlProvider = props => {
|
|
|
645
637
|
};
|
|
646
638
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
647
639
|
|
|
648
|
-
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-
|
|
640
|
+
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-15c6ddd9.cjs.dev.js' /* webpackChunkName: "error-apologizer" */); }));
|
|
649
641
|
|
|
650
642
|
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 } } } };
|
|
651
643
|
const FetchProject = props => {
|
|
@@ -664,7 +656,7 @@ const FetchProject = props => {
|
|
|
664
656
|
error = _useMcQuery.error;
|
|
665
657
|
react.useEffect(() => {
|
|
666
658
|
if (!loading && data?.project) {
|
|
667
|
-
markOnce(PERFORMANCE_MARKS.HYDRATION_PROJECT);
|
|
659
|
+
markOnce(constants.PERFORMANCE_MARKS.HYDRATION_PROJECT);
|
|
668
660
|
}
|
|
669
661
|
}, [loading, data?.project]);
|
|
670
662
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -690,7 +682,7 @@ const FetchUser = props => {
|
|
|
690
682
|
error = _useMcQuery.error;
|
|
691
683
|
react.useEffect(() => {
|
|
692
684
|
if (!loading && data?.user) {
|
|
693
|
-
markOnce(PERFORMANCE_MARKS.HYDRATION_USER);
|
|
685
|
+
markOnce(constants.PERFORMANCE_MARKS.HYDRATION_USER);
|
|
694
686
|
}
|
|
695
687
|
}, [loading, data?.user]);
|
|
696
688
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -703,7 +695,7 @@ const FetchUser = props => {
|
|
|
703
695
|
};
|
|
704
696
|
FetchUser.displayName = 'FetchUser';
|
|
705
697
|
|
|
706
|
-
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-
|
|
698
|
+
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-d7967989.cjs.dev.js' /* webpackChunkName: "navbar" */); }));
|
|
707
699
|
|
|
708
700
|
const PerformanceMark = _ref => {
|
|
709
701
|
let mark = _ref.mark;
|
|
@@ -713,9 +705,9 @@ const PerformanceMark = _ref => {
|
|
|
713
705
|
return null;
|
|
714
706
|
};
|
|
715
707
|
|
|
716
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
708
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-873f2416.cjs.dev.js' /* webpackChunkName: "project-container" */); }));
|
|
717
709
|
|
|
718
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
710
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-d58a1de6.cjs.dev.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
719
711
|
|
|
720
712
|
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-611ee583.cjs.dev.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
721
713
|
|
|
@@ -994,7 +986,7 @@ const ApplicationShellAuthenticated = props => {
|
|
|
994
986
|
messages
|
|
995
987
|
}), {}, {
|
|
996
988
|
children: [jsxRuntime.jsx(PerformanceMark, {
|
|
997
|
-
mark: PERFORMANCE_MARKS.INTL_READY
|
|
989
|
+
mark: constants.PERFORMANCE_MARKS.INTL_READY
|
|
998
990
|
}), jsxRuntime.jsx(SetupFlopFlipProvider, {
|
|
999
991
|
user: normalizedUser,
|
|
1000
992
|
projectKey: projectKeyInContext,
|
|
@@ -1004,7 +996,7 @@ const ApplicationShellAuthenticated = props => {
|
|
|
1004
996
|
children: jsxRuntime.jsxs(ApplicationShellSplitterWrapper, {
|
|
1005
997
|
locale: locale ?? 'en',
|
|
1006
998
|
children: [jsxRuntime.jsx(PerformanceMark, {
|
|
1007
|
-
mark: PERFORMANCE_MARKS.SHELL_CHROME_MOUNTED
|
|
999
|
+
mark: constants.PERFORMANCE_MARKS.SHELL_CHROME_MOUNTED
|
|
1008
1000
|
}), jsxRuntime.jsx(ThemeSwitcher, {}), jsxRuntime.jsx(RequestsInFlightLoader, {}), jsxRuntime.jsx(sentry.SentryUserTracker, {
|
|
1009
1001
|
user: normalizedUser
|
|
1010
1002
|
}), jsxRuntime.jsxs("div", {
|
|
@@ -1066,7 +1058,7 @@ const ApplicationShellAuthenticated = props => {
|
|
|
1066
1058
|
}) : jsxRuntime.jsxs(MainContainer, {
|
|
1067
1059
|
role: "main",
|
|
1068
1060
|
children: [jsxRuntime.jsx(PerformanceMark, {
|
|
1069
|
-
mark: PERFORMANCE_MARKS.CONTENT_RENDERED
|
|
1061
|
+
mark: constants.PERFORMANCE_MARKS.CONTENT_RENDERED
|
|
1070
1062
|
}), jsxRuntime.jsx("div", {
|
|
1071
1063
|
ref: notificationsPageRef,
|
|
1072
1064
|
children: jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
@@ -1386,7 +1378,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1386
1378
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1387
1379
|
};
|
|
1388
1380
|
|
|
1389
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1381
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-74f3cf98.cjs.dev.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1390
1382
|
|
|
1391
1383
|
function ownKeys$4(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; }
|
|
1392
1384
|
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__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -1660,7 +1652,7 @@ const ApplicationShell = props => {
|
|
|
1660
1652
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1661
1653
|
ApplicationShell.version = version;
|
|
1662
1654
|
|
|
1663
|
-
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-
|
|
1655
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-225a8ccf.cjs.dev.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1664
1656
|
|
|
1665
1657
|
function CustomViewFlopFlipProvider(props) {
|
|
1666
1658
|
const adapterArgs = react.useMemo(() => ({
|
|
@@ -2121,7 +2113,6 @@ exports.ErrorBoundary = ErrorBoundary;
|
|
|
2121
2113
|
exports.FetchProject = FetchProject;
|
|
2122
2114
|
exports.FetchUser = FetchUser;
|
|
2123
2115
|
exports.InjectReducers = InjectReducers;
|
|
2124
|
-
exports.PERFORMANCE_MARKS = PERFORMANCE_MARKS;
|
|
2125
2116
|
exports.ProjectSwitcher = ProjectSwitcher;
|
|
2126
2117
|
exports.ProtectedRoute = ProtectedRoute;
|
|
2127
2118
|
exports.REQUESTS_IN_FLIGHT_LOADER_DOM_ID = REQUESTS_IN_FLIGHT_LOADER_DOM_ID;
|