@authing/react-ui-components 4.2.3-alpha.7 → 4.2.3-alpha.8
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/package.json
CHANGED
package/types/Guard/config.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { GuardModuleType } from '.';
|
|
3
3
|
import { LoginConfig } from '../Login/interface';
|
|
4
4
|
import { RegisterConfig } from '../Register/interface';
|
|
5
|
-
export declare type CurrentView = 'login:ldap' | 'login:app-qrcode' | 'login:password' | 'login:phone-code' | 'login:wechat-miniprogram-qrcode' | 'login:ad' | 'login:wechatmp-qrcode' | 'register:username-password' | 'register:email-password' | 'register:phone-password' | 'register:emp_id-password' | 'register:phone-code' | 'forgetPassword' | 'anyQuestions';
|
|
6
5
|
export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
7
6
|
isSSO?: boolean;
|
|
8
7
|
defaultScenes?: GuardModuleType;
|
|
@@ -13,6 +12,5 @@ export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
|
13
12
|
* @description 是否调用 eventsMapping 中的事件
|
|
14
13
|
*/
|
|
15
14
|
openEventsMapping?: boolean;
|
|
16
|
-
currentView?: CurrentView;
|
|
17
15
|
}
|
|
18
16
|
export declare const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Agreement } from '../../../Type';
|
|
3
|
+
interface Options {
|
|
4
|
+
agreements: Agreement[];
|
|
5
|
+
checkedAgreements: (string | number)[];
|
|
6
|
+
toggleItemCheck: React.Dispatch<any>;
|
|
7
|
+
}
|
|
8
|
+
export declare function useAgreements(options: Options): {
|
|
9
|
+
agreements: Agreement[];
|
|
10
|
+
checkedAgreements: import("react").ReactText[];
|
|
11
|
+
toggleItemCheck: () => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
package/types/Guard/event.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { LoginEvents } from '../Login/interface';
|
|
|
7
7
|
import { RegisterEvents } from '../Register/interface';
|
|
8
8
|
interface OnChangeViewOptions {
|
|
9
9
|
currentView: string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
currentModule: GuardModuleType;
|
|
11
|
+
currentTab?: string;
|
|
12
12
|
data?: any;
|
|
13
13
|
}
|
|
14
14
|
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
|
|
@@ -25,7 +25,6 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
25
25
|
showLoading?: boolean | undefined;
|
|
26
26
|
loadingComponent?: import("react").ReactNode;
|
|
27
27
|
openEventsMapping?: boolean | undefined;
|
|
28
|
-
currentView?: "login:ldap" | "login:app-qrcode" | "login:password" | "login:phone-code" | "login:wechat-miniprogram-qrcode" | "login:ad" | "login:wechatmp-qrcode" | "register:username-password" | "register:email-password" | "register:phone-password" | "register:emp_id-password" | "register:phone-code" | "forgetPassword" | "anyQuestions" | undefined;
|
|
29
28
|
disableRegister?: boolean | undefined;
|
|
30
29
|
registerMethods?: string[] | undefined;
|
|
31
30
|
defaultRegisterMethod?: string | undefined;
|