@authing/react-ui-components 3.1.17-rc.0 → 3.1.17-rc.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 +18 -81
- 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,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",
|
|
@@ -2467,21 +2442,6 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
|
|
|
2467
2442
|
}
|
|
2468
2443
|
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
2469
2444
|
|
|
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
|
-
needPassword?: boolean;
|
|
2482
|
-
}
|
|
2483
|
-
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
2484
|
-
|
|
2485
2445
|
}
|
|
2486
2446
|
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
2487
2447
|
import React from 'react';
|
|
@@ -2492,7 +2452,6 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
|
|
|
2492
2452
|
agreements: Agreement[];
|
|
2493
2453
|
publicConfig?: ApplicationConfig;
|
|
2494
2454
|
registeContext?: any;
|
|
2495
|
-
needPassword?: boolean;
|
|
2496
2455
|
}
|
|
2497
2456
|
export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
2498
2457
|
|
|
@@ -2503,13 +2462,14 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2503
2462
|
|
|
2504
2463
|
}
|
|
2505
2464
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2506
|
-
import {
|
|
2465
|
+
import { RegisterMethods } from 'authing-js-sdk';
|
|
2466
|
+
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2507
2467
|
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2508
2468
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2509
2469
|
export interface RegisterConfig extends IG2Config {
|
|
2510
2470
|
disableRegister?: boolean;
|
|
2511
|
-
registerMethods?:
|
|
2512
|
-
defaultRegisterMethod?:
|
|
2471
|
+
registerMethods?: RegisterMethods[];
|
|
2472
|
+
defaultRegisterMethod?: RegisterMethods;
|
|
2513
2473
|
publicKey?: string;
|
|
2514
2474
|
agreementEnabled?: boolean;
|
|
2515
2475
|
agreements?: Agreement[];
|
|
@@ -2519,7 +2479,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2519
2479
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2520
2480
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2521
2481
|
onRegisterError?: (error: any) => void;
|
|
2522
|
-
onRegisterTabChange?: (activeTab:
|
|
2482
|
+
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
2523
2483
|
}
|
|
2524
2484
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2525
2485
|
config?: Partial<RegisterConfig>;
|
|
@@ -2549,11 +2509,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2549
2509
|
}
|
|
2550
2510
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2551
2511
|
import { FC } from 'react';
|
|
2512
|
+
import { EmailScene } from 'authing-js-sdk';
|
|
2552
2513
|
import './style.less';
|
|
2553
2514
|
import { InputProps } from 'antd/lib/input';
|
|
2554
|
-
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2555
2515
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2556
|
-
data
|
|
2516
|
+
data: string;
|
|
2557
2517
|
form?: any;
|
|
2558
2518
|
onSendCodeBefore?: any;
|
|
2559
2519
|
fieldName?: string;
|
|
@@ -2621,7 +2581,6 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
|
2621
2581
|
text?: string;
|
|
2622
2582
|
className?: string;
|
|
2623
2583
|
onClick?: any;
|
|
2624
|
-
disabled?: boolean;
|
|
2625
2584
|
}
|
|
2626
2585
|
const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
|
|
2627
2586
|
export default _default;
|
|
@@ -2717,24 +2676,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2717
2676
|
showChangeLanguage: boolean;
|
|
2718
2677
|
};
|
|
2719
2678
|
}
|
|
2720
|
-
export enum NewRegisterMethods {
|
|
2721
|
-
Email = "email",
|
|
2722
|
-
Phone = "phone",
|
|
2723
|
-
EmailCode = "emailCode"
|
|
2724
|
-
}
|
|
2725
|
-
export enum EmailScene {
|
|
2726
|
-
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2727
|
-
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
2728
|
-
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
2729
|
-
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
2730
|
-
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
2731
|
-
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
2732
|
-
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
2733
|
-
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2734
|
-
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2735
|
-
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2736
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2737
|
-
}
|
|
2738
2679
|
|
|
2739
2680
|
}
|
|
2740
2681
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2763,7 +2704,6 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2763
2704
|
form?: FormInstance;
|
|
2764
2705
|
checkRepeat?: boolean;
|
|
2765
2706
|
areaCode?: string;
|
|
2766
|
-
isCheckI18nSms?: boolean;
|
|
2767
2707
|
}
|
|
2768
2708
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2769
2709
|
form?: FormInstance;
|
|
@@ -2830,10 +2770,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
|
|
|
2830
2770
|
}
|
|
2831
2771
|
declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
2832
2772
|
/// <reference types="react" />
|
|
2773
|
+
import { RegisterMethods } from 'authing-js-sdk';
|
|
2833
2774
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2834
2775
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2835
2776
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2836
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2837
2777
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2838
2778
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2839
2779
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
@@ -2848,8 +2788,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2848
2788
|
openEventsMapping?: boolean | undefined;
|
|
2849
2789
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2850
2790
|
disableRegister?: boolean | undefined;
|
|
2851
|
-
registerMethods?:
|
|
2852
|
-
defaultRegisterMethod?:
|
|
2791
|
+
registerMethods?: RegisterMethods[] | undefined;
|
|
2792
|
+
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
2853
2793
|
publicKey?: string | undefined;
|
|
2854
2794
|
agreementEnabled?: boolean | undefined;
|
|
2855
2795
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -3143,10 +3083,9 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3143
3083
|
declare module '@authing/react-ui-components/components/_utils/index' {
|
|
3144
3084
|
import { Rule } from 'antd/lib/form';
|
|
3145
3085
|
import qs from 'qs';
|
|
3146
|
-
import { User } from 'authing-js-sdk';
|
|
3086
|
+
import { RegisterMethods, User } from 'authing-js-sdk';
|
|
3147
3087
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3148
3088
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3149
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
3150
3089
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3151
3090
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3152
3091
|
export const VALIDATE_PATTERN: {
|
|
@@ -3189,8 +3128,6 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3189
3128
|
export const isXiaomiBrowser: () => boolean | null;
|
|
3190
3129
|
export const isDingtalkBrowser: () => boolean | null;
|
|
3191
3130
|
export const isQQBrowser: () => boolean | null;
|
|
3192
|
-
export const isQQBuiltInBrowser: () => boolean | null;
|
|
3193
|
-
export const isWeWorkBuiltInBrowser: () => boolean | null;
|
|
3194
3131
|
export const isSpecialBrowser: () => boolean | null;
|
|
3195
3132
|
export const assembledAppHost: (identifier: string, host: string) => string;
|
|
3196
3133
|
export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
|
|
@@ -3209,7 +3146,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3209
3146
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3210
3147
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3211
3148
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3212
|
-
export const tabSort: (defaultValue:
|
|
3149
|
+
export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
3213
3150
|
export const mailDesensitization: (mail: string) => string;
|
|
3214
3151
|
export const phoneDesensitization: (phone: string) => string;
|
|
3215
3152
|
export const getHundreds: (num: number) => number;
|
|
@@ -3408,7 +3345,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3408
3345
|
|
|
3409
3346
|
}
|
|
3410
3347
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3411
|
-
const _default: "3.1.17-rc.
|
|
3348
|
+
const _default: "3.1.17-rc.1";
|
|
3412
3349
|
export default _default;
|
|
3413
3350
|
|
|
3414
3351
|
}
|