@authing/react-ui-components 4.0.11-rc.0 → 4.0.11

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.11-rc.0",
3
+ "version": "4.0.11",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -1,4 +1,6 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { AuthClientContextProps } from './context';
3
- export declare const AuthClientProvider: React.FC<AuthClientContextProps>;
3
+ export declare const AuthClientProvider: React.FC<AuthClientContextProps & {
4
+ children: ReactNode;
5
+ }>;
4
6
  export declare const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
@@ -7,4 +7,6 @@ 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>;
10
+ export declare const BackCustom: React.FC<BackCustomProps & {
11
+ children: any;
12
+ }>;
@@ -1,7 +1,8 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare const GuardChangePassword: React.FC<{
3
3
  title: string;
4
4
  explain: string;
5
+ children: ReactNode;
5
6
  }>;
6
7
  export declare const GuardFirstLoginPasswordResetView: React.FC;
7
8
  export declare const GuardPasswordNotSafeResetView: React.FC;
@@ -0,0 +1,4 @@
1
+ import { Input } from 'antd';
2
+ import { PasswordProps } from 'antd/lib/input';
3
+ import React from 'react';
4
+ export declare const InputPasswordForget: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
@@ -0,0 +1,7 @@
1
+ import { InputProps } from 'antd/lib/input';
2
+ import React from 'react';
3
+ import { VerifyLoginMethods } from '../../Type/application';
4
+ export interface InputIdentifyProps extends InputProps {
5
+ methods: VerifyLoginMethods[];
6
+ }
7
+ export declare const InputIdentify: React.FC<InputIdentifyProps>;
@@ -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,7 +1,8 @@
1
1
  import { GuardProps } from '..';
2
- import React from 'react';
2
+ import React, { ReactNode } 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;
7
8
  }>;
@@ -18,7 +18,8 @@ export declare const enum GuardModuleType {
18
18
  SUBMIT_SUCCESS = "submitSuccess",
19
19
  IDENTITY_BINDING_ASK = "identityBindingAsk",
20
20
  IDENTITY_BINDING = "identityBinding",
21
- SELF_UNLOCK = "selfUnlock"
21
+ SELF_UNLOCK = "selfUnlock",
22
+ FLOW_SELECT_ACCOUNT = "flowSelectAccount"
22
23
  }
23
24
  export interface GuardModuleAction {
24
25
  action: string;
@@ -1,4 +1,2 @@
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>>>;
1
+ /// <reference types="react" />
2
+ export declare const InputPassword: (props: any) => JSX.Element;
@@ -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 = "refactor";
5
+ export declare const prefix: string;
6
6
  export interface UiQrProps {
7
7
  /**
8
8
  * Loading 组件
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './style.less';
3
+ export declare const GuardSelectAccountView: () => JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactNode } 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,12 +46,14 @@ export interface IGuardContext {
46
46
  export declare const createGuardXContext: () => {
47
47
  Provider: React.FC<{
48
48
  value: Partial<IGuardContext>;
49
+ children: ReactNode;
49
50
  }>;
50
51
  Consumer: React.Consumer<IGuardContext>;
51
52
  };
52
53
  export declare const useGuardXContext: () => {
53
54
  Provider: React.FC<{
54
55
  value: Partial<IGuardContext>;
56
+ children: ReactNode;
55
57
  }>;
56
58
  Consumer: React.Consumer<IGuardContext>;
57
59
  };
@@ -60,7 +62,9 @@ export interface IGuardContextProvider {
60
62
  spinChange: (spin: boolean) => void;
61
63
  }
62
64
  export declare const useGuardButtonContext: () => {
63
- GuardButtonProvider: React.FC<{}>;
65
+ GuardButtonProvider: React.FC<{
66
+ children: ReactNode;
67
+ }>;
64
68
  };
65
69
  export declare const useGuardButtonState: () => IGuardContextProvider;
66
70
  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 any = any>(target: T, ...sources: any[]): T;
37
+ export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
38
38
  /**
39
39
  * 在托管页下上传query中指定的用户自定义字段进行补全
40
40
  * @param params 指定上传的用户自定义字段
@@ -16,6 +16,7 @@ export declare const enum ApiCode {
16
16
  FIRST_LOGIN_PASSWORD = 1639,
17
17
  FORCED_PASSWORD_RESET = 2058,
18
18
  UNSAFE_PASSWORD_TIP = 2061,
19
- UNSAFE_PASSWORD_RESET = 2071
19
+ UNSAFE_PASSWORD_RESET = 2071,
20
+ FLOW_SELECT_ACCOUNT = 2921
20
21
  }
21
22
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.11-rc.0";
1
+ declare const _default: "4.0.11";
2
2
  export default _default;