@commercetools-frontend/application-shell 22.14.2 → 22.15.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 +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-263f2c1a.cjs.dev.js → custom-view-dev-host-0f62a220.cjs.dev.js} +1 -1
- package/dist/custom-view-dev-host-714c9d65.cjs.prod.js +203 -0
- package/dist/{custom-view-dev-host-c295f899.esm.js → custom-view-dev-host-e3c2a970.esm.js} +1 -1
- package/dist/declarations/src/components/authenticated/oidc-callback.async.d.ts +1 -1
- package/dist/declarations/src/components/authenticated/oidc-callback.d.ts +1 -1
- package/dist/declarations/src/components/navbar/menu-items.d.ts +4 -4
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-login/index.d.ts +1 -1
- package/dist/declarations/src/components/redirect-to-login/redirect-to-login.d.ts +1 -1
- package/dist/declarations/src/components/redirector/index.d.ts +1 -1
- package/dist/declarations/src/components/redirector/redirector.d.ts +6 -5
- package/dist/{index-a7493b61.cjs.prod.js → index-08c8fcb3.cjs.prod.js} +107 -57
- package/dist/{index-315660b0.esm.js → index-4eee2222.esm.js} +105 -70
- package/dist/{index-ae1eae7e.cjs.dev.js → index-97ddc7b1.cjs.dev.js} +103 -68
- package/dist/navbar-5a1b9a06.esm.js +1223 -0
- package/dist/navbar-a5342082.cjs.dev.js +1256 -0
- package/dist/{navbar-be902d73.cjs.prod.js → navbar-d60f807a.cjs.prod.js} +38 -8
- package/dist/{oidc-callback-f120d63c.esm.js → oidc-callback-621a8bd2.esm.js} +69 -48
- package/dist/{oidc-callback-b397bd00.cjs.prod.js → oidc-callback-f70d9fd1.cjs.prod.js} +66 -47
- package/dist/{oidc-callback-77adc650.cjs.dev.js → oidc-callback-fa62a3ca.cjs.dev.js} +70 -48
- package/dist/{project-container-c014c0c5.cjs.dev.js → project-container-2751a67a.cjs.dev.js} +5 -5
- package/dist/{project-container-68403e75.esm.js → project-container-b2a1fd66.esm.js} +5 -5
- package/dist/{project-container-9cfe3aa6.cjs.prod.js → project-container-e657827e.cjs.prod.js} +5 -5
- package/dist/{project-expired-9b37e7be.cjs.prod.js → project-expired-085f8e5a.cjs.prod.js} +2 -2
- package/dist/{project-expired-2f27ca0a.esm.js → project-expired-09e4078a.esm.js} +2 -2
- package/dist/{project-expired-be7a7c1e.cjs.dev.js → project-expired-cb7e26ef.cjs.dev.js} +2 -2
- package/dist/{project-not-found-43dadcef.esm.js → project-not-found-13cd7767.esm.js} +2 -2
- package/dist/{project-not-found-a2e74c89.cjs.prod.js → project-not-found-2f6dc5d2.cjs.prod.js} +2 -2
- package/dist/{project-not-found-96cdb368.cjs.dev.js → project-not-found-7646a1ee.cjs.dev.js} +2 -2
- package/dist/{project-not-initialized-8e84d5c7.esm.js → project-not-initialized-74f4384a.esm.js} +2 -2
- package/dist/{project-not-initialized-ffaffeb0.cjs.prod.js → project-not-initialized-9694ef3e.cjs.prod.js} +2 -2
- package/dist/{project-not-initialized-362155ca.cjs.dev.js → project-not-initialized-e40d16f2.cjs.dev.js} +2 -2
- package/dist/{project-suspended-61e02b61.cjs.dev.js → project-suspended-55f2ac4f.cjs.dev.js} +2 -2
- package/dist/{project-suspended-37db98bf.cjs.prod.js → project-suspended-f5463061.cjs.prod.js} +2 -2
- package/dist/{project-suspended-c03a9e61.esm.js → project-suspended-f9999215.esm.js} +2 -2
- package/dist/{quick-access-6226709e.esm.js → quick-access-6cd9b3ba.esm.js} +1 -1
- package/dist/{quick-access-68c00be3.cjs.dev.js → quick-access-8314ffe5.cjs.dev.js} +1 -1
- package/dist/{quick-access-cffc290d.cjs.prod.js → quick-access-c9f75955.cjs.prod.js} +1 -1
- package/dist/redirect-to-login-5e148cff.esm.js +118 -0
- package/dist/redirect-to-login-d2287ced.cjs.dev.js +120 -0
- package/dist/redirect-to-login-e4f2ca07.cjs.prod.js +120 -0
- package/dist/{redirect-to-logout-fa06e640.cjs.dev.js → redirect-to-logout-a4bc80a6.cjs.dev.js} +3 -6
- package/dist/{redirect-to-logout-22708e37.cjs.prod.js → redirect-to-logout-cdcb00b1.cjs.prod.js} +3 -6
- package/dist/{redirect-to-logout-aa665ef1.esm.js → redirect-to-logout-ed7cd66d.esm.js} +3 -6
- package/dist/redirect-to-project-create-1d0c6b01.esm.js +59 -0
- package/dist/redirect-to-project-create-67d7cd03.cjs.dev.js +67 -0
- package/dist/redirect-to-project-create-c962f72f.cjs.prod.js +67 -0
- package/dist/{redirector-752b4efc.cjs.prod.js → redirector-15844d9b.cjs.prod.js} +22 -12
- package/dist/{redirector-db8b5cd2.esm.js → redirector-54a03b75.esm.js} +23 -14
- package/dist/{redirector-5daa8baa.cjs.dev.js → redirector-fcdeaba7.cjs.dev.js} +22 -12
- package/dist/{requests-in-flight-loader-df11d5fc.cjs.dev.js → requests-in-flight-loader-097bfc28.cjs.dev.js} +1 -1
- package/dist/{requests-in-flight-loader-c30b0762.esm.js → requests-in-flight-loader-e5951187.esm.js} +1 -1
- package/dist/{requests-in-flight-loader-2f004196.cjs.prod.js → requests-in-flight-loader-f584e80c.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-ae6d1775.cjs.dev.js → service-page-project-switcher-8f694816.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-65c553fa.esm.js → service-page-project-switcher-90efcfbc.esm.js} +1 -1
- package/dist/{service-page-project-switcher-4818f8e5.cjs.prod.js → service-page-project-switcher-cc8cab71.cjs.prod.js} +1 -1
- package/dist/{version-tracker-4b5032f1.esm.js → version-tracker-46a3f021.esm.js} +1 -1
- package/dist/{version-tracker-e5b7b2ae.cjs.dev.js → version-tracker-9976ad26.cjs.dev.js} +1 -1
- package/dist/{version-tracker-a3a9dd53.cjs.prod.js → version-tracker-a3eb5a8e.cjs.prod.js} +1 -1
- package/package.json +16 -16
- package/dist/navbar-8409df86.cjs.dev.js +0 -1226
- package/dist/navbar-e4559c93.esm.js +0 -1193
- package/dist/redirect-to-login-573b012a.cjs.prod.js +0 -109
- package/dist/redirect-to-login-dffecd53.cjs.dev.js +0 -109
- package/dist/redirect-to-login-e569bd46.esm.js +0 -107
- package/dist/redirect-to-project-create-2266c427.cjs.prod.js +0 -59
- package/dist/redirect-to-project-create-7b476aa6.cjs.dev.js +0 -59
- package/dist/redirect-to-project-create-c5323504.esm.js +0 -50
|
@@ -112,9 +112,9 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
112
112
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
113
113
|
|
|
114
114
|
// NOTE: This string will be replaced on build time with the package version.
|
|
115
|
-
var applicationShellVersion = "22.
|
|
115
|
+
var applicationShellVersion = "22.15.0";
|
|
116
116
|
|
|
117
|
-
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-
|
|
117
|
+
const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-f584e80c.cjs.prod.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
|
|
118
118
|
|
|
119
119
|
// Attempt to load the `projectKey` from localStorage
|
|
120
120
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -319,6 +319,10 @@ const CustomMenuList = props => {
|
|
|
319
319
|
}))
|
|
320
320
|
});
|
|
321
321
|
};
|
|
322
|
+
const Control = props => jsxRuntime.jsx(reactSelect.components.Control, _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
323
|
+
css: /*#__PURE__*/react$1.css("min-width:", designSystem.designTokens.constraint3, ";" + ("" ), "" ),
|
|
324
|
+
children: props.children
|
|
325
|
+
}));
|
|
322
326
|
const redirectTo = targetUrl => useIsServedByProxy.location.replace(targetUrl);
|
|
323
327
|
const ProjectSwitcher = props => {
|
|
324
328
|
const intl = reactIntl.useIntl();
|
|
@@ -363,7 +367,8 @@ const ProjectSwitcher = props => {
|
|
|
363
367
|
components: {
|
|
364
368
|
Option: ProjectSwitcherOption,
|
|
365
369
|
ValueContainer,
|
|
366
|
-
MenuList: CustomMenuList
|
|
370
|
+
MenuList: CustomMenuList,
|
|
371
|
+
Control
|
|
367
372
|
},
|
|
368
373
|
isClearable: false,
|
|
369
374
|
backspaceRemovesValue: false,
|
|
@@ -559,9 +564,9 @@ FetchUser.propTypes = {
|
|
|
559
564
|
};
|
|
560
565
|
FetchUser.displayName = 'FetchUser';
|
|
561
566
|
|
|
562
|
-
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-
|
|
567
|
+
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-d60f807a.cjs.prod.js' /* webpackChunkName: "navbar" */); }));
|
|
563
568
|
|
|
564
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
569
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-e657827e.cjs.prod.js' /* webpackChunkName: "project-container" */); }));
|
|
565
570
|
|
|
566
571
|
const getSelectedDataLocaleForProject = projectLocales => {
|
|
567
572
|
const cachedDataLocale = window.localStorage.getItem(constants.STORAGE_KEYS.SELECTED_DATA_LOCALE);
|
|
@@ -673,7 +678,7 @@ var pimIndexerStates = {
|
|
|
673
678
|
NOT_INDEXED: 'NOT_INDEXED'
|
|
674
679
|
};
|
|
675
680
|
|
|
676
|
-
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-
|
|
681
|
+
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-c9f75955.cjs.prod.js' /* webpackChunkName: "quick-access" */); }));
|
|
677
682
|
|
|
678
683
|
const QuickAccessTrigger = props => {
|
|
679
684
|
const _useState = react.useState(false),
|
|
@@ -760,9 +765,9 @@ const QuickAccessTrigger = props => {
|
|
|
760
765
|
QuickAccessTrigger.propTypes = {};
|
|
761
766
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
762
767
|
|
|
763
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
768
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-cdcb00b1.cjs.prod.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
764
769
|
|
|
765
|
-
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-
|
|
770
|
+
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-c962f72f.cjs.prod.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
766
771
|
|
|
767
772
|
function ownKeys$7(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; }
|
|
768
773
|
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(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$7(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -886,7 +891,7 @@ const ThemeSwitcher = () => {
|
|
|
886
891
|
});
|
|
887
892
|
};
|
|
888
893
|
|
|
889
|
-
const VersionTracker = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./version-tracker-
|
|
894
|
+
const VersionTracker = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./version-tracker-a3eb5a8e.cjs.prod.js' /* webpackChunkName: "version-tracker" */); }));
|
|
890
895
|
|
|
891
896
|
function ownKeys$5(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; }
|
|
892
897
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$5(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -1355,7 +1360,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1355
1360
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1356
1361
|
};
|
|
1357
1362
|
|
|
1358
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1363
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-f70d9fd1.cjs.prod.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1359
1364
|
|
|
1360
1365
|
function ownKeys$3(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; }
|
|
1361
1366
|
function _objectSpread$3(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$3(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$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -1505,7 +1510,7 @@ const ApplicationShellProvider = props => {
|
|
|
1505
1510
|
ApplicationShellProvider.propTypes = {};
|
|
1506
1511
|
ApplicationShellProvider.displayName = 'ApplicationShellProvider';
|
|
1507
1512
|
|
|
1508
|
-
const RedirectToLogin = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-login-
|
|
1513
|
+
const RedirectToLogin = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-login-e4f2ca07.cjs.prod.js' /* webpackChunkName: "redirect-to-login" */); }));
|
|
1509
1514
|
|
|
1510
1515
|
const styles = {
|
|
1511
1516
|
name: "1prreal",
|
|
@@ -1571,6 +1576,8 @@ ApplicationShell.propTypes = {};
|
|
|
1571
1576
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1572
1577
|
ApplicationShell.version = applicationShellVersion;
|
|
1573
1578
|
|
|
1579
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-714c9d65.cjs.prod.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1580
|
+
|
|
1574
1581
|
function ownKeys$1(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; }
|
|
1575
1582
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(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$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1576
1583
|
const CustomViewWithPermissionCheck = props => {
|
|
@@ -1678,6 +1685,9 @@ function NotificationsContainer(props) {
|
|
|
1678
1685
|
});
|
|
1679
1686
|
}
|
|
1680
1687
|
NotificationsContainer.propTypes = {};
|
|
1688
|
+
const ContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1689
|
+
target: "e8xye0r0"
|
|
1690
|
+
} )("height:100%;padding:", designSystem.designTokens.spacing40, " 40px;" + ("" ));
|
|
1681
1691
|
function StrictModeEnablement(props) {
|
|
1682
1692
|
if (props.enableReactStrictMode) {
|
|
1683
1693
|
return jsxRuntime.jsx(react.StrictMode, {
|
|
@@ -1689,8 +1699,16 @@ function StrictModeEnablement(props) {
|
|
|
1689
1699
|
});
|
|
1690
1700
|
}
|
|
1691
1701
|
}
|
|
1702
|
+
|
|
1703
|
+
/*
|
|
1704
|
+
During e2e tests, the Custom View template is built in production mode but still runs on localhost.
|
|
1705
|
+
Checking for local production mode is necessary for applying the development host URL,
|
|
1706
|
+
creating an environment for testing interaction with the Custom View template.
|
|
1707
|
+
*/
|
|
1692
1708
|
StrictModeEnablement.propTypes = {};
|
|
1709
|
+
const isLocalProdMode = window.app.env === 'development';
|
|
1693
1710
|
function CustomViewShell(props) {
|
|
1711
|
+
var _window$app$__DEVELOP;
|
|
1694
1712
|
const _useState = react.useState(),
|
|
1695
1713
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1696
1714
|
hostContext = _useState2[0],
|
|
@@ -1711,6 +1729,16 @@ function CustomViewShell(props) {
|
|
|
1711
1729
|
});
|
|
1712
1730
|
}
|
|
1713
1731
|
}, []);
|
|
1732
|
+
const handleClose = react.useCallback(() => {
|
|
1733
|
+
var _iFrameCommunicationP, _context;
|
|
1734
|
+
(_iFrameCommunicationP = iFrameCommunicationPort.current) === null || _iFrameCommunicationP === void 0 || _iFrameCommunicationP.postMessage({
|
|
1735
|
+
origin: window.location.origin,
|
|
1736
|
+
source: _concatInstanceProperty__default["default"](_context = "".concat(constants.CUSTOM_VIEWS_EVENTS_META.CUSTOM_VIEW_KEY_PREFIX)).call(_context, hostContext === null || hostContext === void 0 ? void 0 : hostContext.customViewConfig.id),
|
|
1737
|
+
destination: constants.CUSTOM_VIEWS_EVENTS_META.HOST_APPLICATION_CODE,
|
|
1738
|
+
eventName: constants.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_CLOSE,
|
|
1739
|
+
eventData: {}
|
|
1740
|
+
});
|
|
1741
|
+
}, [hostContext === null || hostContext === void 0 ? void 0 : hostContext.customViewConfig.id]);
|
|
1714
1742
|
react.useEffect(() => {
|
|
1715
1743
|
const bootstrapMessageHandler = event => {
|
|
1716
1744
|
if ((event.origin === window.location.origin ||
|
|
@@ -1735,8 +1763,8 @@ function CustomViewShell(props) {
|
|
|
1735
1763
|
react.useEffect(() => {
|
|
1736
1764
|
// Close the channel when the component unmounts
|
|
1737
1765
|
return () => {
|
|
1738
|
-
var
|
|
1739
|
-
(
|
|
1766
|
+
var _iFrameCommunicationP2;
|
|
1767
|
+
(_iFrameCommunicationP2 = iFrameCommunicationPort.current) === null || _iFrameCommunicationP2 === void 0 || _iFrameCommunicationP2.close();
|
|
1740
1768
|
iFrameCommunicationPort.current = undefined;
|
|
1741
1769
|
};
|
|
1742
1770
|
}, []);
|
|
@@ -1745,56 +1773,78 @@ function CustomViewShell(props) {
|
|
|
1745
1773
|
showLogo: true
|
|
1746
1774
|
});
|
|
1747
1775
|
}
|
|
1748
|
-
const hostUrl = hostContext.hostUrl;
|
|
1749
|
-
return jsxRuntime.
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
children: jsxRuntime.jsxs(CustomViewShellAuthenticated, {
|
|
1761
|
-
dataLocale: hostContext.dataLocale,
|
|
1762
|
-
environment: window.app,
|
|
1763
|
-
messages: props.applicationMessages,
|
|
1764
|
-
projectKey: hostContext.projectKey,
|
|
1776
|
+
const hostUrl = isLocalProdMode ? (_window$app$__DEVELOP = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP === void 0 ? void 0 : _window$app$__DEVELOP.customViewHostUrl : hostContext.hostUrl;
|
|
1777
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1778
|
+
children: [jsxRuntime.jsx(GlobalStyles, {}), jsxRuntime.jsx(ApplicationShellProvider, {
|
|
1779
|
+
environment: window.app,
|
|
1780
|
+
applicationMessages: props.applicationMessages,
|
|
1781
|
+
apolloClient: props.apolloClient,
|
|
1782
|
+
children: _ref => {
|
|
1783
|
+
let isAuthenticated = _ref.isAuthenticated;
|
|
1784
|
+
if (isAuthenticated) {
|
|
1785
|
+
var _context2;
|
|
1786
|
+
return jsxRuntime.jsx(applicationShellConnectors.CustomViewContextProvider, {
|
|
1787
|
+
hostUrl: hostUrl,
|
|
1765
1788
|
customViewConfig: hostContext.customViewConfig,
|
|
1766
|
-
children:
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
children: jsxRuntime.jsx(applicationComponents.PageUnauthorized, {})
|
|
1789
|
+
children: jsxRuntime.jsxs(CustomViewShellAuthenticated, {
|
|
1790
|
+
dataLocale: hostContext.dataLocale,
|
|
1791
|
+
environment: window.app,
|
|
1792
|
+
messages: props.applicationMessages,
|
|
1793
|
+
projectKey: hostContext.projectKey,
|
|
1794
|
+
customViewConfig: hostContext.customViewConfig,
|
|
1795
|
+
children: [jsxRuntime.jsx(applicationComponents.PortalsContainer
|
|
1796
|
+
// @ts-ignore
|
|
1797
|
+
, {
|
|
1798
|
+
ref: layoutRefs
|
|
1799
|
+
}), jsxRuntime.jsx(NotificationsContainer, {
|
|
1800
|
+
notificationsGlobalRef: notificationsGlobalRef,
|
|
1801
|
+
notificationsPageRef: notificationsPageRef
|
|
1802
|
+
}), jsxRuntime.jsxs(reactRouterDom.Route, {
|
|
1803
|
+
path: _concatInstanceProperty__default["default"](_context2 = "/custom-views/".concat(hostContext.customViewConfig.id, "/projects/")).call(_context2, hostContext.projectKey),
|
|
1804
|
+
children: [jsxRuntime.jsx(applicationComponents.ModalPageTopBar, {
|
|
1805
|
+
onClose: handleClose,
|
|
1806
|
+
hidePathLabel: true
|
|
1807
|
+
}), jsxRuntime.jsx(ContentWrapper, {
|
|
1808
|
+
children: props.children
|
|
1809
|
+
})]
|
|
1810
|
+
})]
|
|
1811
|
+
})
|
|
1790
1812
|
});
|
|
1791
1813
|
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1814
|
+
return jsxRuntime.jsx(i18n.AsyncLocaleData, {
|
|
1815
|
+
locale: browserLocale,
|
|
1816
|
+
applicationMessages: props.applicationMessages,
|
|
1817
|
+
children: _ref2 => {
|
|
1818
|
+
let locale = _ref2.locale,
|
|
1819
|
+
messages = _ref2.messages;
|
|
1820
|
+
return jsxRuntime.jsx(ConfigureIntlProvider, {
|
|
1821
|
+
locale: locale,
|
|
1822
|
+
messages: messages,
|
|
1823
|
+
children: jsxRuntime.jsx(applicationComponents.PageUnauthorized, {})
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
})]
|
|
1794
1829
|
});
|
|
1795
1830
|
}
|
|
1796
1831
|
CustomViewShell.propTypes = {};
|
|
1797
1832
|
const CustomViewShellWrapper = props => {
|
|
1833
|
+
if ((isLocalProdMode) && !props.disableDevHost) {
|
|
1834
|
+
return jsxRuntime.jsx(StrictModeEnablement, {
|
|
1835
|
+
enableReactStrictMode: props.enableReactStrictMode,
|
|
1836
|
+
children: jsxRuntime.jsx(react.Suspense, {
|
|
1837
|
+
fallback: jsxRuntime.jsx(ApplicationLoader, {}),
|
|
1838
|
+
children: jsxRuntime.jsx(CustomViewDevHost, {
|
|
1839
|
+
applicationMessages: props.applicationMessages,
|
|
1840
|
+
children: jsxRuntime.jsx(CustomViewShell, {
|
|
1841
|
+
applicationMessages: props.applicationMessages,
|
|
1842
|
+
children: props.children
|
|
1843
|
+
})
|
|
1844
|
+
})
|
|
1845
|
+
})
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1798
1848
|
return jsxRuntime.jsx(StrictModeEnablement, {
|
|
1799
1849
|
enableReactStrictMode: props.enableReactStrictMode,
|
|
1800
1850
|
children: jsxRuntime.jsx(CustomViewShell, {
|
|
@@ -1844,7 +1894,7 @@ InjectReducers.propTypes = {
|
|
|
1844
1894
|
InjectReducers.displayName = 'InjectReducers';
|
|
1845
1895
|
InjectReducers.defaultProps = defaultProps;
|
|
1846
1896
|
|
|
1847
|
-
const errorMessageIgnoreList = [/ResizeObserver loop limit exceeded/i];
|
|
1897
|
+
const errorMessageIgnoreList = [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i];
|
|
1848
1898
|
|
|
1849
1899
|
// Ensure to initialize Sentry as soon as possible, so that we have the chance
|
|
1850
1900
|
// of catching possible errors.
|