@authing/react-ui-components 3.1.37-beta.3 → 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 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
  * 携带的回填数据信息
@@ -1770,6 +1771,13 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
1770
1771
  * @returns
1771
1772
  */
1772
1773
  private setLoginWayByHttpData;
1774
+ /**
1775
+ * 根据登录的 account 判断本次LDAP登录方式
1776
+ * @param account 登录输入的账号
1777
+ * @param param1 登录成功返回的相关信息 用户名/手机号/邮箱
1778
+ * @returns
1779
+ */
1780
+ private setLoginWayByLDAPData;
1773
1781
  /**
1774
1782
  * 根据用户 ID 删除 localStorage 中当前用户 ID
1775
1783
  */
@@ -1815,6 +1823,11 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
1815
1823
  phone?: string | undefined;
1816
1824
  email?: string | undefined;
1817
1825
  }) => void;
1826
+ setLoginWayByLDAPData: (account: string, data: {
1827
+ name?: string | undefined;
1828
+ phone?: string | undefined;
1829
+ email?: string | undefined;
1830
+ }) => void;
1818
1831
  getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
1819
1832
  getMemoSingleUser: (id: string) => {
1820
1833
  way: LoginWay;
@@ -1851,6 +1864,11 @@ declare module '@authing/react-ui-components/components/Guard/core/hooks/useMult
1851
1864
  phone?: string | undefined;
1852
1865
  email?: string | undefined;
1853
1866
  }) => void;
1867
+ setLoginWayByLDAPData: (account: string, data: {
1868
+ name?: string | undefined;
1869
+ phone?: string | undefined;
1870
+ email?: string | undefined;
1871
+ }) => void;
1854
1872
  getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
1855
1873
  getMemoSingleUser: (id: string) => {
1856
1874
  way: LoginWay;
@@ -1944,6 +1962,11 @@ declare module '@authing/react-ui-components/components/Guard/event' {
1944
1962
  phone?: string | undefined;
1945
1963
  email?: string | undefined;
1946
1964
  }) => void;
1965
+ setLoginWayByLDAPData: (account: string, data: {
1966
+ name?: string | undefined;
1967
+ phone?: string | undefined;
1968
+ email?: string | undefined;
1969
+ }) => void;
1947
1970
  getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
1948
1971
  getMemoSingleUser: (id: string) => {
1949
1972
  way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
@@ -2495,6 +2518,11 @@ declare module '@authing/react-ui-components/components/Login/hooks/useLoginMult
2495
2518
  phone?: string | undefined;
2496
2519
  email?: string | undefined;
2497
2520
  }) => void;
2521
+ setLoginWayByLDAPData: (account: string, data: {
2522
+ name?: string | undefined;
2523
+ phone?: string | undefined;
2524
+ email?: string | undefined;
2525
+ }) => void;
2498
2526
  getMemoUser: (excludeWays?: LoginWay[]) => import("@authing/react-ui-components/components/Login/multipleAccounts/panel").SelectOptions[];
2499
2527
  getMemoSingleUser: (id: string) => {
2500
2528
  way: LoginWay;
@@ -3631,6 +3659,11 @@ declare module '@authing/react-ui-components/components/_utils/context' {
3631
3659
  phone?: string | undefined;
3632
3660
  email?: string | undefined;
3633
3661
  }) => void;
3662
+ setLoginWayByLDAPData: (account: string, data: {
3663
+ name?: string | undefined;
3664
+ phone?: string | undefined;
3665
+ email?: string | undefined;
3666
+ }) => void;
3634
3667
  getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
3635
3668
  getMemoSingleUser: (id: string) => {
3636
3669
  way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
@@ -4118,7 +4151,7 @@ declare module '@authing/react-ui-components/components/version/index' {
4118
4151
 
4119
4152
  }
4120
4153
  declare module '@authing/react-ui-components/components/version/version' {
4121
- const _default: "3.1.37-beta.3";
4154
+ const _default: "3.1.37-beta.4";
4122
4155
  export default _default;
4123
4156
 
4124
4157
  }