@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
@@ -1,12 +1,12 @@
1
- import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
2
- declare type TProps = {
3
- message: string;
4
- locale: string;
5
- applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
6
- children?: never;
7
- };
8
- declare const AuthCallbackErrorPage: {
9
- (props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
12
- export default AuthCallbackErrorPage;
1
+ import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
2
+ declare type TProps = {
3
+ message: string;
4
+ locale: string;
5
+ applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
6
+ children?: never;
7
+ };
8
+ declare const AuthCallbackErrorPage: {
9
+ (props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ export default AuthCallbackErrorPage;
@@ -1,11 +1,11 @@
1
- import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
2
- export declare type TProps = {
3
- locale: string;
4
- applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
5
- children?: never;
6
- };
7
- declare const OidcCallback: {
8
- (props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
11
- export default OidcCallback;
1
+ import type { TAsyncLocaleDataProps } from '@commercetools-frontend/i18n';
2
+ export declare type TProps = {
3
+ locale: string;
4
+ applicationMessages: TAsyncLocaleDataProps['applicationMessages'];
5
+ children?: never;
6
+ };
7
+ declare const OidcCallback: {
8
+ (props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default OidcCallback;
@@ -1,6 +1,6 @@
1
- export declare type AuthorizeSessionState = {
2
- applicationId: string;
3
- query: {
4
- redirectTo?: string;
5
- };
6
- };
1
+ export declare type AuthorizeSessionState = {
2
+ applicationId: string;
3
+ query: {
4
+ redirectTo?: string;
5
+ };
6
+ };
@@ -1,8 +1,8 @@
1
- declare type Props = {
2
- projectKey?: string;
3
- };
4
- export declare const BackToProject: {
5
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
6
- displayName: string;
7
- };
8
- export default BackToProject;
1
+ declare type Props = {
2
+ projectKey?: string;
3
+ };
4
+ export declare const BackToProject: {
5
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ export default BackToProject;
@@ -1 +1 @@
1
- export { default } from './back-to-project';
1
+ export { default } from './back-to-project';
@@ -1,7 +1,7 @@
1
- declare const _default: {
2
- backToProjectLink: {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- };
7
- export default _default;
1
+ declare const _default: {
2
+ backToProjectLink: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -1,12 +1,12 @@
1
- import type { IntlConfig } from 'react-intl';
2
- import { ReactNode } from 'react';
3
- declare type Props = {
4
- locale?: string;
5
- messages?: IntlConfig['messages'];
6
- children: ReactNode;
7
- };
8
- declare const ConfigureIntlProvider: {
9
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
10
- displayName: string;
11
- };
12
- export default ConfigureIntlProvider;
1
+ import type { IntlConfig } from 'react-intl';
2
+ import { ReactNode } from 'react';
3
+ declare type Props = {
4
+ locale?: string;
5
+ messages?: IntlConfig['messages'];
6
+ children: ReactNode;
7
+ };
8
+ declare const ConfigureIntlProvider: {
9
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
10
+ displayName: string;
11
+ };
12
+ export default ConfigureIntlProvider;
@@ -1 +1 @@
1
- export { default } from './configure-intl-provider';
1
+ export { default } from './configure-intl-provider';
@@ -1,5 +1,5 @@
1
- declare const ErrorApologizer: {
2
- (): import("@emotion/react/jsx-runtime").JSX.Element;
3
- displayName: string;
4
- };
5
- export default ErrorApologizer;
1
+ declare const ErrorApologizer: {
2
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default ErrorApologizer;
@@ -1 +1 @@
1
- export { default } from './error-apologizer';
1
+ export { default } from './error-apologizer';
@@ -1,11 +1,11 @@
1
- declare const _default: {
2
- title: {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- notifiedTeam: {
7
- id: string;
8
- defaultMessage: string;
9
- };
10
- };
11
- export default _default;
1
+ declare const _default: {
2
+ title: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ notifiedTeam: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -1,20 +1,20 @@
1
- import { Component, ErrorInfo, ReactNode } from 'react';
2
- declare type Props = {
3
- pathname?: string;
4
- children: ReactNode;
5
- };
6
- declare type State = {
7
- hasError: boolean;
8
- };
9
- declare class ErrorBoundary extends Component<Props, State> {
10
- static getDerivedStateFromError(): {
11
- hasError: boolean;
12
- };
13
- state: {
14
- hasError: boolean;
15
- };
16
- componentDidUpdate(prevProps: Props): void;
17
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
18
- render(): import("@emotion/react/jsx-runtime").JSX.Element;
19
- }
20
- export default ErrorBoundary;
1
+ import { Component, ErrorInfo, ReactNode } from 'react';
2
+ declare type Props = {
3
+ pathname?: string;
4
+ children: ReactNode;
5
+ };
6
+ declare type State = {
7
+ hasError: boolean;
8
+ };
9
+ declare class ErrorBoundary extends Component<Props, State> {
10
+ static getDerivedStateFromError(): {
11
+ hasError: boolean;
12
+ };
13
+ state: {
14
+ hasError: boolean;
15
+ };
16
+ componentDidUpdate(prevProps: Props): void;
17
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
18
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
19
+ }
20
+ export default ErrorBoundary;
@@ -1 +1 @@
1
- export { default } from './error-boundary';
1
+ export { default } from './error-boundary';
@@ -1,18 +1,18 @@
1
- import type { ApolloError } from '@apollo/client/errors';
2
- import type { TFetchProjectQuery } from '../../types/generated/mc';
3
- import { ReactNode } from 'react';
4
- declare type RenderFnArgs = {
5
- isLoading: boolean;
6
- error?: ApolloError;
7
- project: TFetchProjectQuery['project'];
8
- };
9
- declare type Props = {
10
- projectKey: string;
11
- skip?: boolean;
12
- children: (args: RenderFnArgs) => ReactNode;
13
- };
14
- declare const FetchProject: {
15
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
16
- displayName: string;
17
- };
18
- export default FetchProject;
1
+ import type { ApolloError } from '@apollo/client/errors';
2
+ import type { TFetchProjectQuery } from '../../types/generated/mc';
3
+ import { ReactNode } from 'react';
4
+ declare type RenderFnArgs = {
5
+ isLoading: boolean;
6
+ error?: ApolloError;
7
+ project: TFetchProjectQuery['project'];
8
+ };
9
+ declare type Props = {
10
+ projectKey: string;
11
+ skip?: boolean;
12
+ children: (args: RenderFnArgs) => ReactNode;
13
+ };
14
+ declare const FetchProject: {
15
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ export default FetchProject;
@@ -1 +1 @@
1
- export { default } from './fetch-project';
1
+ export { default } from './fetch-project';
@@ -1,16 +1,16 @@
1
- import type { ApolloError } from '@apollo/client/errors';
2
- import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
3
- import { ReactNode } from 'react';
4
- declare type RenderFnArgs = {
5
- isLoading: boolean;
6
- error?: ApolloError;
7
- user: TFetchLoggedInUserQuery['user'];
8
- };
9
- declare type Props = {
10
- children: (args: RenderFnArgs) => ReactNode;
11
- };
12
- declare const FetchUser: {
13
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- export default FetchUser;
1
+ import type { ApolloError } from '@apollo/client/errors';
2
+ import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
3
+ import { ReactNode } from 'react';
4
+ declare type RenderFnArgs = {
5
+ isLoading: boolean;
6
+ error?: ApolloError;
7
+ user: TFetchLoggedInUserQuery['user'];
8
+ };
9
+ declare type Props = {
10
+ children: (args: RenderFnArgs) => ReactNode;
11
+ };
12
+ declare const FetchUser: {
13
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ export default FetchUser;
@@ -1 +1 @@
1
- export { default } from './fetch-user';
1
+ export { default } from './fetch-user';
@@ -1,10 +1,10 @@
1
- declare type Props = {
2
- applicationName: string;
3
- projectKey?: string;
4
- userBusinessRole?: string;
5
- };
6
- declare const GtmApplicationTracker: {
7
- (props: Props): null;
8
- displayName: string;
9
- };
10
- export default GtmApplicationTracker;
1
+ declare type Props = {
2
+ applicationName: string;
3
+ projectKey?: string;
4
+ userBusinessRole?: string;
5
+ };
6
+ declare const GtmApplicationTracker: {
7
+ (props: Props): null;
8
+ displayName: string;
9
+ };
10
+ export default GtmApplicationTracker;
@@ -1 +1 @@
1
- export { default } from './gtm-application-tracker';
1
+ export { default } from './gtm-application-tracker';
@@ -1,20 +1,20 @@
1
- import { ReactNode } from 'react';
2
- export declare type TGtmTrackingEventList = {
3
- [key: string]: string;
4
- };
5
- export declare type Props = {
6
- trackingEventList: {
7
- [key: string]: string | TGtmTrackingEventList;
8
- };
9
- children: ReactNode;
10
- };
11
- export declare const GtmContext: import("react").Context<{
12
- track: (action: string, category: string, label?: string | undefined) => void;
13
- getHierarchy: (node: Node | null) => string;
14
- trackUserBusinessRole: (userBusinessRole?: string | undefined) => void;
15
- }>;
16
- declare const GtmBooter: {
17
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
20
- export default GtmBooter;
1
+ import { ReactNode } from 'react';
2
+ export declare type TGtmTrackingEventList = {
3
+ [key: string]: string;
4
+ };
5
+ export declare type Props = {
6
+ trackingEventList: {
7
+ [key: string]: string | TGtmTrackingEventList;
8
+ };
9
+ children: ReactNode;
10
+ };
11
+ export declare const GtmContext: import("react").Context<{
12
+ track: (action: string, category: string, label?: string | undefined) => void;
13
+ getHierarchy: (node: Node | null) => string;
14
+ trackUserBusinessRole: (userBusinessRole?: string | undefined) => void;
15
+ }>;
16
+ declare const GtmBooter: {
17
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ export default GtmBooter;
@@ -1,2 +1,2 @@
1
- export { default } from './gtm-booter';
2
- export { GtmContext } from './gtm-booter';
1
+ export { default } from './gtm-booter';
2
+ export { GtmContext } from './gtm-booter';
@@ -1,5 +1,5 @@
1
- declare const GtmUserLogoutTracker: {
2
- (): null;
3
- displayName: string;
4
- };
5
- export default GtmUserLogoutTracker;
1
+ declare const GtmUserLogoutTracker: {
2
+ (): null;
3
+ displayName: string;
4
+ };
5
+ export default GtmUserLogoutTracker;
@@ -1 +1 @@
1
- export { default } from './gtm-user-logout-tracker';
1
+ export { default } from './gtm-user-logout-tracker';
@@ -1,10 +1,10 @@
1
- import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
2
- declare type TFetchedUser = TFetchLoggedInUserQuery['user'];
3
- declare type Props = {
4
- user: TFetchedUser;
5
- };
6
- declare const GtmUserTracker: {
7
- (props: Props): null;
8
- displayName: string;
9
- };
10
- export default GtmUserTracker;
1
+ import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
2
+ declare type TFetchedUser = TFetchLoggedInUserQuery['user'];
3
+ declare type Props = {
4
+ user: TFetchedUser;
5
+ };
6
+ declare const GtmUserTracker: {
7
+ (props: Props): null;
8
+ displayName: string;
9
+ };
10
+ export default GtmUserTracker;
@@ -1 +1 @@
1
- export { default } from './gtm-user-tracker';
1
+ export { default } from './gtm-user-tracker';
@@ -1 +1 @@
1
- export { default } from './inject-reducers';
1
+ export { default } from './inject-reducers';
@@ -1,14 +1,14 @@
1
- import type { ReducersMapObject } from 'redux';
2
- import { ReactNode } from 'react';
3
- declare type Props = {
4
- id: string;
5
- reducers: ReducersMapObject;
6
- shouldCleanUpOnUnmount: boolean;
7
- children: ReactNode;
8
- };
9
- declare const InjectReducers: {
10
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
11
- displayName: string;
12
- defaultProps: Pick<Props, "shouldCleanUpOnUnmount">;
13
- };
14
- export default InjectReducers;
1
+ import type { ReducersMapObject } from 'redux';
2
+ import { ReactNode } from 'react';
3
+ declare type Props = {
4
+ id: string;
5
+ reducers: ReducersMapObject;
6
+ shouldCleanUpOnUnmount: boolean;
7
+ children: ReactNode;
8
+ };
9
+ declare const InjectReducers: {
10
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
11
+ displayName: string;
12
+ defaultProps: Pick<Props, "shouldCleanUpOnUnmount">;
13
+ };
14
+ export default InjectReducers;
@@ -1 +1 @@
1
- export { default } from './loading-placeholder';
1
+ export { default } from './loading-placeholder';
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- shape: 'dot' | 'rect';
4
- size: 's' | 'm' | 'l' | 'xl';
5
- };
6
- declare const LoadingPlaceholder: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
9
- } & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export default LoadingPlaceholder;
1
+ /// <reference types="react" />
2
+ declare type Props = {
3
+ shape: 'dot' | 'rect';
4
+ size: 's' | 'm' | 'l' | 'xl';
5
+ };
6
+ declare const LoadingPlaceholder: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ } & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export default LoadingPlaceholder;
@@ -1 +1 @@
1
- export { default } from './locale-switcher';
1
+ export { default } from './locale-switcher';
@@ -1,23 +1,23 @@
1
- import type { SingleValueProps } from 'react-select';
2
- import PropTypes from 'prop-types';
3
- declare type CustomSingleValueProps = SingleValueProps<{
4
- label: string;
5
- value: string;
6
- }> & {
7
- localeCount: number;
8
- };
9
- declare type Props = {
10
- projectDataLocale: string;
11
- setProjectDataLocale: (locale: string) => void;
12
- availableLocales: string[];
13
- };
14
- export declare const SingleValue: {
15
- (props: CustomSingleValueProps): import("@emotion/react/jsx-runtime").JSX.Element;
16
- propTypes: {
17
- children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
18
- localeCount: PropTypes.Validator<number>;
19
- };
20
- displayName: string;
21
- };
22
- declare const LocaleSwitcher: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
23
- export default LocaleSwitcher;
1
+ import type { SingleValueProps } from 'react-select';
2
+ import PropTypes from 'prop-types';
3
+ declare type CustomSingleValueProps = SingleValueProps<{
4
+ label: string;
5
+ value: string;
6
+ }> & {
7
+ localeCount: number;
8
+ };
9
+ declare type Props = {
10
+ projectDataLocale: string;
11
+ setProjectDataLocale: (locale: string) => void;
12
+ availableLocales: string[];
13
+ };
14
+ export declare const SingleValue: {
15
+ (props: CustomSingleValueProps): import("@emotion/react/jsx-runtime").JSX.Element;
16
+ propTypes: {
17
+ children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
18
+ localeCount: PropTypes.Validator<number>;
19
+ };
20
+ displayName: string;
21
+ };
22
+ declare const LocaleSwitcher: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export default LocaleSwitcher;
@@ -1 +1 @@
1
- export { default, LoadingNavBar } from './navbar';
1
+ export { default, LoadingNavBar } from './navbar';
@@ -1,7 +1,7 @@
1
- declare const _default: {
2
- 'NavBar.MCSupport.title': {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- };
7
- export default _default;
1
+ declare const _default: {
2
+ 'NavBar.MCSupport.title': {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -1,29 +1,29 @@
1
- import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
2
- import type { TFetchProjectQuery } from '../../types/generated/mc';
3
- import type { TApplicationsMenu } from '../../types/generated/proxy';
4
- import { ReactNode, SyntheticEvent } from 'react';
5
- declare type MenuItemLinkProps = {
6
- linkTo?: string;
7
- exactMatch: boolean;
8
- children: ReactNode;
9
- onClick?: <TrackFn>(event: SyntheticEvent<HTMLAnchorElement>, track: TrackFn) => void;
10
- useFullRedirectsForLinks?: boolean;
11
- };
12
- export declare const getIconColor: (isActive: boolean, isAlternativeTheme: boolean) => "neutral60" | "surface" | "primary40";
13
- declare type NavbarProps<AdditionalEnvironmentProperties extends {}> = {
14
- applicationLocale: string;
15
- projectKey: string;
16
- environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
17
- project: TFetchProjectQuery['project'];
18
- onMenuItemClick?: MenuItemLinkProps['onClick'];
19
- DEV_ONLY__loadNavbarMenuConfig?: () => Promise<TApplicationsMenu['navBar']>;
20
- };
21
- declare const NavBar: {
22
- <AdditionalEnvironmentProperties extends {}>(props: NavbarProps<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
23
- displayName: string;
24
- };
25
- export default NavBar;
26
- export declare const LoadingNavBar: {
27
- (): import("@emotion/react/jsx-runtime").JSX.Element;
28
- displayName: string;
29
- };
1
+ import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
2
+ import type { TFetchProjectQuery } from '../../types/generated/mc';
3
+ import type { TApplicationsMenu } from '../../types/generated/proxy';
4
+ import { ReactNode, SyntheticEvent } from 'react';
5
+ declare type MenuItemLinkProps = {
6
+ linkTo?: string;
7
+ exactMatch: boolean;
8
+ children: ReactNode;
9
+ onClick?: <TrackFn>(event: SyntheticEvent<HTMLAnchorElement>, track: TrackFn) => void;
10
+ useFullRedirectsForLinks?: boolean;
11
+ };
12
+ export declare const getIconColor: (isActive: boolean, isAlternativeTheme: boolean) => "neutral60" | "surface" | "primary40";
13
+ declare type NavbarProps<AdditionalEnvironmentProperties extends {}> = {
14
+ applicationLocale: string;
15
+ projectKey: string;
16
+ environment: TApplicationContext<AdditionalEnvironmentProperties>['environment'];
17
+ project: TFetchProjectQuery['project'];
18
+ onMenuItemClick?: MenuItemLinkProps['onClick'];
19
+ DEV_ONLY__loadNavbarMenuConfig?: () => Promise<TApplicationsMenu['navBar']>;
20
+ };
21
+ declare const NavBar: {
22
+ <AdditionalEnvironmentProperties extends {}>(props: NavbarProps<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
23
+ displayName: string;
24
+ };
25
+ export default NavBar;
26
+ export declare const LoadingNavBar: {
27
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ };
@@ -1 +1 @@
1
- export default function nonNullable<T>(value: T): value is NonNullable<T>;
1
+ export default function nonNullable<T>(value: T): value is NonNullable<T>;
@@ -1,2 +1,2 @@
1
- declare const useLoadingMenuLayoutEffect: () => void;
2
- export default useLoadingMenuLayoutEffect;
1
+ declare const useLoadingMenuLayoutEffect: () => void;
2
+ export default useLoadingMenuLayoutEffect;