@authing/guard-shim-react18 4.5.47-rc.4 → 4.5.47

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,5 +9,8 @@ export interface SendCodeByEmailProps extends InputProps {
9
9
  fieldName?: string;
10
10
  autoSubmit?: boolean;
11
11
  scene: EmailScene;
12
+ captchaCode?: string;
13
+ onSendCodeError?: any;
14
+ codeFieldName?: string;
12
15
  }
13
16
  export declare const SendCodeByEmail: React.FC<SendCodeByEmailProps>;
@@ -7,6 +7,7 @@ export interface SendCodeByPhoneProps extends InputProps {
7
7
  form?: any;
8
8
  onSendCodeBefore?: any;
9
9
  onSendCodeAfter?: any;
10
+ onSendCodeError?: any;
10
11
  fieldName?: string;
11
12
  autoSubmit?: boolean;
12
13
  scene: SceneType;
@@ -408,6 +408,23 @@ export interface ApplicationConfig {
408
408
  switch: 'OFF' | 'ON' | 'CONDON';
409
409
  };
410
410
  };
411
+ /** 注册阶段邮件安全配置 */
412
+ registerEmailConfig?: {
413
+ robot: {
414
+ switch: 'OFF' | 'ON' | 'CONDON';
415
+ };
416
+ };
417
+ /** 登录阶段邮件安全配置 */
418
+ loginEmailConfig?: {
419
+ robot: {
420
+ switch: 'OFF' | 'ON' | 'CONDON';
421
+ };
422
+ };
423
+ forgetPasswordEmailConfig?: {
424
+ robot: {
425
+ switch: 'OFF' | 'ON' | 'CONDON';
426
+ };
427
+ };
411
428
  /** 特殊浏览器匹配字符串 */
412
429
  specialBrowserSymbols?: string[];
413
430
  resetPwdTipsConfig?: {
@@ -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;
@@ -164,5 +164,7 @@ export declare const useGuardDefaultLanguage: () => Lang;
164
164
  export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
165
165
  /** 当前人机验证策略 */
166
166
  export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
167
- /** 当前应用是否开启人机验证策略 */
168
- export declare const useCaptchaCheck: (sence: 'login' | 'register' | 'forget-password') => boolean;
167
+ /** 当前应用短信是否开启人机验证策略 */
168
+ export declare const useSmsCaptchaCheck: (sence: 'login' | 'register' | 'forget-password') => boolean;
169
+ /** 当前应用邮件是否开启人机验证策略 */
170
+ export declare const useEmailCaptchaCheck: (sence: 'login' | 'register' | 'forget-password') => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.47-rc.4",
3
+ "version": "4.5.47",
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",