@authing/react-ui-components 3.1.18 → 3.1.19-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 +65 -6
- 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,49 @@
|
|
|
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
|
+
}
|
|
20
|
+
export interface GuardAccountMergeInitData {
|
|
21
|
+
currentUserInfo: BriefUserInfo;
|
|
22
|
+
existingUserInfo: BriefUserInfo;
|
|
23
|
+
mergeToken?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface UserRadioProps {
|
|
26
|
+
currentUserInfo: BriefUserInfo;
|
|
27
|
+
existingUserInfo: BriefUserInfo;
|
|
28
|
+
onChange?: (value: any) => void;
|
|
29
|
+
value?: any;
|
|
30
|
+
}
|
|
31
|
+
export interface UserRadioItemProps extends BriefUserInfo {
|
|
32
|
+
value: boolean;
|
|
33
|
+
selected: boolean;
|
|
34
|
+
onClick: (value: boolean) => void;
|
|
35
|
+
}
|
|
36
|
+
export enum AuthFlowAction {
|
|
37
|
+
MERGE = "confirm-account-merge"
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
declare module '@authing/react-ui-components/components/AccountMerge/utils' {
|
|
42
|
+
import { User } from 'authing-js-sdk';
|
|
43
|
+
export const getDisplayName: (user: User) => string;
|
|
44
|
+
export const getDisplayNameByEmail: (displayName: string) => string;
|
|
45
|
+
|
|
46
|
+
}
|
|
1
47
|
declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
|
|
2
48
|
import React from 'react';
|
|
3
49
|
import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
|
|
@@ -520,6 +566,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
520
566
|
verifyCodeLength: number;
|
|
521
567
|
websocket: string;
|
|
522
568
|
welcomeMessage: any;
|
|
569
|
+
userPortal?: {
|
|
570
|
+
mergeAccount?: boolean;
|
|
571
|
+
};
|
|
523
572
|
skipComplateFileds: boolean;
|
|
524
573
|
}
|
|
525
574
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -1249,6 +1298,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1249
1298
|
}>;
|
|
1250
1299
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1251
1300
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1301
|
+
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1252
1302
|
|
|
1253
1303
|
}
|
|
1254
1304
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1261,19 +1311,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1261
1311
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1262
1312
|
definition: any;
|
|
1263
1313
|
value: any;
|
|
1264
|
-
}[], authClient: AuthenticationClient
|
|
1314
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
1315
|
+
phone?: string;
|
|
1316
|
+
canMergeUser?: boolean;
|
|
1317
|
+
}) => void;
|
|
1265
1318
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1266
1319
|
definition: any;
|
|
1267
1320
|
value: any;
|
|
1268
1321
|
}[], authClient: AuthenticationClient) => void;
|
|
1322
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1269
1323
|
}
|
|
1270
1324
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1271
1325
|
config: Partial<CompleteInfoConfig>;
|
|
1272
1326
|
}
|
|
1273
1327
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1274
1328
|
config: CompleteInfoConfig;
|
|
1275
|
-
initData: any;
|
|
1276
|
-
onLogin?: any;
|
|
1277
1329
|
}
|
|
1278
1330
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1279
1331
|
export interface ExtendsField {
|
|
@@ -1306,6 +1358,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1306
1358
|
name: string;
|
|
1307
1359
|
required: boolean;
|
|
1308
1360
|
validateRules: CompleteInfoRule[];
|
|
1361
|
+
checkUnique?: boolean;
|
|
1309
1362
|
options?: CompleteInfoSelectOption[];
|
|
1310
1363
|
}
|
|
1311
1364
|
export enum CompleteInfoBaseControls {
|
|
@@ -1685,10 +1738,12 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1685
1738
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1686
1739
|
REGISTER_PASSWORD = "registerPassword",
|
|
1687
1740
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1741
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1688
1742
|
RECOVERY_CODE = "recoveryCode",
|
|
1689
1743
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1690
1744
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1691
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1745
|
+
IDENTITY_BINDING = "identityBinding",
|
|
1746
|
+
ACCOUNT_MERGE = "accountMerge"
|
|
1692
1747
|
}
|
|
1693
1748
|
export interface GuardModuleAction {
|
|
1694
1749
|
action: string;
|
|
@@ -1763,6 +1818,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1763
1818
|
export interface PasswordParams {
|
|
1764
1819
|
account: string;
|
|
1765
1820
|
password: string;
|
|
1821
|
+
captchaCode: string;
|
|
1766
1822
|
}
|
|
1767
1823
|
export enum IdentityBindingAction {
|
|
1768
1824
|
CreateUser = "create-federation-account",
|
|
@@ -2352,6 +2408,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2352
2408
|
nickme?: string;
|
|
2353
2409
|
username?: string;
|
|
2354
2410
|
current?: MFAType;
|
|
2411
|
+
thirdPartyOrigin?: boolean;
|
|
2355
2412
|
}
|
|
2356
2413
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2357
2414
|
config: Partial<MFAConfig>;
|
|
@@ -3316,7 +3373,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3316
3373
|
COMPLETE_INFO = 1642,
|
|
3317
3374
|
FLOW_END = 1600,
|
|
3318
3375
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3319
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3376
|
+
FORCED_PASSWORD_RESET = 2058,
|
|
3377
|
+
ACCOUNT_MERGE = 10000
|
|
3320
3378
|
}
|
|
3321
3379
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3322
3380
|
|
|
@@ -3402,6 +3460,7 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3402
3460
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3403
3461
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3404
3462
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3463
|
+
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3405
3464
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3406
3465
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3407
3466
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3413,7 +3472,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3413
3472
|
|
|
3414
3473
|
}
|
|
3415
3474
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3416
|
-
const _default: "3.1.
|
|
3475
|
+
const _default: "3.1.19-hep.0";
|
|
3417
3476
|
export default _default;
|
|
3418
3477
|
|
|
3419
3478
|
}
|