@authing/guard-shim-react18 4.5.50-alpha.8 → 4.5.50

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.
@@ -8,8 +8,6 @@ export interface LoginConfig extends IG2Config {
8
8
  disableRegister?: boolean;
9
9
  defaultLoginMethod?: LoginMethods;
10
10
  loginMethods?: LoginMethods[];
11
- defaultLoginTab?: LoginMethods;
12
- loginTabs?: LoginMethods[];
13
11
  passwordLoginMethods?: string[];
14
12
  socialConnections?: SocialConnectionProvider[];
15
13
  socialConnectionsBtnShape?: 'default' | 'button' | 'icon';
@@ -17,8 +17,7 @@ export declare enum LoginMethods {
17
17
  WECHATWORKAGENCYQRCONNECT = "wechatwork-agency-qrcode",// 代开发形式的内部应用
18
18
  DingTalkQrcode = "dingtalk-qrcode",//钉钉扫码
19
19
  Passkey = "passkey",// passkey
20
- ZJZWFWQrcode = "zjzwfw-qrcode",// 浙江政务钉
21
- MFA = "mfa"
20
+ ZJZWFWQrcode = "zjzwfw-qrcode"
22
21
  }
23
22
  export declare enum OIDCConnectionMode {
24
23
  FRONT_CHANNEL = "FRONT_CHANNEL",
@@ -182,9 +181,6 @@ export interface ApplicationVerifyCodeTabConfig {
182
181
  validRegisterMethods?: string[];
183
182
  validLoginMethods?: string[];
184
183
  }
185
- export interface ApplicationMfaTabConfig {
186
- validLoginMethods?: MfaLoginMethods[];
187
- }
188
184
  export interface Agreement {
189
185
  id: number;
190
186
  title: string;
@@ -195,7 +191,6 @@ export interface Agreement {
195
191
  export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
196
192
  export type VerifyLoginMethods = 'email-code' | 'phone-code';
197
193
  export type ComplateFiledsPlace = 'register' | 'login';
198
- export type MfaLoginMethods = 'email-mfa' | 'phone-mfa';
199
194
  export interface TabFieldsI18nItem {
200
195
  key: string;
201
196
  label: string;
@@ -318,7 +313,6 @@ export interface ApplicationConfig {
318
313
  verifyCode?: LoginTypeI18nProps;
319
314
  ad?: LoginTypeI18nProps;
320
315
  ldap?: LoginTypeI18nProps;
321
- mfa?: LoginTypeI18nProps;
322
316
  };
323
317
  idpLayout?: {
324
318
  maxConns: number;
@@ -330,7 +324,6 @@ export interface ApplicationConfig {
330
324
  oidcConfig: OidcClientMetadata;
331
325
  passwordTabConfig: ApplicationPasswordTabConfig;
332
326
  verifyCodeTabConfig?: ApplicationVerifyCodeTabConfig;
333
- mfaTabConfig?: ApplicationMfaTabConfig;
334
327
  agreementEnabled: boolean;
335
328
  agreements: Agreement[];
336
329
  customPasswordStrength: any;
@@ -454,4 +447,5 @@ export interface ApplicationConfig {
454
447
  title: I18nLang;
455
448
  desc: I18nLang;
456
449
  };
450
+ resetPwdSelectEmailPhone?: 'email' | 'phone' | 'email_and_phone';
457
451
  }
@@ -61,10 +61,6 @@ export declare enum InputMethod {
61
61
  EmailCode = "email-code",
62
62
  PhoneCode = "phone-code"
63
63
  }
64
- export declare enum MFAInputMethod {
65
- PhoneMfa = "phone-mfa",
66
- EmailMfa = "email-mfa"
67
- }
68
64
  export declare enum GuardPageSene {
69
65
  Global = "global"
70
66
  }
@@ -52,8 +52,6 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
52
52
  disableResetPwd?: boolean | undefined;
53
53
  defaultLoginMethod?: LoginMethods | undefined;
54
54
  loginMethods?: LoginMethods[] | undefined;
55
- defaultLoginTab?: LoginMethods | undefined;
56
- loginTabs?: LoginMethods[] | undefined;
57
55
  passwordLoginMethods?: string[] | undefined;
58
56
  socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
59
57
  socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.50-alpha.8",
3
+ "version": "4.5.50",
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,17 +0,0 @@
1
- import { MFAInputMethod } from '../../../Type';
2
- import { ReactNode } from 'shim-react';
3
- interface MFAFormItemIdentifyProps {
4
- name: string;
5
- className?: string;
6
- form: any;
7
- currentMethod: MFAInputMethod;
8
- methods: MFAInputMethod[];
9
- areaCode?: string;
10
- checkRepeat?: boolean;
11
- checkExist?: boolean;
12
- required?: boolean;
13
- placeholder?: string;
14
- children?: ReactNode;
15
- }
16
- export declare function MFAFormItemIdentify(props: MFAFormItemIdentifyProps): JSX.Element;
17
- export {};
@@ -1,7 +0,0 @@
1
- import { InputProps } from 'shim-antd';
2
- import { React } from 'shim-react';
3
- import { MfaLoginMethods } from '../../../Type/application';
4
- export interface InputIdentifyProps extends InputProps {
5
- methods: MfaLoginMethods[];
6
- }
7
- export declare const InputIdentify: React.FC<InputIdentifyProps>;
@@ -1,2 +0,0 @@
1
- declare const LoginWithMFA: (props: any) => JSX.Element;
2
- export { LoginWithMFA };