@authing/react-ui-components 4.0.12-rc.4 → 4.0.13-rc.2

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.0.12-rc.4",
3
+ "version": "4.0.13-rc.2",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -1,6 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { AuthClientContextProps } from './context';
3
- export declare const AuthClientProvider: React.FC<AuthClientContextProps & {
4
- children: ReactNode;
5
- }>;
3
+ export declare const AuthClientProvider: React.FC<AuthClientContextProps>;
6
4
  export declare const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
@@ -7,6 +7,4 @@ export declare const BackLogin: React.FC<BackProps>;
7
7
  export interface BackCustomProps extends BackProps {
8
8
  onBack?: () => void;
9
9
  }
10
- export declare const BackCustom: React.FC<BackCustomProps & {
11
- children: any;
12
- }>;
10
+ export declare const BackCustom: React.FC<BackCustomProps>;
@@ -1,8 +1,7 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  export declare const GuardChangePassword: React.FC<{
3
3
  title: string;
4
4
  explain: string;
5
- children: ReactNode;
6
5
  }>;
7
6
  export declare const GuardFirstLoginPasswordResetView: React.FC;
8
7
  export declare const GuardPasswordNotSafeResetView: React.FC;
@@ -2,7 +2,7 @@ import { AuthenticationClient, CommonMessage, SceneType } from 'authing-js-sdk';
2
2
  import { EmailScene, IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
3
3
  export interface ForgetPasswordEvents extends IG2Events {
4
4
  onEmailSend?: (authClient: AuthenticationClient, sence?: EmailScene) => void;
5
- onEmailSendError?: (error?: CommonMessage, authClient?: AuthenticationClient, sence?: EmailScene) => void;
5
+ onEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient, sence?: EmailScene) => void;
6
6
  onPhoneSend?: (authClient: AuthenticationClient, sence?: SceneType) => void;
7
7
  onPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient, sence?: SceneType) => void;
8
8
  onPwdReset?: (authClient: AuthenticationClient) => void;
@@ -1,8 +1,7 @@
1
1
  import { GuardProps } from '..';
2
- import React, { ReactNode } from 'react';
2
+ import React from 'react';
3
3
  import { ModuleState } from '../GuardModule/stateMachine';
4
4
  export declare const RenderContext: React.FC<{
5
5
  guardProps: GuardProps;
6
6
  initState: ModuleState;
7
- children: ReactNode;
8
7
  }>;
@@ -12,3 +12,4 @@ export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement>
12
12
  noSpin?: boolean;
13
13
  }
14
14
  export declare const ImagePro: (props: ImageProProps) => JSX.Element;
15
+ export declare const ImagePro2: (props: ImageProProps) => JSX.Element;
@@ -1,2 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const InputPassword: (props: any) => JSX.Element;
1
+ import { Input } from 'antd';
2
+ import { PasswordProps } from 'antd/lib/input';
3
+ import React from 'react';
4
+ export declare const InputPassword: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './index.less';
3
3
  import { CodeStatusDescriptions } from './WorkQrCode';
4
4
  export declare type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
5
- export declare const prefix: string;
5
+ export declare const prefix = "refactor";
6
6
  export interface UiQrProps {
7
7
  /**
8
8
  * Loading 组件
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig } from '..';
3
3
  import { BackFillMultipleState, StoreInstance } from '../Guard/core/hooks/useMultipleAccounts';
4
4
  import { ModuleState } from '../Guard/GuardModule/stateMachine';
@@ -46,14 +46,12 @@ export interface IGuardContext {
46
46
  export declare const createGuardXContext: () => {
47
47
  Provider: React.FC<{
48
48
  value: Partial<IGuardContext>;
49
- children: ReactNode;
50
49
  }>;
51
50
  Consumer: React.Consumer<IGuardContext>;
52
51
  };
53
52
  export declare const useGuardXContext: () => {
54
53
  Provider: React.FC<{
55
54
  value: Partial<IGuardContext>;
56
- children: ReactNode;
57
55
  }>;
58
56
  Consumer: React.Consumer<IGuardContext>;
59
57
  };
@@ -62,9 +60,7 @@ export interface IGuardContextProvider {
62
60
  spinChange: (spin: boolean) => void;
63
61
  }
64
62
  export declare const useGuardButtonContext: () => {
65
- GuardButtonProvider: React.FC<{
66
- children: ReactNode;
67
- }>;
63
+ GuardButtonProvider: React.FC<{}>;
68
64
  };
69
65
  export declare const useGuardButtonState: () => IGuardContextProvider;
70
66
  export declare const useGuardPublicConfig: () => ApplicationConfig;
@@ -34,7 +34,7 @@ export declare function isObject(item: any): any;
34
34
  * @param target
35
35
  * @param ...sources
36
36
  */
37
- export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
37
+ export declare function deepMerge<T extends any = any>(target: T, ...sources: any[]): T;
38
38
  /**
39
39
  * 在托管页下上传query中指定的用户自定义字段进行补全
40
40
  * @param params 指定上传的用户自定义字段
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.12-rc.4";
1
+ declare const _default: "4.0.13-rc.2";
2
2
  export default _default;