@authing/react-ui-components 3.1.12-rc.3 → 3.1.13-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
@@ -1,3 +1,19 @@
1
+ declare module '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider' {
2
+ import React from 'react';
3
+ import { AuthClientContextProps } from '@authing/react-ui-components/components/AuthClientProvider/context';
4
+ export const AuthClientProvider: React.FC<AuthClientContextProps>;
5
+ export const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
6
+
7
+ }
8
+ declare module '@authing/react-ui-components/components/AuthClientProvider/context' {
9
+ import { AuthenticationClient } from 'authing-js-sdk';
10
+ import React from 'react';
11
+ export interface AuthClientContextProps {
12
+ client: AuthenticationClient;
13
+ }
14
+ export const AuthClientContext: React.Context<AuthClientContextProps | undefined>;
15
+
16
+ }
1
17
  declare module '@authing/react-ui-components/components/AuthingDropdown/index' {
2
18
  import React, { FC } from 'react';
3
19
  import './style.less';
@@ -1469,12 +1485,19 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
1469
1485
  declare module '@authing/react-ui-components/components/Guard/authClient' {
1470
1486
  import { AuthenticationClient } from 'authing-js-sdk';
1471
1487
  import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1472
- export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, websocketHost: string, tenantId?: string | undefined) => AuthenticationClient;
1488
+ export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
1489
+ export const useInitGuardAuthClient: (props: {
1490
+ config?: GuardLocalConfig | undefined;
1491
+ appId: string;
1492
+ setError?: any;
1493
+ tenantId?: string | undefined;
1494
+ }) => AuthenticationClient | undefined;
1473
1495
  export const getGuardAuthClient: () => AuthenticationClient;
1474
1496
  export const useGuardAuthClient: () => AuthenticationClient;
1475
1497
 
1476
1498
  }
1477
1499
  declare module '@authing/react-ui-components/components/Guard/config' {
1500
+ import { AuthenticationClient } from 'authing-js-sdk';
1478
1501
  import { ReactNode } from 'react';
1479
1502
  import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
1480
1503
  import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
@@ -1500,6 +1523,7 @@ declare module '@authing/react-ui-components/components/Guard/config' {
1500
1523
  */
1501
1524
  openEventsMapping?: boolean;
1502
1525
  _qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
1526
+ authClient?: AuthenticationClient;
1503
1527
  }
1504
1528
  export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
1505
1529
 
@@ -2708,6 +2732,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2708
2732
  loadingComponent?: import("react").ReactNode;
2709
2733
  openEventsMapping?: boolean | undefined;
2710
2734
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2735
+ authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
2711
2736
  disableRegister?: boolean | undefined;
2712
2737
  registerMethods?: RegisterMethods[] | undefined;
2713
2738
  defaultRegisterMethod?: RegisterMethods | undefined;
@@ -3248,7 +3273,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3248
3273
 
3249
3274
  }
3250
3275
  declare module '@authing/react-ui-components/components/version/version' {
3251
- const _default: "3.1.12-rc.3";
3276
+ const _default: "3.1.13-rc.0";
3252
3277
  export default _default;
3253
3278
 
3254
3279
  }