@authing/react-ui-components 4.0.6 → 4.0.7-rc.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/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/BindTotp/businessRequest.d.ts +1 -1
- package/types/ChangePassword/businessRequest.d.ts +1 -1
- package/types/CompleteInfo/businessRequest.d.ts +1 -1
- package/types/Guard/GuardModule/stateMachine.d.ts +1 -1
- package/types/Guard/core/renderModule.d.ts +1 -1
- package/types/Guard/module.d.ts +1 -1
- package/types/IdentityBinding/businessRequest.d.ts +2 -2
- package/types/Login/interface.d.ts +2 -2
- package/types/MFA/businessRequest.d.ts +1 -1
- package/types/MFA/interface.d.ts +1 -1
- package/types/RecoveryCode/businessRequest.d.ts +1 -1
- package/types/Type/application.d.ts +5 -5
- package/types/Type/index.d.ts +4 -4
- package/types/_utils/GuardErrorCode.d.ts +1 -1
- package/types/_utils/config/index.d.ts +4 -4
- package/types/_utils/index.d.ts +1 -1
- package/types/_utils/responseManagement/interface.d.ts +2 -2
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum ChangePasswordBusinessAction {
|
|
1
|
+
export declare const enum ChangePasswordBusinessAction {
|
|
2
2
|
ResetPassword = "reset-password-first-time",
|
|
3
3
|
FirstLoginReset = "reset-password-forced",
|
|
4
4
|
ResetPasswordStrengthDetection = "reset-password-strength-detection"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { User } from 'authing-js-sdk';
|
|
2
2
|
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from './interface';
|
|
3
|
-
export declare enum CompleteInfoAuthFlowAction {
|
|
3
|
+
export declare const enum CompleteInfoAuthFlowAction {
|
|
4
4
|
Complete = "complete-completion",
|
|
5
5
|
Skip = "skip-completion"
|
|
6
6
|
}
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum IdentityBindingBusinessAction {
|
|
1
|
+
export declare const enum IdentityBindingBusinessAction {
|
|
2
2
|
PhoneCode = "phone-code",
|
|
3
3
|
EmailCode = "emial-code",
|
|
4
4
|
Password = "password"
|
|
@@ -17,7 +17,7 @@ export interface PasswordParams {
|
|
|
17
17
|
password: string;
|
|
18
18
|
captchaCode: string;
|
|
19
19
|
}
|
|
20
|
-
export declare enum IdentityBindingAction {
|
|
20
|
+
export declare const enum IdentityBindingAction {
|
|
21
21
|
CreateUser = "create-federation-account",
|
|
22
22
|
BindByPassword = "bind-identity-by-password",
|
|
23
23
|
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
|
|
2
|
-
import { AuthenticationClient,
|
|
2
|
+
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
3
3
|
import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
|
|
4
|
-
import { Agreement, LoginMethods, PasswordLoginMethods } from '../Type/application';
|
|
4
|
+
import { Agreement, LoginMethods, PasswordLoginMethods, SocialConnectionProvider } from '../Type/application';
|
|
5
5
|
export interface LoginConfig extends IG2Config {
|
|
6
6
|
autoRegister?: boolean;
|
|
7
7
|
disableResetPwd?: boolean;
|
package/types/MFA/interface.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const getDefaultMFAConfig: () => MFAConfig;
|
|
|
7
7
|
export interface MFAEvents extends IG2Events {
|
|
8
8
|
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare enum MFAType {
|
|
10
|
+
export declare const enum MFAType {
|
|
11
11
|
SMS = "SMS",
|
|
12
12
|
EMAIL = "EMAIL",
|
|
13
13
|
TOTP = "OTP",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Lang } from '..';
|
|
2
2
|
import { PasswordStrength } from '../_utils';
|
|
3
|
-
export declare enum LoginMethods {
|
|
3
|
+
export declare const enum LoginMethods {
|
|
4
4
|
LDAP = "ldap",
|
|
5
5
|
AppQr = "app-qrcode",
|
|
6
6
|
Password = "password",
|
|
@@ -9,11 +9,11 @@ export declare enum LoginMethods {
|
|
|
9
9
|
AD = "ad",
|
|
10
10
|
WechatMpQrcode = "wechatmp-qrcode"
|
|
11
11
|
}
|
|
12
|
-
export declare enum OIDCConnectionMode {
|
|
12
|
+
export declare const enum OIDCConnectionMode {
|
|
13
13
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
14
14
|
BACK_CHANNEL = "BACK_CHANNEL"
|
|
15
15
|
}
|
|
16
|
-
export declare enum SocialConnectionProvider {
|
|
16
|
+
export declare const enum SocialConnectionProvider {
|
|
17
17
|
ALIPAY = "alipay",
|
|
18
18
|
GOOGLE = "google",
|
|
19
19
|
WECHATPC = "wechat:pc",
|
|
@@ -40,7 +40,7 @@ export declare enum SocialConnectionProvider {
|
|
|
40
40
|
QINGCLOUD = "qingcloud",
|
|
41
41
|
FACEBOOK = "facebook"
|
|
42
42
|
}
|
|
43
|
-
export declare enum Protocol {
|
|
43
|
+
export declare const enum Protocol {
|
|
44
44
|
AD = "ad",
|
|
45
45
|
CAS = "cas",
|
|
46
46
|
LDAP = "ldap",
|
|
@@ -97,7 +97,7 @@ export interface SocialConnectionItem {
|
|
|
97
97
|
authorizationUrl: string;
|
|
98
98
|
tooltip: Record<Lang, string>;
|
|
99
99
|
}
|
|
100
|
-
export declare enum RegisterMethods {
|
|
100
|
+
export declare const enum RegisterMethods {
|
|
101
101
|
Email = "email",
|
|
102
102
|
Phone = "phone",
|
|
103
103
|
EmailCode = "emailCode"
|
package/types/Type/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ApplicationConfig } from './application';
|
|
|
5
5
|
export * from './application';
|
|
6
6
|
export type { CommonMessage, User };
|
|
7
7
|
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
|
|
8
|
-
export declare enum GuardMode {
|
|
8
|
+
export declare const enum GuardMode {
|
|
9
9
|
Modal = "modal",
|
|
10
10
|
Normal = "normal"
|
|
11
11
|
}
|
|
@@ -55,11 +55,11 @@ export interface IG2Events {
|
|
|
55
55
|
}
|
|
56
56
|
export declare const getDefaultG2Config: () => IG2Config;
|
|
57
57
|
export declare const LanguageMap: any;
|
|
58
|
-
export declare enum InputMethod {
|
|
58
|
+
export declare const enum InputMethod {
|
|
59
59
|
EmailCode = "email-code",
|
|
60
60
|
PhoneCode = "phone-code"
|
|
61
61
|
}
|
|
62
|
-
export declare enum GuardPageSene {
|
|
62
|
+
export declare const enum GuardPageSene {
|
|
63
63
|
Global = "global"
|
|
64
64
|
}
|
|
65
65
|
export interface GuardPageConfig {
|
|
@@ -68,7 +68,7 @@ export interface GuardPageConfig {
|
|
|
68
68
|
defaultLanguage: Lang | 'browser';
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
export declare enum EmailScene {
|
|
71
|
+
export declare const enum EmailScene {
|
|
72
72
|
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
73
73
|
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
74
74
|
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { GuardLocalConfig } from '../../Guard/config';
|
|
3
3
|
import { GuardHttp } from '../guardHttp';
|
|
4
4
|
import { GuardPageConfig } from '../../Type';
|
|
5
|
-
import { ApplicationConfig, RegisterMethods } from '../../Type/application';
|
|
5
|
+
import { ApplicationConfig, LoginMethods, RegisterMethods } from '../../Type/application';
|
|
6
6
|
export declare const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
7
7
|
export declare const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
8
8
|
export declare const getPageConfig: (appId: string) => GuardPageConfig;
|
|
@@ -48,10 +48,10 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
48
48
|
__unAuthFlow__?: boolean | undefined;
|
|
49
49
|
autoRegister?: boolean | undefined;
|
|
50
50
|
disableResetPwd?: boolean | undefined;
|
|
51
|
-
defaultLoginMethod?:
|
|
52
|
-
loginMethods?:
|
|
51
|
+
defaultLoginMethod?: LoginMethods | undefined;
|
|
52
|
+
loginMethods?: LoginMethods[] | undefined;
|
|
53
53
|
passwordLoginMethods?: import("../../Type").PasswordLoginMethods[] | undefined;
|
|
54
|
-
socialConnections?: import("
|
|
54
|
+
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
55
55
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
56
56
|
enterpriseConnections?: string[] | undefined;
|
|
57
57
|
qrCodeScanOptions?: {
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare const isMobile: () => RegExpMatchArray | null;
|
|
|
60
60
|
export declare const isSpecialBrowser: () => boolean;
|
|
61
61
|
export declare const assembledAppHost: (identifier: string, host: string) => string;
|
|
62
62
|
export declare const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
63
|
-
export declare enum PasswordStrength {
|
|
63
|
+
export declare const enum PasswordStrength {
|
|
64
64
|
NoCheck = 0,
|
|
65
65
|
Low = 1,
|
|
66
66
|
Middle = 2,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GuardModuleType } from '../../Guard';
|
|
2
|
-
export declare enum CodeAction {
|
|
2
|
+
export declare const enum CodeAction {
|
|
3
3
|
CHANGE_MODULE = "changeModule",
|
|
4
4
|
RENDER_MESSAGE = "renderMessage",
|
|
5
5
|
FLOW_END = "flowEnd"
|
|
6
6
|
}
|
|
7
|
-
export declare enum ApiCode {
|
|
7
|
+
export declare const enum ApiCode {
|
|
8
8
|
IDENTITY_BINDING_ASK = 1641,
|
|
9
9
|
IDENTITY_BINDING = 1640,
|
|
10
10
|
APP_MFA = 1636,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.
|
|
1
|
+
declare const _default: "4.0.7-rc.1";
|
|
2
2
|
export default _default;
|