@authing/react-ui-components 3.1.12-rc.4 → 3.1.13-rc.1
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 +32 -3
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
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
|
+
}
|
|
17
|
+
declare module '@authing/react-ui-components/components/AuthClientProvider/index' {
|
|
18
|
+
export { AuthClientProvider, useGlobalAuthClient } from '@authing/react-ui-components/components/AuthClientProvider/AuthClientProvider';
|
|
19
|
+
|
|
20
|
+
}
|
|
1
21
|
declare module '@authing/react-ui-components/components/AuthingDropdown/index' {
|
|
2
22
|
import React, { FC } from 'react';
|
|
3
23
|
import './style.less';
|
|
@@ -1469,12 +1489,19 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1469
1489
|
declare module '@authing/react-ui-components/components/Guard/authClient' {
|
|
1470
1490
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1471
1491
|
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
1472
|
-
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string,
|
|
1492
|
+
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
1493
|
+
export const useInitGuardAuthClient: (props: {
|
|
1494
|
+
config?: GuardLocalConfig | undefined;
|
|
1495
|
+
appId: string;
|
|
1496
|
+
setError?: any;
|
|
1497
|
+
tenantId?: string | undefined;
|
|
1498
|
+
}) => AuthenticationClient | undefined;
|
|
1473
1499
|
export const getGuardAuthClient: () => AuthenticationClient;
|
|
1474
1500
|
export const useGuardAuthClient: () => AuthenticationClient;
|
|
1475
1501
|
|
|
1476
1502
|
}
|
|
1477
1503
|
declare module '@authing/react-ui-components/components/Guard/config' {
|
|
1504
|
+
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1478
1505
|
import { ReactNode } from 'react';
|
|
1479
1506
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1480
1507
|
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
@@ -1500,6 +1527,7 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1500
1527
|
*/
|
|
1501
1528
|
openEventsMapping?: boolean;
|
|
1502
1529
|
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1530
|
+
authClient?: AuthenticationClient;
|
|
1503
1531
|
}
|
|
1504
1532
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1505
1533
|
|
|
@@ -2708,6 +2736,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2708
2736
|
loadingComponent?: import("react").ReactNode;
|
|
2709
2737
|
openEventsMapping?: boolean | undefined;
|
|
2710
2738
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2739
|
+
authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
|
|
2711
2740
|
disableRegister?: boolean | undefined;
|
|
2712
2741
|
registerMethods?: RegisterMethods[] | undefined;
|
|
2713
2742
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -3233,7 +3262,7 @@ declare module '@authing/react-ui-components/components/context/module/context'
|
|
|
3233
3262
|
declare module '@authing/react-ui-components/components/index' {
|
|
3234
3263
|
export * from '@authing/react-ui-components/components/_utils/config/index';
|
|
3235
3264
|
export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
3236
|
-
export
|
|
3265
|
+
export * from '@authing/react-ui-components/components/AuthClientProvider/index';
|
|
3237
3266
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3238
3267
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3239
3268
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
@@ -3248,7 +3277,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3248
3277
|
|
|
3249
3278
|
}
|
|
3250
3279
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3251
|
-
const _default: "3.1.
|
|
3280
|
+
const _default: "3.1.13-rc.1";
|
|
3252
3281
|
export default _default;
|
|
3253
3282
|
|
|
3254
3283
|
}
|