@authing/react-ui-components 4.4.3-ey.7 → 4.4.3-ey.9

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.7",
3
+ "version": "4.4.3-ey.9",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -1,9 +1,16 @@
1
1
  import React from 'react';
2
2
  import { CompleteInfoMetaData, CompleteInfoRequest } from '../interface';
3
+ import { Lang } from '../../Type';
3
4
  export interface CompleteInfoProps {
4
5
  metaData: CompleteInfoMetaData[];
5
6
  businessRequest: (data: CompleteInfoRequest) => Promise<void>;
6
7
  submitText?: string;
8
+ extendsFieldsI18n?: {
9
+ [key: string]: Record<Lang, {
10
+ enabled: boolean;
11
+ value: string;
12
+ }>;
13
+ };
7
14
  }
8
15
  export interface FieldMetadata {
9
16
  key: string;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardIviteIdentityBindView: () => JSX.Element;
@@ -0,0 +1,57 @@
1
+ import { GuardModuleType, Lang } from '..';
2
+ import { User } from '../Type';
3
+ export interface InviteContext {
4
+ autoLogin: boolean;
5
+ email: string | null;
6
+ ticket: string;
7
+ enabledIdentifierCodeConfig: boolean;
8
+ enabledRegisterFillInfo: boolean;
9
+ enabledExtIdpBind: boolean;
10
+ allowSkipBindExtIdp: boolean;
11
+ sendIdentifierCodeMethod: 'prioritySMS' | 'priorityEmail' | 'SMS' | 'email';
12
+ receiverType: 'emailCode' | 'phoneCode';
13
+ phone: string | null;
14
+ username: string | null;
15
+ verifyCodeMaxLength: number;
16
+ verifyCodeMaxErrCount: number;
17
+ extendsFieldsI18n?: {
18
+ [key: string]: Record<Lang, {
19
+ enabled: boolean;
20
+ value: string;
21
+ }>;
22
+ };
23
+ extendsFields: any;
24
+ qrCodeBindMethods: Record<string, {
25
+ QRConfig: any;
26
+ id: string;
27
+ isDefault: boolean;
28
+ title: string;
29
+ }[]>;
30
+ socialConnections: any[];
31
+ }
32
+ export interface EyGuardInviteLoginInitData extends Partial<InviteContext> {
33
+ verifyAccount: string;
34
+ context: any;
35
+ }
36
+ export interface EyGuardInviteCompleteInitData extends Partial<EyGuardInviteLoginInitData> {
37
+ metaData: any;
38
+ }
39
+ export interface EyGuardInviteIdentityBindInitData extends Partial<EyGuardInviteLoginInitData> {
40
+ weComConfig: {
41
+ QRConfig: any;
42
+ id: string;
43
+ isDefault: boolean;
44
+ title: string;
45
+ };
46
+ originModule: GuardModuleType;
47
+ originContext: any;
48
+ socialConnections: any[];
49
+ }
50
+ export interface EyGuardProtocolInitData {
51
+ user: User;
52
+ }
53
+ export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
54
+ current: {
55
+ onSpin: (arg0: boolean) => void;
56
+ };
57
+ } | undefined) => (context: any) => Promise<void>;
@@ -9,6 +9,7 @@ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
9
9
  onChange?: any;
10
10
  value?: Array<number | string>;
11
11
  onFinish?: any;
12
+ beforeSend: () => Promise<boolean>;
12
13
  }
13
14
  export declare const EyVerifyCodeInput: FC<VerifyCodeInputProps>;
14
15
  export {};
@@ -22,6 +22,6 @@ export declare enum ApiCode {
22
22
  SELECT_ACCOUNT_2_LOGIN = 2930,
23
23
  TENANT_PORTAL = 1644,
24
24
  RESET_ACCOUNT_NAME = 1108,
25
- EY_INVITE_EXPIRE = 408
25
+ EY_INVITE_COMPLETE = 1098
26
26
  }
27
27
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.4.3-ey.7";
1
+ declare const _default: "4.4.3-ey.9";
2
2
  export default _default;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardIdentityBindView: () => JSX.Element;