@authing/react-ui-components 3.1.16-rc.6 → 3.1.17-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.d.ts +85 -7
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +4 -2
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;
|
|
@@ -1764,6 +1819,12 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1764
1819
|
account: string;
|
|
1765
1820
|
password: string;
|
|
1766
1821
|
}
|
|
1822
|
+
export enum IdentityBindingAction {
|
|
1823
|
+
CreateUser = "create-federation-account",
|
|
1824
|
+
BindByPassword = "bind-identity-by-password",
|
|
1825
|
+
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
1826
|
+
BindByEmailCode = "bind-identity-by-email-code"
|
|
1827
|
+
}
|
|
1767
1828
|
export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1768
1829
|
export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1769
1830
|
export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
@@ -2346,6 +2407,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2346
2407
|
nickme?: string;
|
|
2347
2408
|
username?: string;
|
|
2348
2409
|
current?: MFAType;
|
|
2410
|
+
thirdPartyOrigin?: boolean;
|
|
2349
2411
|
}
|
|
2350
2412
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2351
2413
|
config: Partial<MFAConfig>;
|
|
@@ -3010,6 +3072,13 @@ declare module '@authing/react-ui-components/components/_utils/facePlugin/interf
|
|
|
3010
3072
|
nets: any;
|
|
3011
3073
|
}
|
|
3012
3074
|
|
|
3075
|
+
}
|
|
3076
|
+
declare module '@authing/react-ui-components/components/_utils/flowHandleStorage' {
|
|
3077
|
+
export const getFlowHandle: () => string | undefined;
|
|
3078
|
+
export const useFlowHandle: () => string | undefined;
|
|
3079
|
+
export const updateFlowHandle: (flowHandle: string) => void;
|
|
3080
|
+
export const useUpdateFlowHandle: (flowHandle: string) => void;
|
|
3081
|
+
|
|
3013
3082
|
}
|
|
3014
3083
|
declare module '@authing/react-ui-components/components/_utils/guardDocument' {
|
|
3015
3084
|
export const getGuardDocument: () => Document;
|
|
@@ -3116,6 +3185,7 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3116
3185
|
data?: T;
|
|
3117
3186
|
messages?: string;
|
|
3118
3187
|
message?: string;
|
|
3188
|
+
flowHandle?: string;
|
|
3119
3189
|
}
|
|
3120
3190
|
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
3121
3191
|
onGuardHandling?: () => CodeAction;
|
|
@@ -3174,7 +3244,13 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3174
3244
|
export const isQQBrowser: () => boolean | null;
|
|
3175
3245
|
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3176
3246
|
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3177
|
-
export const
|
|
3247
|
+
export const isEdgeBrowser: () => boolean;
|
|
3248
|
+
export const isWeiboBrowser: () => boolean | null;
|
|
3249
|
+
export const isAlipayBrowser: () => boolean | null;
|
|
3250
|
+
export const isBaiduBrowser: () => boolean | null;
|
|
3251
|
+
export const isWeComeBrowser: () => boolean;
|
|
3252
|
+
export const isMobile: () => RegExpMatchArray | null;
|
|
3253
|
+
export const isSpecialBrowser: () => boolean;
|
|
3178
3254
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3179
3255
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
3180
3256
|
export enum PasswordStrength {
|
|
@@ -3294,7 +3370,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3294
3370
|
COMPLETE_INFO = 1642,
|
|
3295
3371
|
FLOW_END = 1600,
|
|
3296
3372
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3297
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3373
|
+
FORCED_PASSWORD_RESET = 2058,
|
|
3374
|
+
ACCOUNT_MERGE = 10000
|
|
3298
3375
|
}
|
|
3299
3376
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3300
3377
|
|
|
@@ -3380,6 +3457,7 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3380
3457
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3381
3458
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3382
3459
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3460
|
+
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3383
3461
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3384
3462
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3385
3463
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3391,7 +3469,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3391
3469
|
|
|
3392
3470
|
}
|
|
3393
3471
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3394
|
-
const _default: "3.1.
|
|
3472
|
+
const _default: "3.1.17-hep.1";
|
|
3395
3473
|
export default _default;
|
|
3396
3474
|
|
|
3397
3475
|
}
|