@authing/react-ui-components 3.1.0-rc.2 → 3.1.0-rc.20

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
@@ -1116,7 +1116,7 @@ declare module '@authing/react-ui-components/components/BindTotp/interface' {
1116
1116
  }
1117
1117
  declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
1118
1118
  /// <reference types="react" />
1119
- export const ChangeLanguage: (props: any) => JSX.Element;
1119
+ export const ChangeLanguage: (props: any) => JSX.Element | null;
1120
1120
 
1121
1121
  }
1122
1122
  declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
@@ -1286,6 +1286,10 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1286
1286
  code?: string;
1287
1287
  }[];
1288
1288
  }
1289
+ export enum OmitCompleteInfo {
1290
+ 'registerByEmail' = "email",
1291
+ 'registerByPhoneCode' = "phone"
1292
+ }
1289
1293
 
1290
1294
  }
1291
1295
  declare module '@authing/react-ui-components/components/CompleteInfo/utils' {
@@ -1404,7 +1408,7 @@ declare module '@authing/react-ui-components/components/Guard/Guard' {
1404
1408
  export interface GuardProps extends GuardEvents, IG2FCProps {
1405
1409
  config?: Partial<GuardLocalConfig>;
1406
1410
  }
1407
- export const Guard: (props: GuardProps) => JSX.Element;
1411
+ export const Guard: import("react").MemoExoticComponent<(props: GuardProps) => JSX.Element>;
1408
1412
 
1409
1413
  }
1410
1414
  declare module '@authing/react-ui-components/components/Guard/GuardModule/stateMachine' {
@@ -1954,11 +1958,11 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/IdpBut
1954
1958
  declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
1955
1959
  import React from 'react';
1956
1960
  import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1957
- import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1958
1961
  import './style.less';
1962
+ import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/index';
1959
1963
  export interface SocialLoginProps {
1960
1964
  appId: string;
1961
- config: LoginConfig;
1965
+ config: GuardLocalConfig;
1962
1966
  onLoginFailed: any;
1963
1967
  onLoginSuccess: any;
1964
1968
  enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
@@ -1969,7 +1973,11 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/index'
1969
1973
  }
1970
1974
  declare module '@authing/react-ui-components/components/Login/socialLogin/postMessage' {
1971
1975
  import { AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
1972
- export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | undefined;
1976
+ export const usePostMessage: () => (evt: MessageEvent) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | {
1977
+ code: any;
1978
+ data: any;
1979
+ onGuardHandling: undefined;
1980
+ } | undefined;
1973
1981
  export const useErrorHandling: () => (res: AuthingResponse) => import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>;
1974
1982
 
1975
1983
  }
@@ -2122,6 +2130,7 @@ declare module '@authing/react-ui-components/components/MFA/core/sms' {
2122
2130
  areaCode: string;
2123
2131
  phoneCountryCode?: string;
2124
2132
  isInternationSms: boolean;
2133
+ userPhone?: string;
2125
2134
  }
2126
2135
  export const VerifyMFASms: React.FC<VerifyMFASmsProps>;
2127
2136
  export const MFASms: React.FC<{
@@ -2304,7 +2313,8 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2304
2313
  import React from 'react';
2305
2314
  import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2306
2315
  export interface RegisterWithEmailProps {
2307
- onRegister: Function;
2316
+ onRegisterSuccess: Function;
2317
+ onRegisterFailed: Function;
2308
2318
  onBeforeRegister?: Function;
2309
2319
  publicConfig?: ApplicationConfig;
2310
2320
  agreements: Agreement[];
@@ -2317,7 +2327,8 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
2317
2327
  import React from 'react';
2318
2328
  import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2319
2329
  export interface RegisterWithPhoneProps {
2320
- onRegister: Function;
2330
+ onRegisterSuccess: Function;
2331
+ onRegisterFailed: Function;
2321
2332
  agreements: Agreement[];
2322
2333
  publicConfig?: ApplicationConfig;
2323
2334
  registeContext?: any;
@@ -2525,6 +2536,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
2525
2536
  EmailCode = "email-code",
2526
2537
  PhoneCode = "phone-code"
2527
2538
  }
2539
+ export enum GuardPageSene {
2540
+ Global = "global"
2541
+ }
2542
+ export interface GuardPageConfig {
2543
+ [GuardPageSene.Global]: {
2544
+ showChangeLanguage: boolean;
2545
+ };
2546
+ }
2528
2547
 
2529
2548
  }
2530
2549
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2714,7 +2733,7 @@ declare module '@authing/react-ui-components/components/_utils/config' {
2714
2733
  }
2715
2734
  declare module '@authing/react-ui-components/components/_utils/context' {
2716
2735
  import React from 'react';
2717
- import { GuardEvents, GuardLocalConfig, GuardModuleType } from '@authing/react-ui-components/components/index';
2736
+ import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '@authing/react-ui-components/components/index';
2718
2737
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2719
2738
  import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
2720
2739
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
@@ -2731,6 +2750,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2731
2750
  backModule?: () => void;
2732
2751
  isAuthFlow: boolean;
2733
2752
  contextLoaded: boolean;
2753
+ guardPageConfig: Partial<GuardPageConfig>;
2734
2754
  }
2735
2755
  export const createGuardXContext: () => {
2736
2756
  Provider: React.FC<{
@@ -2752,6 +2772,7 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2752
2772
  export const useGuardFinallyConfig: () => GuardLocalConfig;
2753
2773
  export const useGuardContextLoaded: () => boolean;
2754
2774
  export const useGuardIsAuthFlow: () => boolean;
2775
+ export const useGuardPageConfig: () => Partial<GuardPageConfig>;
2755
2776
 
2756
2777
  }
2757
2778
  declare module '@authing/react-ui-components/components/_utils/corsVerification' {
@@ -2812,6 +2833,15 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
2812
2833
  export const getGuardHttp: () => GuardHttp;
2813
2834
  export const useGuardHttp: () => GuardHttp;
2814
2835
 
2836
+ }
2837
+ declare module '@authing/react-ui-components/components/_utils/guardPageConfig' {
2838
+ import { GuardPageConfig } from '@authing/react-ui-components/components/index';
2839
+ import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2840
+ export const getPageConfig: (appId: string) => GuardPageConfig;
2841
+ export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
2842
+ export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
2843
+ export const useGuardPageConfig: (appId: string, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
2844
+
2815
2845
  }
2816
2846
  declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2817
2847
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
@@ -3121,6 +3151,7 @@ declare module '@authing/react-ui-components/components/context/module/context'
3121
3151
  }
3122
3152
  declare module '@authing/react-ui-components/components/index' {
3123
3153
  export * from '@authing/react-ui-components/components/_utils/config';
3154
+ export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
3124
3155
  export type { AuthenticationClientOptions } from 'authing-js-sdk';
3125
3156
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
3126
3157
  export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
@@ -3136,7 +3167,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3136
3167
 
3137
3168
  }
3138
3169
  declare module '@authing/react-ui-components/components/version/version' {
3139
- const _default: "3.1.0-rc.2";
3170
+ const _default: "3.1.0-rc.20";
3140
3171
  export default _default;
3141
3172
 
3142
3173
  }