@commercetools-frontend/application-shell 21.11.0 → 21.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{application-entry-point-28843eb4.esm.js → application-entry-point-01424eb5.esm.js} +29 -34
  2. package/dist/{application-entry-point-06ad02d5.cjs.prod.js → application-entry-point-93ad5f12.cjs.prod.js} +29 -34
  3. package/dist/{application-entry-point-6189b3a3.cjs.dev.js → application-entry-point-a9aa0d45.cjs.dev.js} +29 -34
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +5 -4
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +5 -4
  6. package/dist/commercetools-frontend-application-shell.esm.js +4 -4
  7. package/dist/declarations/src/index.d.ts +1 -1
  8. package/dist/declarations/src/utils/get-mc-api-url/get-mc-api-url.d.ts +2 -7
  9. package/dist/declarations/src/utils/index.d.ts +1 -1
  10. package/dist/{index-bcff2029.cjs.dev.js → index-149f53ec.cjs.dev.js} +6 -6
  11. package/dist/{index-5fcda492.esm.js → index-424de814.esm.js} +6 -6
  12. package/dist/{index-4ebc615c.cjs.prod.js → index-f0bd3232.cjs.prod.js} +6 -6
  13. package/dist/{project-expired-96b88908.cjs.dev.js → project-expired-18373b37.cjs.dev.js} +3 -3
  14. package/dist/{project-expired-53f0f1ff.esm.js → project-expired-457db600.esm.js} +3 -3
  15. package/dist/{project-expired-9fb2e01b.cjs.prod.js → project-expired-de826ba3.cjs.prod.js} +3 -3
  16. package/dist/{project-not-found-e8ca2011.esm.js → project-not-found-0c6fe7f5.esm.js} +3 -3
  17. package/dist/{project-not-found-30c140be.cjs.dev.js → project-not-found-5c0fe8a1.cjs.dev.js} +3 -3
  18. package/dist/{project-not-found-17e74630.cjs.prod.js → project-not-found-fa0e524c.cjs.prod.js} +3 -3
  19. package/dist/{project-not-initialized-8bec4622.cjs.dev.js → project-not-initialized-a1bf95fd.cjs.dev.js} +3 -3
  20. package/dist/{project-not-initialized-c5116ce2.cjs.prod.js → project-not-initialized-da0fad06.cjs.prod.js} +3 -3
  21. package/dist/{project-not-initialized-c83c731d.esm.js → project-not-initialized-dc38f9f9.esm.js} +3 -3
  22. package/dist/{project-suspended-14419c20.esm.js → project-suspended-32b5b5b2.esm.js} +3 -3
  23. package/dist/{project-suspended-748201e1.cjs.dev.js → project-suspended-92518e78.cjs.dev.js} +3 -3
  24. package/dist/{project-suspended-892ad1b9.cjs.prod.js → project-suspended-cbad48d9.cjs.prod.js} +3 -3
  25. package/dist/{quick-access-b0132ced.esm.js → quick-access-793ccbe9.esm.js} +2 -2
  26. package/dist/{quick-access-c08139f1.cjs.dev.js → quick-access-9dc493d3.cjs.dev.js} +2 -2
  27. package/dist/{quick-access-a451f632.cjs.prod.js → quick-access-feca5530.cjs.prod.js} +2 -2
  28. package/dist/{service-page-project-switcher-4b7ab3ee.cjs.prod.js → service-page-project-switcher-15a90544.cjs.prod.js} +1 -1
  29. package/dist/{service-page-project-switcher-53ffca17.esm.js → service-page-project-switcher-5f17d0e5.esm.js} +1 -1
  30. package/dist/{service-page-project-switcher-c99348cd.cjs.dev.js → service-page-project-switcher-b9c66554.cjs.dev.js} +1 -1
  31. package/package.json +16 -16
  32. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +1 -1
  33. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +1 -1
  34. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +1 -1
@@ -70,7 +70,7 @@ import { entryPointUriPathToPermissionKeys } from '@commercetools-frontend/appli
70
70
  import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
71
71
 
72
72
  // NOTE: This string will be replaced on build time with the package version.
73
- var version = "21.11.0";
73
+ var version = "21.12.0";
74
74
 
75
75
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
76
76
  var errorAction = action;
@@ -318,52 +318,47 @@ function getCorrelationId() {
318
318
  return _filterInstanceProperty(_context = ['mc', selectProjectKeyFromUrl(), userId, v4()]).call(_context, skipMalformedPart).join('/');
319
319
  }
320
320
 
321
- var removeMcPrefix = function removeMcPrefix(host) {
322
- return host.replace(/^mc(-(\d){4,})?\.(.*)$/, '$3');
321
+ // NOTE: Copied from `@application-shell-connectors`.
322
+ // TODO: Remove this version once the change in the connectors has been released.
323
+ var mcHostnameRegex = /^mc(-(\d){4,})?\.(.*)$/;
324
+ var mcPreviewHostnameRegex = /^.*\.mc-preview\.(.*)$/;
325
+
326
+ var getMcOriginTld = function getMcOriginTld(host) {
327
+ if (host.match(mcPreviewHostnameRegex)) {
328
+ return host.replace(mcPreviewHostnameRegex, '$1');
329
+ }
330
+
331
+ return host.replace(mcHostnameRegex, '$3');
323
332
  };
324
- /**
325
- * NOTE:
326
- * Given the Merchant Center or Custom Application runs behind the proxy
327
- * then the `mcApiUrl` should be build using the origin on the window.
328
- *
329
- * This allows the Merchant Center (or any Custom Appliction) to automatically
330
- * use an `mcApiUrl` which matches the respective url of the deployment.
331
- *
332
- * This is particularily useful with the new and old hostnames for the Merchant Center.
333
- * When using the origin, it will be made sure that the authorization cookie will
334
- * always be sent as the appropriate API url is used.
335
- *
336
- * 1. MC: mc.commercetools.com with API: mc-api.europe-west1.gcp.commercetools.com
337
- * -> Will not work as urls differ
338
- * 2. MC: mc.europe-west1.gcp.commercetools.com with API: mc-api.commercetools.com
339
- * -> Will not work as urls differ
340
- *
341
- * Using the origin ensures that urls always match with the cookie sent. Otherwise,
342
- * the application shell will rightfully redirect to the logout page.
343
- */
344
-
345
-
346
- var getMcApiUrlFromOrigin = function getMcApiUrlFromOrigin(actualWindow) {
333
+
334
+ var getMcApiUrlFromOrigin = function getMcApiUrlFromOrigin(origin) {
347
335
  var _context;
348
336
 
349
- var url = new _URL(actualWindow.origin);
350
- var originTld = removeMcPrefix(url.host);
337
+ var url = new _URL(origin);
338
+ var originTld = getMcOriginTld(url.host);
351
339
  return _concatInstanceProperty(_context = "".concat(url.protocol, "//mc-api.")).call(_context, originTld);
352
340
  };
353
341
 
354
- var isEnvironmentConfigurationEnabled = function isEnvironmentConfigurationEnabled(environmentConfiguration) {
355
- return environmentConfiguration === true || environmentConfiguration === 'true';
342
+ var parseAsBoolean = function parseAsBoolean(value) {
343
+ return value === true || value === 'true';
356
344
  };
357
345
 
358
346
  function getMcApiUrl() {
359
- var actualWindow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
360
- var isServedByProxy = isEnvironmentConfigurationEnabled(actualWindow.app.servedByProxy);
347
+ var environment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.app;
348
+ var origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.origin;
349
+ var isServedByProxy = parseAsBoolean(environment.servedByProxy);
350
+ /**
351
+ * Prefer using the origin URL for the MC API based on the origin value
352
+ * of the browser's `window.location`.
353
+ * This ensures that the application always uses the correct URL associated
354
+ * with that environment, instead of relying on the config value.
355
+ */
361
356
 
362
357
  if (isServedByProxy) {
363
- return getMcApiUrlFromOrigin(actualWindow);
358
+ return getMcApiUrlFromOrigin(origin);
364
359
  }
365
360
 
366
- return actualWindow.app.mcApiUrl;
361
+ return environment.mcApiUrl;
367
362
  }
368
363
 
369
364
  var getSessionToken = function getSessionToken() {
@@ -112,7 +112,7 @@ var _regeneratorRuntime__default = /*#__PURE__*/_interopDefault(_regeneratorRunt
112
112
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
113
113
 
114
114
  // NOTE: This string will be replaced on build time with the package version.
115
- var version = "21.11.0";
115
+ var version = "21.12.0";
116
116
 
117
117
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
118
118
  var errorAction = action;
@@ -359,52 +359,47 @@ function getCorrelationId() {
359
359
  return _filterInstanceProperty__default["default"](_context = ['mc', selectProjectKeyFromUrl(), userId, uuid.v4()]).call(_context, skipMalformedPart).join('/');
360
360
  }
361
361
 
362
- var removeMcPrefix = function removeMcPrefix(host) {
363
- return host.replace(/^mc(-(\d){4,})?\.(.*)$/, '$3');
362
+ // NOTE: Copied from `@application-shell-connectors`.
363
+ // TODO: Remove this version once the change in the connectors has been released.
364
+ var mcHostnameRegex = /^mc(-(\d){4,})?\.(.*)$/;
365
+ var mcPreviewHostnameRegex = /^.*\.mc-preview\.(.*)$/;
366
+
367
+ var getMcOriginTld = function getMcOriginTld(host) {
368
+ if (host.match(mcPreviewHostnameRegex)) {
369
+ return host.replace(mcPreviewHostnameRegex, '$1');
370
+ }
371
+
372
+ return host.replace(mcHostnameRegex, '$3');
364
373
  };
365
- /**
366
- * NOTE:
367
- * Given the Merchant Center or Custom Application runs behind the proxy
368
- * then the `mcApiUrl` should be build using the origin on the window.
369
- *
370
- * This allows the Merchant Center (or any Custom Appliction) to automatically
371
- * use an `mcApiUrl` which matches the respective url of the deployment.
372
- *
373
- * This is particularily useful with the new and old hostnames for the Merchant Center.
374
- * When using the origin, it will be made sure that the authorization cookie will
375
- * always be sent as the appropriate API url is used.
376
- *
377
- * 1. MC: mc.commercetools.com with API: mc-api.europe-west1.gcp.commercetools.com
378
- * -> Will not work as urls differ
379
- * 2. MC: mc.europe-west1.gcp.commercetools.com with API: mc-api.commercetools.com
380
- * -> Will not work as urls differ
381
- *
382
- * Using the origin ensures that urls always match with the cookie sent. Otherwise,
383
- * the application shell will rightfully redirect to the logout page.
384
- */
385
-
386
-
387
- var getMcApiUrlFromOrigin = function getMcApiUrlFromOrigin(actualWindow) {
374
+
375
+ var getMcApiUrlFromOrigin = function getMcApiUrlFromOrigin(origin) {
388
376
  var _context;
389
377
 
390
- var url = new _URL__default["default"](actualWindow.origin);
391
- var originTld = removeMcPrefix(url.host);
378
+ var url = new _URL__default["default"](origin);
379
+ var originTld = getMcOriginTld(url.host);
392
380
  return _concatInstanceProperty__default["default"](_context = "".concat(url.protocol, "//mc-api.")).call(_context, originTld);
393
381
  };
394
382
 
395
- var isEnvironmentConfigurationEnabled = function isEnvironmentConfigurationEnabled(environmentConfiguration) {
396
- return environmentConfiguration === true || environmentConfiguration === 'true';
383
+ var parseAsBoolean = function parseAsBoolean(value) {
384
+ return value === true || value === 'true';
397
385
  };
398
386
 
399
387
  function getMcApiUrl() {
400
- var actualWindow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
401
- var isServedByProxy = isEnvironmentConfigurationEnabled(actualWindow.app.servedByProxy);
388
+ var environment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.app;
389
+ var origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.origin;
390
+ var isServedByProxy = parseAsBoolean(environment.servedByProxy);
391
+ /**
392
+ * Prefer using the origin URL for the MC API based on the origin value
393
+ * of the browser's `window.location`.
394
+ * This ensures that the application always uses the correct URL associated
395
+ * with that environment, instead of relying on the config value.
396
+ */
402
397
 
403
398
  if (isServedByProxy) {
404
- return getMcApiUrlFromOrigin(actualWindow);
399
+ return getMcApiUrlFromOrigin(origin);
405
400
  }
406
401
 
407
- return actualWindow.app.mcApiUrl;
402
+ return environment.mcApiUrl;
408
403
  }
409
404
 
410
405
  var getSessionToken = function getSessionToken() {
@@ -113,7 +113,7 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
113
113
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
114
114
 
115
115
  // NOTE: This string will be replaced on build time with the package version.
116
- var version = "21.11.0";
116
+ var version = "21.12.0";
117
117
 
118
118
  var isAddNotificationErrorAction = function isAddNotificationErrorAction(action) {
119
119
  var errorAction = action;
@@ -361,52 +361,47 @@ function getCorrelationId() {
361
361
  return _filterInstanceProperty__default["default"](_context = ['mc', selectProjectKeyFromUrl(), userId, uuid.v4()]).call(_context, skipMalformedPart).join('/');
362
362
  }
363
363
 
364
- var removeMcPrefix = function removeMcPrefix(host) {
365
- return host.replace(/^mc(-(\d){4,})?\.(.*)$/, '$3');
364
+ // NOTE: Copied from `@application-shell-connectors`.
365
+ // TODO: Remove this version once the change in the connectors has been released.
366
+ var mcHostnameRegex = /^mc(-(\d){4,})?\.(.*)$/;
367
+ var mcPreviewHostnameRegex = /^.*\.mc-preview\.(.*)$/;
368
+
369
+ var getMcOriginTld = function getMcOriginTld(host) {
370
+ if (host.match(mcPreviewHostnameRegex)) {
371
+ return host.replace(mcPreviewHostnameRegex, '$1');
372
+ }
373
+
374
+ return host.replace(mcHostnameRegex, '$3');
366
375
  };
367
- /**
368
- * NOTE:
369
- * Given the Merchant Center or Custom Application runs behind the proxy
370
- * then the `mcApiUrl` should be build using the origin on the window.
371
- *
372
- * This allows the Merchant Center (or any Custom Appliction) to automatically
373
- * use an `mcApiUrl` which matches the respective url of the deployment.
374
- *
375
- * This is particularily useful with the new and old hostnames for the Merchant Center.
376
- * When using the origin, it will be made sure that the authorization cookie will
377
- * always be sent as the appropriate API url is used.
378
- *
379
- * 1. MC: mc.commercetools.com with API: mc-api.europe-west1.gcp.commercetools.com
380
- * -> Will not work as urls differ
381
- * 2. MC: mc.europe-west1.gcp.commercetools.com with API: mc-api.commercetools.com
382
- * -> Will not work as urls differ
383
- *
384
- * Using the origin ensures that urls always match with the cookie sent. Otherwise,
385
- * the application shell will rightfully redirect to the logout page.
386
- */
387
-
388
-
389
- var getMcApiUrlFromOrigin = function getMcApiUrlFromOrigin(actualWindow) {
376
+
377
+ var getMcApiUrlFromOrigin = function getMcApiUrlFromOrigin(origin) {
390
378
  var _context;
391
379
 
392
- var url = new _URL__default["default"](actualWindow.origin);
393
- var originTld = removeMcPrefix(url.host);
380
+ var url = new _URL__default["default"](origin);
381
+ var originTld = getMcOriginTld(url.host);
394
382
  return _concatInstanceProperty__default["default"](_context = "".concat(url.protocol, "//mc-api.")).call(_context, originTld);
395
383
  };
396
384
 
397
- var isEnvironmentConfigurationEnabled = function isEnvironmentConfigurationEnabled(environmentConfiguration) {
398
- return environmentConfiguration === true || environmentConfiguration === 'true';
385
+ var parseAsBoolean = function parseAsBoolean(value) {
386
+ return value === true || value === 'true';
399
387
  };
400
388
 
401
389
  function getMcApiUrl() {
402
- var actualWindow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
403
- var isServedByProxy = isEnvironmentConfigurationEnabled(actualWindow.app.servedByProxy);
390
+ var environment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.app;
391
+ var origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.origin;
392
+ var isServedByProxy = parseAsBoolean(environment.servedByProxy);
393
+ /**
394
+ * Prefer using the origin URL for the MC API based on the origin value
395
+ * of the browser's `window.location`.
396
+ * This ensures that the application always uses the correct URL associated
397
+ * with that environment, instead of relying on the config value.
398
+ */
404
399
 
405
400
  if (isServedByProxy) {
406
- return getMcApiUrlFromOrigin(actualWindow);
401
+ return getMcApiUrlFromOrigin(origin);
407
402
  }
408
403
 
409
- return actualWindow.app.mcApiUrl;
404
+ return environment.mcApiUrl;
410
405
  }
411
406
 
412
407
  var getSessionToken = function getSessionToken() {
@@ -2,12 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var applicationEntryPoint = require('./application-entry-point-6189b3a3.cjs.dev.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-bcff2029.cjs.dev.js');
5
+ var applicationEntryPoint = require('./application-entry-point-a9aa0d45.cjs.dev.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-149f53ec.cjs.dev.js');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
8
  require('uuid');
9
- require('@babel/runtime-corejs3/core-js-stable/url');
10
- require('@babel/runtime-corejs3/core-js-stable/instance/concat');
11
9
  var ssr = require('@commercetools-frontend/application-config/ssr');
12
10
  var reactBroadcast = require('@flopflip/react-broadcast');
13
11
  var ldAdapter = require('@flopflip/launchdarkly-adapter');
@@ -23,6 +21,7 @@ require('@babel/runtime-corejs3/helpers/defineProperty');
23
21
  require('@babel/runtime-corejs3/helpers/slicedToArray');
24
22
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
25
23
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
24
+ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
26
25
  require('@babel/runtime-corejs3/core-js-stable/reflect/has');
27
26
  require('lodash/mapValues');
28
27
  require('redux');
@@ -44,6 +43,7 @@ require('@emotion/react/jsx-runtime');
44
43
  require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
45
44
  require('@babel/runtime-corejs3/core-js-stable/instance/slice');
46
45
  require('@commercetools-frontend/sentry');
46
+ require('@babel/runtime-corejs3/core-js-stable/url');
47
47
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
48
48
  require('@apollo/client');
49
49
  require('apollo-link-logger');
@@ -131,6 +131,7 @@ exports.buildApiUrl = applicationEntryPoint.buildApiUrl;
131
131
  exports.createApolloClient = applicationEntryPoint.createApolloClient;
132
132
  exports.createHttpClientOptions = applicationEntryPoint.createHttpClientOptions;
133
133
  exports.executeHttpClientRequest = applicationEntryPoint.executeHttpClientRequest;
134
+ exports.getMcApiUrl = applicationEntryPoint.getMcApiUrl;
134
135
  exports.selectProjectKeyFromUrl = applicationEntryPoint.selectProjectKeyFromUrl;
135
136
  exports.selectUserId = applicationEntryPoint.selectUserId;
136
137
  exports.version = applicationEntryPoint.version;
@@ -2,12 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var applicationEntryPoint = require('./application-entry-point-06ad02d5.cjs.prod.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-4ebc615c.cjs.prod.js');
5
+ var applicationEntryPoint = require('./application-entry-point-93ad5f12.cjs.prod.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-f0bd3232.cjs.prod.js');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
8
  require('uuid');
9
- require('@babel/runtime-corejs3/core-js-stable/url');
10
- require('@babel/runtime-corejs3/core-js-stable/instance/concat');
11
9
  var ssr = require('@commercetools-frontend/application-config/ssr');
12
10
  var reactBroadcast = require('@flopflip/react-broadcast');
13
11
  var ldAdapter = require('@flopflip/launchdarkly-adapter');
@@ -23,6 +21,7 @@ require('@babel/runtime-corejs3/helpers/defineProperty');
23
21
  require('@babel/runtime-corejs3/helpers/slicedToArray');
24
22
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
25
23
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
24
+ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
26
25
  require('@babel/runtime-corejs3/core-js-stable/reflect/has');
27
26
  require('lodash/mapValues');
28
27
  require('redux');
@@ -44,6 +43,7 @@ require('@emotion/react/jsx-runtime');
44
43
  require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
45
44
  require('@babel/runtime-corejs3/core-js-stable/instance/slice');
46
45
  require('@commercetools-frontend/sentry');
46
+ require('@babel/runtime-corejs3/core-js-stable/url');
47
47
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
48
48
  require('@apollo/client');
49
49
  require('apollo-link-logger');
@@ -131,6 +131,7 @@ exports.buildApiUrl = applicationEntryPoint.buildApiUrl;
131
131
  exports.createApolloClient = applicationEntryPoint.createApolloClient;
132
132
  exports.createHttpClientOptions = applicationEntryPoint.createHttpClientOptions;
133
133
  exports.executeHttpClientRequest = applicationEntryPoint.executeHttpClientRequest;
134
+ exports.getMcApiUrl = applicationEntryPoint.getMcApiUrl;
134
135
  exports.selectProjectKeyFromUrl = applicationEntryPoint.selectProjectKeyFromUrl;
135
136
  exports.selectUserId = applicationEntryPoint.selectUserId;
136
137
  exports.version = applicationEntryPoint.version;
@@ -1,9 +1,7 @@
1
- export { p as RouteCatchAll, q as applyDefaultMiddlewares, w as buildApiUrl, f as createApolloClient, x as createHttpClientOptions, y as executeHttpClientRequest, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-28843eb4.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, d as SuspendedRoute, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, e as useMcLazyQuery, f as useMcMutation, u as useMcQuery } from './index-5fcda492.esm.js';
1
+ export { p as RouteCatchAll, q as applyDefaultMiddlewares, w as buildApiUrl, f as createApolloClient, x as createHttpClientOptions, y as executeHttpClientRequest, g as getMcApiUrl, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-01424eb5.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, d as SuspendedRoute, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, e as useMcLazyQuery, f as useMcMutation, u as useMcQuery } from './index-424de814.esm.js';
3
3
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
4
4
  import 'uuid';
5
- import '@babel/runtime-corejs3/core-js-stable/url';
6
- import '@babel/runtime-corejs3/core-js-stable/instance/concat';
7
5
  export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses } from '@commercetools-frontend/application-config/ssr';
8
6
  export { ConfigureFlopFlip, ReconfigureFlopFlip, ToggleFeature, branchOnFeatureToggle, injectFeatureToggle, injectFeatureToggles, useAdapterReconfiguration, useAdapterStatus, useFeatureToggle, useFeatureToggles, useFlagVariation, useFlagVariations } from '@flopflip/react-broadcast';
9
7
  export { default as ldAdapter } from '@flopflip/launchdarkly-adapter';
@@ -19,6 +17,7 @@ import '@babel/runtime-corejs3/helpers/defineProperty';
19
17
  import '@babel/runtime-corejs3/helpers/slicedToArray';
20
18
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
21
19
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
20
+ import '@babel/runtime-corejs3/core-js-stable/instance/concat';
22
21
  import '@babel/runtime-corejs3/core-js-stable/reflect/has';
23
22
  import 'lodash/mapValues';
24
23
  import 'redux';
@@ -40,6 +39,7 @@ import '@emotion/react/jsx-runtime';
40
39
  import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
41
40
  import '@babel/runtime-corejs3/core-js-stable/instance/slice';
42
41
  import '@commercetools-frontend/sentry';
42
+ import '@babel/runtime-corejs3/core-js-stable/url';
43
43
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
44
44
  import '@apollo/client';
45
45
  import 'apollo-link-logger';
@@ -7,7 +7,7 @@ export { applyDefaultMiddlewares } from './configure-store';
7
7
  export { default as InjectReducers } from './components/inject-reducers';
8
8
  export { default as RouteCatchAll } from './components/route-catch-all';
9
9
  export { default as setupGlobalErrorListener } from './utils/setup-global-error-listener';
10
- export { selectUserId, selectProjectKeyFromUrl, createApolloContextForProxyForwardTo, } from './utils';
10
+ export { getMcApiUrl, selectUserId, selectProjectKeyFromUrl, createApolloContextForProxyForwardTo, } from './utils';
11
11
  export { GtmContext } from './components/gtm-booter';
12
12
  export { default as GtmUserLogoutTracker } from './components/gtm-user-logout-tracker';
13
13
  export { default as SetupFlopFlipProvider } from './components/setup-flop-flip-provider';
@@ -1,8 +1,3 @@
1
- export interface ApplicationWindow extends Window {
2
- app: {
3
- servedByProxy: string | boolean;
4
- mcApiUrl: string;
5
- };
6
- }
7
- declare function getMcApiUrl(actualWindow?: ApplicationWindow): string;
1
+ import type { ApplicationWindow } from '@commercetools-frontend/constants';
2
+ declare function getMcApiUrl(environment?: ApplicationWindow['app'], origin?: string): string;
8
3
  export default getMcApiUrl;
@@ -3,6 +3,6 @@ export { default as selectTeamIdFromLocalStorage } from './select-team-id-from-l
3
3
  export { default as selectProjectKeyFromUrl } from './select-project-key-from-url';
4
4
  export { default as selectUserId } from './select-user-id';
5
5
  export { default as getCorrelationId } from './get-correlation-id';
6
- export { default as getPreviousProjectKey } from './get-previous-project-key';
7
6
  export { default as getMcApiUrl } from './get-mc-api-url';
7
+ export { default as getPreviousProjectKey } from './get-previous-project-key';
8
8
  export { createApolloContextForProxyForwardTo } from './apollo-context';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var applicationEntryPoint = require('./application-entry-point-6189b3a3.cjs.dev.js');
3
+ var applicationEntryPoint = require('./application-entry-point-a9aa0d45.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');
@@ -2448,19 +2448,19 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
2448
2448
  } : {};
2449
2449
 
2450
2450
  var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
2451
- return Promise.resolve().then(function () { return require('./project-not-found-30c140be.cjs.dev.js'
2451
+ return Promise.resolve().then(function () { return require('./project-not-found-5c0fe8a1.cjs.dev.js'
2452
2452
  /* webpackChunkName: "project-not-found" */
2453
2453
  ); });
2454
2454
  });
2455
2455
 
2456
2456
  var ProjectExpired = /*#__PURE__*/react.lazy(function () {
2457
- return Promise.resolve().then(function () { return require('./project-expired-96b88908.cjs.dev.js'
2457
+ return Promise.resolve().then(function () { return require('./project-expired-18373b37.cjs.dev.js'
2458
2458
  /* webpackChunkName: "project-expired" */
2459
2459
  ); });
2460
2460
  });
2461
2461
 
2462
2462
  var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
2463
- return Promise.resolve().then(function () { return require('./project-not-initialized-8bec4622.cjs.dev.js'
2463
+ return Promise.resolve().then(function () { return require('./project-not-initialized-a1bf95fd.cjs.dev.js'
2464
2464
  /* webpackChunkName: "project-not-initialized" */
2465
2465
  ); });
2466
2466
  });
@@ -2507,7 +2507,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
2507
2507
  RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
2508
2508
 
2509
2509
  var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
2510
- return Promise.resolve().then(function () { return require('./project-suspended-748201e1.cjs.dev.js'
2510
+ return Promise.resolve().then(function () { return require('./project-suspended-92518e78.cjs.dev.js'
2511
2511
  /* webpackChunkName: "project-suspended" */
2512
2512
  ); });
2513
2513
  });
@@ -3854,7 +3854,7 @@ var pimIndexerStates = {
3854
3854
  };
3855
3855
 
3856
3856
  var QuickAccess = /*#__PURE__*/react.lazy(function () {
3857
- return Promise.resolve().then(function () { return require('./quick-access-c08139f1.cjs.dev.js'
3857
+ return Promise.resolve().then(function () { return require('./quick-access-9dc493d3.cjs.dev.js'
3858
3858
  /* webpackChunkName: "quick-access" */
3859
3859
  ); });
3860
3860
  });
@@ -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-28843eb4.esm.js';
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-01424eb5.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';
@@ -2388,19 +2388,19 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
2388
2388
  } : {};
2389
2389
 
2390
2390
  var ProjectNotFound = /*#__PURE__*/lazy(function () {
2391
- return import('./project-not-found-e8ca2011.esm.js'
2391
+ return import('./project-not-found-0c6fe7f5.esm.js'
2392
2392
  /* webpackChunkName: "project-not-found" */
2393
2393
  );
2394
2394
  });
2395
2395
 
2396
2396
  var ProjectExpired = /*#__PURE__*/lazy(function () {
2397
- return import('./project-expired-53f0f1ff.esm.js'
2397
+ return import('./project-expired-457db600.esm.js'
2398
2398
  /* webpackChunkName: "project-expired" */
2399
2399
  );
2400
2400
  });
2401
2401
 
2402
2402
  var ProjectNotInitialized = /*#__PURE__*/lazy(function () {
2403
- return import('./project-not-initialized-c83c731d.esm.js'
2403
+ return import('./project-not-initialized-dc38f9f9.esm.js'
2404
2404
  /* webpackChunkName: "project-not-initialized" */
2405
2405
  );
2406
2406
  });
@@ -2447,7 +2447,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
2447
2447
  RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
2448
2448
 
2449
2449
  var ProjectSuspended = /*#__PURE__*/lazy(function () {
2450
- return import('./project-suspended-14419c20.esm.js'
2450
+ return import('./project-suspended-32b5b5b2.esm.js'
2451
2451
  /* webpackChunkName: "project-suspended" */
2452
2452
  );
2453
2453
  });
@@ -3794,7 +3794,7 @@ var pimIndexerStates = {
3794
3794
  };
3795
3795
 
3796
3796
  var QuickAccess = /*#__PURE__*/lazy(function () {
3797
- return import('./quick-access-b0132ced.esm.js'
3797
+ return import('./quick-access-793ccbe9.esm.js'
3798
3798
  /* webpackChunkName: "quick-access" */
3799
3799
  );
3800
3800
  });
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var applicationEntryPoint = require('./application-entry-point-06ad02d5.cjs.prod.js');
3
+ var applicationEntryPoint = require('./application-entry-point-93ad5f12.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');
@@ -2354,19 +2354,19 @@ var LocaleSwitcher = function LocaleSwitcher(props) {
2354
2354
  LocaleSwitcher.propTypes = {};
2355
2355
 
2356
2356
  var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
2357
- return Promise.resolve().then(function () { return require('./project-not-found-17e74630.cjs.prod.js'
2357
+ return Promise.resolve().then(function () { return require('./project-not-found-fa0e524c.cjs.prod.js'
2358
2358
  /* webpackChunkName: "project-not-found" */
2359
2359
  ); });
2360
2360
  });
2361
2361
 
2362
2362
  var ProjectExpired = /*#__PURE__*/react.lazy(function () {
2363
- return Promise.resolve().then(function () { return require('./project-expired-9fb2e01b.cjs.prod.js'
2363
+ return Promise.resolve().then(function () { return require('./project-expired-de826ba3.cjs.prod.js'
2364
2364
  /* webpackChunkName: "project-expired" */
2365
2365
  ); });
2366
2366
  });
2367
2367
 
2368
2368
  var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
2369
- return Promise.resolve().then(function () { return require('./project-not-initialized-c5116ce2.cjs.prod.js'
2369
+ return Promise.resolve().then(function () { return require('./project-not-initialized-da0fad06.cjs.prod.js'
2370
2370
  /* webpackChunkName: "project-not-initialized" */
2371
2371
  ); });
2372
2372
  });
@@ -2413,7 +2413,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
2413
2413
  RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
2414
2414
 
2415
2415
  var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
2416
- return Promise.resolve().then(function () { return require('./project-suspended-892ad1b9.cjs.prod.js'
2416
+ return Promise.resolve().then(function () { return require('./project-suspended-cbad48d9.cjs.prod.js'
2417
2417
  /* webpackChunkName: "project-suspended" */
2418
2418
  ); });
2419
2419
  });
@@ -3659,7 +3659,7 @@ var pimIndexerStates = {
3659
3659
  };
3660
3660
 
3661
3661
  var QuickAccess = /*#__PURE__*/react.lazy(function () {
3662
- return Promise.resolve().then(function () { return require('./quick-access-a451f632.cjs.prod.js'
3662
+ return Promise.resolve().then(function () { return require('./quick-access-feca5530.cjs.prod.js'
3663
3663
  /* webpackChunkName: "quick-access" */
3664
3664
  ); });
3665
3665
  });
@@ -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-c99348cd.cjs.dev.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-b9c66554.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-bcff2029.cjs.dev.js');
21
- require('./application-entry-point-6189b3a3.cjs.dev.js');
20
+ require('./index-149f53ec.cjs.dev.js');
21
+ require('./application-entry-point-a9aa0d45.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-53ffca17.esm.js';
13
+ import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-5f17d0e5.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-5fcda492.esm.js';
19
- import './application-entry-point-28843eb4.esm.js';
18
+ import './index-424de814.esm.js';
19
+ import './application-entry-point-01424eb5.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-4b7ab3ee.cjs.prod.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-15a90544.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-4ebc615c.cjs.prod.js');
21
- require('./application-entry-point-06ad02d5.cjs.prod.js');
20
+ require('./index-f0bd3232.cjs.prod.js');
21
+ require('./application-entry-point-93ad5f12.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-53ffca17.esm.js';
13
+ import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-5f17d0e5.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-5fcda492.esm.js';
19
- import './application-entry-point-28843eb4.esm.js';
18
+ import './index-424de814.esm.js';
19
+ import './application-entry-point-01424eb5.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 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-c99348cd.cjs.dev.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-b9c66554.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-bcff2029.cjs.dev.js');
21
- require('./application-entry-point-6189b3a3.cjs.dev.js');
20
+ require('./index-149f53ec.cjs.dev.js');
21
+ require('./application-entry-point-a9aa0d45.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 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-4b7ab3ee.cjs.prod.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-15a90544.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-4ebc615c.cjs.prod.js');
21
- require('./application-entry-point-06ad02d5.cjs.prod.js');
20
+ require('./index-f0bd3232.cjs.prod.js');
21
+ require('./application-entry-point-93ad5f12.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-c99348cd.cjs.dev.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-b9c66554.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-bcff2029.cjs.dev.js');
21
- require('./application-entry-point-6189b3a3.cjs.dev.js');
20
+ require('./index-149f53ec.cjs.dev.js');
21
+ require('./application-entry-point-a9aa0d45.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-4b7ab3ee.cjs.prod.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-15a90544.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-4ebc615c.cjs.prod.js');
21
- require('./application-entry-point-06ad02d5.cjs.prod.js');
20
+ require('./index-f0bd3232.cjs.prod.js');
21
+ require('./application-entry-point-93ad5f12.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 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-53ffca17.esm.js';
13
+ import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-5f17d0e5.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-5fcda492.esm.js';
19
- import './application-entry-point-28843eb4.esm.js';
18
+ import './index-424de814.esm.js';
19
+ import './application-entry-point-01424eb5.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';
@@ -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-53ffca17.esm.js';
13
+ import { S as ServicePageProjectSwitcher } from './service-page-project-switcher-5f17d0e5.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-5fcda492.esm.js';
19
- import './application-entry-point-28843eb4.esm.js';
18
+ import './index-424de814.esm.js';
19
+ import './application-entry-point-01424eb5.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 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-c99348cd.cjs.dev.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-b9c66554.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-bcff2029.cjs.dev.js');
21
- require('./application-entry-point-6189b3a3.cjs.dev.js');
20
+ require('./index-149f53ec.cjs.dev.js');
21
+ require('./application-entry-point-a9aa0d45.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 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-4b7ab3ee.cjs.prod.js');
15
+ var servicePageProjectSwitcher = require('./service-page-project-switcher-15a90544.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-4ebc615c.cjs.prod.js');
21
- require('./application-entry-point-06ad02d5.cjs.prod.js');
20
+ require('./index-f0bd3232.cjs.prod.js');
21
+ require('./application-entry-point-93ad5f12.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');
@@ -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-28843eb4.esm.js';
25
+ import { c as location } from './application-entry-point-01424eb5.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-5fcda492.esm.js';
44
+ import { B as ButlerContainer, p as pimIndexerStates } from './index-424de814.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';
@@ -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-6189b3a3.cjs.dev.js');
27
+ var applicationEntryPoint = require('./application-entry-point-a9aa0d45.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-bcff2029.cjs.dev.js');
46
+ var dist_commercetoolsFrontendApplicationShell = require('./index-149f53ec.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-06ad02d5.cjs.prod.js');
27
+ var applicationEntryPoint = require('./application-entry-point-93ad5f12.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-4ebc615c.cjs.prod.js');
46
+ var dist_commercetoolsFrontendApplicationShell = require('./index-f0bd3232.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');
@@ -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-4ebc615c.cjs.prod.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-f0bd3232.cjs.prod.js');
7
7
  var jsxRuntime = require('@emotion/react/jsx-runtime');
8
8
 
9
9
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -1,7 +1,7 @@
1
1
  import _styled from '@emotion/styled/base';
2
2
  import { useParams } from 'react-router-dom';
3
3
  import { useApplicationContext } from '@commercetools-frontend/application-shell-connectors';
4
- import { P as ProjectSwitcher } from './index-5fcda492.esm.js';
4
+ import { P as ProjectSwitcher } from './index-424de814.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-bcff2029.cjs.dev.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-149f53ec.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 }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-shell",
3
- "version": "21.11.0",
3
+ "version": "21.12.0",
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,21 +33,21 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.18.6",
35
35
  "@babel/runtime-corejs3": "^7.18.6",
36
- "@commercetools-frontend/actions-global": "21.11.0",
37
- "@commercetools-frontend/application-components": "21.11.0",
38
- "@commercetools-frontend/application-config": "21.11.0",
39
- "@commercetools-frontend/application-shell-connectors": "21.11.0",
40
- "@commercetools-frontend/assets": "21.11.0",
41
- "@commercetools-frontend/browser-history": "21.11.0",
42
- "@commercetools-frontend/constants": "21.11.0",
43
- "@commercetools-frontend/i18n": "21.11.0",
44
- "@commercetools-frontend/l10n": "21.11.0",
45
- "@commercetools-frontend/notifications": "21.11.0",
46
- "@commercetools-frontend/permissions": "21.11.0",
47
- "@commercetools-frontend/react-notifications": "21.11.0",
48
- "@commercetools-frontend/sdk": "21.11.0",
49
- "@commercetools-frontend/sentry": "21.11.0",
50
- "@commercetools-frontend/url-utils": "21.11.0",
36
+ "@commercetools-frontend/actions-global": "21.12.0",
37
+ "@commercetools-frontend/application-components": "21.12.0",
38
+ "@commercetools-frontend/application-config": "21.12.0",
39
+ "@commercetools-frontend/application-shell-connectors": "21.12.0",
40
+ "@commercetools-frontend/assets": "21.12.0",
41
+ "@commercetools-frontend/browser-history": "21.12.0",
42
+ "@commercetools-frontend/constants": "21.12.0",
43
+ "@commercetools-frontend/i18n": "21.12.0",
44
+ "@commercetools-frontend/l10n": "21.12.0",
45
+ "@commercetools-frontend/notifications": "21.12.0",
46
+ "@commercetools-frontend/permissions": "21.12.0",
47
+ "@commercetools-frontend/react-notifications": "21.12.0",
48
+ "@commercetools-frontend/sdk": "21.12.0",
49
+ "@commercetools-frontend/sentry": "21.12.0",
50
+ "@commercetools-frontend/url-utils": "21.12.0",
51
51
  "@commercetools-uikit/accessible-hidden": "^15.1.0",
52
52
  "@commercetools-uikit/avatar": "^15.1.0",
53
53
  "@commercetools-uikit/card": "^15.1.0",
@@ -36,7 +36,7 @@ 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
38
  var ssr = require('@commercetools-frontend/application-config/ssr');
39
- var applicationEntryPoint = require('../../dist/application-entry-point-6189b3a3.cjs.dev.js');
39
+ var applicationEntryPoint = require('../../dist/application-entry-point-a9aa0d45.cjs.dev.js');
40
40
  var jsxRuntime = require('@emotion/react/jsx-runtime');
41
41
  require('@babel/runtime-corejs3/helpers/slicedToArray');
42
42
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
@@ -36,7 +36,7 @@ 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
38
  var ssr = require('@commercetools-frontend/application-config/ssr');
39
- var applicationEntryPoint = require('../../dist/application-entry-point-06ad02d5.cjs.prod.js');
39
+ var applicationEntryPoint = require('../../dist/application-entry-point-93ad5f12.cjs.prod.js');
40
40
  var jsxRuntime = require('@emotion/react/jsx-runtime');
41
41
  require('@babel/runtime-corejs3/helpers/slicedToArray');
42
42
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
@@ -33,7 +33,7 @@ import { NotificationProviderForCustomComponent, NotificationsList } from '@comm
33
33
  import { DOMAINS } from '@commercetools-frontend/constants';
34
34
  import { createTestMiddleware } from '@commercetools-frontend/sdk/test-utils';
35
35
  import { entryPointUriPathToPermissionKeys } from '@commercetools-frontend/application-config/ssr';
36
- import { A as ApplicationEntryPoint, z as createReduxStore, f as createApolloClient } from '../../dist/application-entry-point-28843eb4.esm.js';
36
+ import { A as ApplicationEntryPoint, z as createReduxStore, f as createApolloClient } from '../../dist/application-entry-point-01424eb5.esm.js';
37
37
  import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
38
38
  import '@babel/runtime-corejs3/helpers/slicedToArray';
39
39
  import '@babel/runtime-corejs3/core-js-stable/object/entries';