@commercetools-frontend/application-shell 27.11.4 → 27.12.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-6d060417.cjs.dev.js} +1 -1
- package/dist/{custom-view-dev-host-8812d484.esm.js → custom-view-dev-host-8aaf6e58.esm.js} +1 -1
- package/dist/{custom-view-dev-host-6f4ac206.cjs.prod.js → custom-view-dev-host-92e55dd4.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-580979e5.cjs.prod.js → index-35109d28.cjs.prod.js} +14 -23
- package/dist/{index-8f45ab35.cjs.dev.js → index-7b9f83f5.cjs.dev.js} +14 -23
- package/dist/{index-c4fedc0e.esm.js → index-f730b40f.esm.js} +11 -19
- 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-6b67bfd0.cjs.dev.js} +1 -1
- package/dist/{oidc-callback-5a29567c.esm.js → oidc-callback-9985547d.esm.js} +1 -1
- package/dist/{oidc-callback-49b656da.cjs.prod.js → oidc-callback-a05d54b6.cjs.prod.js} +1 -1
- package/dist/{project-container-8a69a6c8.esm.js → project-container-3d5828a0.esm.js} +5 -5
- package/dist/{project-container-e40ed0a0.cjs.prod.js → project-container-8ab8563b.cjs.prod.js} +5 -5
- package/dist/{project-container-53f7e88b.cjs.dev.js → project-container-a4eb2e53.cjs.dev.js} +5 -5
- package/dist/{project-expired-e339d2e9.cjs.prod.js → project-expired-07284090.cjs.prod.js} +2 -2
- package/dist/{project-expired-f285f118.cjs.dev.js → project-expired-2e0ab253.cjs.dev.js} +2 -2
- package/dist/{project-expired-37c96a37.esm.js → project-expired-884b5933.esm.js} +2 -2
- package/dist/{project-not-found-bab7901a.esm.js → project-not-found-6441c45b.esm.js} +2 -2
- package/dist/{project-not-found-cffdca85.cjs.prod.js → project-not-found-f45a291c.cjs.prod.js} +2 -2
- package/dist/{project-not-found-ab3ec84b.cjs.dev.js → project-not-found-ffe62b36.cjs.dev.js} +2 -2
- package/dist/{project-not-initialized-268c6831.cjs.dev.js → project-not-initialized-0278a02c.cjs.dev.js} +2 -2
- package/dist/{project-not-initialized-0d1395be.esm.js → project-not-initialized-097e07f5.esm.js} +2 -2
- package/dist/{project-not-initialized-eaf5b172.cjs.prod.js → project-not-initialized-f5044c49.cjs.prod.js} +2 -2
- package/dist/{project-suspended-61537dd5.cjs.prod.js → project-suspended-5e85a79e.cjs.prod.js} +2 -2
- package/dist/{project-suspended-cf31376c.esm.js → project-suspended-a1cac7d5.esm.js} +2 -2
- package/dist/{project-suspended-bf3c281f.cjs.dev.js → project-suspended-addb6af3.cjs.dev.js} +2 -2
- package/dist/{redirect-to-logout-2c5521a1.cjs.prod.js → redirect-to-logout-499ebd3f.cjs.prod.js} +1 -1
- package/dist/{redirect-to-logout-3b9cdef7.esm.js → redirect-to-logout-9360480e.esm.js} +1 -1
- package/dist/{redirect-to-logout-56bab4a7.cjs.dev.js → redirect-to-logout-9cb691db.cjs.dev.js} +1 -1
- package/dist/{requests-in-flight-loader-b205e7a2.cjs.prod.js → requests-in-flight-loader-2f8f68e1.cjs.prod.js} +1 -1
- package/dist/{requests-in-flight-loader-9e7f2d99.cjs.dev.js → requests-in-flight-loader-8fd6430b.cjs.dev.js} +1 -1
- package/dist/{requests-in-flight-loader-85c892e5.esm.js → requests-in-flight-loader-95224fbc.esm.js} +1 -1
- package/dist/{service-page-project-switcher-e8df0d27.cjs.prod.js → service-page-project-switcher-1627299f.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-61331a2d.cjs.dev.js → service-page-project-switcher-4171511c.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-6b385663.esm.js → service-page-project-switcher-5ea953d6.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-7b9f83f5.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-35109d28.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-f730b40f.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-6d060417.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-7b9f83f5.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-f730b40f.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-92e55dd4.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-35109d28.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;
|
|
@@ -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.12.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-2f8f68e1.cjs.prod.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
|
});
|
|
@@ -619,7 +611,7 @@ const ConfigureIntlProvider = props => {
|
|
|
619
611
|
};
|
|
620
612
|
ConfigureIntlProvider.displayName = 'ConfigureIntlProvider';
|
|
621
613
|
|
|
622
|
-
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-
|
|
614
|
+
const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./error-apologizer-c7c5c7b4.cjs.prod.js' /* webpackChunkName: "error-apologizer" */); }));
|
|
623
615
|
|
|
624
616
|
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 } } } };
|
|
625
617
|
const FetchProject = props => {
|
|
@@ -638,7 +630,7 @@ const FetchProject = props => {
|
|
|
638
630
|
error = _useMcQuery.error;
|
|
639
631
|
react.useEffect(() => {
|
|
640
632
|
if (!loading && data?.project) {
|
|
641
|
-
markOnce(PERFORMANCE_MARKS.HYDRATION_PROJECT);
|
|
633
|
+
markOnce(constants.PERFORMANCE_MARKS.HYDRATION_PROJECT);
|
|
642
634
|
}
|
|
643
635
|
}, [loading, data?.project]);
|
|
644
636
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -664,7 +656,7 @@ const FetchUser = props => {
|
|
|
664
656
|
error = _useMcQuery.error;
|
|
665
657
|
react.useEffect(() => {
|
|
666
658
|
if (!loading && data?.user) {
|
|
667
|
-
markOnce(PERFORMANCE_MARKS.HYDRATION_USER);
|
|
659
|
+
markOnce(constants.PERFORMANCE_MARKS.HYDRATION_USER);
|
|
668
660
|
}
|
|
669
661
|
}, [loading, data?.user]);
|
|
670
662
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -677,7 +669,7 @@ const FetchUser = props => {
|
|
|
677
669
|
};
|
|
678
670
|
FetchUser.displayName = 'FetchUser';
|
|
679
671
|
|
|
680
|
-
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-
|
|
672
|
+
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-fc0b817f.cjs.prod.js' /* webpackChunkName: "navbar" */); }));
|
|
681
673
|
|
|
682
674
|
const PerformanceMark = _ref => {
|
|
683
675
|
let mark = _ref.mark;
|
|
@@ -687,9 +679,9 @@ const PerformanceMark = _ref => {
|
|
|
687
679
|
return null;
|
|
688
680
|
};
|
|
689
681
|
|
|
690
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
682
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-8ab8563b.cjs.prod.js' /* webpackChunkName: "project-container" */); }));
|
|
691
683
|
|
|
692
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
684
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-499ebd3f.cjs.prod.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
693
685
|
|
|
694
686
|
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-603634dd.cjs.prod.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
695
687
|
|
|
@@ -927,7 +919,7 @@ const ApplicationShellAuthenticated = props => {
|
|
|
927
919
|
messages
|
|
928
920
|
}), {}, {
|
|
929
921
|
children: [jsxRuntime.jsx(PerformanceMark, {
|
|
930
|
-
mark: PERFORMANCE_MARKS.INTL_READY
|
|
922
|
+
mark: constants.PERFORMANCE_MARKS.INTL_READY
|
|
931
923
|
}), jsxRuntime.jsx(SetupFlopFlipProvider, {
|
|
932
924
|
user: normalizedUser,
|
|
933
925
|
projectKey: projectKeyInContext,
|
|
@@ -937,7 +929,7 @@ const ApplicationShellAuthenticated = props => {
|
|
|
937
929
|
children: jsxRuntime.jsxs(ApplicationShellSplitterWrapper, {
|
|
938
930
|
locale: locale ?? 'en',
|
|
939
931
|
children: [jsxRuntime.jsx(PerformanceMark, {
|
|
940
|
-
mark: PERFORMANCE_MARKS.SHELL_CHROME_MOUNTED
|
|
932
|
+
mark: constants.PERFORMANCE_MARKS.SHELL_CHROME_MOUNTED
|
|
941
933
|
}), jsxRuntime.jsx(ThemeSwitcher, {}), jsxRuntime.jsx(RequestsInFlightLoader, {}), jsxRuntime.jsx(sentry.SentryUserTracker, {
|
|
942
934
|
user: normalizedUser
|
|
943
935
|
}), jsxRuntime.jsxs("div", {
|
|
@@ -999,7 +991,7 @@ const ApplicationShellAuthenticated = props => {
|
|
|
999
991
|
}) : jsxRuntime.jsxs(MainContainer, {
|
|
1000
992
|
role: "main",
|
|
1001
993
|
children: [jsxRuntime.jsx(PerformanceMark, {
|
|
1002
|
-
mark: PERFORMANCE_MARKS.CONTENT_RENDERED
|
|
994
|
+
mark: constants.PERFORMANCE_MARKS.CONTENT_RENDERED
|
|
1003
995
|
}), jsxRuntime.jsx("div", {
|
|
1004
996
|
ref: notificationsPageRef,
|
|
1005
997
|
children: jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
@@ -1319,7 +1311,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1319
1311
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1320
1312
|
};
|
|
1321
1313
|
|
|
1322
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1314
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-a05d54b6.cjs.prod.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1323
1315
|
|
|
1324
1316
|
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; }
|
|
1325
1317
|
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; }
|
|
@@ -1588,7 +1580,7 @@ const ApplicationShell = props => {
|
|
|
1588
1580
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1589
1581
|
ApplicationShell.version = version;
|
|
1590
1582
|
|
|
1591
|
-
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-
|
|
1583
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-92e55dd4.cjs.prod.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1592
1584
|
|
|
1593
1585
|
function CustomViewFlopFlipProvider(props) {
|
|
1594
1586
|
const adapterArgs = react.useMemo(() => ({
|
|
@@ -2043,7 +2035,6 @@ exports.ErrorBoundary = ErrorBoundary;
|
|
|
2043
2035
|
exports.FetchProject = FetchProject;
|
|
2044
2036
|
exports.FetchUser = FetchUser;
|
|
2045
2037
|
exports.InjectReducers = InjectReducers;
|
|
2046
|
-
exports.PERFORMANCE_MARKS = PERFORMANCE_MARKS;
|
|
2047
2038
|
exports.ProjectSwitcher = ProjectSwitcher;
|
|
2048
2039
|
exports.ProtectedRoute = ProtectedRoute;
|
|
2049
2040
|
exports.REQUESTS_IN_FLIGHT_LOADER_DOM_ID = REQUESTS_IN_FLIGHT_LOADER_DOM_ID;
|
|
@@ -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.12.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-8fd6430b.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-a4eb2e53.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-9cb691db.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-6b67bfd0.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-6d060417.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;
|