@authing/guard-shim-react18 4.5.50-alpha.7 → 4.5.50-alpha.9

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.
@@ -62,7 +62,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
62
62
  getOriginAccount: () => string;
63
63
  getOriginWay: () => string;
64
64
  } | undefined;
65
- referMultipleState: ((type: "multiple" | "login") => void) | undefined;
65
+ referMultipleState: ((type: "login" | "multiple") => void) | undefined;
66
66
  backfillData: BackFillMultipleState | undefined;
67
67
  defaultQrWay: string | undefined;
68
68
  };
@@ -9,8 +9,10 @@ export interface SendCodeByEmailProps extends InputProps {
9
9
  fieldName?: string;
10
10
  autoSubmit?: boolean;
11
11
  scene: EmailScene;
12
- captchaCode?: string;
12
+ ticket?: string;
13
+ randstr?: string;
13
14
  onSendCodeError?: any;
14
- codeFieldName?: string;
15
+ ticketFieldName?: string;
16
+ randStrFieldName?: string;
15
17
  }
16
18
  export declare const SendCodeByEmail: React.FC<SendCodeByEmailProps>;
@@ -13,7 +13,9 @@ export interface SendCodeByPhoneProps extends InputProps {
13
13
  scene: SceneType;
14
14
  areaCode?: string;
15
15
  isInternationSms?: boolean;
16
- codeFieldName?: string;
17
- captchaCode?: string;
16
+ ticketFieldName?: string;
17
+ randStrFieldName?: string;
18
+ ticket?: string;
19
+ randstr?: string;
18
20
  }
19
21
  export declare const SendCodeByPhone: React.FC<SendCodeByPhoneProps>;
@@ -54,7 +54,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
54
54
  loginMethods?: LoginMethods[] | undefined;
55
55
  passwordLoginMethods?: string[] | undefined;
56
56
  socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
57
- socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
57
+ socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
58
58
  enterpriseConnections?: string[] | undefined;
59
59
  qrCodeScanOptions?: {
60
60
  extIdpConnId?: string | undefined;
@@ -0,0 +1,5 @@
1
+ export interface TencentCaptchaResult {
2
+ ticket: string;
3
+ randstr: string;
4
+ }
5
+ export declare const openTencentCaptcha: () => Promise<TencentCaptchaResult | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.50-alpha.7",
3
+ "version": "4.5.50-alpha.9",
4
4
  "description": "Guard shim for react 18, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",