@xh/hoist 64.0.4 → 64.0.5
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/CHANGELOG.md +16 -1
- package/admin/tabs/userData/roles/RoleModel.ts +99 -43
- package/admin/tabs/userData/roles/RolePanel.ts +3 -1
- package/admin/tabs/userData/roles/graph/RoleGraph.ts +7 -2
- package/admin/tabs/userData/roles/graph/RoleGraphModel.ts +40 -27
- package/appcontainer/AppContainerModel.ts +24 -4
- package/build/types/admin/tabs/userData/roles/RoleModel.d.ts +3 -1
- package/build/types/admin/tabs/userData/roles/graph/RoleGraphModel.d.ts +1 -0
- package/build/types/appcontainer/AppContainerModel.d.ts +2 -0
- package/build/types/core/HoistComponent.d.ts +8 -1
- package/build/types/desktop/cmp/filechooser/FileChooser.d.ts +1 -1
- package/cmp/grid/Grid.scss +5 -0
- package/core/HoistComponent.ts +10 -1
- package/desktop/cmp/filechooser/FileChooser.ts +1 -1
- package/package.json +6 -5
- package/security/BaseOAuthClient.ts +1 -1
- package/security/msal/MsalClient.ts +8 -6
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "64.0.
|
|
3
|
+
"version": "64.0.5",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
|
@@ -31,9 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@auth0/auth0-spa-js": "~2.1.3",
|
|
34
|
-
"@azure/msal-browser": "~3.
|
|
35
|
-
"@blueprintjs/core": "^5.10.
|
|
36
|
-
"@blueprintjs/
|
|
34
|
+
"@azure/msal-browser": "~3.17.0",
|
|
35
|
+
"@blueprintjs/core": "^5.10.3",
|
|
36
|
+
"@blueprintjs/datetime": "^5.3.5",
|
|
37
|
+
"@blueprintjs/datetime2": "^2.3.5",
|
|
37
38
|
"@fortawesome/fontawesome-pro": "^6.2.1",
|
|
38
39
|
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
39
40
|
"@fortawesome/pro-light-svg-icons": "^6.2.1",
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
"@ag-grid-community/client-side-row-model": "31.x",
|
|
93
94
|
"@ag-grid-community/core": "31.x",
|
|
94
95
|
"@ag-grid-community/react": "31.x",
|
|
95
|
-
"@xh/hoist-dev-utils": "
|
|
96
|
+
"@xh/hoist-dev-utils": "8.x",
|
|
96
97
|
"csstype": "3.x",
|
|
97
98
|
"eslint": "8.x",
|
|
98
99
|
"eslint-config-prettier": "9.x",
|
|
@@ -153,8 +153,8 @@ export abstract class BaseOAuthClient<C extends BaseOAuthClientConfig<S>, S> ext
|
|
|
153
153
|
* Request a full logout from the underlying OAuth provider.
|
|
154
154
|
*/
|
|
155
155
|
async logoutAsync(): Promise<void> {
|
|
156
|
-
this.setSelectedUsername(null);
|
|
157
156
|
await this.doLogoutAsync();
|
|
157
|
+
this.setSelectedUsername(null);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
@@ -130,8 +130,9 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
|
|
|
130
130
|
// to gain a new refreshToken (3rd party cookies required).
|
|
131
131
|
const accounts = client.getAllAccounts();
|
|
132
132
|
this.logDebug('Authenticated accounts available', accounts);
|
|
133
|
-
|
|
134
|
-
if (
|
|
133
|
+
const account = accounts.length == 1 ? accounts[0] : null;
|
|
134
|
+
if (account) {
|
|
135
|
+
this.noteUserAuthenticated(account);
|
|
135
136
|
try {
|
|
136
137
|
this.initialTokenLoad = true;
|
|
137
138
|
this.logDebug('Attempting silent token load.');
|
|
@@ -230,11 +231,12 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
|
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
protected override async doLogoutAsync(): Promise<void> {
|
|
233
|
-
const {postLogoutRedirectUrl, client, account, loginMethod} = this
|
|
234
|
-
|
|
234
|
+
const {postLogoutRedirectUrl, client, account, loginMethod} = this,
|
|
235
|
+
opts = {account, postLogoutRedirectUri: postLogoutRedirectUrl};
|
|
236
|
+
|
|
235
237
|
loginMethod == 'REDIRECT'
|
|
236
|
-
? await client.logoutRedirect(
|
|
237
|
-
: await client.logoutPopup(
|
|
238
|
+
? await client.logoutRedirect(opts)
|
|
239
|
+
: await client.logoutPopup(opts);
|
|
238
240
|
}
|
|
239
241
|
|
|
240
242
|
//------------------------
|