@commercetools-frontend/application-shell 21.11.0 → 21.13.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-6189b3a3.cjs.dev.js → application-entry-point-43fd73f5.cjs.dev.js} +33 -34
- package/dist/{application-entry-point-28843eb4.esm.js → application-entry-point-9c924b81.esm.js} +33 -34
- package/dist/{application-entry-point-06ad02d5.cjs.prod.js → application-entry-point-f5a19490.cjs.prod.js} +33 -34
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +5 -4
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +5 -4
- package/dist/commercetools-frontend-application-shell.esm.js +4 -4
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/types/generated/settings.d.ts +108 -84
- package/dist/declarations/src/utils/get-mc-api-url/get-mc-api-url.d.ts +2 -7
- package/dist/declarations/src/utils/index.d.ts +1 -1
- package/dist/{index-5fcda492.esm.js → index-428502d7.esm.js} +16 -17
- package/dist/{index-4ebc615c.cjs.prod.js → index-a544deff.cjs.prod.js} +15 -16
- package/dist/{index-bcff2029.cjs.dev.js → index-e4a6db71.cjs.dev.js} +16 -17
- package/dist/{project-expired-9fb2e01b.cjs.prod.js → project-expired-110383bb.cjs.prod.js} +3 -3
- package/dist/{project-expired-53f0f1ff.esm.js → project-expired-45491d93.esm.js} +3 -3
- package/dist/{project-expired-96b88908.cjs.dev.js → project-expired-5609f6c3.cjs.dev.js} +3 -3
- package/dist/{project-not-found-30c140be.cjs.dev.js → project-not-found-05608a7b.cjs.dev.js} +3 -3
- package/dist/{project-not-found-17e74630.cjs.prod.js → project-not-found-56537969.cjs.prod.js} +3 -3
- package/dist/{project-not-found-e8ca2011.esm.js → project-not-found-64180914.esm.js} +3 -3
- package/dist/{project-not-initialized-c83c731d.esm.js → project-not-initialized-55986b48.esm.js} +3 -3
- package/dist/{project-not-initialized-c5116ce2.cjs.prod.js → project-not-initialized-ecf77673.cjs.prod.js} +3 -3
- package/dist/{project-not-initialized-8bec4622.cjs.dev.js → project-not-initialized-f715cd11.cjs.dev.js} +3 -3
- package/dist/{project-suspended-892ad1b9.cjs.prod.js → project-suspended-0d7731b8.cjs.prod.js} +3 -3
- package/dist/{project-suspended-748201e1.cjs.dev.js → project-suspended-4e25c346.cjs.dev.js} +3 -3
- package/dist/{project-suspended-14419c20.esm.js → project-suspended-af3dcdac.esm.js} +3 -3
- package/dist/{quick-access-b0132ced.esm.js → quick-access-20f2f865.esm.js} +2 -2
- package/dist/{quick-access-a451f632.cjs.prod.js → quick-access-28ff2c5f.cjs.prod.js} +2 -2
- package/dist/{quick-access-c08139f1.cjs.dev.js → quick-access-44288a69.cjs.dev.js} +2 -2
- package/dist/{service-page-project-switcher-c99348cd.cjs.dev.js → service-page-project-switcher-a1cbb100.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-4b7ab3ee.cjs.prod.js → service-page-project-switcher-ae61c39d.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-53ffca17.esm.js → service-page-project-switcher-d1c2ae56.esm.js} +1 -1
- package/package.json +26 -26
- 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
|
@@ -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.
|
|
116
|
+
var version = "21.13.1";
|
|
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
|
-
|
|
365
|
-
|
|
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
|
-
|
|
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"](
|
|
393
|
-
var originTld =
|
|
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
|
|
398
|
-
return
|
|
385
|
+
var parseAsBoolean = function parseAsBoolean(value) {
|
|
386
|
+
return value === true || value === 'true';
|
|
399
387
|
};
|
|
400
388
|
|
|
401
389
|
function getMcApiUrl() {
|
|
402
|
-
var
|
|
403
|
-
var
|
|
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(
|
|
401
|
+
return getMcApiUrlFromOrigin(origin);
|
|
407
402
|
}
|
|
408
403
|
|
|
409
|
-
return
|
|
404
|
+
return environment.mcApiUrl;
|
|
410
405
|
}
|
|
411
406
|
|
|
412
407
|
var getSessionToken = function getSessionToken() {
|
|
@@ -714,6 +709,10 @@ var getAppliedForwardToHeaders = function getAppliedForwardToHeaders(forwardToCo
|
|
|
714
709
|
return {};
|
|
715
710
|
}
|
|
716
711
|
|
|
712
|
+
if (!forwardToConfig.uri) {
|
|
713
|
+
throw new Error("Missing required \"uri\" option.");
|
|
714
|
+
}
|
|
715
|
+
|
|
717
716
|
return _objectSpread$3(_objectSpread$3({}, _reduceInstanceProperty__default["default"](_context2 = _Object$entries__default["default"]((_forwardToConfig$head = forwardToConfig.headers) !== null && _forwardToConfig$head !== void 0 ? _forwardToConfig$head : {})).call(_context2, function (customForwardHeaders, _ref) {
|
|
718
717
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
719
718
|
headerName = _ref2[0],
|
package/dist/{application-entry-point-28843eb4.esm.js → application-entry-point-9c924b81.esm.js}
RENAMED
|
@@ -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.
|
|
73
|
+
var version = "21.13.1";
|
|
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
|
-
|
|
322
|
-
|
|
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
|
-
|
|
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(
|
|
350
|
-
var originTld =
|
|
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
|
|
355
|
-
return
|
|
342
|
+
var parseAsBoolean = function parseAsBoolean(value) {
|
|
343
|
+
return value === true || value === 'true';
|
|
356
344
|
};
|
|
357
345
|
|
|
358
346
|
function getMcApiUrl() {
|
|
359
|
-
var
|
|
360
|
-
var
|
|
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(
|
|
358
|
+
return getMcApiUrlFromOrigin(origin);
|
|
364
359
|
}
|
|
365
360
|
|
|
366
|
-
return
|
|
361
|
+
return environment.mcApiUrl;
|
|
367
362
|
}
|
|
368
363
|
|
|
369
364
|
var getSessionToken = function getSessionToken() {
|
|
@@ -671,6 +666,10 @@ var getAppliedForwardToHeaders = function getAppliedForwardToHeaders(forwardToCo
|
|
|
671
666
|
return {};
|
|
672
667
|
}
|
|
673
668
|
|
|
669
|
+
if (!forwardToConfig.uri) {
|
|
670
|
+
throw new Error("Missing required \"uri\" option.");
|
|
671
|
+
}
|
|
672
|
+
|
|
674
673
|
return _objectSpread$3(_objectSpread$3({}, _reduceInstanceProperty(_context2 = _Object$entries((_forwardToConfig$head = forwardToConfig.headers) !== null && _forwardToConfig$head !== void 0 ? _forwardToConfig$head : {})).call(_context2, function (customForwardHeaders, _ref) {
|
|
675
674
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
676
675
|
headerName = _ref2[0],
|
|
@@ -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.
|
|
115
|
+
var version = "21.13.1";
|
|
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
|
-
|
|
363
|
-
|
|
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
|
-
|
|
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"](
|
|
391
|
-
var originTld =
|
|
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
|
|
396
|
-
return
|
|
383
|
+
var parseAsBoolean = function parseAsBoolean(value) {
|
|
384
|
+
return value === true || value === 'true';
|
|
397
385
|
};
|
|
398
386
|
|
|
399
387
|
function getMcApiUrl() {
|
|
400
|
-
var
|
|
401
|
-
var
|
|
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(
|
|
399
|
+
return getMcApiUrlFromOrigin(origin);
|
|
405
400
|
}
|
|
406
401
|
|
|
407
|
-
return
|
|
402
|
+
return environment.mcApiUrl;
|
|
408
403
|
}
|
|
409
404
|
|
|
410
405
|
var getSessionToken = function getSessionToken() {
|
|
@@ -705,6 +700,10 @@ var getAppliedForwardToHeaders = function getAppliedForwardToHeaders(forwardToCo
|
|
|
705
700
|
return {};
|
|
706
701
|
}
|
|
707
702
|
|
|
703
|
+
if (!forwardToConfig.uri) {
|
|
704
|
+
throw new Error("Missing required \"uri\" option.");
|
|
705
|
+
}
|
|
706
|
+
|
|
708
707
|
return _objectSpread$3(_objectSpread$3({}, _reduceInstanceProperty__default["default"](_context2 = _Object$entries__default["default"]((_forwardToConfig$head = forwardToConfig.headers) !== null && _forwardToConfig$head !== void 0 ? _forwardToConfig$head : {})).call(_context2, function (customForwardHeaders, _ref) {
|
|
709
708
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
710
709
|
headerName = _ref2[0],
|
|
@@ -2,12 +2,10 @@
|
|
|
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-43fd73f5.cjs.dev.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-e4a6db71.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-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-f5a19490.cjs.prod.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-a544deff.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-
|
|
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-
|
|
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-9c924b81.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-428502d7.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';
|