@authing/react-ui-components 3.0.30 → 3.0.31-rc.2

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
@@ -1799,12 +1799,15 @@ declare module '@authing/react-ui-components/components/Login/socialLogin/IdpBut
1799
1799
  }
1800
1800
  declare module '@authing/react-ui-components/components/Login/socialLogin/index' {
1801
1801
  import React from 'react';
1802
+ import { ApplicationConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1802
1803
  import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
1803
1804
  import './style.less';
1804
1805
  export interface SocialLoginProps {
1805
1806
  appId: string;
1806
1807
  config: LoginConfig;
1807
1808
  onLogin: any;
1809
+ enterpriseConnectionObjs: ApplicationConfig['identityProviders'];
1810
+ socialConnectionObjs: SocialConnectionItem[];
1808
1811
  }
1809
1812
  export const SocialLogin: React.FC<SocialLoginProps>;
1810
1813
 
@@ -2296,6 +2299,7 @@ declare module '@authing/react-ui-components/components/Type/index' {
2296
2299
  contentCss?: string;
2297
2300
  target?: HTMLElement | string;
2298
2301
  __appHost__?: string;
2302
+ __pageConfig__?: GuardPageConfig;
2299
2303
  __publicConfig__?: ApplicationConfig;
2300
2304
  __internalRequest__?: boolean;
2301
2305
  }
@@ -2312,6 +2316,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
2312
2316
  EmailCode = "email-code",
2313
2317
  PhoneCode = "phone-code"
2314
2318
  }
2319
+ export enum GuardPageSene {
2320
+ Global = "guardGlobal"
2321
+ }
2322
+ export interface GuardPageConfig {
2323
+ [GuardPageSene.Global]: {
2324
+ showChangeLanguage: boolean;
2325
+ };
2326
+ }
2315
2327
 
2316
2328
  }
2317
2329
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2474,6 +2486,7 @@ declare module '@authing/react-ui-components/components/_utils/guradHttp' {
2474
2486
  }
2475
2487
  declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2476
2488
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
2489
+ import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
2477
2490
  export interface PhoneValidResult {
2478
2491
  isValid: boolean;
2479
2492
  phoneNumber: string;
@@ -2505,6 +2518,12 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
2505
2518
  countryCode: string;
2506
2519
  phoneNumber: string;
2507
2520
  };
2521
+ /**
2522
+ *
2523
+ * @param config
2524
+ * @returns[socialConnectionObjs 社交身份源连接对象 enterpriseConnectionObjs 企业身份源连接对象 isNoMethod 是否没有身份源 ]
2525
+ */
2526
+ export const useMethod: (config: LoginConfig) => any;
2508
2527
 
2509
2528
  }
2510
2529
  declare module '@authing/react-ui-components/components/_utils/http' {
@@ -2748,7 +2767,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2748
2767
 
2749
2768
  }
2750
2769
  declare module '@authing/react-ui-components/components/version/version' {
2751
- const _default: "3.0.30";
2770
+ const _default: "3.0.31-rc.2";
2752
2771
  export default _default;
2753
2772
 
2754
2773
  }
@@ -2908,13 +2927,13 @@ declare module '@authing/react-ui-components/config/webpack.config' {
2908
2927
  mimetype: string;
2909
2928
  name: string;
2910
2929
  customize?: undefined;
2930
+ presets?: undefined;
2911
2931
  plugins?: undefined;
2912
2932
  cacheDirectory?: undefined;
2913
2933
  cacheCompression?: undefined;
2914
2934
  compact?: undefined;
2915
2935
  babelrc?: undefined;
2916
2936
  configFile?: undefined;
2917
- presets?: undefined;
2918
2937
  sourceMaps?: undefined;
2919
2938
  inputSourceMap?: undefined;
2920
2939
  };
@@ -2930,13 +2949,13 @@ declare module '@authing/react-ui-components/config/webpack.config' {
2930
2949
  name: string;
2931
2950
  mimetype?: undefined;
2932
2951
  customize?: undefined;
2952
+ presets?: undefined;
2933
2953
  plugins?: undefined;
2934
2954
  cacheDirectory?: undefined;
2935
2955
  cacheCompression?: undefined;
2936
2956
  compact?: undefined;
2937
2957
  babelrc?: undefined;
2938
2958
  configFile?: undefined;
2939
- presets?: undefined;
2940
2959
  sourceMaps?: undefined;
2941
2960
  inputSourceMap?: undefined;
2942
2961
  };
@@ -2950,6 +2969,7 @@ declare module '@authing/react-ui-components/config/webpack.config' {
2950
2969
  loader: string;
2951
2970
  options: {
2952
2971
  customize: string;
2972
+ presets: string[];
2953
2973
  plugins: (string | false | (string | {
2954
2974
  loaderMap: {
2955
2975
  svg: {
@@ -2968,7 +2988,6 @@ declare module '@authing/react-ui-components/config/webpack.config' {
2968
2988
  name?: undefined;
2969
2989
  babelrc?: undefined;
2970
2990
  configFile?: undefined;
2971
- presets?: undefined;
2972
2991
  sourceMaps?: undefined;
2973
2992
  inputSourceMap?: undefined;
2974
2993
  };
@@ -3043,13 +3062,13 @@ declare module '@authing/react-ui-components/config/webpack.config' {
3043
3062
  limit?: undefined;
3044
3063
  mimetype?: undefined;
3045
3064
  customize?: undefined;
3065
+ presets?: undefined;
3046
3066
  plugins?: undefined;
3047
3067
  cacheDirectory?: undefined;
3048
3068
  cacheCompression?: undefined;
3049
3069
  compact?: undefined;
3050
3070
  babelrc?: undefined;
3051
3071
  configFile?: undefined;
3052
- presets?: undefined;
3053
3072
  sourceMaps?: undefined;
3054
3073
  inputSourceMap?: undefined;
3055
3074
  };