@authing/guard-shim-react18 4.5.43 → 4.5.44-rc.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.
@@ -33,7 +33,8 @@ export declare enum GuardModuleType {
33
33
  INVITE_EXPIRE = "inviteExpire",// 邀请链接过期
34
34
  INVITE_PAGE_EXPIRE = "invitePageExpire",// 页面过期
35
35
  INVITE_SUCCESS = "inviteSuccess",// 邀请成功
36
- RESET_PASSWORD = "resetPassword"
36
+ RESET_PASSWORD = "resetPassword",
37
+ VALIDITYVERIFY = "validityVerify"
37
38
  }
38
39
  export interface GuardModuleAction {
39
40
  action: string;
@@ -6,5 +6,6 @@ export interface SendCodeProps extends ButtonProps {
6
6
  btnRef?: React.RefObject<HTMLButtonElement>;
7
7
  setSent?: (value: boolean) => void;
8
8
  sendDesc?: string;
9
+ retryDesc?: (time: number) => string;
9
10
  }
10
11
  export declare const SendCodeBtn: React.FC<SendCodeProps>;
@@ -0,0 +1,2 @@
1
+ import { React } from 'shim-react';
2
+ export declare const GuardValidityVerifyView: React.FC;
@@ -0,0 +1,9 @@
1
+ import { IG2FCViewProps } from '../Type';
2
+ export interface ValidityVerifyInitData {
3
+ email?: string;
4
+ ticket?: string;
5
+ frequency?: number;
6
+ }
7
+ export interface GuardSubmitSuccessViewProps extends IG2FCViewProps {
8
+ initData?: ValidityVerifyInitData;
9
+ }
@@ -24,6 +24,7 @@ export declare enum ApiCode {
24
24
  SELECT_ACCOUNT_2_LOGIN = 2930,
25
25
  RESET_ACCOUNT_NAME = 1108,// 用户名重复
26
26
  INVITE_EXPIRE = 4032,// 链接过期
27
- INVITE_PAGE_EXPIRE = 4033
27
+ INVITE_PAGE_EXPIRE = 4033,
28
+ EMAIL_NOT_VERIFIED = 2042
28
29
  }
29
30
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.43",
3
+ "version": "4.5.44-rc.1",
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",