@authing/guard-shim-react18 4.5.21 → 4.5.22-fehorizon.1
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 +370 -366
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/Type/application.d.ts +2 -0
- package/dist/typings/src/_utils/compute.d.ts +1 -1
- package/dist/typings/src/_utils/config/index.d.ts +3 -1
- package/dist/typings/src/_utils/context.d.ts +3 -0
- package/package.json +1 -1
|
@@ -58,7 +58,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
58
58
|
getOriginAccount: () => string;
|
|
59
59
|
getOriginWay: () => string;
|
|
60
60
|
} | undefined;
|
|
61
|
-
referMultipleState: ((type: "
|
|
61
|
+
referMultipleState: ((type: "multiple" | "login") => void) | undefined;
|
|
62
62
|
backfillData: BackFillMultipleState | undefined;
|
|
63
63
|
defaultQrWay: string | undefined;
|
|
64
64
|
};
|
|
@@ -18,5 +18,5 @@ export declare const isWeComeBrowser: () => boolean;
|
|
|
18
18
|
export declare const isMobile: () => RegExpMatchArray | null;
|
|
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;
|
|
@@ -7,6 +7,8 @@ export declare const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
|
7
7
|
export declare const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
8
8
|
export declare const getPageConfig: (appId: string) => GuardPageConfig;
|
|
9
9
|
export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
10
|
+
export declare const setMacAddress: (address: string) => void;
|
|
11
|
+
export declare const getMacAddressHeader: () => string;
|
|
10
12
|
export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: Partial<GuardLocalConfig>) => GuardLocalConfig | undefined;
|
|
11
13
|
/**
|
|
12
14
|
* 请求服务console关于guard的配置
|
|
@@ -53,7 +55,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
55
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
56
|
passwordLoginMethods?: string[] | undefined;
|
|
55
57
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
58
|
+
socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
|
|
57
59
|
enterpriseConnections?: string[] | undefined;
|
|
58
60
|
qrCodeScanOptions?: {
|
|
59
61
|
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;
|
package/package.json
CHANGED