@authing/react18-ui-components 4.1.0 → 4.2.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.
Files changed (50) hide show
  1. package/lib/index.min.css +2 -2
  2. package/lib/index.min.js +1 -1
  3. package/lib/index.min.js.LICENSE.txt +78 -59
  4. package/package.json +1 -1
  5. package/types/BindTotp/businessRequest.d.ts +1 -1
  6. package/types/ChangePassword/businessRequest.d.ts +1 -1
  7. package/types/CompleteInfo/businessRequest.d.ts +2 -2
  8. package/types/CompleteInfo/interface.d.ts +3 -2
  9. package/types/ForgetPassword/InputPassword/index.d.ts +3 -0
  10. package/types/ForgetPassword/core/inputIdentify.d.ts +7 -0
  11. package/types/ForgetPassword/core/resetPassword.d.ts +5 -1
  12. package/types/Guard/GuardModule/stateMachine.d.ts +2 -2
  13. package/types/Guard/core/hooks/useMultipleAccounts.d.ts +4 -2
  14. package/types/Guard/core/renderModule.d.ts +1 -1
  15. package/types/Guard/module.d.ts +6 -2
  16. package/types/GuardFace/index.d.ts +16 -0
  17. package/types/GuardSelect/index.d.ts +29 -0
  18. package/types/IdentityBinding/businessRequest.d.ts +2 -2
  19. package/types/ImagePro/index.d.ts +1 -0
  20. package/types/Login/core/withPassword/FormItemAccount.d.ts +1 -2
  21. package/types/Login/core/withPassword/InputAccount.d.ts +2 -2
  22. package/types/Login/core/withPassword/index.d.ts +2 -2
  23. package/types/Login/hooks/useLoginMultiple.d.ts +1 -0
  24. package/types/Login/interface.d.ts +2 -2
  25. package/types/MFA/businessRequest.d.ts +1 -1
  26. package/types/MFA/interface.d.ts +4 -1
  27. package/types/NewSubmitSuccess/index.d.ts +2 -0
  28. package/types/NewSubmitSuccess/interface.d.ts +17 -0
  29. package/types/Qrcode/UiQrCode.d.ts +1 -1
  30. package/types/Qrcode/WorkQrCode.d.ts +1 -1
  31. package/types/Qrcode/hooks/usePreQrCode.d.ts +2 -2
  32. package/types/Qrcode/index.d.ts +1 -1
  33. package/types/RecoveryCode/businessRequest.d.ts +1 -1
  34. package/types/Register/core/WithEmail.d.ts +2 -0
  35. package/types/Register/interface.d.ts +2 -2
  36. package/types/SelectAccount/index.d.ts +2 -0
  37. package/types/TenantPortalSelect/index.d.ts +15 -0
  38. package/types/Type/application.d.ts +49 -11
  39. package/types/Type/index.d.ts +5 -5
  40. package/types/ValidatorRules/ValidatorFormItem.d.ts +3 -0
  41. package/types/ValidatorRules/index.d.ts +4 -3
  42. package/types/_utils/GuardErrorCode.d.ts +1 -1
  43. package/types/_utils/config/index.d.ts +4 -4
  44. package/types/_utils/context.d.ts +12 -1
  45. package/types/_utils/hooks/index.d.ts +1 -1
  46. package/types/_utils/index.d.ts +9 -4
  47. package/types/_utils/logger/interface.d.ts +1 -1
  48. package/types/_utils/responseManagement/interface.d.ts +5 -3
  49. package/types/_utils/tenant.d.ts +19 -0
  50. package/types/version/version.d.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
6
 
7
7
  /*!
8
8
  Copyright (c) 2018 Jed Watson.
@@ -49,80 +49,80 @@
49
49
  /*! shallow-equal */
50
50
 
51
51
  /*!**********************!*\
52
- !*** ./src/index.ts ***!
53
- \**********************/
52
+ !*** ./src/index.ts ***!
53
+ \**********************/
54
54
 
55
55
  /*!************************!*\
56
- !*** ./src/Context.ts ***!
57
- \************************/
56
+ !*** ./src/Context.ts ***!
57
+ \************************/
58
58
 
59
59
  /*!************************!*\
60
- !*** ./src/toQuery.ts ***!
61
- \************************/
60
+ !*** ./src/toQuery.ts ***!
61
+ \************************/
62
62
 
63
63
  /*!**************************!*\
64
- !*** ./src/Component.ts ***!
65
- \**************************/
64
+ !*** ./src/Component.ts ***!
65
+ \**************************/
66
66
 
67
67
  /*!***************************!*\
68
- !*** ./src/mediaQuery.ts ***!
69
- \***************************/
68
+ !*** ./src/mediaQuery.ts ***!
69
+ \***************************/
70
70
 
71
71
  /*!******************************!*\
72
- !*** ./src/useMediaQuery.ts ***!
73
- \******************************/
72
+ !*** ./src/useMediaQuery.ts ***!
73
+ \******************************/
74
74
 
75
75
  /*!****************************************!*\
76
- !*** ./node_modules/react-is/index.js ***!
77
- \****************************************/
76
+ !*** ./node_modules/react-is/index.js ***!
77
+ \****************************************/
78
78
 
79
79
  /*!******************************************!*\
80
- !*** ./node_modules/prop-types/index.js ***!
81
- \******************************************/
80
+ !*** ./node_modules/prop-types/index.js ***!
81
+ \******************************************/
82
82
 
83
83
  /*!********************************************!*\
84
- !*** ./node_modules/prop-types/lib/has.js ***!
85
- \********************************************/
84
+ !*** ./node_modules/prop-types/lib/has.js ***!
85
+ \********************************************/
86
86
 
87
87
  /*!*********************************************!*\
88
- !*** ./node_modules/object-assign/index.js ***!
89
- \*********************************************/
88
+ !*** ./node_modules/object-assign/index.js ***!
89
+ \*********************************************/
90
90
 
91
91
  /*!**********************************************!*\
92
- !*** ./node_modules/css-mediaquery/index.js ***!
93
- \**********************************************/
92
+ !*** ./node_modules/css-mediaquery/index.js ***!
93
+ \**********************************************/
94
94
 
95
95
  /*!***********************************************!*\
96
- !*** ./node_modules/matchmediaquery/index.js ***!
97
- \***********************************************/
96
+ !*** ./node_modules/matchmediaquery/index.js ***!
97
+ \***********************************************/
98
98
 
99
99
  /*!***************************************************!*\
100
- !*** ./node_modules/prop-types/checkPropTypes.js ***!
101
- \***************************************************/
100
+ !*** ./node_modules/prop-types/checkPropTypes.js ***!
101
+ \***************************************************/
102
102
 
103
103
  /*!****************************************************!*\
104
- !*** ./node_modules/hyphenate-style-name/index.js ***!
105
- \****************************************************/
104
+ !*** ./node_modules/hyphenate-style-name/index.js ***!
105
+ \****************************************************/
106
106
 
107
107
  /*!******************************************************!*\
108
- !*** ./node_modules/shallow-equal/dist/index.esm.js ***!
109
- \******************************************************/
108
+ !*** ./node_modules/shallow-equal/dist/index.esm.js ***!
109
+ \******************************************************/
110
110
 
111
111
  /*!***********************************************************!*\
112
- !*** ./node_modules/react-is/cjs/react-is.development.js ***!
113
- \***********************************************************/
112
+ !*** ./node_modules/react-is/cjs/react-is.development.js ***!
113
+ \***********************************************************/
114
114
 
115
115
  /*!************************************************************!*\
116
- !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
117
- \************************************************************/
116
+ !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
117
+ \************************************************************/
118
118
 
119
119
  /*!*************************************************************!*\
120
- !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
121
- \*************************************************************/
120
+ !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
121
+ \*************************************************************/
122
122
 
123
123
  /*!**************************************************************************************!*\
124
- !*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
125
- \**************************************************************************************/
124
+ !*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
125
+ \**************************************************************************************/
126
126
 
127
127
  /**
128
128
  * @license
@@ -134,13 +134,13 @@
134
134
  */
135
135
 
136
136
  /** @license React v16.13.1
137
- * react-is.development.js
138
- *
139
- * Copyright (c) Facebook, Inc. and its affiliates.
140
- *
141
- * This source code is licensed under the MIT license found in the
142
- * LICENSE file in the root directory of this source tree.
143
- */
137
+ * react-is.development.js
138
+ *
139
+ * Copyright (c) Facebook, Inc. and its affiliates.
140
+ *
141
+ * This source code is licensed under the MIT license found in the
142
+ * LICENSE file in the root directory of this source tree.
143
+ */
144
144
 
145
145
  /** @license React v16.13.1
146
146
  * react-is.production.min.js
@@ -152,19 +152,38 @@
152
152
  */
153
153
 
154
154
  /** @preserve
155
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
156
- * derived from CryptoJS.mode.CTR
157
- * Jan Hruby jhruby.web@gmail.com
158
- */
155
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
156
+ * derived from CryptoJS.mode.CTR
157
+ * Jan Hruby jhruby.web@gmail.com
158
+ */
159
159
 
160
160
  /** @preserve
161
- (c) 2012 by Cédric Mesnil. All rights reserved.
162
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
163
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
164
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
165
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
166
- */
161
+ (c) 2012 by Cédric Mesnil. All rights reserved.
162
+
163
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
164
+
165
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
166
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
167
+
168
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
169
+ */
170
+
171
+ //! author : Zeno Zeng : https://github.com/zenozeng
172
+
173
+ //! author : suupic : https://github.com/suupic
174
+
175
+ //! author : uu109 : https://github.com/uu109
176
+
177
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
178
+
179
+ //! license : MIT
180
+
181
+ //! locale : Chinese (China) [zh-cn]
167
182
 
168
183
  //! moment.js
169
184
 
170
185
  //! moment.js locale configuration
186
+
187
+ //! momentjs.com
188
+
189
+ //! version : 2.29.4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react18-ui-components",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -1,4 +1,4 @@
1
- export declare const enum BindTotpBusinessAction {
1
+ export declare enum BindTotpBusinessAction {
2
2
  VerifyTotpFirstTime = "verify-totp-first-time",
3
3
  ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare const enum ChangePasswordBusinessAction {
1
+ export declare enum ChangePasswordBusinessAction {
2
2
  ResetPassword = "reset-password-first-time",
3
3
  FirstLoginReset = "reset-password-forced",
4
4
  ResetPasswordStrengthDetection = "reset-password-strength-detection"
@@ -1,9 +1,9 @@
1
1
  import { User } from 'authing-js-sdk';
2
2
  import { CompleteInfoRequest, RegisterCompleteInfoInitData } from './interface';
3
- export declare const enum CompleteInfoAuthFlowAction {
3
+ export declare enum CompleteInfoAuthFlowAction {
4
4
  Complete = "complete-completion",
5
5
  Skip = "skip-completion"
6
6
  }
7
7
  export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
- export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>> | undefined;
8
+ export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
9
9
  export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
@@ -21,7 +21,7 @@ export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
21
21
  initData: any;
22
22
  onLogin?: any;
23
23
  }
24
- export declare type ExtendsFieldType = 'user' | 'internal';
24
+ export type ExtendsFieldType = 'user' | 'internal';
25
25
  export interface ExtendsField {
26
26
  type: ExtendsFieldType;
27
27
  name: string;
@@ -95,5 +95,6 @@ export interface CompleteInfoRequest {
95
95
  export declare enum OmitCompleteInfo {
96
96
  'registerByEmail' = "email",
97
97
  'registerByPhoneCode' = "phone",
98
- 'registerByEmailCode' = "email"
98
+ 'registerByEmailCode' = "email",
99
+ 'phone-password' = "phone"
99
100
  }
@@ -0,0 +1,3 @@
1
+ import { InputRef, PasswordProps } from 'antd/lib/input';
2
+ import React from 'react';
3
+ export declare const InputPasswordForget: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<InputRef>>;
@@ -0,0 +1,7 @@
1
+ import { InputProps } from 'antd/lib/input';
2
+ import React from 'react';
3
+ import { VerifyLoginMethods } from '../../Type/application';
4
+ export interface InputIdentifyProps extends InputProps {
5
+ methods: VerifyLoginMethods[];
6
+ }
7
+ export declare const InputIdentify: React.FC<InputIdentifyProps>;
@@ -3,8 +3,12 @@ export declare enum InputMethodMap {
3
3
  phone = "phone-code"
4
4
  }
5
5
  interface ResetPasswordProps {
6
- onReset: any;
7
6
  publicConfig: any;
7
+ setPhoneOrEmail: any;
8
+ setControlShow: any;
9
+ setPolicyStrength: any;
10
+ setCustomPasswordStrength: any;
11
+ setPhoneOrEmailText: any;
8
12
  }
9
13
  export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
10
14
  export {};
@@ -4,7 +4,7 @@ export interface ModuleState {
4
4
  moduleName: GuardModuleType;
5
5
  initData?: any;
6
6
  }
7
- export declare const enum ActionType {
7
+ export declare enum ActionType {
8
8
  ChangeModule = "ChangeModule",
9
9
  Back = "Back",
10
10
  Init = "Init"
@@ -14,7 +14,7 @@ export interface StateMachineLog {
14
14
  date: number;
15
15
  dataSource: ModuleState;
16
16
  }
17
- export declare type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
17
+ export type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
18
18
  export declare class GuardStateMachine {
19
19
  private order;
20
20
  private config;
@@ -13,7 +13,7 @@ export declare const QR_CODE_WAY: LoginWay[];
13
13
  * 登录时所有支持的登录列表(前端定义列表)
14
14
  * 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
15
15
  */
16
- export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone';
16
+ export type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone';
17
17
  /**
18
18
  * when: 多账号页面跳转进入登录页面
19
19
  * 携带的回填数据信息
@@ -27,7 +27,7 @@ export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickn
27
27
  /**
28
28
  * Store instance
29
29
  */
30
- export declare type StoreInstance = ReturnType<MultipleAccount['getStore']>;
30
+ export type StoreInstance = ReturnType<MultipleAccount['getStore']>;
31
31
  /**
32
32
  * 当前 userId 对应的类型
33
33
  */
@@ -248,6 +248,7 @@ declare class MultipleAccount {
248
248
  }) => void;
249
249
  setUserInfo: (user: Omit<User & {
250
250
  id: string;
251
+ loginAccount?: string | undefined;
251
252
  }, "tab" | "way" | "phoneCountryCode">) => void;
252
253
  setLoginWayByHttpData: (account: string, data: {
253
254
  username?: string | undefined;
@@ -290,6 +291,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
290
291
  }) => void;
291
292
  setUserInfo: (user: Omit<User & {
292
293
  id: string;
294
+ loginAccount?: string | undefined;
293
295
  }, "tab" | "way" | "phoneCountryCode">) => void;
294
296
  setLoginWayByHttpData: (account: string, data: {
295
297
  username?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { GuardProps } from '..';
3
3
  import '../styles.less';
4
- export declare const enum LangMAP {
4
+ export declare enum LangMAP {
5
5
  zhCn = "zh-CN",
6
6
  enUs = "en-US",
7
7
  jaJp = "ja-JP"
@@ -1,4 +1,4 @@
1
- export declare const enum GuardModuleType {
1
+ export declare enum GuardModuleType {
2
2
  ERROR = "error",
3
3
  LOGIN = "login",
4
4
  REGISTER = "register",
@@ -18,7 +18,11 @@ export declare const enum GuardModuleType {
18
18
  SUBMIT_SUCCESS = "submitSuccess",
19
19
  IDENTITY_BINDING_ASK = "identityBindingAsk",
20
20
  IDENTITY_BINDING = "identityBinding",
21
- SELF_UNLOCK = "selfUnlock"
21
+ SELF_UNLOCK = "selfUnlock",
22
+ FLOW_SELECT_ACCOUNT = "flowSelectAccount",
23
+ /** 多租户门户选择页 */
24
+ TENANT_PORTAL = "tenant-portal",
25
+ New_SUBMIT_SUCCESS = "newSubmitSuccess"
22
26
  }
23
27
  export interface GuardModuleAction {
24
28
  action: string;
@@ -0,0 +1,16 @@
1
+ import './styles.less';
2
+ import { AvatarProps } from 'antd/lib/avatar';
3
+ import { TagProps } from 'antd/lib/tag';
4
+ import React from 'react';
5
+ export interface GuardFaceProps {
6
+ /** 顶部 avatar 头像展示 */
7
+ avatar: AvatarProps | string;
8
+ /** 标题头部 */
9
+ title: React.ReactNode;
10
+ /** 标题描述 */
11
+ description?: React.ReactNode;
12
+ /** 标签功能 */
13
+ tags?: TagProps[];
14
+ }
15
+ /** 顶部通用区域封装,同时兼容样式的层叠和功能的自定义 */
16
+ export declare const GuardFace: (props: GuardFaceProps) => JSX.Element;
@@ -0,0 +1,29 @@
1
+ import './styles.less';
2
+ import { AvatarProps } from 'antd/lib/avatar';
3
+ import { ListItemProps, ListProps } from 'antd/lib/list';
4
+ import React, { CSSProperties } from 'react';
5
+ export interface GuardSelectItem {
6
+ /** avatar 头像展示 */
7
+ avatar?: AvatarProps | string;
8
+ /** 标题 */
9
+ title?: React.ReactNode;
10
+ /** 描述 */
11
+ description?: React.ReactNode;
12
+ /** 右侧操作组 */
13
+ actions?: ListItemProps['actions'];
14
+ /** 右侧额外的渲染内容 */
15
+ extra?: ListItemProps['extra'];
16
+ /** 数据项子内容,便于自定义 */
17
+ children?: React.ReactNode;
18
+ /** 其他元字段 */
19
+ [key: string]: any;
20
+ }
21
+ export interface GuardSelectProps<T = any> extends ListProps<any> {
22
+ /**数据项之间的间隙,默认`20px` */
23
+ gap?: CSSProperties['marginBottom'];
24
+ /** 数据源 */
25
+ dataSource: T[];
26
+ onSelect?: (item?: T, index?: number) => void;
27
+ }
28
+ /** 选择列表组件 兼容绝大多数选择场景 */
29
+ export declare const GuardSelect: <D extends GuardSelectItem = any>(props: GuardSelectProps<D>) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const enum IdentityBindingBusinessAction {
1
+ export declare enum IdentityBindingBusinessAction {
2
2
  PhoneCode = "phone-code",
3
3
  EmailCode = "emial-code",
4
4
  Password = "password"
@@ -17,7 +17,7 @@ export interface PasswordParams {
17
17
  password: string;
18
18
  captchaCode: string;
19
19
  }
20
- export declare const enum IdentityBindingAction {
20
+ export declare enum IdentityBindingAction {
21
21
  CreateUser = "create-federation-account",
22
22
  BindByPassword = "bind-identity-by-password",
23
23
  BindByPhoneCode = "bind-identity-by-phone-code",
@@ -12,3 +12,4 @@ export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement>
12
12
  noSpin?: boolean;
13
13
  }
14
14
  export declare const ImagePro: (props: ImageProProps) => JSX.Element;
15
+ export declare const ImagePro2: (props: ImageProProps) => JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { FormItemProps } from 'antd/lib/form';
2
2
  import React from 'react';
3
- import { PasswordLoginMethods } from '../../../Type/application';
4
3
  export interface FormItemAccountProps extends FormItemProps {
5
- passwordLoginMethods: PasswordLoginMethods[];
4
+ validPasswordLoginMethods: string[];
6
5
  }
7
6
  export declare const FormItemAccount: React.FC<FormItemAccountProps>;
@@ -1,7 +1,7 @@
1
1
  import { InputProps } from 'antd/lib/input';
2
2
  import React from 'react';
3
- import { PasswordLoginMethods } from '../../../Type/application';
4
3
  export interface InputAccountProps extends InputProps {
5
- passwordLoginMethods: PasswordLoginMethods[];
4
+ passwordLoginMethods: string[];
5
+ placeholder: string;
6
6
  }
7
7
  export declare const InputAccount: React.FC<InputAccountProps>;
@@ -1,5 +1,5 @@
1
1
  import { AuthingResponse } from '../../../_utils/http';
2
- import { Agreement, LoginMethods, PasswordLoginMethods } from '../../../Type/application';
2
+ import { Agreement, LoginMethods } from '../../../Type/application';
3
3
  import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
4
4
  interface LoginWithPasswordProps {
5
5
  publicKey: string;
@@ -9,7 +9,7 @@ interface LoginWithPasswordProps {
9
9
  onLoginSuccess?: any;
10
10
  onLoginFailed?: any;
11
11
  onLoginRequest?: (loginInfo: any) => Promise<AuthingResponse>;
12
- passwordLoginMethods: PasswordLoginMethods[];
12
+ passwordLoginMethods: string[];
13
13
  agreements: Agreement[];
14
14
  loginWay?: LoginMethods;
15
15
  submitButText?: string;
@@ -34,6 +34,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
34
34
  } | undefined) => void;
35
35
  setUserInfo: (user: Omit<import("../../Guard/core/hooks/useMultipleAccounts").User & {
36
36
  id: string;
37
+ loginAccount?: string | undefined;
37
38
  }, "tab" | "way" | "phoneCountryCode">) => void;
38
39
  setLoginWayByHttpData: (account: string, data: {
39
40
  username?: string | undefined;
@@ -1,14 +1,14 @@
1
1
  import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
2
2
  import { AuthenticationClient, User } from 'authing-js-sdk';
3
3
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
4
- import { Agreement, LoginMethods, PasswordLoginMethods, SocialConnectionProvider } from '../Type/application';
4
+ import { Agreement, LoginMethods, SocialConnectionProvider } from '../Type/application';
5
5
  export interface LoginConfig extends IG2Config {
6
6
  autoRegister?: boolean;
7
7
  disableResetPwd?: boolean;
8
8
  disableRegister?: boolean;
9
9
  defaultLoginMethod?: LoginMethods;
10
10
  loginMethods?: LoginMethods[];
11
- passwordLoginMethods?: PasswordLoginMethods[];
11
+ passwordLoginMethods?: string[];
12
12
  socialConnections?: SocialConnectionProvider[];
13
13
  socialConnectionsBtnShape?: 'default' | 'button' | 'icon';
14
14
  enterpriseConnections?: string[];
@@ -1,4 +1,4 @@
1
- export declare const enum MfaBusinessAction {
1
+ export declare enum MfaBusinessAction {
2
2
  VerifyEmail = "verify-email",
3
3
  VerifySms = "verify-sms",
4
4
  VerifyTotp = "verify-totp",
@@ -7,7 +7,7 @@ export declare const getDefaultMFAConfig: () => MFAConfig;
7
7
  export interface MFAEvents extends IG2Events {
8
8
  onLogin?: (user: User, authClient: AuthenticationClient) => void;
9
9
  }
10
- export declare const enum MFAType {
10
+ export declare enum MFAType {
11
11
  SMS = "SMS",
12
12
  EMAIL = "EMAIL",
13
13
  TOTP = "OTP",
@@ -29,6 +29,9 @@ export interface GuardMFAInitData {
29
29
  nickme?: string;
30
30
  username?: string;
31
31
  current?: MFAType;
32
+ mfaPhoneCountryCode?: string;
33
+ mfaPhone?: string;
34
+ mfaEmail?: string;
32
35
  }
33
36
  export interface GuardMFAProps extends IG2FCProps, MFAEvents {
34
37
  config: Partial<MFAConfig>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const GuardNewSubmitSuccessView: React.FC;
@@ -0,0 +1,17 @@
1
+ import { GuardModuleType } from '../Guard';
2
+ import { IG2Config, IG2Events, IG2FCViewProps } from '../Type';
3
+ export interface SubmitSuccessEvents extends IG2Events {
4
+ }
5
+ export interface SubmitSuccessConfig extends IG2Config {
6
+ }
7
+ export interface SubmitSuccessInitData {
8
+ title?: string;
9
+ message?: string;
10
+ text?: string;
11
+ countDesc?: string;
12
+ changeModule?: GuardModuleType;
13
+ }
14
+ export interface GuardNewSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
15
+ config: SubmitSuccessConfig;
16
+ initData?: SubmitSuccessInitData;
17
+ }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  import { CodeStatusDescriptions } from './WorkQrCode';
4
- export declare type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
4
+ export type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
5
5
  export declare const prefix: string;
6
6
  export interface UiQrProps {
7
7
  /**
@@ -4,7 +4,7 @@ import { CodeStatus, UiQrProps } from './UiQrCode';
4
4
  /**
5
5
  * 二维码不同状态下的底部描述文字
6
6
  */
7
- export declare type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
7
+ export type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
8
8
  export interface WorkQrCodeRef {
9
9
  referQrCode: () => Promise<{
10
10
  random: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CodeStatus } from '../UiQrCode';
3
- export declare type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
4
- export declare type RootState = {
3
+ export type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
4
+ export type RootState = {
5
5
  /**
6
6
  * 状态
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { UiQrCode } from './UiQrCode';
2
2
  import { WorkQrCode } from './WorkQrCode';
3
- declare type IQrCode = typeof WorkQrCode & {
3
+ type IQrCode = typeof WorkQrCode & {
4
4
  UI: typeof UiQrCode;
5
5
  };
6
6
  declare const QrCode: IQrCode;
@@ -1,4 +1,4 @@
1
- export declare const enum TotpRecoveryCodeBusinessAction {
1
+ export declare enum TotpRecoveryCodeBusinessAction {
2
2
  RecoveryTotp = "recovery-totp",
3
3
  ConfirmTotpRecoveryCode = "confirm-totp-recovery-code"
4
4
  }
@@ -7,5 +7,7 @@ export interface RegisterWithEmailProps {
7
7
  publicConfig?: ApplicationConfig;
8
8
  agreements: Agreement[];
9
9
  registeContext?: any;
10
+ label?: string;
11
+ method?: string;
10
12
  }
11
13
  export declare const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
@@ -3,8 +3,8 @@ import { IG2FCProps, IG2Config, IG2Events } from '../Type';
3
3
  import { Agreement, RegisterMethods } from '../Type/application';
4
4
  export interface RegisterConfig extends IG2Config {
5
5
  disableRegister?: boolean;
6
- registerMethods?: RegisterMethods[];
7
- defaultRegisterMethod?: RegisterMethods;
6
+ registerMethods?: string[];
7
+ defaultRegisterMethod?: string;
8
8
  publicKey?: string;
9
9
  agreementEnabled?: boolean;
10
10
  agreements?: Agreement[];
@@ -0,0 +1,2 @@
1
+ import './style.less';
2
+ export declare const GuardSelectAccountView: () => JSX.Element;