@authing/react-ui-components 4.2.3-alpha.6 → 4.3.0-alpha.0
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/dist/asset-manifest.json +26 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.31681d53.chunk.css +3 -0
- package/dist/static/css/2.31681d53.chunk.css.map +1 -0
- package/dist/static/css/main.5aec6972.chunk.css +2 -0
- package/dist/static/css/main.5aec6972.chunk.css.map +1 -0
- package/dist/static/js/2.d2a1168e.chunk.js +3 -0
- package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +86 -0
- package/dist/static/js/2.d2a1168e.chunk.js.map +1 -0
- package/dist/static/js/3.b3dd7130.chunk.js +2 -0
- package/dist/static/js/3.b3dd7130.chunk.js.map +1 -0
- package/dist/static/js/main.b635a15a.chunk.js +2 -0
- package/dist/static/js/main.b635a15a.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.6f6a6483.js +2 -0
- package/dist/static/js/runtime-main.6f6a6483.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/Guard/core/hooks/useMultipleAccounts.d.ts +1 -1
- package/types/Guard/module.d.ts +0 -1
- package/types/Login/multipleAccounts/panel.d.ts +0 -1
- package/types/Type/application.d.ts +1 -7
- package/types/_utils/index.d.ts +1 -1
- package/types/version/version.d.ts +1 -1
- package/types/AppOtpVerify/DownloadVerifier.d.ts +0 -2
- package/types/AppOtpVerify/LoginApp.d.ts +0 -2
- package/types/AppOtpVerify/ScanQrcode.d.ts +0 -2
- package/types/AppOtpVerify/Steps.d.ts +0 -11
- package/types/AppOtpVerify/index.d.ts +0 -3
- package/types/LazyloadImage/index.d.ts +0 -12
- package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +0 -15
- package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +0 -7
- package/types/Login/core/withAuthingOtpPush/index.d.ts +0 -3
- package/types/Login/core/withAuthingOtpPush/types.d.ts +0 -16
- package/types/Login/hooks/useOtpPushLogin.d.ts +0 -11
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export declare const QR_CODE_WAY: LoginWay[];
|
|
|
13
13
|
* 登录时所有支持的登录列表(前端定义列表)
|
|
14
14
|
* 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
|
|
15
15
|
*/
|
|
16
|
-
export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone'
|
|
16
|
+
export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone';
|
|
17
17
|
/**
|
|
18
18
|
* when: 多账号页面跳转进入登录页面
|
|
19
19
|
* 携带的回填数据信息
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export declare enum GuardModuleType {
|
|
|
20
20
|
IDENTITY_BINDING = "identityBinding",
|
|
21
21
|
SELF_UNLOCK = "selfUnlock",
|
|
22
22
|
FLOW_SELECT_ACCOUNT = "flowSelectAccount",
|
|
23
|
-
APP_OTP_VERIFY = "appOtpVerify",
|
|
24
23
|
/** 多租户门户选择页 */
|
|
25
24
|
TENANT_PORTAL = "tenant-portal",
|
|
26
25
|
New_SUBMIT_SUCCESS = "newSubmitSuccess"
|
|
@@ -8,8 +8,7 @@ export declare enum LoginMethods {
|
|
|
8
8
|
PhoneCode = "phone-code",
|
|
9
9
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
10
10
|
AD = "ad",
|
|
11
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
12
|
-
AuthingOtpPush = "authing-otp-push"
|
|
11
|
+
WechatMpQrcode = "wechatmp-qrcode"
|
|
13
12
|
}
|
|
14
13
|
export declare enum OIDCConnectionMode {
|
|
15
14
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -308,9 +307,4 @@ export interface ApplicationConfig {
|
|
|
308
307
|
mfa: {
|
|
309
308
|
faceScore: number;
|
|
310
309
|
};
|
|
311
|
-
authingOtpPushTabConfig: {
|
|
312
|
-
enabledLoginMethods: Array<string> | null;
|
|
313
|
-
validLoginMethods: Array<string> | null;
|
|
314
|
-
validRegisterMethods: Array<string> | null;
|
|
315
|
-
};
|
|
316
310
|
}
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
|
|
|
27
27
|
* @param item
|
|
28
28
|
* @returns {boolean}
|
|
29
29
|
*/
|
|
30
|
-
export declare function isObject(item: any):
|
|
30
|
+
export declare function isObject(item: any): boolean;
|
|
31
31
|
/**
|
|
32
32
|
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
33
33
|
* Deep merge two objects.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.2.
|
|
1
|
+
declare const _default: "4.2.2-alpha.10";
|
|
2
2
|
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import './steps.styles.less';
|
|
3
|
-
interface StepsProps {
|
|
4
|
-
current: number;
|
|
5
|
-
items: StepItem[];
|
|
6
|
-
}
|
|
7
|
-
interface StepItem {
|
|
8
|
-
title: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function Steps(props: StepsProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
interface LazyloadImageProps {
|
|
3
|
-
src: string;
|
|
4
|
-
placeholder: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
alt?: string;
|
|
8
|
-
width?: string;
|
|
9
|
-
height?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function LazyloadImage(props: LazyloadImageProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OnPushSuccessProps, OnLoginProps } from './types';
|
|
3
|
-
import { AuthingGuardResponse } from '../../../_utils/http';
|
|
4
|
-
interface BeforeLoginProps {
|
|
5
|
-
onPushSuccess: (props: OnPushSuccessProps) => void;
|
|
6
|
-
signinByPush: (props: OnLoginProps) => Promise<AuthingGuardResponse<{
|
|
7
|
-
pushCodeId: string;
|
|
8
|
-
}>>;
|
|
9
|
-
pushLoginStatus: boolean;
|
|
10
|
-
onchangePushLoginStatus: () => void;
|
|
11
|
-
defaultAccount: string;
|
|
12
|
-
setAccount: React.Dispatch<any>;
|
|
13
|
-
}
|
|
14
|
-
export declare function BeforeLogin(props: BeforeLoginProps): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
|
|
2
|
-
export interface OnPushSuccessProps {
|
|
3
|
-
pushCodeId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface CheckPushCodeStatusProps {
|
|
6
|
-
pushCodeId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface OnLoginProps {
|
|
9
|
-
account: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type LoginStatus = 'before' | 'pending';
|
|
12
|
-
export interface LoginWithAuthingOtpPushProps {
|
|
13
|
-
onLoginSuccess?: any;
|
|
14
|
-
multipleInstance?: StoreInstance;
|
|
15
|
-
initData?: BackFillMultipleState;
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function useOtpPushLoginWay(setLoginWay: React.Dispatch<any>): void;
|
|
3
|
-
export declare function useOtpPushLoginCache(): {
|
|
4
|
-
getCachedOtpLoginAccount: typeof getCachedOtpLoginAccount;
|
|
5
|
-
cacheOtpLoginAccount: typeof cacheOtpLoginAccount;
|
|
6
|
-
clearOtpLoginAccountCache: typeof clearOtpLoginAccountCache;
|
|
7
|
-
};
|
|
8
|
-
declare function cacheOtpLoginAccount(account: string): void;
|
|
9
|
-
declare function getCachedOtpLoginAccount(): string;
|
|
10
|
-
declare function clearOtpLoginAccountCache(): void;
|
|
11
|
-
export {};
|