@authing/react-ui-components 4.0.5-alpha.0 → 4.0.6-rc.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/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/CompleteInfo/businessRequest.d.ts +3 -2
- package/types/Guard/core/renderModule.d.ts +2 -1
- package/types/Login/interface.d.ts +0 -6
- package/types/Qrcode/WorkQrCode.d.ts +2 -2
- package/types/Qrcode/hooks/usePostQrCode.d.ts +2 -2
- package/types/Qrcode/hooks/usePreQrCode.d.ts +1 -1
- package/types/SendCode/SendCodeByPhone.d.ts +1 -1
- package/types/Type/application.d.ts +2 -1
- package/types/Type/index.d.ts +13 -9
- package/types/_utils/index.d.ts +0 -1
- package/types/_utils/locales/ja-jp/index.d.ts +4 -0
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { User } from 'authing-js-sdk';
|
|
1
2
|
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from './interface';
|
|
2
3
|
export declare enum CompleteInfoAuthFlowAction {
|
|
3
4
|
Complete = "complete-completion",
|
|
4
5
|
Skip = "skip-completion"
|
|
5
6
|
}
|
|
6
7
|
export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
7
|
-
export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any
|
|
8
|
-
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
8
|
+
export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>> | undefined;
|
|
9
|
+
export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
@@ -2,12 +2,6 @@ import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
|
|
|
2
2
|
import { AuthenticationClient, SocialConnectionProvider, User } from 'authing-js-sdk';
|
|
3
3
|
import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
|
|
4
4
|
import { Agreement, LoginMethods, PasswordLoginMethods } from '../Type/application';
|
|
5
|
-
export declare enum ConnectionType {
|
|
6
|
-
PASSWORD = "PASSWORD",
|
|
7
|
-
PASSCODE = "PASSCODE",
|
|
8
|
-
LDAP = "LDAP",
|
|
9
|
-
AD = "AD"
|
|
10
|
-
}
|
|
11
5
|
export interface LoginConfig extends IG2Config {
|
|
12
6
|
autoRegister?: boolean;
|
|
13
7
|
disableResetPwd?: boolean;
|
|
@@ -7,7 +7,7 @@ import { CodeStatus, UiQrProps } from './UiQrCode';
|
|
|
7
7
|
export declare type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
|
|
8
8
|
export interface WorkQrCodeRef {
|
|
9
9
|
referQrCode: () => Promise<{
|
|
10
|
-
|
|
10
|
+
random: string;
|
|
11
11
|
url: string;
|
|
12
12
|
} | undefined>;
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@ interface WorkQrCodeProps extends Omit<UiQrProps, 'description' | 'status'> {
|
|
|
15
15
|
/**
|
|
16
16
|
* 二维码场景
|
|
17
17
|
*/
|
|
18
|
-
scene: '
|
|
18
|
+
scene: 'WXAPP_AUTH' | 'APP_AUTH' | 'WECHATMP_AUTH';
|
|
19
19
|
/**
|
|
20
20
|
* 不同状态请求文字
|
|
21
21
|
*/
|
|
@@ -11,7 +11,7 @@ export interface QrCodeResponse {
|
|
|
11
11
|
/**
|
|
12
12
|
* 返回的随机值
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
random: number;
|
|
15
15
|
/**
|
|
16
16
|
* 返回的用户信息
|
|
17
17
|
*/
|
|
@@ -30,7 +30,7 @@ export interface QrCodeResponse {
|
|
|
30
30
|
*/
|
|
31
31
|
interface QrCodeRequest {
|
|
32
32
|
genCodeRequest?: () => Promise<AuthingGuardResponse<{
|
|
33
|
-
|
|
33
|
+
random: string;
|
|
34
34
|
url: string;
|
|
35
35
|
}>>;
|
|
36
36
|
/**
|
package/types/Type/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FacePlugin } from '../_utils/facePlugin/interface';
|
|
|
4
4
|
import { ApplicationConfig } from './application';
|
|
5
5
|
export * from './application';
|
|
6
6
|
export type { CommonMessage, User };
|
|
7
|
-
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW';
|
|
7
|
+
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
|
|
8
8
|
export declare enum GuardMode {
|
|
9
9
|
Modal = "modal",
|
|
10
10
|
Normal = "normal"
|
|
@@ -69,12 +69,16 @@ export interface GuardPageConfig {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
export declare enum EmailScene {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
73
|
+
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
74
|
+
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
75
|
+
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
76
|
+
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
77
|
+
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
78
|
+
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
79
|
+
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
80
|
+
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
81
|
+
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
82
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
83
|
+
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
80
84
|
}
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -43,7 +43,6 @@ export declare const getUserRegisterParams: (params?: string[] | undefined) => {
|
|
|
43
43
|
key: string;
|
|
44
44
|
value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
|
|
45
45
|
}[];
|
|
46
|
-
export declare const getUserRegisterParam: (params: string) => any;
|
|
47
46
|
export declare const isWeChatBrowser: () => boolean | null;
|
|
48
47
|
export declare const isLarkBrowser: () => boolean | null;
|
|
49
48
|
export declare const isQtWebEngine: () => boolean | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.
|
|
1
|
+
declare const _default: "4.0.6-rc.0";
|
|
2
2
|
export default _default;
|