@authing/react-ui-components 4.4.3-ey.4 → 4.4.3-ey.6

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.4",
3
+ "version": "4.4.3-ey.6",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "prebuild:lib": "yarn log-tag && yarn generate-version && yarn generate-examples",
43
43
  "prepare": "cd ../.. && husky install packages/react-components/.husky",
44
44
  "pub": "yarn build:lib && node ./scripts/publish.js",
45
- "start": "cross-env PORT=1221 node ./scripts/start.js",
45
+ "start": "cross-env PORT=1024 node ./scripts/start.js",
46
46
  "vite": "vite",
47
47
  "generate-version": "node ./scripts/generate-version",
48
48
  "generate-examples": "node ./scripts/generate-examples.js",
@@ -7,5 +7,5 @@ export declare const GuardCompleteInfo: React.FC<{
7
7
  skipComplateFileds: boolean;
8
8
  businessRequest: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<void>;
9
9
  }>;
10
- export declare const GuardLoginCompleteInfoView: React.FC;
11
- export declare const GuardRegisterCompleteInfoView: React.FC;
10
+ export declare const EyGuardLoginCompleteInfoView: React.FC;
11
+ export declare const EyGuardRegisterCompleteInfoView: React.FC;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardCheckCaptchaView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardErrorView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WeComQrcode: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardIdentityBindView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardInviteLoginView: () => JSX.Element;
@@ -0,0 +1,8 @@
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 {};
@@ -0,0 +1,8 @@
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 {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface GuardLoginInitData {
3
+ scene: 'email' | 'scanCode';
4
+ }
5
+ export declare const EyGuardLoginView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardPreCheckEmailView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardProtocolView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EmailFormItem: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const GoBack: (props: any) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const GuardForgetPassword: React.FC;
2
+ export declare const EyGuardForgetPassword: React.FC;
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { GuardProps } from '..';
3
+ import '../../assets/fonts/index.css';
3
4
  import '../styles.less';
5
+ import '../ey.styles.less';
4
6
  export declare enum LangMAP {
5
7
  zhCn = "zh-CN",
6
8
  enUs = "en-US",
@@ -25,7 +25,31 @@ export declare enum GuardModuleType {
25
25
  /** 多租户门户选择页 */
26
26
  TENANT_PORTAL = "tenant-portal",
27
27
  New_SUBMIT_SUCCESS = "newSubmitSuccess",
28
- RESET_ACCOUNT_NAME = "resetAccountName"
28
+ RESET_ACCOUNT_NAME = "resetAccountName",
29
+ /**
30
+ * pre check email
31
+ */
32
+ EY_PRE_CHECK_EMAIL = "ey_pre_check_email",
33
+ /**
34
+ * protocols
35
+ */
36
+ EY_PROTOCOLS = "ey_protocols",
37
+ /**
38
+ * check captcha
39
+ */
40
+ EY_CHECK_CAPTCHA = "ey_check_captcha",
41
+ /**
42
+ * error
43
+ */
44
+ EY_ERROR = "ey_error",
45
+ /**
46
+ * invite login
47
+ */
48
+ EY_INVITE_LOGIN = "ey_invite_login",
49
+ /**
50
+ * identity bind
51
+ */
52
+ EY_IDENTITY_BIND = "ey_identity_bind"
29
53
  }
30
54
  export interface GuardModuleAction {
31
55
  action: string;
@@ -1,5 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import './styles.less';
3
+ export declare const useDisables: (data: any) => {
4
+ disableResetPwd: any;
5
+ disableRegister: any;
6
+ };
3
7
  export declare const GuardLoginView: FC<{
4
8
  isResetPage?: boolean;
5
9
  }>;
@@ -28,6 +28,6 @@ export interface AuthingResponse<T = any> {
28
28
  flowHandle?: string;
29
29
  }
30
30
  export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
31
- onGuardHandling?: () => CodeAction;
31
+ onGuardHandling?: (initData?: any) => CodeAction;
32
32
  isFlowEnd?: boolean;
33
33
  }
@@ -1,2 +1,2 @@
1
- declare const _default: "4.4.3-ey.4";
1
+ declare const _default: "4.4.3-ey.6";
2
2
  export default _default;