@authing/react-ui-components 4.4.5-hep.0 → 4.4.6-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.4.5-hep.0",
3
+ "version": "4.4.6-alpha.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
+ }
@@ -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 {};
@@ -9,4 +9,3 @@ 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,21 +7,19 @@ export interface CompleteInfoEvents extends IG2Events {
7
7
  onRegisterInfoCompleted?: (user: User, udfs: {
8
8
  key: any;
9
9
  value: any;
10
- }[], authClient: AuthenticationClient, opts?: {
11
- phone?: string;
12
- canMergeUser?: boolean;
13
- }) => void;
10
+ }[], authClient: AuthenticationClient) => void;
14
11
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
15
12
  key: any;
16
13
  value: any;
17
14
  }[], authClient: AuthenticationClient) => void;
18
- onAccountMergeCompleteInfo?: (user: User) => void;
19
15
  }
20
16
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
21
17
  config: Partial<CompleteInfoConfig>;
22
18
  }
23
19
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
24
20
  config: CompleteInfoConfig;
21
+ initData: any;
22
+ onLogin?: any;
25
23
  }
26
24
  export declare type ExtendsFieldType = 'user' | 'internal';
27
25
  export interface ExtendsField {
@@ -57,7 +55,6 @@ export interface CompleteInfoMetaData {
57
55
  name: string;
58
56
  required: boolean;
59
57
  validateRules: CompleteInfoRule[];
60
- checkUnique?: boolean;
61
58
  options?: CompleteInfoSelectOption[];
62
59
  }
63
60
  export declare enum CompleteInfoBaseControls {
@@ -76,8 +73,7 @@ export declare enum CompleteInfoExtendsControls {
76
73
  STRING = "string",
77
74
  TEXT = "text",
78
75
  GENDER = "gender",
79
- COUNTRY = "country",
80
- TREE = "tree"
76
+ COUNTRY = "country"
81
77
  }
82
78
  export interface CompleteInfoInitData {
83
79
  skip: boolean;
@@ -25,10 +25,7 @@ export declare enum GuardModuleType {
25
25
  /** 多租户门户选择页 */
26
26
  TENANT_PORTAL = "tenant-portal",
27
27
  New_SUBMIT_SUCCESS = "newSubmitSuccess",
28
- RESET_ACCOUNT_NAME = "resetAccountName",
29
- /** 高教社特殊节点 */
30
- CUSTOM_COMPLETE_INFO = "customCompleteInfo",
31
- ACCOUNT_MERGE = "accountMerge"
28
+ RESET_ACCOUNT_NAME = "resetAccountName"
32
29
  }
33
30
  export interface GuardModuleAction {
34
31
  action: string;
@@ -291,9 +291,6 @@ export interface ApplicationConfig {
291
291
  verifyCodeLength: number;
292
292
  websocket: string;
293
293
  welcomeMessage: any;
294
- userPortal?: {
295
- mergeAccount?: boolean;
296
- };
297
294
  skipComplateFileds: boolean;
298
295
  selfUnlockStrategy: 'captcha' | 'password-captcha';
299
296
  defaultLanguageConfig: Lang;
@@ -16,7 +16,6 @@ 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,
20
19
  UNSAFE_PASSWORD_TIP = 2061,
21
20
  UNSAFE_PASSWORD_RESET = 2071,
22
21
  FLOW_SELECT_ACCOUNT = 2921,
@@ -1,2 +1,2 @@
1
- declare const _default: "4.4.5-hep.0";
1
+ declare const _default: "4.4.6-alpha.0";
2
2
  export default _default;
@@ -1,5 +0,0 @@
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>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './styles.less';
3
- export declare const GuardAccountMergeView: React.FC;
@@ -1,27 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { User } from 'authing-js-sdk';
2
- export declare const getDisplayName: (user: User) => string;
3
- export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -1,11 +0,0 @@
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;