@authing/react-ui-components 3.1.22 → 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 +129 -38
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
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';
|
|
@@ -378,10 +428,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/
|
|
|
378
428
|
|
|
379
429
|
}
|
|
380
430
|
declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
|
|
381
|
-
import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
431
|
+
import { Lang, LoginMethods, Protocol, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
382
432
|
import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
|
|
383
433
|
import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
|
|
384
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
385
434
|
export enum ApplicationMfaType {
|
|
386
435
|
SMS = "SMS",
|
|
387
436
|
EMAIL = "EMAIL"
|
|
@@ -466,8 +515,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
466
515
|
[x: string]: string;
|
|
467
516
|
};
|
|
468
517
|
registerTypeConfig: {
|
|
469
|
-
emailRegisterType?:
|
|
470
|
-
phoneRegisterType?:
|
|
518
|
+
emailRegisterType?: RegisterMethods[];
|
|
519
|
+
phoneRegisterType?: RegisterMethods[];
|
|
471
520
|
};
|
|
472
521
|
};
|
|
473
522
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
@@ -520,6 +569,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
520
569
|
verifyCodeLength: number;
|
|
521
570
|
websocket: string;
|
|
522
571
|
welcomeMessage: any;
|
|
572
|
+
userPortal?: {
|
|
573
|
+
mergeAccount?: boolean;
|
|
574
|
+
};
|
|
523
575
|
skipComplateFileds: boolean;
|
|
524
576
|
}
|
|
525
577
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -638,7 +690,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
|
|
|
638
690
|
|
|
639
691
|
}
|
|
640
692
|
declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
|
|
641
|
-
import { UserConfig, LoginMethods,
|
|
693
|
+
import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
642
694
|
export const OTP_MFA_CODE = 1635;
|
|
643
695
|
export const APP_MFA_CODE = 1636;
|
|
644
696
|
export const NEED_CAPTCHA = 2000;
|
|
@@ -651,10 +703,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/constants'
|
|
|
651
703
|
ad: string;
|
|
652
704
|
"wechatmp-qrcode": string;
|
|
653
705
|
};
|
|
654
|
-
export const REGISTER_METHODS_MAP:
|
|
655
|
-
email: string;
|
|
656
|
-
phone: string;
|
|
657
|
-
};
|
|
706
|
+
export const REGISTER_METHODS_MAP: any;
|
|
658
707
|
export const HIDE_SOCIALS: string[];
|
|
659
708
|
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
660
709
|
export enum ApplicationMfaType {
|
|
@@ -828,7 +877,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
|
|
|
828
877
|
}
|
|
829
878
|
export enum RegisterMethods {
|
|
830
879
|
Email = "email",
|
|
831
|
-
Phone = "phone"
|
|
880
|
+
Phone = "phone",
|
|
881
|
+
EmailCode = "emailCode"
|
|
832
882
|
}
|
|
833
883
|
export enum GuardScenes {
|
|
834
884
|
Login = "login",
|
|
@@ -1251,6 +1301,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1251
1301
|
}>;
|
|
1252
1302
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1253
1303
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1304
|
+
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1254
1305
|
|
|
1255
1306
|
}
|
|
1256
1307
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1263,19 +1314,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1263
1314
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1264
1315
|
definition: any;
|
|
1265
1316
|
value: any;
|
|
1266
|
-
}[], authClient: AuthenticationClient
|
|
1317
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
1318
|
+
phone?: string;
|
|
1319
|
+
canMergeUser?: boolean;
|
|
1320
|
+
}) => void;
|
|
1267
1321
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1268
1322
|
definition: any;
|
|
1269
1323
|
value: any;
|
|
1270
1324
|
}[], authClient: AuthenticationClient) => void;
|
|
1325
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1271
1326
|
}
|
|
1272
1327
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1273
1328
|
config: Partial<CompleteInfoConfig>;
|
|
1274
1329
|
}
|
|
1275
1330
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1276
1331
|
config: CompleteInfoConfig;
|
|
1277
|
-
initData: any;
|
|
1278
|
-
onLogin?: any;
|
|
1279
1332
|
}
|
|
1280
1333
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1281
1334
|
export interface ExtendsField {
|
|
@@ -1308,6 +1361,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1308
1361
|
name: string;
|
|
1309
1362
|
required: boolean;
|
|
1310
1363
|
validateRules: CompleteInfoRule[];
|
|
1364
|
+
checkUnique?: boolean;
|
|
1311
1365
|
options?: CompleteInfoSelectOption[];
|
|
1312
1366
|
}
|
|
1313
1367
|
export enum CompleteInfoBaseControls {
|
|
@@ -1335,6 +1389,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1335
1389
|
export interface RegisterCompleteInfoInitData {
|
|
1336
1390
|
content: any;
|
|
1337
1391
|
businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
|
|
1392
|
+
onRegisterFailed: Function;
|
|
1393
|
+
onRegisterSuccess: Function;
|
|
1338
1394
|
}
|
|
1339
1395
|
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1340
1396
|
isChangeComplete: boolean;
|
|
@@ -1693,10 +1749,12 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1693
1749
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1694
1750
|
REGISTER_PASSWORD = "registerPassword",
|
|
1695
1751
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1752
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1696
1753
|
RECOVERY_CODE = "recoveryCode",
|
|
1697
1754
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1698
1755
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1699
1756
|
IDENTITY_BINDING = "identityBinding",
|
|
1757
|
+
ACCOUNT_MERGE = "accountMerge",
|
|
1700
1758
|
SELF_UNLOCK = "selfUnlock"
|
|
1701
1759
|
}
|
|
1702
1760
|
export interface GuardModuleAction {
|
|
@@ -1999,6 +2057,7 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
1999
2057
|
agreements: Agreement[];
|
|
2000
2058
|
loginWay?: LoginMethods;
|
|
2001
2059
|
submitButText?: string;
|
|
2060
|
+
saveIdentify?: (type: LoginMethods, identity: string) => void;
|
|
2002
2061
|
}
|
|
2003
2062
|
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
2004
2063
|
export {};
|
|
@@ -2010,8 +2069,9 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2010
2069
|
import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2011
2070
|
export interface FormItemIdentifyProps extends FormItemProps {
|
|
2012
2071
|
checkRepeat?: boolean;
|
|
2072
|
+
checkExist?: boolean;
|
|
2013
2073
|
methods: VerifyLoginMethods[];
|
|
2014
|
-
currentMethod
|
|
2074
|
+
currentMethod: 'phone-code' | 'email-code';
|
|
2015
2075
|
areaCode?: string;
|
|
2016
2076
|
}
|
|
2017
2077
|
export const FormItemIdentify: React.FC<FormItemIdentifyProps>;
|
|
@@ -2116,6 +2176,11 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
2116
2176
|
export interface GuardLoginViewProps extends GuardLoginProps, IG2FCViewProps {
|
|
2117
2177
|
config: LoginConfig;
|
|
2118
2178
|
}
|
|
2179
|
+
export interface GuardLoginInitData {
|
|
2180
|
+
specifyDefaultLoginMethod?: LoginMethods;
|
|
2181
|
+
_firstItemInitialValue?: string;
|
|
2182
|
+
_lockMethod?: string;
|
|
2183
|
+
}
|
|
2119
2184
|
export const getDefaultLoginConfig: () => LoginConfig;
|
|
2120
2185
|
|
|
2121
2186
|
}
|
|
@@ -2375,6 +2440,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2375
2440
|
nickme?: string;
|
|
2376
2441
|
username?: string;
|
|
2377
2442
|
current?: MFAType;
|
|
2443
|
+
thirdPartyOrigin?: boolean;
|
|
2378
2444
|
}
|
|
2379
2445
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2380
2446
|
config: Partial<MFAConfig>;
|
|
@@ -2476,6 +2542,21 @@ declare module '@authing/react-ui-components/components/Register/components/Agre
|
|
|
2476
2542
|
}
|
|
2477
2543
|
export const Agreements: FC<AgreementsProps>;
|
|
2478
2544
|
|
|
2545
|
+
}
|
|
2546
|
+
declare module '@authing/react-ui-components/components/Register/core/WithCode' {
|
|
2547
|
+
import React from 'react';
|
|
2548
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2549
|
+
export interface RegisterWithCodeProps {
|
|
2550
|
+
onRegisterSuccess: Function;
|
|
2551
|
+
onRegisterFailed: Function;
|
|
2552
|
+
onBeforeRegister?: Function;
|
|
2553
|
+
agreements: Agreement[];
|
|
2554
|
+
publicConfig?: ApplicationConfig;
|
|
2555
|
+
registeContext?: any;
|
|
2556
|
+
methods: any[];
|
|
2557
|
+
}
|
|
2558
|
+
export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
|
|
2559
|
+
|
|
2479
2560
|
}
|
|
2480
2561
|
declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
|
|
2481
2562
|
import React from 'react';
|
|
@@ -2524,13 +2605,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2524
2605
|
|
|
2525
2606
|
}
|
|
2526
2607
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2527
|
-
import { IG2FCProps, IG2Config, IG2Events
|
|
2528
|
-
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2608
|
+
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2609
|
+
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams, RegisterMethods } from '@authing/react-ui-components/components/index';
|
|
2529
2610
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2530
2611
|
export interface RegisterConfig extends IG2Config {
|
|
2531
2612
|
disableRegister?: boolean;
|
|
2532
|
-
registerMethods?:
|
|
2533
|
-
defaultRegisterMethod?:
|
|
2613
|
+
registerMethods?: RegisterMethods[];
|
|
2614
|
+
defaultRegisterMethod?: RegisterMethods;
|
|
2534
2615
|
publicKey?: string;
|
|
2535
2616
|
agreementEnabled?: boolean;
|
|
2536
2617
|
agreements?: Agreement[];
|
|
@@ -2540,7 +2621,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2540
2621
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2541
2622
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2542
2623
|
onRegisterError?: (error: any) => void;
|
|
2543
|
-
onRegisterTabChange?: (activeTab:
|
|
2624
|
+
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
2544
2625
|
}
|
|
2545
2626
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2546
2627
|
config?: Partial<RegisterConfig>;
|
|
@@ -2556,12 +2637,14 @@ declare module '@authing/react-ui-components/components/Register/utils' {
|
|
|
2556
2637
|
|
|
2557
2638
|
}
|
|
2558
2639
|
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
2559
|
-
|
|
2640
|
+
import React from 'react';
|
|
2560
2641
|
export enum InputMethodMap {
|
|
2561
2642
|
email = "email-code",
|
|
2562
2643
|
phone = "phone-code"
|
|
2563
2644
|
}
|
|
2564
|
-
export const SelfUnlock: (
|
|
2645
|
+
export const SelfUnlock: ({ identifyRef, }: {
|
|
2646
|
+
identifyRef?: React.MutableRefObject<string> | undefined;
|
|
2647
|
+
}) => JSX.Element;
|
|
2565
2648
|
|
|
2566
2649
|
}
|
|
2567
2650
|
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
@@ -2771,11 +2854,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2771
2854
|
showChangeLanguage: boolean;
|
|
2772
2855
|
};
|
|
2773
2856
|
}
|
|
2774
|
-
export enum NewRegisterMethods {
|
|
2775
|
-
Email = "email",
|
|
2776
|
-
Phone = "phone",
|
|
2777
|
-
EmailCode = "emailCode"
|
|
2778
|
-
}
|
|
2779
2857
|
export enum EmailScene {
|
|
2780
2858
|
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2781
2859
|
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
@@ -2817,12 +2895,11 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2817
2895
|
export interface ValidatorFormItemProps extends FormItemProps {
|
|
2818
2896
|
form?: FormInstance;
|
|
2819
2897
|
checkRepeat?: boolean;
|
|
2898
|
+
checkExist?: boolean;
|
|
2820
2899
|
areaCode?: string;
|
|
2821
2900
|
isCheckI18nSms?: boolean;
|
|
2822
2901
|
}
|
|
2823
2902
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2824
|
-
form?: FormInstance;
|
|
2825
|
-
checkRepeat?: boolean;
|
|
2826
2903
|
method: 'email' | 'phone' | 'username';
|
|
2827
2904
|
}
|
|
2828
2905
|
export interface PasswordFormItemProps extends FormItemProps {
|
|
@@ -2888,8 +2965,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2888
2965
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2889
2966
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2890
2967
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2891
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2892
2968
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2969
|
+
import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
2893
2970
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2894
2971
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2895
2972
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
@@ -2903,8 +2980,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2903
2980
|
openEventsMapping?: boolean | undefined;
|
|
2904
2981
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2905
2982
|
disableRegister?: boolean | undefined;
|
|
2906
|
-
registerMethods?:
|
|
2907
|
-
defaultRegisterMethod?:
|
|
2983
|
+
registerMethods?: RegisterMethods[] | undefined;
|
|
2984
|
+
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
2908
2985
|
publicKey?: string | undefined;
|
|
2909
2986
|
agreementEnabled?: boolean | undefined;
|
|
2910
2987
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -2914,7 +2991,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2914
2991
|
lang: string;
|
|
2915
2992
|
langRange: string[];
|
|
2916
2993
|
isHost?: boolean | undefined;
|
|
2917
|
-
mode: import("@authing/react-ui-components/components/index").GuardMode;
|
|
2994
|
+
mode: import("@authing/react-ui-components/components/AuthingGuard/types/index").GuardMode;
|
|
2918
2995
|
clickCloseable: boolean;
|
|
2919
2996
|
escCloseable: boolean;
|
|
2920
2997
|
userpool?: string | undefined;
|
|
@@ -2925,8 +3002,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2925
3002
|
__unAuthFlow__?: boolean | undefined;
|
|
2926
3003
|
autoRegister?: boolean | undefined;
|
|
2927
3004
|
disableResetPwd?: boolean | undefined;
|
|
2928
|
-
defaultLoginMethod?: import("@authing/react-ui-components/components/index").LoginMethods | undefined;
|
|
2929
|
-
loginMethods?: import("@authing/react-ui-components/components/index").LoginMethods[] | undefined;
|
|
3005
|
+
defaultLoginMethod?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods | undefined;
|
|
3006
|
+
loginMethods?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods[] | undefined;
|
|
2930
3007
|
passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
|
|
2931
3008
|
socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
|
|
2932
3009
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
@@ -3159,6 +3236,10 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3159
3236
|
countryCode: string | undefined;
|
|
3160
3237
|
phoneNumber: string;
|
|
3161
3238
|
};
|
|
3239
|
+
export enum SocialConnectionEvent {
|
|
3240
|
+
Message = "message",
|
|
3241
|
+
Auth = "auth"
|
|
3242
|
+
}
|
|
3162
3243
|
/**
|
|
3163
3244
|
*
|
|
3164
3245
|
* @param config
|
|
@@ -3211,7 +3292,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3211
3292
|
import { User } from 'authing-js-sdk';
|
|
3212
3293
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3213
3294
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3214
|
-
import {
|
|
3295
|
+
import { LoginMethods, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3215
3296
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3216
3297
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3217
3298
|
export const VALIDATE_PATTERN: {
|
|
@@ -3280,12 +3361,20 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3280
3361
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3281
3362
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3282
3363
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3283
|
-
export const tabSort: (defaultValue:
|
|
3364
|
+
export const tabSort: (defaultValue: any, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
3284
3365
|
export const mailDesensitization: (mail: string) => string;
|
|
3285
3366
|
export const phoneDesensitization: (phone: string) => string;
|
|
3286
3367
|
export const getHundreds: (num: number) => number;
|
|
3287
3368
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3288
3369
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3370
|
+
export const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
|
|
3371
|
+
specifyDefaultLoginMethod: LoginMethods;
|
|
3372
|
+
lockMethod: string;
|
|
3373
|
+
} | {
|
|
3374
|
+
specifyDefaultLoginMethod: LoginMethods;
|
|
3375
|
+
lockMethod?: undefined;
|
|
3376
|
+
} | undefined;
|
|
3377
|
+
export const getPasswordIdentify: (identity: string) => string;
|
|
3289
3378
|
|
|
3290
3379
|
}
|
|
3291
3380
|
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
@@ -3383,7 +3472,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3383
3472
|
UNLOCK = 1643,
|
|
3384
3473
|
FLOW_END = 1600,
|
|
3385
3474
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3386
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3475
|
+
FORCED_PASSWORD_RESET = 2058,
|
|
3476
|
+
ACCOUNT_MERGE = 10000
|
|
3387
3477
|
}
|
|
3388
3478
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3389
3479
|
|
|
@@ -3469,6 +3559,7 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3469
3559
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3470
3560
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3471
3561
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3562
|
+
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3472
3563
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3473
3564
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3474
3565
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3480,7 +3571,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3480
3571
|
|
|
3481
3572
|
}
|
|
3482
3573
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3483
|
-
const _default: "3.1.
|
|
3574
|
+
const _default: "3.1.23-hep.0";
|
|
3484
3575
|
export default _default;
|
|
3485
3576
|
|
|
3486
3577
|
}
|