@authing/react-ui-components 3.1.13-rc.2 → 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 +21 -11
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1489,19 +1489,21 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1489
1489
|
declare module '@authing/react-ui-components/components/Guard/authClient' {
|
|
1490
1490
|
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1491
1491
|
import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
1492
|
+
let authClient: AuthenticationClient;
|
|
1492
1493
|
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
1493
1494
|
export const useInitGuardAuthClient: (props: {
|
|
1494
1495
|
config?: GuardLocalConfig | undefined;
|
|
1495
|
-
appId
|
|
1496
|
+
appId?: string | undefined;
|
|
1497
|
+
authClient?: AuthenticationClient | undefined;
|
|
1496
1498
|
setError?: any;
|
|
1497
1499
|
tenantId?: string | undefined;
|
|
1498
1500
|
}) => AuthenticationClient | undefined;
|
|
1499
1501
|
export const getGuardAuthClient: () => AuthenticationClient;
|
|
1500
1502
|
export const useGuardAuthClient: () => AuthenticationClient;
|
|
1503
|
+
export {};
|
|
1501
1504
|
|
|
1502
1505
|
}
|
|
1503
1506
|
declare module '@authing/react-ui-components/components/Guard/config' {
|
|
1504
|
-
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1505
1507
|
import { ReactNode } from 'react';
|
|
1506
1508
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1507
1509
|
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
@@ -1527,7 +1529,6 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1527
1529
|
*/
|
|
1528
1530
|
openEventsMapping?: boolean;
|
|
1529
1531
|
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1530
|
-
authClient?: AuthenticationClient;
|
|
1531
1532
|
}
|
|
1532
1533
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1533
1534
|
|
|
@@ -1550,7 +1551,6 @@ declare module '@authing/react-ui-components/components/Guard/core/renderContext
|
|
|
1550
1551
|
export const RenderContext: React.FC<{
|
|
1551
1552
|
guardProps: GuardProps;
|
|
1552
1553
|
initState: ModuleState;
|
|
1553
|
-
forceUpdate: number;
|
|
1554
1554
|
}>;
|
|
1555
1555
|
|
|
1556
1556
|
}
|
|
@@ -1568,10 +1568,10 @@ declare module '@authing/react-ui-components/components/Guard/core/renderModule'
|
|
|
1568
1568
|
|
|
1569
1569
|
}
|
|
1570
1570
|
declare module '@authing/react-ui-components/components/Guard/core/useAppendConfig' {
|
|
1571
|
-
import {
|
|
1571
|
+
import { GuardAppendConfig } from '@authing/react-ui-components/components/index';
|
|
1572
1572
|
export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1573
1573
|
export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
|
|
1574
|
-
export const useInitGuardAppendConfig: (
|
|
1574
|
+
export const useInitGuardAppendConfig: (appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
|
|
1575
1575
|
|
|
1576
1576
|
}
|
|
1577
1577
|
declare module '@authing/react-ui-components/components/Guard/core/usePlugin' {
|
|
@@ -2569,13 +2569,14 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2569
2569
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/module';
|
|
2570
2570
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
2571
2571
|
export interface IG2FCProps extends IG2Events {
|
|
2572
|
-
appId
|
|
2572
|
+
appId?: string;
|
|
2573
2573
|
tenantId?: string;
|
|
2574
2574
|
config?: Partial<IG2Config>;
|
|
2575
2575
|
visible?: boolean;
|
|
2576
2576
|
initData?: any;
|
|
2577
2577
|
appendConfig?: GuardAppendConfig;
|
|
2578
2578
|
facePlugin?: FacePlugin;
|
|
2579
|
+
authClient?: AuthenticationClient;
|
|
2579
2580
|
}
|
|
2580
2581
|
export interface GuardAppendConfig {
|
|
2581
2582
|
internalRequest?: boolean;
|
|
@@ -2727,7 +2728,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2727
2728
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2728
2729
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2729
2730
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
2730
|
-
export const useMergePublicConfig: (appId
|
|
2731
|
+
export const useMergePublicConfig: (appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
|
|
2731
2732
|
host: string;
|
|
2732
2733
|
isSSO?: boolean | undefined;
|
|
2733
2734
|
defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
|
|
@@ -2736,7 +2737,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2736
2737
|
loadingComponent?: import("react").ReactNode;
|
|
2737
2738
|
openEventsMapping?: boolean | undefined;
|
|
2738
2739
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2739
|
-
authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
|
|
2740
2740
|
disableRegister?: boolean | undefined;
|
|
2741
2741
|
registerMethods?: RegisterMethods[] | undefined;
|
|
2742
2742
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -2814,7 +2814,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2814
2814
|
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
2815
2815
|
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
2816
2816
|
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
2817
|
-
export const useGuardPageConfig: (appId
|
|
2817
|
+
export const useGuardPageConfig: (appId?: string | undefined, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
2818
2818
|
|
|
2819
2819
|
}
|
|
2820
2820
|
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
@@ -3095,6 +3095,16 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3095
3095
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3096
3096
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3097
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
|
+
|
|
3098
3108
|
}
|
|
3099
3109
|
declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
|
|
3100
3110
|
import common from '@authing/react-ui-components/components/_utils/locales/en/common/index';
|
|
@@ -3277,7 +3287,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3277
3287
|
|
|
3278
3288
|
}
|
|
3279
3289
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3280
|
-
const _default: "3.1.13-rc.
|
|
3290
|
+
const _default: "3.1.13-rc.3";
|
|
3281
3291
|
export default _default;
|
|
3282
3292
|
|
|
3283
3293
|
}
|