@commercetools-frontend/application-shell 21.2.0 → 21.2.1
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-a6a0af92.cjs.dev.js → application-entry-point-1126a3a0.cjs.dev.js} +1 -1
- package/dist/{application-entry-point-35823e6a.esm.js → application-entry-point-1d14f973.esm.js} +1 -1
- package/dist/{application-entry-point-7f30d2ba.cjs.prod.js → application-entry-point-c8e001b7.cjs.prod.js} +1 -1
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +2 -2
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +2 -2
- package/dist/commercetools-frontend-application-shell.esm.js +2 -2
- package/dist/{index-a137d138.cjs.prod.js → index-4a064d3c.cjs.prod.js} +24 -22
- package/dist/{index-aa15e33c.esm.js → index-4ffa508b.esm.js} +24 -22
- package/dist/{index-dcc52a07.cjs.dev.js → index-ba1e4ad6.cjs.dev.js} +24 -22
- package/dist/{project-expired-c3423456.cjs.dev.js → project-expired-04819de8.cjs.dev.js} +3 -3
- package/dist/{project-expired-869c2e90.esm.js → project-expired-84899da4.esm.js} +3 -3
- package/dist/{project-expired-d78f409e.cjs.prod.js → project-expired-c28b50d9.cjs.prod.js} +3 -3
- package/dist/{project-not-found-5ef3ee79.esm.js → project-not-found-44bf4e65.esm.js} +3 -3
- package/dist/{project-not-found-0e6cff4a.cjs.prod.js → project-not-found-77c72212.cjs.prod.js} +3 -3
- package/dist/{project-not-found-7179ba45.cjs.dev.js → project-not-found-f280edc8.cjs.dev.js} +3 -3
- package/dist/{project-not-initialized-ca9859aa.cjs.prod.js → project-not-initialized-46b2b026.cjs.prod.js} +3 -3
- package/dist/{project-not-initialized-d9491e58.cjs.dev.js → project-not-initialized-e1bca03f.cjs.dev.js} +3 -3
- package/dist/{project-not-initialized-34bbe63a.esm.js → project-not-initialized-fd0808c0.esm.js} +3 -3
- package/dist/{project-suspended-a3444cac.cjs.prod.js → project-suspended-7dabf6de.cjs.prod.js} +3 -3
- package/dist/{project-suspended-67a4df2c.esm.js → project-suspended-8bdd4498.esm.js} +3 -3
- package/dist/{project-suspended-62cfcb36.cjs.dev.js → project-suspended-f0abaa32.cjs.dev.js} +3 -3
- package/dist/{quick-access-b3fd259e.cjs.dev.js → quick-access-085b1f78.cjs.dev.js} +2 -2
- package/dist/{quick-access-08a3e28d.cjs.prod.js → quick-access-1ebebadc.cjs.prod.js} +2 -2
- package/dist/{quick-access-c3dc89c4.esm.js → quick-access-f6e1aa94.esm.js} +2 -2
- package/dist/{service-page-project-switcher-264b43c6.cjs.dev.js → service-page-project-switcher-0f154f42.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-1d465f9e.esm.js → service-page-project-switcher-5230256d.esm.js} +1 -1
- package/dist/{service-page-project-switcher-0e939c5c.cjs.prod.js → service-page-project-switcher-64d9c6e2.cjs.prod.js} +1 -1
- package/package.json +22 -22
- 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
|
@@ -101,7 +101,7 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
|
101
101
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
102
102
|
|
|
103
103
|
// NOTE: This string will be replaced on build time with the package version.
|
|
104
|
-
var version = "21.2.
|
|
104
|
+
var version = "21.2.1";
|
|
105
105
|
|
|
106
106
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
107
107
|
var errorAction = action;
|
package/dist/{application-entry-point-35823e6a.esm.js → application-entry-point-1d14f973.esm.js}
RENAMED
|
@@ -60,7 +60,7 @@ import { PageNotFound, PageUnauthorized } from '@commercetools-frontend/applicat
|
|
|
60
60
|
import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
|
|
61
61
|
|
|
62
62
|
// NOTE: This string will be replaced on build time with the package version.
|
|
63
|
-
var version = "21.2.
|
|
63
|
+
var version = "21.2.1";
|
|
64
64
|
|
|
65
65
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
66
66
|
var errorAction = action;
|
|
@@ -100,7 +100,7 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
100
100
|
var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
101
101
|
|
|
102
102
|
// NOTE: This string will be replaced on build time with the package version.
|
|
103
|
-
var version = "21.2.
|
|
103
|
+
var version = "21.2.1";
|
|
104
104
|
|
|
105
105
|
var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
|
|
106
106
|
var errorAction = action;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-1126a3a0.cjs.dev.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-ba1e4ad6.cjs.dev.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-c8e001b7.cjs.prod.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-4a064d3c.cjs.prod.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-
|
|
2
|
-
export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-
|
|
1
|
+
export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-1d14f973.esm.js';
|
|
2
|
+
export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-4ffa508b.esm.js';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
4
|
import 'uuid';
|
|
5
5
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
3
|
+
var applicationEntryPoint = require('./application-entry-point-c8e001b7.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');
|
|
@@ -1520,16 +1520,25 @@ function useApplicationsMenu(menuKey, config) {
|
|
|
1520
1520
|
var apolloClient = client.useApolloClient();
|
|
1521
1521
|
var mcProxyApiUrl = applicationShellConnectors.useApplicationContext(function (context) {
|
|
1522
1522
|
return context.environment.mcProxyApiUrl;
|
|
1523
|
-
});
|
|
1523
|
+
});
|
|
1524
|
+
|
|
1525
|
+
var _useState = react.useState(false),
|
|
1526
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1527
|
+
hasWrittenToCache = _useState2[0],
|
|
1528
|
+
setHasWrittenToCache = _useState2[1]; // Fetch all menu links from the GraphQL API in the Merchant Center Proxy.
|
|
1524
1529
|
// For local development, we don't fetch data from the remote server but use
|
|
1525
1530
|
// only the configuration for the menu links defined for the application.
|
|
1526
1531
|
// To do so, we manually write the data in the Apollo cache and use the
|
|
1527
1532
|
// `fetchPolicy: cache-only` to instruct Apollo to read the data from the cache.
|
|
1528
|
-
// NOTE: we
|
|
1529
|
-
//
|
|
1530
|
-
//
|
|
1533
|
+
// NOTE: In development, we skip the query as long as the data hasn't been written
|
|
1534
|
+
// into the cache. If not, Apollo throws an error like
|
|
1535
|
+
// `Can't find field 'applicationMenu' on ROOT_QUERY object`.
|
|
1531
1536
|
|
|
1532
|
-
|
|
1537
|
+
|
|
1538
|
+
var _useMcQuery = useMcQuery(FetchApplicationsMenu, {
|
|
1539
|
+
skip: config.environment.servedByProxy ? // Production environment
|
|
1540
|
+
false : // Development environment
|
|
1541
|
+
!hasWrittenToCache,
|
|
1533
1542
|
onError: (_config$queryOptions = config.queryOptions) === null || _config$queryOptions === void 0 ? void 0 : _config$queryOptions.onError,
|
|
1534
1543
|
fetchPolicy: config.environment.servedByProxy ? 'cache-first' : 'cache-only',
|
|
1535
1544
|
context: {
|
|
@@ -1538,29 +1547,22 @@ function useApplicationsMenu(menuKey, config) {
|
|
|
1538
1547
|
skipGraphQlTargetCheck: true
|
|
1539
1548
|
}
|
|
1540
1549
|
}),
|
|
1541
|
-
|
|
1542
|
-
executeQuery = _useMcLazyQuery2[0],
|
|
1543
|
-
_useMcLazyQuery2$ = _useMcLazyQuery2[1],
|
|
1544
|
-
menuQueryResult = _useMcLazyQuery2$.data,
|
|
1545
|
-
called = _useMcLazyQuery2$.called; // For development, we read the menu data from the configuration file and
|
|
1550
|
+
menuQueryResult = _useMcQuery.data; // For development, we read the menu data from the configuration file and
|
|
1546
1551
|
// write it into the Apollo cache.
|
|
1547
1552
|
|
|
1548
1553
|
|
|
1549
1554
|
react.useEffect(function () {
|
|
1550
1555
|
if (config.environment.__DEVELOPMENT__ && (config.environment.__DEVELOPMENT__.menuLinks || // @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
1551
|
-
config.environment.__DEVELOPMENT__.accountLinks)) {
|
|
1556
|
+
config.environment.__DEVELOPMENT__.accountLinks) && !hasWrittenToCache) {
|
|
1552
1557
|
var applicationMenu = mapApplicationMenuConfigToGraqhQLQueryResult(config.environment);
|
|
1553
1558
|
apolloClient.writeQuery({
|
|
1554
1559
|
query: FetchApplicationsMenu,
|
|
1555
1560
|
data: applicationMenu
|
|
1556
1561
|
});
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
if (!called) {
|
|
1560
|
-
executeQuery();
|
|
1562
|
+
setHasWrittenToCache(true);
|
|
1561
1563
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1562
1564
|
|
|
1563
|
-
}, []); //
|
|
1565
|
+
}, [hasWrittenToCache]); // Only subscribe to state changes.
|
|
1564
1566
|
|
|
1565
1567
|
if (menuQueryResult && menuQueryResult.applicationsMenu) {
|
|
1566
1568
|
return menuQueryResult.applicationsMenu[menuKey];
|
|
@@ -2330,19 +2332,19 @@ var LocaleSwitcher = function LocaleSwitcher(props) {
|
|
|
2330
2332
|
LocaleSwitcher.propTypes = {};
|
|
2331
2333
|
|
|
2332
2334
|
var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
|
|
2333
|
-
return Promise.resolve().then(function () { return require('./project-not-found-
|
|
2335
|
+
return Promise.resolve().then(function () { return require('./project-not-found-77c72212.cjs.prod.js'
|
|
2334
2336
|
/* webpackChunkName: "project-not-found" */
|
|
2335
2337
|
); });
|
|
2336
2338
|
});
|
|
2337
2339
|
|
|
2338
2340
|
var ProjectExpired = /*#__PURE__*/react.lazy(function () {
|
|
2339
|
-
return Promise.resolve().then(function () { return require('./project-expired-
|
|
2341
|
+
return Promise.resolve().then(function () { return require('./project-expired-c28b50d9.cjs.prod.js'
|
|
2340
2342
|
/* webpackChunkName: "project-expired" */
|
|
2341
2343
|
); });
|
|
2342
2344
|
});
|
|
2343
2345
|
|
|
2344
2346
|
var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
|
|
2345
|
-
return Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
2347
|
+
return Promise.resolve().then(function () { return require('./project-not-initialized-46b2b026.cjs.prod.js'
|
|
2346
2348
|
/* webpackChunkName: "project-not-initialized" */
|
|
2347
2349
|
); });
|
|
2348
2350
|
});
|
|
@@ -2389,7 +2391,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
|
2389
2391
|
RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
|
|
2390
2392
|
|
|
2391
2393
|
var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
|
|
2392
|
-
return Promise.resolve().then(function () { return require('./project-suspended-
|
|
2394
|
+
return Promise.resolve().then(function () { return require('./project-suspended-7dabf6de.cjs.prod.js'
|
|
2393
2395
|
/* webpackChunkName: "project-suspended" */
|
|
2394
2396
|
); });
|
|
2395
2397
|
});
|
|
@@ -3604,7 +3606,7 @@ var pimIndexerStates = {
|
|
|
3604
3606
|
};
|
|
3605
3607
|
|
|
3606
3608
|
var QuickAccess = /*#__PURE__*/react.lazy(function () {
|
|
3607
|
-
return Promise.resolve().then(function () { return require('./quick-access-
|
|
3609
|
+
return Promise.resolve().then(function () { return require('./quick-access-1ebebadc.cjs.prod.js'
|
|
3608
3610
|
/* webpackChunkName: "quick-access" */
|
|
3609
3611
|
); });
|
|
3610
3612
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getMcApiUrl, l as logger, a as getActiveProjectKey, r as removeActiveProjectKey, s as setActiveProjectKey, b as getSessionScope, c as location, d as getSessionState, e as setActiveSession, f as createApolloClient, i as internalReduxStore, h as setCachedApolloClient, v as version, R as REQUESTS_IN_FLIGHT_LOADER_DOM_ID, u as useIsServedByProxy, A as ApplicationEntryPoint, j as setSessionScope, k as setSessionState, m as clearSession, n as selectProjectKeyFromUrl, o as RequestsInFlightLoader, p as RouteCatchAll } from './application-entry-point-
|
|
1
|
+
import { g as getMcApiUrl, l as logger, a as getActiveProjectKey, r as removeActiveProjectKey, s as setActiveProjectKey, b as getSessionScope, c as location, d as getSessionState, e as setActiveSession, f as createApolloClient, i as internalReduxStore, h as setCachedApolloClient, v as version, R as REQUESTS_IN_FLIGHT_LOADER_DOM_ID, u as useIsServedByProxy, A as ApplicationEntryPoint, j as setSessionScope, k as setSessionState, m as clearSession, n as selectProjectKeyFromUrl, o as RequestsInFlightLoader, p as RouteCatchAll } from './application-entry-point-1d14f973.esm.js';
|
|
2
2
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
3
3
|
import _styled from '@emotion/styled/base';
|
|
4
4
|
import _pt from 'prop-types';
|
|
@@ -1480,16 +1480,25 @@ function useApplicationsMenu(menuKey, config) {
|
|
|
1480
1480
|
var apolloClient = useApolloClient();
|
|
1481
1481
|
var mcProxyApiUrl = useApplicationContext(function (context) {
|
|
1482
1482
|
return context.environment.mcProxyApiUrl;
|
|
1483
|
-
});
|
|
1483
|
+
});
|
|
1484
|
+
|
|
1485
|
+
var _useState = useState(false),
|
|
1486
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1487
|
+
hasWrittenToCache = _useState2[0],
|
|
1488
|
+
setHasWrittenToCache = _useState2[1]; // Fetch all menu links from the GraphQL API in the Merchant Center Proxy.
|
|
1484
1489
|
// For local development, we don't fetch data from the remote server but use
|
|
1485
1490
|
// only the configuration for the menu links defined for the application.
|
|
1486
1491
|
// To do so, we manually write the data in the Apollo cache and use the
|
|
1487
1492
|
// `fetchPolicy: cache-only` to instruct Apollo to read the data from the cache.
|
|
1488
|
-
// NOTE: we
|
|
1489
|
-
//
|
|
1490
|
-
//
|
|
1493
|
+
// NOTE: In development, we skip the query as long as the data hasn't been written
|
|
1494
|
+
// into the cache. If not, Apollo throws an error like
|
|
1495
|
+
// `Can't find field 'applicationMenu' on ROOT_QUERY object`.
|
|
1491
1496
|
|
|
1492
|
-
|
|
1497
|
+
|
|
1498
|
+
var _useMcQuery = useMcQuery(FetchApplicationsMenu, {
|
|
1499
|
+
skip: config.environment.servedByProxy ? // Production environment
|
|
1500
|
+
false : // Development environment
|
|
1501
|
+
!hasWrittenToCache,
|
|
1493
1502
|
onError: (_config$queryOptions = config.queryOptions) === null || _config$queryOptions === void 0 ? void 0 : _config$queryOptions.onError,
|
|
1494
1503
|
fetchPolicy: config.environment.servedByProxy ? 'cache-first' : 'cache-only',
|
|
1495
1504
|
context: {
|
|
@@ -1498,29 +1507,22 @@ function useApplicationsMenu(menuKey, config) {
|
|
|
1498
1507
|
skipGraphQlTargetCheck: true
|
|
1499
1508
|
}
|
|
1500
1509
|
}),
|
|
1501
|
-
|
|
1502
|
-
executeQuery = _useMcLazyQuery2[0],
|
|
1503
|
-
_useMcLazyQuery2$ = _useMcLazyQuery2[1],
|
|
1504
|
-
menuQueryResult = _useMcLazyQuery2$.data,
|
|
1505
|
-
called = _useMcLazyQuery2$.called; // For development, we read the menu data from the configuration file and
|
|
1510
|
+
menuQueryResult = _useMcQuery.data; // For development, we read the menu data from the configuration file and
|
|
1506
1511
|
// write it into the Apollo cache.
|
|
1507
1512
|
|
|
1508
1513
|
|
|
1509
1514
|
useEffect(function () {
|
|
1510
1515
|
if (config.environment.__DEVELOPMENT__ && (config.environment.__DEVELOPMENT__.menuLinks || // @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
1511
|
-
config.environment.__DEVELOPMENT__.accountLinks)) {
|
|
1516
|
+
config.environment.__DEVELOPMENT__.accountLinks) && !hasWrittenToCache) {
|
|
1512
1517
|
var applicationMenu = mapApplicationMenuConfigToGraqhQLQueryResult(config.environment);
|
|
1513
1518
|
apolloClient.writeQuery({
|
|
1514
1519
|
query: FetchApplicationsMenu,
|
|
1515
1520
|
data: applicationMenu
|
|
1516
1521
|
});
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
if (!called) {
|
|
1520
|
-
executeQuery();
|
|
1522
|
+
setHasWrittenToCache(true);
|
|
1521
1523
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1522
1524
|
|
|
1523
|
-
}, []); //
|
|
1525
|
+
}, [hasWrittenToCache]); // Only subscribe to state changes.
|
|
1524
1526
|
|
|
1525
1527
|
if (menuQueryResult && menuQueryResult.applicationsMenu) {
|
|
1526
1528
|
return menuQueryResult.applicationsMenu[menuKey];
|
|
@@ -2365,19 +2367,19 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2365
2367
|
} : {};
|
|
2366
2368
|
|
|
2367
2369
|
var ProjectNotFound = /*#__PURE__*/lazy(function () {
|
|
2368
|
-
return import('./project-not-found-
|
|
2370
|
+
return import('./project-not-found-44bf4e65.esm.js'
|
|
2369
2371
|
/* webpackChunkName: "project-not-found" */
|
|
2370
2372
|
);
|
|
2371
2373
|
});
|
|
2372
2374
|
|
|
2373
2375
|
var ProjectExpired = /*#__PURE__*/lazy(function () {
|
|
2374
|
-
return import('./project-expired-
|
|
2376
|
+
return import('./project-expired-84899da4.esm.js'
|
|
2375
2377
|
/* webpackChunkName: "project-expired" */
|
|
2376
2378
|
);
|
|
2377
2379
|
});
|
|
2378
2380
|
|
|
2379
2381
|
var ProjectNotInitialized = /*#__PURE__*/lazy(function () {
|
|
2380
|
-
return import('./project-not-initialized-
|
|
2382
|
+
return import('./project-not-initialized-fd0808c0.esm.js'
|
|
2381
2383
|
/* webpackChunkName: "project-not-initialized" */
|
|
2382
2384
|
);
|
|
2383
2385
|
});
|
|
@@ -2424,7 +2426,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
|
2424
2426
|
RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
|
|
2425
2427
|
|
|
2426
2428
|
var ProjectSuspended = /*#__PURE__*/lazy(function () {
|
|
2427
|
-
return import('./project-suspended-
|
|
2429
|
+
return import('./project-suspended-8bdd4498.esm.js'
|
|
2428
2430
|
/* webpackChunkName: "project-suspended" */
|
|
2429
2431
|
);
|
|
2430
2432
|
});
|
|
@@ -3739,7 +3741,7 @@ var pimIndexerStates = {
|
|
|
3739
3741
|
};
|
|
3740
3742
|
|
|
3741
3743
|
var QuickAccess = /*#__PURE__*/lazy(function () {
|
|
3742
|
-
return import('./quick-access-
|
|
3744
|
+
return import('./quick-access-f6e1aa94.esm.js'
|
|
3743
3745
|
/* webpackChunkName: "quick-access" */
|
|
3744
3746
|
);
|
|
3745
3747
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
3
|
+
var applicationEntryPoint = require('./application-entry-point-1126a3a0.cjs.dev.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');
|
|
@@ -1539,16 +1539,25 @@ function useApplicationsMenu(menuKey, config) {
|
|
|
1539
1539
|
var apolloClient = client.useApolloClient();
|
|
1540
1540
|
var mcProxyApiUrl = applicationShellConnectors.useApplicationContext(function (context) {
|
|
1541
1541
|
return context.environment.mcProxyApiUrl;
|
|
1542
|
-
});
|
|
1542
|
+
});
|
|
1543
|
+
|
|
1544
|
+
var _useState = react.useState(false),
|
|
1545
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1546
|
+
hasWrittenToCache = _useState2[0],
|
|
1547
|
+
setHasWrittenToCache = _useState2[1]; // Fetch all menu links from the GraphQL API in the Merchant Center Proxy.
|
|
1543
1548
|
// For local development, we don't fetch data from the remote server but use
|
|
1544
1549
|
// only the configuration for the menu links defined for the application.
|
|
1545
1550
|
// To do so, we manually write the data in the Apollo cache and use the
|
|
1546
1551
|
// `fetchPolicy: cache-only` to instruct Apollo to read the data from the cache.
|
|
1547
|
-
// NOTE: we
|
|
1548
|
-
//
|
|
1549
|
-
//
|
|
1552
|
+
// NOTE: In development, we skip the query as long as the data hasn't been written
|
|
1553
|
+
// into the cache. If not, Apollo throws an error like
|
|
1554
|
+
// `Can't find field 'applicationMenu' on ROOT_QUERY object`.
|
|
1550
1555
|
|
|
1551
|
-
|
|
1556
|
+
|
|
1557
|
+
var _useMcQuery = useMcQuery(FetchApplicationsMenu, {
|
|
1558
|
+
skip: config.environment.servedByProxy ? // Production environment
|
|
1559
|
+
false : // Development environment
|
|
1560
|
+
!hasWrittenToCache,
|
|
1552
1561
|
onError: (_config$queryOptions = config.queryOptions) === null || _config$queryOptions === void 0 ? void 0 : _config$queryOptions.onError,
|
|
1553
1562
|
fetchPolicy: config.environment.servedByProxy ? 'cache-first' : 'cache-only',
|
|
1554
1563
|
context: {
|
|
@@ -1557,29 +1566,22 @@ function useApplicationsMenu(menuKey, config) {
|
|
|
1557
1566
|
skipGraphQlTargetCheck: true
|
|
1558
1567
|
}
|
|
1559
1568
|
}),
|
|
1560
|
-
|
|
1561
|
-
executeQuery = _useMcLazyQuery2[0],
|
|
1562
|
-
_useMcLazyQuery2$ = _useMcLazyQuery2[1],
|
|
1563
|
-
menuQueryResult = _useMcLazyQuery2$.data,
|
|
1564
|
-
called = _useMcLazyQuery2$.called; // For development, we read the menu data from the configuration file and
|
|
1569
|
+
menuQueryResult = _useMcQuery.data; // For development, we read the menu data from the configuration file and
|
|
1565
1570
|
// write it into the Apollo cache.
|
|
1566
1571
|
|
|
1567
1572
|
|
|
1568
1573
|
react.useEffect(function () {
|
|
1569
1574
|
if (config.environment.__DEVELOPMENT__ && (config.environment.__DEVELOPMENT__.menuLinks || // @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
1570
|
-
config.environment.__DEVELOPMENT__.accountLinks)) {
|
|
1575
|
+
config.environment.__DEVELOPMENT__.accountLinks) && !hasWrittenToCache) {
|
|
1571
1576
|
var applicationMenu = mapApplicationMenuConfigToGraqhQLQueryResult(config.environment);
|
|
1572
1577
|
apolloClient.writeQuery({
|
|
1573
1578
|
query: FetchApplicationsMenu,
|
|
1574
1579
|
data: applicationMenu
|
|
1575
1580
|
});
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
if (!called) {
|
|
1579
|
-
executeQuery();
|
|
1581
|
+
setHasWrittenToCache(true);
|
|
1580
1582
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1581
1583
|
|
|
1582
|
-
}, []); //
|
|
1584
|
+
}, [hasWrittenToCache]); // Only subscribe to state changes.
|
|
1583
1585
|
|
|
1584
1586
|
if (menuQueryResult && menuQueryResult.applicationsMenu) {
|
|
1585
1587
|
return menuQueryResult.applicationsMenu[menuKey];
|
|
@@ -2424,19 +2426,19 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2424
2426
|
} : {};
|
|
2425
2427
|
|
|
2426
2428
|
var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
|
|
2427
|
-
return Promise.resolve().then(function () { return require('./project-not-found-
|
|
2429
|
+
return Promise.resolve().then(function () { return require('./project-not-found-f280edc8.cjs.dev.js'
|
|
2428
2430
|
/* webpackChunkName: "project-not-found" */
|
|
2429
2431
|
); });
|
|
2430
2432
|
});
|
|
2431
2433
|
|
|
2432
2434
|
var ProjectExpired = /*#__PURE__*/react.lazy(function () {
|
|
2433
|
-
return Promise.resolve().then(function () { return require('./project-expired-
|
|
2435
|
+
return Promise.resolve().then(function () { return require('./project-expired-04819de8.cjs.dev.js'
|
|
2434
2436
|
/* webpackChunkName: "project-expired" */
|
|
2435
2437
|
); });
|
|
2436
2438
|
});
|
|
2437
2439
|
|
|
2438
2440
|
var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
|
|
2439
|
-
return Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
2441
|
+
return Promise.resolve().then(function () { return require('./project-not-initialized-e1bca03f.cjs.dev.js'
|
|
2440
2442
|
/* webpackChunkName: "project-not-initialized" */
|
|
2441
2443
|
); });
|
|
2442
2444
|
});
|
|
@@ -2483,7 +2485,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
|
2483
2485
|
RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
|
|
2484
2486
|
|
|
2485
2487
|
var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
|
|
2486
|
-
return Promise.resolve().then(function () { return require('./project-suspended-
|
|
2488
|
+
return Promise.resolve().then(function () { return require('./project-suspended-f0abaa32.cjs.dev.js'
|
|
2487
2489
|
/* webpackChunkName: "project-suspended" */
|
|
2488
2490
|
); });
|
|
2489
2491
|
});
|
|
@@ -3798,7 +3800,7 @@ var pimIndexerStates = {
|
|
|
3798
3800
|
};
|
|
3799
3801
|
|
|
3800
3802
|
var QuickAccess = /*#__PURE__*/react.lazy(function () {
|
|
3801
|
-
return Promise.resolve().then(function () { return require('./quick-access-
|
|
3803
|
+
return Promise.resolve().then(function () { return require('./quick-access-085b1f78.cjs.dev.js'
|
|
3802
3804
|
/* webpackChunkName: "quick-access" */
|
|
3803
3805
|
); });
|
|
3804
3806
|
});
|
|
@@ -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-0f154f42.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-ba1e4ad6.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-1126a3a0.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');
|
|
@@ -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-5230256d.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-4ffa508b.esm.js';
|
|
19
|
+
import './application-entry-point-1d14f973.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-64d9c6e2.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-4a064d3c.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-c8e001b7.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-5230256d.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-4ffa508b.esm.js';
|
|
19
|
+
import './application-entry-point-1d14f973.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-found-0e6cff4a.cjs.prod.js → project-not-found-77c72212.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-64d9c6e2.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-4a064d3c.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-c8e001b7.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-7179ba45.cjs.dev.js → project-not-found-f280edc8.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-0f154f42.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-ba1e4ad6.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-1126a3a0.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-64d9c6e2.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-4a064d3c.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-c8e001b7.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');
|
|
@@ -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-0f154f42.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-ba1e4ad6.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-1126a3a0.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-initialized-34bbe63a.esm.js → project-not-initialized-fd0808c0.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-5230256d.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-4ffa508b.esm.js';
|
|
19
|
+
import './application-entry-point-1d14f973.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-a3444cac.cjs.prod.js → project-suspended-7dabf6de.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-64d9c6e2.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-4a064d3c.cjs.prod.js');
|
|
21
|
+
require('./application-entry-point-c8e001b7.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-5230256d.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-4ffa508b.esm.js';
|
|
19
|
+
import './application-entry-point-1d14f973.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-62cfcb36.cjs.dev.js → project-suspended-f0abaa32.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-0f154f42.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-ba1e4ad6.cjs.dev.js');
|
|
21
|
+
require('./application-entry-point-1126a3a0.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');
|
|
@@ -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-1126a3a0.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-ba1e4ad6.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');
|
|
@@ -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-c8e001b7.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-4a064d3c.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');
|
|
@@ -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-1d14f973.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-4ffa508b.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-ba1e4ad6.cjs.dev.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-4ffa508b.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)."; }
|
|
@@ -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-4a064d3c.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 }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-shell",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.1",
|
|
4
4
|
"description": "React component to bootstrap the general MC application logic",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.16.7",
|
|
35
35
|
"@babel/runtime-corejs3": "^7.16.8",
|
|
36
|
-
"@commercetools-frontend/actions-global": "21.
|
|
37
|
-
"@commercetools-frontend/application-components": "21.2.
|
|
38
|
-
"@commercetools-frontend/application-shell-connectors": "21.
|
|
36
|
+
"@commercetools-frontend/actions-global": "21.2.1",
|
|
37
|
+
"@commercetools-frontend/application-components": "21.2.1",
|
|
38
|
+
"@commercetools-frontend/application-shell-connectors": "21.2.1",
|
|
39
39
|
"@commercetools-frontend/assets": "21.0.0",
|
|
40
40
|
"@commercetools-frontend/browser-history": "21.0.0",
|
|
41
41
|
"@commercetools-frontend/constants": "21.0.0",
|
|
42
|
-
"@commercetools-frontend/i18n": "21.2.
|
|
43
|
-
"@commercetools-frontend/l10n": "21.
|
|
44
|
-
"@commercetools-frontend/notifications": "21.
|
|
45
|
-
"@commercetools-frontend/permissions": "21.
|
|
46
|
-
"@commercetools-frontend/react-notifications": "21.2.
|
|
47
|
-
"@commercetools-frontend/sdk": "21.1
|
|
48
|
-
"@commercetools-frontend/sentry": "21.
|
|
42
|
+
"@commercetools-frontend/i18n": "21.2.1",
|
|
43
|
+
"@commercetools-frontend/l10n": "21.2.1",
|
|
44
|
+
"@commercetools-frontend/notifications": "21.2.1",
|
|
45
|
+
"@commercetools-frontend/permissions": "21.2.1",
|
|
46
|
+
"@commercetools-frontend/react-notifications": "21.2.1",
|
|
47
|
+
"@commercetools-frontend/sdk": "21.2.1",
|
|
48
|
+
"@commercetools-frontend/sentry": "21.2.1",
|
|
49
49
|
"@commercetools-frontend/url-utils": "21.0.0",
|
|
50
50
|
"@commercetools-uikit/avatar": "^14.0.1",
|
|
51
51
|
"@commercetools-uikit/card": "^14.0.1",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"@commercetools-uikit/spacings": "^14.0.1",
|
|
59
59
|
"@commercetools-uikit/text": "^14.0.1",
|
|
60
60
|
"@commercetools/http-user-agent": "2.1.2",
|
|
61
|
-
"@emotion/react": "11.
|
|
62
|
-
"@emotion/styled": "11.
|
|
63
|
-
"@flopflip/combine-adapters": "0.0.
|
|
64
|
-
"@flopflip/http-adapter": "0.0.
|
|
65
|
-
"@flopflip/launchdarkly-adapter": "5.0.
|
|
66
|
-
"@flopflip/react-broadcast": "12.2.
|
|
61
|
+
"@emotion/react": "11.8.2",
|
|
62
|
+
"@emotion/styled": "11.8.1",
|
|
63
|
+
"@flopflip/combine-adapters": "0.0.28",
|
|
64
|
+
"@flopflip/http-adapter": "0.0.18",
|
|
65
|
+
"@flopflip/launchdarkly-adapter": "5.0.22",
|
|
66
|
+
"@flopflip/react-broadcast": "12.2.14",
|
|
67
67
|
"@flopflip/types": "4.1.20",
|
|
68
68
|
"@types/common-tags": "^1.8.1",
|
|
69
69
|
"@types/history": "4.7.11",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"moment": "^2.29.1",
|
|
92
92
|
"moment-timezone": "^0.5.34",
|
|
93
93
|
"omit-empty-es": "1.1.3",
|
|
94
|
-
"perfume.js": "6.
|
|
94
|
+
"perfume.js": "6.4.0",
|
|
95
95
|
"prop-types": "15.8.1",
|
|
96
96
|
"qss": "2.0.3",
|
|
97
97
|
"react-required-if": "1.0.3",
|
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
"uuid": "8.3.2"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@apollo/client": "3.5.
|
|
107
|
-
"@testing-library/react": "12.1.
|
|
106
|
+
"@apollo/client": "3.5.10",
|
|
107
|
+
"@testing-library/react": "12.1.4",
|
|
108
108
|
"@testing-library/react-hooks": "7.0.2",
|
|
109
|
-
"msw": "0.
|
|
109
|
+
"msw": "0.39.1",
|
|
110
110
|
"react": "17.0.2",
|
|
111
111
|
"react-dom": "17.0.2",
|
|
112
|
-
"react-intl": "5.24.
|
|
112
|
+
"react-intl": "5.24.7",
|
|
113
113
|
"react-redux": "7.2.6",
|
|
114
114
|
"react-router-dom": "5.3.0",
|
|
115
115
|
"redux": "4.1.2",
|
|
@@ -35,7 +35,7 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
|
|
|
35
35
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
36
36
|
var constants = require('@commercetools-frontend/constants');
|
|
37
37
|
var testUtils = require('@commercetools-frontend/sdk/test-utils');
|
|
38
|
-
var applicationEntryPoint = require('../../dist/application-entry-point-
|
|
38
|
+
var applicationEntryPoint = require('../../dist/application-entry-point-1126a3a0.cjs.dev.js');
|
|
39
39
|
var formatters = require('../../dist/formatters-e4b9b9dc.cjs.dev.js');
|
|
40
40
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
41
41
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -35,7 +35,7 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
|
|
|
35
35
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
36
36
|
var constants = require('@commercetools-frontend/constants');
|
|
37
37
|
var testUtils = require('@commercetools-frontend/sdk/test-utils');
|
|
38
|
-
var applicationEntryPoint = require('../../dist/application-entry-point-
|
|
38
|
+
var applicationEntryPoint = require('../../dist/application-entry-point-c8e001b7.cjs.prod.js');
|
|
39
39
|
var formatters = require('../../dist/formatters-a5bb12eb.cjs.prod.js');
|
|
40
40
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
41
41
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
@@ -32,7 +32,7 @@ import { ApplicationContextProvider } from '@commercetools-frontend/application-
|
|
|
32
32
|
import { NotificationProviderForCustomComponent, NotificationsList } from '@commercetools-frontend/react-notifications';
|
|
33
33
|
import { DOMAINS } from '@commercetools-frontend/constants';
|
|
34
34
|
import { createTestMiddleware } from '@commercetools-frontend/sdk/test-utils';
|
|
35
|
-
import { A as ApplicationEntryPoint, w as createReduxStore, f as createApolloClient } from '../../dist/application-entry-point-
|
|
35
|
+
import { A as ApplicationEntryPoint, w as createReduxStore, f as createApolloClient } from '../../dist/application-entry-point-1d14f973.esm.js';
|
|
36
36
|
import { e as entryPointUriPathToPermissionKeys } from '../../dist/formatters-1c23c0a9.esm.js';
|
|
37
37
|
import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
|
|
38
38
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|