@commercetools-frontend/application-shell 22.7.1 → 22.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/{application-entry-point-6853f92e.cjs.dev.js → application-entry-point-61deb1f6.cjs.dev.js} +3 -3
  2. package/dist/{application-entry-point-2bbea741.cjs.prod.js → application-entry-point-90aa1cdb.cjs.prod.js} +3 -3
  3. package/dist/{application-entry-point-97efa554.esm.js → application-entry-point-bfcf85aa.esm.js} +3 -3
  4. package/dist/{box-e17daf6c.cjs.prod.js → box-09bf50e1.cjs.prod.js} +2 -2
  5. package/dist/{box-686bc950.cjs.dev.js → box-4857aa65.cjs.dev.js} +2 -2
  6. package/dist/{box-6ce924c9.esm.js → box-9cf180c1.esm.js} +2 -2
  7. package/dist/{cart-f2fc1baf.cjs.prod.js → cart-645074db.cjs.prod.js} +2 -2
  8. package/dist/{cart-796beed7.cjs.dev.js → cart-b0044279.cjs.dev.js} +2 -2
  9. package/dist/{cart-3b156a46.esm.js → cart-bb491ca1.esm.js} +2 -2
  10. package/dist/commercetools-frontend-application-shell.cjs.dev.js +7 -7
  11. package/dist/commercetools-frontend-application-shell.cjs.prod.js +7 -7
  12. package/dist/commercetools-frontend-application-shell.esm.js +5 -4
  13. package/dist/{configure-apollo-99b8a3fe.cjs.dev.js → configure-apollo-459b0dbc.cjs.dev.js} +20 -19
  14. package/dist/{configure-apollo-2077e9e6.cjs.prod.js → configure-apollo-55d13684.cjs.prod.js} +20 -19
  15. package/dist/{configure-apollo-8bcf9317.esm.js → configure-apollo-a219411c.esm.js} +20 -19
  16. package/dist/{connected-square-960e046b.cjs.prod.js → connected-square-2d046cb8.cjs.prod.js} +2 -2
  17. package/dist/{connected-square-961eb5b6.cjs.dev.js → connected-square-a2fea344.cjs.dev.js} +2 -2
  18. package/dist/{connected-square-f34a98ff.esm.js → connected-square-fe6a790f.esm.js} +2 -2
  19. package/dist/{constants-a09fbec1.esm.js → constants-0b9c2426.esm.js} +10 -2
  20. package/dist/{constants-a1140922.cjs.dev.js → constants-0da1db32.cjs.prod.js} +10 -1
  21. package/dist/{constants-ed10e935.cjs.prod.js → constants-bef5a843.cjs.dev.js} +10 -1
  22. package/dist/custom-view-dev-host-58d037c2.cjs.dev.js +215 -0
  23. package/dist/custom-view-dev-host-77fdde9b.esm.js +202 -0
  24. package/dist/declarations/src/components/app-bar/app-bar.d.ts +1 -0
  25. package/dist/declarations/src/components/custom-view-dev-host/custom-view-dev-host.d.ts +11 -0
  26. package/dist/declarations/src/components/custom-view-dev-host/index.d.ts +6 -0
  27. package/dist/declarations/src/components/custom-view-loader/custom-view-loader.d.ts +8 -0
  28. package/dist/declarations/src/components/custom-view-loader/index.d.ts +1 -0
  29. package/dist/declarations/src/components/custom-view-loader/messages.d.ts +7 -0
  30. package/dist/declarations/src/components/custom-view-shell/custom-view-shell.d.ts +4 -4
  31. package/dist/declarations/src/components/custom-view-shell-authenticated/custom-view-shell-authenticated.d.ts +2 -1
  32. package/dist/declarations/src/components/navbar/index.d.ts +2 -98
  33. package/dist/declarations/src/components/navbar/navbar-new/compiled/navbar.css.json.d.ts +3 -0
  34. package/dist/declarations/src/components/navbar/navbar-new/menu-items.d.ts +102 -0
  35. package/dist/declarations/src/components/navbar/navbar-new/navbar.d.ts +48 -0
  36. package/dist/declarations/src/components/navbar/navbar-old/compiled/navbar.css.json.d.ts +3 -0
  37. package/dist/declarations/src/components/navbar/{menu-items.d.ts → navbar-old/menu-items.d.ts} +6 -6
  38. package/dist/declarations/src/components/navbar/navbar-old/navbar.d.ts +48 -0
  39. package/dist/declarations/src/components/navbar/navbar-old/navbar.styles.d.ts +7 -0
  40. package/dist/declarations/src/components/navbar/navbar.d.ts +4 -16
  41. package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +1 -0
  42. package/dist/declarations/src/components/project-container/index.d.ts +1 -19
  43. package/dist/declarations/src/constants.d.ts +8 -0
  44. package/dist/declarations/src/index.d.ts +1 -1
  45. package/dist/declarations/src/test-utils/custom-views-utils.d.ts +12 -0
  46. package/dist/declarations/src/test-utils/index.d.ts +1 -0
  47. package/dist/declarations/src/types/generated/ctp.d.ts +304 -3
  48. package/dist/declarations/src/types/generated/settings.d.ts +78 -2
  49. package/dist/{error-apologizer-e5c28e4c.esm.js → error-apologizer-76f087f4.esm.js} +2 -2
  50. package/dist/{error-apologizer-b3872f4d.cjs.prod.js → error-apologizer-84dc825c.cjs.prod.js} +2 -2
  51. package/dist/{error-apologizer-c3210e30.cjs.dev.js → error-apologizer-f6793491.cjs.dev.js} +2 -2
  52. package/dist/{gear-9b394c43.cjs.prod.js → gear-4f7cde98.cjs.prod.js} +2 -2
  53. package/dist/{gear-1f381738.esm.js → gear-ee90ba83.esm.js} +2 -2
  54. package/dist/{gear-ab1f6210.cjs.dev.js → gear-f2668579.cjs.dev.js} +2 -2
  55. package/dist/{heart-a6e7ccf9.cjs.dev.js → heart-01f01038.cjs.prod.js} +2 -2
  56. package/dist/{heart-be7c779b.esm.js → heart-86f780f3.esm.js} +2 -2
  57. package/dist/{heart-ebfab4cd.cjs.prod.js → heart-e49dd92a.cjs.dev.js} +2 -2
  58. package/dist/{index-6c0bc333.cjs.dev.js → index-0f5381b1.cjs.dev.js} +282 -156
  59. package/dist/{index-975c5225.esm.js → index-519cff4b.esm.js} +284 -157
  60. package/dist/{index-f85c276c.cjs.prod.js → index-e8c02aca.cjs.prod.js} +221 -127
  61. package/dist/{list-with-search-b5e9ae1b.cjs.dev.js → list-with-search-027ab8eb.cjs.dev.js} +2 -2
  62. package/dist/{list-with-search-e3ccba98.cjs.prod.js → list-with-search-6462447e.cjs.prod.js} +2 -2
  63. package/dist/{list-with-search-3341bbf7.esm.js → list-with-search-d2901e34.esm.js} +2 -2
  64. package/dist/navbar-8102a43b.esm.js +1991 -0
  65. package/dist/navbar-89b2edc4.cjs.dev.js +2021 -0
  66. package/dist/navbar-a29ebdeb.cjs.prod.js +1834 -0
  67. package/dist/{oidc-244125d3.cjs.dev.js → oidc-97f361cb.cjs.dev.js} +1 -1
  68. package/dist/{oidc-a780f067.cjs.prod.js → oidc-a55e3dd9.cjs.prod.js} +1 -1
  69. package/dist/{oidc-callback-7c234583.cjs.prod.js → oidc-callback-6415bb71.cjs.prod.js} +6 -5
  70. package/dist/{oidc-callback-7221e7d2.esm.js → oidc-callback-80314ba9.esm.js} +6 -5
  71. package/dist/{oidc-callback-80416189.cjs.dev.js → oidc-callback-ff8e12ba.cjs.dev.js} +6 -5
  72. package/dist/{oidc-c4e99cfc.esm.js → oidc-db881d40.esm.js} +1 -1
  73. package/dist/{paperclip-6f0b6ae5.cjs.prod.js → paperclip-005ec544.cjs.dev.js} +2 -2
  74. package/dist/{paperclip-c76aec52.esm.js → paperclip-a820ee87.esm.js} +2 -2
  75. package/dist/{paperclip-ec55e4a0.cjs.dev.js → paperclip-fe72a70d.cjs.prod.js} +2 -2
  76. package/dist/{plugin-16c01245.cjs.dev.js → plugin-81ae1044.cjs.prod.js} +2 -2
  77. package/dist/{plugin-279f88cd.esm.js → plugin-c7bf9e53.esm.js} +2 -2
  78. package/dist/{plugin-f199ed20.cjs.prod.js → plugin-feb22442.cjs.dev.js} +2 -2
  79. package/dist/{project-container-c36e4793.cjs.dev.js → project-container-bc3768d1.cjs.dev.js} +11 -11
  80. package/dist/{project-container-84c7881c.esm.js → project-container-bd9ab58b.esm.js} +11 -11
  81. package/dist/{project-container-20379b3d.cjs.prod.js → project-container-e24d4274.cjs.prod.js} +11 -11
  82. package/dist/{project-expired-fea5a2c6.cjs.dev.js → project-expired-1cf2470b.cjs.dev.js} +8 -7
  83. package/dist/{project-expired-84871cc1.cjs.prod.js → project-expired-ad577eea.cjs.prod.js} +8 -7
  84. package/dist/{project-expired-6f9e5ff9.esm.js → project-expired-cd0367e6.esm.js} +8 -7
  85. package/dist/{project-not-found-763dcf53.esm.js → project-not-found-47fe81e3.esm.js} +8 -7
  86. package/dist/{project-not-found-e55553d5.cjs.prod.js → project-not-found-531c1f36.cjs.prod.js} +8 -7
  87. package/dist/{project-not-found-382b664d.cjs.dev.js → project-not-found-bdf80892.cjs.dev.js} +8 -7
  88. package/dist/{project-not-initialized-8b3d52be.esm.js → project-not-initialized-b632dec8.esm.js} +8 -7
  89. package/dist/{project-not-initialized-be040234.cjs.prod.js → project-not-initialized-d12db254.cjs.prod.js} +8 -7
  90. package/dist/{project-not-initialized-aee7541a.cjs.dev.js → project-not-initialized-e903c05c.cjs.dev.js} +8 -7
  91. package/dist/{project-suspended-02eb3c52.esm.js → project-suspended-33c95408.esm.js} +8 -7
  92. package/dist/{project-suspended-506c7b5f.cjs.dev.js → project-suspended-5b038275.cjs.dev.js} +8 -7
  93. package/dist/{project-suspended-2df71dad.cjs.prod.js → project-suspended-65120ddf.cjs.prod.js} +8 -7
  94. package/dist/{quick-access-e474562c.esm.js → quick-access-134b051c.esm.js} +7 -8
  95. package/dist/{quick-access-bd5cc59f.cjs.prod.js → quick-access-444ebdce.cjs.prod.js} +7 -8
  96. package/dist/{quick-access-98ac50ec.cjs.dev.js → quick-access-59d69a96.cjs.dev.js} +7 -8
  97. package/dist/{redirect-to-login-2b6962dd.esm.js → redirect-to-login-6c90f034.esm.js} +12 -12
  98. package/dist/{redirect-to-login-cc23cd31.cjs.prod.js → redirect-to-login-bc568233.cjs.prod.js} +12 -12
  99. package/dist/{redirect-to-login-1e136a4f.cjs.dev.js → redirect-to-login-e4cbcc7a.cjs.dev.js} +12 -12
  100. package/dist/{redirect-to-logout-47a5daea.esm.js → redirect-to-logout-732ccf57.esm.js} +10 -9
  101. package/dist/{redirect-to-logout-d6dce2e6.cjs.dev.js → redirect-to-logout-cf0a4d95.cjs.dev.js} +10 -9
  102. package/dist/{redirect-to-logout-dd88770a.cjs.prod.js → redirect-to-logout-e608f60c.cjs.prod.js} +10 -9
  103. package/dist/{redirector-f71198cc.cjs.dev.js → redirector-5daa8baa.cjs.dev.js} +2 -2
  104. package/dist/{redirector-ec9fa17f.cjs.prod.js → redirector-752b4efc.cjs.prod.js} +2 -2
  105. package/dist/{redirector-368eeb0f.esm.js → redirector-db8b5cd2.esm.js} +2 -2
  106. package/dist/{requests-in-flight-loader-84434d03.cjs.prod.js → requests-in-flight-loader-a59adc86.cjs.prod.js} +7 -6
  107. package/dist/{requests-in-flight-loader-2b781c0e.esm.js → requests-in-flight-loader-b52b55fb.esm.js} +7 -6
  108. package/dist/{requests-in-flight-loader-d908a6df.cjs.dev.js → requests-in-flight-loader-cb996eb9.cjs.dev.js} +7 -6
  109. package/dist/{rocket-c6d44215.cjs.dev.js → rocket-3372731a.cjs.dev.js} +2 -2
  110. package/dist/{rocket-067c2f8c.esm.js → rocket-bacf24be.esm.js} +2 -2
  111. package/dist/{rocket-f0bfae34.cjs.prod.js → rocket-cb99be06.cjs.prod.js} +2 -2
  112. package/dist/{service-page-project-switcher-0546e7be.cjs.prod.js → service-page-project-switcher-23846f90.cjs.prod.js} +1 -1
  113. package/dist/{service-page-project-switcher-51ec5202.cjs.dev.js → service-page-project-switcher-68e55d2a.cjs.dev.js} +1 -1
  114. package/dist/{service-page-project-switcher-da4d68ce.esm.js → service-page-project-switcher-fc88ffa8.esm.js} +1 -1
  115. package/dist/{speedometer-0de260cf.cjs.prod.js → speedometer-26f52e73.cjs.prod.js} +2 -2
  116. package/dist/{speedometer-baa6ae82.esm.js → speedometer-4c8e0b9c.esm.js} +2 -2
  117. package/dist/{speedometer-aedd9660.cjs.dev.js → speedometer-c1ec5a1d.cjs.dev.js} +2 -2
  118. package/dist/{star-49745c72.cjs.dev.js → star-6b9a91d2.cjs.dev.js} +2 -2
  119. package/dist/{star-bd723a9c.esm.js → star-af90a9c6.esm.js} +2 -2
  120. package/dist/{star-c11b0683.cjs.prod.js → star-e4902bbb.cjs.prod.js} +2 -2
  121. package/dist/{tag-multi-2e7a68ec.cjs.dev.js → tag-multi-1c065f61.cjs.prod.js} +2 -2
  122. package/dist/{tag-multi-1dee8212.esm.js → tag-multi-4c2742de.esm.js} +2 -2
  123. package/dist/{tag-multi-f8d9c9e6.cjs.prod.js → tag-multi-abef3e15.cjs.dev.js} +2 -2
  124. package/dist/{tree-structure-690366f9.cjs.prod.js → tree-structure-3ec98cce.cjs.prod.js} +2 -2
  125. package/dist/{tree-structure-8c974c7a.cjs.dev.js → tree-structure-96ab0b7e.cjs.dev.js} +2 -2
  126. package/dist/{tree-structure-0a1dc6bf.esm.js → tree-structure-ca0498a0.esm.js} +2 -2
  127. package/dist/{use-applications-menu-1143a5ca.esm.js → use-applications-menu-15ea8813.esm.js} +3 -3
  128. package/dist/{use-applications-menu-5873c7ab.cjs.dev.js → use-applications-menu-4f35b214.cjs.dev.js} +3 -3
  129. package/dist/{use-applications-menu-08236536.cjs.prod.js → use-applications-menu-e19bc05b.cjs.prod.js} +3 -3
  130. package/dist/{user-filled-58af1ae4.cjs.prod.js → user-filled-26f333b2.cjs.prod.js} +2 -2
  131. package/dist/{user-filled-5dd7a51a.cjs.dev.js → user-filled-34aeebcc.cjs.dev.js} +2 -2
  132. package/dist/{user-filled-d40a7e17.esm.js → user-filled-61d8a81b.esm.js} +2 -2
  133. package/dist/{user-settings-menu-a724a9b9.cjs.prod.js → user-settings-menu-695efeec.cjs.prod.js} +9 -8
  134. package/dist/{user-settings-menu-986485b8.esm.js → user-settings-menu-8080c4ff.esm.js} +9 -8
  135. package/dist/{user-settings-menu-6a7ff392.cjs.dev.js → user-settings-menu-d08e3b19.cjs.dev.js} +9 -8
  136. package/dist/{version-tracker-90a08689.cjs.dev.js → version-tracker-0fe7660b.cjs.dev.js} +2 -2
  137. package/dist/{version-tracker-3d9b5cf0.cjs.prod.js → version-tracker-3b691dec.cjs.prod.js} +2 -2
  138. package/dist/{version-tracker-cba298d4.esm.js → version-tracker-cb877c84.esm.js} +2 -2
  139. package/dist/{world-bfd04f52.cjs.dev.js → world-22189397.cjs.prod.js} +2 -2
  140. package/dist/{world-f921d80c.cjs.prod.js → world-500baeb2.cjs.dev.js} +2 -2
  141. package/dist/{world-1b0e72fc.esm.js → world-523efd61.esm.js} +2 -2
  142. package/package.json +40 -39
  143. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
  144. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
  145. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
  146. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +52 -17
  147. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +52 -17
  148. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +53 -19
  149. package/dist/declarations/src/components/custom-view-context/custom-view-context.d.ts +0 -12
  150. package/dist/declarations/src/components/custom-view-context/index.d.ts +0 -1
  151. package/dist/declarations/src/components/navbar/compiled/navbar.css.json.d.ts +0 -3
  152. package/dist/navbar-0cdfe0f7.cjs.prod.js +0 -1173
  153. package/dist/navbar-383d5297.cjs.dev.js +0 -1269
  154. package/dist/navbar-cd29b896.esm.js +0 -1239
  155. /package/dist/declarations/src/components/navbar/{navbar-skeleton.d.ts → navbar-new/navbar-skeleton.d.ts} +0 -0
  156. /package/dist/declarations/src/components/navbar/{navbar-skeleton.styles.d.ts → navbar-new/navbar-skeleton.styles.d.ts} +0 -0
  157. /package/dist/declarations/src/components/navbar/{navbar.styles.d.ts → navbar-new/navbar.styles.d.ts} +0 -0
  158. /package/dist/declarations/src/components/navbar/{loading-navbar.d.ts → navbar-old/loading-navbar.d.ts} +0 -0
@@ -0,0 +1,102 @@
1
+ import { MouseEventHandler, type ReactNode, type SyntheticEvent } from 'react';
2
+ import type { TNormalizedMenuVisibilities, TNormalizedPermissions, TNormalizedActionRights, TNormalizedDataFences } from '@commercetools-frontend/application-shell-connectors';
3
+ import { BackIcon } from '@commercetools-uikit/icons';
4
+ import type { TDataFence, TActionRight, TLocalizedField } from '../../../types/generated/proxy';
5
+ type TProjectPermissions = {
6
+ permissions: TNormalizedPermissions | null;
7
+ actionRights: TNormalizedActionRights | null;
8
+ dataFences: TNormalizedDataFences | null;
9
+ };
10
+ type IconProps = Parameters<typeof BackIcon>[0];
11
+ type IconSwitcherProps = {
12
+ icon: string;
13
+ } & IconProps;
14
+ declare const IconSwitcher: {
15
+ ({ icon, ...iconProps }: IconSwitcherProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
16
+ displayName: string;
17
+ };
18
+ type MenuExpanderProps = {
19
+ isVisible: boolean;
20
+ onClick: MouseEventHandler<HTMLDivElement>;
21
+ isMenuOpen: boolean;
22
+ };
23
+ declare const MenuExpander: {
24
+ (props: MenuExpanderProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
25
+ displayName: string;
26
+ };
27
+ declare const Faded: import("@emotion/styled").StyledComponent<{
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ as?: import("react").ElementType<any> | undefined;
30
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
31
+ type MenuGroupProps = {
32
+ id: string;
33
+ level: 1 | 2;
34
+ isActive?: boolean;
35
+ isExpanded?: boolean;
36
+ hasSubmenu?: boolean;
37
+ children?: ReactNode;
38
+ submenuVerticalPosition?: number;
39
+ isSubmenuAboveMenuItem?: boolean;
40
+ };
41
+ declare const MenuGroup: import("react").ForwardRefExoticComponent<MenuGroupProps & import("react").RefAttributes<HTMLUListElement>>;
42
+ type MenuItemProps = {
43
+ hasSubmenu: boolean;
44
+ isActive: boolean;
45
+ isMainMenuRouteActive?: boolean;
46
+ isMenuOpen: boolean;
47
+ onClick: MouseEventHandler<HTMLElement>;
48
+ onMouseEnter?: MouseEventHandler<HTMLElement>;
49
+ onMouseLeave?: MouseEventHandler<HTMLElement>;
50
+ children: ReactNode;
51
+ };
52
+ declare const MenuItem: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
53
+ export type MenuItemLinkProps = {
54
+ linkTo?: string;
55
+ exactMatch: boolean;
56
+ children: ReactNode;
57
+ onClick?: (event: SyntheticEvent<HTMLAnchorElement>) => void;
58
+ useFullRedirectsForLinks?: boolean;
59
+ isSubmenuLink?: boolean;
60
+ };
61
+ declare const MenuItemLink: {
62
+ (props: MenuItemLinkProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
63
+ displayName: string;
64
+ defaultProps: Pick<MenuItemLinkProps, "exactMatch">;
65
+ };
66
+ type RestrictedMenuItemProps = {
67
+ featureToggle?: string;
68
+ namesOfMenuVisibilities?: string[];
69
+ projectPermissions: TProjectPermissions;
70
+ menuVisibilities: TNormalizedMenuVisibilities | null;
71
+ keyOfMenuItem: string;
72
+ permissions: string[];
73
+ actionRights?: TActionRight[];
74
+ dataFences?: TDataFence[];
75
+ children: ReactNode;
76
+ };
77
+ declare const RestrictedMenuItem: {
78
+ (props: RestrictedMenuItemProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
79
+ displayName: string;
80
+ defaultProps: Pick<RestrictedMenuItemProps, "permissions">;
81
+ };
82
+ type MenuLabelProps = {
83
+ labelAllLocales: TLocalizedField[];
84
+ defaultLabel?: string;
85
+ applicationLocale: string;
86
+ };
87
+ declare const MenuLabel: (props: MenuLabelProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
88
+ type TNavBarLayoutProps = {
89
+ children: ReactNode;
90
+ };
91
+ declare const NavBarLayout: import("react").ForwardRefExoticComponent<TNavBarLayoutProps & import("react").RefAttributes<HTMLElement>>;
92
+ type ItemContainerProps = {
93
+ labelAllLocales: TLocalizedField[];
94
+ defaultLabel?: string;
95
+ applicationLocale: string;
96
+ icon: string;
97
+ };
98
+ declare const ItemContainer: {
99
+ (props: ItemContainerProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
100
+ displayName: string;
101
+ };
102
+ export { RestrictedMenuItem, MenuItem, MenuItemLink, IconSwitcher, MenuGroup, MenuLabel, MenuExpander, Faded, NavBarLayout, ItemContainer, };
@@ -0,0 +1,48 @@
1
+ import { type MouseEventHandler } from 'react';
2
+ import type { RouteComponentProps } from 'react-router-dom';
3
+ import type { TApplicationContext, TNormalizedMenuVisibilities, TNormalizedPermissions, TNormalizedActionRights, TNormalizedDataFences } from '@commercetools-frontend/application-shell-connectors';
4
+ import type { TFetchProjectQuery } from '../../../types/generated/mc';
5
+ import type { TNavbarMenu } from '../../../types/generated/proxy';
6
+ import { type MenuItemLinkProps } from './menu-items';
7
+ type TProjectPermissions = {
8
+ permissions: TNormalizedPermissions | null;
9
+ actionRights: TNormalizedActionRights | null;
10
+ dataFences: TNormalizedDataFences | null;
11
+ };
12
+ type TMenuWithDefaultLabel = TNavbarMenu & {
13
+ defaultLabel?: string;
14
+ };
15
+ type ApplicationMenuProps = {
16
+ location: RouteComponentProps['location'];
17
+ menu: TMenuWithDefaultLabel;
18
+ isActive: boolean;
19
+ isMenuOpen: boolean;
20
+ shouldCloseMenuFly: MouseEventHandler<HTMLElement>;
21
+ projectPermissions: TProjectPermissions;
22
+ menuVisibilities: TNormalizedMenuVisibilities | null;
23
+ handleToggleItem: () => void;
24
+ applicationLocale: string;
25
+ projectKey: string;
26
+ useFullRedirectsForLinks: boolean;
27
+ onMenuItemClick?: MenuItemLinkProps['onClick'];
28
+ };
29
+ export declare const ApplicationMenu: {
30
+ (props: ApplicationMenuProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
31
+ displayName: string;
32
+ };
33
+ export type TNavbarProps = {
34
+ applicationLocale?: string;
35
+ projectKey: string;
36
+ environment: TApplicationContext<{
37
+ useFullRedirectsForLinks?: boolean;
38
+ }>['environment'];
39
+ project: TFetchProjectQuery['project'];
40
+ onMenuItemClick?: MenuItemLinkProps['onClick'];
41
+ isLoading: boolean;
42
+ isNewNavigationEnabledEvaluationReady: boolean;
43
+ };
44
+ declare const NavBar: {
45
+ (props: TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
46
+ displayName: string;
47
+ };
48
+ export default NavBar;
@@ -0,0 +1,3 @@
1
+ /* eslint-disable prettier/prettier */
2
+ declare const styles: {"left-navigation":"navbar-mod__left-navigation___B11QL","list":"navbar-mod__list___xLBjv","scrollable-menu":"navbar-mod__scrollable-menu___GUrXv","list-item":"navbar-mod__list-item___PtOVL","item-link":"navbar-mod__item-link___3b3a7","item-icon-text":"navbar-mod__item-icon-text___ZlMLY","icon":"navbar-mod__icon___xOiRj","icon__active":"navbar-mod__icon__active___8IKeB","title":"navbar-mod__title___uOjhW","expander":"navbar-mod__expander___1CChn","expand-icon":"navbar-mod__expand-icon___biAt6","item--bottom":"navbar-mod__item--bottom___RE98P","item__active":"navbar-mod__item__active___S-P3x","item_menu-open":"navbar-mod__item_menu-open___4wsej","item_menu-collapsed":"navbar-mod__item_menu-collapsed___SNDmx","item__no-submenu":"navbar-mod__item__no-submenu___mua5w","sublist":"navbar-mod__sublist___5VV4O","sublist-no-children":"navbar-mod__sublist-no-children___5Bwqb","title-copy":"navbar-mod__title-copy___SdRqf","sublist__inactive":"navbar-mod__sublist__inactive___9A4qo","sublist-item":"navbar-mod__sublist-item___d-8UM","text":"navbar-mod__text___a585r","text-link":"navbar-mod__text-link___pVuV6","item_menu__active":"navbar-mod__item_menu__active___c95PT","icon-container":"navbar-mod__icon-container___-yU8W","fixed-menu":"navbar-mod__fixed-menu___0HE2b","sublist-expanded__active":"navbar-mod__sublist-expanded__active___Fett-","sublist-collapsed__active":"navbar-mod__sublist-collapsed__active___NPTQn","highlighted":"navbar-mod__highlighted___WWk0R","hidden":"navbar-mod__hidden___kfXoC","divider":"navbar-mod__divider___A9rwl","loading-dot-container":"navbar-mod__loading-dot-container___8P8Tl"};
3
+ export default styles;
@@ -1,7 +1,7 @@
1
- import { MouseEventHandler, ReactNode, SyntheticEvent } from 'react';
1
+ import { MouseEventHandler, type ReactNode, type SyntheticEvent } from 'react';
2
2
  import type { TNormalizedMenuVisibilities, TNormalizedPermissions, TNormalizedActionRights, TNormalizedDataFences } from '@commercetools-frontend/application-shell-connectors';
3
3
  import { BackIcon } from '@commercetools-uikit/icons';
4
- import type { TDataFence, TActionRight, TLocalizedField } from '../../types/generated/proxy';
4
+ import type { TDataFence, TActionRight, TLocalizedField } from '../../../types/generated/proxy';
5
5
  type TProjectPermissions = {
6
6
  permissions: TNormalizedPermissions | null;
7
7
  actionRights: TNormalizedActionRights | null;
@@ -36,7 +36,6 @@ type MenuGroupProps = {
36
36
  hasSubmenu?: boolean;
37
37
  children?: ReactNode;
38
38
  verticalPosition?: number;
39
- isNewNavigationEnabled?: boolean;
40
39
  };
41
40
  declare const MenuGroup: {
42
41
  (props: MenuGroupProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
@@ -52,14 +51,16 @@ type MenuItemProps = {
52
51
  onMouseLeave?: MouseEventHandler<HTMLElement>;
53
52
  children: ReactNode;
54
53
  };
55
- declare const MenuItem: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
54
+ declare const MenuItem: {
55
+ (props: MenuItemProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
56
+ displayName: string;
57
+ };
56
58
  export type MenuItemLinkProps = {
57
59
  linkTo?: string;
58
60
  exactMatch: boolean;
59
61
  children: ReactNode;
60
62
  onClick?: (event: SyntheticEvent<HTMLAnchorElement>) => void;
61
63
  useFullRedirectsForLinks?: boolean;
62
- isNewNavigationEnabled?: boolean;
63
64
  };
64
65
  declare const MenuItemLink: {
65
66
  (props: MenuItemLinkProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -94,7 +95,6 @@ type MenuLabelProps = {
94
95
  declare const MenuLabel: (props: MenuLabelProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
95
96
  type TNavBarLayoutProps = {
96
97
  children: ReactNode;
97
- isNewNavigationEnabled?: boolean;
98
98
  };
99
99
  declare const NavBarLayout: import("react").ForwardRefExoticComponent<TNavBarLayoutProps & import("react").RefAttributes<HTMLElement>>;
100
100
  export { RestrictedMenuItem, MenuItem, MenuItemLink, IconSwitcher, MenuGroup, MenuLabel, MenuItemDivider, MenuExpander, Faded, NavBarLayout, };
@@ -0,0 +1,48 @@
1
+ import { type MouseEventHandler } from 'react';
2
+ import type { RouteComponentProps } from 'react-router-dom';
3
+ import type { TApplicationContext, TNormalizedMenuVisibilities, TNormalizedPermissions, TNormalizedActionRights, TNormalizedDataFences } from '@commercetools-frontend/application-shell-connectors';
4
+ import type { TFetchProjectQuery } from '../../../types/generated/mc';
5
+ import type { TNavbarMenu } from '../../../types/generated/proxy';
6
+ import { type MenuItemLinkProps } from './menu-items';
7
+ type TProjectPermissions = {
8
+ permissions: TNormalizedPermissions | null;
9
+ actionRights: TNormalizedActionRights | null;
10
+ dataFences: TNormalizedDataFences | null;
11
+ };
12
+ type TMenuWithDefaultLabel = TNavbarMenu & {
13
+ defaultLabel?: string;
14
+ };
15
+ type ApplicationMenuProps = {
16
+ location: RouteComponentProps['location'];
17
+ menu: TMenuWithDefaultLabel;
18
+ isActive: boolean;
19
+ isMenuOpen: boolean;
20
+ shouldCloseMenuFly: MouseEventHandler<HTMLElement>;
21
+ projectPermissions: TProjectPermissions;
22
+ menuVisibilities: TNormalizedMenuVisibilities | null;
23
+ handleToggleItem: () => void;
24
+ applicationLocale: string;
25
+ projectKey: string;
26
+ useFullRedirectsForLinks: boolean;
27
+ onMenuItemClick?: MenuItemLinkProps['onClick'];
28
+ };
29
+ export declare const ApplicationMenu: {
30
+ (props: ApplicationMenuProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
31
+ displayName: string;
32
+ };
33
+ export type TNavbarProps = {
34
+ applicationLocale?: string;
35
+ projectKey: string;
36
+ environment: TApplicationContext<{
37
+ useFullRedirectsForLinks?: boolean;
38
+ }>['environment'];
39
+ project: TFetchProjectQuery['project'];
40
+ onMenuItemClick?: MenuItemLinkProps['onClick'];
41
+ isLoading: boolean;
42
+ isNewNavigationEnabledEvaluationReady: boolean;
43
+ };
44
+ declare const NavBar: {
45
+ (props: TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
46
+ displayName: string;
47
+ };
48
+ export default NavBar;
@@ -0,0 +1,7 @@
1
+ declare type Styles = {
2
+ global: string;
3
+ jsonMap: typeof import('./compiled/navbar.css.json').default;
4
+ };
5
+
6
+ declare const styles: Styles;
7
+ export default styles;
@@ -1,20 +1,8 @@
1
- import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
2
- import type { TFetchProjectQuery } from '../../types/generated/mc';
3
- import { type MenuItemLinkProps } from './menu-items';
4
- type TNavbarProps = {
5
- applicationLocale?: string;
6
- projectKey: string;
7
- environment: TApplicationContext<{
8
- useFullRedirectsForLinks?: boolean;
9
- }>['environment'];
10
- project: TFetchProjectQuery['project'];
11
- onMenuItemClick?: MenuItemLinkProps['onClick'];
12
- isLoading: boolean;
13
- isNewNavigationEnabled: boolean;
14
- isNewNavigationEnabledEvaluationReady: boolean;
15
- };
1
+ import { type TNavbarProps } from './navbar-new/navbar';
16
2
  declare const NavBar: {
17
- (props: TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
3
+ (props: TNavbarProps & {
4
+ isNewNavigationEnabled: boolean;
5
+ }): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
18
6
  displayName: string;
19
7
  };
20
8
  export default NavBar;
@@ -3,6 +3,7 @@ import type { TApplicationContext } from '@commercetools-frontend/application-sh
3
3
  import type { TNavbarMenu } from '../../types/generated/proxy';
4
4
  type HookProps = {
5
5
  environment: TApplicationContext<{}>['environment'];
6
+ newNavigation?: boolean;
6
7
  };
7
8
  declare const useNavbarStateManager: (props: HookProps) => {
8
9
  navBarNode: import("react").RefObject<HTMLElement>;
@@ -50,25 +50,7 @@ declare const ProjectContainer: import("react").LazyExoticComponent<{
50
50
  } | null | undefined;
51
51
  environment: {
52
52
  enableSignUp?: boolean | undefined;
53
- } & {
54
- applicationId: string;
55
- customViewId?: string | undefined;
56
- applicationName: string;
57
- entryPointUriPath: string;
58
- revision: string;
59
- env: string;
60
- location: string;
61
- cdnUrl: string;
62
- mcApiUrl: string;
63
- frontendHost: string;
64
- servedByProxy: boolean;
65
- ldClientSideId?: string | undefined;
66
- trackingSentry?: string | undefined;
67
- __DEVELOPMENT__?: {
68
- oidc?: import("@commercetools-frontend/constants").ApplicationOidcForDevelopmentConfig | undefined;
69
- menuLinks?: import("@commercetools-frontend/constants").ApplicationMenuLinksForDevelopmentConfig | undefined;
70
- } | undefined;
71
- };
53
+ } & import("@commercetools-frontend/constants").ApplicationRuntimeEnvironment;
72
54
  disableRoutePermissionCheck?: boolean | undefined;
73
55
  render?: (() => JSX.Element) | undefined;
74
56
  children?: import("react").ReactNode;
@@ -3,6 +3,14 @@ export declare const DIMENSIONS: {
3
3
  readonly headerItemDivider: "24px";
4
4
  readonly navMenu: "64px";
5
5
  readonly navMenuExpanded: "245px";
6
+ readonly navMenuItemHeight: "48px";
7
+ readonly newNavMenu: "80px";
8
+ readonly newNavMenuExpanded: "256px";
9
+ };
10
+ export declare const WINDOW_SIZES: {
11
+ readonly NARROW: 918;
12
+ readonly STANDARD: 1024;
13
+ readonly WIDE: 1200;
6
14
  };
7
15
  export declare const SUPPORTED_HEADERS: {
8
16
  readonly ACCEPT: "Accept";
@@ -3,8 +3,8 @@ export { default as version } from './version';
3
3
  export { default as ApplicationShell } from './components/application-shell';
4
4
  export { default as ApplicationShellProvider } from './components/application-shell-provider';
5
5
  export { default as ApplicationPageTitle } from './components/application-page-title';
6
+ export { default as CustomViewLoader } from './components/custom-view-loader';
6
7
  export { default as CustomViewShell } from './components/custom-view-shell';
7
- export * from './components/custom-view-context';
8
8
  export { default as createApolloClient } from './configure-apollo';
9
9
  export { applyDefaultMiddlewares } from './configure-store';
10
10
  export { default as InjectReducers } from './components/inject-reducers';
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { RenderResult } from '@testing-library/react';
3
+ import type { CustomViewData } from '@commercetools-frontend/constants';
4
+ type TRenderCustomViewParams = {
5
+ locale: string;
6
+ projectKey?: string;
7
+ customViewHostUrl?: string;
8
+ customViewConfig?: Partial<CustomViewData>;
9
+ children: ReactNode;
10
+ };
11
+ export declare const renderCustomView: (props: TRenderCustomViewParams) => RenderResult;
12
+ export {};
@@ -1 +1,2 @@
1
1
  export * from './test-utils';
2
+ export * from './custom-views-utils';