@hitachivantara/app-shell-ui 2.3.2 → 2.3.3

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 (62) hide show
  1. package/dist/components/AppShell/AppShell.js +16 -5
  2. package/dist/components/AppShell/AppShellContainer.js +75 -66
  3. package/dist/components/AppShell/AppShellRouter.js +98 -109
  4. package/dist/components/AppShellI18nProvider/AppShellI18nProvider.js +19 -25
  5. package/dist/components/AppShellProvider/AppShellProvider.js +84 -91
  6. package/dist/components/AppShellViewProvider/AppShellViewProvider.js +10 -7
  7. package/dist/components/ConfigIcon.js +13 -15
  8. package/dist/components/CustomHooksInitializer/CustomHooksInitializer.js +7 -7
  9. package/dist/components/GlobalStyles.js +11 -9
  10. package/dist/components/IconUiKit/IconUiKit.js +10 -8
  11. package/dist/components/InitErrorFallback/InitErrorFallback.js +31 -23
  12. package/dist/components/SnackbarProvider/SnackbarProvider.js +17 -20
  13. package/dist/components/layout/AppShellLayout.js +50 -65
  14. package/dist/components/layout/BrandLogo/BrandLogo.js +25 -35
  15. package/dist/components/layout/BrandLogo/logos.js +38 -55
  16. package/dist/components/layout/Header/Header.js +55 -74
  17. package/dist/components/layout/HeaderActions/AppSwitcherToggle/AppSwitcherToggle.js +66 -74
  18. package/dist/components/layout/HeaderActions/AppSwitcherToggle/styles.js +12 -12
  19. package/dist/components/layout/HeaderActions/ColorModeSwitcher.js +23 -26
  20. package/dist/components/layout/HeaderActions/DynamicAction.js +22 -21
  21. package/dist/components/layout/HeaderActions/HeaderActions.js +15 -22
  22. package/dist/components/layout/HeaderActions/HelpButton/HelpButton.js +22 -31
  23. package/dist/components/layout/HeaderActions/InternalAction/InternalAction.js +25 -36
  24. package/dist/components/layout/VerticalNavigation/NavigationCollapse.js +29 -34
  25. package/dist/components/layout/VerticalNavigation/NavigationHeader.js +18 -20
  26. package/dist/components/layout/VerticalNavigation/VerticalNavigation.js +96 -130
  27. package/dist/hooks/useClearLocationState.js +10 -12
  28. package/dist/hooks/useConditionsEvaluator.js +67 -81
  29. package/dist/hooks/useCustomEventListener.js +16 -28
  30. package/dist/hooks/useFilteredModel.js +30 -27
  31. package/dist/hooks/useLocalStorage.js +26 -26
  32. package/dist/hooks/useModelFromConfig.js +43 -39
  33. package/dist/hooks/useNavigationMenuItems.js +27 -30
  34. package/dist/hooks/useNotificationsEventListener.js +35 -42
  35. package/dist/hooks/useResizeObserver.js +13 -13
  36. package/dist/hooks/useThemeEventListener.js +17 -18
  37. package/dist/i18n/constants.js +5 -6
  38. package/dist/i18n/index.js +26 -20
  39. package/dist/i18n/useI18nInit.js +72 -66
  40. package/dist/index.js +4 -3
  41. package/dist/pages/ErrorPage/ErrorPage.js +33 -32
  42. package/dist/pages/ErrorPage/Footer.js +46 -55
  43. package/dist/pages/GenericError/CatServer.js +585 -569
  44. package/dist/pages/GenericError/GenericError.js +25 -26
  45. package/dist/pages/LoadingPage/LoadingPage.js +9 -17
  46. package/dist/pages/LoadingPage/index.js +4 -3
  47. package/dist/pages/NotFound/DogeSpace.js +505 -540
  48. package/dist/pages/NotFound/NotFound.js +17 -20
  49. package/dist/pages/NotFound/index.js +2 -4
  50. package/dist/pages/RootRoute.js +32 -19
  51. package/dist/providers/BannerProvider.js +98 -123
  52. package/dist/providers/LayoutProvider.js +26 -32
  53. package/dist/providers/NavigationProvider.js +96 -107
  54. package/dist/utils/CombinedProviders.js +12 -18
  55. package/dist/utils/documentUtil.js +12 -12
  56. package/dist/utils/filterModel.js +134 -170
  57. package/dist/utils/lazyImport.js +31 -36
  58. package/dist/utils/navigationUtil.js +68 -53
  59. package/dist/utils/processConfig.js +119 -153
  60. package/package.json +8 -8
  61. package/dist/components/IconUiKit/index.js +0 -6
  62. package/dist/pages/LoadingPage/styles.js +0 -30
@@ -1,30 +1,29 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useContext, Suspense, lazy } from "react";
1
+ import { ErrorPage } from "../ErrorPage/ErrorPage.js";
2
+ import { Suspense, lazy, useContext } from "react";
3
3
  import { ErrorBoundary } from "react-error-boundary";
4
4
  import { useTranslation } from "react-i18next";
5
5
  import { HvAppShellRuntimeContext } from "@hitachivantara/app-shell-shared";
6
- import { ErrorPage } from "../ErrorPage/ErrorPage.js";
7
- const CatServer = lazy(() => import("./CatServer.js"));
8
- const GenericError = ({ includeFooter = true }) => {
9
- const runtimeContext = useContext(HvAppShellRuntimeContext);
10
- const { t } = useTranslation(void 0, {
11
- ...runtimeContext && { i18n: runtimeContext.i18n },
12
- keyPrefix: "errors.genericError"
13
- });
14
- return /* @__PURE__ */ jsx(
15
- ErrorPage,
16
- {
17
- code: t("code"),
18
- title: t("title"),
19
- includeFooter,
20
- image: (
21
- // CatServer is lazy-loaded; if the chunk fails to load (e.g., 401 on session timeout),
22
- // the local ErrorBoundary prevents the failure from cascading up.
23
- /* @__PURE__ */ jsx(ErrorBoundary, { fallback: null, children: /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(CatServer, { title: t("image_description") }) }) })
24
- )
25
- }
26
- );
27
- };
28
- export {
29
- GenericError as default
6
+ import { jsx } from "react/jsx-runtime";
7
+ //#region src/pages/GenericError/GenericError.tsx
8
+ var CatServer = lazy(() => import("./CatServer.js"));
9
+ var GenericError = ({ includeFooter = true }) => {
10
+ const runtimeContext = useContext(HvAppShellRuntimeContext);
11
+ const { t } = useTranslation(void 0, {
12
+ ...runtimeContext && { i18n: runtimeContext.i18n },
13
+ keyPrefix: "errors.genericError"
14
+ });
15
+ return /* @__PURE__ */ jsx(ErrorPage, {
16
+ code: t("code"),
17
+ title: t("title"),
18
+ includeFooter,
19
+ image: /* @__PURE__ */ jsx(ErrorBoundary, {
20
+ fallback: null,
21
+ children: /* @__PURE__ */ jsx(Suspense, {
22
+ fallback: null,
23
+ children: /* @__PURE__ */ jsx(CatServer, { title: t("image_description") })
24
+ })
25
+ })
26
+ });
30
27
  };
28
+ //#endregion
29
+ export { GenericError as default };
@@ -1,17 +1,9 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useNavigationContext } from "../../providers/NavigationProvider.js";
3
- import { StyledLoadingPage, Loading } from "./styles.js";
4
- const LoadingPage = () => {
5
- const { isCompactMode, showHeaderSubMenu } = useNavigationContext();
6
- return /* @__PURE__ */ jsx(
7
- StyledLoadingPage,
8
- {
9
- showHeaderSubMenu,
10
- isCompactMode,
11
- children: /* @__PURE__ */ jsx(Loading, {})
12
- }
13
- );
14
- };
15
- export {
16
- LoadingPage as default
17
- };
1
+ import { HvLoading } from "@hitachivantara/uikit-react-core";
2
+ import styled from "@emotion/styled";
3
+ //#region src/pages/LoadingPage/LoadingPage.tsx
4
+ var LoadingPage = styled(HvLoading)({
5
+ width: "100%",
6
+ height: "100%"
7
+ });
8
+ //#endregion
9
+ export { LoadingPage as default };
@@ -1,4 +1,5 @@
1
1
  import LoadingPage from "./LoadingPage.js";
2
- export {
3
- LoadingPage as default
4
- };
2
+ //#region src/pages/LoadingPage/index.tsx
3
+ var LoadingPage_default = LoadingPage;
4
+ //#endregion
5
+ export { LoadingPage_default as default };