@authing/react-ui-components 3.1.37-beta.4 → 3.1.37-beta.5
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 +16 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1577,6 +1577,15 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1577
1577
|
|
|
1578
1578
|
}
|
|
1579
1579
|
declare module '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts' {
|
|
1580
|
+
/**
|
|
1581
|
+
* 整体的思路:
|
|
1582
|
+
* 在所有登录方式中,当进行登录时保存登录方式(FE侧自定义)
|
|
1583
|
+
* 之后在登录成功(onLogin)中,触发store的方法保存用户信息以及对应的登录方式进入localStorage。
|
|
1584
|
+
* 当用户再次打开页面时,拿出数据进行对比。(主要对比 LoginWay ),TODO: 这里的代码主要显得乱的原因是因为枚举的不正当使用。(主要要和Server端进行互相映射,后续维护时可优化)
|
|
1585
|
+
*
|
|
1586
|
+
* 核心思路:登录成功时,保存的FE侧自定义 LoginWay
|
|
1587
|
+
* 再次打开页面时,初始化时先根据 FE 自定义的 LoginWay 跳转到不同的 tab 下(way)下使用 account 进行回填。TODO: 这里也可优化,应该在登录成功时候就进行 LoginWay 的格式化,而非转来转去。(但是这样无法直观的体现是哪种方式进行登录)
|
|
1588
|
+
*/
|
|
1580
1589
|
import { SelectOptions } from '@authing/react-ui-components/components/Login/multipleAccounts/panel';
|
|
1581
1590
|
export const QR_CODE_WAY: LoginWay[];
|
|
1582
1591
|
/**
|
|
@@ -1663,6 +1672,7 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1663
1672
|
* 原始的登录账号
|
|
1664
1673
|
*/
|
|
1665
1674
|
private originAccount;
|
|
1675
|
+
private originWay;
|
|
1666
1676
|
/**
|
|
1667
1677
|
* 原始的 localStore 值
|
|
1668
1678
|
*/
|
|
@@ -1837,6 +1847,7 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1837
1847
|
getMemberState: () => boolean;
|
|
1838
1848
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1839
1849
|
getOriginAccount: () => string;
|
|
1850
|
+
getOriginWay: () => string;
|
|
1840
1851
|
};
|
|
1841
1852
|
}
|
|
1842
1853
|
/**
|
|
@@ -1878,6 +1889,7 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1878
1889
|
getMemberState: () => boolean;
|
|
1879
1890
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1880
1891
|
getOriginAccount: () => string;
|
|
1892
|
+
getOriginWay: () => string;
|
|
1881
1893
|
} | undefined;
|
|
1882
1894
|
isMultipleAccount: boolean;
|
|
1883
1895
|
referMultipleState: (type: 'login' | 'multiple', data?: BackFillMultipleState | undefined) => void;
|
|
@@ -1976,6 +1988,7 @@ declare module '@authing/react-ui-components/components/Guard/event' {
|
|
|
1976
1988
|
getMemberState: () => boolean;
|
|
1977
1989
|
getFirstBackFillData: () => import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").BackFillMultipleState | undefined;
|
|
1978
1990
|
getOriginAccount: () => string;
|
|
1991
|
+
getOriginWay: () => string;
|
|
1979
1992
|
} | undefined, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1980
1993
|
export const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1981
1994
|
export const GuardEventsCamelToKebabMapping: {
|
|
@@ -2532,6 +2545,7 @@ declare module '@authing/react-ui-components/components/Login/hooks/useLoginMult
|
|
|
2532
2545
|
getMemberState: () => boolean;
|
|
2533
2546
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
2534
2547
|
getOriginAccount: () => string;
|
|
2548
|
+
getOriginWay: () => string;
|
|
2535
2549
|
} | undefined;
|
|
2536
2550
|
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
2537
2551
|
backfillData: BackFillMultipleState | undefined;
|
|
@@ -3673,6 +3687,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3673
3687
|
getMemberState: () => boolean;
|
|
3674
3688
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
3675
3689
|
getOriginAccount: () => string;
|
|
3690
|
+
getOriginWay: () => string;
|
|
3676
3691
|
} | undefined;
|
|
3677
3692
|
/**
|
|
3678
3693
|
* 切换多账号 isMultipleAccount 状态
|
|
@@ -4151,7 +4166,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
4151
4166
|
|
|
4152
4167
|
}
|
|
4153
4168
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
4154
|
-
const _default: "3.1.37-beta.
|
|
4169
|
+
const _default: "3.1.37-beta.5";
|
|
4155
4170
|
export default _default;
|
|
4156
4171
|
|
|
4157
4172
|
}
|