@equinor/fusion-framework-react 6.0.2-context-error-08aa8737eb2e7bea3bf2123d90b0223fb1039461 → 6.0.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.
@@ -4,5 +4,6 @@ export declare const useApps: (args?: {
4
4
  }) => {
5
5
  apps: AppManifest[] | undefined;
6
6
  isLoading: boolean;
7
+ error: unknown;
7
8
  };
8
9
  export default useApps;
@@ -1 +1 @@
1
- export declare const version = "6.0.1";
1
+ export declare const version = "6.0.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-react",
3
- "version": "6.0.2-context-error-08aa8737eb2e7bea3bf2123d90b0223fb1039461",
3
+ "version": "6.0.3",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -48,10 +48,10 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "rxjs": "^7.8.1",
51
- "@equinor/fusion-framework": "^7.0.30-context-error-08aa8737eb2e7bea3bf2123d90b0223fb1039461",
52
- "@equinor/fusion-framework-module": "^4.2.6",
53
- "@equinor/fusion-framework-react-module": "^3.0.7",
54
- "@equinor/fusion-framework-react-module-http": "^4.0.5",
51
+ "@equinor/fusion-framework-module": "^4.2.7",
52
+ "@equinor/fusion-framework-react-module": "^3.0.8",
53
+ "@equinor/fusion-framework": "^7.0.31",
54
+ "@equinor/fusion-framework-react-module-http": "^4.0.6",
55
55
  "@equinor/fusion-observable": "^8.1.5"
56
56
  },
57
57
  "devDependencies": {
@@ -60,18 +60,22 @@
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "typescript": "^5.1.3",
63
- "@equinor/fusion-framework-module-feature-flag": "^1.0.1",
63
+ "@equinor/fusion-framework-module-feature-flag": "^1.0.2",
64
64
  "@equinor/fusion-framework-module-app": "^5.2.13",
65
- "@equinor/fusion-framework-react-module-context": "^6.1.0-context-error-08aa8737eb2e7bea3bf2123d90b0223fb1039461"
65
+ "@equinor/fusion-framework-react-module-context": "^6.1.0",
66
+ "@equinor/fusion-framework-module-event": "^4.0.8"
66
67
  },
67
68
  "peerDependencies": {
68
69
  "@types/react": "^17.0.0 || ^18.0.0",
69
70
  "react": "^17.0.0 || ^18.0.0",
70
71
  "react-dom": "^17.0.0 || ^18.0.0",
71
- "@equinor/fusion-framework-module-feature-flag": "^1.0.1",
72
- "@equinor/fusion-framework-react-module-signalr": "^2.0.17"
72
+ "@equinor/fusion-framework-module-feature-flag": "^1.0.2",
73
+ "@equinor/fusion-framework-react-module-signalr": "^2.0.18"
73
74
  },
74
75
  "peerDependenciesMeta": {
76
+ "@equinor/fusion-framework-module-event": {
77
+ "optional": true
78
+ },
75
79
  "@equinor/fusion-framework-react-module-context": {
76
80
  "optional": true
77
81
  },
@@ -11,11 +11,13 @@ import { useAppProvider } from './useAppProvider';
11
11
  */
12
12
  export const useApps = (args?: {
13
13
  includeHidden: boolean;
14
- }): { apps: AppManifest[] | undefined; isLoading: boolean } => {
14
+ }): { apps: AppManifest[] | undefined; isLoading: boolean; error: unknown } => {
15
15
  const provider = useAppProvider();
16
- const { value: manifests, complete } = useObservableState(
17
- useMemo(() => provider.getAllAppManifests(), [provider]),
18
- );
16
+ const {
17
+ value: manifests,
18
+ complete,
19
+ error,
20
+ } = useObservableState(useMemo(() => provider.getAllAppManifests(), [provider]));
19
21
 
20
22
  const apps = useMemo(() => {
21
23
  if (manifests && !args?.includeHidden) {
@@ -24,7 +26,7 @@ export const useApps = (args?: {
24
26
  return manifests;
25
27
  }, [args, manifests]);
26
28
 
27
- return { apps, isLoading: !complete };
29
+ return { apps, isLoading: !complete, error };
28
30
  };
29
31
 
30
32
  export default useApps;
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '6.0.1';
2
+ export const version = '6.0.3';