@authing/guard-shim-react18 4.5.40-alpha.18 → 4.5.40-alpha.19
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/guard.min.js +378 -377
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -2
- package/dist/typings/src/Type/application.d.ts +2 -0
- package/dist/typings/src/_utils/compute.d.ts +2 -2
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/context.d.ts +4 -1
- package/package.json +1 -1
|
@@ -250,7 +250,7 @@ declare class MultipleAccount {
|
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
252
|
usertype?: string | undefined;
|
|
253
|
-
}, "
|
|
253
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
254
254
|
setLoginWayByHttpData: (account: string, data: {
|
|
255
255
|
username?: string | undefined;
|
|
256
256
|
phone?: string | undefined;
|
|
@@ -294,7 +294,7 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
|
|
|
294
294
|
id: string;
|
|
295
295
|
loginAccount?: string | undefined;
|
|
296
296
|
usertype?: string | undefined;
|
|
297
|
-
}, "
|
|
297
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
298
298
|
setLoginWayByHttpData: (account: string, data: {
|
|
299
299
|
username?: string | undefined;
|
|
300
300
|
phone?: string | undefined;
|
|
@@ -39,7 +39,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
39
39
|
id: string;
|
|
40
40
|
loginAccount?: string | undefined;
|
|
41
41
|
usertype?: string | undefined;
|
|
42
|
-
}, "
|
|
42
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
43
43
|
setLoginWayByHttpData: (account: string, data: {
|
|
44
44
|
username?: string | undefined;
|
|
45
45
|
phone?: string | undefined;
|
|
@@ -61,7 +61,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
61
61
|
getOriginAccount: () => string;
|
|
62
62
|
getOriginWay: () => string;
|
|
63
63
|
} | undefined;
|
|
64
|
-
referMultipleState: ((type: "
|
|
64
|
+
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
65
65
|
backfillData: BackFillMultipleState | undefined;
|
|
66
66
|
defaultQrWay: string | undefined;
|
|
67
67
|
};
|
|
@@ -15,8 +15,8 @@ export declare const isWeiboBrowser: () => boolean | null;
|
|
|
15
15
|
export declare const isAlipayBrowser: () => boolean | null;
|
|
16
16
|
export declare const isBaiduBrowser: () => boolean | null;
|
|
17
17
|
export declare const isWeComeBrowser: () => boolean | null;
|
|
18
|
-
export declare const isMobile: () => RegExpMatchArray | null;
|
|
18
|
+
export declare const isMobile: () => RegExpMatchArray | null | undefined;
|
|
19
19
|
export declare const isWebview: () => boolean | null;
|
|
20
20
|
export declare const isLenovoNetdisk: () => boolean | null;
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const computeIsSpecialBrowser: (specialBrowserSymbol?: string[]) => boolean;
|
|
22
22
|
export declare const getPhoneInLoginPageContext: () => any;
|
|
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
53
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
54
|
passwordLoginMethods?: string[] | undefined;
|
|
55
55
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
56
|
+
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
|
@@ -49,6 +49,8 @@ export interface IGuardContext {
|
|
|
49
49
|
defaultLanguageConfig: Lang;
|
|
50
50
|
/** 租户信息获取和操作处理相关 */
|
|
51
51
|
tenantInstance?: MultipleTenant;
|
|
52
|
+
/** 特殊浏览器,身份源无法弹窗,非托管模式不显示身份源图标 */
|
|
53
|
+
isSpecialBrowser: boolean;
|
|
52
54
|
}
|
|
53
55
|
export declare const createGuardXContext: () => {
|
|
54
56
|
Provider: React.FC<{
|
|
@@ -76,6 +78,7 @@ export declare const useGuardButtonContext: () => {
|
|
|
76
78
|
export declare const useGuardButtonState: () => IGuardContextProvider;
|
|
77
79
|
export declare const useGuardPublicConfig: () => ApplicationConfig;
|
|
78
80
|
export declare const useGuardHttpClient: () => GuardHttp;
|
|
81
|
+
export declare const useIsSpecialBrowser: () => boolean;
|
|
79
82
|
export declare const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
80
83
|
export declare const useGuardAppId: () => string;
|
|
81
84
|
export declare const useGuardTenantId: () => string | undefined;
|
|
@@ -120,7 +123,7 @@ export declare const useGuardAccountSelectInstance: () => {
|
|
|
120
123
|
id: string;
|
|
121
124
|
loginAccount?: string | undefined;
|
|
122
125
|
usertype?: string | undefined;
|
|
123
|
-
}, "
|
|
126
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
124
127
|
setLoginWayByHttpData: (account: string, data: {
|
|
125
128
|
username?: string | undefined;
|
|
126
129
|
phone?: string | undefined;
|
package/package.json
CHANGED