@authing/react-ui-components 3.1.18 → 3.1.19-hep.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 +108 -7
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
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';
|
|
@@ -520,6 +570,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
520
570
|
verifyCodeLength: number;
|
|
521
571
|
websocket: string;
|
|
522
572
|
welcomeMessage: any;
|
|
573
|
+
userPortal?: {
|
|
574
|
+
mergeAccount?: boolean;
|
|
575
|
+
};
|
|
523
576
|
skipComplateFileds: boolean;
|
|
524
577
|
}
|
|
525
578
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -1195,6 +1248,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
|
|
|
1195
1248
|
/// <reference types="react" />
|
|
1196
1249
|
interface RotateResetProps {
|
|
1197
1250
|
onReset: any;
|
|
1251
|
+
onFinishCallBack?: any;
|
|
1198
1252
|
}
|
|
1199
1253
|
export const RotateReset: (props: RotateResetProps) => JSX.Element;
|
|
1200
1254
|
export {};
|
|
@@ -1208,6 +1262,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1208
1262
|
}>;
|
|
1209
1263
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1210
1264
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1265
|
+
export const GuardNoticePasswordResetView: React.FC;
|
|
1211
1266
|
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1212
1267
|
|
|
1213
1268
|
}
|
|
@@ -1249,6 +1304,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1249
1304
|
}>;
|
|
1250
1305
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1251
1306
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1307
|
+
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1252
1308
|
|
|
1253
1309
|
}
|
|
1254
1310
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1261,19 +1317,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1261
1317
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1262
1318
|
definition: any;
|
|
1263
1319
|
value: any;
|
|
1264
|
-
}[], authClient: AuthenticationClient
|
|
1320
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
1321
|
+
phone?: string;
|
|
1322
|
+
canMergeUser?: boolean;
|
|
1323
|
+
}) => void;
|
|
1265
1324
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1266
1325
|
definition: any;
|
|
1267
1326
|
value: any;
|
|
1268
1327
|
}[], authClient: AuthenticationClient) => void;
|
|
1328
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1269
1329
|
}
|
|
1270
1330
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1271
1331
|
config: Partial<CompleteInfoConfig>;
|
|
1272
1332
|
}
|
|
1273
1333
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1274
1334
|
config: CompleteInfoConfig;
|
|
1275
|
-
initData: any;
|
|
1276
|
-
onLogin?: any;
|
|
1277
1335
|
}
|
|
1278
1336
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1279
1337
|
export interface ExtendsField {
|
|
@@ -1306,6 +1364,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1306
1364
|
name: string;
|
|
1307
1365
|
required: boolean;
|
|
1308
1366
|
validateRules: CompleteInfoRule[];
|
|
1367
|
+
checkUnique?: boolean;
|
|
1309
1368
|
options?: CompleteInfoSelectOption[];
|
|
1310
1369
|
}
|
|
1311
1370
|
export enum CompleteInfoBaseControls {
|
|
@@ -1678,6 +1737,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1678
1737
|
MFA = "mfa",
|
|
1679
1738
|
FORGET_PWD = "forgetPassword",
|
|
1680
1739
|
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
1740
|
+
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
1681
1741
|
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
1682
1742
|
DOWNLOAD_AT = "downloadAT",
|
|
1683
1743
|
BIND_TOTP = "bindTotp",
|
|
@@ -1685,10 +1745,13 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1685
1745
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1686
1746
|
REGISTER_PASSWORD = "registerPassword",
|
|
1687
1747
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1748
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1688
1749
|
RECOVERY_CODE = "recoveryCode",
|
|
1689
1750
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1690
1751
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1691
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1752
|
+
IDENTITY_BINDING = "identityBinding",
|
|
1753
|
+
ACCOUNT_MERGE = "accountMerge",
|
|
1754
|
+
SELF_UNLOCK = "selfUnlock"
|
|
1692
1755
|
}
|
|
1693
1756
|
export interface GuardModuleAction {
|
|
1694
1757
|
action: string;
|
|
@@ -1763,6 +1826,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1763
1826
|
export interface PasswordParams {
|
|
1764
1827
|
account: string;
|
|
1765
1828
|
password: string;
|
|
1829
|
+
captchaCode: string;
|
|
1766
1830
|
}
|
|
1767
1831
|
export enum IdentityBindingAction {
|
|
1768
1832
|
CreateUser = "create-federation-account",
|
|
@@ -2352,6 +2416,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2352
2416
|
nickme?: string;
|
|
2353
2417
|
username?: string;
|
|
2354
2418
|
current?: MFAType;
|
|
2419
|
+
thirdPartyOrigin?: boolean;
|
|
2355
2420
|
}
|
|
2356
2421
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2357
2422
|
config: Partial<MFAConfig>;
|
|
@@ -2531,6 +2596,38 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2531
2596
|
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
2532
2597
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
2533
2598
|
|
|
2599
|
+
}
|
|
2600
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
2601
|
+
/// <reference types="react" />
|
|
2602
|
+
export enum InputMethodMap {
|
|
2603
|
+
email = "email-code",
|
|
2604
|
+
phone = "phone-code"
|
|
2605
|
+
}
|
|
2606
|
+
export const SelfUnlock: () => JSX.Element;
|
|
2607
|
+
|
|
2608
|
+
}
|
|
2609
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
2610
|
+
import React from 'react';
|
|
2611
|
+
export const GuardUnlockView: React.FC;
|
|
2612
|
+
|
|
2613
|
+
}
|
|
2614
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
|
|
2615
|
+
import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
|
|
2616
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
2617
|
+
export interface ForgetPasswordEvents extends IG2Events {
|
|
2618
|
+
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
2619
|
+
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2620
|
+
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
2621
|
+
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2622
|
+
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
2623
|
+
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2624
|
+
}
|
|
2625
|
+
export interface ForgetPasswordConfig extends IG2Config {
|
|
2626
|
+
}
|
|
2627
|
+
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
2628
|
+
config: Partial<IG2Config>;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2534
2631
|
}
|
|
2535
2632
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
2536
2633
|
import React, { FC } from 'react';
|
|
@@ -2731,7 +2828,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2731
2828
|
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2732
2829
|
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2733
2830
|
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2734
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2831
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
2832
|
+
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
2735
2833
|
}
|
|
2736
2834
|
|
|
2737
2835
|
}
|
|
@@ -3314,9 +3412,11 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3314
3412
|
MFA = 1635,
|
|
3315
3413
|
ABORT_FLOW = 1699,
|
|
3316
3414
|
COMPLETE_INFO = 1642,
|
|
3415
|
+
UNLOCK = 1643,
|
|
3317
3416
|
FLOW_END = 1600,
|
|
3318
3417
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3319
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3418
|
+
FORCED_PASSWORD_RESET = 2058,
|
|
3419
|
+
ACCOUNT_MERGE = 10000
|
|
3320
3420
|
}
|
|
3321
3421
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3322
3422
|
|
|
@@ -3402,6 +3502,7 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3402
3502
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3403
3503
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3404
3504
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3505
|
+
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3405
3506
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3406
3507
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3407
3508
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3413,7 +3514,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3413
3514
|
|
|
3414
3515
|
}
|
|
3415
3516
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3416
|
-
const _default: "3.1.
|
|
3517
|
+
const _default: "3.1.19-hep.2";
|
|
3417
3518
|
export default _default;
|
|
3418
3519
|
|
|
3419
3520
|
}
|