@authing/guard-shim-react18 5.1.3-alpha.9 → 5.1.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.
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GuardOptions, GuardEventsKebabToCamelType, StartWithRedirectOptions, AuthenticationClient, JwtTokenStatus, User, Lang } from './types';
|
|
1
|
+
import { GuardOptions, GuardEventsKebabToCamelType, StartWithRedirectOptions, AuthenticationClient, JwtTokenStatus, User, Lang, LogoutParams } from './types';
|
|
2
2
|
import '@authing/react18-ui-components/lib/index.min.css';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export declare class Guard {
|
|
@@ -36,7 +36,7 @@ export declare class Guard {
|
|
|
36
36
|
* 获取当前用户信息
|
|
37
37
|
*/
|
|
38
38
|
trackSession(): Promise<User | null>;
|
|
39
|
-
logout(): Promise<void>;
|
|
39
|
+
logout(params?: LogoutParams): Promise<void>;
|
|
40
40
|
render(): Promise<void>;
|
|
41
41
|
on<T extends keyof GuardEventsKebabToCamelType>(evt: T, handler: Exclude<GuardEventsKebabToCamelType[T], undefined>): void;
|
|
42
42
|
show(): void;
|
|
@@ -44,7 +44,7 @@ export declare class Guard {
|
|
|
44
44
|
unmount(): void;
|
|
45
45
|
getCurrentView(): {
|
|
46
46
|
currentModule: string | undefined;
|
|
47
|
-
currentTab:
|
|
47
|
+
currentTab: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
changeView(currentView: string): Promise<void>;
|
|
50
50
|
private getAgreementsContext;
|
package/dist/typings/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GuardEventsKebabToCamelType, Lang, GuardProps, GuardLocalConfig, CodeAction, ApiCode, GuardModuleType, LoginMethods, OIDCConnectionMode, SocialConnectionProvider, Protocol, RegisterMethods, GuardMode, InputMethod, GuardPageSene, EmailScene, SceneType } from '@authing/react18-ui-components';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
2
3
|
export declare type ICodeAction = `${CodeAction}`;
|
|
3
4
|
export declare type IApiCode = `${ApiCode}`;
|
|
4
5
|
export declare type IGuardModuleType = `${GuardModuleType}`;
|
|
@@ -34,6 +35,7 @@ export interface GuardOptions extends GuardProps {
|
|
|
34
35
|
lang?: Lang;
|
|
35
36
|
isSSO?: boolean;
|
|
36
37
|
config?: Partial<IGuardConfig>;
|
|
38
|
+
style?: CSSProperties;
|
|
37
39
|
}
|
|
38
40
|
export interface StartWithRedirectOptions {
|
|
39
41
|
codeChallengeMethod?: CodeChallengeMethod;
|
|
@@ -43,4 +45,7 @@ export interface StartWithRedirectOptions {
|
|
|
43
45
|
responseMode?: 'query' | 'fragment' | 'form_post';
|
|
44
46
|
nonce?: string;
|
|
45
47
|
}
|
|
48
|
+
export interface LogoutParams {
|
|
49
|
+
redirectUri?: string;
|
|
50
|
+
}
|
|
46
51
|
export * from '@authing/react18-ui-components';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/guard-shim-react18",
|
|
3
|
-
"version": "5.1.3
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Guard shim for react18",
|
|
5
5
|
"module": "dist/esm/guard.min.js",
|
|
6
6
|
"types": "dist/typings/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"webpack": "^5.72.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@authing/react18-ui-components": "^4.3.4
|
|
28
|
+
"@authing/react18-ui-components": "^4.3.4",
|
|
29
29
|
"react": "^18.0.0",
|
|
30
30
|
"react-dom": "^18.0.0"
|
|
31
31
|
},
|