@authing/react-ui-components 4.0.0-hep.0 → 4.0.0-hep.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.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/AccountMerge/UserRadio.d.ts +5 -0
- package/types/AccountMerge/index.d.ts +3 -0
- package/types/AccountMerge/interface.d.ts +27 -0
- package/types/AccountMerge/utils.d.ts +3 -0
- package/types/CompleteInfo/index.d.ts +1 -0
- package/types/CompleteInfo/interface.d.ts +6 -3
- package/types/Guard/module.d.ts +2 -0
- package/types/MFA/interface.d.ts +1 -0
- package/types/Type/application.d.ts +3 -0
- package/types/_utils/hooks/index.d.ts +0 -4
- package/types/_utils/responseManagement/interface.d.ts +1 -0
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface BriefUserInfo {
|
|
2
|
+
displayName: string;
|
|
3
|
+
avatar: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
email: string;
|
|
6
|
+
username: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GuardAccountMergeInitData {
|
|
10
|
+
currentUserInfo: BriefUserInfo;
|
|
11
|
+
existingUserInfo: BriefUserInfo;
|
|
12
|
+
mergeToken?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UserRadioProps {
|
|
15
|
+
currentUserInfo: BriefUserInfo;
|
|
16
|
+
existingUserInfo: BriefUserInfo;
|
|
17
|
+
onChange?: (value: any) => void;
|
|
18
|
+
value?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface UserRadioItemProps extends BriefUserInfo {
|
|
21
|
+
value: boolean;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
onClick: (value: boolean) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare enum AuthFlowAction {
|
|
26
|
+
MERGE = "confirm-account-merge"
|
|
27
|
+
}
|
|
@@ -7,19 +7,21 @@ export interface CompleteInfoEvents extends IG2Events {
|
|
|
7
7
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
8
8
|
definition: any;
|
|
9
9
|
value: any;
|
|
10
|
-
}[], authClient: AuthenticationClient
|
|
10
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
11
|
+
phone?: string;
|
|
12
|
+
canMergeUser?: boolean;
|
|
13
|
+
}) => void;
|
|
11
14
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
12
15
|
definition: any;
|
|
13
16
|
value: any;
|
|
14
17
|
}[], authClient: AuthenticationClient) => void;
|
|
18
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
15
19
|
}
|
|
16
20
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
17
21
|
config: Partial<CompleteInfoConfig>;
|
|
18
22
|
}
|
|
19
23
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
20
24
|
config: CompleteInfoConfig;
|
|
21
|
-
initData: any;
|
|
22
|
-
onLogin?: any;
|
|
23
25
|
}
|
|
24
26
|
export declare type ExtendsFieldType = 'user' | 'internal';
|
|
25
27
|
export interface ExtendsField {
|
|
@@ -52,6 +54,7 @@ export interface CompleteInfoMetaData {
|
|
|
52
54
|
name: string;
|
|
53
55
|
required: boolean;
|
|
54
56
|
validateRules: CompleteInfoRule[];
|
|
57
|
+
checkUnique?: boolean;
|
|
55
58
|
options?: CompleteInfoSelectOption[];
|
|
56
59
|
}
|
|
57
60
|
export declare enum CompleteInfoBaseControls {
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -14,10 +14,12 @@ export declare enum GuardModuleType {
|
|
|
14
14
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
15
15
|
REGISTER_PASSWORD = "registerPassword",
|
|
16
16
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
17
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
17
18
|
RECOVERY_CODE = "recoveryCode",
|
|
18
19
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
19
20
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
20
21
|
IDENTITY_BINDING = "identityBinding",
|
|
22
|
+
ACCOUNT_MERGE = "accountMerge",
|
|
21
23
|
SELF_UNLOCK = "selfUnlock"
|
|
22
24
|
}
|
|
23
25
|
export interface GuardModuleAction {
|
package/types/MFA/interface.d.ts
CHANGED
|
@@ -251,6 +251,9 @@ export interface ApplicationConfig {
|
|
|
251
251
|
verifyCodeLength: number;
|
|
252
252
|
websocket: string;
|
|
253
253
|
welcomeMessage: any;
|
|
254
|
+
userPortal?: {
|
|
255
|
+
mergeAccount?: boolean;
|
|
256
|
+
};
|
|
254
257
|
skipComplateFileds: boolean;
|
|
255
258
|
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
256
259
|
defaultLanguageConfig: Lang;
|
|
@@ -28,10 +28,6 @@ export declare const parsePhone: (isInternationSms: boolean, fieldValue: string,
|
|
|
28
28
|
countryCode: string | undefined;
|
|
29
29
|
phoneNumber: string;
|
|
30
30
|
};
|
|
31
|
-
export declare enum SocialConnectionEvent {
|
|
32
|
-
Message = "message",
|
|
33
|
-
Auth = "auth"
|
|
34
|
-
}
|
|
35
31
|
/**
|
|
36
32
|
*
|
|
37
33
|
* @param config
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.0-hep.
|
|
1
|
+
declare const _default: "4.0.0-hep.1";
|
|
2
2
|
export default _default;
|