@hitachivantara/app-shell-shared 1.5.0 → 1.5.1
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.
- package/dist/esm/hooks/{useMenuItems.mjs → useMenuItems.js} +4 -4
- package/dist/esm/{index.mjs → index.js} +6 -6
- package/package.json +3 -3
- /package/dist/esm/{AppShellCombinedProvidersContext.mjs → AppShellCombinedProvidersContext.js} +0 -0
- /package/dist/esm/{AppShellContext.mjs → AppShellContext.js} +0 -0
- /package/dist/esm/{AppShellRuntimeContext.mjs → AppShellRuntimeContext.js} +0 -0
- /package/dist/esm/{AppShellViewContext.mjs → AppShellViewContext.js} +0 -0
- /package/dist/esm/i18n/{index.mjs → index.js} +0 -0
- /package/dist/esm/utils/{navigationUtils.mjs → navigationUtils.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useContext, useMemo, useState, useEffect } from "react";
|
|
2
2
|
import { useLocation } from "react-router-dom";
|
|
3
|
-
import { useHvAppShellConfig } from "../AppShellContext.
|
|
4
|
-
import { HvAppShellRuntimeContext } from "../AppShellRuntimeContext.
|
|
5
|
-
import { CONFIG_TRANSLATIONS_NAMESPACE } from "../i18n/index.
|
|
6
|
-
import { createMenuItems, searchHrefInMenuItems, addPrefixToHref, getRootIdFromItemId, findItemById, findFirstLeafItem } from "../utils/navigationUtils.
|
|
3
|
+
import { useHvAppShellConfig } from "../AppShellContext.js";
|
|
4
|
+
import { HvAppShellRuntimeContext } from "../AppShellRuntimeContext.js";
|
|
5
|
+
import { CONFIG_TRANSLATIONS_NAMESPACE } from "../i18n/index.js";
|
|
6
|
+
import { createMenuItems, searchHrefInMenuItems, addPrefixToHref, getRootIdFromItemId, findItemById, findFirstLeafItem } from "../utils/navigationUtils.js";
|
|
7
7
|
const MAX_TOP_MENU_DEPTH = 2;
|
|
8
8
|
const useHvMenuItems = () => {
|
|
9
9
|
const { pathname, search, state: locationState } = useLocation();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HvAppShellContext, useHvAppShellConfig } from "./AppShellContext.
|
|
2
|
-
import { HvAppShellViewContext } from "./AppShellViewContext.
|
|
3
|
-
import { HvAppShellRuntimeContext } from "./AppShellRuntimeContext.
|
|
4
|
-
import { HvAppShellCombinedProvidersContext, useHvAppShellCombinedProviders } from "./AppShellCombinedProvidersContext.
|
|
5
|
-
import { CONFIG_TRANSLATIONS_NAMESPACE } from "./i18n/index.
|
|
6
|
-
import { useHvMenuItems } from "./hooks/useMenuItems.
|
|
1
|
+
import { HvAppShellContext, useHvAppShellConfig } from "./AppShellContext.js";
|
|
2
|
+
import { HvAppShellViewContext } from "./AppShellViewContext.js";
|
|
3
|
+
import { HvAppShellRuntimeContext } from "./AppShellRuntimeContext.js";
|
|
4
|
+
import { HvAppShellCombinedProvidersContext, useHvAppShellCombinedProviders } from "./AppShellCombinedProvidersContext.js";
|
|
5
|
+
import { CONFIG_TRANSLATIONS_NAMESPACE } from "./i18n/index.js";
|
|
6
|
+
import { useHvMenuItems } from "./hooks/useMenuItems.js";
|
|
7
7
|
export {
|
|
8
8
|
CONFIG_TRANSLATIONS_NAMESPACE,
|
|
9
9
|
HvAppShellCombinedProvidersContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/app-shell-shared",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Hitachi Vantara UI Kit Team",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-router-dom": "^6.9.0"
|
|
20
20
|
},
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"@hitachivantara/uikit-react-core": "^5.93.
|
|
22
|
+
"@hitachivantara/uikit-react-core": "^5.93.1"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"access": "public",
|
|
38
38
|
"directory": "package"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b05a15b41bfa20c2c4e8bc248429a4a01b23784f",
|
|
41
41
|
"types": "./dist/types/index.d.ts",
|
|
42
42
|
"module": "dist/esm/index.js"
|
|
43
43
|
}
|
/package/dist/esm/{AppShellCombinedProvidersContext.mjs → AppShellCombinedProvidersContext.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|