@authing/react-ui-components 3.0.31 → 3.0.32-rc.0

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 = "global"
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' {
@@ -2577,8 +2596,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
2577
2596
  key: string;
2578
2597
  value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
2579
2598
  }[];
2580
- export const isWechatBrowser: () => boolean;
2581
- export const isLarkBrowser: () => boolean;
2599
+ export const isWechatBrowser: () => boolean | null;
2600
+ export const isLarkBrowser: () => boolean | null;
2582
2601
  export const assembledAppHost: (identifier: string, host: string) => string;
2583
2602
  export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
2584
2603
  export enum PasswordStrength {
@@ -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.31";
2770
+ const _default: "3.0.32-rc.0";
2752
2771
  export default _default;
2753
2772
 
2754
2773
  }