@authing/react-ui-components 3.1.22-rc.8 → 3.1.23-hep.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.d.ts +72 -5
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
declare module '@authing/react-ui-components/components/AccountMerge/UserRadio' {
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { UserRadioItemProps, UserRadioProps } from '@authing/react-ui-components/components/AccountMerge/interface';
|
|
4
|
+
import './styles.less';
|
|
5
|
+
export const UserRadioItem: React.FC<UserRadioItemProps>;
|
|
6
|
+
export const UserRadio: React.FC<UserRadioProps>;
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
declare module '@authing/react-ui-components/components/AccountMerge/index' {
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import './styles.less';
|
|
12
|
+
export const GuardAccountMergeView: React.FC;
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
declare module '@authing/react-ui-components/components/AccountMerge/interface' {
|
|
16
|
+
export interface BriefUserInfo {
|
|
17
|
+
displayName: string;
|
|
18
|
+
avatar: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
email: string;
|
|
21
|
+
username: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GuardAccountMergeInitData {
|
|
25
|
+
currentUserInfo: BriefUserInfo;
|
|
26
|
+
existingUserInfo: BriefUserInfo;
|
|
27
|
+
mergeToken?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface UserRadioProps {
|
|
30
|
+
currentUserInfo: BriefUserInfo;
|
|
31
|
+
existingUserInfo: BriefUserInfo;
|
|
32
|
+
onChange?: (value: any) => void;
|
|
33
|
+
value?: any;
|
|
34
|
+
}
|
|
35
|
+
export interface UserRadioItemProps extends BriefUserInfo {
|
|
36
|
+
value: boolean;
|
|
37
|
+
selected: boolean;
|
|
38
|
+
onClick: (value: boolean) => void;
|
|
39
|
+
}
|
|
40
|
+
export enum AuthFlowAction {
|
|
41
|
+
MERGE = "confirm-account-merge"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
declare module '@authing/react-ui-components/components/AccountMerge/utils' {
|
|
46
|
+
import { User } from 'authing-js-sdk';
|
|
47
|
+
export const getDisplayName: (user: User) => string;
|
|
48
|
+
export const getDisplayNameByEmail: (displayName: string) => string;
|
|
49
|
+
|
|
50
|
+
}
|
|
1
51
|
declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
|
|
2
52
|
import React from 'react';
|
|
3
53
|
import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
|
|
@@ -519,6 +569,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
519
569
|
verifyCodeLength: number;
|
|
520
570
|
websocket: string;
|
|
521
571
|
welcomeMessage: any;
|
|
572
|
+
userPortal?: {
|
|
573
|
+
mergeAccount?: boolean;
|
|
574
|
+
};
|
|
522
575
|
skipComplateFileds: boolean;
|
|
523
576
|
}
|
|
524
577
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -1248,6 +1301,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1248
1301
|
}>;
|
|
1249
1302
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1250
1303
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1304
|
+
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1251
1305
|
|
|
1252
1306
|
}
|
|
1253
1307
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1260,19 +1314,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1260
1314
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1261
1315
|
definition: any;
|
|
1262
1316
|
value: any;
|
|
1263
|
-
}[], authClient: AuthenticationClient
|
|
1317
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
1318
|
+
phone?: string;
|
|
1319
|
+
canMergeUser?: boolean;
|
|
1320
|
+
}) => void;
|
|
1264
1321
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1265
1322
|
definition: any;
|
|
1266
1323
|
value: any;
|
|
1267
1324
|
}[], authClient: AuthenticationClient) => void;
|
|
1325
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1268
1326
|
}
|
|
1269
1327
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1270
1328
|
config: Partial<CompleteInfoConfig>;
|
|
1271
1329
|
}
|
|
1272
1330
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1273
1331
|
config: CompleteInfoConfig;
|
|
1274
|
-
initData: any;
|
|
1275
|
-
onLogin?: any;
|
|
1276
1332
|
}
|
|
1277
1333
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1278
1334
|
export interface ExtendsField {
|
|
@@ -1305,6 +1361,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1305
1361
|
name: string;
|
|
1306
1362
|
required: boolean;
|
|
1307
1363
|
validateRules: CompleteInfoRule[];
|
|
1364
|
+
checkUnique?: boolean;
|
|
1308
1365
|
options?: CompleteInfoSelectOption[];
|
|
1309
1366
|
}
|
|
1310
1367
|
export enum CompleteInfoBaseControls {
|
|
@@ -1692,10 +1749,12 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1692
1749
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1693
1750
|
REGISTER_PASSWORD = "registerPassword",
|
|
1694
1751
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1752
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1695
1753
|
RECOVERY_CODE = "recoveryCode",
|
|
1696
1754
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1697
1755
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1698
1756
|
IDENTITY_BINDING = "identityBinding",
|
|
1757
|
+
ACCOUNT_MERGE = "accountMerge",
|
|
1699
1758
|
SELF_UNLOCK = "selfUnlock"
|
|
1700
1759
|
}
|
|
1701
1760
|
export interface GuardModuleAction {
|
|
@@ -2381,6 +2440,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2381
2440
|
nickme?: string;
|
|
2382
2441
|
username?: string;
|
|
2383
2442
|
current?: MFAType;
|
|
2443
|
+
thirdPartyOrigin?: boolean;
|
|
2384
2444
|
}
|
|
2385
2445
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2386
2446
|
config: Partial<MFAConfig>;
|
|
@@ -3176,6 +3236,10 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3176
3236
|
countryCode: string | undefined;
|
|
3177
3237
|
phoneNumber: string;
|
|
3178
3238
|
};
|
|
3239
|
+
export enum SocialConnectionEvent {
|
|
3240
|
+
Message = "message",
|
|
3241
|
+
Auth = "auth"
|
|
3242
|
+
}
|
|
3179
3243
|
/**
|
|
3180
3244
|
*
|
|
3181
3245
|
* @param config
|
|
@@ -3310,6 +3374,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3310
3374
|
specifyDefaultLoginMethod: LoginMethods;
|
|
3311
3375
|
lockMethod?: undefined;
|
|
3312
3376
|
} | undefined;
|
|
3377
|
+
export const getPasswordIdentify: (identity: string) => string;
|
|
3313
3378
|
|
|
3314
3379
|
}
|
|
3315
3380
|
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
@@ -3407,7 +3472,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3407
3472
|
UNLOCK = 1643,
|
|
3408
3473
|
FLOW_END = 1600,
|
|
3409
3474
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3410
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3475
|
+
FORCED_PASSWORD_RESET = 2058,
|
|
3476
|
+
ACCOUNT_MERGE = 10000
|
|
3411
3477
|
}
|
|
3412
3478
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3413
3479
|
|
|
@@ -3493,6 +3559,7 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3493
3559
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3494
3560
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3495
3561
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3562
|
+
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3496
3563
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3497
3564
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3498
3565
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3504,7 +3571,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3504
3571
|
|
|
3505
3572
|
}
|
|
3506
3573
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3507
|
-
const _default: "3.1.
|
|
3574
|
+
const _default: "3.1.23-hep.0";
|
|
3508
3575
|
export default _default;
|
|
3509
3576
|
|
|
3510
3577
|
}
|