@authing/react-ui-components 4.0.1-rc.3 → 4.0.2-rc.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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* 核心思路:登录成功时,保存的FE侧自定义 LoginWay
|
|
8
8
|
* 再次打开页面时,初始化时先根据 FE 自定义的 LoginWay 跳转到不同的 tab 下(way)下使用 account 进行回填。TODO: 这里也可优化,应该在登录成功时候就进行 LoginWay 的格式化,而非转来转去。(但是这样无法直观的体现是哪种方式进行登录)
|
|
9
|
-
*/
|
|
9
|
+
*/
|
|
10
10
|
import { SelectOptions } from '../../../Login/multipleAccounts/panel';
|
|
11
11
|
export declare const QR_CODE_WAY: LoginWay[];
|
|
12
12
|
/**
|
|
@@ -21,7 +21,7 @@ export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | '
|
|
|
21
21
|
export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickname' | 'username' | 'phone' | 'email' | 'photo' | '_updateTime'> {
|
|
22
22
|
/**
|
|
23
23
|
* 回填的账号名称 邮箱/用户名/手机
|
|
24
|
-
|
|
24
|
+
*/
|
|
25
25
|
account: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -91,7 +91,7 @@ export interface User {
|
|
|
91
91
|
declare class MultipleAccount {
|
|
92
92
|
/**
|
|
93
93
|
* 原始的登录账号
|
|
94
|
-
|
|
94
|
+
*/
|
|
95
95
|
private originAccount;
|
|
96
96
|
private originWay;
|
|
97
97
|
/**
|
|
@@ -107,8 +107,8 @@ declare class MultipleAccount {
|
|
|
107
107
|
*/
|
|
108
108
|
private firstBackFillData?;
|
|
109
109
|
/**
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
* server 返回支持的登录方式
|
|
111
|
+
*/
|
|
112
112
|
private serverSideLoginMethods;
|
|
113
113
|
/**
|
|
114
114
|
* 是否显示多账号登录页面
|
|
@@ -116,16 +116,16 @@ declare class MultipleAccount {
|
|
|
116
116
|
*/
|
|
117
117
|
private memberState;
|
|
118
118
|
/**
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
* 二维码登录时的ID
|
|
120
|
+
*/
|
|
121
121
|
private qrCodeId?;
|
|
122
122
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
* 国际化短信前缀 区号
|
|
124
|
+
*/
|
|
125
125
|
private phoneCountryCode?;
|
|
126
126
|
/**
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
* 国际化短信前缀 选中地区编号
|
|
128
|
+
*/
|
|
129
129
|
private areaCode?;
|
|
130
130
|
private tabStatus?;
|
|
131
131
|
/**
|
|
@@ -203,11 +203,11 @@ declare class MultipleAccount {
|
|
|
203
203
|
*/
|
|
204
204
|
private setLoginWayByHttpData;
|
|
205
205
|
/**
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
* 根据登录的 account 判断本次LDAP登录方式
|
|
207
|
+
* @param account 登录输入的账号
|
|
208
|
+
* @param param1 登录成功返回的相关信息 用户名/手机号/邮箱
|
|
209
|
+
* @returns
|
|
210
|
+
*/
|
|
211
211
|
private setLoginWayByLDAPData;
|
|
212
212
|
/**
|
|
213
213
|
* 根据用户 ID 删除 localStorage 中当前用户 ID
|
|
@@ -275,7 +275,7 @@ declare class MultipleAccount {
|
|
|
275
275
|
* MultipleAccounts 相关 Hook
|
|
276
276
|
* Finally Config 类型过滤
|
|
277
277
|
*/
|
|
278
|
-
declare const useMultipleAccounts: ({ appId, finallyConfig }: {
|
|
278
|
+
declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
|
|
279
279
|
appId?: string | undefined;
|
|
280
280
|
finallyConfig?: any;
|
|
281
281
|
}) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.
|
|
1
|
+
declare const _default: "4.0.2-rc.0";
|
|
2
2
|
export default _default;
|