@authing/react-ui-components 3.1.13-rc.6 → 3.1.15-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 +25 -23
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +5 -6
- package/LICENSE +0 -21
package/lib/index.d.ts
CHANGED
|
@@ -1489,21 +1489,19 @@ 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;
|
|
1493
1492
|
export const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
|
|
1494
1493
|
export const useInitGuardAuthClient: (props: {
|
|
1495
1494
|
config?: GuardLocalConfig | undefined;
|
|
1496
|
-
appId
|
|
1497
|
-
authClient?: AuthenticationClient | undefined;
|
|
1495
|
+
appId: string;
|
|
1498
1496
|
setError?: any;
|
|
1499
1497
|
tenantId?: string | undefined;
|
|
1500
1498
|
}) => AuthenticationClient | undefined;
|
|
1501
1499
|
export const getGuardAuthClient: () => AuthenticationClient;
|
|
1502
1500
|
export const useGuardAuthClient: () => AuthenticationClient;
|
|
1503
|
-
export {};
|
|
1504
1501
|
|
|
1505
1502
|
}
|
|
1506
1503
|
declare module '@authing/react-ui-components/components/Guard/config' {
|
|
1504
|
+
import { AuthenticationClient } from 'authing-js-sdk';
|
|
1507
1505
|
import { ReactNode } from 'react';
|
|
1508
1506
|
import { GuardModuleType } from '@authing/react-ui-components/components/Guard/index';
|
|
1509
1507
|
import { LoginConfig } from '@authing/react-ui-components/components/Login/interface';
|
|
@@ -1529,6 +1527,7 @@ declare module '@authing/react-ui-components/components/Guard/config' {
|
|
|
1529
1527
|
*/
|
|
1530
1528
|
openEventsMapping?: boolean;
|
|
1531
1529
|
_qrCodeScanOptions?: Record<QrCodeScanType, QrCodeScanOptions>;
|
|
1530
|
+
authClient?: AuthenticationClient;
|
|
1532
1531
|
}
|
|
1533
1532
|
export const getDefaultGuardLocalConfig: () => GuardLocalConfig;
|
|
1534
1533
|
|
|
@@ -1551,6 +1550,7 @@ declare module '@authing/react-ui-components/components/Guard/core/renderContext
|
|
|
1551
1550
|
export const RenderContext: React.FC<{
|
|
1552
1551
|
guardProps: GuardProps;
|
|
1553
1552
|
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 { GuardProps } 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: (guardProps: GuardProps, setForceUpdate: any) => void;
|
|
1575
1575
|
|
|
1576
1576
|
}
|
|
1577
1577
|
declare module '@authing/react-ui-components/components/Guard/core/usePlugin' {
|
|
@@ -2459,9 +2459,9 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
|
|
2461
2461
|
import { FC } from 'react';
|
|
2462
|
-
import { EmailScene } from 'authing-js-sdk';
|
|
2463
2462
|
import './style.less';
|
|
2464
2463
|
import { InputProps } from 'antd/lib/input';
|
|
2464
|
+
import { EmailScene } from '@authing/react-ui-components/components/Type/index';
|
|
2465
2465
|
export interface SendCodeByEmailProps extends InputProps {
|
|
2466
2466
|
data: string;
|
|
2467
2467
|
form?: any;
|
|
@@ -2569,14 +2569,13 @@ 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;
|
|
2580
2579
|
}
|
|
2581
2580
|
export interface GuardAppendConfig {
|
|
2582
2581
|
internalRequest?: boolean;
|
|
@@ -2626,6 +2625,19 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2626
2625
|
showChangeLanguage: boolean;
|
|
2627
2626
|
};
|
|
2628
2627
|
}
|
|
2628
|
+
export enum EmailScene {
|
|
2629
|
+
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2630
|
+
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
2631
|
+
REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
|
|
2632
|
+
LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
|
|
2633
|
+
MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
|
|
2634
|
+
INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
|
|
2635
|
+
FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
|
|
2636
|
+
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2637
|
+
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2638
|
+
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2639
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2640
|
+
}
|
|
2629
2641
|
|
|
2630
2642
|
}
|
|
2631
2643
|
declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
|
|
@@ -2728,7 +2740,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2728
2740
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2729
2741
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2730
2742
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
2731
|
-
export const useMergePublicConfig: (appId
|
|
2743
|
+
export const useMergePublicConfig: (appId: string, forceUpdate: number, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, serError?: any) => {
|
|
2732
2744
|
host: string;
|
|
2733
2745
|
isSSO?: boolean | undefined;
|
|
2734
2746
|
defaultScenes?: import("@authing/react-ui-components/components/index").GuardModuleType | undefined;
|
|
@@ -2737,6 +2749,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2737
2749
|
loadingComponent?: import("react").ReactNode;
|
|
2738
2750
|
openEventsMapping?: boolean | undefined;
|
|
2739
2751
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2752
|
+
authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
|
|
2740
2753
|
disableRegister?: boolean | undefined;
|
|
2741
2754
|
registerMethods?: RegisterMethods[] | undefined;
|
|
2742
2755
|
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
@@ -2767,7 +2780,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2767
2780
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
2768
2781
|
enterpriseConnections?: string[] | undefined;
|
|
2769
2782
|
qrCodeScanOptions?: {
|
|
2770
|
-
currentDocument?: Document | undefined;
|
|
2771
2783
|
extIdpConnId?: string | undefined;
|
|
2772
2784
|
autoExchangeUserInfo?: boolean | undefined;
|
|
2773
2785
|
size?: {
|
|
@@ -2814,7 +2826,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2814
2826
|
export const getPageConfig: (appId: string) => GuardPageConfig;
|
|
2815
2827
|
export const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
|
|
2816
2828
|
export const requestGuardPageConfig: (appId: string, httpClient: GuardHttp) => Promise<GuardPageConfig>;
|
|
2817
|
-
export const useGuardPageConfig: (appId
|
|
2829
|
+
export const useGuardPageConfig: (appId: string, forceUpdate: number, httpClient?: GuardHttp | undefined, serError?: any) => GuardPageConfig | undefined;
|
|
2818
2830
|
|
|
2819
2831
|
}
|
|
2820
2832
|
declare module '@authing/react-ui-components/components/_utils/context' {
|
|
@@ -3095,16 +3107,6 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3095
3107
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3096
3108
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3097
3109
|
|
|
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
3110
|
}
|
|
3109
3111
|
declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
|
|
3110
3112
|
import common from '@authing/react-ui-components/components/_utils/locales/en/common/index';
|
|
@@ -3287,7 +3289,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3287
3289
|
|
|
3288
3290
|
}
|
|
3289
3291
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3290
|
-
const _default: "3.1.
|
|
3292
|
+
const _default: "3.1.15-rc.1";
|
|
3291
3293
|
export default _default;
|
|
3292
3294
|
|
|
3293
3295
|
}
|