@authing/react-ui-components 3.1.19-hep.1 → 3.1.19-rc.11
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 -67
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -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' {
|
|
@@ -1551,6 +1501,7 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1551
1501
|
private changeModuleEvent;
|
|
1552
1502
|
private stateMachineLog;
|
|
1553
1503
|
constructor(changeModuleEvent: ChangeModuleEvent, initData: ModuleState);
|
|
1504
|
+
uninstallPopstate: () => void;
|
|
1554
1505
|
globalWindow: () => Window | undefined;
|
|
1555
1506
|
next: (nextModule: GuardModuleType, initData: any) => void;
|
|
1556
1507
|
back: (initData?: any) => void;
|
|
@@ -1558,8 +1509,9 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1558
1509
|
historyPush: (data: ModuleState, actionType?: ActionType) => void;
|
|
1559
1510
|
historyBack: (data: ModuleState) => void;
|
|
1560
1511
|
setConfig: (config: GuardLocalConfig) => void;
|
|
1512
|
+
isUseHistoryHijack: () => boolean;
|
|
1513
|
+
onPopstate: () => void;
|
|
1561
1514
|
}
|
|
1562
|
-
export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
|
|
1563
1515
|
export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
|
|
1564
1516
|
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1565
1517
|
export const useGuardStateMachine: () => GuardStateMachine;
|
|
@@ -1741,12 +1693,10 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1741
1693
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1742
1694
|
REGISTER_PASSWORD = "registerPassword",
|
|
1743
1695
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1744
|
-
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1745
1696
|
RECOVERY_CODE = "recoveryCode",
|
|
1746
1697
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1747
1698
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1748
1699
|
IDENTITY_BINDING = "identityBinding",
|
|
1749
|
-
ACCOUNT_MERGE = "accountMerge",
|
|
1750
1700
|
SELF_UNLOCK = "selfUnlock"
|
|
1751
1701
|
}
|
|
1752
1702
|
export interface GuardModuleAction {
|
|
@@ -1778,6 +1728,19 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
|
1778
1728
|
}
|
|
1779
1729
|
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
1780
1730
|
|
|
1731
|
+
}
|
|
1732
|
+
declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
|
|
1733
|
+
import React from 'react';
|
|
1734
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
1735
|
+
import './styles.less';
|
|
1736
|
+
export interface GuardButtonProps extends ButtonProps {
|
|
1737
|
+
}
|
|
1738
|
+
export const GuardButton: React.FC<GuardButtonProps>;
|
|
1739
|
+
|
|
1740
|
+
}
|
|
1741
|
+
declare module '@authing/react-ui-components/components/GuardButton/index' {
|
|
1742
|
+
export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
|
|
1743
|
+
|
|
1781
1744
|
}
|
|
1782
1745
|
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
1783
1746
|
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
@@ -2412,7 +2375,6 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2412
2375
|
nickme?: string;
|
|
2413
2376
|
username?: string;
|
|
2414
2377
|
current?: MFAType;
|
|
2415
|
-
thirdPartyOrigin?: boolean;
|
|
2416
2378
|
}
|
|
2417
2379
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2418
2380
|
config: Partial<MFAConfig>;
|
|
@@ -2708,7 +2670,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
|
2708
2670
|
}
|
|
2709
2671
|
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
2710
2672
|
import React from 'react';
|
|
2711
|
-
|
|
2673
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2674
|
+
interface SubmitButtonProps extends ButtonProps {
|
|
2712
2675
|
text?: string;
|
|
2713
2676
|
className?: string;
|
|
2714
2677
|
onClick?: any;
|
|
@@ -3052,6 +3015,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3052
3015
|
}>;
|
|
3053
3016
|
Consumer: React.Consumer<IGuardContext>;
|
|
3054
3017
|
};
|
|
3018
|
+
export interface IGuardContextProvider {
|
|
3019
|
+
spin: boolean;
|
|
3020
|
+
spinChange: (spin: boolean) => void;
|
|
3021
|
+
}
|
|
3022
|
+
export const useGuardButtonContext: () => {
|
|
3023
|
+
GuardButtonProvider: React.FC<{}>;
|
|
3024
|
+
};
|
|
3025
|
+
export const useGuardButtonState: () => IGuardContextProvider;
|
|
3055
3026
|
export const useGuardPublicConfig: () => ApplicationConfig;
|
|
3056
3027
|
export const useGuardHttpClient: () => GuardHttp;
|
|
3057
3028
|
export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
@@ -3101,7 +3072,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
|
3101
3072
|
}
|
|
3102
3073
|
declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
|
|
3103
3074
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
3104
|
-
export const getFacePlugin: () => FacePlugin;
|
|
3075
|
+
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3076
|
+
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3105
3077
|
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3106
3078
|
|
|
3107
3079
|
}
|
|
@@ -3411,8 +3383,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3411
3383
|
UNLOCK = 1643,
|
|
3412
3384
|
FLOW_END = 1600,
|
|
3413
3385
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3414
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3415
|
-
ACCOUNT_MERGE = 10000
|
|
3386
|
+
FORCED_PASSWORD_RESET = 2058
|
|
3416
3387
|
}
|
|
3417
3388
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3418
3389
|
|
|
@@ -3498,7 +3469,6 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3498
3469
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3499
3470
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3500
3471
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3501
|
-
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3502
3472
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3503
3473
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3504
3474
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3510,7 +3480,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3510
3480
|
|
|
3511
3481
|
}
|
|
3512
3482
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3513
|
-
const _default: "3.1.19-
|
|
3483
|
+
const _default: "3.1.19-rc.11";
|
|
3514
3484
|
export default _default;
|
|
3515
3485
|
|
|
3516
3486
|
}
|