@equinor/fusion-framework-react 7.3.8 → 7.4.0-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2

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,8 +1,2 @@
1
- export type AccountInfo = {
2
- environment: string;
3
- tenantId: string;
4
- username: string;
5
- localAccountId: string;
6
- name?: string;
7
- };
1
+ import { AccountInfo } from '@equinor/fusion-framework-module-msal';
8
2
  export declare const useCurrentUser: () => AccountInfo | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-react",
3
- "version": "7.3.8",
3
+ "version": "7.4.0-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -69,11 +69,11 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "rxjs": "^7.8.1",
72
- "@equinor/fusion-framework": "^7.2.16",
73
- "@equinor/fusion-framework-module": "^4.3.5",
74
- "@equinor/fusion-framework-react-module-http": "^8.0.0",
75
- "@equinor/fusion-framework-react-module": "^3.1.6",
76
- "@equinor/fusion-observable": "^8.4.4"
72
+ "@equinor/fusion-framework": "^7.3.0-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
73
+ "@equinor/fusion-framework-module": "^4.3.6-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
74
+ "@equinor/fusion-framework-react-module-http": "^8.0.1-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
75
+ "@equinor/fusion-framework-react-module": "^3.1.7-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
76
+ "@equinor/fusion-observable": "^8.4.5-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@types/react": "^18.2.50",
@@ -81,17 +81,18 @@
81
81
  "react": "^18.2.0",
82
82
  "react-dom": "^18.2.0",
83
83
  "typescript": "^5.5.4",
84
- "@equinor/fusion-framework-module-app": "^6.1.4",
85
- "@equinor/fusion-framework-react-module-context": "^6.2.17",
86
- "@equinor/fusion-framework-module-event": "^4.3.0",
87
- "@equinor/fusion-framework-module-feature-flag": "^1.1.12"
84
+ "@equinor/fusion-framework-module-app": "^6.1.5-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
85
+ "@equinor/fusion-framework-module-event": "^4.3.1-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
86
+ "@equinor/fusion-framework-module-msal": "^4.0.0-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
87
+ "@equinor/fusion-framework-react-module-context": "^6.2.18-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
88
+ "@equinor/fusion-framework-module-feature-flag": "^1.1.13-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2"
88
89
  },
89
90
  "peerDependencies": {
90
91
  "@types/react": "^17.0.0 || ^18.0.0",
91
92
  "react": "^17.0.0 || ^18.0.0",
92
93
  "react-dom": "^17.0.0 || ^18.0.0",
93
- "@equinor/fusion-framework-module-feature-flag": "^1.1.12",
94
- "@equinor/fusion-framework-react-module-signalr": "^3.0.20"
94
+ "@equinor/fusion-framework-module-feature-flag": "^1.1.13-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2",
95
+ "@equinor/fusion-framework-react-module-signalr": "^3.0.21-msal-6cf764b628c2afdd64dfd06e42abc953d78556d2"
95
96
  },
96
97
  "peerDependenciesMeta": {
97
98
  "@equinor/fusion-framework-module-event": {
@@ -1,15 +1,7 @@
1
+ import { AccountInfo } from '@equinor/fusion-framework-module-msal';
1
2
  import { useFramework } from '../useFramework';
2
3
 
3
- export type AccountInfo = {
4
- // homeAccountId: string;
5
- environment: string;
6
- tenantId: string;
7
- username: string;
8
- localAccountId: string;
9
- name?: string;
10
- };
11
-
12
4
  export const useCurrentUser = (): AccountInfo | undefined => {
13
5
  const framework = useFramework();
14
- return framework.modules.auth.defaultClient.account;
6
+ return framework.modules.auth.defaultAccount;
15
7
  };
package/tsconfig.json CHANGED
@@ -15,6 +15,9 @@
15
15
  {
16
16
  "path": "../../modules/app"
17
17
  },
18
+ {
19
+ "path": "../../modules/msal"
20
+ },
18
21
  {
19
22
  "path": "../../modules/feature-flag"
20
23
  },