@commercetools-frontend/application-shell 20.9.4 → 20.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/{application-entry-point-211fb17a.cjs.dev.js → application-entry-point-4b134bcb.cjs.dev.js} +4 -7
  2. package/dist/{application-entry-point-7b4ee9ee.cjs.prod.js → application-entry-point-83ea80e3.cjs.prod.js} +4 -7
  3. package/dist/{application-entry-point-5f0f015e.esm.js → application-entry-point-b7c5325e.esm.js} +4 -7
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +2 -2
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +2 -2
  6. package/dist/commercetools-frontend-application-shell.esm.js +2 -2
  7. package/dist/declarations/src/apollo-links/error-link.d.ts +2 -2
  8. package/dist/declarations/src/apollo-links/header-link.d.ts +3 -3
  9. package/dist/declarations/src/apollo-links/index.d.ts +4 -4
  10. package/dist/declarations/src/apollo-links/token-retry-link.d.ts +3 -3
  11. package/dist/declarations/src/apollo-links/utils.d.ts +10 -10
  12. package/dist/declarations/src/components/app-bar/app-bar.d.ts +12 -12
  13. package/dist/declarations/src/components/app-bar/index.d.ts +1 -1
  14. package/dist/declarations/src/components/application-entry-point/application-entry-point.d.ts +9 -9
  15. package/dist/declarations/src/components/application-entry-point/index.d.ts +1 -1
  16. package/dist/declarations/src/components/application-loader/application-loader.d.ts +8 -8
  17. package/dist/declarations/src/components/application-loader/index.d.ts +1 -1
  18. package/dist/declarations/src/components/application-shell/application-shell.d.ts +39 -39
  19. package/dist/declarations/src/components/application-shell/index.d.ts +1 -1
  20. package/dist/declarations/src/components/application-shell/redirect-to-login.d.ts +5 -5
  21. package/dist/declarations/src/components/application-shell/redirect-to-logout.d.ts +6 -6
  22. package/dist/declarations/src/components/application-shell-provider/application-shell-provider.d.ts +22 -22
  23. package/dist/declarations/src/components/application-shell-provider/global-styles.d.ts +2 -2
  24. package/dist/declarations/src/components/application-shell-provider/index.d.ts +1 -1
  25. package/dist/declarations/src/components/application-shell-provider/use-coerced-environment-values.d.ts +28 -28
  26. package/dist/declarations/src/components/application-shell-provider/utils.d.ts +1 -1
  27. package/dist/declarations/src/components/authenticated/am-i-logged-in.d.ts +13 -13
  28. package/dist/declarations/src/components/authenticated/authenticated.d.ts +16 -16
  29. package/dist/declarations/src/components/authenticated/has-cached-authentication-state.d.ts +2 -2
  30. package/dist/declarations/src/components/authenticated/helpers.d.ts +8 -8
  31. package/dist/declarations/src/components/authenticated/index.d.ts +1 -1
  32. package/dist/declarations/src/components/authenticated/oidc-callback-error-page.d.ts +12 -12
  33. package/dist/declarations/src/components/authenticated/oidc-callback.d.ts +11 -11
  34. package/dist/declarations/src/components/authenticated/types.d.ts +6 -6
  35. package/dist/declarations/src/components/back-to-project/back-to-project.d.ts +8 -8
  36. package/dist/declarations/src/components/back-to-project/index.d.ts +1 -1
  37. package/dist/declarations/src/components/back-to-project/messages.d.ts +7 -7
  38. package/dist/declarations/src/components/configure-intl-provider/configure-intl-provider.d.ts +12 -12
  39. package/dist/declarations/src/components/configure-intl-provider/index.d.ts +1 -1
  40. package/dist/declarations/src/components/error-apologizer/error-apologizer.d.ts +5 -5
  41. package/dist/declarations/src/components/error-apologizer/index.d.ts +1 -1
  42. package/dist/declarations/src/components/error-apologizer/messages.d.ts +11 -11
  43. package/dist/declarations/src/components/error-boundary/error-boundary.d.ts +20 -20
  44. package/dist/declarations/src/components/error-boundary/index.d.ts +1 -1
  45. package/dist/declarations/src/components/fetch-project/fetch-project.d.ts +18 -18
  46. package/dist/declarations/src/components/fetch-project/index.d.ts +1 -1
  47. package/dist/declarations/src/components/fetch-user/fetch-user.d.ts +16 -16
  48. package/dist/declarations/src/components/fetch-user/index.d.ts +1 -1
  49. package/dist/declarations/src/components/gtm-application-tracker/gtm-application-tracker.d.ts +10 -10
  50. package/dist/declarations/src/components/gtm-application-tracker/index.d.ts +1 -1
  51. package/dist/declarations/src/components/gtm-booter/gtm-booter.d.ts +20 -20
  52. package/dist/declarations/src/components/gtm-booter/index.d.ts +2 -2
  53. package/dist/declarations/src/components/gtm-user-logout-tracker/gtm-user-logout-tracker.d.ts +5 -5
  54. package/dist/declarations/src/components/gtm-user-logout-tracker/index.d.ts +1 -1
  55. package/dist/declarations/src/components/gtm-user-tracker/gtm-user-tracker.d.ts +10 -10
  56. package/dist/declarations/src/components/gtm-user-tracker/index.d.ts +1 -1
  57. package/dist/declarations/src/components/inject-reducers/index.d.ts +1 -1
  58. package/dist/declarations/src/components/inject-reducers/inject-reducers.d.ts +14 -14
  59. package/dist/declarations/src/components/loading-placeholder/index.d.ts +1 -1
  60. package/dist/declarations/src/components/loading-placeholder/loading-placeholder.d.ts +10 -10
  61. package/dist/declarations/src/components/locale-switcher/index.d.ts +1 -1
  62. package/dist/declarations/src/components/locale-switcher/locale-switcher.d.ts +23 -23
  63. package/dist/declarations/src/components/navbar/index.d.ts +1 -1
  64. package/dist/declarations/src/components/navbar/messages.d.ts +7 -7
  65. package/dist/declarations/src/components/navbar/navbar.d.ts +29 -29
  66. package/dist/declarations/src/components/navbar/non-nullable.d.ts +1 -1
  67. package/dist/declarations/src/components/navbar/use-loading-menu-layout-effect.d.ts +2 -2
  68. package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +67 -67
  69. package/dist/declarations/src/components/project-container/index.d.ts +1 -1
  70. package/dist/declarations/src/components/project-container/messages.d.ts +7 -7
  71. package/dist/declarations/src/components/project-container/project-container.d.ts +18 -18
  72. package/dist/declarations/src/components/project-data-locale/index.d.ts +1 -1
  73. package/dist/declarations/src/components/project-data-locale/project-data-locale.d.ts +14 -14
  74. package/dist/declarations/src/components/project-expired/index.d.ts +6 -6
  75. package/dist/declarations/src/components/project-expired/messages.d.ts +11 -11
  76. package/dist/declarations/src/components/project-expired/project-expired.d.ts +5 -5
  77. package/dist/declarations/src/components/project-not-found/index.d.ts +6 -6
  78. package/dist/declarations/src/components/project-not-found/messages.d.ts +15 -15
  79. package/dist/declarations/src/components/project-not-found/project-not-found.d.ts +5 -5
  80. package/dist/declarations/src/components/project-not-initialized/index.d.ts +6 -6
  81. package/dist/declarations/src/components/project-not-initialized/messages.d.ts +11 -11
  82. package/dist/declarations/src/components/project-not-initialized/project-not-initialized.d.ts +5 -5
  83. package/dist/declarations/src/components/project-suspended/index.d.ts +8 -8
  84. package/dist/declarations/src/components/project-suspended/messages.d.ts +15 -15
  85. package/dist/declarations/src/components/project-suspended/project-suspended.d.ts +8 -8
  86. package/dist/declarations/src/components/project-switcher/index.d.ts +1 -1
  87. package/dist/declarations/src/components/project-switcher/messages.d.ts +28 -28
  88. package/dist/declarations/src/components/project-switcher/project-switcher.d.ts +18 -18
  89. package/dist/declarations/src/components/quick-access/butler/butler.d.ts +14 -14
  90. package/dist/declarations/src/components/quick-access/butler/index.d.ts +1 -1
  91. package/dist/declarations/src/components/quick-access/butler-command/butler-command.d.ts +24 -24
  92. package/dist/declarations/src/components/quick-access/butler-command/index.d.ts +1 -1
  93. package/dist/declarations/src/components/quick-access/butler-container/butler-container.d.ts +6 -6
  94. package/dist/declarations/src/components/quick-access/butler-container/index.d.ts +1 -1
  95. package/dist/declarations/src/components/quick-access/constants.d.ts +24 -24
  96. package/dist/declarations/src/components/quick-access/create-commands.d.ts +13 -13
  97. package/dist/declarations/src/components/quick-access/history-entries.d.ts +3 -3
  98. package/dist/declarations/src/components/quick-access/index.d.ts +8 -8
  99. package/dist/declarations/src/components/quick-access/messages.d.ts +247 -247
  100. package/dist/declarations/src/components/quick-access/pim-indexer-states.d.ts +6 -6
  101. package/dist/declarations/src/components/quick-access/quick-access.d.ts +12 -12
  102. package/dist/declarations/src/components/quick-access/sub-commands.d.ts +17 -17
  103. package/dist/declarations/src/components/quick-access/tracking-events.d.ts +8 -8
  104. package/dist/declarations/src/components/quick-access/types.d.ts +31 -31
  105. package/dist/declarations/src/components/quick-access/utils.d.ts +5 -5
  106. package/dist/declarations/src/components/redirect-to-project-create/index.d.ts +1 -1
  107. package/dist/declarations/src/components/redirect-to-project-create/redirect-to-project-create.d.ts +5 -5
  108. package/dist/declarations/src/components/redirector/index.d.ts +1 -1
  109. package/dist/declarations/src/components/redirector/redirector.d.ts +22 -22
  110. package/dist/declarations/src/components/requests-in-flight-loader/constants.d.ts +1 -1
  111. package/dist/declarations/src/components/requests-in-flight-loader/index.d.ts +2 -2
  112. package/dist/declarations/src/components/requests-in-flight-loader/messages.d.ts +8 -8
  113. package/dist/declarations/src/components/requests-in-flight-loader/reducer.d.ts +4 -4
  114. package/dist/declarations/src/components/requests-in-flight-loader/requests-in-flight-loader.d.ts +6 -6
  115. package/dist/declarations/src/components/requests-in-flight-loader/types.d.ts +9 -9
  116. package/dist/declarations/src/components/route-catch-all/index.d.ts +1 -1
  117. package/dist/declarations/src/components/route-catch-all/route-catch-all.d.ts +2 -2
  118. package/dist/declarations/src/components/service-page-project-switcher/index.d.ts +1 -1
  119. package/dist/declarations/src/components/service-page-project-switcher/service-page-project-switcher.d.ts +5 -5
  120. package/dist/declarations/src/components/setup-flop-flip-provider/index.d.ts +1 -1
  121. package/dist/declarations/src/components/setup-flop-flip-provider/setup-flop-flip-provider.d.ts +17 -17
  122. package/dist/declarations/src/components/user-settings-menu/index.d.ts +1 -1
  123. package/dist/declarations/src/components/user-settings-menu/messages.d.ts +28 -28
  124. package/dist/declarations/src/components/user-settings-menu/user-settings-menu.d.ts +23 -23
  125. package/dist/declarations/src/components/version-tracker/actions.d.ts +4 -4
  126. package/dist/declarations/src/components/version-tracker/index.d.ts +1 -1
  127. package/dist/declarations/src/components/version-tracker/version-tracker.d.ts +5 -5
  128. package/dist/declarations/src/configure-apollo.d.ts +7 -7
  129. package/dist/declarations/src/configure-store.d.ts +19 -19
  130. package/dist/declarations/src/constants.d.ts +46 -46
  131. package/dist/declarations/src/feature-toggles.d.ts +1 -1
  132. package/dist/declarations/src/hooks/apollo-hooks/apollo-hooks.d.ts +13 -13
  133. package/dist/declarations/src/hooks/apollo-hooks/index.d.ts +1 -1
  134. package/dist/declarations/src/hooks/use-all-menu-feature-toggles/index.d.ts +1 -1
  135. package/dist/declarations/src/hooks/use-all-menu-feature-toggles/use-all-menu-feature-toggles.d.ts +11 -11
  136. package/dist/declarations/src/hooks/use-applications-menu/index.d.ts +1 -1
  137. package/dist/declarations/src/hooks/use-applications-menu/use-applications-menu.d.ts +14 -14
  138. package/dist/declarations/src/index.d.ts +16 -16
  139. package/dist/declarations/src/middleware/hide-notifications.d.ts +3 -3
  140. package/dist/declarations/src/middleware/logger.d.ts +3 -3
  141. package/dist/declarations/src/test-utils/index.d.ts +1 -1
  142. package/dist/declarations/src/test-utils/test-utils.d.ts +68 -68
  143. package/dist/declarations/src/track-performance.d.ts +2 -2
  144. package/dist/declarations/src/tracking-event-list.d.ts +19 -19
  145. package/dist/declarations/src/types/generated/ctp.d.ts +9582 -9273
  146. package/dist/declarations/src/types/generated/mc.d.ts +746 -746
  147. package/dist/declarations/src/types/generated/proxy.d.ts +148 -148
  148. package/dist/declarations/src/types/generated/settings.d.ts +3258 -3258
  149. package/dist/declarations/src/utils/apollo-client-runtime-cache.d.ts +5 -5
  150. package/dist/declarations/src/utils/apollo-context.d.ts +23 -23
  151. package/dist/declarations/src/utils/get-correlation-id/get-correlation-id.d.ts +3 -3
  152. package/dist/declarations/src/utils/get-correlation-id/index.d.ts +1 -1
  153. package/dist/declarations/src/utils/get-mc-api-url/get-mc-api-url.d.ts +8 -8
  154. package/dist/declarations/src/utils/get-mc-api-url/index.d.ts +1 -1
  155. package/dist/declarations/src/utils/get-previous-project-key/get-previous-project-key.d.ts +2 -2
  156. package/dist/declarations/src/utils/get-previous-project-key/index.d.ts +1 -1
  157. package/dist/declarations/src/utils/gtm.d.ts +27 -27
  158. package/dist/declarations/src/utils/index.d.ts +8 -8
  159. package/dist/declarations/src/utils/location/index.d.ts +1 -1
  160. package/dist/declarations/src/utils/location/location.d.ts +5 -5
  161. package/dist/declarations/src/utils/logger.d.ts +10 -10
  162. package/dist/declarations/src/utils/oidc-storage.d.ts +11 -11
  163. package/dist/declarations/src/utils/select-project-key-from-local-storage/index.d.ts +1 -1
  164. package/dist/declarations/src/utils/select-project-key-from-local-storage/select-project-key-from-local-storage.d.ts +1 -1
  165. package/dist/declarations/src/utils/select-project-key-from-url/index.d.ts +1 -1
  166. package/dist/declarations/src/utils/select-project-key-from-url/select-project-key-from-url.d.ts +1 -1
  167. package/dist/declarations/src/utils/select-team-id-from-local-storage/index.d.ts +1 -1
  168. package/dist/declarations/src/utils/select-team-id-from-local-storage/select-team-id-from-local-storage.d.ts +1 -1
  169. package/dist/declarations/src/utils/select-user-id/index.d.ts +1 -1
  170. package/dist/declarations/src/utils/select-user-id/select-user-id.d.ts +1 -1
  171. package/dist/declarations/src/utils/setup-global-error-listener/index.d.ts +1 -1
  172. package/dist/declarations/src/utils/setup-global-error-listener/setup-global-error-listener.d.ts +1 -1
  173. package/dist/declarations/src/version.d.ts +2 -2
  174. package/dist/{index-b47dceae.esm.js → index-577c7a43.esm.js} +47 -40
  175. package/dist/{index-dcdc1fa1.cjs.dev.js → index-82a5ea23.cjs.dev.js} +46 -39
  176. package/dist/{index-a3f44394.cjs.prod.js → index-8605a9e1.cjs.prod.js} +36 -29
  177. package/dist/{project-expired-e3f298fe.cjs.dev.js → project-expired-4a4db9c8.cjs.dev.js} +3 -3
  178. package/dist/{project-expired-ebc3e633.esm.js → project-expired-55c51196.esm.js} +3 -3
  179. package/dist/{project-expired-71eaf3ac.cjs.prod.js → project-expired-5603cf9b.cjs.prod.js} +3 -3
  180. package/dist/{project-not-found-bd416369.cjs.dev.js → project-not-found-33567915.cjs.dev.js} +3 -3
  181. package/dist/{project-not-found-8e9e186b.esm.js → project-not-found-efa7e5a7.esm.js} +3 -3
  182. package/dist/{project-not-found-471a350c.cjs.prod.js → project-not-found-f325728d.cjs.prod.js} +3 -3
  183. package/dist/{project-not-initialized-f0707436.esm.js → project-not-initialized-36c1617d.esm.js} +3 -3
  184. package/dist/{project-not-initialized-22679d64.cjs.prod.js → project-not-initialized-68192fda.cjs.prod.js} +3 -3
  185. package/dist/{project-not-initialized-49d5d546.cjs.dev.js → project-not-initialized-d396896e.cjs.dev.js} +3 -3
  186. package/dist/{project-suspended-5d927085.cjs.dev.js → project-suspended-61a15b65.cjs.dev.js} +3 -3
  187. package/dist/{project-suspended-925bc5a1.esm.js → project-suspended-69502d1e.esm.js} +3 -3
  188. package/dist/{project-suspended-f34ad2ab.cjs.prod.js → project-suspended-e43ce7c2.cjs.prod.js} +3 -3
  189. package/dist/{quick-access-3466d7a2.esm.js → quick-access-1f9e885b.esm.js} +2 -2
  190. package/dist/{quick-access-2fa543f8.cjs.prod.js → quick-access-2e6398f7.cjs.prod.js} +2 -2
  191. package/dist/{quick-access-6b1fa05c.cjs.dev.js → quick-access-57979158.cjs.dev.js} +2 -2
  192. package/dist/{service-page-project-switcher-67fe65c2.esm.js → service-page-project-switcher-013404f5.esm.js} +1 -1
  193. package/dist/{service-page-project-switcher-daec9d91.cjs.prod.js → service-page-project-switcher-8efe2817.cjs.prod.js} +1 -1
  194. package/dist/{service-page-project-switcher-c320f886.cjs.dev.js → service-page-project-switcher-ef90ae95.cjs.dev.js} +1 -1
  195. package/package.json +34 -34
  196. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +1 -1
  197. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +1 -1
  198. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +1 -1
@@ -98,7 +98,7 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
98
98
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
99
99
 
100
100
  // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
101
- var version = '20.9.4';
101
+ var version = '20.10.4';
102
102
 
103
103
  var SUPPORTED_HEADERS = {
104
104
  ACCEPT_VERSION: 'Accept-version',
@@ -768,7 +768,7 @@ var headerLink = new client.ApolloLink(function (operation, forward) {
768
768
  var sessionToken = getSessionToken();
769
769
  operation.setContext({
770
770
  credentials: 'include',
771
- headers: omitEmpty__default['default'](_objectSpread$1((_objectSpread4 = {}, _defineProperty(_objectSpread4, SUPPORTED_HEADERS.AUTHORIZATION, sessionToken ? "Bearer ".concat(sessionToken) : undefined), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_PROJECT_KEY, projectKey), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_CORRELATION_ID, getCorrelationId({
771
+ headers: omitEmpty__default['default'](_objectSpread$1(_objectSpread$1({}, apolloContext.headers), {}, (_objectSpread4 = {}, _defineProperty(_objectSpread4, SUPPORTED_HEADERS.AUTHORIZATION, sessionToken ? "Bearer ".concat(sessionToken) : undefined), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_PROJECT_KEY, projectKey), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_CORRELATION_ID, getCorrelationId({
772
772
  userId: userId
773
773
  })), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_GRAPHQL_TARGET, graphQlTarget), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_GRAPHQL_OPERATION_NAME, operation.operationName), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_TEAM_ID, teamId), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_APPLICATION_ID, window.app.applicationId), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_FEATURE_FLAG, featureFlag), _objectSpread4), getAppliedForwardToHeaders(apolloContext)))
774
774
  });
@@ -924,8 +924,7 @@ var replace = function replace(url) {
924
924
  };
925
925
 
926
926
  var reload = function reload() {
927
- var forceReload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
928
- return window.location.reload(forceReload);
927
+ return window.location.reload();
929
928
  };
930
929
 
931
930
  var location = {
@@ -935,9 +934,7 @@ var location = {
935
934
 
936
935
  var ForcePageReload = function ForcePageReload() {
937
936
  react.useEffect(function () {
938
- location.reload(
939
- /* forcedReload */
940
- true);
937
+ location.reload();
941
938
  }, []);
942
939
  return null;
943
940
  };
@@ -97,7 +97,7 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
97
97
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
98
98
 
99
99
  // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
100
- var version = '20.9.4';
100
+ var version = '20.10.4';
101
101
 
102
102
  var SUPPORTED_HEADERS = {
103
103
  ACCEPT_VERSION: 'Accept-version',
@@ -759,7 +759,7 @@ var headerLink = new client.ApolloLink(function (operation, forward) {
759
759
  var sessionToken = getSessionToken();
760
760
  operation.setContext({
761
761
  credentials: 'include',
762
- headers: omitEmpty__default['default'](_objectSpread$1((_objectSpread4 = {}, _defineProperty(_objectSpread4, SUPPORTED_HEADERS.AUTHORIZATION, sessionToken ? "Bearer ".concat(sessionToken) : undefined), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_PROJECT_KEY, projectKey), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_CORRELATION_ID, getCorrelationId({
762
+ headers: omitEmpty__default['default'](_objectSpread$1(_objectSpread$1({}, apolloContext.headers), {}, (_objectSpread4 = {}, _defineProperty(_objectSpread4, SUPPORTED_HEADERS.AUTHORIZATION, sessionToken ? "Bearer ".concat(sessionToken) : undefined), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_PROJECT_KEY, projectKey), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_CORRELATION_ID, getCorrelationId({
763
763
  userId: userId
764
764
  })), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_GRAPHQL_TARGET, graphQlTarget), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_GRAPHQL_OPERATION_NAME, operation.operationName), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_TEAM_ID, teamId), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_APPLICATION_ID, window.app.applicationId), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_FEATURE_FLAG, featureFlag), _objectSpread4), getAppliedForwardToHeaders(apolloContext)))
765
765
  });
@@ -915,8 +915,7 @@ var replace = function replace(url) {
915
915
  };
916
916
 
917
917
  var reload = function reload() {
918
- var forceReload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
919
- return window.location.reload(forceReload);
918
+ return window.location.reload();
920
919
  };
921
920
 
922
921
  var location = {
@@ -926,9 +925,7 @@ var location = {
926
925
 
927
926
  var ForcePageReload = function ForcePageReload() {
928
927
  react.useEffect(function () {
929
- location.reload(
930
- /* forcedReload */
931
- true);
928
+ location.reload();
932
929
  }, []);
933
930
  return null;
934
931
  };
@@ -57,7 +57,7 @@ import { useApplicationContext } from '@commercetools-frontend/application-shell
57
57
  import { PageNotFound } from '@commercetools-frontend/application-components';
58
58
 
59
59
  // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
60
- var version = '20.9.4';
60
+ var version = '20.10.4';
61
61
 
62
62
  var SUPPORTED_HEADERS = {
63
63
  ACCEPT_VERSION: 'Accept-version',
@@ -727,7 +727,7 @@ var headerLink = new ApolloLink(function (operation, forward) {
727
727
  var sessionToken = getSessionToken();
728
728
  operation.setContext({
729
729
  credentials: 'include',
730
- headers: omitEmpty(_objectSpread$1((_objectSpread4 = {}, _defineProperty(_objectSpread4, SUPPORTED_HEADERS.AUTHORIZATION, sessionToken ? "Bearer ".concat(sessionToken) : undefined), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_PROJECT_KEY, projectKey), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_CORRELATION_ID, getCorrelationId({
730
+ headers: omitEmpty(_objectSpread$1(_objectSpread$1({}, apolloContext.headers), {}, (_objectSpread4 = {}, _defineProperty(_objectSpread4, SUPPORTED_HEADERS.AUTHORIZATION, sessionToken ? "Bearer ".concat(sessionToken) : undefined), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_PROJECT_KEY, projectKey), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_CORRELATION_ID, getCorrelationId({
731
731
  userId: userId
732
732
  })), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_GRAPHQL_TARGET, graphQlTarget), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_GRAPHQL_OPERATION_NAME, operation.operationName), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_TEAM_ID, teamId), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_APPLICATION_ID, window.app.applicationId), _defineProperty(_objectSpread4, SUPPORTED_HEADERS.X_FEATURE_FLAG, featureFlag), _objectSpread4), getAppliedForwardToHeaders(apolloContext)))
733
733
  });
@@ -883,8 +883,7 @@ var replace = function replace(url) {
883
883
  };
884
884
 
885
885
  var reload = function reload() {
886
- var forceReload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
887
- return window.location.reload(forceReload);
886
+ return window.location.reload();
888
887
  };
889
888
 
890
889
  var location = {
@@ -894,9 +893,7 @@ var location = {
894
893
 
895
894
  var ForcePageReload = function ForcePageReload() {
896
895
  useEffect(function () {
897
- location.reload(
898
- /* forcedReload */
899
- true);
896
+ location.reload();
900
897
  }, []);
901
898
  return null;
902
899
  };
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var applicationEntryPoint = require('./application-entry-point-211fb17a.cjs.dev.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-dcdc1fa1.cjs.dev.js');
5
+ var applicationEntryPoint = require('./application-entry-point-4b134bcb.cjs.dev.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-82a5ea23.cjs.dev.js');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
8
  require('uuid');
9
9
  require('@babel/runtime-corejs3/core-js-stable/url');
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var applicationEntryPoint = require('./application-entry-point-7b4ee9ee.cjs.prod.js');
6
- var dist_commercetoolsFrontendApplicationShell = require('./index-a3f44394.cjs.prod.js');
5
+ var applicationEntryPoint = require('./application-entry-point-83ea80e3.cjs.prod.js');
6
+ var dist_commercetoolsFrontendApplicationShell = require('./index-8605a9e1.cjs.prod.js');
7
7
  require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
8
  require('uuid');
9
9
  require('@babel/runtime-corejs3/core-js-stable/url');
@@ -1,5 +1,5 @@
1
- export { t as RouteCatchAll, u as applyDefaultMiddlewares, f as createApolloClient, p as selectProjectKeyFromUrl, w as selectUserId, v as version } from './application-entry-point-5f0f015e.esm.js';
2
- export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-b47dceae.esm.js';
1
+ export { t as RouteCatchAll, u as applyDefaultMiddlewares, f as createApolloClient, p as selectProjectKeyFromUrl, w as selectUserId, v as version } from './application-entry-point-b7c5325e.esm.js';
2
+ export { A as ApplicationShell, a as ApplicationShellProvider, C as ConfigureIntlProvider, G as GtmContext, b as GtmUserLogoutTracker, I as InjectReducers, S as SetupFlopFlipProvider, c as createApolloContextForProxyForwardTo, s as setupGlobalErrorListener, d as useMcLazyQuery, e as useMcMutation, u as useMcQuery } from './index-577c7a43.esm.js';
3
3
  import '@babel/runtime-corejs3/core-js-stable/instance/filter';
4
4
  import 'uuid';
5
5
  import '@babel/runtime-corejs3/core-js-stable/url';
@@ -1,2 +1,2 @@
1
- declare const errorLink: import("@apollo/client").ApolloLink;
2
- export default errorLink;
1
+ declare const errorLink: import("@apollo/client").ApolloLink;
2
+ export default errorLink;
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from '@apollo/client';
2
- declare const headerLink: ApolloLink;
3
- export default headerLink;
1
+ import { ApolloLink } from '@apollo/client';
2
+ declare const headerLink: ApolloLink;
3
+ export default headerLink;
@@ -1,4 +1,4 @@
1
- export { default as loggerLink } from 'apollo-link-logger';
2
- export { default as errorLink } from './error-link';
3
- export { default as headerLink } from './header-link';
4
- export { default as tokenRetryLink } from './token-retry-link';
1
+ export { default as loggerLink } from 'apollo-link-logger';
2
+ export { default as errorLink } from './error-link';
3
+ export { default as headerLink } from './header-link';
4
+ export { default as tokenRetryLink } from './token-retry-link';
@@ -1,3 +1,3 @@
1
- import { RetryLink } from '@apollo/client/link/retry';
2
- declare const tokenRetryLink: RetryLink;
3
- export default tokenRetryLink;
1
+ import { RetryLink } from '@apollo/client/link/retry';
2
+ declare const tokenRetryLink: RetryLink;
3
+ export default tokenRetryLink;
@@ -1,10 +1,10 @@
1
- import type { GraphQLError } from 'graphql';
2
- import type { ErrorResponse } from '@apollo/client/link/error';
3
- import type { ServerError, ServerParseError } from '@apollo/client';
4
- import type { TApolloContext } from '../utils/apollo-context';
5
- declare const getSkipTokenRetry: (context: TApolloContext) => boolean;
6
- declare const forwardTokenRetryHeader: (headers: TApolloContext['headers']) => TApolloContext['headers'];
7
- declare const getDoesGraphQLTargetSupportTokenRetry: (context: TApolloContext) => boolean;
8
- declare const isHttpError: (error: ErrorResponse['networkError']) => error is ServerError | ServerParseError;
9
- declare const isGraphQLError: (error: ErrorResponse['graphQLErrors']) => error is GraphQLError[];
10
- export { getSkipTokenRetry, forwardTokenRetryHeader, getDoesGraphQLTargetSupportTokenRetry, isHttpError, isGraphQLError, };
1
+ import type { GraphQLError } from 'graphql';
2
+ import type { ErrorResponse } from '@apollo/client/link/error';
3
+ import type { ServerError, ServerParseError } from '@apollo/client';
4
+ import type { TApolloContext } from '../utils/apollo-context';
5
+ declare const getSkipTokenRetry: (context: TApolloContext) => boolean;
6
+ declare const forwardTokenRetryHeader: (headers: TApolloContext['headers']) => TApolloContext['headers'];
7
+ declare const getDoesGraphQLTargetSupportTokenRetry: (context: TApolloContext) => boolean;
8
+ declare const isHttpError: (error: ErrorResponse['networkError']) => error is ServerError | ServerParseError;
9
+ declare const isGraphQLError: (error: ErrorResponse['graphQLErrors']) => error is GraphQLError[];
10
+ export { getSkipTokenRetry, forwardTokenRetryHeader, getDoesGraphQLTargetSupportTokenRetry, isHttpError, isGraphQLError, };
@@ -1,12 +1,12 @@
1
- import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
2
- import type { TApplicationsMenu } from '../../types/generated/proxy';
3
- declare type Props = {
4
- user: TFetchLoggedInUserQuery['user'];
5
- projectKeyFromUrl?: string;
6
- DEV_ONLY__loadAppbarMenuConfig?: () => Promise<TApplicationsMenu['appBar']>;
7
- };
8
- declare const AppBar: {
9
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
12
- export default AppBar;
1
+ import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
2
+ import type { TApplicationsMenu } from '../../types/generated/proxy';
3
+ declare type Props = {
4
+ user: TFetchLoggedInUserQuery['user'];
5
+ projectKeyFromUrl?: string;
6
+ DEV_ONLY__loadAppbarMenuConfig?: () => Promise<TApplicationsMenu['appBar']>;
7
+ };
8
+ declare const AppBar: {
9
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ export default AppBar;
@@ -1 +1 @@
1
- export { default } from './app-bar';
1
+ export { default } from './app-bar';
@@ -1,9 +1,9 @@
1
- import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
2
- import { ReactNode } from 'react';
3
- declare type Props<AdditionalEnvironmentProperties extends {}> = {
4
- environment: TProviderProps<AdditionalEnvironmentProperties>['environment'];
5
- render?: () => JSX.Element;
6
- children?: ReactNode;
7
- };
8
- declare const ApplicationEntryPoint: <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>) => import("@emotion/react/jsx-runtime").JSX.Element | null;
9
- export default ApplicationEntryPoint;
1
+ import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
2
+ import { ReactNode } from 'react';
3
+ declare type Props<AdditionalEnvironmentProperties extends {}> = {
4
+ environment: TProviderProps<AdditionalEnvironmentProperties>['environment'];
5
+ render?: () => JSX.Element;
6
+ children?: ReactNode;
7
+ };
8
+ declare const ApplicationEntryPoint: <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>) => import("@emotion/react/jsx-runtime").JSX.Element | null;
9
+ export default ApplicationEntryPoint;
@@ -1 +1 @@
1
- export { default } from './application-entry-point';
1
+ export { default } from './application-entry-point';
@@ -1,8 +1,8 @@
1
- declare type Props = {
2
- showLogo?: boolean;
3
- };
4
- declare const ApplicationLoader: {
5
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
6
- displayName: string;
7
- };
8
- export default ApplicationLoader;
1
+ declare type Props = {
2
+ showLogo?: boolean;
3
+ };
4
+ declare const ApplicationLoader: {
5
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ export default ApplicationLoader;
@@ -1 +1 @@
1
- export { default } from './application-loader';
1
+ export { default } from './application-loader';
@@ -1,39 +1,39 @@
1
- import type { Dispatch } from 'redux';
2
- import type { TFlags } from '@flopflip/types';
3
- import type { NormalizedCacheObject } from '@apollo/client';
4
- import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
5
- import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
6
- import type { TApplicationsMenu } from '../../types/generated/proxy';
7
- import type { TrackingList } from '../../utils/gtm';
8
- import { ReactNode, SyntheticEvent } from 'react';
9
- import { ApolloClient } from '@apollo/client';
10
- declare type Props<AdditionalEnvironmentProperties extends {}> = {
11
- apolloClient?: ApolloClient<NormalizedCacheObject>;
12
- environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
13
- featureFlags?: TFlags;
14
- defaultFeatureFlags?: TFlags;
15
- trackingEventList?: TrackingList;
16
- applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
17
- onRegisterErrorListeners: (args: {
18
- dispatch: Dispatch;
19
- }) => void;
20
- onMenuItemClick?: <TrackFn>(event: SyntheticEvent<HTMLAnchorElement>, track: TrackFn) => void;
21
- render?: () => JSX.Element;
22
- children?: ReactNode;
23
- DEV_ONLY__loadAppbarMenuConfig?: () => Promise<TApplicationsMenu['appBar']>;
24
- DEV_ONLY__loadNavbarMenuConfig?: () => Promise<TApplicationsMenu['navBar']>;
25
- };
26
- export declare const MainContainer: import("@emotion/styled").StyledComponent<{
27
- theme?: import("@emotion/react").Theme | undefined;
28
- as?: import("react").ElementType<any> | undefined;
29
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
30
- export declare const RestrictedApplication: {
31
- <AdditionalEnvironmentProperties extends {}>(props: Omit<Props<AdditionalEnvironmentProperties>, "environment" | "onRegisterErrorListeners">): import("@emotion/react/jsx-runtime").JSX.Element;
32
- displayName: string;
33
- };
34
- declare const ApplicationShell: {
35
- <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
36
- displayName: string;
37
- version: string;
38
- };
39
- export default ApplicationShell;
1
+ import type { Dispatch } from 'redux';
2
+ import type { TFlags } from '@flopflip/types';
3
+ import type { NormalizedCacheObject } from '@apollo/client';
4
+ import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
5
+ import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
6
+ import type { TApplicationsMenu } from '../../types/generated/proxy';
7
+ import type { TrackingList } from '../../utils/gtm';
8
+ import { ReactNode, SyntheticEvent } from 'react';
9
+ import { ApolloClient } from '@apollo/client';
10
+ declare type Props<AdditionalEnvironmentProperties extends {}> = {
11
+ apolloClient?: ApolloClient<NormalizedCacheObject>;
12
+ environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
13
+ featureFlags?: TFlags;
14
+ defaultFeatureFlags?: TFlags;
15
+ trackingEventList?: TrackingList;
16
+ applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
17
+ onRegisterErrorListeners: (args: {
18
+ dispatch: Dispatch;
19
+ }) => void;
20
+ onMenuItemClick?: <TrackFn>(event: SyntheticEvent<HTMLAnchorElement>, track: TrackFn) => void;
21
+ render?: () => JSX.Element;
22
+ children?: ReactNode;
23
+ DEV_ONLY__loadAppbarMenuConfig?: () => Promise<TApplicationsMenu['appBar']>;
24
+ DEV_ONLY__loadNavbarMenuConfig?: () => Promise<TApplicationsMenu['navBar']>;
25
+ };
26
+ export declare const MainContainer: import("@emotion/styled").StyledComponent<{
27
+ theme?: import("@emotion/react").Theme | undefined;
28
+ as?: import("react").ElementType<any> | undefined;
29
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
30
+ export declare const RestrictedApplication: {
31
+ <AdditionalEnvironmentProperties extends {}>(props: Omit<Props<AdditionalEnvironmentProperties>, "environment" | "onRegisterErrorListeners">): import("@emotion/react/jsx-runtime").JSX.Element;
32
+ displayName: string;
33
+ };
34
+ declare const ApplicationShell: {
35
+ <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
36
+ displayName: string;
37
+ version: string;
38
+ };
39
+ export default ApplicationShell;
@@ -1 +1 @@
1
- export { default } from './application-shell';
1
+ export { default } from './application-shell';
@@ -1,5 +1,5 @@
1
- declare const RedirectToLogin: {
2
- (): import("@emotion/react/jsx-runtime").JSX.Element;
3
- displayName: string;
4
- };
5
- export default RedirectToLogin;
1
+ declare const RedirectToLogin: {
2
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default RedirectToLogin;
@@ -1,6 +1,6 @@
1
- import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
2
- declare type Props = {
3
- reason?: typeof LOGOUT_REASONS[keyof typeof LOGOUT_REASONS];
4
- };
5
- declare const RedirectToLogout: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
6
- export default RedirectToLogout;
1
+ import { LOGOUT_REASONS } from '@commercetools-frontend/constants';
2
+ declare type Props = {
3
+ reason?: typeof LOGOUT_REASONS[keyof typeof LOGOUT_REASONS];
4
+ };
5
+ declare const RedirectToLogout: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export default RedirectToLogout;
@@ -1,22 +1,22 @@
1
- /// <reference types="react" />
2
- import type { NormalizedCacheObject } from '@apollo/client';
3
- import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
4
- import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
5
- import type { TrackingList } from '../../utils/gtm';
6
- import '../../track-performance';
7
- import { ApolloClient } from '@apollo/client';
8
- declare type Props<AdditionalEnvironmentProperties extends {}> = {
9
- apolloClient?: ApolloClient<NormalizedCacheObject>;
10
- environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
11
- trackingEventList?: TrackingList;
12
- applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
13
- children: (args: {
14
- isAuthenticated: boolean;
15
- }) => JSX.Element;
16
- };
17
- declare const ApplicationShellProvider: {
18
- <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
19
- displayName: string;
20
- history: import("history-query-enhancer").EnhancedHistory;
21
- };
22
- export default ApplicationShellProvider;
1
+ /// <reference types="react" />
2
+ import type { NormalizedCacheObject } from '@apollo/client';
3
+ import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
4
+ import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
5
+ import type { TrackingList } from '../../utils/gtm';
6
+ import '../../track-performance';
7
+ import { ApolloClient } from '@apollo/client';
8
+ declare type Props<AdditionalEnvironmentProperties extends {}> = {
9
+ apolloClient?: ApolloClient<NormalizedCacheObject>;
10
+ environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
11
+ trackingEventList?: TrackingList;
12
+ applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
13
+ children: (args: {
14
+ isAuthenticated: boolean;
15
+ }) => JSX.Element;
16
+ };
17
+ declare const ApplicationShellProvider: {
18
+ <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ history: import("history-query-enhancer").EnhancedHistory;
21
+ };
22
+ export default ApplicationShellProvider;
@@ -1,2 +1,2 @@
1
- declare const GlobalStyles: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default GlobalStyles;
1
+ declare const GlobalStyles: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default GlobalStyles;
@@ -1 +1 @@
1
- export { default } from './application-shell-provider';
1
+ export { default } from './application-shell-provider';
@@ -1,28 +1,28 @@
1
- import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
2
- declare type ShallowJson = {
3
- [key: string]: unknown;
4
- };
5
- declare const useCoercedEnvironmentValues: <AdditionalEnvironmentProperties extends {}>(environment: ShallowJson) => AdditionalEnvironmentProperties & {
6
- applicationId?: string | undefined;
7
- applicationName: string;
8
- entryPointUriPath: string;
9
- revision: string;
10
- env: string;
11
- location: string;
12
- cdnUrl: string;
13
- mcApiUrl: string;
14
- frontendHost: string;
15
- servedByProxy: boolean;
16
- mcProxyApiUrl?: string | undefined;
17
- ldClientSideId?: string | undefined;
18
- trackingSentry?: string | undefined;
19
- trackingGtm?: string | undefined;
20
- enableSignUp?: boolean | undefined;
21
- enableLongLivedFeatureFlags?: boolean | undefined;
22
- useFullRedirectsForLinks?: boolean | undefined;
23
- __DEVELOPMENT__?: {
24
- oidc?: import("@commercetools-frontend/constants").ApplicationOidcForDevelopmentConfig | undefined;
25
- menuLinks?: import("@commercetools-frontend/constants").ApplicationMenuLinksForDevelopmentConfig | undefined;
26
- } | undefined;
27
- };
28
- export default useCoercedEnvironmentValues;
1
+ import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
2
+ declare type ShallowJson = {
3
+ [key: string]: unknown;
4
+ };
5
+ declare const useCoercedEnvironmentValues: <AdditionalEnvironmentProperties extends {}>(environment: ShallowJson) => AdditionalEnvironmentProperties & {
6
+ applicationId?: string | undefined;
7
+ applicationName: string;
8
+ entryPointUriPath: string;
9
+ revision: string;
10
+ env: string;
11
+ location: string;
12
+ cdnUrl: string;
13
+ mcApiUrl: string;
14
+ frontendHost: string;
15
+ servedByProxy: boolean;
16
+ mcProxyApiUrl?: string | undefined;
17
+ ldClientSideId?: string | undefined;
18
+ trackingSentry?: string | undefined;
19
+ trackingGtm?: string | undefined;
20
+ enableSignUp?: boolean | undefined;
21
+ enableLongLivedFeatureFlags?: boolean | undefined;
22
+ useFullRedirectsForLinks?: boolean | undefined;
23
+ __DEVELOPMENT__?: {
24
+ oidc?: import("@commercetools-frontend/constants").ApplicationOidcForDevelopmentConfig | undefined;
25
+ menuLinks?: import("@commercetools-frontend/constants").ApplicationMenuLinksForDevelopmentConfig | undefined;
26
+ } | undefined;
27
+ };
28
+ export default useCoercedEnvironmentValues;
@@ -1 +1 @@
1
- export declare const getBrowserLocale: (win: Window) => string;
1
+ export declare const getBrowserLocale: (win: Window) => string;
@@ -1,13 +1,13 @@
1
- /// <reference types="react" />
2
- declare type RenderFnArgs = {
3
- isAuthenticated: boolean;
4
- };
5
- declare type Props = {
6
- render: (args: RenderFnArgs) => JSX.Element;
7
- children?: never;
8
- };
9
- declare const AmILoggedIn: {
10
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
11
- displayName: string;
12
- };
13
- export default AmILoggedIn;
1
+ /// <reference types="react" />
2
+ declare type RenderFnArgs = {
3
+ isAuthenticated: boolean;
4
+ };
5
+ declare type Props = {
6
+ render: (args: RenderFnArgs) => JSX.Element;
7
+ children?: never;
8
+ };
9
+ declare const AmILoggedIn: {
10
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
11
+ displayName: string;
12
+ };
13
+ export default AmILoggedIn;
@@ -1,16 +1,16 @@
1
- /// <reference types="react" />
2
- import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
3
- declare type RenderFnArgs = {
4
- isAuthenticated: boolean;
5
- };
6
- export declare type TProps = {
7
- render: (args: RenderFnArgs) => JSX.Element;
8
- locale: string;
9
- applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
10
- children?: never;
11
- };
12
- declare const AuthenticationRoutes: {
13
- (props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- export default AuthenticationRoutes;
1
+ /// <reference types="react" />
2
+ import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
3
+ declare type RenderFnArgs = {
4
+ isAuthenticated: boolean;
5
+ };
6
+ export declare type TProps = {
7
+ render: (args: RenderFnArgs) => JSX.Element;
8
+ locale: string;
9
+ applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
10
+ children?: never;
11
+ };
12
+ declare const AuthenticationRoutes: {
13
+ (props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ export default AuthenticationRoutes;
@@ -1,2 +1,2 @@
1
- declare const hasCachedAuthenticationState: () => boolean;
2
- export default hasCachedAuthenticationState;
1
+ declare const hasCachedAuthenticationState: () => boolean;
2
+ export default hasCachedAuthenticationState;
@@ -1,8 +1,8 @@
1
- import type { ApplicationOidcForDevelopmentConfig } from '@commercetools-frontend/constants';
2
- declare type BuilOidcScopeOptions = {
3
- projectKey?: ApplicationOidcForDevelopmentConfig['initialProjectKey'];
4
- oAuthScopes?: ApplicationOidcForDevelopmentConfig['oAuthScopes'];
5
- teamId?: ApplicationOidcForDevelopmentConfig['teamId'];
6
- };
7
- declare const buildOidcScope: (options: BuilOidcScopeOptions) => string;
8
- export { buildOidcScope };
1
+ import type { ApplicationOidcForDevelopmentConfig } from '@commercetools-frontend/constants';
2
+ declare type BuilOidcScopeOptions = {
3
+ projectKey?: ApplicationOidcForDevelopmentConfig['initialProjectKey'];
4
+ oAuthScopes?: ApplicationOidcForDevelopmentConfig['oAuthScopes'];
5
+ teamId?: ApplicationOidcForDevelopmentConfig['teamId'];
6
+ };
7
+ declare const buildOidcScope: (options: BuilOidcScopeOptions) => string;
8
+ export { buildOidcScope };
@@ -1 +1 @@
1
- export { default } from './authenticated';
1
+ export { default } from './authenticated';