wcz-test 7.1.3 → 7.2.1
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/DialogsContext-CGAKEKKW.js +546 -0
- package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
- package/dist/{DialogsHooks-BXfwbYWP.js → DialogsHooks-BZUdpDVJ.js} +14 -14
- package/dist/DialogsHooks-BZUdpDVJ.js.map +1 -0
- package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
- package/dist/{RouterListItemButton-DrW6M53Y.js.map → RouterListItemButton-C_jUvB6C.js.map} +1 -1
- package/dist/compiler-runtime-BNHg76kC.js +37 -0
- package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
- package/dist/components/core/Layout.d.ts +1 -1
- package/dist/components.js +686 -682
- package/dist/components.js.map +1 -1
- package/dist/env-Dy8Ynqa-.js +75 -0
- package/dist/env-Dy8Ynqa-.js.map +1 -0
- package/dist/exports/hooks.d.ts +1 -1
- package/dist/exports/middleware.d.ts +1 -0
- package/dist/exports/server.d.ts +1 -0
- package/dist/exports/utils.d.ts +2 -2
- package/dist/hooks/UseScanDetection.d.ts +28 -0
- package/dist/hooks.js +603 -610
- package/dist/hooks.js.map +1 -1
- package/dist/{i18next-Bx3TmZAT.js → i18next-8reizFda.js} +71 -63
- package/dist/i18next-8reizFda.js.map +1 -0
- package/dist/{index-DchOf6FV.js → index-CsRHHlp3.js} +9 -6
- package/dist/index-CsRHHlp3.js.map +1 -0
- package/dist/index.js +662 -821
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/msalClient.d.ts +20 -0
- package/dist/lib/auth/msalServer.d.ts +11 -0
- package/dist/lib/auth/scopes.d.ts +2 -0
- package/dist/lib/auth/utils.d.ts +0 -0
- package/dist/lib/theme.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -10
- package/dist/middleware/authMiddleware.d.ts +6 -0
- package/dist/middleware.js +1101 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models/TokenPayload.d.ts +8 -0
- package/dist/models/User.d.ts +10 -13
- package/dist/msalClient-l-DV8PoB.js +76 -0
- package/dist/msalClient-l-DV8PoB.js.map +1 -0
- package/dist/providers/AuthProvider.d.ts +0 -2
- package/dist/queries/FileHooks.d.ts +1 -1
- package/dist/queries/GraphQueries.d.ts +0 -20
- package/dist/query.js +1 -1
- package/dist/server.js +36 -0
- package/dist/server.js.map +1 -0
- package/dist/utils-BGMLqA26.js +81 -0
- package/dist/utils-BGMLqA26.js.map +1 -0
- package/dist/utils.js +9 -6
- package/dist/utils.js.map +1 -1
- package/package.json +20 -11
- package/dist/DialogsContext-8xfQ3X-k.js +0 -285
- package/dist/DialogsContext-8xfQ3X-k.js.map +0 -1
- package/dist/DialogsHooks-BXfwbYWP.js.map +0 -1
- package/dist/RouterListItemButton-DrW6M53Y.js +0 -17
- package/dist/hooks/User.d.ts +0 -8
- package/dist/i18next-Bx3TmZAT.js.map +0 -1
- package/dist/index-DchOf6FV.js.map +0 -1
- package/dist/utils-Dttzp8un.js +0 -10879
- package/dist/utils-Dttzp8un.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NavigationOptions, NavigationClient, PublicClientApplication } from '@azure/msal-browser';
|
|
2
|
+
import { UseNavigateResult } from '@tanstack/react-router';
|
|
3
|
+
import { scopes as definedScopes } from 'virtual:wcz-layout';
|
|
4
|
+
import { User } from '../../models/User';
|
|
5
|
+
export declare const pca: PublicClientApplication;
|
|
6
|
+
export declare class CustomNavigationClient extends NavigationClient {
|
|
7
|
+
private readonly navigate;
|
|
8
|
+
constructor(navigate: UseNavigateResult<string>);
|
|
9
|
+
navigateInternal(url: string, options: NavigationOptions): Promise<boolean>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* User Context: Get parsed user details from the active account's ID token
|
|
13
|
+
* Use when: Validating permissions or displaying user info in the client
|
|
14
|
+
*/
|
|
15
|
+
export declare const getUser: () => User;
|
|
16
|
+
/**
|
|
17
|
+
* Token Acquisition: Get authenticated access token.
|
|
18
|
+
* Use when: Making API calls from the browser to secured endpoints
|
|
19
|
+
*/
|
|
20
|
+
export declare const getAccessToken: (scopeKey: keyof typeof definedScopes) => Promise<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { scopes as definedScopes } from 'virtual:wcz-layout';
|
|
2
|
+
/**
|
|
3
|
+
* On-Behalf-Of flow: Exchange user token for a token to call downstream API
|
|
4
|
+
* Use when: Server needs to call microservice on behalf of the logged-in user
|
|
5
|
+
*/
|
|
6
|
+
export declare const getTokenOnBehalfOf: (userToken: string, scopeKey: keyof typeof definedScopes) => Promise<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Client Credentials flow: Get app-only token (no user context)
|
|
9
|
+
* Use when: Background jobs, scheduled tasks, service-to-service calls
|
|
10
|
+
*/
|
|
11
|
+
export declare const getAppToken: (scopeKey: keyof typeof definedScopes) => Promise<string>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createAppTheme(locale: string): import('@mui/material').Theme;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { scopes as definedScopes } from 'virtual:wcz-layout';
|
|
2
1
|
import { AnyFieldApi } from '@tanstack/react-form';
|
|
2
|
+
import { TokenPayload } from '../models/TokenPayload';
|
|
3
3
|
export declare const WISTRON_PRIMARY_COLOR = "#00506E";
|
|
4
4
|
export declare const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
5
5
|
export declare class Platform {
|
|
@@ -43,7 +43,6 @@ export declare const rootRouteHead: () => {
|
|
|
43
43
|
type?: undefined;
|
|
44
44
|
})[];
|
|
45
45
|
};
|
|
46
|
-
export declare const getAccessToken: (scopeKey: keyof typeof definedScopes) => Promise<string>;
|
|
47
46
|
export type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
48
47
|
export declare const getFieldStatus: (field: AnyFieldApi) => {
|
|
49
48
|
isTouched: boolean;
|
|
@@ -51,11 +50,4 @@ export declare const getFieldStatus: (field: AnyFieldApi) => {
|
|
|
51
50
|
helperText: any;
|
|
52
51
|
};
|
|
53
52
|
export declare const toKebabCase: (str: string) => string;
|
|
54
|
-
|
|
55
|
-
sub: string;
|
|
56
|
-
name: string;
|
|
57
|
-
mail: string;
|
|
58
|
-
groups?: Array<string>;
|
|
59
|
-
}
|
|
60
|
-
export declare const decodeJwt: (token: string) => MicrosoftIdTokenPayload;
|
|
61
|
-
export {};
|
|
53
|
+
export declare const decodeJwt: (token: string) => TokenPayload;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { permissions } from 'virtual:wcz-layout';
|
|
2
|
+
import { User } from '../models/User';
|
|
3
|
+
export declare const authMiddleware: (key: keyof typeof permissions) => import('@tanstack/start-client-core').RequestMiddlewareAfterServer<{}, undefined, {
|
|
4
|
+
user: User;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const serverFnAccessTokenMiddleware: import('@tanstack/start-client-core').FunctionMiddlewareAfterClient<{}, unknown, undefined, undefined, undefined>;
|