@moser-inc/moser-labs-react 2.0.2 → 2.1.0
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/moser-labs-react.cjs +134 -134
- package/dist/moser-labs-react.js +7751 -7721
- package/dist/src/lib/auth/authContext.d.ts +2 -1
- package/dist/src/lib/auth/authUtils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ export type LabsAuthContextValue = {
|
|
|
13
13
|
export declare const LabsAuthContext: import('react').Context<LabsAuthContextValue | null>;
|
|
14
14
|
export interface LabsAuthProviderProps {
|
|
15
15
|
labsApiUri?: string;
|
|
16
|
+
rolesClientId?: string;
|
|
16
17
|
children: React.ReactNode;
|
|
17
18
|
}
|
|
18
|
-
export declare const LabsAuthProvider: ({ labsApiUri, children, }: LabsAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const LabsAuthProvider: ({ labsApiUri, rolesClientId, children, }: LabsAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,7 @@ export interface KeycloakUser {
|
|
|
8
8
|
jobTitle: string;
|
|
9
9
|
roles: string[];
|
|
10
10
|
}
|
|
11
|
-
export declare const getParsedUserInfo: () => KeycloakUser | null;
|
|
11
|
+
export declare const getParsedUserInfo: (rolesClientId?: string) => KeycloakUser | null;
|
|
12
12
|
export declare const refreshToken: () => Promise<boolean>;
|
|
13
13
|
export declare const withAuthHeader: (headers?: HeadersInit) => [string, string][] | Record<string, string> | Headers | {
|
|
14
14
|
authorization: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moser-inc/moser-labs-react",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "React components for the Moser Labs suite of applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@iconify-json/mingcute": "^1.2.3",
|
|
68
68
|
"@iconify-json/ph": "^1.2.2",
|
|
69
69
|
"@iconify-json/solar": "^1.2.2",
|
|
70
|
-
"@moser-inc/eslint-config-react": "^3.1.
|
|
70
|
+
"@moser-inc/eslint-config-react": "^3.1.3",
|
|
71
71
|
"@moser-inc/unocss-preset-moser-labs": "^2.0.0",
|
|
72
72
|
"@types/lodash": "^4.17.16",
|
|
73
73
|
"@types/react-helmet": "^6.1.11",
|