@authing/react-ui-components 3.1.16-rc.3 → 3.1.17-rc.2
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 +33 -79
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -381,7 +381,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
381
381
|
import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
382
382
|
import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
|
|
383
383
|
import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
|
|
384
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
385
384
|
export enum ApplicationMfaType {
|
|
386
385
|
SMS = "SMS",
|
|
387
386
|
EMAIL = "EMAIL"
|
|
@@ -446,7 +445,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
446
445
|
defaultISOType: string;
|
|
447
446
|
};
|
|
448
447
|
css: string;
|
|
449
|
-
customLoading?: string;
|
|
450
448
|
name: string;
|
|
451
449
|
logo: string;
|
|
452
450
|
description?: string;
|
|
@@ -459,17 +457,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
459
457
|
[x: string]: string;
|
|
460
458
|
};
|
|
461
459
|
};
|
|
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
460
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
474
461
|
loginTabs: {
|
|
475
462
|
list: string[];
|
|
@@ -1176,11 +1163,6 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
|
|
|
1176
1163
|
oldPassword?: string;
|
|
1177
1164
|
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1178
1165
|
|
|
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
1166
|
}
|
|
1185
1167
|
declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
|
|
1186
1168
|
import React from 'react';
|
|
@@ -1208,19 +1190,17 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1208
1190
|
}>;
|
|
1209
1191
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1210
1192
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1211
|
-
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1212
1193
|
|
|
1213
1194
|
}
|
|
1214
1195
|
declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
|
|
1215
|
-
import {
|
|
1216
|
-
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1196
|
+
import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1217
1197
|
export enum CompleteInfoAuthFlowAction {
|
|
1218
1198
|
Complete = "complete-completion",
|
|
1219
1199
|
Skip = "skip-completion"
|
|
1220
1200
|
}
|
|
1221
1201
|
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:
|
|
1202
|
+
export const registerSkipMethod: (fnName: 'registerByEmail' | 'registerByPhoneCode', content: any) => Promise<import("authing-js-sdk").User> | undefined;
|
|
1203
|
+
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
|
|
1224
1204
|
|
|
1225
1205
|
}
|
|
1226
1206
|
declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
|
|
@@ -1332,10 +1312,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1332
1312
|
}
|
|
1333
1313
|
export interface RegisterCompleteInfoInitData {
|
|
1334
1314
|
content: any;
|
|
1335
|
-
businessRequestName: 'registerByEmail' | 'registerByPhoneCode'
|
|
1336
|
-
}
|
|
1337
|
-
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1338
|
-
isChangeComplete: boolean;
|
|
1315
|
+
businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
|
|
1339
1316
|
}
|
|
1340
1317
|
export interface CompleteInfoRequest {
|
|
1341
1318
|
fieldValues: {
|
|
@@ -1346,8 +1323,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1346
1323
|
}
|
|
1347
1324
|
export enum OmitCompleteInfo {
|
|
1348
1325
|
'registerByEmail' = "email",
|
|
1349
|
-
'registerByPhoneCode' = "phone"
|
|
1350
|
-
'registerByEmailCode' = "email"
|
|
1326
|
+
'registerByPhoneCode' = "phone"
|
|
1351
1327
|
}
|
|
1352
1328
|
|
|
1353
1329
|
}
|
|
@@ -1683,7 +1659,6 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1683
1659
|
BIND_TOTP = "bindTotp",
|
|
1684
1660
|
ANY_QUESTIONS = "anyQuestions",
|
|
1685
1661
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1686
|
-
REGISTER_PASSWORD = "registerPassword",
|
|
1687
1662
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1688
1663
|
RECOVERY_CODE = "recoveryCode",
|
|
1689
1664
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
@@ -1764,6 +1739,12 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1764
1739
|
account: string;
|
|
1765
1740
|
password: string;
|
|
1766
1741
|
}
|
|
1742
|
+
export enum IdentityBindingAction {
|
|
1743
|
+
CreateUser = "create-federation-account",
|
|
1744
|
+
BindByPassword = "bind-identity-by-password",
|
|
1745
|
+
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
1746
|
+
BindByEmailCode = "bind-identity-by-email-code"
|
|
1747
|
+
}
|
|
1767
1748
|
export const PhoneCode: (params: PhoneCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1768
1749
|
export const EmailCode: (params: EmailCodeParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1769
1750
|
export const Password: (params: PasswordParams) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
@@ -2461,20 +2442,6 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
2461
2442
|
}
|
|
2462
2443
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
2463
2444
|
|
|
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
2445
|
}
|
|
2479
2446
|
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
2480
2447
|
import React from 'react';
|
|
@@ -2495,13 +2462,14 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2495
2462
|
|
|
2496
2463
|
}
|
|
2497
2464
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2498
|
-
import {
|
|
2465
|
+
import { RegisterMethods } from 'authing-js-sdk';
|
|
2466
|
+
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2499
2467
|
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2500
2468
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2501
2469
|
export interface RegisterConfig extends IG2Config {
|
|
2502
2470
|
disableRegister?: boolean;
|
|
2503
|
-
registerMethods?:
|
|
2504
|
-
defaultRegisterMethod?:
|
|
2471
|
+
registerMethods?: RegisterMethods[];
|
|
2472
|
+
defaultRegisterMethod?: RegisterMethods;
|
|
2505
2473
|
publicKey?: string;
|
|
2506
2474
|
agreementEnabled?: boolean;
|
|
2507
2475
|
agreements?: Agreement[];
|
|
@@ -2511,7 +2479,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2511
2479
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2512
2480
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2513
2481
|
onRegisterError?: (error: any) => void;
|
|
2514
|
-
onRegisterTabChange?: (activeTab:
|
|
2482
|
+
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
2515
2483
|
}
|
|
2516
2484
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2517
2485
|
config?: Partial<RegisterConfig>;
|
|
@@ -2541,11 +2509,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2541
2509
|
}
|
|
2542
2510
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2543
2511
|
import { FC } from 'react';
|
|
2512
|
+
import { EmailScene } from 'authing-js-sdk';
|
|
2544
2513
|
import './style.less';
|
|
2545
2514
|
import { InputProps } from 'antd/lib/input';
|
|
2546
|
-
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2547
2515
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2548
|
-
data
|
|
2516
|
+
data: string;
|
|
2549
2517
|
form?: any;
|
|
2550
2518
|
onSendCodeBefore?: any;
|
|
2551
2519
|
fieldName?: string;
|
|
@@ -2613,7 +2581,6 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
|
2613
2581
|
text?: string;
|
|
2614
2582
|
className?: string;
|
|
2615
2583
|
onClick?: any;
|
|
2616
|
-
disabled?: boolean;
|
|
2617
2584
|
}
|
|
2618
2585
|
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
2619
2586
|
export default _default;
|
|
@@ -2709,24 +2676,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2709
2676
|
showChangeLanguage: boolean;
|
|
2710
2677
|
};
|
|
2711
2678
|
}
|
|
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
2679
|
|
|
2731
2680
|
}
|
|
2732
2681
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2755,7 +2704,6 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2755
2704
|
form?: FormInstance;
|
|
2756
2705
|
checkRepeat?: boolean;
|
|
2757
2706
|
areaCode?: string;
|
|
2758
|
-
isCheckI18nSms?: boolean;
|
|
2759
2707
|
}
|
|
2760
2708
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2761
2709
|
form?: FormInstance;
|
|
@@ -2822,10 +2770,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
|
|
|
2822
2770
|
}
|
|
2823
2771
|
declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
2824
2772
|
/// <reference types="react" />
|
|
2773
|
+
import { RegisterMethods } from 'authing-js-sdk';
|
|
2825
2774
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2826
2775
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2827
2776
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2828
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2829
2777
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2830
2778
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2831
2779
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
@@ -2840,8 +2788,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2840
2788
|
openEventsMapping?: boolean | undefined;
|
|
2841
2789
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2842
2790
|
disableRegister?: boolean | undefined;
|
|
2843
|
-
registerMethods?:
|
|
2844
|
-
defaultRegisterMethod?:
|
|
2791
|
+
registerMethods?: RegisterMethods[] | undefined;
|
|
2792
|
+
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
2845
2793
|
publicKey?: string | undefined;
|
|
2846
2794
|
agreementEnabled?: boolean | undefined;
|
|
2847
2795
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -2869,6 +2817,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2869
2817
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
2870
2818
|
enterpriseConnections?: string[] | undefined;
|
|
2871
2819
|
qrCodeScanOptions?: {
|
|
2820
|
+
currentDocument?: Document | undefined;
|
|
2872
2821
|
extIdpConnId?: string | undefined;
|
|
2873
2822
|
autoExchangeUserInfo?: boolean | undefined;
|
|
2874
2823
|
size?: {
|
|
@@ -3010,6 +2959,13 @@ declare module '@authing/react-ui-components/components/_utils/facePlugin/interf
|
|
|
3010
2959
|
nets: any;
|
|
3011
2960
|
}
|
|
3012
2961
|
|
|
2962
|
+
}
|
|
2963
|
+
declare module '@authing/react-ui-components/components/_utils/flowHandleStorage' {
|
|
2964
|
+
export const getFlowHandle: () => string | undefined;
|
|
2965
|
+
export const useFlowHandle: () => string | undefined;
|
|
2966
|
+
export const updateFlowHandle: (flowHandle: string) => void;
|
|
2967
|
+
export const useUpdateFlowHandle: (flowHandle: string) => void;
|
|
2968
|
+
|
|
3013
2969
|
}
|
|
3014
2970
|
declare module '@authing/react-ui-components/components/_utils/guardDocument' {
|
|
3015
2971
|
export const getGuardDocument: () => Document;
|
|
@@ -3116,6 +3072,7 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3116
3072
|
data?: T;
|
|
3117
3073
|
messages?: string;
|
|
3118
3074
|
message?: string;
|
|
3075
|
+
flowHandle?: string;
|
|
3119
3076
|
}
|
|
3120
3077
|
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
3121
3078
|
onGuardHandling?: () => CodeAction;
|
|
@@ -3126,10 +3083,9 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3126
3083
|
declare module '@authing/react-ui-components/components/_utils/index' {
|
|
3127
3084
|
import { Rule } from 'antd/lib/form';
|
|
3128
3085
|
import qs from 'qs';
|
|
3129
|
-
import { User } from 'authing-js-sdk';
|
|
3086
|
+
import { RegisterMethods, User } from 'authing-js-sdk';
|
|
3130
3087
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3131
3088
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3132
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
3133
3089
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3134
3090
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3135
3091
|
export const VALIDATE_PATTERN: {
|
|
@@ -3172,8 +3128,6 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3172
3128
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3173
3129
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3174
3130
|
export const isQQBrowser: () => boolean | null;
|
|
3175
|
-
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3176
|
-
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3177
3131
|
export const isSpecialBrowser: () => boolean | null;
|
|
3178
3132
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3179
3133
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
@@ -3192,7 +3146,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3192
3146
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3193
3147
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3194
3148
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3195
|
-
export const tabSort: (defaultValue:
|
|
3149
|
+
export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
3196
3150
|
export const mailDesensitization: (mail: string) => string;
|
|
3197
3151
|
export const phoneDesensitization: (phone: string) => string;
|
|
3198
3152
|
export const getHundreds: (num: number) => number;
|
|
@@ -3391,7 +3345,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3391
3345
|
|
|
3392
3346
|
}
|
|
3393
3347
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3394
|
-
const _default: "3.1.
|
|
3348
|
+
const _default: "3.1.17-rc.2";
|
|
3395
3349
|
export default _default;
|
|
3396
3350
|
|
|
3397
3351
|
}
|