@authing/react-ui-components 3.1.0-hep.0 → 3.1.0-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 +7 -64
- 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
|
@@ -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/AuthingDropdown/index' {
|
|
48
2
|
import React, { FC } from 'react';
|
|
49
3
|
import './style.less';
|
|
@@ -532,9 +486,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
532
486
|
verifyCodeLength: number;
|
|
533
487
|
websocket: string;
|
|
534
488
|
welcomeMessage: any;
|
|
535
|
-
userPortal?: {
|
|
536
|
-
mergeAccount?: boolean;
|
|
537
|
-
};
|
|
538
489
|
skipComplateFileds: boolean;
|
|
539
490
|
}
|
|
540
491
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -1243,7 +1194,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1243
1194
|
}>;
|
|
1244
1195
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1245
1196
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1246
|
-
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1247
1197
|
|
|
1248
1198
|
}
|
|
1249
1199
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1256,21 +1206,19 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1256
1206
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1257
1207
|
definition: any;
|
|
1258
1208
|
value: any;
|
|
1259
|
-
}[], authClient: AuthenticationClient
|
|
1260
|
-
phone?: string;
|
|
1261
|
-
canMergeUser?: boolean;
|
|
1262
|
-
}) => void;
|
|
1209
|
+
}[], authClient: AuthenticationClient) => void;
|
|
1263
1210
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1264
1211
|
definition: any;
|
|
1265
1212
|
value: any;
|
|
1266
1213
|
}[], authClient: AuthenticationClient) => void;
|
|
1267
|
-
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1268
1214
|
}
|
|
1269
1215
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1270
1216
|
config: Partial<CompleteInfoConfig>;
|
|
1271
1217
|
}
|
|
1272
1218
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1273
1219
|
config: CompleteInfoConfig;
|
|
1220
|
+
initData: any;
|
|
1221
|
+
onLogin?: any;
|
|
1274
1222
|
}
|
|
1275
1223
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1276
1224
|
export interface ExtendsField {
|
|
@@ -1303,7 +1251,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1303
1251
|
name: string;
|
|
1304
1252
|
required: boolean;
|
|
1305
1253
|
validateRules: CompleteInfoRule[];
|
|
1306
|
-
checkUnique?: boolean;
|
|
1307
1254
|
options?: CompleteInfoSelectOption[];
|
|
1308
1255
|
}
|
|
1309
1256
|
export enum CompleteInfoBaseControls {
|
|
@@ -1598,12 +1545,10 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1598
1545
|
ANY_QUESTIONS = "anyQuestions",
|
|
1599
1546
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
1600
1547
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1601
|
-
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
1602
1548
|
RECOVERY_CODE = "recoveryCode",
|
|
1603
1549
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1604
1550
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1605
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1606
|
-
ACCOUNT_MERGE = "accountMerge"
|
|
1551
|
+
IDENTITY_BINDING = "identityBinding"
|
|
1607
1552
|
}
|
|
1608
1553
|
export interface GuardModuleAction {
|
|
1609
1554
|
action: string;
|
|
@@ -2185,6 +2130,7 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
|
|
|
2185
2130
|
areaCode: string;
|
|
2186
2131
|
phoneCountryCode?: string;
|
|
2187
2132
|
isInternationSms: boolean;
|
|
2133
|
+
userPhone?: string;
|
|
2188
2134
|
}
|
|
2189
2135
|
export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
|
|
2190
2136
|
export const MFASms: React.FC<{
|
|
@@ -2261,7 +2207,6 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2261
2207
|
nickme?: string;
|
|
2262
2208
|
username?: string;
|
|
2263
2209
|
current?: MFAType;
|
|
2264
|
-
thirdPartyOrigin?: boolean;
|
|
2265
2210
|
}
|
|
2266
2211
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2267
2212
|
config: Partial<MFAConfig>;
|
|
@@ -3106,8 +3051,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3106
3051
|
COMPLETE_INFO = 1642,
|
|
3107
3052
|
FLOW_END = 1600,
|
|
3108
3053
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3109
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3110
|
-
ACCOUNT_MERGE = 10000
|
|
3054
|
+
FORCED_PASSWORD_RESET = 2058
|
|
3111
3055
|
}
|
|
3112
3056
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3113
3057
|
|
|
@@ -3193,7 +3137,6 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
3193
3137
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3194
3138
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3195
3139
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3196
|
-
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
3197
3140
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
3198
3141
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
3199
3142
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -3205,7 +3148,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3205
3148
|
|
|
3206
3149
|
}
|
|
3207
3150
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3208
|
-
const _default: "3.1.0-
|
|
3151
|
+
const _default: "3.1.0-rc.10";
|
|
3209
3152
|
export default _default;
|
|
3210
3153
|
|
|
3211
3154
|
}
|