@authing/react-ui-components 4.4.3-ey.38 → 4.4.3-ey.39

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.4.3-ey.38",
3
+ "version": "4.4.3-ey.39",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { EyLoginProps } from '../../interface';
3
+ interface EmailVerifySceneProps extends EyLoginProps {
4
+ scene: 'password' | 'verifyCode';
5
+ }
6
+ export declare const EmailVerifyScene: React.FC<EmailVerifySceneProps>;
7
+ export {};
@@ -1,8 +1,3 @@
1
1
  import React from 'react';
2
- interface ScanCodeSceneProps {
3
- onBeforeLogin?: (loginInfo: any) => void;
4
- onLoginSuccess?: (data: any, message?: string) => void;
5
- onLoginFailed?: (code: number, data: any, message?: string) => void;
6
- }
7
- export declare const ScanCodeScene: React.FC<ScanCodeSceneProps>;
8
- export {};
2
+ import { EyLoginProps } from '../../interface';
3
+ export declare const ScanCodeScene: React.FC<EyLoginProps>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export interface GuardLoginInitData {
3
- scene: 'password' | 'idp';
3
+ scene: 'password' | 'idp' | 'verifyCode';
4
4
  noBack: boolean;
5
5
  verifyAccount?: string;
6
6
  }
@@ -11,6 +11,7 @@ export interface InviteContext {
11
11
  receiverType: 'emailCode' | 'phoneCode';
12
12
  phone: string | null;
13
13
  username: string | null;
14
+ name: string | null;
14
15
  verifyCodeMaxLength: number;
15
16
  verifyCodeMaxErrCount: number;
16
17
  extendsFieldsI18n?: {
@@ -58,6 +59,11 @@ export interface EyGuardProtocolInitData {
58
59
  onAcceptHandle: () => void;
59
60
  onRejectHandle: () => void;
60
61
  }
62
+ export interface EyLoginProps {
63
+ onBeforeLogin?: (loginInfo: any) => void;
64
+ onLoginSuccess?: (data: any, message?: string) => void;
65
+ onLoginFailed?: (code: number, data: any, message?: string) => void;
66
+ }
61
67
  export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
62
68
  current: {
63
69
  onSpin: (arg0: boolean) => void;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.4.3-ey.38";
1
+ declare const _default: "4.4.3-ey.39";
2
2
  export default _default;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface EmailPasswordProps {
3
- onBeforeLogin?: (loginInfo: any) => void;
4
- onLoginSuccess?: (data: any, message?: string) => void;
5
- onLoginFailed?: (code: number, data: any, message?: string) => void;
6
- }
7
- export declare const EmailPasswordScene: React.FC<EmailPasswordProps>;
8
- export {};