@hitachivantara/app-shell-shared 2.3.0 → 2.3.2
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/AppShellCombinedProvidersContext.js +6 -9
- package/dist/AppShellContext.js +6 -7
- package/dist/AppShellModelContext.js +8 -13
- package/dist/AppShellRuntimeContext.js +8 -13
- package/dist/AppShellViewContext.js +4 -4
- package/dist/bundles/app-shell-shared.esm.js +305 -281
- package/dist/components/DynamicHooksEvaluator/DynamicHooksEvaluator.js +33 -45
- package/dist/hooks/useMenuItems.js +52 -59
- package/dist/i18n/index.js +12 -15
- package/dist/index.js +2 -18
- package/dist/utils/navigationUtils.js +188 -141
- package/package.json +8 -5
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
);
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
HvAppShellCombinedProvidersContext,
|
|
10
|
-
useHvAppShellCombinedProviders
|
|
2
|
+
//#region src/AppShellCombinedProvidersContext.tsx
|
|
3
|
+
var HvAppShellCombinedProvidersContext = createContext(void 0);
|
|
4
|
+
var useHvAppShellCombinedProviders = () => {
|
|
5
|
+
return useContext(HvAppShellCombinedProvidersContext);
|
|
11
6
|
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { HvAppShellCombinedProvidersContext, useHvAppShellCombinedProviders };
|
package/dist/AppShellContext.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
HvAppShellContext,
|
|
8
|
-
useHvAppShellConfig
|
|
2
|
+
//#region src/AppShellContext.tsx
|
|
3
|
+
var HvAppShellContext = createContext(void 0);
|
|
4
|
+
var useHvAppShellConfig = () => {
|
|
5
|
+
return useContext(HvAppShellContext);
|
|
9
6
|
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { HvAppShellContext, useHvAppShellConfig };
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
return context;
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
HvAppShellModelContext,
|
|
14
|
-
useHvAppShellModel
|
|
2
|
+
//#region src/AppShellModelContext.tsx
|
|
3
|
+
var HvAppShellModelContext = createContext(void 0);
|
|
4
|
+
var useHvAppShellModel = () => {
|
|
5
|
+
const context = useContext(HvAppShellModelContext);
|
|
6
|
+
if (!context) throw new Error("useHvAppShellModel must be used within HvAppShellModelContext.Provider");
|
|
7
|
+
return context;
|
|
15
8
|
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { HvAppShellModelContext, useHvAppShellModel };
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
return context;
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
HvAppShellRuntimeContext,
|
|
14
|
-
useHvAppShellRuntimeContext
|
|
2
|
+
//#region src/AppShellRuntimeContext.tsx
|
|
3
|
+
var HvAppShellRuntimeContext = createContext(void 0);
|
|
4
|
+
var useHvAppShellRuntimeContext = () => {
|
|
5
|
+
const context = useContext(HvAppShellRuntimeContext);
|
|
6
|
+
if (!context) throw new Error("useHvAppShellRuntimeContext must be used within HvAppShellRuntimeContext.Provider");
|
|
7
|
+
return context;
|
|
15
8
|
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { HvAppShellRuntimeContext, useHvAppShellRuntimeContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
2
|
+
//#region src/AppShellViewContext.tsx
|
|
3
|
+
var HvAppShellViewContext = createContext(void 0);
|
|
4
|
+
//#endregion
|
|
5
|
+
export { HvAppShellViewContext };
|