@authing/react-ui-components 3.1.13-rc.0 → 3.1.13-rc.3
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 +31 -17
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ declare module '@authing/react-ui-components/components/AuthClientProvider/conte
|
|
|
13
13
|
}
|
|
14
14
|
export const AuthClientContext: React.Context<AuthClientContextProps | undefined>;
|
|
15
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
|
+
|
|
16
20
|
}
|
|
17
21
|
declare module '@authing/react-ui-components/components/AuthingDropdown/index' {
|
|
18
22
|
import React, { FC } from 'react';
|
|
@@ -1485,19 +1489,21 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1485
1489
|
declare module '@authing/react-ui-components/components/Guard/authClient' {
|
|
1486
1490
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1487
1491
|
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
1492
|
+
let authClient: AuthenticationClient;
|
|
1488
1493
|
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
1489
1494
|
export const useInitGuardAuthClient: (props: {
|
|
1490
1495
|
config?: GuardLocalConfig | undefined;
|
|
1491
|
-
appId
|
|
1496
|
+
appId?: string | undefined;
|
|
1497
|
+
authClient?: AuthenticationClient | undefined;
|
|
1492
1498
|
setError?: any;
|
|
1493
1499
|
tenantId?: string | undefined;
|
|
1494
1500
|
}) => AuthenticationClient | undefined;
|
|
1495
1501
|
export const getGuardAuthClient: () => AuthenticationClient;
|
|
1496
1502
|
export const useGuardAuthClient: () => AuthenticationClient;
|
|
1503
|
+
export {};
|
|
1497
1504
|
|
|
1498
1505
|
}
|
|
1499
1506
|
declare module '@authing/react-ui-components/components/Guard/config' {
|
|
1500
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1501
1507
|
import { ReactNode } from 'react';
|
|
1502
1508
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1503
1509
|
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
@@ -1523,7 +1529,6 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1523
1529
|
*/
|
|
1524
1530
|
openEventsMapping?: boolean;
|
|
1525
1531
|
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1526
|
-
authClient?: AuthenticationClient;
|
|
1527
1532
|
}
|
|
1528
1533
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1529
1534
|
|
|
@@ -1546,7 +1551,6 @@ declare module '@authing/react-ui-components/components/Guard/core/renderContext
|
|
|
1546
1551
|
export const RenderContext: React.FC<{
|
|
1547
1552
|
guardProps: GuardProps;
|
|
1548
1553
|
initState: ModuleState;
|
|
1549
|
-
forceUpdate: number;
|
|
1550
1554
|
}>;
|
|
1551
1555
|
|
|
1552
1556
|
}
|
|
@@ -1564,10 +1568,10 @@ declare module '@authing/react-ui-components/components/Guard/core/renderModule'
|
|
|
1564
1568
|
|
|
1565
1569
|
}
|
|
1566
1570
|
declare module '@authing/react-ui-components/components/Guard/core/useAppendConfig' {
|
|
1567
|
-
import {
|
|
1571
|
+
import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
|
|
1568
1572
|
export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1569
1573
|
export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1570
|
-
export const useInitGuardAppendConfig: (
|
|
1574
|
+
export const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
|
|
1571
1575
|
|
|
1572
1576
|
}
|
|
1573
1577
|
declare module '@authing/react-ui-components/components/Guard/core/usePlugin' {
|
|
@@ -2565,13 +2569,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2565
2569
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
2566
2570
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
2567
2571
|
export interface IG2FCProps extends IG2Events {
|
|
2568
|
-
appId
|
|
2572
|
+
appId?: string;
|
|
2569
2573
|
tenantId?: string;
|
|
2570
2574
|
config?: Partial<IG2Config>;
|
|
2571
2575
|
visible?: boolean;
|
|
2572
2576
|
initData?: any;
|
|
2573
2577
|
appendConfig?: GuardAppendConfig;
|
|
2574
2578
|
facePlugin?: FacePlugin;
|
|
2579
|
+
authClient?: AuthenticationClient;
|
|
2575
2580
|
}
|
|
2576
2581
|
export interface GuardAppendConfig {
|
|
2577
2582
|
internalRequest?: boolean;
|
|
@@ -2586,8 +2591,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2586
2591
|
export interface IG2Config {
|
|
2587
2592
|
title?: string;
|
|
2588
2593
|
logo?: string;
|
|
2589
|
-
lang:
|
|
2590
|
-
langRange:
|
|
2594
|
+
lang: string;
|
|
2595
|
+
langRange: string[];
|
|
2591
2596
|
host: string;
|
|
2592
2597
|
isHost?: boolean;
|
|
2593
2598
|
mode: GuardMode;
|
|
@@ -2723,7 +2728,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2723
2728
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2724
2729
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2725
2730
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
2726
|
-
export const useMergePublicConfig: (appId
|
|
2731
|
+
export const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
2727
2732
|
host: string;
|
|
2728
2733
|
isSSO?: boolean | undefined;
|
|
2729
2734
|
defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
|
|
@@ -2732,7 +2737,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2732
2737
|
loadingComponent?: import("react").ReactNode;
|
|
2733
2738
|
openEventsMapping?: boolean | undefined;
|
|
2734
2739
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2735
|
-
authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
|
|
2736
2740
|
disableRegister?: boolean | undefined;
|
|
2737
2741
|
registerMethods?: RegisterMethods[] | undefined;
|
|
2738
2742
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -2742,8 +2746,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2742
2746
|
registerContext?: any;
|
|
2743
2747
|
title?: string | undefined;
|
|
2744
2748
|
logo?: string | undefined;
|
|
2745
|
-
lang:
|
|
2746
|
-
langRange:
|
|
2749
|
+
lang: string;
|
|
2750
|
+
langRange: string[];
|
|
2747
2751
|
isHost?: boolean | undefined;
|
|
2748
2752
|
mode: import("@authing/react-ui-components/components/index").GuardMode;
|
|
2749
2753
|
clickCloseable: boolean;
|
|
@@ -2810,7 +2814,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2810
2814
|
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
2811
2815
|
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
2812
2816
|
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
2813
|
-
export const useGuardPageConfig: (appId
|
|
2817
|
+
export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
2814
2818
|
|
|
2815
2819
|
}
|
|
2816
2820
|
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
@@ -3091,6 +3095,16 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3091
3095
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3092
3096
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3093
3097
|
|
|
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
|
+
|
|
3094
3108
|
}
|
|
3095
3109
|
declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
|
|
3096
3110
|
import common from '@authing/react-ui-components/components/_utils/locales/en/common/index';
|
|
@@ -3104,7 +3118,7 @@ declare module '@authing/react-ui-components/components/_utils/locales/index' {
|
|
|
3104
3118
|
import i18n from 'i18next';
|
|
3105
3119
|
import { LocalesConfig, Lang } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3106
3120
|
export const changeLang: (lang: Lang) => void;
|
|
3107
|
-
const initI18n: (localesConfig?: LocalesConfig, lang?:
|
|
3121
|
+
const initI18n: (localesConfig?: LocalesConfig, lang?: string | undefined) => void;
|
|
3108
3122
|
export { i18n, initI18n };
|
|
3109
3123
|
|
|
3110
3124
|
}
|
|
@@ -3258,7 +3272,7 @@ declare module '@authing/react-ui-components/components/context/module/context'
|
|
|
3258
3272
|
declare module '@authing/react-ui-components/components/index' {
|
|
3259
3273
|
export * from '@authing/react-ui-components/components/_utils/config/index';
|
|
3260
3274
|
export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
3261
|
-
export
|
|
3275
|
+
export * from '@authing/react-ui-components/components/AuthClientProvider/index';
|
|
3262
3276
|
export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3263
3277
|
export * from '@authing/react-ui-components/components/AuthingGuard/hooks/index';
|
|
3264
3278
|
export * from '@authing/react-ui-components/components/AuthingGuard/index';
|
|
@@ -3273,7 +3287,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3273
3287
|
|
|
3274
3288
|
}
|
|
3275
3289
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3276
|
-
const _default: "3.1.13-rc.
|
|
3290
|
+
const _default: "3.1.13-rc.3";
|
|
3277
3291
|
export default _default;
|
|
3278
3292
|
|
|
3279
3293
|
}
|