@authing/react-ui-components 3.1.19-hep.1 → 3.1.19-rc.10
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 +31 -64
- 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,49 +1,3 @@
|
|
|
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
|
-
}
|
|
20
|
-
export interface GuardAccountMergeInitData {
|
|
21
|
-
currentUserInfo: BriefUserInfo;
|
|
22
|
-
existingUserInfo: BriefUserInfo;
|
|
23
|
-
mergeToken?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface UserRadioProps {
|
|
26
|
-
currentUserInfo: BriefUserInfo;
|
|
27
|
-
existingUserInfo: BriefUserInfo;
|
|
28
|
-
onChange?: (value: any) => void;
|
|
29
|
-
value?: any;
|
|
30
|
-
}
|
|
31
|
-
export interface UserRadioItemProps extends BriefUserInfo {
|
|
32
|
-
value: boolean;
|
|
33
|
-
selected: boolean;
|
|
34
|
-
onClick: (value: boolean) => void;
|
|
35
|
-
}
|
|
36
|
-
export enum AuthFlowAction {
|
|
37
|
-
MERGE = "confirm-account-merge"
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
declare module '@authing/react-ui-components/components/AccountMerge/utils' {
|
|
42
|
-
import { User } from 'authing-js-sdk';
|
|
43
|
-
export const getDisplayName: (user: User) => string;
|
|
44
|
-
export const getDisplayNameByEmail: (displayName: string) => string;
|
|
45
|
-
|
|
46
|
-
}
|
|
47
1
|
declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
|
|
48
2
|
import React from 'react';
|
|
49
3
|
import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
|
|
@@ -566,9 +520,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
566
520
|
verifyCodeLength: number;
|
|
567
521
|
websocket: string;
|
|
568
522
|
welcomeMessage: any;
|
|
569
|
-
userPortal?: {
|
|
570
|
-
mergeAccount?: boolean;
|
|
571
|
-
};
|
|
572
523
|
skipComplateFileds: boolean;
|
|
573
524
|
}
|
|
574
525
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -1218,13 +1169,23 @@ declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
|
|
|
1218
1169
|
declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
|
|
1219
1170
|
export enum ChangePasswordBusinessAction {
|
|
1220
1171
|
ResetPassword = "reset-password-first-time",
|
|
1221
|
-
FirstLoginReset = "reset-password-forced"
|
|
1172
|
+
FirstLoginReset = "reset-password-forced",
|
|
1173
|
+
ResetPasswordStrengthDetection = "reset-password-strength-detection"
|
|
1222
1174
|
}
|
|
1223
1175
|
export const authFlow: (action: ChangePasswordBusinessAction, content: {
|
|
1224
1176
|
password: string;
|
|
1225
1177
|
oldPassword?: string;
|
|
1226
1178
|
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1227
1179
|
|
|
1180
|
+
}
|
|
1181
|
+
declare module '@authing/react-ui-components/components/ChangePassword/core/PasswordNotSafeReset' {
|
|
1182
|
+
import React from 'react';
|
|
1183
|
+
interface PasswordNotSafeResetProps {
|
|
1184
|
+
onReset: any;
|
|
1185
|
+
}
|
|
1186
|
+
export const PasswordNotSafeReset: React.FC<PasswordNotSafeResetProps>;
|
|
1187
|
+
export {};
|
|
1188
|
+
|
|
1228
1189
|
}
|
|
1229
1190
|
declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
|
|
1230
1191
|
import React from 'react';
|
|
@@ -1257,6 +1218,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1257
1218
|
explain: string;
|
|
1258
1219
|
}>;
|
|
1259
1220
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1221
|
+
export const GuardPasswordNotSafeResetView: React.FC;
|
|
1260
1222
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1261
1223
|
export const GuardNoticePasswordResetView: React.FC;
|
|
1262
1224
|
export const GuardRegisterCompletePasswordView: React.FC;
|
|
@@ -1300,7 +1262,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1300
1262
|
}>;
|
|
1301
1263
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1302
1264
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1303
|
-
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1304
1265
|
|
|
1305
1266
|
}
|
|
1306
1267
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1313,21 +1274,19 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1313
1274
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1314
1275
|
definition: any;
|
|
1315
1276
|
value: any;
|
|
1316
|
-
}[], authClient: AuthenticationClient
|
|
1317
|
-
phone?: string;
|
|
1318
|
-
canMergeUser?: boolean;
|
|
1319
|
-
}) => void;
|
|
1277
|
+
}[], authClient: AuthenticationClient) => void;
|
|
1320
1278
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1321
1279
|
definition: any;
|
|
1322
1280
|
value: any;
|
|
1323
1281
|
}[], authClient: AuthenticationClient) => void;
|
|
1324
|
-
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1325
1282
|
}
|
|
1326
1283
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1327
1284
|
config: Partial<CompleteInfoConfig>;
|
|
1328
1285
|
}
|
|
1329
1286
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1330
1287
|
config: CompleteInfoConfig;
|
|
1288
|
+
initData: any;
|
|
1289
|
+
onLogin?: any;
|
|
1331
1290
|
}
|
|
1332
1291
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1333
1292
|
export interface ExtendsField {
|
|
@@ -1360,7 +1319,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1360
1319
|
name: string;
|
|
1361
1320
|
required: boolean;
|
|
1362
1321
|
validateRules: CompleteInfoRule[];
|
|
1363
|
-
checkUnique?: boolean;
|
|
1364
1322
|
options?: CompleteInfoSelectOption[];
|
|
1365
1323
|
}
|
|
1366
1324
|
export enum CompleteInfoBaseControls {
|
|
@@ -1457,7 +1415,10 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/in
|
|
|
1457
1415
|
declare module '@authing/react-ui-components/components/Error/index' {
|
|
1458
1416
|
import React from 'react';
|
|
1459
1417
|
import './styles.less';
|
|
1460
|
-
export
|
|
1418
|
+
export interface ErrorProps {
|
|
1419
|
+
error?: Error;
|
|
1420
|
+
}
|
|
1421
|
+
export const GuardErrorView: React.FC<ErrorProps>;
|
|
1461
1422
|
|
|
1462
1423
|
}
|
|
1463
1424
|
declare module '@authing/react-ui-components/components/Error/interface' {
|
|
@@ -1735,18 +1696,17 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1735
1696
|
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
1736
1697
|
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
1737
1698
|
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
1699
|
+
UNSAFE_PASSWORD_RESET = "unsafePasswordReset",
|
|
1738
1700
|
DOWNLOAD_AT = "downloadAT",
|
|
1739
1701
|
BIND_TOTP = "bindTotp",
|
|
1740
1702
|
ANY_QUESTIONS = "anyQuestions",
|
|
1741
1703
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1742
1704
|
REGISTER_PASSWORD = "registerPassword",
|
|
1743
1705
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1744
|
-
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1745
1706
|
RECOVERY_CODE = "recoveryCode",
|
|
1746
1707
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1747
1708
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1748
1709
|
IDENTITY_BINDING = "identityBinding",
|
|
1749
|
-
ACCOUNT_MERGE = "accountMerge",
|
|
1750
1710
|
SELF_UNLOCK = "selfUnlock"
|
|
1751
1711
|
}
|
|
1752
1712
|
export interface GuardModuleAction {
|
|
@@ -2412,7 +2372,6 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2412
2372
|
nickme?: string;
|
|
2413
2373
|
username?: string;
|
|
2414
2374
|
current?: MFAType;
|
|
2415
|
-
thirdPartyOrigin?: boolean;
|
|
2416
2375
|
}
|
|
2417
2376
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2418
2377
|
config: Partial<MFAConfig>;
|
|
@@ -3412,10 +3371,19 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3412
3371
|
FLOW_END = 1600,
|
|
3413
3372
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3414
3373
|
FORCED_PASSWORD_RESET = 2058,
|
|
3415
|
-
|
|
3374
|
+
UNSAFE_PASSWORD_TIP = 2061,
|
|
3375
|
+
UNSAFE_PASSWORD_RESET = 2071
|
|
3416
3376
|
}
|
|
3417
3377
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3418
3378
|
|
|
3379
|
+
}
|
|
3380
|
+
declare module '@authing/react-ui-components/components/_utils/useErrorText' {
|
|
3381
|
+
import React from 'react';
|
|
3382
|
+
export const usePasswordErrorText: () => {
|
|
3383
|
+
setPasswordErrorTextShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
3384
|
+
getPassWordUnsafeText: () => JSX.Element;
|
|
3385
|
+
};
|
|
3386
|
+
|
|
3419
3387
|
}
|
|
3420
3388
|
declare module '@authing/react-ui-components/components/context/base' {
|
|
3421
3389
|
import React from 'react';
|
|
@@ -3498,7 +3466,6 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3498
3466
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3499
3467
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3500
3468
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3501
|
-
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3502
3469
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3503
3470
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3504
3471
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3510,7 +3477,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3510
3477
|
|
|
3511
3478
|
}
|
|
3512
3479
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3513
|
-
const _default: "3.1.19-
|
|
3480
|
+
const _default: "3.1.19-rc.10";
|
|
3514
3481
|
export default _default;
|
|
3515
3482
|
|
|
3516
3483
|
}
|