@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,67 +1,67 @@
1
- /// <reference types="react" />
2
- import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
3
- import type { TApplicationsMenu } from '../../types/generated/proxy';
4
- declare type HookProps = {
5
- environment: TApplicationContext<{}>['environment'];
6
- DEV_ONLY__loadNavbarMenuConfig?: () => Promise<TApplicationsMenu['navBar']>;
7
- };
8
- declare const useNavbarStateManager: (props: HookProps) => {
9
- navBarNode: import("react").RefObject<HTMLElement>;
10
- handleToggleItem: (nextActiveItemIndex: string) => void;
11
- handleToggleMenu: () => void;
12
- shouldCloseMenuFly: (e: React.MouseEvent<HTMLElement> | MouseEvent) => void;
13
- allApplicationNavbarMenu: {
14
- __typename?: "NavbarMenu" | undefined;
15
- shouldRenderDivider: import("../../types/generated/proxy").Maybe<boolean>;
16
- key: string;
17
- uriPath: string;
18
- icon: string;
19
- featureToggle: import("../../types/generated/proxy").Maybe<string>;
20
- menuVisibility: import("../../types/generated/proxy").Maybe<string>;
21
- permissions: string[];
22
- labelAllLocales: {
23
- __typename?: "LocalizedField" | undefined;
24
- locale: string;
25
- value: string;
26
- }[];
27
- dataFences: import("../../types/generated/proxy").Maybe<{
28
- __typename?: "DataFence" | undefined;
29
- group: string;
30
- name: string;
31
- type: string;
32
- }[]>;
33
- actionRights: import("../../types/generated/proxy").Maybe<{
34
- __typename?: "ActionRight" | undefined;
35
- group: string;
36
- name: string;
37
- }[]>;
38
- submenu: {
39
- __typename?: "BaseMenu" | undefined;
40
- key: string;
41
- uriPath: string;
42
- featureToggle: import("../../types/generated/proxy").Maybe<string>;
43
- menuVisibility: import("../../types/generated/proxy").Maybe<string>;
44
- permissions: string[];
45
- labelAllLocales: {
46
- __typename?: "LocalizedField" | undefined;
47
- locale: string;
48
- value: string;
49
- }[];
50
- actionRights: import("../../types/generated/proxy").Maybe<{
51
- __typename?: "ActionRight" | undefined;
52
- group: string;
53
- name: string;
54
- }[]>;
55
- dataFences: import("../../types/generated/proxy").Maybe<{
56
- __typename?: "DataFence" | undefined;
57
- group: string;
58
- name: string;
59
- type: string;
60
- }[]>;
61
- }[];
62
- }[];
63
- activeItemIndex?: string | undefined;
64
- isExpanderVisible: boolean;
65
- isMenuOpen: boolean;
66
- };
67
- export default useNavbarStateManager;
1
+ /// <reference types="react" />
2
+ import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
3
+ import type { TApplicationsMenu } from '../../types/generated/proxy';
4
+ declare type HookProps = {
5
+ environment: TApplicationContext<{}>['environment'];
6
+ DEV_ONLY__loadNavbarMenuConfig?: () => Promise<TApplicationsMenu['navBar']>;
7
+ };
8
+ declare const useNavbarStateManager: (props: HookProps) => {
9
+ navBarNode: import("react").RefObject<HTMLElement>;
10
+ handleToggleItem: (nextActiveItemIndex: string) => void;
11
+ handleToggleMenu: () => void;
12
+ shouldCloseMenuFly: (e: React.MouseEvent<HTMLElement> | MouseEvent) => void;
13
+ allApplicationNavbarMenu: {
14
+ __typename?: "NavbarMenu" | undefined;
15
+ shouldRenderDivider: import("../../types/generated/proxy").Maybe<boolean>;
16
+ key: string;
17
+ uriPath: string;
18
+ icon: string;
19
+ featureToggle: import("../../types/generated/proxy").Maybe<string>;
20
+ menuVisibility: import("../../types/generated/proxy").Maybe<string>;
21
+ permissions: string[];
22
+ labelAllLocales: {
23
+ __typename?: "LocalizedField" | undefined;
24
+ locale: string;
25
+ value: string;
26
+ }[];
27
+ dataFences: import("../../types/generated/proxy").Maybe<{
28
+ __typename?: "DataFence" | undefined;
29
+ group: string;
30
+ name: string;
31
+ type: string;
32
+ }[]>;
33
+ actionRights: import("../../types/generated/proxy").Maybe<{
34
+ __typename?: "ActionRight" | undefined;
35
+ group: string;
36
+ name: string;
37
+ }[]>;
38
+ submenu: {
39
+ __typename?: "BaseMenu" | undefined;
40
+ key: string;
41
+ uriPath: string;
42
+ featureToggle: import("../../types/generated/proxy").Maybe<string>;
43
+ menuVisibility: import("../../types/generated/proxy").Maybe<string>;
44
+ permissions: string[];
45
+ labelAllLocales: {
46
+ __typename?: "LocalizedField" | undefined;
47
+ locale: string;
48
+ value: string;
49
+ }[];
50
+ actionRights: import("../../types/generated/proxy").Maybe<{
51
+ __typename?: "ActionRight" | undefined;
52
+ group: string;
53
+ name: string;
54
+ }[]>;
55
+ dataFences: import("../../types/generated/proxy").Maybe<{
56
+ __typename?: "DataFence" | undefined;
57
+ group: string;
58
+ name: string;
59
+ type: string;
60
+ }[]>;
61
+ }[];
62
+ }[];
63
+ activeItemIndex?: string | undefined;
64
+ isExpanderVisible: boolean;
65
+ isMenuOpen: boolean;
66
+ };
67
+ export default useNavbarStateManager;
@@ -1 +1 @@
1
- export { default } from './project-container';
1
+ export { default } from './project-container';
@@ -1,7 +1,7 @@
1
- declare const _default: {
2
- trialDaysLeft: {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- };
7
- export default _default;
1
+ declare const _default: {
2
+ trialDaysLeft: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -1,18 +1,18 @@
1
- import type { RouteComponentProps } from 'react-router-dom';
2
- import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
3
- import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
4
- import { ReactNode } from 'react';
5
- declare type QueryParams = {
6
- projectKey: string;
7
- };
8
- declare type Props<AdditionalEnvironmentProperties extends {}> = Pick<RouteComponentProps<QueryParams>, 'match' | 'location'> & {
9
- user: TFetchLoggedInUserQuery['user'];
10
- environment: TProviderProps<AdditionalEnvironmentProperties>['environment'];
11
- render?: () => JSX.Element;
12
- children?: ReactNode;
13
- };
14
- declare const ProjectContainer: {
15
- <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
16
- displayName: string;
17
- };
18
- export default ProjectContainer;
1
+ import type { RouteComponentProps } from 'react-router-dom';
2
+ import type { TProviderProps } from '@commercetools-frontend/application-shell-connectors';
3
+ import type { TFetchLoggedInUserQuery } from '../../types/generated/mc';
4
+ import { ReactNode } from 'react';
5
+ declare type QueryParams = {
6
+ projectKey: string;
7
+ };
8
+ declare type Props<AdditionalEnvironmentProperties extends {}> = Pick<RouteComponentProps<QueryParams>, 'match' | 'location'> & {
9
+ user: TFetchLoggedInUserQuery['user'];
10
+ environment: TProviderProps<AdditionalEnvironmentProperties>['environment'];
11
+ render?: () => JSX.Element;
12
+ children?: ReactNode;
13
+ };
14
+ declare const ProjectContainer: {
15
+ <AdditionalEnvironmentProperties extends {}>(props: Props<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ export default ProjectContainer;
@@ -1 +1 @@
1
- export { default } from './project-data-locale';
1
+ export { default } from './project-data-locale';
@@ -1,14 +1,14 @@
1
- import { ReactNode } from 'react';
2
- declare type RenderFnArgs = {
3
- locale: string;
4
- setProjectDataLocale: (locale: string) => void;
5
- };
6
- declare type Props = {
7
- locales: string[];
8
- children: (args: RenderFnArgs) => ReactNode;
9
- };
10
- declare const ProjectDataLocale: {
11
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
12
- displayName: string;
13
- };
14
- export default ProjectDataLocale;
1
+ import { ReactNode } from 'react';
2
+ declare type RenderFnArgs = {
3
+ locale: string;
4
+ setProjectDataLocale: (locale: string) => void;
5
+ };
6
+ declare type Props = {
7
+ locales: string[];
8
+ children: (args: RenderFnArgs) => ReactNode;
9
+ };
10
+ declare const ProjectDataLocale: {
11
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ export default ProjectDataLocale;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- declare const ProjectExpired: import("react").LazyExoticComponent<{
3
- (): import("@emotion/react/jsx-runtime").JSX.Element;
4
- displayName: string;
5
- }>;
6
- export default ProjectExpired;
1
+ /// <reference types="react" />
2
+ declare const ProjectExpired: import("react").LazyExoticComponent<{
3
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ }>;
6
+ export default ProjectExpired;
@@ -1,11 +1,11 @@
1
- declare const _default: {
2
- title: {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- paragraph1: {
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
+ paragraph1: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -1,5 +1,5 @@
1
- declare const ProjectExpired: {
2
- (): import("@emotion/react/jsx-runtime").JSX.Element;
3
- displayName: string;
4
- };
5
- export default ProjectExpired;
1
+ declare const ProjectExpired: {
2
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default ProjectExpired;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- declare const ProjectNotFound: import("react").LazyExoticComponent<{
3
- (): import("@emotion/react/jsx-runtime").JSX.Element;
4
- displayName: string;
5
- }>;
6
- export default ProjectNotFound;
1
+ /// <reference types="react" />
2
+ declare const ProjectNotFound: import("react").LazyExoticComponent<{
3
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ }>;
6
+ export default ProjectNotFound;
@@ -1,15 +1,15 @@
1
- declare const _default: {
2
- title: {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- paragraph1: {
7
- id: string;
8
- defaultMessage: string;
9
- };
10
- paragraph2: {
11
- id: string;
12
- defaultMessage: string;
13
- };
14
- };
15
- export default _default;
1
+ declare const _default: {
2
+ title: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ paragraph1: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ paragraph2: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ };
15
+ export default _default;
@@ -1,5 +1,5 @@
1
- declare const ProjectNotFound: {
2
- (): import("@emotion/react/jsx-runtime").JSX.Element;
3
- displayName: string;
4
- };
5
- export default ProjectNotFound;
1
+ declare const ProjectNotFound: {
2
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default ProjectNotFound;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- declare const ProjectNotInitialized: import("react").LazyExoticComponent<{
3
- (): import("@emotion/react/jsx-runtime").JSX.Element;
4
- displayName: string;
5
- }>;
6
- export default ProjectNotInitialized;
1
+ /// <reference types="react" />
2
+ declare const ProjectNotInitialized: import("react").LazyExoticComponent<{
3
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ }>;
6
+ export default ProjectNotInitialized;
@@ -1,11 +1,11 @@
1
- declare const _default: {
2
- title: {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- paragraph1: {
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
+ paragraph1: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -1,5 +1,5 @@
1
- declare const ProjectNotInitialized: {
2
- (): import("@emotion/react/jsx-runtime").JSX.Element;
3
- displayName: string;
4
- };
5
- export default ProjectNotInitialized;
1
+ declare const ProjectNotInitialized: {
2
+ (): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default ProjectNotInitialized;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- declare const ProjectSuspended: import("react").LazyExoticComponent<{
3
- (props: {
4
- isTemporary?: boolean | undefined;
5
- }): import("@emotion/react/jsx-runtime").JSX.Element;
6
- displayName: string;
7
- }>;
8
- export default ProjectSuspended;
1
+ /// <reference types="react" />
2
+ declare const ProjectSuspended: import("react").LazyExoticComponent<{
3
+ (props: {
4
+ isTemporary?: boolean | undefined;
5
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ }>;
8
+ export default ProjectSuspended;
@@ -1,15 +1,15 @@
1
- declare const _default: {
2
- defaultSuspensionMessage: {
3
- id: string;
4
- defaultMessage: string;
5
- };
6
- temporaryMaintenanceSuspensionMessage: {
7
- id: string;
8
- defaultMessage: string;
9
- };
10
- paragraph1: {
11
- id: string;
12
- defaultMessage: string;
13
- };
14
- };
15
- export default _default;
1
+ declare const _default: {
2
+ defaultSuspensionMessage: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ temporaryMaintenanceSuspensionMessage: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ paragraph1: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ };
15
+ export default _default;
@@ -1,8 +1,8 @@
1
- declare type Props = {
2
- isTemporary?: boolean;
3
- };
4
- declare const ProjectSuspended: {
5
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
6
- displayName: string;
7
- };
8
- export default ProjectSuspended;
1
+ declare type Props = {
2
+ isTemporary?: boolean;
3
+ };
4
+ declare const ProjectSuspended: {
5
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ export default ProjectSuspended;
@@ -1 +1 @@
1
- export { default } from './project-switcher';
1
+ export { default } from './project-switcher';
@@ -1,28 +1,28 @@
1
- declare const _default: {
2
- projects: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- searchPlaceholder: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- noResults: {
13
- id: string;
14
- description: string;
15
- defaultMessage: string;
16
- };
17
- suspended: {
18
- id: string;
19
- description: string;
20
- defaultMessage: string;
21
- };
22
- expired: {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- };
27
- };
28
- export default _default;
1
+ declare const _default: {
2
+ projects: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ searchPlaceholder: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ noResults: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
17
+ suspended: {
18
+ id: string;
19
+ description: string;
20
+ defaultMessage: string;
21
+ };
22
+ expired: {
23
+ id: string;
24
+ description: string;
25
+ defaultMessage: string;
26
+ };
27
+ };
28
+ export default _default;
@@ -1,18 +1,18 @@
1
- import type { OptionProps, ValueContainerProps } from 'react-select';
2
- import type { TProject } from '../../types/generated/mc';
3
- declare type Props = {
4
- projectKey?: string;
5
- };
6
- declare type OptionType = Pick<TProject, 'key' | 'name' | 'suspension' | 'expiry'> & {
7
- label: string;
8
- };
9
- declare type CustomValueContainerProps = ValueContainerProps<OptionType, false> & {
10
- projectCount: number;
11
- };
12
- export declare const ProjectSwitcherValueContainer: ({ projectCount, ...restProps }: CustomValueContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
13
- export declare const ProjectSwitcherOption: (props: OptionProps<OptionType, false>) => import("@emotion/react/jsx-runtime").JSX.Element;
14
- declare const ProjectSwitcher: {
15
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
16
- displayName: string;
17
- };
18
- export default ProjectSwitcher;
1
+ import type { OptionProps, ValueContainerProps } from 'react-select';
2
+ import type { TProject } from '../../types/generated/mc';
3
+ declare type Props = {
4
+ projectKey?: string;
5
+ };
6
+ declare type OptionType = Pick<TProject, 'key' | 'name' | 'suspension' | 'expiry'> & {
7
+ label: string;
8
+ };
9
+ declare type CustomValueContainerProps = ValueContainerProps<OptionType, false> & {
10
+ projectCount: number;
11
+ };
12
+ export declare const ProjectSwitcherValueContainer: ({ projectCount, ...restProps }: CustomValueContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export declare const ProjectSwitcherOption: (props: OptionProps<OptionType, false>) => import("@emotion/react/jsx-runtime").JSX.Element;
14
+ declare const ProjectSwitcher: {
15
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
16
+ displayName: string;
17
+ };
18
+ export default ProjectSwitcher;
@@ -1,14 +1,14 @@
1
- import type { Command, SearchText, HistoryEntry } from '../types';
2
- declare type Props = {
3
- historyEntries: HistoryEntry[];
4
- onHistoryEntriesChange: (historyEntries: HistoryEntry[]) => void;
5
- search: (searchText: SearchText) => Promise<Command[]>;
6
- getNextCommands: (command: Command) => Promise<Command[]>;
7
- executeCommand: (command: Command, meta: {
8
- openInNewTab: boolean;
9
- }) => void;
10
- onClose: () => void;
11
- classNameShakeAnimation: string;
12
- };
13
- declare const ButlerWithAnimation: (props: Omit<Props, 'classNameShakeAnimation'>) => import("@emotion/react/jsx-runtime").JSX.Element;
14
- export default ButlerWithAnimation;
1
+ import type { Command, SearchText, HistoryEntry } from '../types';
2
+ declare type Props = {
3
+ historyEntries: HistoryEntry[];
4
+ onHistoryEntriesChange: (historyEntries: HistoryEntry[]) => void;
5
+ search: (searchText: SearchText) => Promise<Command[]>;
6
+ getNextCommands: (command: Command) => Promise<Command[]>;
7
+ executeCommand: (command: Command, meta: {
8
+ openInNewTab: boolean;
9
+ }) => void;
10
+ onClose: () => void;
11
+ classNameShakeAnimation: string;
12
+ };
13
+ declare const ButlerWithAnimation: (props: Omit<Props, 'classNameShakeAnimation'>) => import("@emotion/react/jsx-runtime").JSX.Element;
14
+ export default ButlerWithAnimation;
@@ -1 +1 @@
1
- export { default } from './butler';
1
+ export { default } from './butler';
@@ -1,24 +1,24 @@
1
- import type { Command } from '../types';
2
- import { MouseEventHandler } from 'react';
3
- import PropTypes from 'prop-types';
4
- declare type Props = {
5
- command: Command;
6
- isSelected?: boolean;
7
- onClick: MouseEventHandler<HTMLDivElement>;
8
- onMouseEnter: MouseEventHandler<HTMLDivElement>;
9
- };
10
- declare const ButlerCommand: {
11
- (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
12
- displayName: string;
13
- propTypes: {
14
- command: PropTypes.Validator<PropTypes.InferProps<{
15
- id: PropTypes.Validator<string>;
16
- text: PropTypes.Validator<string>;
17
- subCommands: PropTypes.Requireable<((...args: any[]) => any) | (object | null | undefined)[]>;
18
- }>>;
19
- isSelected: PropTypes.Requireable<boolean>;
20
- onMouseEnter: PropTypes.Validator<(...args: any[]) => any>;
21
- onClick: PropTypes.Validator<(...args: any[]) => any>;
22
- };
23
- };
24
- export default ButlerCommand;
1
+ import type { Command } from '../types';
2
+ import { MouseEventHandler } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ declare type Props = {
5
+ command: Command;
6
+ isSelected?: boolean;
7
+ onClick: MouseEventHandler<HTMLDivElement>;
8
+ onMouseEnter: MouseEventHandler<HTMLDivElement>;
9
+ };
10
+ declare const ButlerCommand: {
11
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ propTypes: {
14
+ command: PropTypes.Validator<PropTypes.InferProps<{
15
+ id: PropTypes.Validator<string>;
16
+ text: PropTypes.Validator<string>;
17
+ subCommands: PropTypes.Requireable<((...args: any[]) => any) | (object | null | undefined)[]>;
18
+ }>>;
19
+ isSelected: PropTypes.Requireable<boolean>;
20
+ onMouseEnter: PropTypes.Validator<(...args: any[]) => any>;
21
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
22
+ };
23
+ };
24
+ export default ButlerCommand;
@@ -1 +1 @@
1
- export { default } from './butler-command';
1
+ export { default } from './butler-command';