@commercetools-frontend/application-shell 20.10.7 → 20.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{application-entry-point-4f7eaa05.cjs.prod.js → application-entry-point-961cacf8.cjs.prod.js} +11 -5
- package/dist/{application-entry-point-527f239d.cjs.dev.js → application-entry-point-cde26c8c.cjs.dev.js} +11 -5
- package/dist/{application-entry-point-86463323.esm.js → application-entry-point-cfaa3874.esm.js} +11 -6
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +3 -3
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +3 -3
- package/dist/commercetools-frontend-application-shell.esm.js +3 -3
- package/dist/declarations/src/apollo-links/utils.d.ts +1 -1
- package/dist/declarations/src/components/application-shell/helpers.d.ts +1 -0
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +13 -13
- package/dist/declarations/src/hooks/use-is-served-by-proxy/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-is-served-by-proxy/use-is-served-by-proxy.d.ts +2 -0
- package/dist/declarations/src/types/generated/ctp.d.ts +3619 -3336
- package/dist/declarations/src/types/generated/mc.d.ts +189 -195
- package/dist/declarations/src/types/generated/proxy.d.ts +28 -28
- package/dist/declarations/src/types/generated/settings.d.ts +1425 -2504
- package/dist/{index-31ac9c52.esm.js → index-0b3f8556.esm.js} +115 -59
- package/dist/{index-b74b9f5e.cjs.dev.js → index-e45779cf.cjs.dev.js} +114 -58
- package/dist/{index-9659eee5.cjs.prod.js → index-e8564a47.cjs.prod.js} +95 -39
- package/dist/{project-expired-f7700dc0.esm.js → project-expired-68ca2579.esm.js} +3 -3
- package/dist/{project-expired-f6f727cd.cjs.dev.js → project-expired-dcb82d36.cjs.dev.js} +3 -3
- package/dist/{project-expired-7d174057.cjs.prod.js → project-expired-e16b9b05.cjs.prod.js} +3 -3
- package/dist/{project-not-found-e5f9c01c.cjs.dev.js → project-not-found-26f56aed.cjs.dev.js} +3 -3
- package/dist/{project-not-found-2e2ced8e.cjs.prod.js → project-not-found-c7b32516.cjs.prod.js} +3 -3
- package/dist/{project-not-found-a231fadc.esm.js → project-not-found-d5f8ebbb.esm.js} +3 -3
- package/dist/{project-not-initialized-e8e18ea8.esm.js → project-not-initialized-473a61e8.esm.js} +3 -3
- package/dist/{project-not-initialized-2a5091e7.cjs.dev.js → project-not-initialized-9bc69b1f.cjs.dev.js} +3 -3
- package/dist/{project-not-initialized-edf76f93.cjs.prod.js → project-not-initialized-ea0be167.cjs.prod.js} +3 -3
- package/dist/{project-suspended-bee675a8.esm.js → project-suspended-8f98e2d7.esm.js} +3 -3
- package/dist/{project-suspended-12afc464.cjs.dev.js → project-suspended-b46cf02d.cjs.dev.js} +3 -3
- package/dist/{project-suspended-f97a6552.cjs.prod.js → project-suspended-c2fca68f.cjs.prod.js} +3 -3
- package/dist/{quick-access-bf585619.cjs.prod.js → quick-access-89a8fc45.cjs.prod.js} +2 -2
- package/dist/{quick-access-5f7e12db.cjs.dev.js → quick-access-b2bb3019.cjs.dev.js} +2 -2
- package/dist/{quick-access-7a7d84e8.esm.js → quick-access-f735e1dd.esm.js} +2 -2
- package/dist/{service-page-project-switcher-e3a12998.cjs.prod.js → service-page-project-switcher-23ea0c1e.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-49c146fb.esm.js → service-page-project-switcher-272fcaa0.esm.js} +1 -1
- package/dist/{service-page-project-switcher-abc3ca4a.cjs.dev.js → service-page-project-switcher-5ff429b8.cjs.dev.js} +1 -1
- package/package.json +33 -33
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +1 -1
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
3
|
+
var applicationEntryPoint = require('./application-entry-point-961cacf8.cjs.prod.js');
|
|
4
4
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
5
5
|
var _styled = require('@emotion/styled/base');
|
|
6
6
|
var _pt = require('prop-types');
|
|
@@ -1856,8 +1856,10 @@ var UserSettingsMenuBody = function UserSettingsMenuBody(props) {
|
|
|
1856
1856
|
})]
|
|
1857
1857
|
})
|
|
1858
1858
|
}), applicationsAppBarMenu === null || applicationsAppBarMenu === void 0 ? void 0 : _mapInstanceProperty__default["default"](applicationsAppBarMenu).call(applicationsAppBarMenu, function (menu) {
|
|
1859
|
+
var _menu$featureToggle;
|
|
1860
|
+
|
|
1859
1861
|
return jsxRuntime.jsx(OptionalFeatureToggle, {
|
|
1860
|
-
featureToggle: menu.featureToggle,
|
|
1862
|
+
featureToggle: (_menu$featureToggle = menu.featureToggle) !== null && _menu$featureToggle !== void 0 ? _menu$featureToggle : undefined,
|
|
1861
1863
|
children: jsxRuntime.jsx(reactRouterDom.Link, {
|
|
1862
1864
|
css: getUserSettingsMenuItemLinkStyles(),
|
|
1863
1865
|
to: "/account/".concat(menu.uriPath),
|
|
@@ -2291,7 +2293,9 @@ var _ref2$1 = {
|
|
|
2291
2293
|
} ;
|
|
2292
2294
|
|
|
2293
2295
|
var AppBar = function AppBar(props) {
|
|
2294
|
-
var
|
|
2296
|
+
var _props$user$defaultPr, _props$user;
|
|
2297
|
+
|
|
2298
|
+
var previousProjectKey = getPreviousProjectKey((_props$user$defaultPr = (_props$user = props.user) === null || _props$user === void 0 ? void 0 : _props$user.defaultProjectKey) !== null && _props$user$defaultPr !== void 0 ? _props$user$defaultPr : undefined);
|
|
2295
2299
|
return jsxRuntime.jsxs("div", {
|
|
2296
2300
|
css: /*#__PURE__*/react$2.css("box-shadow:", designSystem.customProperties.shadow1, ";min-height:43px;position:relative;width:100%;z-index:20000;display:flex;align-items:center;justify-content:space-between;" + ("" ), "" ),
|
|
2297
2301
|
"data-test": "top-navigation",
|
|
@@ -2431,27 +2435,25 @@ var LocaleSwitcher = function LocaleSwitcher(props) {
|
|
|
2431
2435
|
LocaleSwitcher.propTypes = {};
|
|
2432
2436
|
|
|
2433
2437
|
var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
|
|
2434
|
-
return Promise.resolve().then(function () { return require('./project-not-found-
|
|
2438
|
+
return Promise.resolve().then(function () { return require('./project-not-found-c7b32516.cjs.prod.js'
|
|
2435
2439
|
/* webpackChunkName: "project-not-found" */
|
|
2436
2440
|
); });
|
|
2437
2441
|
});
|
|
2438
2442
|
|
|
2439
2443
|
var ProjectExpired = /*#__PURE__*/react.lazy(function () {
|
|
2440
|
-
return Promise.resolve().then(function () { return require('./project-expired-
|
|
2444
|
+
return Promise.resolve().then(function () { return require('./project-expired-e16b9b05.cjs.prod.js'
|
|
2441
2445
|
/* webpackChunkName: "project-expired" */
|
|
2442
2446
|
); });
|
|
2443
2447
|
});
|
|
2444
2448
|
|
|
2445
2449
|
var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
|
|
2446
|
-
return Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
2450
|
+
return Promise.resolve().then(function () { return require('./project-not-initialized-ea0be167.cjs.prod.js'
|
|
2447
2451
|
/* webpackChunkName: "project-not-initialized" */
|
|
2448
2452
|
); });
|
|
2449
2453
|
});
|
|
2450
2454
|
|
|
2451
2455
|
var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
2452
|
-
var servedByProxy =
|
|
2453
|
-
return context.environment.servedByProxy;
|
|
2454
|
-
});
|
|
2456
|
+
var servedByProxy = applicationEntryPoint.useIsServedByProxy();
|
|
2455
2457
|
/**
|
|
2456
2458
|
* NOTE:
|
|
2457
2459
|
* This looks a bit unusual: redirecting in render.
|
|
@@ -2492,7 +2494,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
|
2492
2494
|
RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
|
|
2493
2495
|
|
|
2494
2496
|
var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
|
|
2495
|
-
return Promise.resolve().then(function () { return require('./project-suspended-
|
|
2497
|
+
return Promise.resolve().then(function () { return require('./project-suspended-c2fca68f.cjs.prod.js'
|
|
2496
2498
|
/* webpackChunkName: "project-suspended" */
|
|
2497
2499
|
); });
|
|
2498
2500
|
});
|
|
@@ -2594,6 +2596,8 @@ var ProjectContainer = function ProjectContainer(props) {
|
|
|
2594
2596
|
return jsxRuntime.jsx(ProjectDataLocale, {
|
|
2595
2597
|
locales: project.languages,
|
|
2596
2598
|
children: function children(_ref2) {
|
|
2599
|
+
var _project$expiry$daysL;
|
|
2600
|
+
|
|
2597
2601
|
var locale = _ref2.locale,
|
|
2598
2602
|
setProjectDataLocale = _ref2.setProjectDataLocale;
|
|
2599
2603
|
return jsxRuntime.jsx(applicationShellConnectors.ApplicationContextProvider, {
|
|
@@ -2602,7 +2606,7 @@ var ProjectContainer = function ProjectContainer(props) {
|
|
|
2602
2606
|
projectDataLocale: locale,
|
|
2603
2607
|
environment: props.environment,
|
|
2604
2608
|
children: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2605
|
-
children: [shouldShowNotificationForTrialExpired(project.expiry.daysLeft) && jsxRuntime.jsx(reactNotifications.Notifier, {
|
|
2609
|
+
children: [shouldShowNotificationForTrialExpired((_project$expiry$daysL = project.expiry.daysLeft) !== null && _project$expiry$daysL !== void 0 ? _project$expiry$daysL : undefined) && jsxRuntime.jsx(reactNotifications.Notifier, {
|
|
2606
2610
|
kind: "warning",
|
|
2607
2611
|
domain: constants.DOMAINS.GLOBAL,
|
|
2608
2612
|
text: intl.formatMessage(messages$1.trialDaysLeft, {
|
|
@@ -2646,9 +2650,7 @@ var getDefaultedFeatureToggles = function getDefaultedFeatureToggles(allFeatureT
|
|
|
2646
2650
|
};
|
|
2647
2651
|
|
|
2648
2652
|
var useAllMenuFeatureToggles = function useAllMenuFeatureToggles() {
|
|
2649
|
-
var servedByProxy =
|
|
2650
|
-
return applicationContext.environment.servedByProxy;
|
|
2651
|
-
});
|
|
2653
|
+
var servedByProxy = applicationEntryPoint.useIsServedByProxy();
|
|
2652
2654
|
var mcProxyApiUrl = applicationShellConnectors.useApplicationContext(function (applicationContext) {
|
|
2653
2655
|
return applicationContext.environment.mcProxyApiUrl;
|
|
2654
2656
|
});
|
|
@@ -3328,11 +3330,7 @@ var MenuItemDivider = function MenuItemDivider() {
|
|
|
3328
3330
|
});
|
|
3329
3331
|
};
|
|
3330
3332
|
|
|
3331
|
-
MenuItemDivider.displayName = 'MenuItemDivider';
|
|
3332
|
-
// and the `<ToggleFeature>` components. However, it's necessary to have it as
|
|
3333
|
-
// the `<ToggleFeature>` wrapper should be rendered only if the `featureToggle`
|
|
3334
|
-
// prop is defined. This is because `<ToggleFeature>` will not render any
|
|
3335
|
-
// children if the flag is missing/not found.
|
|
3333
|
+
MenuItemDivider.displayName = 'MenuItemDivider';
|
|
3336
3334
|
|
|
3337
3335
|
var isEveryMenuVisibilitySetToHidden = function isEveryMenuVisibilitySetToHidden(menuVisibilities, namesOfMenuVisibilities) {
|
|
3338
3336
|
return _Array$isArray__default["default"](namesOfMenuVisibilities) && namesOfMenuVisibilities.length > 0 && _everyInstanceProperty__default["default"](namesOfMenuVisibilities).call(namesOfMenuVisibilities, function (nameOfMenuVisibility) {
|
|
@@ -3344,9 +3342,14 @@ var restrictedMenuItemDefaultProps = {
|
|
|
3344
3342
|
permissions: []
|
|
3345
3343
|
};
|
|
3346
3344
|
|
|
3345
|
+
function isLongLivedFlag(flag) {
|
|
3346
|
+
return typeof (flag === null || flag === void 0 ? void 0 : flag.value) === 'boolean';
|
|
3347
|
+
}
|
|
3348
|
+
|
|
3347
3349
|
var RestrictedMenuItem = function RestrictedMenuItem(props) {
|
|
3348
3350
|
// NOTE: Custom application are activated/deactivated while their
|
|
3349
3351
|
// visibility is not controlled via a visibiility overwrite.
|
|
3352
|
+
var flagVariation = reactBroadcast.useFlagVariation(props.featureToggle);
|
|
3350
3353
|
if (isEveryMenuVisibilitySetToHidden(props.menuVisibilities, props.namesOfMenuVisibilities)) return null;
|
|
3351
3354
|
var permissionsWrapper = _Array$isArray__default["default"](props.permissions) && props.permissions.length > 0 || _Array$isArray__default["default"](props.dataFences) && props.dataFences.length > 0 ? jsxRuntime.jsx(permissions.RestrictedByPermissions, {
|
|
3352
3355
|
permissions: props.permissions,
|
|
@@ -3370,10 +3373,11 @@ var RestrictedMenuItem = function RestrictedMenuItem(props) {
|
|
|
3370
3373
|
});
|
|
3371
3374
|
|
|
3372
3375
|
if (props.featureToggle) {
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3376
|
+
// A regular short-lived feature toggle
|
|
3377
|
+
if (flagVariation === true) return permissionsWrapper; // A long-lived feature toggle with `{ value: boolean, string: reason }`
|
|
3378
|
+
|
|
3379
|
+
if (isLongLivedFlag(flagVariation) && flagVariation.value === true) return permissionsWrapper;
|
|
3380
|
+
return null;
|
|
3377
3381
|
}
|
|
3378
3382
|
|
|
3379
3383
|
return permissionsWrapper;
|
|
@@ -3426,7 +3430,7 @@ MenuLabel.propTypes = {
|
|
|
3426
3430
|
};
|
|
3427
3431
|
|
|
3428
3432
|
var ApplicationMenu = function ApplicationMenu(props) {
|
|
3429
|
-
var _context5, _context6, _context7;
|
|
3433
|
+
var _context5, _props$menu$featureTo, _props$menu$actionRig, _props$menu$dataFence, _context6, _context7;
|
|
3430
3434
|
|
|
3431
3435
|
var isMainMenuRouteActive = Boolean(reactRouterDom.matchPath(props.location.pathname, {
|
|
3432
3436
|
path: _concatInstanceProperty__default["default"](_context5 = "/".concat(props.projectKey, "/")).call(_context5, props.menu.uriPath),
|
|
@@ -3451,10 +3455,10 @@ var ApplicationMenu = function ApplicationMenu(props) {
|
|
|
3451
3455
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3452
3456
|
children: [props.menu.shouldRenderDivider && jsxRuntime.jsx(MenuItemDivider, {}), jsxRuntime.jsx(RestrictedMenuItem, {
|
|
3453
3457
|
keyOfMenuItem: props.menu.key,
|
|
3454
|
-
featureToggle: props.menu.featureToggle,
|
|
3458
|
+
featureToggle: (_props$menu$featureTo = props.menu.featureToggle) !== null && _props$menu$featureTo !== void 0 ? _props$menu$featureTo : undefined,
|
|
3455
3459
|
permissions: props.menu.permissions,
|
|
3456
|
-
actionRights: props.menu.actionRights,
|
|
3457
|
-
dataFences: props.menu.dataFences,
|
|
3460
|
+
actionRights: (_props$menu$actionRig = props.menu.actionRights) !== null && _props$menu$actionRig !== void 0 ? _props$menu$actionRig : undefined,
|
|
3461
|
+
dataFences: (_props$menu$dataFence = props.menu.dataFences) !== null && _props$menu$dataFence !== void 0 ? _props$menu$dataFence : undefined,
|
|
3458
3462
|
projectPermissions: props.projectPermissions,
|
|
3459
3463
|
menuVisibilities: props.menuVisibilities,
|
|
3460
3464
|
namesOfMenuVisibilities: namesOfMenuVisibilitiesOfAllSubmenus,
|
|
@@ -3494,14 +3498,14 @@ var ApplicationMenu = function ApplicationMenu(props) {
|
|
|
3494
3498
|
isActive: props.isActive,
|
|
3495
3499
|
isExpanded: props.isMenuOpen,
|
|
3496
3500
|
children: hasSubmenu ? _mapInstanceProperty__default["default"](_context7 = props.menu.submenu).call(_context7, function (submenu) {
|
|
3497
|
-
var _context8, _context9;
|
|
3501
|
+
var _context8, _submenu$featureToggl, _submenu$actionRights, _submenu$dataFences, _context9;
|
|
3498
3502
|
|
|
3499
3503
|
return jsxRuntime.jsx(RestrictedMenuItem, {
|
|
3500
3504
|
keyOfMenuItem: submenu.key,
|
|
3501
|
-
featureToggle: submenu.featureToggle,
|
|
3505
|
+
featureToggle: (_submenu$featureToggl = submenu.featureToggle) !== null && _submenu$featureToggl !== void 0 ? _submenu$featureToggl : undefined,
|
|
3502
3506
|
permissions: submenu.permissions,
|
|
3503
|
-
actionRights: submenu.actionRights,
|
|
3504
|
-
dataFences: submenu.dataFences,
|
|
3507
|
+
actionRights: (_submenu$actionRights = submenu.actionRights) !== null && _submenu$actionRights !== void 0 ? _submenu$actionRights : undefined,
|
|
3508
|
+
dataFences: (_submenu$dataFences = submenu.dataFences) !== null && _submenu$dataFences !== void 0 ? _submenu$dataFences : undefined,
|
|
3505
3509
|
projectPermissions: props.projectPermissions,
|
|
3506
3510
|
menuVisibilities: props.menuVisibilities,
|
|
3507
3511
|
namesOfMenuVisibilities: submenu.menuVisibility ? [submenu.menuVisibility] : undefined,
|
|
@@ -3706,7 +3710,7 @@ var pimIndexerStates = {
|
|
|
3706
3710
|
};
|
|
3707
3711
|
|
|
3708
3712
|
var QuickAccess = /*#__PURE__*/react.lazy(function () {
|
|
3709
|
-
return Promise.resolve().then(function () { return require('./quick-access-
|
|
3713
|
+
return Promise.resolve().then(function () { return require('./quick-access-89a8fc45.cjs.prod.js'
|
|
3710
3714
|
/* webpackChunkName: "quick-access" */
|
|
3711
3715
|
); });
|
|
3712
3716
|
});
|
|
@@ -3803,6 +3807,51 @@ var QuickAccessTrigger = function QuickAccessTrigger(props) {
|
|
|
3803
3807
|
QuickAccessTrigger.propTypes = {};
|
|
3804
3808
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
3805
3809
|
|
|
3810
|
+
/**
|
|
3811
|
+
* Get the "real" Merchant Center frontend URL to redirect the user
|
|
3812
|
+
* to the login page.
|
|
3813
|
+
* We use an explicit full URL so that if a user tries to access the
|
|
3814
|
+
* Custom Applications directly to its domain, it will always redirect
|
|
3815
|
+
* the user to the login page.
|
|
3816
|
+
*
|
|
3817
|
+
* To determine the "real" URL, we need to check if the current location
|
|
3818
|
+
* is a Merchant Center domain, or if it's a custom user domain.
|
|
3819
|
+
* For the latter, we can derive the URL from the Merchant Center API URL.
|
|
3820
|
+
*
|
|
3821
|
+
* A Merchant Center hostname is composed by the following parts:
|
|
3822
|
+
* https://<mc-prefix>.<region>.<provider>.<ct-domain>.<tld>
|
|
3823
|
+
* We neeed to check if at least the first 4 parts (right-to-left) are
|
|
3824
|
+
* the same.
|
|
3825
|
+
*/
|
|
3826
|
+
function getMcOrigin(mcApiUrl) {
|
|
3827
|
+
var _context, _context2;
|
|
3828
|
+
|
|
3829
|
+
var actualWindow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window;
|
|
3830
|
+
var mcApiUrlObject = new _URL__default["default"](mcApiUrl);
|
|
3831
|
+
|
|
3832
|
+
var _mcApiUrlObject$hostn = _reverseInstanceProperty__default["default"](_context = mcApiUrlObject.hostname.split('.')).call(_context),
|
|
3833
|
+
_mcApiUrlObject$hostn2 = _slicedToArray(_mcApiUrlObject$hostn, 4),
|
|
3834
|
+
tldMcApi = _mcApiUrlObject$hostn2[0],
|
|
3835
|
+
ctDomainMcApi = _mcApiUrlObject$hostn2[1],
|
|
3836
|
+
providerMcApi = _mcApiUrlObject$hostn2[2],
|
|
3837
|
+
regionMcApi = _mcApiUrlObject$hostn2[3];
|
|
3838
|
+
|
|
3839
|
+
var _actualWindow$locatio = _reverseInstanceProperty__default["default"](_context2 = actualWindow.location.hostname.split('.')).call(_context2),
|
|
3840
|
+
_actualWindow$locatio2 = _slicedToArray(_actualWindow$locatio, 4),
|
|
3841
|
+
tldMc = _actualWindow$locatio2[0],
|
|
3842
|
+
ctDomainMc = _actualWindow$locatio2[1],
|
|
3843
|
+
providerMc = _actualWindow$locatio2[2],
|
|
3844
|
+
regionMc = _actualWindow$locatio2[3];
|
|
3845
|
+
|
|
3846
|
+
var isMatching = tldMcApi === tldMc && ctDomainMcApi === ctDomainMc && providerMcApi === providerMc && regionMcApi === regionMc;
|
|
3847
|
+
|
|
3848
|
+
if (isMatching) {
|
|
3849
|
+
return actualWindow.location.origin;
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
return mcApiUrlObject.origin.replace('mc-api', 'mc');
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3806
3855
|
var generateAndCacheNonceWithState = function generateAndCacheNonceWithState(state) {
|
|
3807
3856
|
var nonce = uuid.v4(); // We store additional information within the given `nonce`
|
|
3808
3857
|
// to then retrieve it later when the IdP redirects back
|
|
@@ -3819,6 +3868,7 @@ var RedirectToLogin = function RedirectToLogin() {
|
|
|
3819
3868
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2;
|
|
3820
3869
|
|
|
3821
3870
|
var location = reactRouterDom.useLocation();
|
|
3871
|
+
var servedByProxy = applicationEntryPoint.useIsServedByProxy();
|
|
3822
3872
|
|
|
3823
3873
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
3824
3874
|
var _window$app$__DEVELOP3, _window$app$__DEVELOP4, _window$app$__DEVELOP5, _window$app$__DEVELOP6, _window$app$__DEVELOP7, _window$app$__DEVELOP8;
|
|
@@ -3869,8 +3919,10 @@ var RedirectToLogin = function RedirectToLogin() {
|
|
|
3869
3919
|
});
|
|
3870
3920
|
}
|
|
3871
3921
|
|
|
3922
|
+
var mcOrigin = servedByProxy ? getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
3872
3923
|
return jsxRuntime.jsx(Redirector, {
|
|
3873
3924
|
to: "login",
|
|
3925
|
+
origin: mcOrigin,
|
|
3874
3926
|
location: location,
|
|
3875
3927
|
queryParams: {
|
|
3876
3928
|
reason: constants.LOGOUT_REASONS.UNAUTHORIZED,
|
|
@@ -3891,9 +3943,7 @@ var RedirectToLogout = function RedirectToLogout(props) {
|
|
|
3891
3943
|
var _window$app$__DEVELOP, _window$app$__DEVELOP2, _props$reason;
|
|
3892
3944
|
|
|
3893
3945
|
var location = reactRouterDom.useLocation();
|
|
3894
|
-
var servedByProxy =
|
|
3895
|
-
return context.environment.servedByProxy;
|
|
3896
|
-
});
|
|
3946
|
+
var servedByProxy = applicationEntryPoint.useIsServedByProxy();
|
|
3897
3947
|
|
|
3898
3948
|
if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.authorizeUrl) {
|
|
3899
3949
|
// Remove the `sessionToken` from storage, so that the AppShell can initiate
|
|
@@ -3902,8 +3952,10 @@ var RedirectToLogout = function RedirectToLogout(props) {
|
|
|
3902
3952
|
return jsxRuntime.jsx(RedirectToLogin, {});
|
|
3903
3953
|
}
|
|
3904
3954
|
|
|
3955
|
+
var mcOrigin = servedByProxy ? getMcOrigin(window.app.mcApiUrl) : undefined;
|
|
3905
3956
|
return jsxRuntime.jsx(Redirector, {
|
|
3906
3957
|
to: "logout",
|
|
3958
|
+
origin: mcOrigin,
|
|
3907
3959
|
location: location,
|
|
3908
3960
|
queryParams: _objectSpread$1({
|
|
3909
3961
|
reason: (_props$reason = props.reason) !== null && _props$reason !== void 0 ? _props$reason : constants.LOGOUT_REASONS.USER
|
|
@@ -4024,9 +4076,11 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4024
4076
|
user: user,
|
|
4025
4077
|
environment: applicationEnvironment,
|
|
4026
4078
|
children: jsxRuntime.jsx(i18n.AsyncLocaleData, {
|
|
4027
|
-
locale: user
|
|
4079
|
+
locale: user === null || user === void 0 ? void 0 : user.language,
|
|
4028
4080
|
applicationMessages: props.applicationMessages,
|
|
4029
4081
|
children: function children(_ref9) {
|
|
4082
|
+
var _user$businessRole;
|
|
4083
|
+
|
|
4030
4084
|
var isLoadingLocaleData = _ref9.isLoading,
|
|
4031
4085
|
locale = _ref9.locale,
|
|
4032
4086
|
messages = _ref9.messages;
|
|
@@ -4044,13 +4098,13 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4044
4098
|
defaultFlags: props.defaultFeatureFlags,
|
|
4045
4099
|
children: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4046
4100
|
children: [jsxRuntime.jsx(VersionTracker, {}), jsxRuntime.jsx(applicationEntryPoint.RequestsInFlightLoader, {}), jsxRuntime.jsx(sentry.SentryUserTracker, {
|
|
4047
|
-
user: user
|
|
4101
|
+
user: user !== null && user !== void 0 ? user : undefined
|
|
4048
4102
|
}), jsxRuntime.jsx(GtmUserTracker, {
|
|
4049
4103
|
user: user
|
|
4050
4104
|
}), jsxRuntime.jsx(GtmApplicationTracker, {
|
|
4051
4105
|
applicationName: applicationEnvironment.applicationName,
|
|
4052
4106
|
projectKey: projectKeyFromUrl,
|
|
4053
|
-
userBusinessRole: user === null || user === void 0 ? void 0 : user.businessRole
|
|
4107
|
+
userBusinessRole: (_user$businessRole = user === null || user === void 0 ? void 0 : user.businessRole) !== null && _user$businessRole !== void 0 ? _user$businessRole : undefined
|
|
4054
4108
|
}), jsxRuntime.jsxs("div", {
|
|
4055
4109
|
role: "application-layout",
|
|
4056
4110
|
css: _ref6,
|
|
@@ -4175,7 +4229,9 @@ var RestrictedApplication = function RestrictedApplication(props) {
|
|
|
4175
4229
|
exact: true,
|
|
4176
4230
|
path: "/",
|
|
4177
4231
|
render: function render() {
|
|
4178
|
-
var
|
|
4232
|
+
var _user$defaultProjectK;
|
|
4233
|
+
|
|
4234
|
+
var previousProjectKey = getPreviousProjectKey((_user$defaultProjectK = user === null || user === void 0 ? void 0 : user.defaultProjectKey) !== null && _user$defaultProjectK !== void 0 ? _user$defaultProjectK : undefined);
|
|
4179
4235
|
/**
|
|
4180
4236
|
* NOTE:
|
|
4181
4237
|
* Given the user has not been loaded a loading spinner is shown.
|
|
@@ -10,13 +10,13 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
10
10
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|
11
11
|
import ProjectExpiredSVG from '@commercetools-frontend/assets/images/hourglass.svg';
|
|
12
12
|
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
|
|
13
|
-
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-
|
|
13
|
+
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-272fcaa0.esm.js';
|
|
14
14
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
15
15
|
import '@emotion/styled/base';
|
|
16
16
|
import 'react-router-dom';
|
|
17
17
|
import '@commercetools-frontend/application-shell-connectors';
|
|
18
|
-
import './index-
|
|
19
|
-
import './application-entry-point-
|
|
18
|
+
import './index-0b3f8556.esm.js';
|
|
19
|
+
import './application-entry-point-cfaa3874.esm.js';
|
|
20
20
|
import '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
21
21
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
22
22
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var ProjectExpiredSVG = require('@commercetools-frontend/assets/images/hourglass.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-5ff429b8.cjs.dev.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e45779cf.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-cde26c8c.cjs.dev.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var ProjectExpiredSVG = require('@commercetools-frontend/assets/images/hourglass.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-23ea0c1e.cjs.prod.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e8564a47.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-961cacf8.cjs.prod.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
package/dist/{project-not-found-e5f9c01c.cjs.dev.js → project-not-found-26f56aed.cjs.dev.js}
RENAMED
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var FailedAuthorizationSVG = require('@commercetools-frontend/assets/images/folder-full-locked.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-5ff429b8.cjs.dev.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e45779cf.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-cde26c8c.cjs.dev.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
package/dist/{project-not-found-2e2ced8e.cjs.prod.js → project-not-found-c7b32516.cjs.prod.js}
RENAMED
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var FailedAuthorizationSVG = require('@commercetools-frontend/assets/images/folder-full-locked.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-23ea0c1e.cjs.prod.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e8564a47.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-961cacf8.cjs.prod.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
@@ -10,13 +10,13 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
10
10
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|
11
11
|
import FailedAuthorizationSVG from '@commercetools-frontend/assets/images/folder-full-locked.svg';
|
|
12
12
|
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
|
|
13
|
-
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-
|
|
13
|
+
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-272fcaa0.esm.js';
|
|
14
14
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
15
15
|
import '@emotion/styled/base';
|
|
16
16
|
import 'react-router-dom';
|
|
17
17
|
import '@commercetools-frontend/application-shell-connectors';
|
|
18
|
-
import './index-
|
|
19
|
-
import './application-entry-point-
|
|
18
|
+
import './index-0b3f8556.esm.js';
|
|
19
|
+
import './application-entry-point-cfaa3874.esm.js';
|
|
20
20
|
import '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
21
21
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
22
22
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
package/dist/{project-not-initialized-e8e18ea8.esm.js → project-not-initialized-473a61e8.esm.js}
RENAMED
|
@@ -10,13 +10,13 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
10
10
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|
11
11
|
import ProjectExpiredSVG from '@commercetools-frontend/assets/images/hourglass.svg';
|
|
12
12
|
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
|
|
13
|
-
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-
|
|
13
|
+
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-272fcaa0.esm.js';
|
|
14
14
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
15
15
|
import '@emotion/styled/base';
|
|
16
16
|
import 'react-router-dom';
|
|
17
17
|
import '@commercetools-frontend/application-shell-connectors';
|
|
18
|
-
import './index-
|
|
19
|
-
import './application-entry-point-
|
|
18
|
+
import './index-0b3f8556.esm.js';
|
|
19
|
+
import './application-entry-point-cfaa3874.esm.js';
|
|
20
20
|
import '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
21
21
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
22
22
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var ProjectExpiredSVG = require('@commercetools-frontend/assets/images/hourglass.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-5ff429b8.cjs.dev.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e45779cf.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-cde26c8c.cjs.dev.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var ProjectExpiredSVG = require('@commercetools-frontend/assets/images/hourglass.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-23ea0c1e.cjs.prod.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e8564a47.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-961cacf8.cjs.prod.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
@@ -10,13 +10,13 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
10
10
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|
11
11
|
import ProjectSuspendedSVG from '@commercetools-frontend/assets/images/doors-closed.svg';
|
|
12
12
|
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
|
|
13
|
-
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-
|
|
13
|
+
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-272fcaa0.esm.js';
|
|
14
14
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
15
15
|
import '@emotion/styled/base';
|
|
16
16
|
import 'react-router-dom';
|
|
17
17
|
import '@commercetools-frontend/application-shell-connectors';
|
|
18
|
-
import './index-
|
|
19
|
-
import './application-entry-point-
|
|
18
|
+
import './index-0b3f8556.esm.js';
|
|
19
|
+
import './application-entry-point-cfaa3874.esm.js';
|
|
20
20
|
import '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
21
21
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
22
22
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
package/dist/{project-suspended-12afc464.cjs.dev.js → project-suspended-b46cf02d.cjs.dev.js}
RENAMED
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var ProjectSuspendedSVG = require('@commercetools-frontend/assets/images/doors-closed.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-5ff429b8.cjs.dev.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e45779cf.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-cde26c8c.cjs.dev.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
package/dist/{project-suspended-f97a6552.cjs.prod.js → project-suspended-c2fca68f.cjs.prod.js}
RENAMED
|
@@ -12,13 +12,13 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var ProjectSuspendedSVG = require('@commercetools-frontend/assets/images/doors-closed.svg');
|
|
14
14
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-23ea0c1e.cjs.prod.js');
|
|
16
16
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
17
17
|
require('@emotion/styled/base');
|
|
18
18
|
require('react-router-dom');
|
|
19
19
|
require('@commercetools-frontend/application-shell-connectors');
|
|
20
|
-
require('./index-
|
|
21
|
-
require('./application-entry-point-
|
|
20
|
+
require('./index-e8564a47.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-961cacf8.cjs.prod.js');
|
|
22
22
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
@@ -24,7 +24,7 @@ var debounce = require('debounce-async');
|
|
|
24
24
|
var constants = require('@commercetools-frontend/constants');
|
|
25
25
|
var permissions$1 = require('@commercetools-frontend/permissions');
|
|
26
26
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
27
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
27
|
+
var applicationEntryPoint = require('./application-entry-point-961cacf8.cjs.prod.js');
|
|
28
28
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
29
29
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
30
30
|
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
@@ -43,7 +43,7 @@ var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
|
|
|
43
43
|
var icons = require('@commercetools-uikit/icons');
|
|
44
44
|
var designSystem = require('@commercetools-uikit/design-system');
|
|
45
45
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
46
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
46
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-e8564a47.cjs.prod.js');
|
|
47
47
|
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
48
48
|
var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
49
49
|
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
@@ -24,7 +24,7 @@ var debounce = require('debounce-async');
|
|
|
24
24
|
var constants = require('@commercetools-frontend/constants');
|
|
25
25
|
var permissions$1 = require('@commercetools-frontend/permissions');
|
|
26
26
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
27
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
27
|
+
var applicationEntryPoint = require('./application-entry-point-cde26c8c.cjs.dev.js');
|
|
28
28
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
29
29
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
30
30
|
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
@@ -43,7 +43,7 @@ var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
|
|
|
43
43
|
var icons = require('@commercetools-uikit/icons');
|
|
44
44
|
var designSystem = require('@commercetools-uikit/design-system');
|
|
45
45
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
46
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
46
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-e45779cf.cjs.dev.js');
|
|
47
47
|
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
48
48
|
var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
49
49
|
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
@@ -22,7 +22,7 @@ import debounce from 'debounce-async';
|
|
|
22
22
|
import { SUPPORT_PORTAL_URL, LOGOUT_REASONS, GRAPHQL_TARGETS, MC_API_PROXY_TARGETS } from '@commercetools-frontend/constants';
|
|
23
23
|
import { hasSomePermissions } from '@commercetools-frontend/permissions';
|
|
24
24
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
25
|
-
import { c as location } from './application-entry-point-
|
|
25
|
+
import { c as location } from './application-entry-point-cfaa3874.esm.js';
|
|
26
26
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
27
27
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
28
28
|
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
@@ -41,7 +41,7 @@ import LoadingSpinner from '@commercetools-uikit/loading-spinner';
|
|
|
41
41
|
import { AngleThinRightIcon, SearchIcon } from '@commercetools-uikit/icons';
|
|
42
42
|
import { customProperties } from '@commercetools-uikit/design-system';
|
|
43
43
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
44
|
-
import { B as ButlerContainer, p as pimIndexerStates } from './index-
|
|
44
|
+
import { B as ButlerContainer, p as pimIndexerStates } from './index-0b3f8556.esm.js';
|
|
45
45
|
import _Promise from '@babel/runtime-corejs3/core-js-stable/promise';
|
|
46
46
|
import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
47
47
|
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _styled = require('@emotion/styled/base');
|
|
4
4
|
var reactRouterDom = require('react-router-dom');
|
|
5
5
|
var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-e8564a47.cjs.prod.js');
|
|
7
7
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _styled from '@emotion/styled/base';
|
|
2
2
|
import { useParams } from 'react-router-dom';
|
|
3
3
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
4
|
-
import { P as ProjectSwitcher } from './index-
|
|
4
|
+
import { P as ProjectSwitcher } from './index-0b3f8556.esm.js';
|
|
5
5
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|