@authing/react-ui-components 4.3.16 → 4.3.17

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.3.16",
3
+ "version": "4.3.17",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -13,6 +13,7 @@ export declare enum GuardMode {
13
13
  export interface IG2FCProps extends IG2Events {
14
14
  appId?: string;
15
15
  tenantId?: string;
16
+ deviceId?: string;
16
17
  config?: Partial<IG2Config>;
17
18
  visible?: boolean;
18
19
  initData?: any;
@@ -9,6 +9,7 @@ export declare class GuardHttp {
9
9
  setUserpoolId(userpoolId: string): this;
10
10
  setAppId(appId: string): this;
11
11
  setTenantId(tenantId: string): this;
12
+ setDeviceId(deviceId: string): this;
12
13
  setBaseUrl(baseUrl: string): this;
13
14
  getHeaders: () => Record<string, string>;
14
15
  get: <T = any>(path: string, query?: Record<string, any>, config?: any) => Promise<AuthingGuardResponse<T>>;
@@ -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): 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.3.16";
1
+ declare const _default: "4.3.17";
2
2
  export default _default;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function DownloadVerifier(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function LoginApp(): JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ScanQrcode: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
@@ -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,3 +0,0 @@
1
- /// <reference types="react" />
2
- import './styles.less';
3
- export declare function AppOtpVerify(): JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const FieldContext: React.Context<{
3
- setStatus: (status: 'focus' | 'blur') => void;
4
- }>;
@@ -1,8 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemProps } from 'antd/lib/form';
3
- declare type Status = 'blur' | 'focus';
4
- export declare const CommonFormItem: FC<FormItemProps>;
5
- export declare const Item: FC<FormItemProps & {
6
- inputstatus: Status;
7
- }>;
8
- export {};
@@ -1,7 +0,0 @@
1
- import { InputProps } from 'antd/lib/input';
2
- import { FC } from 'react';
3
- import './styles.less';
4
- export declare const CommonInput: FC<InputProps & {
5
- fieldcontext?: any;
6
- ref?: any;
7
- }>;
@@ -1,10 +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
- export declare function cacheOtpLoginAccount(account: string): void;
9
- export declare function getCachedOtpLoginAccount(): string;
10
- export declare function clearOtpLoginAccountCache(): void;