@authing/react-ui-components 3.1.28-alpha.0 → 3.1.28-hep.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/dist/asset-manifest.json +26 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.2cdfb9d1.chunk.css +3 -0
- package/dist/static/css/2.2cdfb9d1.chunk.css.map +1 -0
- package/dist/static/css/main.f438f284.chunk.css +2 -0
- package/dist/static/css/main.f438f284.chunk.css.map +1 -0
- package/dist/static/js/2.9a1287ca.chunk.js +3 -0
- package/dist/static/js/2.9a1287ca.chunk.js.LICENSE.txt +112 -0
- package/dist/static/js/2.9a1287ca.chunk.js.map +1 -0
- package/dist/static/js/3.d3328d89.chunk.js +2 -0
- package/dist/static/js/3.d3328d89.chunk.js.map +1 -0
- package/dist/static/js/main.5735e6f1.chunk.js +2 -0
- package/dist/static/js/main.5735e6f1.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.e75981a3.js +2 -0
- package/dist/static/js/runtime-main.e75981a3.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.d.ts +68 -567
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +0 -9
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
declare module '@authing/react-ui-components/components/AccountMerge/UserRadio' {
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { UserRadioItemProps, UserRadioProps } from '@authing/react-ui-components/components/AccountMerge/interface';
|
|
4
|
+
import './styles.less';
|
|
5
|
+
export const UserRadioItem: React.FC<UserRadioItemProps>;
|
|
6
|
+
export const UserRadio: React.FC<UserRadioProps>;
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
declare module '@authing/react-ui-components/components/AccountMerge/index' {
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import './styles.less';
|
|
12
|
+
export const GuardAccountMergeView: React.FC;
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
declare module '@authing/react-ui-components/components/AccountMerge/interface' {
|
|
16
|
+
export interface BriefUserInfo {
|
|
17
|
+
displayName: string;
|
|
18
|
+
avatar: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
email: string;
|
|
21
|
+
username: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GuardAccountMergeInitData {
|
|
25
|
+
currentUserInfo: BriefUserInfo;
|
|
26
|
+
existingUserInfo: BriefUserInfo;
|
|
27
|
+
mergeToken?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface UserRadioProps {
|
|
30
|
+
currentUserInfo: BriefUserInfo;
|
|
31
|
+
existingUserInfo: BriefUserInfo;
|
|
32
|
+
onChange?: (value: any) => void;
|
|
33
|
+
value?: any;
|
|
34
|
+
}
|
|
35
|
+
export interface UserRadioItemProps extends BriefUserInfo {
|
|
36
|
+
value: boolean;
|
|
37
|
+
selected: boolean;
|
|
38
|
+
onClick: (value: boolean) => void;
|
|
39
|
+
}
|
|
40
|
+
export enum AuthFlowAction {
|
|
41
|
+
MERGE = "confirm-account-merge"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
declare module '@authing/react-ui-components/components/AccountMerge/utils' {
|
|
46
|
+
import { User } from 'authing-js-sdk';
|
|
47
|
+
export const getDisplayName: (user: User) => string;
|
|
48
|
+
export const getDisplayNameByEmail: (displayName: string) => string;
|
|
49
|
+
|
|
50
|
+
}
|
|
1
51
|
declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
|
|
2
52
|
import React from 'react';
|
|
3
53
|
import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
|
|
@@ -520,6 +570,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
520
570
|
verifyCodeLength: number;
|
|
521
571
|
websocket: string;
|
|
522
572
|
welcomeMessage: any;
|
|
573
|
+
userPortal?: {
|
|
574
|
+
mergeAccount?: boolean;
|
|
575
|
+
};
|
|
523
576
|
skipComplateFileds: boolean;
|
|
524
577
|
}
|
|
525
578
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
@@ -1260,6 +1313,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/index' {
|
|
|
1260
1313
|
}>;
|
|
1261
1314
|
export const GuardLoginCompleteInfoView: React.FC;
|
|
1262
1315
|
export const GuardRegisterCompleteInfoView: React.FC;
|
|
1316
|
+
export const GuardAccountMergeCompleteInfoView: React.FC;
|
|
1263
1317
|
|
|
1264
1318
|
}
|
|
1265
1319
|
declare module '@authing/react-ui-components/components/CompleteInfo/interface' {
|
|
@@ -1272,19 +1326,21 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1272
1326
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
1273
1327
|
definition: any;
|
|
1274
1328
|
value: any;
|
|
1275
|
-
}[], authClient: AuthenticationClient
|
|
1329
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
1330
|
+
phone?: string;
|
|
1331
|
+
canMergeUser?: boolean;
|
|
1332
|
+
}) => void;
|
|
1276
1333
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
1277
1334
|
definition: any;
|
|
1278
1335
|
value: any;
|
|
1279
1336
|
}[], authClient: AuthenticationClient) => void;
|
|
1337
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
1280
1338
|
}
|
|
1281
1339
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
1282
1340
|
config: Partial<CompleteInfoConfig>;
|
|
1283
1341
|
}
|
|
1284
1342
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
1285
1343
|
config: CompleteInfoConfig;
|
|
1286
|
-
initData: any;
|
|
1287
|
-
onLogin?: any;
|
|
1288
1344
|
}
|
|
1289
1345
|
export type ExtendsFieldType = 'user' | 'internal';
|
|
1290
1346
|
export interface ExtendsField {
|
|
@@ -1317,6 +1373,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1317
1373
|
name: string;
|
|
1318
1374
|
required: boolean;
|
|
1319
1375
|
validateRules: CompleteInfoRule[];
|
|
1376
|
+
checkUnique?: boolean;
|
|
1320
1377
|
options?: CompleteInfoSelectOption[];
|
|
1321
1378
|
}
|
|
1322
1379
|
export enum CompleteInfoBaseControls {
|
|
@@ -1574,293 +1631,6 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1574
1631
|
}
|
|
1575
1632
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1576
1633
|
|
|
1577
|
-
}
|
|
1578
|
-
declare module '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts' {
|
|
1579
|
-
import { SelectOptions } from '@authing/react-ui-components/components/Login/multipleAccounts/panel';
|
|
1580
|
-
export const QR_CODE_WAY: LoginWay[];
|
|
1581
|
-
/**
|
|
1582
|
-
* 登录时所有支持的登录列表(前端定义列表)
|
|
1583
|
-
*/
|
|
1584
|
-
export type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap';
|
|
1585
|
-
/**
|
|
1586
|
-
* when: 多账号页面跳转进入登录页面
|
|
1587
|
-
* 携带的回填数据信息
|
|
1588
|
-
*/
|
|
1589
|
-
export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickname' | 'username' | 'phone' | 'email' | 'photo' | '_updateTime'> {
|
|
1590
|
-
/**
|
|
1591
|
-
* 回填的账号名称 邮箱/用户名/手机
|
|
1592
|
-
*/
|
|
1593
|
-
account: string;
|
|
1594
|
-
}
|
|
1595
|
-
/**
|
|
1596
|
-
* Store instance
|
|
1597
|
-
*/
|
|
1598
|
-
export type StoreInstance = ReturnType<MultipleAccount['getStore']>;
|
|
1599
|
-
/**
|
|
1600
|
-
* 当前 userId 对应的类型
|
|
1601
|
-
*/
|
|
1602
|
-
export interface CurrentStore {
|
|
1603
|
-
[id: string]: User;
|
|
1604
|
-
}
|
|
1605
|
-
export interface User {
|
|
1606
|
-
/**
|
|
1607
|
-
* userId
|
|
1608
|
-
*/
|
|
1609
|
-
id: string;
|
|
1610
|
-
/**
|
|
1611
|
-
* Tab 栏状态
|
|
1612
|
-
*/
|
|
1613
|
-
tab: 'input' | 'qrcode';
|
|
1614
|
-
/**
|
|
1615
|
-
* 登录方式
|
|
1616
|
-
*/
|
|
1617
|
-
way: LoginWay;
|
|
1618
|
-
/**
|
|
1619
|
-
* 姓名
|
|
1620
|
-
*/
|
|
1621
|
-
name?: string | null;
|
|
1622
|
-
/**
|
|
1623
|
-
* 昵称
|
|
1624
|
-
*/
|
|
1625
|
-
nickname?: string | null;
|
|
1626
|
-
/**
|
|
1627
|
-
* 用户名
|
|
1628
|
-
*/
|
|
1629
|
-
username?: string | null;
|
|
1630
|
-
/**
|
|
1631
|
-
* 手机号
|
|
1632
|
-
*/
|
|
1633
|
-
phone?: string | null;
|
|
1634
|
-
/**
|
|
1635
|
-
* 邮箱
|
|
1636
|
-
*/
|
|
1637
|
-
email?: string | null;
|
|
1638
|
-
/**
|
|
1639
|
-
* 头像
|
|
1640
|
-
*/
|
|
1641
|
-
photo?: string | null;
|
|
1642
|
-
/**
|
|
1643
|
-
* qrCodeId 对应的ID
|
|
1644
|
-
*/
|
|
1645
|
-
qrCodeId?: string;
|
|
1646
|
-
/**
|
|
1647
|
-
* 国际化短信区号
|
|
1648
|
-
*/
|
|
1649
|
-
phoneCountryCode?: string;
|
|
1650
|
-
/**
|
|
1651
|
-
* 国际化短信选择框回填
|
|
1652
|
-
*/
|
|
1653
|
-
areaCode?: string;
|
|
1654
|
-
/**
|
|
1655
|
-
* 登录时间
|
|
1656
|
-
*/
|
|
1657
|
-
_updateTime?: string;
|
|
1658
|
-
}
|
|
1659
|
-
class MultipleAccount {
|
|
1660
|
-
/**
|
|
1661
|
-
* 原始的 localStore 值
|
|
1662
|
-
*/
|
|
1663
|
-
private originStore;
|
|
1664
|
-
/**
|
|
1665
|
-
* 当前 AppId Store
|
|
1666
|
-
*/
|
|
1667
|
-
private currentStore;
|
|
1668
|
-
/**
|
|
1669
|
-
* 单账号直接回填
|
|
1670
|
-
*/
|
|
1671
|
-
private firstBackFillData?;
|
|
1672
|
-
/**
|
|
1673
|
-
* server 返回支持的登录方式
|
|
1674
|
-
*/
|
|
1675
|
-
private serverSideLoginMethods;
|
|
1676
|
-
/**
|
|
1677
|
-
* 是否显示多账号登录页面
|
|
1678
|
-
* true 存在
|
|
1679
|
-
*/
|
|
1680
|
-
private memberState;
|
|
1681
|
-
/**
|
|
1682
|
-
* 二维码登录时的ID
|
|
1683
|
-
*/
|
|
1684
|
-
private qrCodeId?;
|
|
1685
|
-
/**
|
|
1686
|
-
* 国际化短信前缀 区号
|
|
1687
|
-
*/
|
|
1688
|
-
private phoneCountryCode?;
|
|
1689
|
-
/**
|
|
1690
|
-
* 国际化短信前缀 选中地区编号
|
|
1691
|
-
*/
|
|
1692
|
-
private areaCode?;
|
|
1693
|
-
private tabStatus?;
|
|
1694
|
-
/**
|
|
1695
|
-
* 当前登录二级状态
|
|
1696
|
-
*/
|
|
1697
|
-
private loginWay?;
|
|
1698
|
-
private appId;
|
|
1699
|
-
/**
|
|
1700
|
-
* 是否开启国际化短信
|
|
1701
|
-
*/
|
|
1702
|
-
private isInternationSms?;
|
|
1703
|
-
constructor();
|
|
1704
|
-
/**
|
|
1705
|
-
* 页面首次加载时初始化 Store
|
|
1706
|
-
* 从 LocalStore 中拿值 放到这里来
|
|
1707
|
-
*/
|
|
1708
|
-
private initStore;
|
|
1709
|
-
/**
|
|
1710
|
-
* 初始化记住账号相关信息
|
|
1711
|
-
* @param normalCount
|
|
1712
|
-
* @returns
|
|
1713
|
-
*/
|
|
1714
|
-
private initMemberState;
|
|
1715
|
-
/**
|
|
1716
|
-
* 获取当前ID下有效账号个数
|
|
1717
|
-
* @returns qrCount 有效的二维码登录个数 normalCount 有效的账号登录方式
|
|
1718
|
-
*/
|
|
1719
|
-
private memberStateCount;
|
|
1720
|
-
/**
|
|
1721
|
-
* 初始化第一次的数据 TODO: 逻辑有点脏 待整理
|
|
1722
|
-
*/
|
|
1723
|
-
private initBackfillData;
|
|
1724
|
-
/**
|
|
1725
|
-
* 根据前端存储的登录方式返回后端映射方式
|
|
1726
|
-
* @param front
|
|
1727
|
-
*/
|
|
1728
|
-
private getServerLoginMethodByFront;
|
|
1729
|
-
/**
|
|
1730
|
-
* 当前 Store DONE
|
|
1731
|
-
*/
|
|
1732
|
-
private getCurrentStore;
|
|
1733
|
-
/**
|
|
1734
|
-
* 国际化短信过滤
|
|
1735
|
-
* true 表示通过 需要保留
|
|
1736
|
-
* false 表示不通过 需要过滤
|
|
1737
|
-
*/
|
|
1738
|
-
private validateInternationSms;
|
|
1739
|
-
/**
|
|
1740
|
-
* 校验有效的登录方式账号
|
|
1741
|
-
* @param user
|
|
1742
|
-
* @param serverSideLoginMethods
|
|
1743
|
-
* @returns
|
|
1744
|
-
*/
|
|
1745
|
-
private validateMethod;
|
|
1746
|
-
/**
|
|
1747
|
-
*
|
|
1748
|
-
* @param tab 一级Tab状态
|
|
1749
|
-
* @param way 二级Tab状态
|
|
1750
|
-
* @param id 二维码登录时 记录对应的二维码 ID
|
|
1751
|
-
*/
|
|
1752
|
-
private setLoginWay;
|
|
1753
|
-
/**
|
|
1754
|
-
* 设置/更新 store 内的用户信息
|
|
1755
|
-
*/
|
|
1756
|
-
private setUserInfo;
|
|
1757
|
-
/**
|
|
1758
|
-
* 持久化保存
|
|
1759
|
-
*/
|
|
1760
|
-
private saveStore;
|
|
1761
|
-
/**
|
|
1762
|
-
* 根据登录的 account 判断本次登录的方式
|
|
1763
|
-
* @param account 登录输入的账号
|
|
1764
|
-
* @param param1 登录成功返回的相关信息 用户名/手机号/邮箱
|
|
1765
|
-
* @returns
|
|
1766
|
-
*/
|
|
1767
|
-
private setLoginWayByHttpData;
|
|
1768
|
-
/**
|
|
1769
|
-
* 根据用户 ID 删除 localStorage 中当前用户 ID
|
|
1770
|
-
*/
|
|
1771
|
-
private delUserById;
|
|
1772
|
-
/**
|
|
1773
|
-
* 获得多账号登录页面的所有用户列表
|
|
1774
|
-
* @param excludeWays
|
|
1775
|
-
*/
|
|
1776
|
-
private getMemoUser;
|
|
1777
|
-
/**
|
|
1778
|
-
* 根据 id 获得当前已登录的用户信息
|
|
1779
|
-
* @param userId
|
|
1780
|
-
* @returns User / undefined
|
|
1781
|
-
*/
|
|
1782
|
-
private getMemoSingleUser;
|
|
1783
|
-
/**
|
|
1784
|
-
* 该方法仅仅需要回填账号的登录方式,其他都不计入
|
|
1785
|
-
* 当用户名/手机号/邮箱/AD/LDAP 相同时,根据登录顺序匹配不同的账号
|
|
1786
|
-
* 根据记住的用户登录方式获取对应的登录账户名
|
|
1787
|
-
* @param way
|
|
1788
|
-
* @param user
|
|
1789
|
-
* @returns
|
|
1790
|
-
*/
|
|
1791
|
-
private getAccountByWay;
|
|
1792
|
-
private _mappingUser;
|
|
1793
|
-
/**
|
|
1794
|
-
* 外部暴露方法
|
|
1795
|
-
*/
|
|
1796
|
-
getStore: () => {
|
|
1797
|
-
initStore: (appId: string, options: {
|
|
1798
|
-
serverSideLoginMethods: LoginWay[];
|
|
1799
|
-
isInternationSms: boolean;
|
|
1800
|
-
}) => void;
|
|
1801
|
-
setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string | undefined, internation?: {
|
|
1802
|
-
phoneCountryCode: string;
|
|
1803
|
-
areaCode: string;
|
|
1804
|
-
} | undefined) => void;
|
|
1805
|
-
setUserInfo: (user: Pick<User & {
|
|
1806
|
-
id: string;
|
|
1807
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
1808
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
1809
|
-
username?: string | undefined;
|
|
1810
|
-
phone?: string | undefined;
|
|
1811
|
-
email?: string | undefined;
|
|
1812
|
-
}) => void;
|
|
1813
|
-
getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
|
|
1814
|
-
getMemoSingleUser: (id: string) => {
|
|
1815
|
-
way: LoginWay;
|
|
1816
|
-
account: string;
|
|
1817
|
-
} | undefined;
|
|
1818
|
-
delUserById: (id: string) => void;
|
|
1819
|
-
getMemberState: () => boolean;
|
|
1820
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1821
|
-
};
|
|
1822
|
-
}
|
|
1823
|
-
/**
|
|
1824
|
-
* MultipleAccounts 相关 Hook
|
|
1825
|
-
* Finally Config 类型过滤
|
|
1826
|
-
*/
|
|
1827
|
-
const useMultipleAccounts: ({ appId, finallyConfig }: {
|
|
1828
|
-
appId?: string | undefined;
|
|
1829
|
-
finallyConfig?: any;
|
|
1830
|
-
}) => {
|
|
1831
|
-
instance: {
|
|
1832
|
-
initStore: (appId: string, options: {
|
|
1833
|
-
serverSideLoginMethods: LoginWay[];
|
|
1834
|
-
isInternationSms: boolean;
|
|
1835
|
-
}) => void;
|
|
1836
|
-
setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string | undefined, internation?: {
|
|
1837
|
-
phoneCountryCode: string;
|
|
1838
|
-
areaCode: string;
|
|
1839
|
-
} | undefined) => void;
|
|
1840
|
-
setUserInfo: (user: Pick<User & {
|
|
1841
|
-
id: string;
|
|
1842
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
1843
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
1844
|
-
username?: string | undefined;
|
|
1845
|
-
phone?: string | undefined;
|
|
1846
|
-
email?: string | undefined;
|
|
1847
|
-
}) => void;
|
|
1848
|
-
getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
|
|
1849
|
-
getMemoSingleUser: (id: string) => {
|
|
1850
|
-
way: LoginWay;
|
|
1851
|
-
account: string;
|
|
1852
|
-
} | undefined;
|
|
1853
|
-
delUserById: (id: string) => void;
|
|
1854
|
-
getMemberState: () => boolean;
|
|
1855
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
1856
|
-
} | undefined;
|
|
1857
|
-
isMultipleAccount: boolean;
|
|
1858
|
-
referMultipleState: (type: 'login' | 'multiple', data?: BackFillMultipleState | undefined) => void;
|
|
1859
|
-
multipleAccountData: BackFillMultipleState | undefined;
|
|
1860
|
-
clearBackFillData: () => void;
|
|
1861
|
-
};
|
|
1862
|
-
export default useMultipleAccounts;
|
|
1863
|
-
|
|
1864
1634
|
}
|
|
1865
1635
|
declare module '@authing/react-ui-components/components/Guard/core/index' {
|
|
1866
1636
|
/// <reference types="react" />
|
|
@@ -1920,32 +1690,7 @@ declare module '@authing/react-ui-components/components/Guard/event' {
|
|
|
1920
1690
|
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
|
|
1921
1691
|
onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
|
|
1922
1692
|
}
|
|
1923
|
-
export const guardEventsFilter: (props: any,
|
|
1924
|
-
initStore: (appId: string, options: {
|
|
1925
|
-
serverSideLoginMethods: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[];
|
|
1926
|
-
isInternationSms: boolean;
|
|
1927
|
-
}) => void;
|
|
1928
|
-
setLoginWay: (tab: "input" | "qrcode", way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
|
|
1929
|
-
phoneCountryCode: string;
|
|
1930
|
-
areaCode: string;
|
|
1931
|
-
} | undefined) => void;
|
|
1932
|
-
setUserInfo: (user: Pick<import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").User & {
|
|
1933
|
-
id: string;
|
|
1934
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
1935
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
1936
|
-
username?: string | undefined;
|
|
1937
|
-
phone?: string | undefined;
|
|
1938
|
-
email?: string | undefined;
|
|
1939
|
-
}) => void;
|
|
1940
|
-
getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
|
|
1941
|
-
getMemoSingleUser: (id: string) => {
|
|
1942
|
-
way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
|
|
1943
|
-
account: string;
|
|
1944
|
-
} | undefined;
|
|
1945
|
-
delUserById: (id: string) => void;
|
|
1946
|
-
getMemberState: () => boolean;
|
|
1947
|
-
getFirstBackFillData: () => import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").BackFillMultipleState | undefined;
|
|
1948
|
-
} | undefined, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1693
|
+
export const guardEventsFilter: (props: any, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1949
1694
|
export const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
|
|
1950
1695
|
export const GuardEventsCamelToKebabMapping: {
|
|
1951
1696
|
readonly onLoad: "load";
|
|
@@ -2017,10 +1762,12 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
2017
1762
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
2018
1763
|
REGISTER_PASSWORD = "registerPassword",
|
|
2019
1764
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
1765
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
2020
1766
|
RECOVERY_CODE = "recoveryCode",
|
|
2021
1767
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
2022
1768
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
2023
1769
|
IDENTITY_BINDING = "identityBinding",
|
|
1770
|
+
ACCOUNT_MERGE = "accountMerge",
|
|
2024
1771
|
SELF_UNLOCK = "selfUnlock"
|
|
2025
1772
|
}
|
|
2026
1773
|
export interface GuardModuleAction {
|
|
@@ -2237,7 +1984,6 @@ declare module '@authing/react-ui-components/components/Login/codemap' {
|
|
|
2237
1984
|
declare module '@authing/react-ui-components/components/Login/core/withAD' {
|
|
2238
1985
|
/// <reference types="react" />
|
|
2239
1986
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2240
|
-
import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2241
1987
|
interface LoginWithADProps {
|
|
2242
1988
|
publicKey: string;
|
|
2243
1989
|
autoRegister?: boolean;
|
|
@@ -2245,14 +1991,6 @@ declare module '@authing/react-ui-components/components/Login/core/withAD' {
|
|
|
2245
1991
|
onLoginFailed: any;
|
|
2246
1992
|
onBeforeLogin: any;
|
|
2247
1993
|
agreements: Agreement[];
|
|
2248
|
-
/**
|
|
2249
|
-
* 回填的数据
|
|
2250
|
-
*/
|
|
2251
|
-
backfillData?: BackFillMultipleState;
|
|
2252
|
-
/**
|
|
2253
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2254
|
-
*/
|
|
2255
|
-
multipleInstance?: StoreInstance;
|
|
2256
1994
|
}
|
|
2257
1995
|
export const LoginWithAD: (props: LoginWithADProps) => JSX.Element;
|
|
2258
1996
|
export {};
|
|
@@ -2260,12 +1998,10 @@ declare module '@authing/react-ui-components/components/Login/core/withAD' {
|
|
|
2260
1998
|
}
|
|
2261
1999
|
declare module '@authing/react-ui-components/components/Login/core/withAppQrcode' {
|
|
2262
2000
|
/// <reference types="react" />
|
|
2263
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2264
2001
|
interface LoginWithAppQrcodeProps {
|
|
2265
2002
|
onLoginSuccess: any;
|
|
2266
2003
|
canLoop: boolean;
|
|
2267
2004
|
qrCodeScanOptions: any;
|
|
2268
|
-
multipleInstance?: StoreInstance;
|
|
2269
2005
|
}
|
|
2270
2006
|
export const LoginWithAppQrcode: (props: LoginWithAppQrcodeProps) => JSX.Element;
|
|
2271
2007
|
export {};
|
|
@@ -2274,7 +2010,6 @@ declare module '@authing/react-ui-components/components/Login/core/withAppQrcode
|
|
|
2274
2010
|
declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
|
|
2275
2011
|
/// <reference types="react" />
|
|
2276
2012
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2277
|
-
import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2278
2013
|
interface LoginWithLDAPProps {
|
|
2279
2014
|
publicKey: string;
|
|
2280
2015
|
autoRegister?: boolean;
|
|
@@ -2283,14 +2018,6 @@ declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
|
|
|
2283
2018
|
onLoginFailed: any;
|
|
2284
2019
|
onBeforeLogin: any;
|
|
2285
2020
|
agreements: Agreement[];
|
|
2286
|
-
/**
|
|
2287
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2288
|
-
*/
|
|
2289
|
-
multipleInstance?: StoreInstance;
|
|
2290
|
-
/**
|
|
2291
|
-
* 多账号回填的数据
|
|
2292
|
-
*/
|
|
2293
|
-
backfillData?: BackFillMultipleState;
|
|
2294
2021
|
}
|
|
2295
2022
|
export const LoginWithLDAP: (props: LoginWithLDAPProps) => JSX.Element;
|
|
2296
2023
|
export {};
|
|
@@ -2331,7 +2058,6 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2331
2058
|
import { Agreement, PasswordLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2332
2059
|
import { LoginMethods } from '@authing/react-ui-components/components/index';
|
|
2333
2060
|
import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
|
|
2334
|
-
import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2335
2061
|
interface LoginWithPasswordProps {
|
|
2336
2062
|
publicKey: string;
|
|
2337
2063
|
autoRegister?: boolean;
|
|
@@ -2345,14 +2071,6 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2345
2071
|
loginWay?: LoginMethods;
|
|
2346
2072
|
submitButText?: string;
|
|
2347
2073
|
saveIdentify?: (type: LoginMethods, identity: string) => void;
|
|
2348
|
-
/**
|
|
2349
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2350
|
-
*/
|
|
2351
|
-
multipleInstance?: StoreInstance;
|
|
2352
|
-
/**
|
|
2353
|
-
* 多账号回填的数据
|
|
2354
|
-
*/
|
|
2355
|
-
backfillData?: BackFillMultipleState;
|
|
2356
2074
|
}
|
|
2357
2075
|
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
2358
2076
|
export {};
|
|
@@ -2386,10 +2104,6 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2386
2104
|
import React, { FC } from 'react';
|
|
2387
2105
|
import './styles.less';
|
|
2388
2106
|
export interface VirtualDropdownProps {
|
|
2389
|
-
/**
|
|
2390
|
-
* 回填的国际化区号
|
|
2391
|
-
*/
|
|
2392
|
-
regionCode?: string;
|
|
2393
2107
|
value?: string;
|
|
2394
2108
|
onChange?: (value: string) => void;
|
|
2395
2109
|
style?: React.CSSProperties;
|
|
@@ -2400,8 +2114,7 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2400
2114
|
declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/index' {
|
|
2401
2115
|
/// <reference types="react" />
|
|
2402
2116
|
import './styles.less';
|
|
2403
|
-
const LoginWithVerifyCode: (props: any) => JSX.Element;
|
|
2404
|
-
export { LoginWithVerifyCode };
|
|
2117
|
+
export const LoginWithVerifyCode: (props: any) => JSX.Element;
|
|
2405
2118
|
|
|
2406
2119
|
}
|
|
2407
2120
|
declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/inputIdentify' {
|
|
@@ -2416,13 +2129,10 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2416
2129
|
}
|
|
2417
2130
|
declare module '@authing/react-ui-components/components/Login/core/withWechatMiniQrcode' {
|
|
2418
2131
|
/// <reference types="react" />
|
|
2419
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2420
2132
|
interface LoginWithWechatMiniQrcodeProps {
|
|
2421
2133
|
onLoginSuccess: any;
|
|
2422
2134
|
canLoop: boolean;
|
|
2423
2135
|
qrCodeScanOptions: any;
|
|
2424
|
-
id: string;
|
|
2425
|
-
multipleInstance?: StoreInstance;
|
|
2426
2136
|
}
|
|
2427
2137
|
export const LoginWithWechatMiniQrcode: (props: LoginWithWechatMiniQrcodeProps) => JSX.Element;
|
|
2428
2138
|
export {};
|
|
@@ -2430,70 +2140,14 @@ declare module '@authing/react-ui-components/components/Login/core/withWechatMin
|
|
|
2430
2140
|
}
|
|
2431
2141
|
declare module '@authing/react-ui-components/components/Login/core/withWechatmpQrcode' {
|
|
2432
2142
|
/// <reference types="react" />
|
|
2433
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2434
2143
|
interface LoginWithWechatmpQrcodeProps {
|
|
2435
2144
|
onLoginSuccess: any;
|
|
2436
2145
|
canLoop: boolean;
|
|
2437
2146
|
qrCodeScanOptions: any;
|
|
2438
|
-
id: string;
|
|
2439
|
-
/**
|
|
2440
|
-
* 多账号存储实例
|
|
2441
|
-
*/
|
|
2442
|
-
multipleInstance?: StoreInstance;
|
|
2443
2147
|
}
|
|
2444
2148
|
export const LoginWithWechatmpQrcode: (props: LoginWithWechatmpQrcodeProps) => JSX.Element;
|
|
2445
2149
|
export {};
|
|
2446
2150
|
|
|
2447
|
-
}
|
|
2448
|
-
declare module '@authing/react-ui-components/components/Login/hooks/useLoginMultiple' {
|
|
2449
|
-
/// <reference types="react" />
|
|
2450
|
-
import { FormInstance } from 'antd/lib/form';
|
|
2451
|
-
import { BackFillMultipleState, LoginWay } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2452
|
-
/**
|
|
2453
|
-
* 多账号登录下 账户 & 登录方式自动回填
|
|
2454
|
-
* TODO: HOOK 参数有时间整理成为对象,开始没有想到有这么多
|
|
2455
|
-
* 调用地方 core 中需要回填的两个登录方式
|
|
2456
|
-
*/
|
|
2457
|
-
function useLoginMultipleBackFill(form: FormInstance<any>, way: LoginWay, formKey: string, backfillData?: BackFillMultipleState, isOnlyInternationSms?: boolean, setAreaCode?: React.Dispatch<React.SetStateAction<string>>): void;
|
|
2458
|
-
/**
|
|
2459
|
-
* 多账号统一状态管理
|
|
2460
|
-
* @param setLoginWay
|
|
2461
|
-
* @returns
|
|
2462
|
-
*/
|
|
2463
|
-
function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
2464
|
-
isMultipleAccount: boolean;
|
|
2465
|
-
multipleInstance: {
|
|
2466
|
-
initStore: (appId: string, options: {
|
|
2467
|
-
serverSideLoginMethods: LoginWay[];
|
|
2468
|
-
isInternationSms: boolean;
|
|
2469
|
-
}) => void;
|
|
2470
|
-
setLoginWay: (tab: "input" | "qrcode", way: LoginWay, id?: string | undefined, internation?: {
|
|
2471
|
-
phoneCountryCode: string;
|
|
2472
|
-
areaCode: string;
|
|
2473
|
-
} | undefined) => void;
|
|
2474
|
-
setUserInfo: (user: Pick<import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").User & {
|
|
2475
|
-
id: string;
|
|
2476
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
2477
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
2478
|
-
username?: string | undefined;
|
|
2479
|
-
phone?: string | undefined;
|
|
2480
|
-
email?: string | undefined;
|
|
2481
|
-
}) => void;
|
|
2482
|
-
getMemoUser: (excludeWays?: LoginWay[]) => import("@authing/react-ui-components/components/Login/multipleAccounts/panel").SelectOptions[];
|
|
2483
|
-
getMemoSingleUser: (id: string) => {
|
|
2484
|
-
way: LoginWay;
|
|
2485
|
-
account: string;
|
|
2486
|
-
} | undefined;
|
|
2487
|
-
delUserById: (id: string) => void;
|
|
2488
|
-
getMemberState: () => boolean;
|
|
2489
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
2490
|
-
} | undefined;
|
|
2491
|
-
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
2492
|
-
backfillData: BackFillMultipleState | undefined;
|
|
2493
|
-
defaultQrWay: string | undefined;
|
|
2494
|
-
};
|
|
2495
|
-
export { useLoginMultipleBackFill, useLoginMultiple };
|
|
2496
|
-
|
|
2497
2151
|
}
|
|
2498
2152
|
declare module '@authing/react-ui-components/components/Login/index' {
|
|
2499
2153
|
/// <reference types="react" />
|
|
@@ -2542,79 +2196,6 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
2542
2196
|
}
|
|
2543
2197
|
export const getDefaultLoginConfig: () => LoginConfig;
|
|
2544
2198
|
|
|
2545
|
-
}
|
|
2546
|
-
declare module '@authing/react-ui-components/components/Login/multipleAccounts/index' {
|
|
2547
|
-
import React from 'react';
|
|
2548
|
-
import { LoginWay, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2549
|
-
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
2550
|
-
interface MultipleAccountsProps {
|
|
2551
|
-
/**
|
|
2552
|
-
* 多账号存储实例
|
|
2553
|
-
*/
|
|
2554
|
-
multipleInstance?: StoreInstance;
|
|
2555
|
-
/**
|
|
2556
|
-
* 切换 Guard 方法
|
|
2557
|
-
*/
|
|
2558
|
-
changeModule?: (moduleName: GuardModuleType, initData?: any) => Promise<void>;
|
|
2559
|
-
/**
|
|
2560
|
-
* 切换多账号状态
|
|
2561
|
-
*/
|
|
2562
|
-
referMultipleState?: (type: 'login' | 'multiple', data?: {
|
|
2563
|
-
account: string;
|
|
2564
|
-
way: LoginWay;
|
|
2565
|
-
}) => void;
|
|
2566
|
-
}
|
|
2567
|
-
const MultipleAccounts: React.NamedExoticComponent<MultipleAccountsProps>;
|
|
2568
|
-
export { MultipleAccounts };
|
|
2569
|
-
|
|
2570
|
-
}
|
|
2571
|
-
declare module '@authing/react-ui-components/components/Login/multipleAccounts/panel' {
|
|
2572
|
-
import React from 'react';
|
|
2573
|
-
import './style.less';
|
|
2574
|
-
interface SelectPanelProps {
|
|
2575
|
-
lists: SelectOptions[];
|
|
2576
|
-
/**
|
|
2577
|
-
* 点击删除
|
|
2578
|
-
*/
|
|
2579
|
-
handleDel: (id: string) => void;
|
|
2580
|
-
/**
|
|
2581
|
-
* 点击 li
|
|
2582
|
-
*/
|
|
2583
|
-
onClick: (id: string) => void;
|
|
2584
|
-
}
|
|
2585
|
-
export interface SelectOptions {
|
|
2586
|
-
/**
|
|
2587
|
-
* 头像
|
|
2588
|
-
*/
|
|
2589
|
-
photo?: string;
|
|
2590
|
-
/**
|
|
2591
|
-
* 标题
|
|
2592
|
-
*/
|
|
2593
|
-
title?: string;
|
|
2594
|
-
/**
|
|
2595
|
-
* 描述
|
|
2596
|
-
*/
|
|
2597
|
-
description?: string;
|
|
2598
|
-
/**
|
|
2599
|
-
* 用户 ID 唯一标识符
|
|
2600
|
-
*/
|
|
2601
|
-
id: string | 'other';
|
|
2602
|
-
/**
|
|
2603
|
-
* 显示操作栏 default: true
|
|
2604
|
-
*/
|
|
2605
|
-
operation?: boolean;
|
|
2606
|
-
/**
|
|
2607
|
-
* 登录时间
|
|
2608
|
-
*/
|
|
2609
|
-
_updateTime: number;
|
|
2610
|
-
/**
|
|
2611
|
-
* 替代图片元素
|
|
2612
|
-
*/
|
|
2613
|
-
element?: React.ReactElement;
|
|
2614
|
-
}
|
|
2615
|
-
const SelectPanel: React.FC<SelectPanelProps>;
|
|
2616
|
-
export { SelectPanel };
|
|
2617
|
-
|
|
2618
2199
|
}
|
|
2619
2200
|
declare module '@authing/react-ui-components/components/Login/socialLogin/IdpButton/index' {
|
|
2620
2201
|
/// <reference types="react" />
|
|
@@ -2626,7 +2207,6 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/index'
|
|
|
2626
2207
|
import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2627
2208
|
import './style.less';
|
|
2628
2209
|
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
|
|
2629
|
-
import { StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
2630
2210
|
export interface SocialLoginProps {
|
|
2631
2211
|
appId: string;
|
|
2632
2212
|
config: GuardLocalConfig;
|
|
@@ -2634,10 +2214,6 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/index'
|
|
|
2634
2214
|
onLoginSuccess: any;
|
|
2635
2215
|
enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
|
|
2636
2216
|
socialConnectionObjs: SocialConnectionItem[];
|
|
2637
|
-
/**
|
|
2638
|
-
* 根据输入的账号 & 返回获得对应的登录方法
|
|
2639
|
-
*/
|
|
2640
|
-
multipleInstance?: StoreInstance;
|
|
2641
2217
|
}
|
|
2642
2218
|
export const SocialLogin: React.FC<SocialLoginProps>;
|
|
2643
2219
|
|
|
@@ -2877,6 +2453,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
|
|
|
2877
2453
|
nickme?: string;
|
|
2878
2454
|
username?: string;
|
|
2879
2455
|
current?: MFAType;
|
|
2456
|
+
thirdPartyOrigin?: boolean;
|
|
2880
2457
|
}
|
|
2881
2458
|
export interface GuardMFAProps extends IG2FCProps, MFAEvents {
|
|
2882
2459
|
config: Partial<MFAConfig>;
|
|
@@ -3498,7 +3075,6 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3498
3075
|
import React from 'react';
|
|
3499
3076
|
import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/components/index';
|
|
3500
3077
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3501
|
-
import { BackFillMultipleState, StoreInstance } from '@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts';
|
|
3502
3078
|
import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
|
|
3503
3079
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
3504
3080
|
export interface IGuardContext {
|
|
@@ -3516,29 +3092,6 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3516
3092
|
isAuthFlow: boolean;
|
|
3517
3093
|
contextLoaded: boolean;
|
|
3518
3094
|
guardPageConfig: Partial<GuardPageConfig>;
|
|
3519
|
-
multipleInstance: {
|
|
3520
|
-
/**
|
|
3521
|
-
* 多账号相关
|
|
3522
|
-
*/
|
|
3523
|
-
isMultipleAccount: boolean;
|
|
3524
|
-
/**
|
|
3525
|
-
* when: 多账号页面跳转进入登录页面
|
|
3526
|
-
* 携带的回填数据信息
|
|
3527
|
-
*/
|
|
3528
|
-
multipleAccountData?: BackFillMultipleState;
|
|
3529
|
-
/**
|
|
3530
|
-
* 多账号 store 实例
|
|
3531
|
-
*/
|
|
3532
|
-
instance?: StoreInstance;
|
|
3533
|
-
/**
|
|
3534
|
-
* 切换多账号 isMultipleAccount 状态
|
|
3535
|
-
*/
|
|
3536
|
-
referMultipleState?: (type: 'login' | 'multiple') => void;
|
|
3537
|
-
/**
|
|
3538
|
-
* 清空回填数据
|
|
3539
|
-
*/
|
|
3540
|
-
clearBackFillData?: () => void;
|
|
3541
|
-
};
|
|
3542
3095
|
}
|
|
3543
3096
|
export const createGuardXContext: () => {
|
|
3544
3097
|
Provider: React.FC<{
|
|
@@ -3576,60 +3129,6 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3576
3129
|
export const useGuardContextLoaded: () => boolean;
|
|
3577
3130
|
export const useGuardIsAuthFlow: () => boolean;
|
|
3578
3131
|
export const useGuardPageConfig: () => Partial<GuardPageConfig>;
|
|
3579
|
-
/**
|
|
3580
|
-
* 多账号登录 store 实例
|
|
3581
|
-
*/
|
|
3582
|
-
export const useGuardMultipleInstance: () => {
|
|
3583
|
-
/**
|
|
3584
|
-
* 多账号相关
|
|
3585
|
-
*/
|
|
3586
|
-
isMultipleAccount: boolean;
|
|
3587
|
-
/**
|
|
3588
|
-
* when: 多账号页面跳转进入登录页面
|
|
3589
|
-
* 携带的回填数据信息
|
|
3590
|
-
*/
|
|
3591
|
-
multipleAccountData?: BackFillMultipleState | undefined;
|
|
3592
|
-
/**
|
|
3593
|
-
* 多账号 store 实例
|
|
3594
|
-
*/
|
|
3595
|
-
instance?: {
|
|
3596
|
-
initStore: (appId: string, options: {
|
|
3597
|
-
serverSideLoginMethods: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[];
|
|
3598
|
-
isInternationSms: boolean;
|
|
3599
|
-
}) => void;
|
|
3600
|
-
setLoginWay: (tab: "input" | "qrcode", way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
|
|
3601
|
-
phoneCountryCode: string;
|
|
3602
|
-
areaCode: string;
|
|
3603
|
-
} | undefined) => void;
|
|
3604
|
-
setUserInfo: (user: Pick<import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").User & {
|
|
3605
|
-
id: string;
|
|
3606
|
-
}, "email" | "username" | "phone" | "id" | "nickname" | "photo" | "name" | "_updateTime" | "qrCodeId" | "areaCode">) => void;
|
|
3607
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
3608
|
-
username?: string | undefined;
|
|
3609
|
-
phone?: string | undefined;
|
|
3610
|
-
email?: string | undefined;
|
|
3611
|
-
}) => void;
|
|
3612
|
-
getMemoUser: (excludeWays?: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
|
|
3613
|
-
getMemoSingleUser: (id: string) => {
|
|
3614
|
-
way: import("@authing/react-ui-components/components/Guard/core/hooks/useMultipleAccounts").LoginWay;
|
|
3615
|
-
account: string;
|
|
3616
|
-
} | undefined;
|
|
3617
|
-
delUserById: (id: string) => void;
|
|
3618
|
-
getMemberState: () => boolean;
|
|
3619
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
3620
|
-
} | undefined;
|
|
3621
|
-
/**
|
|
3622
|
-
* 切换多账号 isMultipleAccount 状态
|
|
3623
|
-
*/
|
|
3624
|
-
referMultipleState?: ((type: 'login' | 'multiple') => void) | undefined;
|
|
3625
|
-
/**
|
|
3626
|
-
* 清空回填数据
|
|
3627
|
-
*/
|
|
3628
|
-
clearBackFillData?: (() => void) | undefined;
|
|
3629
|
-
};
|
|
3630
|
-
/**
|
|
3631
|
-
* 登录页面状态
|
|
3632
|
-
// */
|
|
3633
3132
|
|
|
3634
3133
|
}
|
|
3635
3134
|
declare module '@authing/react-ui-components/components/_utils/corsVerification' {
|
|
@@ -3988,6 +3487,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3988
3487
|
FLOW_END = 1600,
|
|
3989
3488
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3990
3489
|
FORCED_PASSWORD_RESET = 2058,
|
|
3490
|
+
ACCOUNT_MERGE = 10000,
|
|
3991
3491
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
3992
3492
|
UNSAFE_PASSWORD_RESET = 2071
|
|
3993
3493
|
}
|
|
@@ -4083,6 +3583,7 @@ declare module '@authing/react-ui-components/components/index' {
|
|
|
4083
3583
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
4084
3584
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
4085
3585
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
3586
|
+
export * from '@authing/react-ui-components/components/SingleComponent/index';
|
|
4086
3587
|
export * from '@authing/react-ui-components/components/Guard/index';
|
|
4087
3588
|
export * from '@authing/react-ui-components/components/Type/index';
|
|
4088
3589
|
export * from '@authing/react-ui-components/components/version/index';
|
|
@@ -4094,7 +3595,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
4094
3595
|
|
|
4095
3596
|
}
|
|
4096
3597
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
4097
|
-
const _default: "3.1.28-
|
|
3598
|
+
const _default: "3.1.28-hep.0";
|
|
4098
3599
|
export default _default;
|
|
4099
3600
|
|
|
4100
3601
|
}
|