@authing/react-ui-components 3.1.13-rc.6 → 3.1.14-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
@@ -445,6 +445,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
445
445
  defaultISOType: string;
446
446
  };
447
447
  css: string;
448
+ customLoading?: string;
448
449
  name: string;
449
450
  logo: string;
450
451
  description?: string;
@@ -1489,21 +1490,19 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
1489
1490
  declare module '@authing/react-ui-components/components/Guard/authClient' {
1490
1491
  import { AuthenticationClient } from 'authing-js-sdk';
1491
1492
  import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1492
- let authClient: AuthenticationClient;
1493
1493
  export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
1494
1494
  export const useInitGuardAuthClient: (props: {
1495
1495
  config?: GuardLocalConfig | undefined;
1496
- appId?: string | undefined;
1497
- authClient?: AuthenticationClient | undefined;
1496
+ appId: string;
1498
1497
  setError?: any;
1499
1498
  tenantId?: string | undefined;
1500
1499
  }) => AuthenticationClient | undefined;
1501
1500
  export const getGuardAuthClient: () => AuthenticationClient;
1502
1501
  export const useGuardAuthClient: () => AuthenticationClient;
1503
- export {};
1504
1502
 
1505
1503
  }
1506
1504
  declare module '@authing/react-ui-components/components/Guard/config' {
1505
+ import { AuthenticationClient } from 'authing-js-sdk';
1507
1506
  import { ReactNode } from 'react';
1508
1507
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
1509
1508
  import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
@@ -1529,6 +1528,7 @@ declare module '@authing/react-ui-components/components/Guard/config' {
1529
1528
  */
1530
1529
  openEventsMapping?: boolean;
1531
1530
  _qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
1531
+ authClient?: AuthenticationClient;
1532
1532
  }
1533
1533
  export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
1534
1534
 
@@ -1551,6 +1551,7 @@ declare module '@authing/react-ui-components/components/Guard/core/renderContext
1551
1551
  export const RenderContext: React.FC<{
1552
1552
  guardProps: GuardProps;
1553
1553
  initState: ModuleState;
1554
+ forceUpdate: number;
1554
1555
  }>;
1555
1556
 
1556
1557
  }
@@ -1568,10 +1569,10 @@ declare module '@authing/react-ui-components/components/Guard/core/renderModule'
1568
1569
 
1569
1570
  }
1570
1571
  declare module '@authing/react-ui-components/components/Guard/core/useAppendConfig' {
1571
- import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
1572
+ import { GuardProps } from '@authing/react-ui-components/components/index';
1572
1573
  export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
1573
1574
  export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
1574
- export const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
1575
+ export const useInitGuardAppendConfig: (guardProps: GuardProps, setForceUpdate: any) => void;
1575
1576
 
1576
1577
  }
1577
1578
  declare module '@authing/react-ui-components/components/Guard/core/usePlugin' {
@@ -2531,6 +2532,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
2531
2532
  text?: string;
2532
2533
  className?: string;
2533
2534
  onClick?: any;
2535
+ disabled?: boolean;
2534
2536
  }
2535
2537
  const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
2536
2538
  export default _default;
@@ -2569,14 +2571,13 @@ declare module '@authing/react-ui-components/components/Type/index' {
2569
2571
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
2570
2572
  import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
2571
2573
  export interface IG2FCProps extends IG2Events {
2572
- appId?: string;
2574
+ appId: string;
2573
2575
  tenantId?: string;
2574
2576
  config?: Partial<IG2Config>;
2575
2577
  visible?: boolean;
2576
2578
  initData?: any;
2577
2579
  appendConfig?: GuardAppendConfig;
2578
2580
  facePlugin?: FacePlugin;
2579
- authClient?: AuthenticationClient;
2580
2581
  }
2581
2582
  export interface GuardAppendConfig {
2582
2583
  internalRequest?: boolean;
@@ -2654,6 +2655,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2654
2655
  form?: FormInstance;
2655
2656
  checkRepeat?: boolean;
2656
2657
  areaCode?: string;
2658
+ isCheckI18nSms?: boolean;
2657
2659
  }
2658
2660
  export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
2659
2661
  form?: FormInstance;
@@ -2728,7 +2730,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2728
2730
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2729
2731
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
2730
2732
  export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
2731
- export const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
2733
+ export const useMergePublicConfig: (appId: string, forceUpdate: number, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, serError?: any) => {
2732
2734
  host: string;
2733
2735
  isSSO?: boolean | undefined;
2734
2736
  defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
@@ -2737,6 +2739,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2737
2739
  loadingComponent?: import("react").ReactNode;
2738
2740
  openEventsMapping?: boolean | undefined;
2739
2741
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2742
+ authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
2740
2743
  disableRegister?: boolean | undefined;
2741
2744
  registerMethods?: RegisterMethods[] | undefined;
2742
2745
  defaultRegisterMethod?: RegisterMethods | undefined;
@@ -2767,7 +2770,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2767
2770
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2768
2771
  enterpriseConnections?: string[] | undefined;
2769
2772
  qrCodeScanOptions?: {
2770
- currentDocument?: Document | undefined;
2771
2773
  extIdpConnId?: string | undefined;
2772
2774
  autoExchangeUserInfo?: boolean | undefined;
2773
2775
  size?: {
@@ -2814,7 +2816,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2814
2816
  export const getPageConfig: (appId: string) => GuardPageConfig;
2815
2817
  export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
2816
2818
  export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
2817
- export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
2819
+ export const useGuardPageConfig: (appId: string, forceUpdate: number, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
2818
2820
 
2819
2821
  }
2820
2822
  declare module '@authing/react-ui-components/components/_utils/context' {
@@ -3070,6 +3072,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3070
3072
  export const isXiaomiBrowser: () => boolean | null;
3071
3073
  export const isDingtalkBrowser: () => boolean | null;
3072
3074
  export const isQQBrowser: () => boolean | null;
3075
+ export const isQQBuiltInBrowser: () => boolean | null;
3076
+ export const isWeWorkBuiltInBrowser: () => boolean | null;
3073
3077
  export const isSpecialBrowser: () => boolean | null;
3074
3078
  export const assembledAppHost: (identifier: string, host: string) => string;
3075
3079
  export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
@@ -3095,16 +3099,6 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3095
3099
  export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
3096
3100
  export const getDocumentNode: (node: Node & ParentNode) => Document;
3097
3101
 
3098
- }
3099
- declare module '@authing/react-ui-components/components/_utils/initAppId' {
3100
- import { AuthenticationClient } from 'authing-js-sdk';
3101
- export interface UseInitAppidProps {
3102
- propsAppid?: string;
3103
- propsAuthClient?: AuthenticationClient;
3104
- setError?: any;
3105
- }
3106
- export const useInitAppId: (propsAppid?: string | undefined, propsAuthClient?: AuthenticationClient | undefined, setError?: any) => string | undefined;
3107
-
3108
3102
  }
3109
3103
  declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
3110
3104
  import common from '@authing/react-ui-components/components/_utils/locales/en/common/index';
@@ -3287,7 +3281,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3287
3281
 
3288
3282
  }
3289
3283
  declare module '@authing/react-ui-components/components/version/version' {
3290
- const _default: "3.1.13-rc.6";
3284
+ const _default: "3.1.14-rc.2";
3291
3285
  export default _default;
3292
3286
 
3293
3287
  }