@authing/react-ui-components 4.2.2-rc.0 → 4.2.3-alpha.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.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/AppOtpVerify/DownloadVerifier.d.ts +2 -0
- package/types/AppOtpVerify/LoginApp.d.ts +2 -0
- package/types/AppOtpVerify/ScanQrcode.d.ts +2 -0
- package/types/AppOtpVerify/Steps.d.ts +11 -0
- package/types/AppOtpVerify/index.d.ts +3 -0
- package/types/Guard/module.d.ts +1 -0
- package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +13 -0
- package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +7 -0
- package/types/Login/core/withAuthingOtpPush/index.d.ts +3 -0
- package/types/Login/core/withAuthingOtpPush/types.d.ts +13 -0
- package/types/Type/application.d.ts +2 -1
- package/types/_utils/index.d.ts +1 -1
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ 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",
|
|
23
24
|
/** 多租户门户选择页 */
|
|
24
25
|
TENANT_PORTAL = "tenant-portal",
|
|
25
26
|
New_SUBMIT_SUCCESS = "newSubmitSuccess"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="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
|
+
}
|
|
12
|
+
export declare function BeforeLogin(props: BeforeLoginProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface OnPushSuccessProps {
|
|
2
|
+
pushCodeId: string;
|
|
3
|
+
}
|
|
4
|
+
export interface CheckPushCodeStatusProps {
|
|
5
|
+
pushCodeId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface OnLoginProps {
|
|
8
|
+
account: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type LoginStatus = 'before' | 'pending';
|
|
11
|
+
export interface LoginWithAuthingOtpPushProps {
|
|
12
|
+
onLoginSuccess?: any;
|
|
13
|
+
}
|
|
@@ -8,7 +8,8 @@ export declare enum LoginMethods {
|
|
|
8
8
|
PhoneCode = "phone-code",
|
|
9
9
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
10
10
|
AD = "ad",
|
|
11
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
11
|
+
WechatMpQrcode = "wechatmp-qrcode",
|
|
12
|
+
AuthingOtpPush = "authing-otp-push"
|
|
12
13
|
}
|
|
13
14
|
export declare enum OIDCConnectionMode {
|
|
14
15
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
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): any;
|
|
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.3-alpha.0";
|
|
2
2
|
export default _default;
|