@authing/guard-shim-react 4.5.23 → 4.5.25-adsy.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.
@@ -1,3 +1,4 @@
1
+ import { User } from 'authing-js-sdk';
1
2
  import { CompleteInfoRequest, RegisterCompleteInfoInitData } from './interface';
2
3
  export declare enum CompleteInfoAuthFlowAction {
3
4
  Complete = "complete-completion",
@@ -5,4 +6,4 @@ export declare enum CompleteInfoAuthFlowAction {
5
6
  }
6
7
  export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
7
8
  export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
- export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | undefined>;
9
+ export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | User | undefined>;
@@ -8,7 +8,6 @@ export interface CheckPushCodeStatusProps {
8
8
  }
9
9
  export interface OnLoginProps {
10
10
  account: string;
11
- agreementIds?: (string | number)[];
12
11
  }
13
12
  export declare type LoginStatus = 'before' | 'pending';
14
13
  export interface LoginWithAuthingOtpPushProps {
@@ -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: "login" | "multiple") => void) | undefined;
61
+ referMultipleState: ((type: "multiple" | "login") => void) | undefined;
62
62
  backfillData: BackFillMultipleState | undefined;
63
63
  defaultQrWay: string | undefined;
64
64
  };
@@ -1,3 +1,7 @@
1
- import { AuthingGuardResponse, AuthingResponse } from '../../_utils/http';
2
- export declare const usePostMessage: () => (evt: MessageEvent) => AuthingGuardResponse | undefined;
3
- export declare const useErrorHandling: () => (res: AuthingResponse) => AuthingGuardResponse<any>;
1
+ import { AuthingResponse } from '../../_utils/http';
2
+ export declare const usePostMessage: () => (evt: MessageEvent) => import("../../_utils/http").AuthingGuardResponse<any> | {
3
+ code: any;
4
+ data: any;
5
+ onGuardHandling: undefined;
6
+ } | undefined;
7
+ export declare const useErrorHandling: () => (res: AuthingResponse) => import("../../_utils/http").AuthingGuardResponse<any>;
@@ -3,7 +3,7 @@ import './style.less';
3
3
  import { Agreement } from '../../../Type/application';
4
4
  export interface AgreementsProps {
5
5
  value?: boolean;
6
- onChange?: (value: boolean, acceptList: (string | number)[]) => void;
6
+ onChange?: (value: boolean) => void;
7
7
  style?: React.CSSProperties;
8
8
  agreements: Agreement[];
9
9
  showError?: boolean;
@@ -377,6 +377,4 @@ export interface ApplicationConfig {
377
377
  switch: 'OFF' | 'ON' | 'CONDON';
378
378
  };
379
379
  };
380
- /** 特殊浏览器匹配字符串 */
381
- specialBrowserSymbols?: string[];
382
380
  }
@@ -16,7 +16,6 @@ export declare const isAlipayBrowser: () => boolean | null;
16
16
  export declare const isBaiduBrowser: () => boolean | null;
17
17
  export declare const isWeComeBrowser: () => boolean;
18
18
  export declare const isMobile: () => RegExpMatchArray | null;
19
- export declare const isWebview: () => boolean | null;
20
- export declare const isLenovoNetdisk: () => boolean | null;
21
- export declare const computeIsSpecialBrowser: (specialBrowserSymbol?: string[]) => boolean;
19
+ export declare const isWebview: () => RegExpMatchArray | null;
20
+ export declare const isSpecialBrowser: () => boolean;
22
21
  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" | "default" | "icon" | undefined;
56
+ socialConnectionsBtnShape?: "button" | "icon" | "default" | 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;
@@ -19,7 +19,7 @@ export declare const requestClient: {
19
19
  setTenantId(tenantId: string): void;
20
20
  };
21
21
  export interface AuthingResponse<T = any> {
22
- code: number;
22
+ code?: number;
23
23
  statusCode?: number;
24
24
  apiCode?: number;
25
25
  data?: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.23",
3
+ "version": "4.5.25-adsy.0",
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",