@authing/react-ui-components 3.1.37-beta.1 → 3.1.37-beta.4
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 +44 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1581,8 +1581,9 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1581
1581
|
export const QR_CODE_WAY: LoginWay[];
|
|
1582
1582
|
/**
|
|
1583
1583
|
* 登录时所有支持的登录列表(前端定义列表)
|
|
1584
|
+
* 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
|
|
1584
1585
|
*/
|
|
1585
|
-
export type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap';
|
|
1586
|
+
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';
|
|
1586
1587
|
/**
|
|
1587
1588
|
* when: 多账号页面跳转进入登录页面
|
|
1588
1589
|
* 携带的回填数据信息
|
|
@@ -1658,6 +1659,10 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1658
1659
|
_updateTime?: string;
|
|
1659
1660
|
}
|
|
1660
1661
|
class MultipleAccount {
|
|
1662
|
+
/**
|
|
1663
|
+
* 原始的登录账号
|
|
1664
|
+
*/
|
|
1665
|
+
private originAccount;
|
|
1661
1666
|
/**
|
|
1662
1667
|
* 原始的 localStore 值
|
|
1663
1668
|
*/
|
|
@@ -1766,6 +1771,13 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1766
1771
|
* @returns
|
|
1767
1772
|
*/
|
|
1768
1773
|
private setLoginWayByHttpData;
|
|
1774
|
+
/**
|
|
1775
|
+
* 根据登录的 account 判断本次LDAP登录方式
|
|
1776
|
+
* @param account 登录输入的账号
|
|
1777
|
+
* @param param1 登录成功返回的相关信息 用户名/手机号/邮箱
|
|
1778
|
+
* @returns
|
|
1779
|
+
*/
|
|
1780
|
+
private setLoginWayByLDAPData;
|
|
1769
1781
|
/**
|
|
1770
1782
|
* 根据用户 ID 删除 localStorage 中当前用户 ID
|
|
1771
1783
|
*/
|
|
@@ -1811,6 +1823,11 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1811
1823
|
phone?: string | undefined;
|
|
1812
1824
|
email?: string | undefined;
|
|
1813
1825
|
}) => void;
|
|
1826
|
+
setLoginWayByLDAPData: (account: string, data: {
|
|
1827
|
+
name?: string | undefined;
|
|
1828
|
+
phone?: string | undefined;
|
|
1829
|
+
email?: string | undefined;
|
|
1830
|
+
}) => void;
|
|
1814
1831
|
getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
|
|
1815
1832
|
getMemoSingleUser: (id: string) => {
|
|
1816
1833
|
way: LoginWay;
|
|
@@ -1819,6 +1836,7 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1819
1836
|
delUserById: (id: string) => string;
|
|
1820
1837
|
getMemberState: () => boolean;
|
|
1821
1838
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1839
|
+
getOriginAccount: () => string;
|
|
1822
1840
|
};
|
|
1823
1841
|
}
|
|
1824
1842
|
/**
|
|
@@ -1846,6 +1864,11 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1846
1864
|
phone?: string | undefined;
|
|
1847
1865
|
email?: string | undefined;
|
|
1848
1866
|
}) => void;
|
|
1867
|
+
setLoginWayByLDAPData: (account: string, data: {
|
|
1868
|
+
name?: string | undefined;
|
|
1869
|
+
phone?: string | undefined;
|
|
1870
|
+
email?: string | undefined;
|
|
1871
|
+
}) => void;
|
|
1849
1872
|
getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
|
|
1850
1873
|
getMemoSingleUser: (id: string) => {
|
|
1851
1874
|
way: LoginWay;
|
|
@@ -1854,6 +1877,7 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
|
|
|
1854
1877
|
delUserById: (id: string) => string;
|
|
1855
1878
|
getMemberState: () => boolean;
|
|
1856
1879
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1880
|
+
getOriginAccount: () => string;
|
|
1857
1881
|
} | undefined;
|
|
1858
1882
|
isMultipleAccount: boolean;
|
|
1859
1883
|
referMultipleState: (type: 'login' | 'multiple', data?: BackFillMultipleState | undefined) => void;
|
|
@@ -1938,6 +1962,11 @@ declare module '@authing/react-ui-components/components/Guard/event' {
|
|
|
1938
1962
|
phone?: string | undefined;
|
|
1939
1963
|
email?: string | undefined;
|
|
1940
1964
|
}) => void;
|
|
1965
|
+
setLoginWayByLDAPData: (account: string, data: {
|
|
1966
|
+
name?: string | undefined;
|
|
1967
|
+
phone?: string | undefined;
|
|
1968
|
+
email?: string | undefined;
|
|
1969
|
+
}) => void;
|
|
1941
1970
|
getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
|
|
1942
1971
|
getMemoSingleUser: (id: string) => {
|
|
1943
1972
|
way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
|
|
@@ -1946,6 +1975,7 @@ declare module '@authing/react-ui-components/components/Guard/event' {
|
|
|
1946
1975
|
delUserById: (id: string) => string;
|
|
1947
1976
|
getMemberState: () => boolean;
|
|
1948
1977
|
getFirstBackFillData: () => import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").BackFillMultipleState | undefined;
|
|
1978
|
+
getOriginAccount: () => string;
|
|
1949
1979
|
} | undefined, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1950
1980
|
export const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1951
1981
|
export const GuardEventsCamelToKebabMapping: {
|
|
@@ -2488,6 +2518,11 @@ declare module '@authing/react-ui-components/components/Login/hooks/useLoginMult
|
|
|
2488
2518
|
phone?: string | undefined;
|
|
2489
2519
|
email?: string | undefined;
|
|
2490
2520
|
}) => void;
|
|
2521
|
+
setLoginWayByLDAPData: (account: string, data: {
|
|
2522
|
+
name?: string | undefined;
|
|
2523
|
+
phone?: string | undefined;
|
|
2524
|
+
email?: string | undefined;
|
|
2525
|
+
}) => void;
|
|
2491
2526
|
getMemoUser: (excludeWays?: LoginWay[]) => import("@authing/react-ui-components/components/Login/multipleAccounts/panel").SelectOptions[];
|
|
2492
2527
|
getMemoSingleUser: (id: string) => {
|
|
2493
2528
|
way: LoginWay;
|
|
@@ -2496,6 +2531,7 @@ declare module '@authing/react-ui-components/components/Login/hooks/useLoginMult
|
|
|
2496
2531
|
delUserById: (id: string) => string;
|
|
2497
2532
|
getMemberState: () => boolean;
|
|
2498
2533
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
2534
|
+
getOriginAccount: () => string;
|
|
2499
2535
|
} | undefined;
|
|
2500
2536
|
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
2501
2537
|
backfillData: BackFillMultipleState | undefined;
|
|
@@ -3623,6 +3659,11 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3623
3659
|
phone?: string | undefined;
|
|
3624
3660
|
email?: string | undefined;
|
|
3625
3661
|
}) => void;
|
|
3662
|
+
setLoginWayByLDAPData: (account: string, data: {
|
|
3663
|
+
name?: string | undefined;
|
|
3664
|
+
phone?: string | undefined;
|
|
3665
|
+
email?: string | undefined;
|
|
3666
|
+
}) => void;
|
|
3626
3667
|
getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
|
|
3627
3668
|
getMemoSingleUser: (id: string) => {
|
|
3628
3669
|
way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
|
|
@@ -3631,6 +3672,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3631
3672
|
delUserById: (id: string) => string;
|
|
3632
3673
|
getMemberState: () => boolean;
|
|
3633
3674
|
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
3675
|
+
getOriginAccount: () => string;
|
|
3634
3676
|
} | undefined;
|
|
3635
3677
|
/**
|
|
3636
3678
|
* 切换多账号 isMultipleAccount 状态
|
|
@@ -4109,7 +4151,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
4109
4151
|
|
|
4110
4152
|
}
|
|
4111
4153
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
4112
|
-
const _default: "3.1.37-beta.
|
|
4154
|
+
const _default: "3.1.37-beta.4";
|
|
4113
4155
|
export default _default;
|
|
4114
4156
|
|
|
4115
4157
|
}
|