@authing/guard-shim-react18 4.5.44-rc.1 → 4.5.44

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.
@@ -3,6 +3,7 @@ export declare const GuardChangePassword: React.FC<{
3
3
  title: string;
4
4
  explain: string;
5
5
  children: ReactNode;
6
+ logo?: string;
6
7
  }>;
7
8
  export declare const GuardFirstLoginPasswordResetView: React.FC;
8
9
  export declare const GuardPasswordNotSafeResetView: React.FC;
@@ -13,5 +13,6 @@ export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPas
13
13
  * @description 是否调用 eventsMapping 中的事件
14
14
  */
15
15
  openEventsMapping?: boolean;
16
+ autoFocus?: boolean;
16
17
  }
17
18
  export declare const getDefaultGuardLocalConfig: () => GuardLocalConfig;
@@ -33,8 +33,7 @@ export declare enum GuardModuleType {
33
33
  INVITE_EXPIRE = "inviteExpire",// 邀请链接过期
34
34
  INVITE_PAGE_EXPIRE = "invitePageExpire",// 页面过期
35
35
  INVITE_SUCCESS = "inviteSuccess",// 邀请成功
36
- RESET_PASSWORD = "resetPassword",
37
- VALIDITYVERIFY = "validityVerify"
36
+ RESET_PASSWORD = "resetPassword"
38
37
  }
39
38
  export interface GuardModuleAction {
40
39
  action: string;
@@ -39,7 +39,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
39
39
  id: string;
40
40
  loginAccount?: string | undefined;
41
41
  usertype?: string | undefined;
42
- }, "way" | "tab" | "phoneCountryCode">) => void;
42
+ }, "tab" | "way" | "phoneCountryCode">) => void;
43
43
  setLoginWayByHttpData: (account: string, data: {
44
44
  username?: string | undefined;
45
45
  phone?: string | undefined;
@@ -6,6 +6,5 @@ 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;
10
9
  }
11
10
  export declare const SendCodeBtn: React.FC<SendCodeProps>;
@@ -1,3 +1,5 @@
1
+ import { React } from 'shim-react';
2
+ export declare const ShieldSpinLoading: (props: JSX.IntrinsicAttributes & React.ClassAttributes<HTMLEmbedElement> & React.EmbedHTMLAttributes<HTMLEmbedElement>) => JSX.Element;
1
3
  interface IG2SpinProps {
2
4
  size?: number;
3
5
  className?: string;
@@ -207,6 +207,15 @@ interface LoginTypeI18nProps {
207
207
  };
208
208
  };
209
209
  }
210
+ interface I18nLang {
211
+ default: string;
212
+ i18n: {
213
+ [lang: string]: {
214
+ value: string;
215
+ enabled: boolean;
216
+ };
217
+ };
218
+ }
210
219
  export interface ApplicationConfig {
211
220
  id: string;
212
221
  allowedOrigins: string[];
@@ -388,4 +397,13 @@ export interface ApplicationConfig {
388
397
  };
389
398
  /** 特殊浏览器匹配字符串 */
390
399
  specialBrowserSymbols?: string[];
400
+ resetPwdTipsConfig?: {
401
+ title: I18nLang;
402
+ desc: I18nLang;
403
+ };
404
+ noticePwdTipsConfig?: {
405
+ title: I18nLang;
406
+ desc: I18nLang;
407
+ };
408
+ noticePwdCustomLogo?: string;
391
409
  }
@@ -25,6 +25,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
25
25
  showLoading?: boolean | undefined;
26
26
  loadingComponent?: React.ReactNode;
27
27
  openEventsMapping?: boolean | undefined;
28
+ autoFocus?: boolean | undefined;
28
29
  disableRegister?: boolean | undefined;
29
30
  registerMethods?: string[] | undefined;
30
31
  defaultRegisterMethod?: string | undefined;
@@ -123,7 +123,7 @@ export declare const useGuardAccountSelectInstance: () => {
123
123
  id: string;
124
124
  loginAccount?: string | undefined;
125
125
  usertype?: string | undefined;
126
- }, "way" | "tab" | "phoneCountryCode">) => void;
126
+ }, "tab" | "way" | "phoneCountryCode">) => void;
127
127
  setLoginWayByHttpData: (account: string, data: {
128
128
  username?: string | undefined;
129
129
  phone?: string | undefined;
@@ -14,6 +14,9 @@ export declare const useDebounce: (fn: any, delay: number) => (...args: any[]) =
14
14
  export declare const useMediaSize: () => {
15
15
  isPhoneMedia: boolean;
16
16
  };
17
+ export declare const useAutoFocus: () => {
18
+ autoFocus: boolean;
19
+ };
17
20
  export declare const useShaking: () => {
18
21
  MountShaking: () => void;
19
22
  UnMountShaking: () => void;
@@ -24,7 +24,6 @@ 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,
28
- EMAIL_NOT_VERIFIED = 2042
27
+ INVITE_PAGE_EXPIRE = 4033
29
28
  }
30
29
  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.44-rc.1",
3
+ "version": "4.5.44",
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",
@@ -1,2 +0,0 @@
1
- import { React } from 'shim-react';
2
- export declare const GuardValidityVerifyView: React.FC;
@@ -1,9 +0,0 @@
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
- }