@commercetools-frontend/application-shell 22.14.1 → 22.14.3
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-cc53ff72.cjs.dev.js → custom-view-dev-host-52595f60.cjs.dev.js} +1 -1
- package/dist/{custom-view-dev-host-cbf108c9.esm.js → custom-view-dev-host-945f058b.esm.js} +1 -1
- package/dist/custom-view-dev-host-98e7ce7d.cjs.prod.js +203 -0
- package/dist/{index-190fcd7f.cjs.dev.js → index-0d0e6d8b.cjs.dev.js} +98 -42
- package/dist/{index-76a06c5f.esm.js → index-35f9f7c2.esm.js} +98 -42
- package/dist/{index-d07d1e3f.cjs.prod.js → index-c29f8aa0.cjs.prod.js} +111 -40
- package/dist/{oidc-callback-f2c75e2d.cjs.prod.js → oidc-callback-25005367.cjs.prod.js} +1 -1
- package/dist/{oidc-callback-508c5239.cjs.dev.js → oidc-callback-6aa0b446.cjs.dev.js} +1 -1
- package/dist/{oidc-callback-758e96ec.esm.js → oidc-callback-860db268.esm.js} +1 -1
- package/dist/{project-container-de098f6b.cjs.prod.js → project-container-0b7034a5.cjs.prod.js} +5 -5
- package/dist/{project-container-bae27095.cjs.dev.js → project-container-22dd3ee8.cjs.dev.js} +5 -5
- package/dist/{project-container-ba60ec97.esm.js → project-container-8a000259.esm.js} +5 -5
- package/dist/{project-expired-371ff86e.esm.js → project-expired-175f09e7.esm.js} +2 -2
- package/dist/{project-expired-0e3d424a.cjs.dev.js → project-expired-7e9f4a37.cjs.dev.js} +2 -2
- package/dist/{project-expired-1ddd2af5.cjs.prod.js → project-expired-abde10a9.cjs.prod.js} +2 -2
- package/dist/{project-not-found-6c139fad.esm.js → project-not-found-89cc6d97.esm.js} +2 -2
- package/dist/{project-not-found-bc75cb7d.cjs.prod.js → project-not-found-aeb6b4e5.cjs.prod.js} +2 -2
- package/dist/{project-not-found-90c2b18e.cjs.dev.js → project-not-found-fcb9f62d.cjs.dev.js} +2 -2
- package/dist/{project-not-initialized-ddb69ed3.esm.js → project-not-initialized-1e4f45dc.esm.js} +2 -2
- package/dist/{project-not-initialized-4c3ec31f.cjs.dev.js → project-not-initialized-718a18d0.cjs.dev.js} +2 -2
- package/dist/{project-not-initialized-0b673fe7.cjs.prod.js → project-not-initialized-e8c5fae6.cjs.prod.js} +2 -2
- package/dist/{project-suspended-9e8d176c.esm.js → project-suspended-0d49681f.esm.js} +2 -2
- package/dist/{project-suspended-f53d45c9.cjs.prod.js → project-suspended-1f94c722.cjs.prod.js} +2 -2
- package/dist/{project-suspended-62a1b681.cjs.dev.js → project-suspended-d028eced.cjs.dev.js} +2 -2
- package/dist/{quick-access-3516dd17.cjs.dev.js → quick-access-08a2f835.cjs.dev.js} +1 -1
- package/dist/{quick-access-17179da4.esm.js → quick-access-11418f11.esm.js} +1 -1
- package/dist/{quick-access-713ed6cf.cjs.prod.js → quick-access-ecbaedf9.cjs.prod.js} +1 -1
- package/dist/{redirect-to-logout-ea121e87.cjs.prod.js → redirect-to-logout-2418d058.cjs.prod.js} +1 -1
- package/dist/{redirect-to-logout-47da024e.esm.js → redirect-to-logout-7fb8c085.esm.js} +1 -1
- package/dist/{redirect-to-logout-66d5d228.cjs.dev.js → redirect-to-logout-8cbbf5b3.cjs.dev.js} +1 -1
- package/dist/{requests-in-flight-loader-ffbb439c.cjs.dev.js → requests-in-flight-loader-41d05ebb.cjs.dev.js} +1 -1
- package/dist/{requests-in-flight-loader-a92766d3.cjs.prod.js → requests-in-flight-loader-7580242c.cjs.prod.js} +1 -1
- package/dist/{requests-in-flight-loader-788c3b51.esm.js → requests-in-flight-loader-9400ad17.esm.js} +1 -1
- package/dist/{service-page-project-switcher-4c79de0a.cjs.prod.js → service-page-project-switcher-3343ea60.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-1609cf1c.cjs.dev.js → service-page-project-switcher-c2446f31.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-2c199df9.esm.js → service-page-project-switcher-f7058ef7.esm.js} +1 -1
- package/dist/{version-tracker-7c9070d6.cjs.dev.js → version-tracker-0c067072.cjs.dev.js} +1 -1
- package/dist/{version-tracker-97ea0c67.cjs.prod.js → version-tracker-abf7b029.cjs.prod.js} +1 -1
- package/dist/{version-tracker-d42aafd6.esm.js → version-tracker-d3961598.esm.js} +1 -1
- package/package.json +16 -16
|
@@ -72,9 +72,9 @@ import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
72
72
|
import { showUnexpectedErrorNotification } from '@commercetools-frontend/actions-global';
|
|
73
73
|
|
|
74
74
|
// NOTE: This string will be replaced on build time with the package version.
|
|
75
|
-
var applicationShellVersion = "22.14.
|
|
75
|
+
var applicationShellVersion = "22.14.3";
|
|
76
76
|
|
|
77
|
-
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-
|
|
77
|
+
const RequestsInFlightLoader = /*#__PURE__*/lazy(() => import('./requests-in-flight-loader-9400ad17.esm.js' /* webpackChunkName: "requests-in-flight-loader" */));
|
|
78
78
|
|
|
79
79
|
// Attempt to load the `projectKey` from localStorage
|
|
80
80
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -554,7 +554,7 @@ FetchUser.displayName = 'FetchUser';
|
|
|
554
554
|
|
|
555
555
|
const Navbar = /*#__PURE__*/lazy(() => import('./navbar-e4559c93.esm.js' /* webpackChunkName: "navbar" */));
|
|
556
556
|
|
|
557
|
-
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-
|
|
557
|
+
const ProjectContainer = /*#__PURE__*/lazy(() => import('./project-container-8a000259.esm.js' /* webpackChunkName: "project-container" */));
|
|
558
558
|
|
|
559
559
|
const getSelectedDataLocaleForProject = projectLocales => {
|
|
560
560
|
const cachedDataLocale = window.localStorage.getItem(STORAGE_KEYS.SELECTED_DATA_LOCALE);
|
|
@@ -678,7 +678,7 @@ var pimIndexerStates = {
|
|
|
678
678
|
NOT_INDEXED: 'NOT_INDEXED'
|
|
679
679
|
};
|
|
680
680
|
|
|
681
|
-
const QuickAccess = /*#__PURE__*/lazy(() => import('./quick-access-
|
|
681
|
+
const QuickAccess = /*#__PURE__*/lazy(() => import('./quick-access-11418f11.esm.js' /* webpackChunkName: "quick-access" */));
|
|
682
682
|
|
|
683
683
|
const QuickAccessTrigger = props => {
|
|
684
684
|
const _useState = useState(false),
|
|
@@ -767,7 +767,7 @@ QuickAccessTrigger.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
767
767
|
} : {};
|
|
768
768
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
769
769
|
|
|
770
|
-
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-
|
|
770
|
+
const RedirectToLogout = /*#__PURE__*/lazy(() => import('./redirect-to-logout-7fb8c085.esm.js' /* webpackChunkName: "redirect-to-logout" */));
|
|
771
771
|
|
|
772
772
|
const RedirectToProjectCreate = /*#__PURE__*/lazy(() => import('./redirect-to-project-create-c5323504.esm.js' /* webpackChunkName: "redirect-to-project-create" */));
|
|
773
773
|
|
|
@@ -917,7 +917,7 @@ const ThemeSwitcher = () => {
|
|
|
917
917
|
});
|
|
918
918
|
};
|
|
919
919
|
|
|
920
|
-
const VersionTracker = /*#__PURE__*/lazy(() => import('./version-tracker-
|
|
920
|
+
const VersionTracker = /*#__PURE__*/lazy(() => import('./version-tracker-d3961598.esm.js' /* webpackChunkName: "version-tracker" */));
|
|
921
921
|
|
|
922
922
|
function ownKeys$5(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; }
|
|
923
923
|
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(_context2 = ownKeys$5(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$5(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1422,7 +1422,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1422
1422
|
return window.localStorage.getItem(STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1423
1423
|
};
|
|
1424
1424
|
|
|
1425
|
-
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-
|
|
1425
|
+
const OidcCallback = /*#__PURE__*/lazy(() => import('./oidc-callback-860db268.esm.js' /* webpackChunkName: "oidc-callback" */));
|
|
1426
1426
|
|
|
1427
1427
|
function ownKeys$3(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; }
|
|
1428
1428
|
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(_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1660,7 +1660,7 @@ ApplicationShell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1660
1660
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1661
1661
|
ApplicationShell.version = applicationShellVersion;
|
|
1662
1662
|
|
|
1663
|
-
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-
|
|
1663
|
+
const CustomViewDevHost = /*#__PURE__*/lazy(() => import('./custom-view-dev-host-945f058b.esm.js' /* webpackChunkName: "custom-view-dev-host" */));
|
|
1664
1664
|
|
|
1665
1665
|
function ownKeys$1(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; }
|
|
1666
1666
|
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(_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1710,7 +1710,8 @@ function CustomViewShellAuthenticated(props) {
|
|
|
1710
1710
|
environment: props.environment,
|
|
1711
1711
|
children: jsxs(Fragment, {
|
|
1712
1712
|
children: [jsx(ThemeProvider, {
|
|
1713
|
-
theme: "default"
|
|
1713
|
+
theme: "default",
|
|
1714
|
+
themeOverrides: themesOverrides.default
|
|
1714
1715
|
}), jsx(FetchProject, {
|
|
1715
1716
|
projectKey: props.projectKey,
|
|
1716
1717
|
children: _ref3 => {
|
|
@@ -1749,6 +1750,35 @@ CustomViewShellAuthenticated.propTypes = process.env.NODE_ENV !== "production" ?
|
|
|
1749
1750
|
} : {};
|
|
1750
1751
|
|
|
1751
1752
|
const browserLocale = getBrowserLocale(window);
|
|
1753
|
+
function NotificationsContainer(props) {
|
|
1754
|
+
return jsxs(Fragment, {
|
|
1755
|
+
children: [jsxs("div", {
|
|
1756
|
+
ref: props.notificationsGlobalRef,
|
|
1757
|
+
role: "region",
|
|
1758
|
+
"aria-live": "polite",
|
|
1759
|
+
style: {
|
|
1760
|
+
gridRow: 1,
|
|
1761
|
+
gridColumn: '1/3'
|
|
1762
|
+
},
|
|
1763
|
+
children: [jsx("div", {
|
|
1764
|
+
id: "above-top-navigation"
|
|
1765
|
+
}), jsx(NotificationsList, {
|
|
1766
|
+
domain: DOMAINS.GLOBAL
|
|
1767
|
+
})]
|
|
1768
|
+
}), jsx("div", {
|
|
1769
|
+
ref: props.notificationsPageRef,
|
|
1770
|
+
children: jsx(NotificationsList, {
|
|
1771
|
+
domain: DOMAINS.PAGE
|
|
1772
|
+
})
|
|
1773
|
+
}), jsx(NotificationsList, {
|
|
1774
|
+
domain: DOMAINS.SIDE
|
|
1775
|
+
})]
|
|
1776
|
+
});
|
|
1777
|
+
}
|
|
1778
|
+
NotificationsContainer.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1779
|
+
notificationsGlobalRef: _pt.any.isRequired,
|
|
1780
|
+
notificationsPageRef: _pt.any.isRequired
|
|
1781
|
+
} : {};
|
|
1752
1782
|
function StrictModeEnablement(props) {
|
|
1753
1783
|
if (props.enableReactStrictMode) {
|
|
1754
1784
|
return jsx(StrictMode, {
|
|
@@ -1760,10 +1790,17 @@ function StrictModeEnablement(props) {
|
|
|
1760
1790
|
});
|
|
1761
1791
|
}
|
|
1762
1792
|
}
|
|
1793
|
+
|
|
1794
|
+
/*
|
|
1795
|
+
During e2e tests, the Custom View template is built in production mode but still runs on localhost.
|
|
1796
|
+
Checking for local production mode is necessary for applying the development host URL,
|
|
1797
|
+
creating an environment for testing interaction with the Custom View template.
|
|
1798
|
+
*/
|
|
1763
1799
|
StrictModeEnablement.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1764
1800
|
enableReactStrictMode: _pt.bool,
|
|
1765
1801
|
children: _pt.node
|
|
1766
1802
|
} : {};
|
|
1803
|
+
const isLocalProdMode = process.env.NODE_ENV === 'production' && window.app.env === 'development';
|
|
1767
1804
|
function CustomViewShell(props) {
|
|
1768
1805
|
var _window$app$__DEVELOP;
|
|
1769
1806
|
const _useState = useState(),
|
|
@@ -1771,6 +1808,12 @@ function CustomViewShell(props) {
|
|
|
1771
1808
|
hostContext = _useState2[0],
|
|
1772
1809
|
setHostContext = _useState2[1];
|
|
1773
1810
|
const iFrameCommunicationPort = useRef();
|
|
1811
|
+
const notificationsGlobalRef = useRef(null);
|
|
1812
|
+
const notificationsPageRef = useRef(null);
|
|
1813
|
+
const layoutRefs = useRef({
|
|
1814
|
+
notificationsGlobalRef,
|
|
1815
|
+
notificationsPageRef
|
|
1816
|
+
});
|
|
1774
1817
|
const hostMessageHandler = useCallback(event => {
|
|
1775
1818
|
if (event.data.eventName === CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_INITIALIZATION) {
|
|
1776
1819
|
setHostContext(event.data.eventData.context);
|
|
@@ -1814,41 +1857,54 @@ function CustomViewShell(props) {
|
|
|
1814
1857
|
showLogo: true
|
|
1815
1858
|
});
|
|
1816
1859
|
}
|
|
1817
|
-
const hostUrl = process.env.NODE_ENV === 'development' ? (_window$app$__DEVELOP = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP === void 0 ? void 0 : _window$app$__DEVELOP.customViewHostUrl : hostContext.hostUrl;
|
|
1818
|
-
return
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
dataLocale: hostContext.dataLocale,
|
|
1830
|
-
environment: window.app,
|
|
1831
|
-
messages: props.applicationMessages,
|
|
1832
|
-
projectKey: hostContext.projectKey,
|
|
1860
|
+
const hostUrl = process.env.NODE_ENV === 'development' || isLocalProdMode ? (_window$app$__DEVELOP = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP === void 0 ? void 0 : _window$app$__DEVELOP.customViewHostUrl : hostContext.hostUrl;
|
|
1861
|
+
return jsxs(Fragment, {
|
|
1862
|
+
children: [jsx(GlobalStyles, {}), jsx(ApplicationShellProvider, {
|
|
1863
|
+
environment: window.app,
|
|
1864
|
+
applicationMessages: props.applicationMessages,
|
|
1865
|
+
apolloClient: props.apolloClient,
|
|
1866
|
+
children: _ref => {
|
|
1867
|
+
let isAuthenticated = _ref.isAuthenticated;
|
|
1868
|
+
if (isAuthenticated) {
|
|
1869
|
+
var _context;
|
|
1870
|
+
return jsx(CustomViewContextProvider, {
|
|
1871
|
+
hostUrl: hostUrl,
|
|
1833
1872
|
customViewConfig: hostContext.customViewConfig,
|
|
1834
|
-
children:
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1873
|
+
children: jsxs(CustomViewShellAuthenticated, {
|
|
1874
|
+
dataLocale: hostContext.dataLocale,
|
|
1875
|
+
environment: window.app,
|
|
1876
|
+
messages: props.applicationMessages,
|
|
1877
|
+
projectKey: hostContext.projectKey,
|
|
1878
|
+
customViewConfig: hostContext.customViewConfig,
|
|
1879
|
+
children: [jsx(PortalsContainer
|
|
1880
|
+
// @ts-ignore
|
|
1881
|
+
, {
|
|
1882
|
+
ref: layoutRefs
|
|
1883
|
+
}), jsx(NotificationsContainer, {
|
|
1884
|
+
notificationsGlobalRef: notificationsGlobalRef,
|
|
1885
|
+
notificationsPageRef: notificationsPageRef
|
|
1886
|
+
}), jsx(Route, {
|
|
1887
|
+
path: _concatInstanceProperty(_context = "/custom-views/".concat(hostContext.customViewConfig.id, "/projects/")).call(_context, hostContext.projectKey),
|
|
1888
|
+
children: props.children
|
|
1889
|
+
})]
|
|
1890
|
+
})
|
|
1848
1891
|
});
|
|
1849
1892
|
}
|
|
1850
|
-
|
|
1851
|
-
|
|
1893
|
+
return jsx(AsyncLocaleData, {
|
|
1894
|
+
locale: browserLocale,
|
|
1895
|
+
applicationMessages: props.applicationMessages,
|
|
1896
|
+
children: _ref2 => {
|
|
1897
|
+
let locale = _ref2.locale,
|
|
1898
|
+
messages = _ref2.messages;
|
|
1899
|
+
return jsx(ConfigureIntlProvider, {
|
|
1900
|
+
locale: locale,
|
|
1901
|
+
messages: messages,
|
|
1902
|
+
children: jsx(PageUnauthorized, {})
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
})]
|
|
1852
1908
|
});
|
|
1853
1909
|
}
|
|
1854
1910
|
CustomViewShell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1858,7 +1914,7 @@ CustomViewShell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1858
1914
|
children: _pt.node.isRequired
|
|
1859
1915
|
} : {};
|
|
1860
1916
|
const CustomViewShellWrapper = props => {
|
|
1861
|
-
if (process.env.NODE_ENV === 'development' && !props.disableDevHost) {
|
|
1917
|
+
if ((process.env.NODE_ENV === 'development' || isLocalProdMode) && !props.disableDevHost) {
|
|
1862
1918
|
return jsx(StrictModeEnablement, {
|
|
1863
1919
|
enableReactStrictMode: props.enableReactStrictMode,
|
|
1864
1920
|
children: jsx(Suspense, {
|
|
@@ -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.14.
|
|
115
|
+
var applicationShellVersion = "22.14.3";
|
|
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-7580242c.cjs.prod.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
|
|
118
118
|
|
|
119
119
|
// Attempt to load the `projectKey` from localStorage
|
|
120
120
|
function selectProjectKeyFromLocalStorage() {
|
|
@@ -561,7 +561,7 @@ FetchUser.displayName = 'FetchUser';
|
|
|
561
561
|
|
|
562
562
|
const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-be902d73.cjs.prod.js' /* webpackChunkName: "navbar" */); }));
|
|
563
563
|
|
|
564
|
-
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-
|
|
564
|
+
const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-0b7034a5.cjs.prod.js' /* webpackChunkName: "project-container" */); }));
|
|
565
565
|
|
|
566
566
|
const getSelectedDataLocaleForProject = projectLocales => {
|
|
567
567
|
const cachedDataLocale = window.localStorage.getItem(constants.STORAGE_KEYS.SELECTED_DATA_LOCALE);
|
|
@@ -673,7 +673,7 @@ var pimIndexerStates = {
|
|
|
673
673
|
NOT_INDEXED: 'NOT_INDEXED'
|
|
674
674
|
};
|
|
675
675
|
|
|
676
|
-
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-
|
|
676
|
+
const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-ecbaedf9.cjs.prod.js' /* webpackChunkName: "quick-access" */); }));
|
|
677
677
|
|
|
678
678
|
const QuickAccessTrigger = props => {
|
|
679
679
|
const _useState = react.useState(false),
|
|
@@ -760,7 +760,7 @@ const QuickAccessTrigger = props => {
|
|
|
760
760
|
QuickAccessTrigger.propTypes = {};
|
|
761
761
|
QuickAccessTrigger.displayName = 'QuickAccessTrigger';
|
|
762
762
|
|
|
763
|
-
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-
|
|
763
|
+
const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-2418d058.cjs.prod.js' /* webpackChunkName: "redirect-to-logout" */); }));
|
|
764
764
|
|
|
765
765
|
const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-2266c427.cjs.prod.js' /* webpackChunkName: "redirect-to-project-create" */); }));
|
|
766
766
|
|
|
@@ -886,7 +886,7 @@ const ThemeSwitcher = () => {
|
|
|
886
886
|
});
|
|
887
887
|
};
|
|
888
888
|
|
|
889
|
-
const VersionTracker = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./version-tracker-
|
|
889
|
+
const VersionTracker = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./version-tracker-abf7b029.cjs.prod.js' /* webpackChunkName: "version-tracker" */); }));
|
|
890
890
|
|
|
891
891
|
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
892
|
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 +1355,7 @@ const hasCachedAuthenticationState = () => {
|
|
|
1355
1355
|
return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
|
|
1356
1356
|
};
|
|
1357
1357
|
|
|
1358
|
-
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-
|
|
1358
|
+
const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-25005367.cjs.prod.js' /* webpackChunkName: "oidc-callback" */); }));
|
|
1359
1359
|
|
|
1360
1360
|
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
1361
|
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; }
|
|
@@ -1571,6 +1571,8 @@ ApplicationShell.propTypes = {};
|
|
|
1571
1571
|
ApplicationShell.displayName = 'ApplicationShell';
|
|
1572
1572
|
ApplicationShell.version = applicationShellVersion;
|
|
1573
1573
|
|
|
1574
|
+
const CustomViewDevHost = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./custom-view-dev-host-98e7ce7d.cjs.prod.js' /* webpackChunkName: "custom-view-dev-host" */); }));
|
|
1575
|
+
|
|
1574
1576
|
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
1577
|
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
1578
|
const CustomViewWithPermissionCheck = props => {
|
|
@@ -1617,7 +1619,8 @@ function CustomViewShellAuthenticated(props) {
|
|
|
1617
1619
|
environment: props.environment,
|
|
1618
1620
|
children: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1619
1621
|
children: [jsxRuntime.jsx(designSystem.ThemeProvider, {
|
|
1620
|
-
theme: "default"
|
|
1622
|
+
theme: "default",
|
|
1623
|
+
themeOverrides: applicationComponents.themesOverrides.default
|
|
1621
1624
|
}), jsxRuntime.jsx(FetchProject, {
|
|
1622
1625
|
projectKey: props.projectKey,
|
|
1623
1626
|
children: _ref3 => {
|
|
@@ -1651,6 +1654,32 @@ function CustomViewShellAuthenticated(props) {
|
|
|
1651
1654
|
CustomViewShellAuthenticated.propTypes = {};
|
|
1652
1655
|
|
|
1653
1656
|
const browserLocale = getBrowserLocale(window);
|
|
1657
|
+
function NotificationsContainer(props) {
|
|
1658
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1659
|
+
children: [jsxRuntime.jsxs("div", {
|
|
1660
|
+
ref: props.notificationsGlobalRef,
|
|
1661
|
+
role: "region",
|
|
1662
|
+
"aria-live": "polite",
|
|
1663
|
+
style: {
|
|
1664
|
+
gridRow: 1,
|
|
1665
|
+
gridColumn: '1/3'
|
|
1666
|
+
},
|
|
1667
|
+
children: [jsxRuntime.jsx("div", {
|
|
1668
|
+
id: "above-top-navigation"
|
|
1669
|
+
}), jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
1670
|
+
domain: constants.DOMAINS.GLOBAL
|
|
1671
|
+
})]
|
|
1672
|
+
}), jsxRuntime.jsx("div", {
|
|
1673
|
+
ref: props.notificationsPageRef,
|
|
1674
|
+
children: jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
1675
|
+
domain: constants.DOMAINS.PAGE
|
|
1676
|
+
})
|
|
1677
|
+
}), jsxRuntime.jsx(reactNotifications.NotificationsList, {
|
|
1678
|
+
domain: constants.DOMAINS.SIDE
|
|
1679
|
+
})]
|
|
1680
|
+
});
|
|
1681
|
+
}
|
|
1682
|
+
NotificationsContainer.propTypes = {};
|
|
1654
1683
|
function StrictModeEnablement(props) {
|
|
1655
1684
|
if (props.enableReactStrictMode) {
|
|
1656
1685
|
return jsxRuntime.jsx(react.StrictMode, {
|
|
@@ -1662,13 +1691,27 @@ function StrictModeEnablement(props) {
|
|
|
1662
1691
|
});
|
|
1663
1692
|
}
|
|
1664
1693
|
}
|
|
1694
|
+
|
|
1695
|
+
/*
|
|
1696
|
+
During e2e tests, the Custom View template is built in production mode but still runs on localhost.
|
|
1697
|
+
Checking for local production mode is necessary for applying the development host URL,
|
|
1698
|
+
creating an environment for testing interaction with the Custom View template.
|
|
1699
|
+
*/
|
|
1665
1700
|
StrictModeEnablement.propTypes = {};
|
|
1701
|
+
const isLocalProdMode = window.app.env === 'development';
|
|
1666
1702
|
function CustomViewShell(props) {
|
|
1703
|
+
var _window$app$__DEVELOP;
|
|
1667
1704
|
const _useState = react.useState(),
|
|
1668
1705
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1669
1706
|
hostContext = _useState2[0],
|
|
1670
1707
|
setHostContext = _useState2[1];
|
|
1671
1708
|
const iFrameCommunicationPort = react.useRef();
|
|
1709
|
+
const notificationsGlobalRef = react.useRef(null);
|
|
1710
|
+
const notificationsPageRef = react.useRef(null);
|
|
1711
|
+
const layoutRefs = react.useRef({
|
|
1712
|
+
notificationsGlobalRef,
|
|
1713
|
+
notificationsPageRef
|
|
1714
|
+
});
|
|
1672
1715
|
const hostMessageHandler = react.useCallback(event => {
|
|
1673
1716
|
if (event.data.eventName === constants.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_INITIALIZATION) {
|
|
1674
1717
|
setHostContext(event.data.eventData.context);
|
|
@@ -1712,45 +1755,73 @@ function CustomViewShell(props) {
|
|
|
1712
1755
|
showLogo: true
|
|
1713
1756
|
});
|
|
1714
1757
|
}
|
|
1715
|
-
const hostUrl = hostContext.hostUrl;
|
|
1716
|
-
return jsxRuntime.
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
dataLocale: hostContext.dataLocale,
|
|
1728
|
-
environment: window.app,
|
|
1729
|
-
messages: props.applicationMessages,
|
|
1730
|
-
projectKey: hostContext.projectKey,
|
|
1758
|
+
const hostUrl = isLocalProdMode ? (_window$app$__DEVELOP = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP === void 0 ? void 0 : _window$app$__DEVELOP.customViewHostUrl : hostContext.hostUrl;
|
|
1759
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1760
|
+
children: [jsxRuntime.jsx(GlobalStyles, {}), jsxRuntime.jsx(ApplicationShellProvider, {
|
|
1761
|
+
environment: window.app,
|
|
1762
|
+
applicationMessages: props.applicationMessages,
|
|
1763
|
+
apolloClient: props.apolloClient,
|
|
1764
|
+
children: _ref => {
|
|
1765
|
+
let isAuthenticated = _ref.isAuthenticated;
|
|
1766
|
+
if (isAuthenticated) {
|
|
1767
|
+
var _context;
|
|
1768
|
+
return jsxRuntime.jsx(applicationShellConnectors.CustomViewContextProvider, {
|
|
1769
|
+
hostUrl: hostUrl,
|
|
1731
1770
|
customViewConfig: hostContext.customViewConfig,
|
|
1732
|
-
children:
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1771
|
+
children: jsxRuntime.jsxs(CustomViewShellAuthenticated, {
|
|
1772
|
+
dataLocale: hostContext.dataLocale,
|
|
1773
|
+
environment: window.app,
|
|
1774
|
+
messages: props.applicationMessages,
|
|
1775
|
+
projectKey: hostContext.projectKey,
|
|
1776
|
+
customViewConfig: hostContext.customViewConfig,
|
|
1777
|
+
children: [jsxRuntime.jsx(applicationComponents.PortalsContainer
|
|
1778
|
+
// @ts-ignore
|
|
1779
|
+
, {
|
|
1780
|
+
ref: layoutRefs
|
|
1781
|
+
}), jsxRuntime.jsx(NotificationsContainer, {
|
|
1782
|
+
notificationsGlobalRef: notificationsGlobalRef,
|
|
1783
|
+
notificationsPageRef: notificationsPageRef
|
|
1784
|
+
}), jsxRuntime.jsx(reactRouterDom.Route, {
|
|
1785
|
+
path: _concatInstanceProperty__default["default"](_context = "/custom-views/".concat(hostContext.customViewConfig.id, "/projects/")).call(_context, hostContext.projectKey),
|
|
1786
|
+
children: props.children
|
|
1787
|
+
})]
|
|
1788
|
+
})
|
|
1746
1789
|
});
|
|
1747
1790
|
}
|
|
1748
|
-
|
|
1749
|
-
|
|
1791
|
+
return jsxRuntime.jsx(i18n.AsyncLocaleData, {
|
|
1792
|
+
locale: browserLocale,
|
|
1793
|
+
applicationMessages: props.applicationMessages,
|
|
1794
|
+
children: _ref2 => {
|
|
1795
|
+
let locale = _ref2.locale,
|
|
1796
|
+
messages = _ref2.messages;
|
|
1797
|
+
return jsxRuntime.jsx(ConfigureIntlProvider, {
|
|
1798
|
+
locale: locale,
|
|
1799
|
+
messages: messages,
|
|
1800
|
+
children: jsxRuntime.jsx(applicationComponents.PageUnauthorized, {})
|
|
1801
|
+
});
|
|
1802
|
+
}
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
})]
|
|
1750
1806
|
});
|
|
1751
1807
|
}
|
|
1752
1808
|
CustomViewShell.propTypes = {};
|
|
1753
1809
|
const CustomViewShellWrapper = props => {
|
|
1810
|
+
if ((isLocalProdMode) && !props.disableDevHost) {
|
|
1811
|
+
return jsxRuntime.jsx(StrictModeEnablement, {
|
|
1812
|
+
enableReactStrictMode: props.enableReactStrictMode,
|
|
1813
|
+
children: jsxRuntime.jsx(react.Suspense, {
|
|
1814
|
+
fallback: jsxRuntime.jsx(ApplicationLoader, {}),
|
|
1815
|
+
children: jsxRuntime.jsx(CustomViewDevHost, {
|
|
1816
|
+
applicationMessages: props.applicationMessages,
|
|
1817
|
+
children: jsxRuntime.jsx(CustomViewShell, {
|
|
1818
|
+
applicationMessages: props.applicationMessages,
|
|
1819
|
+
children: props.children
|
|
1820
|
+
})
|
|
1821
|
+
})
|
|
1822
|
+
})
|
|
1823
|
+
});
|
|
1824
|
+
}
|
|
1754
1825
|
return jsxRuntime.jsx(StrictModeEnablement, {
|
|
1755
1826
|
enableReactStrictMode: props.enableReactStrictMode,
|
|
1756
1827
|
children: jsxRuntime.jsx(CustomViewShell, {
|
|
@@ -18,7 +18,7 @@ var icons = require('@commercetools-uikit/icons');
|
|
|
18
18
|
var notifications = require('@commercetools-uikit/notifications');
|
|
19
19
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
20
20
|
var Text = require('@commercetools-uikit/text');
|
|
21
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
21
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-c29f8aa0.cjs.prod.js');
|
|
22
22
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
23
23
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -18,7 +18,7 @@ var icons = require('@commercetools-uikit/icons');
|
|
|
18
18
|
var notifications = require('@commercetools-uikit/notifications');
|
|
19
19
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
20
20
|
var Text = require('@commercetools-uikit/text');
|
|
21
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
21
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-0d0e6d8b.cjs.dev.js');
|
|
22
22
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
23
23
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
24
24
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -16,7 +16,7 @@ import { AngleLeftIcon } from '@commercetools-uikit/icons';
|
|
|
16
16
|
import { ContentNotification } from '@commercetools-uikit/notifications';
|
|
17
17
|
import Spacings from '@commercetools-uikit/spacings';
|
|
18
18
|
import Text from '@commercetools-uikit/text';
|
|
19
|
-
import { C as ConfigureIntlProvider } from './index-
|
|
19
|
+
import { C as ConfigureIntlProvider } from './index-35f9f7c2.esm.js';
|
|
20
20
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
21
21
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
22
22
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
package/dist/{project-container-de098f6b.cjs.prod.js → project-container-0b7034a5.cjs.prod.js}
RENAMED
|
@@ -12,7 +12,7 @@ var constants = require('@commercetools-frontend/constants');
|
|
|
12
12
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
13
13
|
var oidc = require('./oidc-b070ff6c.cjs.prod.js');
|
|
14
14
|
var applicationEntryPoint = require('./application-entry-point-bde45acf.cjs.prod.js');
|
|
15
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-c29f8aa0.cjs.prod.js');
|
|
16
16
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
17
17
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
18
18
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -180,13 +180,13 @@ const LocaleSwitcher = props => {
|
|
|
180
180
|
};
|
|
181
181
|
LocaleSwitcher.propTypes = {};
|
|
182
182
|
|
|
183
|
-
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-
|
|
183
|
+
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-abde10a9.cjs.prod.js' /* webpackChunkName: "project-expired" */); }));
|
|
184
184
|
|
|
185
|
-
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-
|
|
185
|
+
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-aeb6b4e5.cjs.prod.js' /* webpackChunkName: "project-not-found" */); }));
|
|
186
186
|
|
|
187
|
-
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
187
|
+
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-e8c5fae6.cjs.prod.js' /* webpackChunkName: "project-not-initialized" */); }));
|
|
188
188
|
|
|
189
|
-
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-
|
|
189
|
+
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-1f94c722.cjs.prod.js' /* webpackChunkName: "project-suspended" */); }));
|
|
190
190
|
|
|
191
191
|
var messages = reactIntl.defineMessages({
|
|
192
192
|
trialDaysLeft: {
|
package/dist/{project-container-bae27095.cjs.dev.js → project-container-22dd3ee8.cjs.dev.js}
RENAMED
|
@@ -12,7 +12,7 @@ var constants = require('@commercetools-frontend/constants');
|
|
|
12
12
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
13
13
|
var oidc = require('./oidc-7c48215c.cjs.dev.js');
|
|
14
14
|
var applicationEntryPoint = require('./application-entry-point-fd6f9973.cjs.dev.js');
|
|
15
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
15
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-0d0e6d8b.cjs.dev.js');
|
|
16
16
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
17
17
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
18
18
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -191,13 +191,13 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
191
191
|
availableLocales: _pt__default["default"].arrayOf(_pt__default["default"].string).isRequired
|
|
192
192
|
} : {};
|
|
193
193
|
|
|
194
|
-
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-
|
|
194
|
+
const ProjectExpired = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-expired-7e9f4a37.cjs.dev.js' /* webpackChunkName: "project-expired" */); }));
|
|
195
195
|
|
|
196
|
-
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-
|
|
196
|
+
const ProjectNotFound = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-found-fcb9f62d.cjs.dev.js' /* webpackChunkName: "project-not-found" */); }));
|
|
197
197
|
|
|
198
|
-
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
198
|
+
const ProjectNotInitialized = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-not-initialized-718a18d0.cjs.dev.js' /* webpackChunkName: "project-not-initialized" */); }));
|
|
199
199
|
|
|
200
|
-
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-
|
|
200
|
+
const ProjectSuspended = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-suspended-d028eced.cjs.dev.js' /* webpackChunkName: "project-suspended" */); }));
|
|
201
201
|
|
|
202
202
|
var messages = reactIntl.defineMessages({
|
|
203
203
|
trialDaysLeft: {
|
|
@@ -10,7 +10,7 @@ import { STORAGE_KEYS, LOGOUT_REASONS, DOMAINS } from '@commercetools-frontend/c
|
|
|
10
10
|
import { Notifier } from '@commercetools-frontend/react-notifications';
|
|
11
11
|
import { C as CONTAINERS, S as SUSPENSION_REASONS } from './oidc-da8526e3.esm.js';
|
|
12
12
|
import { A as ApplicationEntryPoint } from './application-entry-point-3613e4a5.esm.js';
|
|
13
|
-
import { a as RedirectToProjectCreate, E as ErrorBoundary, b as ApplicationLoader, F as FetchProject, P as ProjectDataLocale } from './index-
|
|
13
|
+
import { a as RedirectToProjectCreate, E as ErrorBoundary, b as ApplicationLoader, F as FetchProject, P as ProjectDataLocale } from './index-35f9f7c2.esm.js';
|
|
14
14
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
15
15
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
16
16
|
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
@@ -172,13 +172,13 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
172
172
|
availableLocales: _pt.arrayOf(_pt.string).isRequired
|
|
173
173
|
} : {};
|
|
174
174
|
|
|
175
|
-
const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-
|
|
175
|
+
const ProjectExpired = /*#__PURE__*/lazy(() => import('./project-expired-175f09e7.esm.js' /* webpackChunkName: "project-expired" */));
|
|
176
176
|
|
|
177
|
-
const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-
|
|
177
|
+
const ProjectNotFound = /*#__PURE__*/lazy(() => import('./project-not-found-89cc6d97.esm.js' /* webpackChunkName: "project-not-found" */));
|
|
178
178
|
|
|
179
|
-
const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-
|
|
179
|
+
const ProjectNotInitialized = /*#__PURE__*/lazy(() => import('./project-not-initialized-1e4f45dc.esm.js' /* webpackChunkName: "project-not-initialized" */));
|
|
180
180
|
|
|
181
|
-
const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-
|
|
181
|
+
const ProjectSuspended = /*#__PURE__*/lazy(() => import('./project-suspended-0d49681f.esm.js' /* webpackChunkName: "project-suspended" */));
|
|
182
182
|
|
|
183
183
|
var messages = defineMessages({
|
|
184
184
|
trialDaysLeft: {
|
|
@@ -10,12 +10,12 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
10
10
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|
11
11
|
import { MaintenancePageLayout } from '@commercetools-frontend/application-components';
|
|
12
12
|
import ProjectExpiredIllustration from '@commercetools-frontend/assets/images/hourglass.svg';
|
|
13
|
-
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-
|
|
13
|
+
import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-f7058ef7.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-
|
|
18
|
+
import './index-35f9f7c2.esm.js';
|
|
19
19
|
import 'prop-types';
|
|
20
20
|
import 'react';
|
|
21
21
|
import './index-89e5711a.esm.js';
|
|
@@ -12,12 +12,12 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
12
12
|
var reactIntl = require('react-intl');
|
|
13
13
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
14
14
|
var ProjectExpiredIllustration = require('@commercetools-frontend/assets/images/hourglass.svg');
|
|
15
|
-
var servicePageProjectSwitcher = require('./service-page-project-switcher-
|
|
15
|
+
var servicePageProjectSwitcher = require('./service-page-project-switcher-c2446f31.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-
|
|
20
|
+
require('./index-0d0e6d8b.cjs.dev.js');
|
|
21
21
|
require('prop-types');
|
|
22
22
|
require('react');
|
|
23
23
|
require('./index-37a25e51.cjs.dev.js');
|