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

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
@@ -1675,10 +1675,10 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
1675
1675
  declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/FormItemIdentify' {
1676
1676
  import { FormItemProps } from 'antd/lib/form';
1677
1677
  import React from 'react';
1678
- import { InputMethod } from '@authing/react-ui-components/components/Login/core/withVerifyCode/index';
1678
+ import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1679
1679
  export interface FormItemIdentifyProps extends FormItemProps {
1680
1680
  checkRepeat?: boolean;
1681
- methods: InputMethod;
1681
+ methods: VerifyLoginMethods[];
1682
1682
  currentMethod?: 'phone-code' | 'email-code';
1683
1683
  areaCode?: string;
1684
1684
  }
@@ -1688,9 +1688,7 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
1688
1688
  declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/InputInternationPhone' {
1689
1689
  import { InputProps } from 'antd/lib/input';
1690
1690
  import React from 'react';
1691
- import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1692
1691
  export interface InputInternationPhoneProps extends InputProps {
1693
- methods: VerifyLoginMethods[];
1694
1692
  areaCode: string;
1695
1693
  onAreaCodeChange: (areaCode: string) => void;
1696
1694
  }
@@ -1711,11 +1709,6 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
1711
1709
  declare module '@authing/react-ui-components/components/Login/core/withVerifyCode/index' {
1712
1710
  /// <reference types="react" />
1713
1711
  import './styles.less';
1714
- export const LanguageMap: any;
1715
- export enum InputMethod {
1716
- EmailCode = "email-code",
1717
- PhoneCode = "phone-code"
1718
- }
1719
1712
  export const LoginWithVerifyCode: (props: any) => JSX.Element;
1720
1713
 
1721
1714
  }
@@ -1898,6 +1891,9 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
1898
1891
  mfaToken: string;
1899
1892
  onBind: (phone: string) => void;
1900
1893
  config: any;
1894
+ areaCode: string;
1895
+ setAreaCode: (areaCode: string) => void;
1896
+ isInternationPhone: boolean;
1901
1897
  }
1902
1898
  export const BindMFASms: React.FC<BindMFASmsProps>;
1903
1899
  export interface VerifyMFASmsProps {
@@ -1906,6 +1902,7 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
1906
1902
  onVerify: (code: number, data: any) => void;
1907
1903
  sendCodeRef: React.RefObject<HTMLButtonElement>;
1908
1904
  codeLength: number;
1905
+ areaCode: string;
1909
1906
  }
1910
1907
  export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
1911
1908
  export const MFASms: React.FC<{
@@ -2103,12 +2100,13 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2103
2100
  }
2104
2101
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2105
2102
  import React from 'react';
2106
- import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2103
+ import { Agreement, ApplicationConfig, VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2107
2104
  export interface RegisterWithPhoneProps {
2108
2105
  onRegister: Function;
2109
2106
  agreements: Agreement[];
2110
2107
  publicConfig?: ApplicationConfig;
2111
2108
  registeContext?: any;
2109
+ verifyLoginMethods: VerifyLoginMethods[];
2112
2110
  }
2113
2111
  export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
2114
2112
 
@@ -2183,7 +2181,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByPhone
2183
2181
  import './style.less';
2184
2182
  import { InputProps } from 'antd/lib/input';
2185
2183
  export interface SendCodeByPhoneProps extends InputProps {
2186
- data: string;
2184
+ data?: string;
2187
2185
  form?: any;
2188
2186
  onSendCodeBefore?: any;
2189
2187
  fieldName?: string;
@@ -2303,6 +2301,11 @@ declare module '@authing/react-ui-components/components/Type/index' {
2303
2301
  __changeModule?: (moduleName: GuardModuleType, initData?: any) => void;
2304
2302
  }
2305
2303
  export const getDefaultG2Config: () => IG2Config;
2304
+ export const LanguageMap: any;
2305
+ export enum InputMethod {
2306
+ EmailCode = "email-code",
2307
+ PhoneCode = "phone-code"
2308
+ }
2306
2309
 
2307
2310
  }
2308
2311
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2471,6 +2474,13 @@ declare module '@authing/react-ui-components/components/_utils/guradHttp' {
2471
2474
  }
2472
2475
  declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2473
2476
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
2477
+ export interface PhoneValidResult {
2478
+ isValid: boolean;
2479
+ phoneNumber: string;
2480
+ countryIso2: string;
2481
+ countryIso3: string;
2482
+ countryCode: string;
2483
+ }
2474
2484
  export const useChangeModule: () => (nextModuleType: GuardModuleType, nextData?: any) => void;
2475
2485
  export const useAppId: (appId?: string | undefined) => string;
2476
2486
  export const useDebounce: (fn: any, delay: number) => (...args: any[]) => void;
@@ -2481,6 +2491,10 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2481
2491
  MountShaking: () => void;
2482
2492
  UnMountShaking: () => void;
2483
2493
  };
2494
+ export const parsePhone: (fieldValue: string, areaCode?: string | undefined) => {
2495
+ countryCode: string | undefined;
2496
+ phoneNumber: string;
2497
+ };
2484
2498
 
2485
2499
  }
2486
2500
  declare module '@authing/react-ui-components/components/_utils/http' {
@@ -2723,7 +2737,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2723
2737
 
2724
2738
  }
2725
2739
  declare module '@authing/react-ui-components/components/version/version' {
2726
- const _default: "3.0.19-rc.0";
2740
+ const _default: "3.0.19-rc.3";
2727
2741
  export default _default;
2728
2742
 
2729
2743
  }