@authing/react-ui-components 3.1.0-hep.4 → 3.1.0-rc.12

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>>;
@@ -1165,7 +1116,7 @@ declare module '@authing/react-ui-components/components/BindTotp/interface' {
1165
1116
  }
1166
1117
  declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
1167
1118
  /// <reference types="react" />
1168
- export const ChangeLanguage: (props: any) => JSX.Element;
1119
+ export const ChangeLanguage: (props: any) => JSX.Element | null;
1169
1120
 
1170
1121
  }
1171
1122
  declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
@@ -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, opts?: {
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 {
@@ -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;
@@ -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>;
@@ -2591,6 +2536,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
2591
2536
  EmailCode = "email-code",
2592
2537
  PhoneCode = "phone-code"
2593
2538
  }
2539
+ export enum GuardPageSene {
2540
+ Global = "global"
2541
+ }
2542
+ export interface GuardPageConfig {
2543
+ [GuardPageSene.Global]: {
2544
+ showChangeLanguage: boolean;
2545
+ };
2546
+ }
2594
2547
 
2595
2548
  }
2596
2549
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2780,7 +2733,7 @@ declare module '@authing/react-ui-components/components/_utils/config' {
2780
2733
  }
2781
2734
  declare module '@authing/react-ui-components/components/_utils/context' {
2782
2735
  import React from 'react';
2783
- import { GuardEvents, GuardLocalConfig, GuardModuleType } from '@authing/react-ui-components/components/index';
2736
+ import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/components/index';
2784
2737
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2785
2738
  import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
2786
2739
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
@@ -2797,6 +2750,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2797
2750
  backModule?: () => void;
2798
2751
  isAuthFlow: boolean;
2799
2752
  contextLoaded: boolean;
2753
+ guardPageConfig: Partial<GuardPageConfig>;
2800
2754
  }
2801
2755
  export const createGuardXContext: () => {
2802
2756
  Provider: React.FC<{
@@ -2818,6 +2772,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2818
2772
  export const useGuardFinallyConfig: () => GuardLocalConfig;
2819
2773
  export const useGuardContextLoaded: () => boolean;
2820
2774
  export const useGuardIsAuthFlow: () => boolean;
2775
+ export const useGuardPageConfig: () => Partial<GuardPageConfig>;
2821
2776
 
2822
2777
  }
2823
2778
  declare module '@authing/react-ui-components/components/_utils/corsVerification' {
@@ -2878,6 +2833,15 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
2878
2833
  export const getGuardHttp: () => GuardHttp;
2879
2834
  export const useGuardHttp: () => GuardHttp;
2880
2835
 
2836
+ }
2837
+ declare module '@authing/react-ui-components/components/_utils/guardPageConfig' {
2838
+ import { GuardPageConfig } from '@authing/react-ui-components/components/index';
2839
+ import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2840
+ export const getPageConfig: (appId: string) => GuardPageConfig;
2841
+ export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
2842
+ export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
2843
+ export const useGuardPageConfig: (appId: string, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
2844
+
2881
2845
  }
2882
2846
  declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2883
2847
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
@@ -3106,8 +3070,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3106
3070
  COMPLETE_INFO = 1642,
3107
3071
  FLOW_END = 1600,
3108
3072
  FIRST_LOGIN_PASSWORD = 1639,
3109
- FORCED_PASSWORD_RESET = 2058,
3110
- ACCOUNT_MERGE = 10000
3073
+ FORCED_PASSWORD_RESET = 2058
3111
3074
  }
3112
3075
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
3113
3076
 
@@ -3193,7 +3156,6 @@ declare module '@authing/react-ui-components/components/index' {
3193
3156
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
3194
3157
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
3195
3158
  export * from '@authing/react-ui-components/components/AuthingGuard/index';
3196
- export * from '@authing/react-ui-components/components/SingleComponent/index';
3197
3159
  export * from '@authing/react-ui-components/components/Guard/index';
3198
3160
  export * from '@authing/react-ui-components/components/Type/index';
3199
3161
  export * from '@authing/react-ui-components/components/version/index';
@@ -3205,7 +3167,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3205
3167
 
3206
3168
  }
3207
3169
  declare module '@authing/react-ui-components/components/version/version' {
3208
- const _default: "3.1.0-hep.4";
3170
+ const _default: "3.1.0-rc.12";
3209
3171
  export default _default;
3210
3172
 
3211
3173
  }