@authing/guard-shim-react18 4.5.40-alpha.3 → 4.5.40-alpha.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/dist/guard.min.js +1843 -1845
- 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 +0 -2
- package/dist/typings/src/_utils/compute.d.ts +1 -1
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/context.d.ts +1 -4
- package/dist/typings/src/_utils/locales/index.d.ts +1 -0
- 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
|
};
|
|
@@ -18,5 +18,5 @@ export declare const isWeComeBrowser: () => boolean | null;
|
|
|
18
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 isSpecialBrowser: () => 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,8 +49,6 @@ export interface IGuardContext {
|
|
|
49
49
|
defaultLanguageConfig: Lang;
|
|
50
50
|
/** 租户信息获取和操作处理相关 */
|
|
51
51
|
tenantInstance?: MultipleTenant;
|
|
52
|
-
/** 特殊浏览器,身份源无法弹窗,非托管模式不显示身份源图标 */
|
|
53
|
-
isSpecialBrowser: boolean;
|
|
54
52
|
}
|
|
55
53
|
export declare const createGuardXContext: () => {
|
|
56
54
|
Provider: React.FC<{
|
|
@@ -78,7 +76,6 @@ export declare const useGuardButtonContext: () => {
|
|
|
78
76
|
export declare const useGuardButtonState: () => IGuardContextProvider;
|
|
79
77
|
export declare const useGuardPublicConfig: () => ApplicationConfig;
|
|
80
78
|
export declare const useGuardHttpClient: () => GuardHttp;
|
|
81
|
-
export declare const useIsSpecialBrowser: () => boolean;
|
|
82
79
|
export declare const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
83
80
|
export declare const useGuardAppId: () => string;
|
|
84
81
|
export declare const useGuardTenantId: () => string | undefined;
|
|
@@ -123,7 +120,7 @@ export declare const useGuardAccountSelectInstance: () => {
|
|
|
123
120
|
id: string;
|
|
124
121
|
loginAccount?: string | undefined;
|
|
125
122
|
usertype?: string | undefined;
|
|
126
|
-
}, "
|
|
123
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
127
124
|
setLoginWayByHttpData: (account: string, data: {
|
|
128
125
|
username?: string | undefined;
|
|
129
126
|
phone?: string | undefined;
|
|
@@ -6,4 +6,5 @@ export interface InitGuardI18nOptions {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const fallbackLng: (code?: string) => string[];
|
|
8
8
|
export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
|
|
9
|
+
export declare const resolvedLanguage: string;
|
|
9
10
|
export { i18n };
|
package/package.json
CHANGED