@commercetools-frontend/application-shell 27.9.5 → 27.9.6
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 +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-application-shell.esm.js +1 -1
- package/dist/{custom-view-dev-host-ed74a299.cjs.dev.js → custom-view-dev-host-78890fd6.cjs.dev.js} +1 -1
- package/dist/{custom-view-dev-host-0bc0708b.esm.js → custom-view-dev-host-ad35a3bf.esm.js} +1 -1
- package/dist/{custom-view-dev-host-bdd03fc8.cjs.prod.js → custom-view-dev-host-c2737d42.cjs.prod.js} +1 -1
- package/dist/{index-d0d058fb.cjs.dev.js → index-917cbf00.cjs.dev.js} +66 -63
- package/dist/{index-ca9d3c26.cjs.prod.js → index-b0d1d33f.cjs.prod.js} +49 -47
- package/dist/{index-a0ffa2ba.esm.js → index-d0720856.esm.js} +67 -64
- package/dist/{oidc-callback-3780969c.cjs.dev.js → oidc-callback-0c6b42b0.cjs.dev.js} +1 -1
- package/dist/{oidc-callback-0ab7466e.esm.js → oidc-callback-97081f64.esm.js} +1 -1
- package/dist/{oidc-callback-7397a8c8.cjs.prod.js → oidc-callback-b6b2b136.cjs.prod.js} +1 -1
- package/dist/{project-container-4b0c78c9.cjs.dev.js → project-container-bfd38f39.cjs.dev.js} +5 -5
- package/dist/{project-container-2f81bfa1.cjs.prod.js → project-container-ee8064df.cjs.prod.js} +5 -5
- package/dist/{project-container-7ded10a0.esm.js → project-container-f9b67fe9.esm.js} +5 -5
- package/dist/{project-expired-02bb5fbf.esm.js → project-expired-26882e9c.esm.js} +2 -2
- package/dist/{project-expired-654503b5.cjs.prod.js → project-expired-7d4ff82c.cjs.prod.js} +2 -2
- package/dist/{project-expired-02bb408a.cjs.dev.js → project-expired-ee6d5ee5.cjs.dev.js} +2 -2
- package/dist/{project-not-found-80d44324.cjs.dev.js → project-not-found-2382cec9.cjs.dev.js} +2 -2
- package/dist/{project-not-found-9693f7ef.cjs.prod.js → project-not-found-5befa123.cjs.prod.js} +2 -2
- package/dist/{project-not-found-6e2a2916.esm.js → project-not-found-c23d348e.esm.js} +2 -2
- package/dist/{project-not-initialized-946bd907.esm.js → project-not-initialized-0952c86f.esm.js} +2 -2
- package/dist/{project-not-initialized-7d505128.cjs.prod.js → project-not-initialized-3ccc0fbc.cjs.prod.js} +2 -2
- package/dist/{project-not-initialized-3598e0cb.cjs.dev.js → project-not-initialized-6e2e7574.cjs.dev.js} +2 -2
- package/dist/{project-suspended-f7e75ee6.esm.js → project-suspended-1eeb1f2d.esm.js} +2 -2
- package/dist/{project-suspended-672645d1.cjs.prod.js → project-suspended-9987b065.cjs.prod.js} +2 -2
- package/dist/{project-suspended-978be1e1.cjs.dev.js → project-suspended-f21443cc.cjs.dev.js} +2 -2
- package/dist/{redirect-to-logout-228fc202.esm.js → redirect-to-logout-4af3e4a1.esm.js} +1 -1
- package/dist/{redirect-to-logout-e05ae455.cjs.dev.js → redirect-to-logout-b4c08612.cjs.dev.js} +1 -1
- package/dist/{redirect-to-logout-43f2eabf.cjs.prod.js → redirect-to-logout-eb67ac6b.cjs.prod.js} +1 -1
- package/dist/{requests-in-flight-loader-7abed452.cjs.dev.js → requests-in-flight-loader-5de6c859.cjs.dev.js} +1 -1
- package/dist/{requests-in-flight-loader-2828ca39.cjs.prod.js → requests-in-flight-loader-7a105650.cjs.prod.js} +1 -1
- package/dist/{requests-in-flight-loader-8cc57f22.esm.js → requests-in-flight-loader-cb2c7a2f.esm.js} +1 -1
- package/dist/{service-page-project-switcher-5589e37a.cjs.dev.js → service-page-project-switcher-0f1c3a13.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-a9da55c8.esm.js → service-page-project-switcher-810e383e.esm.js} +1 -1
- package/dist/{service-page-project-switcher-2b3c5ae1.cjs.prod.js → service-page-project-switcher-fc328776.cjs.prod.js} +1 -1
- package/package.json +16 -16
|
@@ -105,9 +105,9 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
105
105
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
106
106
|
|
|
107
107
|
// NOTE: This string will be replaced on build time with the package version.
|
|
108
|
-
var version = "27.9.
|
|
108
|
+
var version = "27.9.6";
|
|
109
109
|
|
|
110
|
-
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-
|
|
110
|
+
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-7a105650.cjs.prod.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
|
|
111
111
|
|
|
112
112
|
// Attempt to load the `projectKey` from localStorage
|
|
113
113
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -271,7 +271,7 @@ const ProjectStampsList = props => jsxRuntime.jsxs(Spacings__default["default"].
|
|
|
271
271
|
daysLeft: props.expiry.daysLeft
|
|
272
272
|
})]
|
|
273
273
|
});
|
|
274
|
-
var _ref$
|
|
274
|
+
var _ref$3 = {
|
|
275
275
|
name: "uyj17t",
|
|
276
276
|
styles: "flex:1;word-wrap:break-word"
|
|
277
277
|
} ;
|
|
@@ -282,7 +282,7 @@ const ProjectSwitcherOption = props => {
|
|
|
282
282
|
scale: "xs",
|
|
283
283
|
justifyContent: "space-between",
|
|
284
284
|
children: [jsxRuntime.jsxs("div", {
|
|
285
|
-
css: _ref$
|
|
285
|
+
css: _ref$3,
|
|
286
286
|
children: [jsxRuntime.jsx(Text__default["default"].Body, {
|
|
287
287
|
fontWeight: "medium",
|
|
288
288
|
tone: props.isDisabled ? 'tertiary' : 'inherit',
|
|
@@ -388,7 +388,7 @@ const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
|
|
|
388
388
|
|
|
389
389
|
const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-2235add2.cjs.prod.js' /* webpackChunkName: "user-settings-menu" */); }));
|
|
390
390
|
|
|
391
|
-
var _ref$
|
|
391
|
+
var _ref$2 = {
|
|
392
392
|
name: "zjik7",
|
|
393
393
|
styles: "display:flex"
|
|
394
394
|
} ;
|
|
@@ -455,7 +455,7 @@ const AppBar = props => {
|
|
|
455
455
|
})]
|
|
456
456
|
})
|
|
457
457
|
}), jsxRuntime.jsxs("div", {
|
|
458
|
-
css: _ref$
|
|
458
|
+
css: _ref$2,
|
|
459
459
|
children: [jsxRuntime.jsx("div", {
|
|
460
460
|
id: oidc.CONTAINERS.LEFT_OF_PROFILE
|
|
461
461
|
}), props.user ? jsxRuntime.jsx(UserSettingsMenu, {
|
|
@@ -489,8 +489,8 @@ const getBrowserLocale = win => {
|
|
|
489
489
|
return l10n.getSupportedLocale(browserLocale);
|
|
490
490
|
};
|
|
491
491
|
|
|
492
|
-
const Passthrough =
|
|
493
|
-
let children =
|
|
492
|
+
const Passthrough = _ref2 => {
|
|
493
|
+
let children = _ref2.children;
|
|
494
494
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
495
495
|
children: children
|
|
496
496
|
});
|
|
@@ -509,15 +509,24 @@ const LazyApplicationShellSplitter = /*#__PURE__*/react.lazy(() => Promise.resol
|
|
|
509
509
|
.catch(() => ({
|
|
510
510
|
default: Passthrough
|
|
511
511
|
})));
|
|
512
|
+
var _ref$1 = {
|
|
513
|
+
name: "vbyc59",
|
|
514
|
+
styles: "position:fixed;bottom:0;left:0;right:0;z-index:10001"
|
|
515
|
+
} ;
|
|
512
516
|
const ApplicationShellSplitterWrapper = props => {
|
|
513
517
|
const history = reactRouterDom.useHistory();
|
|
514
|
-
return jsxRuntime.
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
518
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
519
|
+
children: [jsxRuntime.jsx(react.Suspense, {
|
|
520
|
+
fallback: props.children,
|
|
521
|
+
children: jsxRuntime.jsx(LazyApplicationShellSplitter, {
|
|
522
|
+
locale: props.locale,
|
|
523
|
+
navigate: history.push,
|
|
524
|
+
children: props.children
|
|
525
|
+
})
|
|
526
|
+
}), jsxRuntime.jsx("div", {
|
|
527
|
+
id: constants.MC_MAIN_CONTAINER_PORTAL_ID,
|
|
528
|
+
css: _ref$1
|
|
529
|
+
})]
|
|
521
530
|
});
|
|
522
531
|
};
|
|
523
532
|
|
|
@@ -603,9 +612,9 @@ FetchUser.displayName = 'FetchUser';
|
|
|
603
612
|
|
|
604
613
|
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-f4b2552d.cjs.prod.js' /* webpackChunkName: "navbar" */); }));
|
|
605
614
|
|
|
606
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
615
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-ee8064df.cjs.prod.js' /* webpackChunkName: "project-container" */); }));
|
|
607
616
|
|
|
608
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
617
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-eb67ac6b.cjs.prod.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
609
618
|
|
|
610
619
|
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-e4ff7797.cjs.prod.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
611
620
|
|
|
@@ -747,22 +756,18 @@ const MainContainer = /*#__PURE__*/_styled__default["default"]("main", {
|
|
|
747
756
|
* and contains the "restricted" application part.
|
|
748
757
|
*/
|
|
749
758
|
var _ref = {
|
|
750
|
-
name: "zt04k5",
|
|
751
|
-
styles: "grid-column:2/3;grid-row:3/4;align-self:end;z-index:9999;pointer-events:none"
|
|
752
|
-
} ;
|
|
753
|
-
var _ref2 = {
|
|
754
759
|
name: "tlwzvn",
|
|
755
760
|
styles: "flex-grow:1;display:flex;flex-direction:column;position:relative;>*:not(:first-of-type){flex-grow:1;display:flex;flex-direction:column;}"
|
|
756
761
|
} ;
|
|
757
|
-
var
|
|
762
|
+
var _ref2 = {
|
|
758
763
|
name: "lzrvov",
|
|
759
764
|
styles: "grid-column:1/2;grid-row:2/4;overflow:hidden"
|
|
760
765
|
} ;
|
|
761
|
-
var
|
|
766
|
+
var _ref3 = {
|
|
762
767
|
name: "tjbz3t",
|
|
763
768
|
styles: "grid-row:'2/3';grid-column:'2/3'"
|
|
764
769
|
} ;
|
|
765
|
-
var
|
|
770
|
+
var _ref4 = {
|
|
766
771
|
name: "8bdwu0",
|
|
767
772
|
styles: "grid-row:1;grid-column:1/3"
|
|
768
773
|
} ;
|
|
@@ -781,10 +786,10 @@ const ApplicationShellAuthenticated = props => {
|
|
|
781
786
|
notificationsPageRef
|
|
782
787
|
});
|
|
783
788
|
return jsxRuntime.jsx(FetchUser, {
|
|
784
|
-
children:
|
|
785
|
-
let isLoadingUser =
|
|
786
|
-
user =
|
|
787
|
-
error =
|
|
789
|
+
children: _ref5 => {
|
|
790
|
+
let isLoadingUser = _ref5.isLoading,
|
|
791
|
+
user = _ref5.user,
|
|
792
|
+
error = _ref5.error;
|
|
788
793
|
if (error) {
|
|
789
794
|
// In case there is an unauthorized error, we redirect to the login page
|
|
790
795
|
if (error.graphQLErrors && _Array$isArray__default["default"](error.graphQLErrors)) {
|
|
@@ -805,9 +810,9 @@ const ApplicationShellAuthenticated = props => {
|
|
|
805
810
|
return jsxRuntime.jsx(i18n.AsyncLocaleData, {
|
|
806
811
|
locale: userLocale,
|
|
807
812
|
applicationMessages: props.applicationMessages,
|
|
808
|
-
children:
|
|
809
|
-
let locale =
|
|
810
|
-
messages =
|
|
813
|
+
children: _ref6 => {
|
|
814
|
+
let locale = _ref6.locale,
|
|
815
|
+
messages = _ref6.messages;
|
|
811
816
|
sentry.reportErrorToSentry(error, {});
|
|
812
817
|
return jsxRuntime.jsx(ConfigureIntlProvider, {
|
|
813
818
|
locale: locale,
|
|
@@ -831,10 +836,10 @@ const ApplicationShellAuthenticated = props => {
|
|
|
831
836
|
children: jsxRuntime.jsx(i18n.AsyncLocaleData, {
|
|
832
837
|
locale: normalizedUser?.language,
|
|
833
838
|
applicationMessages: props.applicationMessages,
|
|
834
|
-
children:
|
|
835
|
-
let isLoadingLocaleData =
|
|
836
|
-
locale =
|
|
837
|
-
messages =
|
|
839
|
+
children: _ref7 => {
|
|
840
|
+
let isLoadingLocaleData = _ref7.isLoading,
|
|
841
|
+
locale = _ref7.locale,
|
|
842
|
+
messages = _ref7.messages;
|
|
838
843
|
return jsxRuntime.jsx(ConfigureIntlProvider
|
|
839
844
|
// We do not want to pass the language as long as the locale data
|
|
840
845
|
// is not loaded.
|
|
@@ -858,20 +863,20 @@ const ApplicationShellAuthenticated = props => {
|
|
|
858
863
|
ref: notificationsGlobalRef,
|
|
859
864
|
role: "region",
|
|
860
865
|
"aria-live": "polite",
|
|
861
|
-
css:
|
|
866
|
+
css: _ref4,
|
|
862
867
|
children: [jsxRuntime.jsx("div", {
|
|
863
868
|
id: "above-top-navigation"
|
|
864
869
|
}), jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
865
870
|
domain: constants.DOMAINS.GLOBAL
|
|
866
871
|
})]
|
|
867
872
|
}), jsxRuntime.jsx("header", {
|
|
868
|
-
css:
|
|
873
|
+
css: _ref3,
|
|
869
874
|
children: jsxRuntime.jsx(AppBar, {
|
|
870
875
|
user: normalizedUser,
|
|
871
876
|
projectKeyFromUrl: projectKeyFromUrl
|
|
872
877
|
})
|
|
873
878
|
}), jsxRuntime.jsx("aside", {
|
|
874
|
-
css:
|
|
879
|
+
css: _ref2,
|
|
875
880
|
children: (() => {
|
|
876
881
|
// The <NavBar> should only be rendered within a project
|
|
877
882
|
// context, therefore when there is a `projectKey`.
|
|
@@ -886,9 +891,9 @@ const ApplicationShellAuthenticated = props => {
|
|
|
886
891
|
if (!projectKeyFromUrl) return null;
|
|
887
892
|
return jsxRuntime.jsx(FetchProject, {
|
|
888
893
|
projectKey: projectKeyFromUrl,
|
|
889
|
-
children:
|
|
890
|
-
let isLoadingProject =
|
|
891
|
-
project =
|
|
894
|
+
children: _ref8 => {
|
|
895
|
+
let isLoadingProject = _ref8.isLoading,
|
|
896
|
+
project = _ref8.project;
|
|
892
897
|
const isLoading = isLoadingUser || isLoadingLocaleData || isLoadingProject || !locale || !project;
|
|
893
898
|
return jsxRuntime.jsx(applicationShellConnectors.ApplicationContextProvider, {
|
|
894
899
|
user: normalizedUser,
|
|
@@ -922,7 +927,7 @@ const ApplicationShellAuthenticated = props => {
|
|
|
922
927
|
}), jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
923
928
|
domain: constants.DOMAINS.SIDE
|
|
924
929
|
}), jsxRuntime.jsxs("div", {
|
|
925
|
-
css:
|
|
930
|
+
css: _ref,
|
|
926
931
|
children: [jsxRuntime.jsx(applicationComponents.PortalsContainer
|
|
927
932
|
// @ts-ignore
|
|
928
933
|
, {
|
|
@@ -988,9 +993,6 @@ const ApplicationShellAuthenticated = props => {
|
|
|
988
993
|
})]
|
|
989
994
|
})]
|
|
990
995
|
})]
|
|
991
|
-
}), jsxRuntime.jsx("div", {
|
|
992
|
-
id: constants.MC_MAIN_CONTAINER_PORTAL_ID,
|
|
993
|
-
css: _ref
|
|
994
996
|
})]
|
|
995
997
|
})]
|
|
996
998
|
})
|
|
@@ -1208,7 +1210,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1208
1210
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1209
1211
|
};
|
|
1210
1212
|
|
|
1211
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1213
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-b6b2b136.cjs.prod.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1212
1214
|
|
|
1213
1215
|
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; }
|
|
1214
1216
|
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; }
|
|
@@ -1473,7 +1475,7 @@ const ApplicationShell = props => {
|
|
|
1473
1475
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1474
1476
|
ApplicationShell.version = version;
|
|
1475
1477
|
|
|
1476
|
-
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-
|
|
1478
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-c2737d42.cjs.prod.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1477
1479
|
|
|
1478
1480
|
function CustomViewFlopFlipProvider(props) {
|
|
1479
1481
|
const adapterArgs = react.useMemo(() => ({
|