@commercetools-frontend/application-shell 21.8.1 → 21.11.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-223805b2.cjs.prod.js → application-entry-point-06ad02d5.cjs.prod.js} +252 -61
- package/dist/{application-entry-point-c27f68f3.esm.js → application-entry-point-28843eb4.esm.js} +248 -62
- package/dist/{application-entry-point-c0bfdb99.cjs.dev.js → application-entry-point-6189b3a3.cjs.dev.js} +252 -61
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +18 -13
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +18 -13
- package/dist/commercetools-frontend-application-shell.esm.js +15 -13
- 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/components/requests-in-flight-loader/reducer.d.ts +1 -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 +2 -0
- package/dist/declarations/src/test-utils/test-utils.d.ts +3 -3
- package/dist/declarations/src/types/generated/ctp.d.ts +603 -4
- package/dist/declarations/src/types/generated/mc.d.ts +11 -0
- package/dist/declarations/src/types/generated/settings.d.ts +104 -8
- 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-previous-project-key/get-previous-project-key.d.ts +1 -1
- package/dist/declarations/src/utils/gtm.d.ts +3 -3
- package/dist/declarations/src/utils/http-client.d.ts +29 -0
- package/dist/declarations/src/utils/oidc-storage.d.ts +2 -2
- package/dist/{index-6021fecc.cjs.prod.js → index-4ebc615c.cjs.prod.js} +9 -14
- package/dist/{index-7ef7e644.esm.js → index-5fcda492.esm.js} +9 -14
- package/dist/{index-82b11dc7.cjs.dev.js → index-bcff2029.cjs.dev.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-a02e25e1.esm.js → project-expired-53f0f1ff.esm.js} +16 -14
- package/dist/{project-expired-061c2603.cjs.dev.js → project-expired-96b88908.cjs.dev.js} +16 -14
- package/dist/{project-expired-c3d4e453.cjs.prod.js → project-expired-9fb2e01b.cjs.prod.js} +16 -14
- package/dist/{project-not-found-ff0b8045.cjs.prod.js → project-not-found-17e74630.cjs.prod.js} +16 -14
- package/dist/{project-not-found-761c55ff.cjs.dev.js → project-not-found-30c140be.cjs.dev.js} +16 -14
- package/dist/{project-not-found-355fee41.esm.js → project-not-found-e8ca2011.esm.js} +16 -14
- package/dist/{project-not-initialized-054b47ae.cjs.prod.js → project-not-initialized-8bec4622.cjs.dev.js} +16 -14
- package/dist/{project-not-initialized-ca16754f.cjs.dev.js → project-not-initialized-c5116ce2.cjs.prod.js} +16 -14
- package/dist/{project-not-initialized-75ac9791.esm.js → project-not-initialized-c83c731d.esm.js} +16 -14
- package/dist/{project-suspended-7498203c.esm.js → project-suspended-14419c20.esm.js} +16 -14
- package/dist/{project-suspended-14651874.cjs.dev.js → project-suspended-748201e1.cjs.dev.js} +16 -14
- package/dist/{project-suspended-3d9de033.cjs.prod.js → project-suspended-892ad1b9.cjs.prod.js} +16 -14
- package/dist/{quick-access-0f57e72d.cjs.prod.js → quick-access-a451f632.cjs.prod.js} +13 -11
- package/dist/{quick-access-dd177f35.esm.js → quick-access-b0132ced.esm.js} +13 -11
- package/dist/{quick-access-8e05592d.cjs.dev.js → quick-access-c08139f1.cjs.dev.js} +13 -11
- package/dist/{service-page-project-switcher-0b4618a2.cjs.prod.js → service-page-project-switcher-4b7ab3ee.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-a3b28af7.esm.js → service-page-project-switcher-53ffca17.esm.js} +1 -1
- package/dist/{service-page-project-switcher-2965e268.cjs.dev.js → service-page-project-switcher-c99348cd.cjs.dev.js} +1 -1
- package/package.json +41 -41
- 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,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
6
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
5
|
+
var applicationEntryPoint = require('./application-entry-point-06ad02d5.cjs.prod.js');
|
|
6
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-4ebc615c.cjs.prod.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/url');
|
|
@@ -31,7 +31,7 @@ require('omit-empty-es');
|
|
|
31
31
|
require('@commercetools-frontend/notifications');
|
|
32
32
|
require('@commercetools-frontend/sdk');
|
|
33
33
|
require('@commercetools-frontend/constants');
|
|
34
|
-
require('./constants-
|
|
34
|
+
require('./constants-c2c238ff.cjs.prod.js');
|
|
35
35
|
require('@commercetools-frontend/react-notifications');
|
|
36
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
37
37
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -46,7 +46,6 @@ require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
|
46
46
|
require('@commercetools-frontend/sentry');
|
|
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,10 @@ 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;
|
|
129
134
|
exports.selectProjectKeyFromUrl = applicationEntryPoint.selectProjectKeyFromUrl;
|
|
130
135
|
exports.selectUserId = applicationEntryPoint.selectUserId;
|
|
131
136
|
exports.version = applicationEntryPoint.version;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { p as RouteCatchAll, q as applyDefaultMiddlewares, f as createApolloClient, n as selectProjectKeyFromUrl, t as selectUserId, v as version } from './application-entry-point-
|
|
2
|
-
export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, 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, 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';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
4
|
import 'uuid';
|
|
5
5
|
import '@babel/runtime-corejs3/core-js-stable/url';
|
|
@@ -27,7 +27,7 @@ import 'omit-empty-es';
|
|
|
27
27
|
import '@commercetools-frontend/notifications';
|
|
28
28
|
import '@commercetools-frontend/sdk';
|
|
29
29
|
import '@commercetools-frontend/constants';
|
|
30
|
-
import './constants-
|
|
30
|
+
import './constants-a3c850be.esm.js';
|
|
31
31
|
import '@commercetools-frontend/react-notifications';
|
|
32
32
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
33
33
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -42,7 +42,6 @@ import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
|
42
42
|
import '@commercetools-frontend/sentry';
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import type { Action } from 'redux';
|
|
2
2
|
import type { TRequestsInFlightState } from './types';
|
|
3
|
-
declare const _default: (requestsInFlight?: TRequestsInFlightState
|
|
3
|
+
declare const _default: (requestsInFlight?: TRequestsInFlightState, action?: Action) => string[];
|
|
4
4
|
export default _default;
|
|
@@ -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';
|
|
@@ -13,6 +14,7 @@ export { default as SetupFlopFlipProvider } from './components/setup-flop-flip-p
|
|
|
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';
|
|
@@ -16,14 +16,14 @@ declare type TAllAppliedPermission = {
|
|
|
16
16
|
name: string;
|
|
17
17
|
value: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const denormalizePermissions: (permissions?: TPermissions
|
|
19
|
+
declare const denormalizePermissions: (permissions?: TPermissions) => TAllAppliedPermission[];
|
|
20
20
|
declare type TNormalizedActionRights = {
|
|
21
21
|
[key: string]: TPermissions;
|
|
22
22
|
};
|
|
23
23
|
declare type TAllAppliedActionRight = TAllAppliedPermission & {
|
|
24
24
|
group: string;
|
|
25
25
|
};
|
|
26
|
-
declare const denormalizeActionRights: (actionRights?: TNormalizedActionRights
|
|
26
|
+
declare const denormalizeActionRights: (actionRights?: TNormalizedActionRights) => TAllAppliedActionRight[];
|
|
27
27
|
declare type TNormalizedDataFenceStorePermissions = {
|
|
28
28
|
[key: string]: {
|
|
29
29
|
values: string[];
|
|
@@ -42,7 +42,7 @@ declare type TAllAppliedDataFence = {
|
|
|
42
42
|
value: string;
|
|
43
43
|
group: string;
|
|
44
44
|
};
|
|
45
|
-
declare const denormalizeDataFences: (dataFences?: TNormalizedDataFences
|
|
45
|
+
declare const denormalizeDataFences: (dataFences?: TNormalizedDataFences) => TAllAppliedDataFence[];
|
|
46
46
|
declare const mapResourceAccessToAppliedPermissions: (resourceAccesses: string[]) => TAllAppliedPermission[];
|
|
47
47
|
export declare type TRenderAppOptions<AdditionalEnvironmentProperties = {}> = {
|
|
48
48
|
locale: string;
|