@authing/guard-shim-react 4.5.25-alpha.tmp.1 → 4.5.25

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.
@@ -3,6 +3,7 @@ import { CompleteInfoMetaData, CompleteInfoRequest } from '../interface';
3
3
  export interface CompleteInfoProps {
4
4
  metaData: CompleteInfoMetaData[];
5
5
  businessRequest: (data: CompleteInfoRequest) => Promise<void>;
6
+ extendsFieldsI18n?: any;
6
7
  }
7
8
  export interface FieldMetadata {
8
9
  key: string;
@@ -25,7 +25,14 @@ export declare enum GuardModuleType {
25
25
  TENANT_PORTAL = "tenant-portal",
26
26
  New_SUBMIT_SUCCESS = "newSubmitSuccess",
27
27
  SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
28
- RESET_ACCOUNT_NAME = "resetAccountName"
28
+ RESET_ACCOUNT_NAME = "resetAccountName",
29
+ APPLY_INVITATION = "applyInvitation",
30
+ MESSAGE = "message",
31
+ INVITE_AUTH = "inviteAuth",
32
+ INVITE_COMPLETE = "inviteComplete",
33
+ INVITE_EXPIRE = "inviteExpire",
34
+ INVITE_PAGE_EXPIRE = "invitePageExpire",
35
+ INVITE_SUCCESS = "inviteSuccess"
29
36
  }
30
37
  export interface GuardModuleAction {
31
38
  action: string;
@@ -0,0 +1,2 @@
1
+ import './style.less';
2
+ export declare const GuardApplicationView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import './style.less';
2
+ export declare const GuardAuthenticationView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import './style.less';
2
+ export declare const GuardInviteCompleteView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import './style.less';
2
+ export declare const GuardInviteExpireView: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const GuardInviteSuccessView: () => JSX.Element;
@@ -0,0 +1,66 @@
1
+ import { GuardModuleType } from '../Guard/module';
2
+ import { Lang } from '../Type';
3
+ export interface InviteContext {
4
+ token: string;
5
+ email: string | null;
6
+ ticket: string;
7
+ enabledIdentifierCodeConfig: boolean;
8
+ enabledInfoFill: boolean;
9
+ allowSkipBindExtIdp: boolean;
10
+ sendVerifyCodeMethod: 'prioritySMS' | 'priorityEmail';
11
+ phoneCountryCode: string | null;
12
+ phone: string | null;
13
+ username: string | null;
14
+ name: string | null;
15
+ verifyCodeMaxErrCount: number;
16
+ extendsFieldsI18n?: {
17
+ [key: string]: Record<Lang, {
18
+ enabled: boolean;
19
+ value: string;
20
+ }>;
21
+ };
22
+ extendsFieldsOptions?: {
23
+ key: string;
24
+ options: {
25
+ value: string;
26
+ label: string;
27
+ }[];
28
+ }[];
29
+ extendsFields: any;
30
+ registerInfoFillMsg?: string;
31
+ }
32
+ export interface GuardInviteLoginInitData extends Partial<InviteContext> {
33
+ canBack?: boolean;
34
+ verifyAccount: string;
35
+ context: any;
36
+ originModule: GuardModuleType;
37
+ originContext: any;
38
+ }
39
+ export interface GuardInviteCompleteInitData extends Partial<GuardInviteLoginInitData> {
40
+ metaData: any;
41
+ }
42
+ export interface GuardInviteIdentityBindInitData extends Partial<GuardInviteLoginInitData> {
43
+ weComConfig: {
44
+ QRConfig: any;
45
+ id: string;
46
+ isDefault: boolean;
47
+ title: string;
48
+ };
49
+ isNew: boolean;
50
+ socialConnections: any[];
51
+ }
52
+ export interface EyGuardProtocolInitData {
53
+ onAcceptHandle: () => void;
54
+ onRejectHandle: () => void;
55
+ mode: 'Guard' | 'Portal';
56
+ }
57
+ export interface EyLoginProps {
58
+ onBeforeLogin?: (loginInfo: any) => void;
59
+ onLoginSuccess?: (data: any, message?: string) => void;
60
+ onLoginFailed?: (code: number, data: any, message?: string) => void;
61
+ }
62
+ export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
63
+ current: {
64
+ onSpin: (arg0: boolean) => void;
65
+ };
66
+ } | undefined) => (context: any) => Promise<void>;
@@ -58,7 +58,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
58
58
  getOriginAccount: () => string;
59
59
  getOriginWay: () => string;
60
60
  } | undefined;
61
- referMultipleState: ((type: "login" | "multiple") => void) | undefined;
61
+ referMultipleState: ((type: "multiple" | "login") => void) | undefined;
62
62
  backfillData: BackFillMultipleState | undefined;
63
63
  defaultQrWay: string | undefined;
64
64
  };
@@ -0,0 +1,9 @@
1
+ import { React } from 'shim-react';
2
+ import './styles.less';
3
+ export interface MessageProps {
4
+ message?: React.ReactNode;
5
+ }
6
+ export interface GuardMessageProps {
7
+ initData?: MessageProps;
8
+ }
9
+ export declare const GuardMessageView: React.FC<MessageProps>;
@@ -1,5 +1,5 @@
1
1
  export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
2
- import { MFAType } from 'src/MFA/interface';
2
+ import { MFAType } from '../MFA/interface';
3
3
  import { PasswordStrength } from '../_utils';
4
4
  export * from 'authing-js-sdk';
5
5
  export declare enum LoginMethods {
@@ -82,7 +82,8 @@ export declare enum EmailScene {
82
82
  RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
83
83
  EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
84
84
  EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
85
- SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
85
+ SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE",
86
+ VERIFY_CODE = "VERIFY_CODE"
86
87
  }
87
88
  export declare enum ForcedModifyPwdCycleUnit {
88
89
  Day = "DAY",
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
53
53
  loginMethods?: LoginMethods[] | undefined;
54
54
  passwordLoginMethods?: string[] | undefined;
55
55
  socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
56
- socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
56
+ socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
57
57
  enterpriseConnections?: string[] | undefined;
58
58
  qrCodeScanOptions?: {
59
59
  extIdpConnId?: string | undefined;
@@ -22,6 +22,8 @@ export declare enum ApiCode {
22
22
  FLOW_SELECT_ACCOUNT = 2921,
23
23
  TENANT_PORTAL = 1644,
24
24
  SELECT_ACCOUNT_2_LOGIN = 2930,
25
- RESET_ACCOUNT_NAME = 1108
25
+ RESET_ACCOUNT_NAME = 1108,
26
+ INVITE_EXPIRE = 4032,
27
+ INVITE_PAGE_EXPIRE = 4033
26
28
  }
27
29
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.25-alpha.tmp.1",
3
+ "version": "4.5.25",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",