@authing/guard-shim-react18 4.5.50-alpha.0 → 4.5.50-alpha.2

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
+ REGISTER_ACCOUNT_TYPE_SELECT = "accountTypeSelect"
37
38
  }
38
39
  export interface GuardModuleAction {
39
40
  action: string;
@@ -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: "login" | "multiple") => void) | undefined;
65
+ referMultipleState: ((type: "multiple" | "login") => void) | undefined;
66
66
  backfillData: BackFillMultipleState | undefined;
67
67
  defaultQrWay: string | undefined;
68
68
  };
@@ -0,0 +1,3 @@
1
+ import { React } from 'shim-react';
2
+ import './style.less';
3
+ export declare const GuardRegisterAccountTypeView: React.FC;
@@ -8,4 +8,7 @@ export interface RegisterWithEmailCodeProps {
8
8
  publicConfig?: ApplicationConfig;
9
9
  registeContext?: any;
10
10
  }
11
+ /**
12
+ * @deprecated 废弃 🚒
13
+ */
11
14
  export declare const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
@@ -7,4 +7,7 @@ export interface RegisterWithPhoneProps {
7
7
  publicConfig?: ApplicationConfig;
8
8
  registeContext?: any;
9
9
  }
10
+ /**
11
+ * @deprecated 废弃 🚒
12
+ */
10
13
  export declare const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
@@ -348,6 +348,8 @@ export interface ApplicationConfig {
348
348
  enabledMailPwdRegisterValid?: boolean;
349
349
  /** 是否开启邮箱域名匹配登录 */
350
350
  enabledMatchEmailDomain?: boolean;
351
+ /** 注册是否开启账号类型选择 */
352
+ enableAccountTypeSelect?: boolean;
351
353
  /**
352
354
  * 登录注册排序
353
355
  */
@@ -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" | "default" | "icon" | undefined;
57
+ socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
58
58
  enterpriseConnections?: string[] | undefined;
59
59
  qrCodeScanOptions?: {
60
60
  extIdpConnId?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.50-alpha.0",
3
+ "version": "4.5.50-alpha.2",
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",