@authing/react-ui-components 3.1.18-rc.3 → 3.1.19-hep.1

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,3 +1,49 @@
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
+ }
1
47
  declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
2
48
  import React from 'react';
3
49
  import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
@@ -520,6 +566,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
520
566
  verifyCodeLength: number;
521
567
  websocket: string;
522
568
  welcomeMessage: any;
569
+ userPortal?: {
570
+ mergeAccount?: boolean;
571
+ };
523
572
  skipComplateFileds: boolean;
524
573
  }
525
574
  export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
@@ -1195,6 +1244,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
1195
1244
  /// <reference types="react" />
1196
1245
  interface RotateResetProps {
1197
1246
  onReset: any;
1247
+ onFinishCallBack?: any;
1198
1248
  }
1199
1249
  export const RotateReset: (props: RotateResetProps) => JSX.Element;
1200
1250
  export {};
@@ -1208,6 +1258,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1208
1258
  }>;
1209
1259
  export const GuardFirstLoginPasswordResetView: React.FC;
1210
1260
  export const GuardForcedPasswordResetView: React.FC;
1261
+ export const GuardNoticePasswordResetView: React.FC;
1211
1262
  export const GuardRegisterCompletePasswordView: React.FC;
1212
1263
 
1213
1264
  }
@@ -1249,6 +1300,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
1249
1300
  }>;
1250
1301
  export const GuardLoginCompleteInfoView: React.FC;
1251
1302
  export const GuardRegisterCompleteInfoView: React.FC;
1303
+ export const GuardAccountMergeCompleteInfoView: React.FC;
1252
1304
 
1253
1305
  }
1254
1306
  declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
@@ -1261,19 +1313,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1261
1313
  onRegisterInfoCompleted?: (user: User, udfs: {
1262
1314
  definition: any;
1263
1315
  value: any;
1264
- }[], authClient: AuthenticationClient) => void;
1316
+ }[], authClient: AuthenticationClient, opts?: {
1317
+ phone?: string;
1318
+ canMergeUser?: boolean;
1319
+ }) => void;
1265
1320
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
1266
1321
  definition: any;
1267
1322
  value: any;
1268
1323
  }[], authClient: AuthenticationClient) => void;
1324
+ onAccountMergeCompleteInfo?: (user: User) => void;
1269
1325
  }
1270
1326
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
1271
1327
  config: Partial<CompleteInfoConfig>;
1272
1328
  }
1273
1329
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
1274
1330
  config: CompleteInfoConfig;
1275
- initData: any;
1276
- onLogin?: any;
1277
1331
  }
1278
1332
  export type ExtendsFieldType = 'user' | 'internal';
1279
1333
  export interface ExtendsField {
@@ -1306,6 +1360,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1306
1360
  name: string;
1307
1361
  required: boolean;
1308
1362
  validateRules: CompleteInfoRule[];
1363
+ checkUnique?: boolean;
1309
1364
  options?: CompleteInfoSelectOption[];
1310
1365
  }
1311
1366
  export enum CompleteInfoBaseControls {
@@ -1678,6 +1733,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1678
1733
  MFA = "mfa",
1679
1734
  FORGET_PWD = "forgetPassword",
1680
1735
  FORCED_PASSWORD_RESET = "forcedPasswordReset",
1736
+ NOTICE_PASSWORD_RESET = "noticePasswordReset",
1681
1737
  FIRST_LOGIN_PASSWORD = "firstLoginPassword",
1682
1738
  DOWNLOAD_AT = "downloadAT",
1683
1739
  BIND_TOTP = "bindTotp",
@@ -1685,10 +1741,13 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1685
1741
  LOGIN_COMPLETE_INFO = "loginCompleteInfo",
1686
1742
  REGISTER_PASSWORD = "registerPassword",
1687
1743
  REGISTER_COMPLETE_INFO = "registerCompleteInfo",
1744
+ CUSTOM_COMPLETE_INFO = "customCompleteInfo",
1688
1745
  RECOVERY_CODE = "recoveryCode",
1689
1746
  SUBMIT_SUCCESS = "submitSuccess",
1690
1747
  IDENTITY_BINDING_ASK = "identityBindingAsk",
1691
- IDENTITY_BINDING = "identityBinding"
1748
+ IDENTITY_BINDING = "identityBinding",
1749
+ ACCOUNT_MERGE = "accountMerge",
1750
+ SELF_UNLOCK = "selfUnlock"
1692
1751
  }
1693
1752
  export interface GuardModuleAction {
1694
1753
  action: string;
@@ -1763,6 +1822,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
1763
1822
  export interface PasswordParams {
1764
1823
  account: string;
1765
1824
  password: string;
1825
+ captchaCode: string;
1766
1826
  }
1767
1827
  export enum IdentityBindingAction {
1768
1828
  CreateUser = "create-federation-account",
@@ -2352,6 +2412,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
2352
2412
  nickme?: string;
2353
2413
  username?: string;
2354
2414
  current?: MFAType;
2415
+ thirdPartyOrigin?: boolean;
2355
2416
  }
2356
2417
  export interface GuardMFAProps extends IG2FCProps, MFAEvents {
2357
2418
  config: Partial<MFAConfig>;
@@ -2531,6 +2592,38 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2531
2592
  declare module '@authing/react-ui-components/components/Register/utils' {
2532
2593
  export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
2533
2594
 
2595
+ }
2596
+ declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
2597
+ /// <reference types="react" />
2598
+ export enum InputMethodMap {
2599
+ email = "email-code",
2600
+ phone = "phone-code"
2601
+ }
2602
+ export const SelfUnlock: () => JSX.Element;
2603
+
2604
+ }
2605
+ declare module '@authing/react-ui-components/components/SelfUnlock/index' {
2606
+ import React from 'react';
2607
+ export const GuardUnlockView: React.FC;
2608
+
2609
+ }
2610
+ declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
2611
+ import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
2612
+ import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
2613
+ export interface ForgetPasswordEvents extends IG2Events {
2614
+ onPwdEmailSend?: (authClient: AuthenticationClient) => void;
2615
+ onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2616
+ onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
2617
+ onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2618
+ onPwdReset?: (authClient: AuthenticationClient) => void;
2619
+ onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2620
+ }
2621
+ export interface ForgetPasswordConfig extends IG2Config {
2622
+ }
2623
+ export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
2624
+ config: Partial<IG2Config>;
2625
+ }
2626
+
2534
2627
  }
2535
2628
  declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2536
2629
  import React, { FC } from 'react';
@@ -2731,7 +2824,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
2731
2824
  CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
2732
2825
  RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
2733
2826
  EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
2734
- EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
2827
+ EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
2828
+ SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
2735
2829
  }
2736
2830
 
2737
2831
  }
@@ -2936,6 +3030,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2936
3030
  publicConfig: ApplicationConfig;
2937
3031
  httpClient: GuardHttp;
2938
3032
  appId: string;
3033
+ tenantId?: string;
2939
3034
  initData: any;
2940
3035
  currentModule: ModuleState;
2941
3036
  events: Partial<GuardEvents>;
@@ -2961,6 +3056,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2961
3056
  export const useGuardHttpClient: () => GuardHttp;
2962
3057
  export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
2963
3058
  export const useGuardAppId: () => string;
3059
+ export const useGuardTenantId: () => string | undefined;
2964
3060
  export function useGuardInitData<T>(): T;
2965
3061
  export const useGuardCurrentModule: () => ModuleState;
2966
3062
  export const useGuardEvents: () => Partial<GuardEvents>;
@@ -3312,9 +3408,11 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3312
3408
  MFA = 1635,
3313
3409
  ABORT_FLOW = 1699,
3314
3410
  COMPLETE_INFO = 1642,
3411
+ UNLOCK = 1643,
3315
3412
  FLOW_END = 1600,
3316
3413
  FIRST_LOGIN_PASSWORD = 1639,
3317
- FORCED_PASSWORD_RESET = 2058
3414
+ FORCED_PASSWORD_RESET = 2058,
3415
+ ACCOUNT_MERGE = 10000
3318
3416
  }
3319
3417
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
3320
3418
 
@@ -3400,6 +3498,7 @@ declare module '@authing/react-ui-components/components/index' {
3400
3498
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
3401
3499
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
3402
3500
  export * from '@authing/react-ui-components/components/AuthingGuard/index';
3501
+ export * from '@authing/react-ui-components/components/SingleComponent/index';
3403
3502
  export * from '@authing/react-ui-components/components/Guard/index';
3404
3503
  export * from '@authing/react-ui-components/components/Type/index';
3405
3504
  export * from '@authing/react-ui-components/components/version/index';
@@ -3411,7 +3510,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3411
3510
 
3412
3511
  }
3413
3512
  declare module '@authing/react-ui-components/components/version/version' {
3414
- const _default: "3.1.18-rc.3";
3513
+ const _default: "3.1.19-hep.1";
3415
3514
  export default _default;
3416
3515
 
3417
3516
  }