@commercetools-frontend/application-shell 21.9.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.
- package/dist/{application-entry-point-f104319e.esm.js → application-entry-point-01424eb5.esm.js} +276 -95
- package/dist/{application-entry-point-0650332e.cjs.prod.js → application-entry-point-93ad5f12.cjs.prod.js} +280 -94
- package/dist/{application-entry-point-9df8f75e.cjs.dev.js → application-entry-point-a9aa0d45.cjs.dev.js} +280 -94
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +21 -15
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +21 -15
- package/dist/commercetools-frontend-application-shell.esm.js +17 -15
- package/dist/{constants-3cf6ed64.esm.js → constants-a3c850be.esm.js} +4 -1
- package/dist/{constants-bf2e1d68.cjs.dev.js → constants-c2c238ff.cjs.prod.js} +4 -1
- package/dist/{constants-f34da47c.cjs.prod.js → constants-d9a5241e.cjs.dev.js} +4 -1
- package/dist/declarations/src/configure-apollo.d.ts +2 -2
- package/dist/declarations/src/constants.d.ts +3 -0
- package/dist/declarations/src/export-types.d.ts +9 -0
- package/dist/declarations/src/index.d.ts +3 -1
- package/dist/declarations/src/types/generated/ctp.d.ts +15 -1
- package/dist/declarations/src/utils/apollo-client-runtime-cache.d.ts +1 -2
- package/dist/declarations/src/utils/apollo-context.d.ts +3 -14
- package/dist/declarations/src/utils/get-mc-api-url/get-mc-api-url.d.ts +2 -7
- package/dist/declarations/src/utils/http-client.d.ts +29 -0
- package/dist/declarations/src/utils/index.d.ts +1 -1
- package/dist/{index-b0b16985.cjs.dev.js → index-149f53ec.cjs.dev.js} +9 -14
- package/dist/{index-edd1f296.esm.js → index-424de814.esm.js} +9 -14
- package/dist/{index-3dac983e.cjs.prod.js → index-f0bd3232.cjs.prod.js} +9 -14
- package/dist/{oidc-82e151f9.cjs.prod.js → oidc-5b507512.cjs.prod.js} +1 -1
- package/dist/{oidc-8af521ca.esm.js → oidc-5cae2dba.esm.js} +1 -1
- package/dist/{oidc-ff089e6f.cjs.dev.js → oidc-9134face.cjs.dev.js} +1 -1
- package/dist/{project-expired-23ed250a.cjs.prod.js → project-expired-18373b37.cjs.dev.js} +16 -14
- package/dist/{project-expired-e4b56600.esm.js → project-expired-457db600.esm.js} +16 -14
- package/dist/{project-expired-5f0f3bb2.cjs.dev.js → project-expired-de826ba3.cjs.prod.js} +16 -14
- package/dist/{project-not-found-11ee63f2.esm.js → project-not-found-0c6fe7f5.esm.js} +16 -14
- package/dist/{project-not-found-24cd5af4.cjs.dev.js → project-not-found-5c0fe8a1.cjs.dev.js} +16 -14
- package/dist/{project-not-found-cf44540b.cjs.prod.js → project-not-found-fa0e524c.cjs.prod.js} +16 -14
- package/dist/{project-not-initialized-e5b36044.cjs.dev.js → project-not-initialized-a1bf95fd.cjs.dev.js} +16 -14
- package/dist/{project-not-initialized-f160d31e.cjs.prod.js → project-not-initialized-da0fad06.cjs.prod.js} +16 -14
- package/dist/{project-not-initialized-23dd0a8d.esm.js → project-not-initialized-dc38f9f9.esm.js} +16 -14
- package/dist/{project-suspended-5b470857.esm.js → project-suspended-32b5b5b2.esm.js} +16 -14
- package/dist/{project-suspended-ad97c11c.cjs.dev.js → project-suspended-92518e78.cjs.dev.js} +16 -14
- package/dist/{project-suspended-f6f25355.cjs.prod.js → project-suspended-cbad48d9.cjs.prod.js} +16 -14
- package/dist/{quick-access-5223e91a.esm.js → quick-access-793ccbe9.esm.js} +13 -11
- package/dist/{quick-access-4077e80d.cjs.dev.js → quick-access-9dc493d3.cjs.dev.js} +13 -11
- package/dist/{quick-access-cdb8ce9e.cjs.prod.js → quick-access-feca5530.cjs.prod.js} +13 -11
- package/dist/{service-page-project-switcher-057e819c.cjs.prod.js → service-page-project-switcher-15a90544.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-f29ee61d.esm.js → service-page-project-switcher-5f17d0e5.esm.js} +1 -1
- package/dist/{service-page-project-switcher-ab9d0c0e.cjs.dev.js → service-page-project-switcher-b9c66554.cjs.dev.js} +1 -1
- package/package.json +16 -16
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +13 -3
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +13 -3
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +13 -3
|
@@ -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-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');
|
|
@@ -31,7 +30,7 @@ require('omit-empty-es');
|
|
|
31
30
|
require('@commercetools-frontend/notifications');
|
|
32
31
|
require('@commercetools-frontend/sdk');
|
|
33
32
|
require('@commercetools-frontend/constants');
|
|
34
|
-
require('./constants-
|
|
33
|
+
require('./constants-d9a5241e.cjs.dev.js');
|
|
35
34
|
require('@commercetools-frontend/react-notifications');
|
|
36
35
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
37
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -44,9 +43,9 @@ 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
|
-
require('@commercetools/http-user-agent');
|
|
50
49
|
require('apollo-link-logger');
|
|
51
50
|
require('@babel/runtime-corejs3/core-js-stable/array/from');
|
|
52
51
|
require('@babel/runtime-corejs3/core-js-stable/symbol');
|
|
@@ -57,7 +56,18 @@ require('@commercetools-frontend/browser-history');
|
|
|
57
56
|
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
58
57
|
require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
59
58
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
59
|
+
require('@commercetools/http-user-agent');
|
|
60
60
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
61
|
+
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
62
|
+
require('@babel/runtime-corejs3/helpers/asyncToGenerator');
|
|
63
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
64
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
65
|
+
require('@babel/runtime-corejs3/helpers/assertThisInitialized');
|
|
66
|
+
require('@babel/runtime-corejs3/helpers/inherits');
|
|
67
|
+
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
68
|
+
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
69
|
+
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
70
|
+
require('@babel/runtime-corejs3/regenerator');
|
|
61
71
|
require('@apollo/client/link/retry');
|
|
62
72
|
require('prop-types');
|
|
63
73
|
require('react');
|
|
@@ -73,7 +83,7 @@ require('perfume.js');
|
|
|
73
83
|
require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
|
|
74
84
|
require('lodash/camelCase');
|
|
75
85
|
require('@apollo/client/react');
|
|
76
|
-
require('./oidc-
|
|
86
|
+
require('./oidc-9134face.cjs.dev.js');
|
|
77
87
|
require('qss');
|
|
78
88
|
require('jwt-decode');
|
|
79
89
|
require('@commercetools-frontend/assets/images/locked-diamond.svg');
|
|
@@ -85,12 +95,6 @@ require('@commercetools-uikit/text');
|
|
|
85
95
|
require('@commercetools-uikit/flat-button');
|
|
86
96
|
require('@commercetools-uikit/icons');
|
|
87
97
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
88
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
89
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
90
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
91
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
92
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
93
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
94
98
|
require('@commercetools-frontend/assets/images/icecream.svg');
|
|
95
99
|
require('@commercetools-frontend/l10n');
|
|
96
100
|
require('@commercetools-frontend/assets/images/logo.svg');
|
|
@@ -103,8 +107,6 @@ require('memoize-one');
|
|
|
103
107
|
require('@commercetools-uikit/select-input');
|
|
104
108
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
105
109
|
require('lodash/isNil');
|
|
106
|
-
require('@babel/runtime-corejs3/helpers/asyncToGenerator');
|
|
107
|
-
require('@babel/runtime-corejs3/regenerator');
|
|
108
110
|
require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
109
111
|
require('@babel/runtime-corejs3/core-js-stable/instance/flags');
|
|
110
112
|
require('@flopflip/http-adapter');
|
|
@@ -125,7 +127,11 @@ var ldAdapter__default = /*#__PURE__*/_interopDefault(ldAdapter);
|
|
|
125
127
|
|
|
126
128
|
exports.RouteCatchAll = applicationEntryPoint.RouteCatchAll;
|
|
127
129
|
exports.applyDefaultMiddlewares = applicationEntryPoint.applyDefaultMiddlewares;
|
|
130
|
+
exports.buildApiUrl = applicationEntryPoint.buildApiUrl;
|
|
128
131
|
exports.createApolloClient = applicationEntryPoint.createApolloClient;
|
|
132
|
+
exports.createHttpClientOptions = applicationEntryPoint.createHttpClientOptions;
|
|
133
|
+
exports.executeHttpClientRequest = applicationEntryPoint.executeHttpClientRequest;
|
|
134
|
+
exports.getMcApiUrl = applicationEntryPoint.getMcApiUrl;
|
|
129
135
|
exports.selectProjectKeyFromUrl = applicationEntryPoint.selectProjectKeyFromUrl;
|
|
130
136
|
exports.selectUserId = applicationEntryPoint.selectUserId;
|
|
131
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-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');
|
|
@@ -31,7 +30,7 @@ require('omit-empty-es');
|
|
|
31
30
|
require('@commercetools-frontend/notifications');
|
|
32
31
|
require('@commercetools-frontend/sdk');
|
|
33
32
|
require('@commercetools-frontend/constants');
|
|
34
|
-
require('./constants-
|
|
33
|
+
require('./constants-c2c238ff.cjs.prod.js');
|
|
35
34
|
require('@commercetools-frontend/react-notifications');
|
|
36
35
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
37
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -44,9 +43,9 @@ 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
|
-
require('@commercetools/http-user-agent');
|
|
50
49
|
require('apollo-link-logger');
|
|
51
50
|
require('@babel/runtime-corejs3/core-js-stable/array/from');
|
|
52
51
|
require('@babel/runtime-corejs3/core-js-stable/symbol');
|
|
@@ -57,7 +56,18 @@ require('@commercetools-frontend/browser-history');
|
|
|
57
56
|
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
58
57
|
require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
59
58
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
59
|
+
require('@commercetools/http-user-agent');
|
|
60
60
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
61
|
+
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
62
|
+
require('@babel/runtime-corejs3/helpers/asyncToGenerator');
|
|
63
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
64
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
65
|
+
require('@babel/runtime-corejs3/helpers/assertThisInitialized');
|
|
66
|
+
require('@babel/runtime-corejs3/helpers/inherits');
|
|
67
|
+
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
68
|
+
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
69
|
+
require('@babel/runtime-corejs3/helpers/wrapNativeSuper');
|
|
70
|
+
require('@babel/runtime-corejs3/regenerator');
|
|
61
71
|
require('@apollo/client/link/retry');
|
|
62
72
|
require('prop-types');
|
|
63
73
|
require('react');
|
|
@@ -73,7 +83,7 @@ require('perfume.js');
|
|
|
73
83
|
require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
|
|
74
84
|
require('lodash/camelCase');
|
|
75
85
|
require('@apollo/client/react');
|
|
76
|
-
require('./oidc-
|
|
86
|
+
require('./oidc-5b507512.cjs.prod.js');
|
|
77
87
|
require('qss');
|
|
78
88
|
require('jwt-decode');
|
|
79
89
|
require('@commercetools-frontend/assets/images/locked-diamond.svg');
|
|
@@ -85,12 +95,6 @@ require('@commercetools-uikit/text');
|
|
|
85
95
|
require('@commercetools-uikit/flat-button');
|
|
86
96
|
require('@commercetools-uikit/icons');
|
|
87
97
|
require('@commercetools-frontend/assets/images/ct-logo.svg');
|
|
88
|
-
require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
89
|
-
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
90
|
-
require('@babel/runtime-corejs3/helpers/createClass');
|
|
91
|
-
require('@babel/runtime-corejs3/helpers/inherits');
|
|
92
|
-
require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
93
|
-
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
94
98
|
require('@commercetools-frontend/assets/images/icecream.svg');
|
|
95
99
|
require('@commercetools-frontend/l10n');
|
|
96
100
|
require('@commercetools-frontend/assets/images/logo.svg');
|
|
@@ -103,8 +107,6 @@ require('memoize-one');
|
|
|
103
107
|
require('@commercetools-uikit/select-input');
|
|
104
108
|
require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
|
|
105
109
|
require('lodash/isNil');
|
|
106
|
-
require('@babel/runtime-corejs3/helpers/asyncToGenerator');
|
|
107
|
-
require('@babel/runtime-corejs3/regenerator');
|
|
108
110
|
require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
109
111
|
require('@babel/runtime-corejs3/core-js-stable/instance/flags');
|
|
110
112
|
require('@flopflip/http-adapter');
|
|
@@ -125,7 +127,11 @@ var ldAdapter__default = /*#__PURE__*/_interopDefault(ldAdapter);
|
|
|
125
127
|
|
|
126
128
|
exports.RouteCatchAll = applicationEntryPoint.RouteCatchAll;
|
|
127
129
|
exports.applyDefaultMiddlewares = applicationEntryPoint.applyDefaultMiddlewares;
|
|
130
|
+
exports.buildApiUrl = applicationEntryPoint.buildApiUrl;
|
|
128
131
|
exports.createApolloClient = applicationEntryPoint.createApolloClient;
|
|
132
|
+
exports.createHttpClientOptions = applicationEntryPoint.createHttpClientOptions;
|
|
133
|
+
exports.executeHttpClientRequest = applicationEntryPoint.executeHttpClientRequest;
|
|
134
|
+
exports.getMcApiUrl = applicationEntryPoint.getMcApiUrl;
|
|
129
135
|
exports.selectProjectKeyFromUrl = applicationEntryPoint.selectProjectKeyFromUrl;
|
|
130
136
|
exports.selectUserId = applicationEntryPoint.selectUserId;
|
|
131
137
|
exports.version = applicationEntryPoint.version;
|
|
@@ -1,9 +1,7 @@
|
|
|
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, 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-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';
|
|
@@ -27,7 +26,7 @@ import 'omit-empty-es';
|
|
|
27
26
|
import '@commercetools-frontend/notifications';
|
|
28
27
|
import '@commercetools-frontend/sdk';
|
|
29
28
|
import '@commercetools-frontend/constants';
|
|
30
|
-
import './constants-
|
|
29
|
+
import './constants-a3c850be.esm.js';
|
|
31
30
|
import '@commercetools-frontend/react-notifications';
|
|
32
31
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
33
32
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -40,9 +39,9 @@ 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
|
-
import '@commercetools/http-user-agent';
|
|
46
45
|
import 'apollo-link-logger';
|
|
47
46
|
import '@babel/runtime-corejs3/core-js-stable/array/from';
|
|
48
47
|
import '@babel/runtime-corejs3/core-js-stable/symbol';
|
|
@@ -53,7 +52,18 @@ import '@commercetools-frontend/browser-history';
|
|
|
53
52
|
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
54
53
|
import '@babel/runtime-corejs3/core-js-stable/object/values';
|
|
55
54
|
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
55
|
+
import '@commercetools/http-user-agent';
|
|
56
56
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
57
|
+
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
58
|
+
import '@babel/runtime-corejs3/helpers/asyncToGenerator';
|
|
59
|
+
import '@babel/runtime-corejs3/helpers/createClass';
|
|
60
|
+
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
61
|
+
import '@babel/runtime-corejs3/helpers/assertThisInitialized';
|
|
62
|
+
import '@babel/runtime-corejs3/helpers/inherits';
|
|
63
|
+
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
64
|
+
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
65
|
+
import '@babel/runtime-corejs3/helpers/wrapNativeSuper';
|
|
66
|
+
import '@babel/runtime-corejs3/regenerator';
|
|
57
67
|
import '@apollo/client/link/retry';
|
|
58
68
|
import 'prop-types';
|
|
59
69
|
import 'react';
|
|
@@ -69,7 +79,7 @@ import 'perfume.js';
|
|
|
69
79
|
import '@babel/runtime-corejs3/core-js-stable/instance/reverse';
|
|
70
80
|
import 'lodash/camelCase';
|
|
71
81
|
import '@apollo/client/react';
|
|
72
|
-
import './oidc-
|
|
82
|
+
import './oidc-5cae2dba.esm.js';
|
|
73
83
|
import 'qss';
|
|
74
84
|
import 'jwt-decode';
|
|
75
85
|
import '@commercetools-frontend/assets/images/locked-diamond.svg';
|
|
@@ -81,12 +91,6 @@ import '@commercetools-uikit/text';
|
|
|
81
91
|
import '@commercetools-uikit/flat-button';
|
|
82
92
|
import '@commercetools-uikit/icons';
|
|
83
93
|
import '@commercetools-frontend/assets/images/ct-logo.svg';
|
|
84
|
-
import '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
85
|
-
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
86
|
-
import '@babel/runtime-corejs3/helpers/createClass';
|
|
87
|
-
import '@babel/runtime-corejs3/helpers/inherits';
|
|
88
|
-
import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
89
|
-
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
90
94
|
import '@commercetools-frontend/assets/images/icecream.svg';
|
|
91
95
|
import '@commercetools-frontend/l10n';
|
|
92
96
|
import '@commercetools-frontend/assets/images/logo.svg';
|
|
@@ -99,8 +103,6 @@ import 'memoize-one';
|
|
|
99
103
|
import '@commercetools-uikit/select-input';
|
|
100
104
|
import '@babel/runtime-corejs3/helpers/taggedTemplateLiteral';
|
|
101
105
|
import 'lodash/isNil';
|
|
102
|
-
import '@babel/runtime-corejs3/helpers/asyncToGenerator';
|
|
103
|
-
import '@babel/runtime-corejs3/regenerator';
|
|
104
106
|
import '@babel/runtime-corejs3/core-js-stable/object/from-entries';
|
|
105
107
|
import '@babel/runtime-corejs3/core-js-stable/instance/flags';
|
|
106
108
|
import '@flopflip/http-adapter';
|
|
@@ -4,8 +4,10 @@ var DIMENSIONS = {
|
|
|
4
4
|
navMenuExpanded: '200px'
|
|
5
5
|
};
|
|
6
6
|
var SUPPORTED_HEADERS = {
|
|
7
|
+
ACCEPT: 'Accept',
|
|
7
8
|
ACCEPT_VERSION: 'Accept-version',
|
|
8
9
|
AUTHORIZATION: 'Authorization',
|
|
10
|
+
CONTENT_TYPE: 'Content-Type',
|
|
9
11
|
X_APPLICATION_ID: 'X-Application-Id',
|
|
10
12
|
X_CORRELATION_ID: 'X-Correlation-Id',
|
|
11
13
|
X_FEATURE_FLAG: 'X-Feature-Flag',
|
|
@@ -15,7 +17,8 @@ var SUPPORTED_HEADERS = {
|
|
|
15
17
|
X_GRAPHQL_OPERATION_NAME: 'X-Graphql-Operation-Name',
|
|
16
18
|
X_PROJECT_KEY: 'X-Project-Key',
|
|
17
19
|
X_TEAM_ID: 'X-Team-Id',
|
|
18
|
-
X_TOKEN_RETRY: 'X-Force-Token'
|
|
20
|
+
X_TOKEN_RETRY: 'X-Force-Token',
|
|
21
|
+
X_USER_AGENT: 'X-User-Agent'
|
|
19
22
|
};
|
|
20
23
|
var CONTAINERS = {
|
|
21
24
|
LOCALE_SWITCHER: 'locale-switcher-container'
|
|
@@ -6,8 +6,10 @@ var DIMENSIONS = {
|
|
|
6
6
|
navMenuExpanded: '200px'
|
|
7
7
|
};
|
|
8
8
|
var SUPPORTED_HEADERS = {
|
|
9
|
+
ACCEPT: 'Accept',
|
|
9
10
|
ACCEPT_VERSION: 'Accept-version',
|
|
10
11
|
AUTHORIZATION: 'Authorization',
|
|
12
|
+
CONTENT_TYPE: 'Content-Type',
|
|
11
13
|
X_APPLICATION_ID: 'X-Application-Id',
|
|
12
14
|
X_CORRELATION_ID: 'X-Correlation-Id',
|
|
13
15
|
X_FEATURE_FLAG: 'X-Feature-Flag',
|
|
@@ -17,7 +19,8 @@ var SUPPORTED_HEADERS = {
|
|
|
17
19
|
X_GRAPHQL_OPERATION_NAME: 'X-Graphql-Operation-Name',
|
|
18
20
|
X_PROJECT_KEY: 'X-Project-Key',
|
|
19
21
|
X_TEAM_ID: 'X-Team-Id',
|
|
20
|
-
X_TOKEN_RETRY: 'X-Force-Token'
|
|
22
|
+
X_TOKEN_RETRY: 'X-Force-Token',
|
|
23
|
+
X_USER_AGENT: 'X-User-Agent'
|
|
21
24
|
};
|
|
22
25
|
var CONTAINERS = {
|
|
23
26
|
LOCALE_SWITCHER: 'locale-switcher-container'
|
|
@@ -6,8 +6,10 @@ var DIMENSIONS = {
|
|
|
6
6
|
navMenuExpanded: '200px'
|
|
7
7
|
};
|
|
8
8
|
var SUPPORTED_HEADERS = {
|
|
9
|
+
ACCEPT: 'Accept',
|
|
9
10
|
ACCEPT_VERSION: 'Accept-version',
|
|
10
11
|
AUTHORIZATION: 'Authorization',
|
|
12
|
+
CONTENT_TYPE: 'Content-Type',
|
|
11
13
|
X_APPLICATION_ID: 'X-Application-Id',
|
|
12
14
|
X_CORRELATION_ID: 'X-Correlation-Id',
|
|
13
15
|
X_FEATURE_FLAG: 'X-Feature-Flag',
|
|
@@ -17,7 +19,8 @@ var SUPPORTED_HEADERS = {
|
|
|
17
19
|
X_GRAPHQL_OPERATION_NAME: 'X-Graphql-Operation-Name',
|
|
18
20
|
X_PROJECT_KEY: 'X-Project-Key',
|
|
19
21
|
X_TEAM_ID: 'X-Team-Id',
|
|
20
|
-
X_TOKEN_RETRY: 'X-Force-Token'
|
|
22
|
+
X_TOKEN_RETRY: 'X-Force-Token',
|
|
23
|
+
X_USER_AGENT: 'X-User-Agent'
|
|
21
24
|
};
|
|
22
25
|
var CONTAINERS = {
|
|
23
26
|
LOCALE_SWITCHER: 'locale-switcher-container'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { ApolloClient } from '@apollo/client';
|
|
1
|
+
import { type NormalizedCacheObject, type InMemoryCacheConfig, ApolloClient, ApolloLink } from '@apollo/client';
|
|
3
2
|
declare type TApolloClientOptions = {
|
|
4
3
|
cache?: InMemoryCacheConfig;
|
|
4
|
+
restLink?: ApolloLink;
|
|
5
5
|
};
|
|
6
6
|
declare const createApolloClient: (options?: TApolloClientOptions) => ApolloClient<NormalizedCacheObject>;
|
|
7
7
|
export default createApolloClient;
|
|
@@ -4,8 +4,10 @@ export declare const DIMENSIONS: {
|
|
|
4
4
|
readonly navMenuExpanded: "200px";
|
|
5
5
|
};
|
|
6
6
|
export declare const SUPPORTED_HEADERS: {
|
|
7
|
+
readonly ACCEPT: "Accept";
|
|
7
8
|
readonly ACCEPT_VERSION: "Accept-version";
|
|
8
9
|
readonly AUTHORIZATION: "Authorization";
|
|
10
|
+
readonly CONTENT_TYPE: "Content-Type";
|
|
9
11
|
readonly X_APPLICATION_ID: "X-Application-Id";
|
|
10
12
|
readonly X_CORRELATION_ID: "X-Correlation-Id";
|
|
11
13
|
readonly X_FEATURE_FLAG: "X-Feature-Flag";
|
|
@@ -16,6 +18,7 @@ export declare const SUPPORTED_HEADERS: {
|
|
|
16
18
|
readonly X_PROJECT_KEY: "X-Project-Key";
|
|
17
19
|
readonly X_TEAM_ID: "X-Team-Id";
|
|
18
20
|
readonly X_TOKEN_RETRY: "X-Force-Token";
|
|
21
|
+
readonly X_USER_AGENT: "X-User-Agent";
|
|
19
22
|
};
|
|
20
23
|
export declare const CONTAINERS: {
|
|
21
24
|
readonly LOCALE_SWITCHER: "locale-switcher-container";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TApolloContext as ApolloContext } from './utils/apollo-context';
|
|
2
|
+
import type { TFetcher, TFetcherResponse, THeaders, TConfig, TOptions, TForwardToAudiencePolicy as ForwardToAudiencePolicy } from './utils/http-client';
|
|
3
|
+
export declare type TApolloContext = ApolloContext;
|
|
4
|
+
export declare type TForwardToAudiencePolicy = ForwardToAudiencePolicy;
|
|
5
|
+
export declare type THttpClientFetcher<Data> = TFetcher<Data>;
|
|
6
|
+
export declare type THttpClientFetcherResponse<Data> = TFetcherResponse<Data>;
|
|
7
|
+
export declare type THttpClientHeaders = THeaders;
|
|
8
|
+
export declare type THttpClientConfig = TConfig;
|
|
9
|
+
export declare type THttpClientOptions = TOptions;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './export-types';
|
|
1
2
|
export { default as version } from './version';
|
|
2
3
|
export { default as ApplicationShell } from './components/application-shell';
|
|
3
4
|
export { default as ApplicationShellProvider } from './components/application-shell-provider';
|
|
@@ -6,13 +7,14 @@ export { applyDefaultMiddlewares } from './configure-store';
|
|
|
6
7
|
export { default as InjectReducers } from './components/inject-reducers';
|
|
7
8
|
export { default as RouteCatchAll } from './components/route-catch-all';
|
|
8
9
|
export { default as setupGlobalErrorListener } from './utils/setup-global-error-listener';
|
|
9
|
-
export { selectUserId, selectProjectKeyFromUrl, createApolloContextForProxyForwardTo, } from './utils';
|
|
10
|
+
export { getMcApiUrl, selectUserId, selectProjectKeyFromUrl, createApolloContextForProxyForwardTo, } from './utils';
|
|
10
11
|
export { GtmContext } from './components/gtm-booter';
|
|
11
12
|
export { default as GtmUserLogoutTracker } from './components/gtm-user-logout-tracker';
|
|
12
13
|
export { default as SetupFlopFlipProvider } from './components/setup-flop-flip-provider';
|
|
13
14
|
export { default as ConfigureIntlProvider } from './components/configure-intl-provider';
|
|
14
15
|
export { default as SuspendedRoute } from './components/suspended-route';
|
|
15
16
|
export { useMcQuery, useMcLazyQuery, useMcMutation, } from './hooks/apollo-hooks';
|
|
17
|
+
export { buildApiUrl, createHttpClientOptions, executeHttpClientRequest, } from './utils/http-client';
|
|
16
18
|
export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses, } from '@commercetools-frontend/application-config/ssr';
|
|
17
19
|
export { ToggleFeature, injectFeatureToggle, injectFeatureToggles, branchOnFeatureToggle, ConfigureFlopFlip, ReconfigureFlopFlip, useFeatureToggle, useFeatureToggles, useFlagVariation, useFlagVariations, useAdapterStatus, useAdapterReconfiguration, } from '@flopflip/react-broadcast';
|
|
18
20
|
export { default as ldAdapter } from '@flopflip/launchdarkly-adapter';
|
|
@@ -119,6 +119,7 @@ export declare type TAddCartLineItem = {
|
|
|
119
119
|
externalPrice?: InputMaybe<TBaseMoneyInput>;
|
|
120
120
|
externalTaxRate?: InputMaybe<TExternalTaxRateDraft>;
|
|
121
121
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
122
|
+
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
122
123
|
productId?: InputMaybe<Scalars['String']>;
|
|
123
124
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
124
125
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraft>;
|
|
@@ -321,6 +322,7 @@ export declare type TAddStagedOrderLineItem = {
|
|
|
321
322
|
externalPrice?: InputMaybe<TBaseMoneyInput>;
|
|
322
323
|
externalTaxRate?: InputMaybe<TExternalTaxRateDraft>;
|
|
323
324
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
325
|
+
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
324
326
|
productId?: InputMaybe<Scalars['String']>;
|
|
325
327
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
326
328
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraftType>;
|
|
@@ -513,6 +515,9 @@ export declare type TApplyCartDeltaToLineItemShippingDetailsTargets = {
|
|
|
513
515
|
lineItemId: Scalars['String'];
|
|
514
516
|
targetsDelta: Array<TShippingTargetDraft>;
|
|
515
517
|
};
|
|
518
|
+
export declare type TApplyStagedChanges = {
|
|
519
|
+
dummy?: InputMaybe<Scalars['String']>;
|
|
520
|
+
};
|
|
516
521
|
export declare type TAsset = {
|
|
517
522
|
__typename?: 'Asset';
|
|
518
523
|
custom?: Maybe<TCustomFieldsType>;
|
|
@@ -3219,7 +3224,7 @@ export declare type TLineItem = {
|
|
|
3219
3224
|
distributionChannel?: Maybe<TChannel>;
|
|
3220
3225
|
distributionChannelRef?: Maybe<TReference>;
|
|
3221
3226
|
id: Scalars['String'];
|
|
3222
|
-
inventoryMode?: Maybe<
|
|
3227
|
+
inventoryMode?: Maybe<TInventoryMode>;
|
|
3223
3228
|
lastModifiedAt?: Maybe<Scalars['DateTime']>;
|
|
3224
3229
|
lineItemMode: TLineItemMode;
|
|
3225
3230
|
name?: Maybe<Scalars['String']>;
|
|
@@ -3257,6 +3262,7 @@ export declare type TLineItemDraft = {
|
|
|
3257
3262
|
externalPrice?: InputMaybe<TBaseMoneyInput>;
|
|
3258
3263
|
externalTaxRate?: InputMaybe<TExternalTaxRateDraft>;
|
|
3259
3264
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
3265
|
+
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
3260
3266
|
productId?: InputMaybe<Scalars['String']>;
|
|
3261
3267
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
3262
3268
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraft>;
|
|
@@ -3272,6 +3278,7 @@ export declare type TLineItemDraftOutput = {
|
|
|
3272
3278
|
externalPrice?: Maybe<TBaseMoney>;
|
|
3273
3279
|
externalTaxRate?: Maybe<TExternalTaxRateDraftOutput>;
|
|
3274
3280
|
externalTotalPrice?: Maybe<TExternalLineItemTotalPrice>;
|
|
3281
|
+
inventoryMode?: Maybe<TInventoryMode>;
|
|
3275
3282
|
productId?: Maybe<Scalars['String']>;
|
|
3276
3283
|
quantity?: Maybe<Scalars['Long']>;
|
|
3277
3284
|
shippingDetails?: Maybe<TItemShippingDetailsDraftOutput>;
|
|
@@ -9801,6 +9808,7 @@ export declare type TStandalonePrice = TVersioned & {
|
|
|
9801
9808
|
custom?: Maybe<TCustomFieldsType>;
|
|
9802
9809
|
customerGroupRef?: Maybe<TReference>;
|
|
9803
9810
|
discounted?: Maybe<TDiscountedProductPriceValue>;
|
|
9811
|
+
expiresAt?: Maybe<Scalars['DateTime']>;
|
|
9804
9812
|
id: Scalars['String'];
|
|
9805
9813
|
key?: Maybe<Scalars['String']>;
|
|
9806
9814
|
lastModifiedAt: Scalars['DateTime'];
|
|
@@ -9846,7 +9854,13 @@ export declare type TStandalonePriceQueryResult = {
|
|
|
9846
9854
|
results: Array<TStandalonePrice>;
|
|
9847
9855
|
total: Scalars['Long'];
|
|
9848
9856
|
};
|
|
9857
|
+
export declare type TStandalonePriceStagedChangesApplied = TMessagePayload & {
|
|
9858
|
+
__typename?: 'StandalonePriceStagedChangesApplied';
|
|
9859
|
+
stagedChanges: TStagedPriceValue;
|
|
9860
|
+
type: Scalars['String'];
|
|
9861
|
+
};
|
|
9849
9862
|
export declare type TStandalonePriceUpdateAction = {
|
|
9863
|
+
applyStagedChanges?: InputMaybe<TApplyStagedChanges>;
|
|
9850
9864
|
changeValue?: InputMaybe<TChangeStandalonePriceValue>;
|
|
9851
9865
|
setCustomField?: InputMaybe<TSetStandalonePriceCustomFields>;
|
|
9852
9866
|
setCustomType?: InputMaybe<TCustomFieldsDraft>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { ApolloClient } from '@apollo/client';
|
|
1
|
+
import { type NormalizedCacheObject, ApolloClient } from '@apollo/client';
|
|
3
2
|
declare const setCachedApolloClient: (apolloClient: ApolloClient<NormalizedCacheObject>) => void;
|
|
4
3
|
declare const getCachedApolloClient: () => ApolloClient<NormalizedCacheObject> | undefined;
|
|
5
4
|
export { setCachedApolloClient, getCachedApolloClient };
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import type { TGraphQLTargets } from '@commercetools-frontend/constants';
|
|
2
|
-
|
|
3
|
-
export declare type TForwardToAudiencePolicy = 'forward-url-full-path' | 'forward-url-origin';
|
|
2
|
+
import type { THeaders, TForwardToConfig } from './http-client';
|
|
4
3
|
export declare type TApolloContext = {
|
|
5
4
|
uri?: string;
|
|
6
5
|
headers?: THeaders;
|
|
7
|
-
forwardToConfig?:
|
|
8
|
-
version: string;
|
|
9
|
-
uri: string;
|
|
10
|
-
headers?: THeaders;
|
|
11
|
-
audiencePolicy: TForwardToAudiencePolicy;
|
|
12
|
-
};
|
|
6
|
+
forwardToConfig?: TForwardToConfig;
|
|
13
7
|
skipGraphQlTargetCheck?: boolean;
|
|
14
8
|
skipTokenRetry?: boolean;
|
|
15
9
|
target?: TGraphQLTargets;
|
|
@@ -17,10 +11,5 @@ export declare type TApolloContext = {
|
|
|
17
11
|
teamId?: string;
|
|
18
12
|
featureFlag?: string;
|
|
19
13
|
};
|
|
20
|
-
declare
|
|
21
|
-
uri: string;
|
|
22
|
-
headers?: THeaders;
|
|
23
|
-
audiencePolicy?: TForwardToAudiencePolicy;
|
|
24
|
-
};
|
|
25
|
-
declare const createApolloContextForProxyForwardTo: (proxyForwardTocontext: TApolloContextProxyForwardTo) => TApolloContext;
|
|
14
|
+
declare const createApolloContextForProxyForwardTo: (proxyForwardTocontext: TForwardToConfig) => TApolloContext;
|
|
26
15
|
export { createApolloContextForProxyForwardTo };
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare type THeaders = Record<string, string>;
|
|
2
|
+
export declare type TForwardToAudiencePolicy = 'forward-url-full-path' | 'forward-url-origin';
|
|
3
|
+
export declare type TForwardToConfigVersion = 'v1' | 'v2';
|
|
4
|
+
export declare type TForwardToConfig = {
|
|
5
|
+
uri: string;
|
|
6
|
+
headers?: THeaders;
|
|
7
|
+
audiencePolicy?: TForwardToAudiencePolicy;
|
|
8
|
+
version?: TForwardToConfigVersion;
|
|
9
|
+
};
|
|
10
|
+
export declare type TConfig = {
|
|
11
|
+
userAgent?: string;
|
|
12
|
+
headers?: THeaders;
|
|
13
|
+
forwardToConfig?: TForwardToConfig;
|
|
14
|
+
projectKey?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type TOptions = {
|
|
17
|
+
credentials: 'include';
|
|
18
|
+
headers: THeaders;
|
|
19
|
+
};
|
|
20
|
+
export declare type TFetcherResponse<Data> = {
|
|
21
|
+
data: Data;
|
|
22
|
+
statusCode: number;
|
|
23
|
+
getHeader: (headerName: string) => string | null;
|
|
24
|
+
};
|
|
25
|
+
export declare type TFetcher<Data> = (options: TOptions) => Promise<TFetcherResponse<Data>>;
|
|
26
|
+
declare function buildApiUrl(endpoint: string): string;
|
|
27
|
+
declare function createHttpClientOptions(config?: TConfig): TOptions;
|
|
28
|
+
declare function executeHttpClientRequest<Data>(fetcher: TFetcher<Data>, config?: TConfig): Promise<Data>;
|
|
29
|
+
export { buildApiUrl, createHttpClientOptions, executeHttpClientRequest };
|
|
@@ -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';
|