@authing/guard-shim-react 4.5.21 → 4.5.22

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.
@@ -377,4 +377,6 @@ export interface ApplicationConfig {
377
377
  switch: 'OFF' | 'ON' | 'CONDON';
378
378
  };
379
379
  };
380
+ /** 特殊浏览器匹配字符串 */
381
+ specialBrowserSymbols?: string[];
380
382
  }
@@ -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 isSpecialBrowser: () => boolean;
21
+ export declare const computeIsSpecialBrowser: (specialBrowserSymbol?: string[]) => boolean;
22
22
  export declare const getPhoneInLoginPageContext: () => any;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.21",
3
+ "version": "4.5.22",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",