@authing/react-ui-components 4.4.5 → 4.4.6-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.
@@ -5,15 +5,9 @@
5
5
  */
6
6
 
7
7
  /*!
8
- Copyright (c) 2017 Jed Watson.
9
- Licensed under the MIT License (MIT), see
10
- http://jedwatson.github.io/classnames
11
- */
12
-
13
- /*!
14
- Copyright (c) 2018 Jed Watson.
15
- Licensed under the MIT License (MIT), see
16
- http://jedwatson.github.io/classnames
8
+ Copyright (c) 2018 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/classnames
17
11
  */
18
12
 
19
13
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.4.5",
3
+ "version": "4.4.6-hep.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -237,4 +237,4 @@
237
237
  "webpack-manifest-plugin": "2.2.0",
238
238
  "workbox-webpack-plugin": "5.1.4"
239
239
  }
240
- }
240
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { UserRadioItemProps, UserRadioProps } from './interface';
3
+ import './styles.less';
4
+ export declare const UserRadioItem: React.FC<UserRadioItemProps>;
5
+ export declare const UserRadio: React.FC<UserRadioProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './styles.less';
3
+ export declare const GuardAccountMergeView: React.FC;
@@ -0,0 +1,27 @@
1
+ export interface BriefUserInfo {
2
+ displayName: string;
3
+ avatar: string;
4
+ phone: string;
5
+ email: string;
6
+ username: string;
7
+ name: string;
8
+ }
9
+ export interface GuardAccountMergeInitData {
10
+ currentUserInfo: BriefUserInfo;
11
+ existingUserInfo: BriefUserInfo;
12
+ mergeToken?: string;
13
+ }
14
+ export interface UserRadioProps {
15
+ currentUserInfo: BriefUserInfo;
16
+ existingUserInfo: BriefUserInfo;
17
+ onChange?: (value: any) => void;
18
+ value?: any;
19
+ }
20
+ export interface UserRadioItemProps extends BriefUserInfo {
21
+ value: boolean;
22
+ selected: boolean;
23
+ onClick: (value: boolean) => void;
24
+ }
25
+ export declare enum AuthFlowAction {
26
+ MERGE = "confirm-account-merge"
27
+ }
@@ -0,0 +1,3 @@
1
+ import { User } from 'authing-js-sdk';
2
+ export declare const getDisplayName: (user: User) => string;
3
+ export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -6,4 +6,5 @@ export declare enum ChangePasswordBusinessAction {
6
6
  export declare const authFlow: (action: ChangePasswordBusinessAction, content: {
7
7
  password: string;
8
8
  oldPassword?: string;
9
+ code?: string;
9
10
  }) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface SendPhoneCodeProps {
3
+ publicConfig: any;
4
+ }
5
+ export declare const SendPhoneCode: (props: SendPhoneCodeProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare type OptionType = {
3
+ id: string;
4
+ name: string;
5
+ children: OptionType[];
6
+ };
7
+ interface TreeSelectProps {
8
+ options: OptionType[];
9
+ }
10
+ declare const TreeSelect: React.FC<TreeSelectProps>;
11
+ export default TreeSelect;
@@ -9,3 +9,4 @@ export declare const GuardCompleteInfo: React.FC<{
9
9
  }>;
10
10
  export declare const GuardLoginCompleteInfoView: React.FC;
11
11
  export declare const GuardRegisterCompleteInfoView: React.FC;
12
+ export declare const GuardAccountMergeCompleteInfoView: React.FC;
@@ -7,19 +7,21 @@ export interface CompleteInfoEvents extends IG2Events {
7
7
  onRegisterInfoCompleted?: (user: User, udfs: {
8
8
  key: any;
9
9
  value: any;
10
- }[], authClient: AuthenticationClient) => void;
10
+ }[], authClient: AuthenticationClient, opts?: {
11
+ phone?: string;
12
+ canMergeUser?: boolean;
13
+ }) => void;
11
14
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
12
15
  key: any;
13
16
  value: any;
14
17
  }[], authClient: AuthenticationClient) => void;
18
+ onAccountMergeCompleteInfo?: (user: User) => void;
15
19
  }
16
20
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
17
21
  config: Partial<CompleteInfoConfig>;
18
22
  }
19
23
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
20
24
  config: CompleteInfoConfig;
21
- initData: any;
22
- onLogin?: any;
23
25
  }
24
26
  export declare type ExtendsFieldType = 'user' | 'internal';
25
27
  export interface ExtendsField {
@@ -55,6 +57,7 @@ export interface CompleteInfoMetaData {
55
57
  name: string;
56
58
  required: boolean;
57
59
  validateRules: CompleteInfoRule[];
60
+ checkUnique?: boolean;
58
61
  options?: CompleteInfoSelectOption[];
59
62
  }
60
63
  export declare enum CompleteInfoBaseControls {
@@ -73,7 +76,8 @@ export declare enum CompleteInfoExtendsControls {
73
76
  STRING = "string",
74
77
  TEXT = "text",
75
78
  GENDER = "gender",
76
- COUNTRY = "country"
79
+ COUNTRY = "country",
80
+ TREE = "tree"
77
81
  }
78
82
  export interface CompleteInfoInitData {
79
83
  skip: boolean;
@@ -25,7 +25,10 @@ export declare enum GuardModuleType {
25
25
  /** 多租户门户选择页 */
26
26
  TENANT_PORTAL = "tenant-portal",
27
27
  New_SUBMIT_SUCCESS = "newSubmitSuccess",
28
- RESET_ACCOUNT_NAME = "resetAccountName"
28
+ RESET_ACCOUNT_NAME = "resetAccountName",
29
+ /** 高教社特殊节点 */
30
+ CUSTOM_COMPLETE_INFO = "customCompleteInfo",
31
+ ACCOUNT_MERGE = "accountMerge"
29
32
  }
30
33
  export interface GuardModuleAction {
31
34
  action: string;
@@ -291,6 +291,9 @@ export interface ApplicationConfig {
291
291
  verifyCodeLength: number;
292
292
  websocket: string;
293
293
  welcomeMessage: any;
294
+ userPortal?: {
295
+ mergeAccount?: boolean;
296
+ };
294
297
  skipComplateFileds: boolean;
295
298
  selfUnlockStrategy: 'captcha' | 'password-captcha';
296
299
  defaultLanguageConfig: Lang;
@@ -16,6 +16,7 @@ export declare enum ApiCode {
16
16
  FLOW_END = 1600,
17
17
  FIRST_LOGIN_PASSWORD = 1639,
18
18
  FORCED_PASSWORD_RESET = 2058,
19
+ ACCOUNT_MERGE = 10000,
19
20
  UNSAFE_PASSWORD_TIP = 2061,
20
21
  UNSAFE_PASSWORD_RESET = 2071,
21
22
  FLOW_SELECT_ACCOUNT = 2921,
@@ -1,2 +1,2 @@
1
- declare const _default: "4.4.5";
1
+ declare const _default: "4.4.6-hep.0";
2
2
  export default _default;