@authing/react-ui-components 3.1.12-rc.3 → 3.1.13-hep.0

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,69 @@
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
+ declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
48
+ import React from 'react';
49
+ import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
50
+ export const AuthClientProvider: React.FC<AuthClientContextProps>;
51
+ export const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
52
+
53
+ }
54
+ declare module '@authing/react-ui-components/components/AuthClientProvider/context' {
55
+ import { AuthenticationClient } from 'authing-js-sdk';
56
+ import React from 'react';
57
+ export interface AuthClientContextProps {
58
+ client: AuthenticationClient;
59
+ }
60
+ export const AuthClientContext: React.Context<AuthClientContextProps | undefined>;
61
+
62
+ }
63
+ declare module '@authing/react-ui-components/components/AuthClientProvider/index' {
64
+ export { AuthClientProvider, useGlobalAuthClient } from '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider';
65
+
66
+ }
1
67
  declare module '@authing/react-ui-components/components/AuthingDropdown/index' {
2
68
  import React, { FC } from 'react';
3
69
  import './style.less';
@@ -487,6 +553,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
487
553
  verifyCodeLength: number;
488
554
  websocket: string;
489
555
  welcomeMessage: any;
556
+ userPortal?: {
557
+ mergeAccount?: boolean;
558
+ };
490
559
  skipComplateFileds: boolean;
491
560
  }
492
561
  export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
@@ -1209,6 +1278,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
1209
1278
  }>;
1210
1279
  export const GuardLoginCompleteInfoView: React.FC;
1211
1280
  export const GuardRegisterCompleteInfoView: React.FC;
1281
+ export const GuardAccountMergeCompleteInfoView: React.FC;
1212
1282
 
1213
1283
  }
1214
1284
  declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
@@ -1221,19 +1291,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1221
1291
  onRegisterInfoCompleted?: (user: User, udfs: {
1222
1292
  definition: any;
1223
1293
  value: any;
1224
- }[], authClient: AuthenticationClient) => void;
1294
+ }[], authClient: AuthenticationClient, opts?: {
1295
+ phone?: string;
1296
+ canMergeUser?: boolean;
1297
+ }) => void;
1225
1298
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
1226
1299
  definition: any;
1227
1300
  value: any;
1228
1301
  }[], authClient: AuthenticationClient) => void;
1302
+ onAccountMergeCompleteInfo?: (user: User) => void;
1229
1303
  }
1230
1304
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
1231
1305
  config: Partial<CompleteInfoConfig>;
1232
1306
  }
1233
1307
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
1234
1308
  config: CompleteInfoConfig;
1235
- initData: any;
1236
- onLogin?: any;
1237
1309
  }
1238
1310
  export type ExtendsFieldType = 'user' | 'internal';
1239
1311
  export interface ExtendsField {
@@ -1266,6 +1338,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1266
1338
  name: string;
1267
1339
  required: boolean;
1268
1340
  validateRules: CompleteInfoRule[];
1341
+ checkUnique?: boolean;
1269
1342
  options?: CompleteInfoSelectOption[];
1270
1343
  }
1271
1344
  export enum CompleteInfoBaseControls {
@@ -1469,12 +1542,19 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
1469
1542
  declare module '@authing/react-ui-components/components/Guard/authClient' {
1470
1543
  import { AuthenticationClient } from 'authing-js-sdk';
1471
1544
  import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1472
- export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, websocketHost: string, tenantId?: string | undefined) => AuthenticationClient;
1545
+ export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
1546
+ export const useInitGuardAuthClient: (props: {
1547
+ config?: GuardLocalConfig | undefined;
1548
+ appId: string;
1549
+ setError?: any;
1550
+ tenantId?: string | undefined;
1551
+ }) => AuthenticationClient | undefined;
1473
1552
  export const getGuardAuthClient: () => AuthenticationClient;
1474
1553
  export const useGuardAuthClient: () => AuthenticationClient;
1475
1554
 
1476
1555
  }
1477
1556
  declare module '@authing/react-ui-components/components/Guard/config' {
1557
+ import { AuthenticationClient } from 'authing-js-sdk';
1478
1558
  import { ReactNode } from 'react';
1479
1559
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
1480
1560
  import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
@@ -1500,6 +1580,7 @@ declare module '@authing/react-ui-components/components/Guard/config' {
1500
1580
  */
1501
1581
  openEventsMapping?: boolean;
1502
1582
  _qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
1583
+ authClient?: AuthenticationClient;
1503
1584
  }
1504
1585
  export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
1505
1586
 
@@ -1588,10 +1669,12 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1588
1669
  ANY_QUESTIONS = "anyQuestions",
1589
1670
  LOGIN_COMPLETE_INFO = "loginCompleteInfo",
1590
1671
  REGISTER_COMPLETE_INFO = "registerCompleteInfo",
1672
+ CUSTOM_COMPLETE_INFO = "customCompleteInfo",
1591
1673
  RECOVERY_CODE = "recoveryCode",
1592
1674
  SUBMIT_SUCCESS = "submitSuccess",
1593
1675
  IDENTITY_BINDING_ASK = "identityBindingAsk",
1594
- IDENTITY_BINDING = "identityBinding"
1676
+ IDENTITY_BINDING = "identityBinding",
1677
+ ACCOUNT_MERGE = "accountMerge"
1595
1678
  }
1596
1679
  export interface GuardModuleAction {
1597
1680
  action: string;
@@ -2249,6 +2332,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
2249
2332
  nickme?: string;
2250
2333
  username?: string;
2251
2334
  current?: MFAType;
2335
+ thirdPartyOrigin?: boolean;
2252
2336
  }
2253
2337
  export interface GuardMFAProps extends IG2FCProps, MFAEvents {
2254
2338
  config: Partial<MFAConfig>;
@@ -2562,8 +2646,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
2562
2646
  export interface IG2Config {
2563
2647
  title?: string;
2564
2648
  logo?: string;
2565
- lang: Lang;
2566
- langRange: Lang[];
2649
+ lang: string;
2650
+ langRange: string[];
2567
2651
  host: string;
2568
2652
  isHost?: boolean;
2569
2653
  mode: GuardMode;
@@ -2708,6 +2792,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2708
2792
  loadingComponent?: import("react").ReactNode;
2709
2793
  openEventsMapping?: boolean | undefined;
2710
2794
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2795
+ authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
2711
2796
  disableRegister?: boolean | undefined;
2712
2797
  registerMethods?: RegisterMethods[] | undefined;
2713
2798
  defaultRegisterMethod?: RegisterMethods | undefined;
@@ -2717,8 +2802,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2717
2802
  registerContext?: any;
2718
2803
  title?: string | undefined;
2719
2804
  logo?: string | undefined;
2720
- lang: import("@authing/react-ui-components/components/index").Lang;
2721
- langRange: import("@authing/react-ui-components/components/index").Lang[];
2805
+ lang: string;
2806
+ langRange: string[];
2722
2807
  isHost?: boolean | undefined;
2723
2808
  mode: import("@authing/react-ui-components/components/index").GuardMode;
2724
2809
  clickCloseable: boolean;
@@ -3079,7 +3164,7 @@ declare module '@authing/react-ui-components/components/_utils/locales/index' {
3079
3164
  import i18n from 'i18next';
3080
3165
  import { LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
3081
3166
  export const changeLang: (lang: Lang) => void;
3082
- const initI18n: (localesConfig?: LocalesConfig, lang?: "zh-CN" | "en-US" | undefined) => void;
3167
+ const initI18n: (localesConfig?: LocalesConfig, lang?: string | undefined) => void;
3083
3168
  export { i18n, initI18n };
3084
3169
 
3085
3170
  }
@@ -3151,7 +3236,8 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3151
3236
  COMPLETE_INFO = 1642,
3152
3237
  FLOW_END = 1600,
3153
3238
  FIRST_LOGIN_PASSWORD = 1639,
3154
- FORCED_PASSWORD_RESET = 2058
3239
+ FORCED_PASSWORD_RESET = 2058,
3240
+ ACCOUNT_MERGE = 10000
3155
3241
  }
3156
3242
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
3157
3243
 
@@ -3233,10 +3319,11 @@ declare module '@authing/react-ui-components/components/context/module/context'
3233
3319
  declare module '@authing/react-ui-components/components/index' {
3234
3320
  export * from '@authing/react-ui-components/components/_utils/config/index';
3235
3321
  export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
3236
- export type { AuthenticationClientOptions } from 'authing-js-sdk';
3322
+ export * from '@authing/react-ui-components/components/AuthClientProvider/index';
3237
3323
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
3238
3324
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
3239
3325
  export * from '@authing/react-ui-components/components/AuthingGuard/index';
3326
+ export * from '@authing/react-ui-components/components/SingleComponent/index';
3240
3327
  export * from '@authing/react-ui-components/components/Guard/index';
3241
3328
  export * from '@authing/react-ui-components/components/Type/index';
3242
3329
  export * from '@authing/react-ui-components/components/version/index';
@@ -3248,7 +3335,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3248
3335
 
3249
3336
  }
3250
3337
  declare module '@authing/react-ui-components/components/version/version' {
3251
- const _default: "3.1.12-rc.3";
3338
+ const _default: "3.1.13-hep.0";
3252
3339
  export default _default;
3253
3340
 
3254
3341
  }