@authing/react-ui-components 3.1.17-hep.0 → 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 +79 -18
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -3
package/lib/index.d.ts
CHANGED
|
@@ -427,6 +427,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
427
427
|
import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
428
428
|
import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
|
|
429
429
|
import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
|
|
430
|
+
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
430
431
|
export enum ApplicationMfaType {
|
|
431
432
|
SMS = "SMS",
|
|
432
433
|
EMAIL = "EMAIL"
|
|
@@ -491,6 +492,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
491
492
|
defaultISOType: string;
|
|
492
493
|
};
|
|
493
494
|
css: string;
|
|
495
|
+
customLoading?: string;
|
|
494
496
|
name: string;
|
|
495
497
|
logo: string;
|
|
496
498
|
description?: string;
|
|
@@ -503,6 +505,17 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
503
505
|
[x: string]: string;
|
|
504
506
|
};
|
|
505
507
|
};
|
|
508
|
+
registerTabsConfig: {
|
|
509
|
+
list: string[];
|
|
510
|
+
default: string;
|
|
511
|
+
title: {
|
|
512
|
+
[x: string]: string;
|
|
513
|
+
};
|
|
514
|
+
registerTypeConfig: {
|
|
515
|
+
emailRegisterType?: NewRegisterMethods[];
|
|
516
|
+
phoneRegisterType?: NewRegisterMethods[];
|
|
517
|
+
};
|
|
518
|
+
};
|
|
506
519
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
507
520
|
loginTabs: {
|
|
508
521
|
list: string[];
|
|
@@ -1212,6 +1225,11 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
|
|
|
1212
1225
|
oldPassword?: string;
|
|
1213
1226
|
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1214
1227
|
|
|
1228
|
+
}
|
|
1229
|
+
declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
|
|
1230
|
+
import React from 'react';
|
|
1231
|
+
export const CompletePassword: React.FC;
|
|
1232
|
+
|
|
1215
1233
|
}
|
|
1216
1234
|
declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
|
|
1217
1235
|
import React from 'react';
|
|
@@ -1239,17 +1257,19 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1239
1257
|
}>;
|
|
1240
1258
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1241
1259
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1260
|
+
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1242
1261
|
|
|
1243
1262
|
}
|
|
1244
1263
|
declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
|
|
1245
|
-
import {
|
|
1264
|
+
import { User } from 'authing-js-sdk';
|
|
1265
|
+
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1246
1266
|
export enum CompleteInfoAuthFlowAction {
|
|
1247
1267
|
Complete = "complete-completion",
|
|
1248
1268
|
Skip = "skip-completion"
|
|
1249
1269
|
}
|
|
1250
1270
|
export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1251
|
-
export const registerSkipMethod: (fnName: '
|
|
1252
|
-
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: '
|
|
1271
|
+
export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
|
|
1272
|
+
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | undefined>;
|
|
1253
1273
|
|
|
1254
1274
|
}
|
|
1255
1275
|
declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
|
|
@@ -1365,7 +1385,10 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1365
1385
|
}
|
|
1366
1386
|
export interface RegisterCompleteInfoInitData {
|
|
1367
1387
|
content: any;
|
|
1368
|
-
businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
|
|
1388
|
+
businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
|
|
1389
|
+
}
|
|
1390
|
+
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1391
|
+
isChangeComplete: boolean;
|
|
1369
1392
|
}
|
|
1370
1393
|
export interface CompleteInfoRequest {
|
|
1371
1394
|
fieldValues: {
|
|
@@ -1376,7 +1399,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1376
1399
|
}
|
|
1377
1400
|
export enum OmitCompleteInfo {
|
|
1378
1401
|
'registerByEmail' = "email",
|
|
1379
|
-
'registerByPhoneCode' = "phone"
|
|
1402
|
+
'registerByPhoneCode' = "phone",
|
|
1403
|
+
'registerByEmailCode' = "email"
|
|
1380
1404
|
}
|
|
1381
1405
|
|
|
1382
1406
|
}
|
|
@@ -1712,6 +1736,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1712
1736
|
BIND_TOTP = "bindTotp",
|
|
1713
1737
|
ANY_QUESTIONS = "anyQuestions",
|
|
1714
1738
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1739
|
+
REGISTER_PASSWORD = "registerPassword",
|
|
1715
1740
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1716
1741
|
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1717
1742
|
RECOVERY_CODE = "recoveryCode",
|
|
@@ -2498,6 +2523,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
2498
2523
|
}
|
|
2499
2524
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
2500
2525
|
|
|
2526
|
+
}
|
|
2527
|
+
declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
|
|
2528
|
+
import React from 'react';
|
|
2529
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2530
|
+
export interface RegisterWithEmailCodeProps {
|
|
2531
|
+
onRegisterSuccess: Function;
|
|
2532
|
+
onRegisterFailed: Function;
|
|
2533
|
+
onBeforeRegister?: Function;
|
|
2534
|
+
agreements: Agreement[];
|
|
2535
|
+
publicConfig?: ApplicationConfig;
|
|
2536
|
+
registeContext?: any;
|
|
2537
|
+
}
|
|
2538
|
+
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
2539
|
+
|
|
2501
2540
|
}
|
|
2502
2541
|
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
2503
2542
|
import React from 'react';
|
|
@@ -2518,14 +2557,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2518
2557
|
|
|
2519
2558
|
}
|
|
2520
2559
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2521
|
-
import {
|
|
2522
|
-
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2560
|
+
import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2523
2561
|
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2524
2562
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2525
2563
|
export interface RegisterConfig extends IG2Config {
|
|
2526
2564
|
disableRegister?: boolean;
|
|
2527
|
-
registerMethods?:
|
|
2528
|
-
defaultRegisterMethod?:
|
|
2565
|
+
registerMethods?: NewRegisterMethods[];
|
|
2566
|
+
defaultRegisterMethod?: NewRegisterMethods;
|
|
2529
2567
|
publicKey?: string;
|
|
2530
2568
|
agreementEnabled?: boolean;
|
|
2531
2569
|
agreements?: Agreement[];
|
|
@@ -2535,7 +2573,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2535
2573
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2536
2574
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2537
2575
|
onRegisterError?: (error: any) => void;
|
|
2538
|
-
onRegisterTabChange?: (activeTab:
|
|
2576
|
+
onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
|
|
2539
2577
|
}
|
|
2540
2578
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2541
2579
|
config?: Partial<RegisterConfig>;
|
|
@@ -2565,11 +2603,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2565
2603
|
}
|
|
2566
2604
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2567
2605
|
import { FC } from 'react';
|
|
2568
|
-
import { EmailScene } from 'authing-js-sdk';
|
|
2569
2606
|
import './style.less';
|
|
2570
2607
|
import { InputProps } from 'antd/lib/input';
|
|
2608
|
+
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2571
2609
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2572
|
-
data
|
|
2610
|
+
data?: string;
|
|
2573
2611
|
form?: any;
|
|
2574
2612
|
onSendCodeBefore?: any;
|
|
2575
2613
|
fieldName?: string;
|
|
@@ -2637,6 +2675,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
|
2637
2675
|
text?: string;
|
|
2638
2676
|
className?: string;
|
|
2639
2677
|
onClick?: any;
|
|
2678
|
+
disabled?: boolean;
|
|
2640
2679
|
}
|
|
2641
2680
|
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
2642
2681
|
export default _default;
|
|
@@ -2732,6 +2771,24 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2732
2771
|
showChangeLanguage: boolean;
|
|
2733
2772
|
};
|
|
2734
2773
|
}
|
|
2774
|
+
export enum NewRegisterMethods {
|
|
2775
|
+
Email = "email",
|
|
2776
|
+
Phone = "phone",
|
|
2777
|
+
EmailCode = "emailCode"
|
|
2778
|
+
}
|
|
2779
|
+
export enum EmailScene {
|
|
2780
|
+
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2781
|
+
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
2782
|
+
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
2783
|
+
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
2784
|
+
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
2785
|
+
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
2786
|
+
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
2787
|
+
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2788
|
+
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2789
|
+
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2790
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2791
|
+
}
|
|
2735
2792
|
|
|
2736
2793
|
}
|
|
2737
2794
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2760,6 +2817,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2760
2817
|
form?: FormInstance;
|
|
2761
2818
|
checkRepeat?: boolean;
|
|
2762
2819
|
areaCode?: string;
|
|
2820
|
+
isCheckI18nSms?: boolean;
|
|
2763
2821
|
}
|
|
2764
2822
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2765
2823
|
form?: FormInstance;
|
|
@@ -2826,10 +2884,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
|
|
|
2826
2884
|
}
|
|
2827
2885
|
declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
2828
2886
|
/// <reference types="react" />
|
|
2829
|
-
import { RegisterMethods } from 'authing-js-sdk';
|
|
2830
2887
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2831
2888
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2832
2889
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2890
|
+
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2833
2891
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2834
2892
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2835
2893
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
@@ -2844,8 +2902,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2844
2902
|
openEventsMapping?: boolean | undefined;
|
|
2845
2903
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2846
2904
|
disableRegister?: boolean | undefined;
|
|
2847
|
-
registerMethods?:
|
|
2848
|
-
defaultRegisterMethod?:
|
|
2905
|
+
registerMethods?: NewRegisterMethods[] | undefined;
|
|
2906
|
+
defaultRegisterMethod?: NewRegisterMethods | undefined;
|
|
2849
2907
|
publicKey?: string | undefined;
|
|
2850
2908
|
agreementEnabled?: boolean | undefined;
|
|
2851
2909
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -3138,9 +3196,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3138
3196
|
declare module '@authing/react-ui-components/components/_utils/index' {
|
|
3139
3197
|
import { Rule } from 'antd/lib/form';
|
|
3140
3198
|
import qs from 'qs';
|
|
3141
|
-
import {
|
|
3199
|
+
import { User } from 'authing-js-sdk';
|
|
3142
3200
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3143
3201
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3202
|
+
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
3144
3203
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3145
3204
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3146
3205
|
export const VALIDATE_PATTERN: {
|
|
@@ -3183,6 +3242,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3183
3242
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3184
3243
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3185
3244
|
export const isQQBrowser: () => boolean | null;
|
|
3245
|
+
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3246
|
+
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3186
3247
|
export const isEdgeBrowser: () => boolean;
|
|
3187
3248
|
export const isWeiboBrowser: () => boolean | null;
|
|
3188
3249
|
export const isAlipayBrowser: () => boolean | null;
|
|
@@ -3207,7 +3268,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3207
3268
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3208
3269
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3209
3270
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3210
|
-
export const tabSort: (defaultValue:
|
|
3271
|
+
export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
|
|
3211
3272
|
export const mailDesensitization: (mail: string) => string;
|
|
3212
3273
|
export const phoneDesensitization: (phone: string) => string;
|
|
3213
3274
|
export const getHundreds: (num: number) => number;
|
|
@@ -3408,7 +3469,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3408
3469
|
|
|
3409
3470
|
}
|
|
3410
3471
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3411
|
-
const _default: "3.1.17-hep.
|
|
3472
|
+
const _default: "3.1.17-hep.1";
|
|
3412
3473
|
export default _default;
|
|
3413
3474
|
|
|
3414
3475
|
}
|