@authing/react-ui-components 3.1.17-rc.9 → 3.1.18-rc.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 +62 -57
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -381,6 +381,7 @@ 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';
|
|
384
385
|
export enum ApplicationMfaType {
|
|
385
386
|
SMS = "SMS",
|
|
386
387
|
EMAIL = "EMAIL"
|
|
@@ -458,6 +459,17 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
458
459
|
[x: string]: string;
|
|
459
460
|
};
|
|
460
461
|
};
|
|
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
|
+
};
|
|
461
473
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
462
474
|
loginTabs: {
|
|
463
475
|
list: string[];
|
|
@@ -1164,6 +1176,11 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
|
|
|
1164
1176
|
oldPassword?: string;
|
|
1165
1177
|
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1166
1178
|
|
|
1179
|
+
}
|
|
1180
|
+
declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
|
|
1181
|
+
import React from 'react';
|
|
1182
|
+
export const CompletePassword: React.FC;
|
|
1183
|
+
|
|
1167
1184
|
}
|
|
1168
1185
|
declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
|
|
1169
1186
|
import React from 'react';
|
|
@@ -1178,7 +1195,6 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
|
|
|
1178
1195
|
/// <reference types="react" />
|
|
1179
1196
|
interface RotateResetProps {
|
|
1180
1197
|
onReset: any;
|
|
1181
|
-
onFinishCallBack?: any;
|
|
1182
1198
|
}
|
|
1183
1199
|
export const RotateReset: (props: RotateResetProps) => JSX.Element;
|
|
1184
1200
|
export {};
|
|
@@ -1192,18 +1208,19 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1192
1208
|
}>;
|
|
1193
1209
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1194
1210
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1195
|
-
export const
|
|
1211
|
+
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1196
1212
|
|
|
1197
1213
|
}
|
|
1198
1214
|
declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
|
|
1199
|
-
import {
|
|
1215
|
+
import { User } from 'authing-js-sdk';
|
|
1216
|
+
import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
|
|
1200
1217
|
export enum CompleteInfoAuthFlowAction {
|
|
1201
1218
|
Complete = "complete-completion",
|
|
1202
1219
|
Skip = "skip-completion"
|
|
1203
1220
|
}
|
|
1204
1221
|
export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1205
|
-
export const registerSkipMethod: (fnName: '
|
|
1206
|
-
export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: '
|
|
1222
|
+
export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
|
|
1223
|
+
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>;
|
|
1207
1224
|
|
|
1208
1225
|
}
|
|
1209
1226
|
declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
|
|
@@ -1315,7 +1332,10 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1315
1332
|
}
|
|
1316
1333
|
export interface RegisterCompleteInfoInitData {
|
|
1317
1334
|
content: any;
|
|
1318
|
-
businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
|
|
1335
|
+
businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
|
|
1336
|
+
}
|
|
1337
|
+
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1338
|
+
isChangeComplete: boolean;
|
|
1319
1339
|
}
|
|
1320
1340
|
export interface CompleteInfoRequest {
|
|
1321
1341
|
fieldValues: {
|
|
@@ -1326,7 +1346,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1326
1346
|
}
|
|
1327
1347
|
export enum OmitCompleteInfo {
|
|
1328
1348
|
'registerByEmail' = "email",
|
|
1329
|
-
'registerByPhoneCode' = "phone"
|
|
1349
|
+
'registerByPhoneCode' = "phone",
|
|
1350
|
+
'registerByEmailCode' = "email"
|
|
1330
1351
|
}
|
|
1331
1352
|
|
|
1332
1353
|
}
|
|
@@ -1657,18 +1678,17 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1657
1678
|
MFA = "mfa",
|
|
1658
1679
|
FORGET_PWD = "forgetPassword",
|
|
1659
1680
|
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
1660
|
-
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
1661
1681
|
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
1662
1682
|
DOWNLOAD_AT = "downloadAT",
|
|
1663
1683
|
BIND_TOTP = "bindTotp",
|
|
1664
1684
|
ANY_QUESTIONS = "anyQuestions",
|
|
1665
1685
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1686
|
+
REGISTER_PASSWORD = "registerPassword",
|
|
1666
1687
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1667
1688
|
RECOVERY_CODE = "recoveryCode",
|
|
1668
1689
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1669
1690
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1670
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1671
|
-
SELF_UNLOCK = "selfUnlock"
|
|
1691
|
+
IDENTITY_BINDING = "identityBinding"
|
|
1672
1692
|
}
|
|
1673
1693
|
export interface GuardModuleAction {
|
|
1674
1694
|
action: string;
|
|
@@ -2447,6 +2467,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
2447
2467
|
}
|
|
2448
2468
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
2449
2469
|
|
|
2470
|
+
}
|
|
2471
|
+
declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
|
|
2472
|
+
import React from 'react';
|
|
2473
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2474
|
+
export interface RegisterWithEmailCodeProps {
|
|
2475
|
+
onRegisterSuccess: Function;
|
|
2476
|
+
onRegisterFailed: Function;
|
|
2477
|
+
onBeforeRegister?: Function;
|
|
2478
|
+
agreements: Agreement[];
|
|
2479
|
+
publicConfig?: ApplicationConfig;
|
|
2480
|
+
registeContext?: any;
|
|
2481
|
+
}
|
|
2482
|
+
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
2483
|
+
|
|
2450
2484
|
}
|
|
2451
2485
|
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
2452
2486
|
import React from 'react';
|
|
@@ -2467,14 +2501,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2467
2501
|
|
|
2468
2502
|
}
|
|
2469
2503
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2470
|
-
import {
|
|
2471
|
-
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2504
|
+
import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2472
2505
|
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2473
2506
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2474
2507
|
export interface RegisterConfig extends IG2Config {
|
|
2475
2508
|
disableRegister?: boolean;
|
|
2476
|
-
registerMethods?:
|
|
2477
|
-
defaultRegisterMethod?:
|
|
2509
|
+
registerMethods?: NewRegisterMethods[];
|
|
2510
|
+
defaultRegisterMethod?: NewRegisterMethods;
|
|
2478
2511
|
publicKey?: string;
|
|
2479
2512
|
agreementEnabled?: boolean;
|
|
2480
2513
|
agreements?: Agreement[];
|
|
@@ -2484,7 +2517,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2484
2517
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2485
2518
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2486
2519
|
onRegisterError?: (error: any) => void;
|
|
2487
|
-
onRegisterTabChange?: (activeTab:
|
|
2520
|
+
onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
|
|
2488
2521
|
}
|
|
2489
2522
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2490
2523
|
config?: Partial<RegisterConfig>;
|
|
@@ -2498,38 +2531,6 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2498
2531
|
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
2499
2532
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
2500
2533
|
|
|
2501
|
-
}
|
|
2502
|
-
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
2503
|
-
/// <reference types="react" />
|
|
2504
|
-
export enum InputMethodMap {
|
|
2505
|
-
email = "email-code",
|
|
2506
|
-
phone = "phone-code"
|
|
2507
|
-
}
|
|
2508
|
-
export const SelfUnlock: () => JSX.Element;
|
|
2509
|
-
|
|
2510
|
-
}
|
|
2511
|
-
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
2512
|
-
import React from 'react';
|
|
2513
|
-
export const GuardUnlockView: React.FC;
|
|
2514
|
-
|
|
2515
|
-
}
|
|
2516
|
-
declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
|
|
2517
|
-
import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
|
|
2518
|
-
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
2519
|
-
export interface ForgetPasswordEvents extends IG2Events {
|
|
2520
|
-
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
2521
|
-
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2522
|
-
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
2523
|
-
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2524
|
-
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
2525
|
-
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2526
|
-
}
|
|
2527
|
-
export interface ForgetPasswordConfig extends IG2Config {
|
|
2528
|
-
}
|
|
2529
|
-
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
2530
|
-
config: Partial<IG2Config>;
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
2534
|
}
|
|
2534
2535
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
2535
2536
|
import React, { FC } from 'react';
|
|
@@ -2550,7 +2551,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
|
|
|
2550
2551
|
import { InputProps } from 'antd/lib/input';
|
|
2551
2552
|
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2552
2553
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2553
|
-
data
|
|
2554
|
+
data?: string;
|
|
2554
2555
|
form?: any;
|
|
2555
2556
|
onSendCodeBefore?: any;
|
|
2556
2557
|
fieldName?: string;
|
|
@@ -2714,6 +2715,11 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2714
2715
|
showChangeLanguage: boolean;
|
|
2715
2716
|
};
|
|
2716
2717
|
}
|
|
2718
|
+
export enum NewRegisterMethods {
|
|
2719
|
+
Email = "email",
|
|
2720
|
+
Phone = "phone",
|
|
2721
|
+
EmailCode = "emailCode"
|
|
2722
|
+
}
|
|
2717
2723
|
export enum EmailScene {
|
|
2718
2724
|
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2719
2725
|
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
@@ -2822,10 +2828,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
|
|
|
2822
2828
|
}
|
|
2823
2829
|
declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
2824
2830
|
/// <reference types="react" />
|
|
2825
|
-
import { RegisterMethods } from 'authing-js-sdk';
|
|
2826
2831
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2827
2832
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2828
2833
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2834
|
+
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2829
2835
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2830
2836
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2831
2837
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
@@ -2840,8 +2846,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2840
2846
|
openEventsMapping?: boolean | undefined;
|
|
2841
2847
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2842
2848
|
disableRegister?: boolean | undefined;
|
|
2843
|
-
registerMethods?:
|
|
2844
|
-
defaultRegisterMethod?:
|
|
2849
|
+
registerMethods?: NewRegisterMethods[] | undefined;
|
|
2850
|
+
defaultRegisterMethod?: NewRegisterMethods | undefined;
|
|
2845
2851
|
publicKey?: string | undefined;
|
|
2846
2852
|
agreementEnabled?: boolean | undefined;
|
|
2847
2853
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -2869,7 +2875,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2869
2875
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
2870
2876
|
enterpriseConnections?: string[] | undefined;
|
|
2871
2877
|
qrCodeScanOptions?: {
|
|
2872
|
-
currentDocument?: Document | undefined;
|
|
2873
2878
|
extIdpConnId?: string | undefined;
|
|
2874
2879
|
autoExchangeUserInfo?: boolean | undefined;
|
|
2875
2880
|
size?: {
|
|
@@ -3135,9 +3140,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3135
3140
|
declare module '@authing/react-ui-components/components/_utils/index' {
|
|
3136
3141
|
import { Rule } from 'antd/lib/form';
|
|
3137
3142
|
import qs from 'qs';
|
|
3138
|
-
import {
|
|
3143
|
+
import { User } from 'authing-js-sdk';
|
|
3139
3144
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3140
3145
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3146
|
+
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
3141
3147
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3142
3148
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3143
3149
|
export const VALIDATE_PATTERN: {
|
|
@@ -3181,13 +3187,13 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3181
3187
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3182
3188
|
export const isQQBrowser: () => boolean | null;
|
|
3183
3189
|
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3190
|
+
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3184
3191
|
export const isEdgeBrowser: () => boolean;
|
|
3185
3192
|
export const isWeiboBrowser: () => boolean | null;
|
|
3186
3193
|
export const isAlipayBrowser: () => boolean | null;
|
|
3187
3194
|
export const isBaiduBrowser: () => boolean | null;
|
|
3188
3195
|
export const isWeComeBrowser: () => boolean;
|
|
3189
3196
|
export const isMobile: () => RegExpMatchArray | null;
|
|
3190
|
-
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3191
3197
|
export const isSpecialBrowser: () => boolean;
|
|
3192
3198
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3193
3199
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
@@ -3206,7 +3212,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3206
3212
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3207
3213
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3208
3214
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3209
|
-
export const tabSort: (defaultValue:
|
|
3215
|
+
export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
|
|
3210
3216
|
export const mailDesensitization: (mail: string) => string;
|
|
3211
3217
|
export const phoneDesensitization: (phone: string) => string;
|
|
3212
3218
|
export const getHundreds: (num: number) => number;
|
|
@@ -3306,7 +3312,6 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3306
3312
|
MFA = 1635,
|
|
3307
3313
|
ABORT_FLOW = 1699,
|
|
3308
3314
|
COMPLETE_INFO = 1642,
|
|
3309
|
-
UNLOCK = 1643,
|
|
3310
3315
|
FLOW_END = 1600,
|
|
3311
3316
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3312
3317
|
FORCED_PASSWORD_RESET = 2058
|
|
@@ -3406,7 +3411,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3406
3411
|
|
|
3407
3412
|
}
|
|
3408
3413
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3409
|
-
const _default: "3.1.
|
|
3414
|
+
const _default: "3.1.18-rc.0";
|
|
3410
3415
|
export default _default;
|
|
3411
3416
|
|
|
3412
3417
|
}
|