@authing/react-ui-components 3.1.19-hep.1 → 3.1.19-rc.2s
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 +37 -69
- 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>>;
|
|
@@ -1300,7 +1251,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1300
1251
|
}>;
|
|
1301
1252
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1302
1253
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1303
|
-
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1304
1254
|
|
|
1305
1255
|
}
|
|
1306
1256
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1313,21 +1263,19 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1313
1263
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1314
1264
|
definition: any;
|
|
1315
1265
|
value: any;
|
|
1316
|
-
}[], authClient: AuthenticationClient
|
|
1317
|
-
phone?: string;
|
|
1318
|
-
canMergeUser?: boolean;
|
|
1319
|
-
}) => void;
|
|
1266
|
+
}[], authClient: AuthenticationClient) => void;
|
|
1320
1267
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1321
1268
|
definition: any;
|
|
1322
1269
|
value: any;
|
|
1323
1270
|
}[], authClient: AuthenticationClient) => void;
|
|
1324
|
-
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1325
1271
|
}
|
|
1326
1272
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1327
1273
|
config: Partial<CompleteInfoConfig>;
|
|
1328
1274
|
}
|
|
1329
1275
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1330
1276
|
config: CompleteInfoConfig;
|
|
1277
|
+
initData: any;
|
|
1278
|
+
onLogin?: any;
|
|
1331
1279
|
}
|
|
1332
1280
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1333
1281
|
export interface ExtendsField {
|
|
@@ -1360,7 +1308,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1360
1308
|
name: string;
|
|
1361
1309
|
required: boolean;
|
|
1362
1310
|
validateRules: CompleteInfoRule[];
|
|
1363
|
-
checkUnique?: boolean;
|
|
1364
1311
|
options?: CompleteInfoSelectOption[];
|
|
1365
1312
|
}
|
|
1366
1313
|
export enum CompleteInfoBaseControls {
|
|
@@ -1457,7 +1404,10 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/in
|
|
|
1457
1404
|
declare module '@authing/react-ui-components/components/Error/index' {
|
|
1458
1405
|
import React from 'react';
|
|
1459
1406
|
import './styles.less';
|
|
1460
|
-
export
|
|
1407
|
+
export interface ErrorProps {
|
|
1408
|
+
error?: Error;
|
|
1409
|
+
}
|
|
1410
|
+
export const GuardErrorView: React.FC<ErrorProps>;
|
|
1461
1411
|
|
|
1462
1412
|
}
|
|
1463
1413
|
declare module '@authing/react-ui-components/components/Error/interface' {
|
|
@@ -1741,12 +1691,10 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1741
1691
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1742
1692
|
REGISTER_PASSWORD = "registerPassword",
|
|
1743
1693
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1744
|
-
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1745
1694
|
RECOVERY_CODE = "recoveryCode",
|
|
1746
1695
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1747
1696
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1748
1697
|
IDENTITY_BINDING = "identityBinding",
|
|
1749
|
-
ACCOUNT_MERGE = "accountMerge",
|
|
1750
1698
|
SELF_UNLOCK = "selfUnlock"
|
|
1751
1699
|
}
|
|
1752
1700
|
export interface GuardModuleAction {
|
|
@@ -1778,6 +1726,19 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
|
1778
1726
|
}
|
|
1779
1727
|
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
1780
1728
|
|
|
1729
|
+
}
|
|
1730
|
+
declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
|
|
1731
|
+
import React from 'react';
|
|
1732
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
1733
|
+
import './styles.less';
|
|
1734
|
+
export interface GuardButtonProps extends ButtonProps {
|
|
1735
|
+
}
|
|
1736
|
+
export const GuardButton: React.FC<GuardButtonProps>;
|
|
1737
|
+
|
|
1738
|
+
}
|
|
1739
|
+
declare module '@authing/react-ui-components/components/GuardButton/index' {
|
|
1740
|
+
export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
|
|
1741
|
+
|
|
1781
1742
|
}
|
|
1782
1743
|
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
1783
1744
|
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
@@ -2308,9 +2269,9 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
|
|
|
2308
2269
|
};
|
|
2309
2270
|
};
|
|
2310
2271
|
export const FACE_SCORE = 0.65;
|
|
2311
|
-
export
|
|
2312
|
-
export
|
|
2313
|
-
export
|
|
2272
|
+
export const useFaceDetectorOptions: () => any;
|
|
2273
|
+
export const useCurrentFaceDetectionNet: () => any;
|
|
2274
|
+
export const useIsFaceDetectionModelLoaded: () => any;
|
|
2314
2275
|
export function dataURItoBlob(base64Data: any): Blob;
|
|
2315
2276
|
|
|
2316
2277
|
}
|
|
@@ -2412,7 +2373,6 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2412
2373
|
nickme?: string;
|
|
2413
2374
|
username?: string;
|
|
2414
2375
|
current?: MFAType;
|
|
2415
|
-
thirdPartyOrigin?: boolean;
|
|
2416
2376
|
}
|
|
2417
2377
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2418
2378
|
config: Partial<MFAConfig>;
|
|
@@ -2708,7 +2668,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
|
2708
2668
|
}
|
|
2709
2669
|
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
2710
2670
|
import React from 'react';
|
|
2711
|
-
|
|
2671
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2672
|
+
interface SubmitButtonProps extends ButtonProps {
|
|
2712
2673
|
text?: string;
|
|
2713
2674
|
className?: string;
|
|
2714
2675
|
onClick?: any;
|
|
@@ -3052,6 +3013,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3052
3013
|
}>;
|
|
3053
3014
|
Consumer: React.Consumer<IGuardContext>;
|
|
3054
3015
|
};
|
|
3016
|
+
export interface IGuardContextProvider {
|
|
3017
|
+
spin: boolean;
|
|
3018
|
+
spinChange: (spin: boolean) => void;
|
|
3019
|
+
}
|
|
3020
|
+
export const useGuardButtonContext: () => {
|
|
3021
|
+
GuardButtonProvider: React.FC<{}>;
|
|
3022
|
+
};
|
|
3023
|
+
export const useGuardButtonState: () => IGuardContextProvider;
|
|
3055
3024
|
export const useGuardPublicConfig: () => ApplicationConfig;
|
|
3056
3025
|
export const useGuardHttpClient: () => GuardHttp;
|
|
3057
3026
|
export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
@@ -3101,7 +3070,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
|
3101
3070
|
}
|
|
3102
3071
|
declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
|
|
3103
3072
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
3104
|
-
export const getFacePlugin: () => FacePlugin;
|
|
3073
|
+
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3074
|
+
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3105
3075
|
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3106
3076
|
|
|
3107
3077
|
}
|
|
@@ -3411,8 +3381,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3411
3381
|
UNLOCK = 1643,
|
|
3412
3382
|
FLOW_END = 1600,
|
|
3413
3383
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3414
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3415
|
-
ACCOUNT_MERGE = 10000
|
|
3384
|
+
FORCED_PASSWORD_RESET = 2058
|
|
3416
3385
|
}
|
|
3417
3386
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3418
3387
|
|
|
@@ -3498,7 +3467,6 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3498
3467
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3499
3468
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3500
3469
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3501
|
-
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3502
3470
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3503
3471
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3504
3472
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3510,7 +3478,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3510
3478
|
|
|
3511
3479
|
}
|
|
3512
3480
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3513
|
-
const _default: "3.1.19-
|
|
3481
|
+
const _default: "3.1.19-rc.2s";
|
|
3514
3482
|
export default _default;
|
|
3515
3483
|
|
|
3516
3484
|
}
|