@authing/react-ui-components 3.1.16-rc.4 → 3.1.17-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 +102 -85
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +5 -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';
|
|
@@ -381,7 +427,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
381
427
|
import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
382
428
|
import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
|
|
383
429
|
import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
|
|
384
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
385
430
|
export enum ApplicationMfaType {
|
|
386
431
|
SMS = "SMS",
|
|
387
432
|
EMAIL = "EMAIL"
|
|
@@ -446,7 +491,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
446
491
|
defaultISOType: string;
|
|
447
492
|
};
|
|
448
493
|
css: string;
|
|
449
|
-
customLoading?: string;
|
|
450
494
|
name: string;
|
|
451
495
|
logo: string;
|
|
452
496
|
description?: string;
|
|
@@ -459,17 +503,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
459
503
|
[x: string]: string;
|
|
460
504
|
};
|
|
461
505
|
};
|
|
462
|
-
registerTabsConfig: {
|
|
463
|
-
list: string[];
|
|
464
|
-
default: string;
|
|
465
|
-
title: {
|
|
466
|
-
[x: string]: string;
|
|
467
|
-
};
|
|
468
|
-
registerTypeConfig: {
|
|
469
|
-
emailRegisterType?: NewRegisterMethods[];
|
|
470
|
-
phoneRegisterType?: NewRegisterMethods[];
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
506
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
474
507
|
loginTabs: {
|
|
475
508
|
list: string[];
|
|
@@ -520,6 +553,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
520
553
|
verifyCodeLength: number;
|
|
521
554
|
websocket: string;
|
|
522
555
|
welcomeMessage: any;
|
|
556
|
+
userPortal?: {
|
|
557
|
+
mergeAccount?: boolean;
|
|
558
|
+
};
|
|
523
559
|
skipComplateFileds: boolean;
|
|
524
560
|
}
|
|
525
561
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -1176,11 +1212,6 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
|
|
|
1176
1212
|
oldPassword?: string;
|
|
1177
1213
|
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1178
1214
|
|
|
1179
|
-
}
|
|
1180
|
-
declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
|
|
1181
|
-
import React from 'react';
|
|
1182
|
-
export const CompletePassword: React.FC;
|
|
1183
|
-
|
|
1184
1215
|
}
|
|
1185
1216
|
declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
|
|
1186
1217
|
import React from 'react';
|
|
@@ -1208,19 +1239,17 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1208
1239
|
}>;
|
|
1209
1240
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1210
1241
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1211
|
-
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1212
1242
|
|
|
1213
1243
|
}
|
|
1214
1244
|
declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
|
|
1215
|
-
import {
|
|
1216
|
-
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1245
|
+
import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1217
1246
|
export enum CompleteInfoAuthFlowAction {
|
|
1218
1247
|
Complete = "complete-completion",
|
|
1219
1248
|
Skip = "skip-completion"
|
|
1220
1249
|
}
|
|
1221
1250
|
export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1222
|
-
export const registerSkipMethod: (fnName:
|
|
1223
|
-
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName:
|
|
1251
|
+
export const registerSkipMethod: (fnName: 'registerByEmail' | 'registerByPhoneCode', content: any) => Promise<import("authing-js-sdk").User> | undefined;
|
|
1252
|
+
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
|
|
1224
1253
|
|
|
1225
1254
|
}
|
|
1226
1255
|
declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
|
|
@@ -1249,6 +1278,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1249
1278
|
}>;
|
|
1250
1279
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1251
1280
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1281
|
+
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1252
1282
|
|
|
1253
1283
|
}
|
|
1254
1284
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1261,19 +1291,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1261
1291
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1262
1292
|
definition: any;
|
|
1263
1293
|
value: any;
|
|
1264
|
-
}[], authClient: AuthenticationClient
|
|
1294
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
1295
|
+
phone?: string;
|
|
1296
|
+
canMergeUser?: boolean;
|
|
1297
|
+
}) => void;
|
|
1265
1298
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1266
1299
|
definition: any;
|
|
1267
1300
|
value: any;
|
|
1268
1301
|
}[], authClient: AuthenticationClient) => void;
|
|
1302
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1269
1303
|
}
|
|
1270
1304
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1271
1305
|
config: Partial<CompleteInfoConfig>;
|
|
1272
1306
|
}
|
|
1273
1307
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1274
1308
|
config: CompleteInfoConfig;
|
|
1275
|
-
initData: any;
|
|
1276
|
-
onLogin?: any;
|
|
1277
1309
|
}
|
|
1278
1310
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1279
1311
|
export interface ExtendsField {
|
|
@@ -1306,6 +1338,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1306
1338
|
name: string;
|
|
1307
1339
|
required: boolean;
|
|
1308
1340
|
validateRules: CompleteInfoRule[];
|
|
1341
|
+
checkUnique?: boolean;
|
|
1309
1342
|
options?: CompleteInfoSelectOption[];
|
|
1310
1343
|
}
|
|
1311
1344
|
export enum CompleteInfoBaseControls {
|
|
@@ -1332,10 +1365,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1332
1365
|
}
|
|
1333
1366
|
export interface RegisterCompleteInfoInitData {
|
|
1334
1367
|
content: any;
|
|
1335
|
-
businessRequestName: 'registerByEmail' | 'registerByPhoneCode'
|
|
1336
|
-
}
|
|
1337
|
-
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1338
|
-
isChangeComplete: boolean;
|
|
1368
|
+
businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
|
|
1339
1369
|
}
|
|
1340
1370
|
export interface CompleteInfoRequest {
|
|
1341
1371
|
fieldValues: {
|
|
@@ -1346,8 +1376,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1346
1376
|
}
|
|
1347
1377
|
export enum OmitCompleteInfo {
|
|
1348
1378
|
'registerByEmail' = "email",
|
|
1349
|
-
'registerByPhoneCode' = "phone"
|
|
1350
|
-
'registerByEmailCode' = "email"
|
|
1379
|
+
'registerByPhoneCode' = "phone"
|
|
1351
1380
|
}
|
|
1352
1381
|
|
|
1353
1382
|
}
|
|
@@ -1683,12 +1712,13 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1683
1712
|
BIND_TOTP = "bindTotp",
|
|
1684
1713
|
ANY_QUESTIONS = "anyQuestions",
|
|
1685
1714
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1686
|
-
REGISTER_PASSWORD = "registerPassword",
|
|
1687
1715
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1716
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1688
1717
|
RECOVERY_CODE = "recoveryCode",
|
|
1689
1718
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1690
1719
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1691
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1720
|
+
IDENTITY_BINDING = "identityBinding",
|
|
1721
|
+
ACCOUNT_MERGE = "accountMerge"
|
|
1692
1722
|
}
|
|
1693
1723
|
export interface GuardModuleAction {
|
|
1694
1724
|
action: string;
|
|
@@ -1764,6 +1794,12 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1764
1794
|
account: string;
|
|
1765
1795
|
password: string;
|
|
1766
1796
|
}
|
|
1797
|
+
export enum IdentityBindingAction {
|
|
1798
|
+
CreateUser = "create-federation-account",
|
|
1799
|
+
BindByPassword = "bind-identity-by-password",
|
|
1800
|
+
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
1801
|
+
BindByEmailCode = "bind-identity-by-email-code"
|
|
1802
|
+
}
|
|
1767
1803
|
export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1768
1804
|
export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1769
1805
|
export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
@@ -2346,6 +2382,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2346
2382
|
nickme?: string;
|
|
2347
2383
|
username?: string;
|
|
2348
2384
|
current?: MFAType;
|
|
2385
|
+
thirdPartyOrigin?: boolean;
|
|
2349
2386
|
}
|
|
2350
2387
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2351
2388
|
config: Partial<MFAConfig>;
|
|
@@ -2461,20 +2498,6 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
2461
2498
|
}
|
|
2462
2499
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
2463
2500
|
|
|
2464
|
-
}
|
|
2465
|
-
declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
|
|
2466
|
-
import React from 'react';
|
|
2467
|
-
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2468
|
-
export interface RegisterWithEmailCodeProps {
|
|
2469
|
-
onRegisterSuccess: Function;
|
|
2470
|
-
onRegisterFailed: Function;
|
|
2471
|
-
onBeforeRegister?: Function;
|
|
2472
|
-
agreements: Agreement[];
|
|
2473
|
-
publicConfig?: ApplicationConfig;
|
|
2474
|
-
registeContext?: any;
|
|
2475
|
-
}
|
|
2476
|
-
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
2477
|
-
|
|
2478
2501
|
}
|
|
2479
2502
|
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
2480
2503
|
import React from 'react';
|
|
@@ -2495,13 +2518,14 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2495
2518
|
|
|
2496
2519
|
}
|
|
2497
2520
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2498
|
-
import {
|
|
2521
|
+
import { RegisterMethods } from 'authing-js-sdk';
|
|
2522
|
+
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2499
2523
|
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2500
2524
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2501
2525
|
export interface RegisterConfig extends IG2Config {
|
|
2502
2526
|
disableRegister?: boolean;
|
|
2503
|
-
registerMethods?:
|
|
2504
|
-
defaultRegisterMethod?:
|
|
2527
|
+
registerMethods?: RegisterMethods[];
|
|
2528
|
+
defaultRegisterMethod?: RegisterMethods;
|
|
2505
2529
|
publicKey?: string;
|
|
2506
2530
|
agreementEnabled?: boolean;
|
|
2507
2531
|
agreements?: Agreement[];
|
|
@@ -2511,7 +2535,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2511
2535
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2512
2536
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2513
2537
|
onRegisterError?: (error: any) => void;
|
|
2514
|
-
onRegisterTabChange?: (activeTab:
|
|
2538
|
+
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
2515
2539
|
}
|
|
2516
2540
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2517
2541
|
config?: Partial<RegisterConfig>;
|
|
@@ -2541,11 +2565,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2541
2565
|
}
|
|
2542
2566
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2543
2567
|
import { FC } from 'react';
|
|
2568
|
+
import { EmailScene } from 'authing-js-sdk';
|
|
2544
2569
|
import './style.less';
|
|
2545
2570
|
import { InputProps } from 'antd/lib/input';
|
|
2546
|
-
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2547
2571
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2548
|
-
data
|
|
2572
|
+
data: string;
|
|
2549
2573
|
form?: any;
|
|
2550
2574
|
onSendCodeBefore?: any;
|
|
2551
2575
|
fieldName?: string;
|
|
@@ -2613,7 +2637,6 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
|
2613
2637
|
text?: string;
|
|
2614
2638
|
className?: string;
|
|
2615
2639
|
onClick?: any;
|
|
2616
|
-
disabled?: boolean;
|
|
2617
2640
|
}
|
|
2618
2641
|
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
2619
2642
|
export default _default;
|
|
@@ -2709,24 +2732,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2709
2732
|
showChangeLanguage: boolean;
|
|
2710
2733
|
};
|
|
2711
2734
|
}
|
|
2712
|
-
export enum NewRegisterMethods {
|
|
2713
|
-
Email = "email",
|
|
2714
|
-
Phone = "phone",
|
|
2715
|
-
EmailCode = "emailCode"
|
|
2716
|
-
}
|
|
2717
|
-
export enum EmailScene {
|
|
2718
|
-
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2719
|
-
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
2720
|
-
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
2721
|
-
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
2722
|
-
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
2723
|
-
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
2724
|
-
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
2725
|
-
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2726
|
-
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2727
|
-
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2728
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2729
|
-
}
|
|
2730
2735
|
|
|
2731
2736
|
}
|
|
2732
2737
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2755,7 +2760,6 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2755
2760
|
form?: FormInstance;
|
|
2756
2761
|
checkRepeat?: boolean;
|
|
2757
2762
|
areaCode?: string;
|
|
2758
|
-
isCheckI18nSms?: boolean;
|
|
2759
2763
|
}
|
|
2760
2764
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2761
2765
|
form?: FormInstance;
|
|
@@ -2822,10 +2826,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
|
|
|
2822
2826
|
}
|
|
2823
2827
|
declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
2824
2828
|
/// <reference types="react" />
|
|
2829
|
+
import { RegisterMethods } from 'authing-js-sdk';
|
|
2825
2830
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2826
2831
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2827
2832
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2828
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2829
2833
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2830
2834
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2831
2835
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
@@ -2840,8 +2844,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2840
2844
|
openEventsMapping?: boolean | undefined;
|
|
2841
2845
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2842
2846
|
disableRegister?: boolean | undefined;
|
|
2843
|
-
registerMethods?:
|
|
2844
|
-
defaultRegisterMethod?:
|
|
2847
|
+
registerMethods?: RegisterMethods[] | undefined;
|
|
2848
|
+
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
2845
2849
|
publicKey?: string | undefined;
|
|
2846
2850
|
agreementEnabled?: boolean | undefined;
|
|
2847
2851
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -3010,6 +3014,13 @@ declare module '@authing/react-ui-components/components/_utils/facePlugin/interf
|
|
|
3010
3014
|
nets: any;
|
|
3011
3015
|
}
|
|
3012
3016
|
|
|
3017
|
+
}
|
|
3018
|
+
declare module '@authing/react-ui-components/components/_utils/flowHandleStorage' {
|
|
3019
|
+
export const getFlowHandle: () => string | undefined;
|
|
3020
|
+
export const useFlowHandle: () => string | undefined;
|
|
3021
|
+
export const updateFlowHandle: (flowHandle: string) => void;
|
|
3022
|
+
export const useUpdateFlowHandle: (flowHandle: string) => void;
|
|
3023
|
+
|
|
3013
3024
|
}
|
|
3014
3025
|
declare module '@authing/react-ui-components/components/_utils/guardDocument' {
|
|
3015
3026
|
export const getGuardDocument: () => Document;
|
|
@@ -3116,6 +3127,7 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3116
3127
|
data?: T;
|
|
3117
3128
|
messages?: string;
|
|
3118
3129
|
message?: string;
|
|
3130
|
+
flowHandle?: string;
|
|
3119
3131
|
}
|
|
3120
3132
|
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
3121
3133
|
onGuardHandling?: () => CodeAction;
|
|
@@ -3126,10 +3138,9 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3126
3138
|
declare module '@authing/react-ui-components/components/_utils/index' {
|
|
3127
3139
|
import { Rule } from 'antd/lib/form';
|
|
3128
3140
|
import qs from 'qs';
|
|
3129
|
-
import { User } from 'authing-js-sdk';
|
|
3141
|
+
import { RegisterMethods, User } from 'authing-js-sdk';
|
|
3130
3142
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3131
3143
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3132
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
3133
3144
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3134
3145
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3135
3146
|
export const VALIDATE_PATTERN: {
|
|
@@ -3172,9 +3183,13 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3172
3183
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3173
3184
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3174
3185
|
export const isQQBrowser: () => boolean | null;
|
|
3175
|
-
export const
|
|
3176
|
-
export const
|
|
3177
|
-
export const
|
|
3186
|
+
export const isEdgeBrowser: () => boolean;
|
|
3187
|
+
export const isWeiboBrowser: () => boolean | null;
|
|
3188
|
+
export const isAlipayBrowser: () => boolean | null;
|
|
3189
|
+
export const isBaiduBrowser: () => boolean | null;
|
|
3190
|
+
export const isWeComeBrowser: () => boolean;
|
|
3191
|
+
export const isMobile: () => RegExpMatchArray | null;
|
|
3192
|
+
export const isSpecialBrowser: () => boolean;
|
|
3178
3193
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3179
3194
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
3180
3195
|
export enum PasswordStrength {
|
|
@@ -3192,7 +3207,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3192
3207
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3193
3208
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3194
3209
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3195
|
-
export const tabSort: (defaultValue:
|
|
3210
|
+
export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
3196
3211
|
export const mailDesensitization: (mail: string) => string;
|
|
3197
3212
|
export const phoneDesensitization: (phone: string) => string;
|
|
3198
3213
|
export const getHundreds: (num: number) => number;
|
|
@@ -3294,7 +3309,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3294
3309
|
COMPLETE_INFO = 1642,
|
|
3295
3310
|
FLOW_END = 1600,
|
|
3296
3311
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3297
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3312
|
+
FORCED_PASSWORD_RESET = 2058,
|
|
3313
|
+
ACCOUNT_MERGE = 10000
|
|
3298
3314
|
}
|
|
3299
3315
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3300
3316
|
|
|
@@ -3380,6 +3396,7 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3380
3396
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3381
3397
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3382
3398
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3399
|
+
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3383
3400
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3384
3401
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3385
3402
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3391,7 +3408,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3391
3408
|
|
|
3392
3409
|
}
|
|
3393
3410
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3394
|
-
const _default: "3.1.
|
|
3411
|
+
const _default: "3.1.17-hep.0";
|
|
3395
3412
|
export default _default;
|
|
3396
3413
|
|
|
3397
3414
|
}
|