@authing/react-ui-components 3.1.28-rc.0 → 3.1.28-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 +17 -20
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +0 -9
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -521,6 +521,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
521
521
|
websocket: string;
|
|
522
522
|
welcomeMessage: any;
|
|
523
523
|
skipComplateFileds: boolean;
|
|
524
|
+
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
524
525
|
}
|
|
525
526
|
export const fetchAppConfig: (appId: string) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingResponse<ApplicationConfig>>;
|
|
526
527
|
|
|
@@ -638,11 +639,19 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
|
|
|
638
639
|
|
|
639
640
|
}
|
|
640
641
|
declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
|
|
641
|
-
import { UserConfig, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
642
|
+
import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
642
643
|
export const OTP_MFA_CODE = 1635;
|
|
643
644
|
export const APP_MFA_CODE = 1636;
|
|
644
645
|
export const NEED_CAPTCHA = 2000;
|
|
645
|
-
export const LOGIN_METHODS_MAP:
|
|
646
|
+
export const LOGIN_METHODS_MAP: () => {
|
|
647
|
+
password: string;
|
|
648
|
+
"phone-code": string;
|
|
649
|
+
"app-qrcode": string;
|
|
650
|
+
"wechat-miniprogram-qrcode": string;
|
|
651
|
+
ldap: string;
|
|
652
|
+
ad: string;
|
|
653
|
+
"wechatmp-qrcode": string;
|
|
654
|
+
};
|
|
646
655
|
export const REGISTER_METHODS_MAP: any;
|
|
647
656
|
export const HIDE_SOCIALS: string[];
|
|
648
657
|
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
@@ -813,8 +822,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
|
|
|
813
822
|
PhoneCode = "phone-code",
|
|
814
823
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
815
824
|
AD = "ad",
|
|
816
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
817
|
-
Landray = "landray"
|
|
825
|
+
WechatMpQrcode = "wechatmp-qrcode"
|
|
818
826
|
}
|
|
819
827
|
export enum RegisterMethods {
|
|
820
828
|
Email = "email",
|
|
@@ -1956,17 +1964,6 @@ declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
|
|
|
1956
1964
|
export const LoginWithLDAP: (props: LoginWithLDAPProps) => JSX.Element;
|
|
1957
1965
|
export {};
|
|
1958
1966
|
|
|
1959
|
-
}
|
|
1960
|
-
declare module '@authing/react-ui-components/components/Login/core/withLandrayQrcode' {
|
|
1961
|
-
/// <reference types="react" />
|
|
1962
|
-
interface LoginWithLandrayQrcodeProps {
|
|
1963
|
-
onLoginSuccess: any;
|
|
1964
|
-
canLoop: boolean;
|
|
1965
|
-
qrCodeScanOptions: any;
|
|
1966
|
-
}
|
|
1967
|
-
export const LoginWithLandrayQrcode: (props: LoginWithLandrayQrcodeProps) => JSX.Element;
|
|
1968
|
-
export {};
|
|
1969
|
-
|
|
1970
1967
|
}
|
|
1971
1968
|
declare module '@authing/react-ui-components/components/Login/core/withPassword/FormItemAccount' {
|
|
1972
1969
|
import { FormItemProps } from 'antd/lib/form';
|
|
@@ -2923,7 +2920,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2923
2920
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2924
2921
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2925
2922
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2926
|
-
import {
|
|
2923
|
+
import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
2927
2924
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2928
2925
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2929
2926
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
@@ -2959,8 +2956,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2959
2956
|
__unAuthFlow__?: boolean | undefined;
|
|
2960
2957
|
autoRegister?: boolean | undefined;
|
|
2961
2958
|
disableResetPwd?: boolean | undefined;
|
|
2962
|
-
defaultLoginMethod?: LoginMethods | undefined;
|
|
2963
|
-
loginMethods?: LoginMethods[] | undefined;
|
|
2959
|
+
defaultLoginMethod?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods | undefined;
|
|
2960
|
+
loginMethods?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods[] | undefined;
|
|
2964
2961
|
passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
|
|
2965
2962
|
socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
|
|
2966
2963
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
@@ -3213,7 +3210,7 @@ declare module '@authing/react-ui-components/components/_utils/http' {
|
|
|
3213
3210
|
import { AxiosRequestConfig } from 'axios';
|
|
3214
3211
|
export const requestClient: {
|
|
3215
3212
|
(input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
|
|
3216
|
-
get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig
|
|
3213
|
+
get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig | undefined): Promise<AuthingResponse<T>>;
|
|
3217
3214
|
post<T_1>(path: string, data: any, config?: {
|
|
3218
3215
|
headers: any;
|
|
3219
3216
|
} | undefined): Promise<AuthingResponse<T_1>>;
|
|
@@ -3537,7 +3534,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3537
3534
|
|
|
3538
3535
|
}
|
|
3539
3536
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3540
|
-
const _default: "3.1.28-rc.
|
|
3537
|
+
const _default: "3.1.28-rc.3";
|
|
3541
3538
|
export default _default;
|
|
3542
3539
|
|
|
3543
3540
|
}
|