@authing/guard-shim-react18 4.5.31-alpha.5 → 4.5.31-alpha.7

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.
@@ -1,7 +1,7 @@
1
1
  import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
2
2
  import { AuthenticationClient, User } from 'authing-js-sdk';
3
3
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
4
- import { Agreement, LoginMethods, SocialConnectionProvider } from '../Type/application';
4
+ import { Agreement, LoginMethods, Protocol, SocialConnectionProvider } from '../Type/application';
5
5
  export interface LoginConfig extends IG2Config {
6
6
  autoRegister?: boolean;
7
7
  disableResetPwd?: boolean;
@@ -39,3 +39,5 @@ export interface GuardLoginInitData {
39
39
  _lockMethod?: string;
40
40
  }
41
41
  export declare const getDefaultLoginConfig: () => LoginConfig;
42
+ export declare const baseLoginPathMapping: Partial<Record<Protocol, string | null>>;
43
+ export declare const loginUrlFieldMapping: Partial<Record<Protocol, string>>;
@@ -322,6 +322,8 @@ export interface ApplicationConfig {
322
322
  enableCompletePassword: boolean;
323
323
  /** 是否开启手机密码注册手机号验证 */
324
324
  enabledPPRegisterValid?: boolean;
325
+ /** 是否开启邮箱域名匹配登录 */
326
+ enabledMatchEmailDomain?: boolean;
325
327
  /**
326
328
  * 登录注册排序
327
329
  */
@@ -1,4 +1,5 @@
1
1
  import { Rule } from 'shim-antd/lib/form';
2
+ import qs from 'qs';
2
3
  import { User } from 'authing-js-sdk';
3
4
  import { GuardProps } from '../Guard';
4
5
  import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods, RegisterSortMethods, TabFieldsI18nItem } from '../Type/application';
@@ -33,11 +34,12 @@ export declare function isObject(item: any): any;
33
34
  */
34
35
  export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
35
36
  /**
36
- * @description 在托管页下上传query.login_page_context中指定的用户自定义字段进行补全(/oidc/auth发起的认证只会携带 login_page_context)
37
+ * 在托管页下上传query中指定的用户自定义字段进行补全
38
+ * @param params 指定上传的用户自定义字段
37
39
  */
38
- export declare const getUserRegisterParams: () => {
40
+ export declare const getUserRegisterParams: (params?: string[]) => {
39
41
  key: string;
40
- value: any;
42
+ value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
41
43
  }[];
42
44
  export declare enum PasswordStrength {
43
45
  NoCheck = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.31-alpha.5",
3
+ "version": "4.5.31-alpha.7",
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",