@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.2.2-rc.0",
3
+ "version": "4.2.3-alpha.1",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function DownloadVerifier(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function LoginApp(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ScanQrcode: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './styles.less';
3
+ export declare function AppOtpVerify(): JSX.Element;
@@ -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,7 @@
1
+ /// <reference types="react" />
2
+ import './styles.less';
3
+ interface PendingLoginProps {
4
+ onCancelLogin: () => void;
5
+ }
6
+ export declare function PendingLogin(props: PendingLoginProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { LoginWithAuthingOtpPushProps } from './types';
3
+ export declare function LoginWithAuthingOtpPush(props: LoginWithAuthingOtpPushProps): JSX.Element;
@@ -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",
@@ -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): boolean;
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.2-rc.0";
1
+ declare const _default: "4.2.3-alpha.0";
2
2
  export default _default;