@authing/react-ui-components 3.0.39-rc.0 → 3.1.0-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 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,13 +1194,11 @@ 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 GuardCustomCompleteInfoView: React.FC;
1247
1197
 
1248
1198
  }
1249
1199
  declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
1250
1200
  import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
1251
1201
  import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1252
- import { CompleteInfoAuthFlowAction } from '@authing/react-ui-components/components/CompleteInfo/businessRequest';
1253
1202
  export interface CompleteInfoConfig extends IG2Config {
1254
1203
  }
1255
1204
  export const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
@@ -1257,21 +1206,19 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1257
1206
  onRegisterInfoCompleted?: (user: User, udfs: {
1258
1207
  definition: any;
1259
1208
  value: any;
1260
- }[], authClient: AuthenticationClient, opts?: {
1261
- phone?: string;
1262
- canMergeUser?: boolean;
1263
- }) => void;
1209
+ }[], authClient: AuthenticationClient) => void;
1264
1210
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
1265
1211
  definition: any;
1266
1212
  value: any;
1267
1213
  }[], authClient: AuthenticationClient) => void;
1268
- onCustomCompleteInfo?: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => void;
1269
1214
  }
1270
1215
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
1271
1216
  config: Partial<CompleteInfoConfig>;
1272
1217
  }
1273
1218
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
1274
1219
  config: CompleteInfoConfig;
1220
+ initData: any;
1221
+ onLogin?: any;
1275
1222
  }
1276
1223
  export type ExtendsFieldType = 'user' | 'internal';
1277
1224
  export interface ExtendsField {
@@ -1461,7 +1408,7 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
1461
1408
  export interface GuardProps extends GuardEvents, IG2FCProps {
1462
1409
  config?: Partial<GuardLocalConfig>;
1463
1410
  }
1464
- export const Guard: (props: GuardProps) => JSX.Element;
1411
+ export const Guard: import("react").MemoExoticComponent<(props: GuardProps) => JSX.Element>;
1465
1412
 
1466
1413
  }
1467
1414
  declare module '@authing/react-ui-components/components/Guard/GuardModule/stateMachine' {
@@ -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;
@@ -2013,11 +1958,11 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/IdpBut
2013
1958
  declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
2014
1959
  import React from 'react';
2015
1960
  import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2016
- import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
2017
1961
  import './style.less';
1962
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
2018
1963
  export interface SocialLoginProps {
2019
1964
  appId: string;
2020
- config: LoginConfig;
1965
+ config: GuardLocalConfig;
2021
1966
  onLoginFailed: any;
2022
1967
  onLoginSuccess: any;
2023
1968
  enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
@@ -2028,7 +1973,11 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/index'
2028
1973
  }
2029
1974
  declare module '@authing/react-ui-components/components/Login/socialLogin/postMessage' {
2030
1975
  import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
2031
- export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | undefined;
1976
+ export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | {
1977
+ code: any;
1978
+ data: any;
1979
+ onGuardHandling: undefined;
1980
+ } | undefined;
2032
1981
  export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>;
2033
1982
 
2034
1983
  }
@@ -2181,6 +2130,7 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
2181
2130
  areaCode: string;
2182
2131
  phoneCountryCode?: string;
2183
2132
  isInternationSms: boolean;
2133
+ userPhone?: string;
2184
2134
  }
2185
2135
  export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
2186
2136
  export const MFASms: React.FC<{
@@ -2257,7 +2207,6 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
2257
2207
  nickme?: string;
2258
2208
  username?: string;
2259
2209
  current?: MFAType;
2260
- thirdPartyOrigin?: boolean;
2261
2210
  }
2262
2211
  export interface GuardMFAProps extends IG2FCProps, MFAEvents {
2263
2212
  config: Partial<MFAConfig>;
@@ -3102,8 +3051,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3102
3051
  COMPLETE_INFO = 1642,
3103
3052
  FLOW_END = 1600,
3104
3053
  FIRST_LOGIN_PASSWORD = 1639,
3105
- FORCED_PASSWORD_RESET = 2058,
3106
- ACCOUNT_MERGE = 1000
3054
+ FORCED_PASSWORD_RESET = 2058
3107
3055
  }
3108
3056
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
3109
3057
 
@@ -3189,7 +3137,6 @@ declare module '@authing/react-ui-components/components/index' {
3189
3137
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
3190
3138
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
3191
3139
  export * from '@authing/react-ui-components/components/AuthingGuard/index';
3192
- export * from '@authing/react-ui-components/components/SingleComponent/index';
3193
3140
  export * from '@authing/react-ui-components/components/Guard/index';
3194
3141
  export * from '@authing/react-ui-components/components/Type/index';
3195
3142
  export * from '@authing/react-ui-components/components/version/index';
@@ -3201,7 +3148,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3201
3148
 
3202
3149
  }
3203
3150
  declare module '@authing/react-ui-components/components/version/version' {
3204
- const _default: "3.0.39-rc.0";
3151
+ const _default: "3.1.0-rc.11";
3205
3152
  export default _default;
3206
3153
 
3207
3154
  }