@authing/react-ui-components 3.0.19-rc.3 → 3.0.19-rc.6

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.
package/lib/index.d.ts CHANGED
@@ -1256,6 +1256,10 @@ declare module '@authing/react-ui-components/components/Error/interface' {
1256
1256
  }
1257
1257
  declare module '@authing/react-ui-components/components/ForgetPassword/core/resetPassword' {
1258
1258
  /// <reference types="react" />
1259
+ export enum InputMethodMap {
1260
+ email = "email-code",
1261
+ phone = "phone-code"
1262
+ }
1259
1263
  interface ResetPasswordProps {
1260
1264
  onReset: any;
1261
1265
  publicConfig: any;
@@ -1886,7 +1890,7 @@ declare module '@authing/react-ui-components/components/MFA/core/face_deps' {
1886
1890
  }
1887
1891
  declare module '@authing/react-ui-components/components/MFA/core/sms' {
1888
1892
  import React from 'react';
1889
- import { MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1893
+ import { GuardMFAInitData, MFAConfig } from '@authing/react-ui-components/components/MFA/interface';
1890
1894
  export interface BindMFASmsProps {
1891
1895
  mfaToken: string;
1892
1896
  onBind: (phone: string) => void;
@@ -1903,13 +1907,14 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
1903
1907
  sendCodeRef: React.RefObject<HTMLButtonElement>;
1904
1908
  codeLength: number;
1905
1909
  areaCode: string;
1910
+ phoneCountryCode?: string;
1911
+ isInternationPhone: boolean;
1906
1912
  }
1907
1913
  export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
1908
1914
  export const MFASms: React.FC<{
1909
- mfaToken: string;
1910
- phone?: string;
1911
1915
  mfaLogin: any;
1912
1916
  config: MFAConfig;
1917
+ initData: GuardMFAInitData;
1913
1918
  }>;
1914
1919
 
1915
1920
  }
@@ -1972,6 +1977,7 @@ declare module '@authing/react-ui-components/components/MFA/interface' {
1972
1977
  sort: number;
1973
1978
  status: 0 | 1;
1974
1979
  }[];
1980
+ phoneCountryCode?: string;
1975
1981
  faceMfaEnabled: boolean;
1976
1982
  totpMfaEnabled: boolean;
1977
1983
  email?: string;
@@ -2413,19 +2419,13 @@ declare module '@authing/react-ui-components/components/_utils/corsVerification'
2413
2419
 
2414
2420
  }
2415
2421
  declare module '@authing/react-ui-components/components/_utils/countryList' {
2416
- export interface List {
2417
- [key: string]: string;
2418
- }
2419
- export const COUNTRY_LIST_ZH: List;
2420
- export const COUNTRY_LIST_EN: List;
2421
- export const Phone_List: List;
2422
- export interface Iso {
2422
+ export interface IsoType {
2423
2423
  iso: string;
2424
2424
  regions: string;
2425
2425
  regions_en: string;
2426
2426
  phoneCountryCode: string;
2427
2427
  }
2428
- export const isoInfo: Iso[];
2428
+ export const isoInfo: IsoType[];
2429
2429
 
2430
2430
  }
2431
2431
  declare module '@authing/react-ui-components/components/_utils/errorFace' {
@@ -2491,8 +2491,15 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2491
2491
  MountShaking: () => void;
2492
2492
  UnMountShaking: () => void;
2493
2493
  };
2494
- export const parsePhone: (fieldValue: string, areaCode?: string | undefined) => {
2495
- countryCode: string | undefined;
2494
+ export const defaultAreaCode: any;
2495
+ /**
2496
+ * 解析手机号
2497
+ * @param fieldValue 字段值
2498
+ * @param areaCode 区号
2499
+ * @returns
2500
+ */
2501
+ export const parsePhone: (fieldValue: string, areaCode?: string) => {
2502
+ countryCode: string;
2496
2503
  phoneNumber: string;
2497
2504
  };
2498
2505
 
@@ -2737,7 +2744,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2737
2744
 
2738
2745
  }
2739
2746
  declare module '@authing/react-ui-components/components/version/version' {
2740
- const _default: "3.0.19-rc.3";
2747
+ const _default: "3.0.19-rc.6";
2741
2748
  export default _default;
2742
2749
 
2743
2750
  }