@hitachivantara/app-shell-shared 2.3.1 → 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.
@@ -1,11 +1,8 @@
1
1
  import { createContext, useContext } from "react";
2
- const HvAppShellCombinedProvidersContext = createContext(void 0);
3
- const useHvAppShellCombinedProviders = () => {
4
- return useContext(
5
- HvAppShellCombinedProvidersContext
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 };
@@ -1,9 +1,8 @@
1
1
  import { createContext, useContext } from "react";
2
- const HvAppShellContext = createContext(void 0);
3
- const useHvAppShellConfig = () => {
4
- return useContext(HvAppShellContext);
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
- const HvAppShellModelContext = createContext(void 0);
3
- const useHvAppShellModel = () => {
4
- const context = useContext(HvAppShellModelContext);
5
- if (!context) {
6
- throw new Error(
7
- "useHvAppShellModel must be used within HvAppShellModelContext.Provider"
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
- const HvAppShellRuntimeContext = createContext(void 0);
3
- const useHvAppShellRuntimeContext = () => {
4
- const context = useContext(HvAppShellRuntimeContext);
5
- if (!context) {
6
- throw new Error(
7
- "useHvAppShellRuntimeContext must be used within HvAppShellRuntimeContext.Provider"
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
- const HvAppShellViewContext = createContext(void 0);
3
- export {
4
- HvAppShellViewContext
5
- };
2
+ //#region src/AppShellViewContext.tsx
3
+ var HvAppShellViewContext = createContext(void 0);
4
+ //#endregion
5
+ export { HvAppShellViewContext };