@authing/guard-shim-react 4.5.13 → 4.5.14-alpha.0

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.
@@ -25,7 +25,11 @@ 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"
29
33
  }
30
34
  export interface GuardModuleAction {
31
35
  action: string;
@@ -0,0 +1,2 @@
1
+ import './style.less';
2
+ export declare const GuardApplicationView: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './style.less';
3
+ export declare const GuardAuthenticationView: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const GuardInviteCompleteView: () => React.JSX.Element;
@@ -0,0 +1,75 @@
1
+ import { GuardModuleType, Lang } from '..';
2
+ export interface InviteContext {
3
+ autoLogin: boolean;
4
+ email: string | null;
5
+ ticket: string;
6
+ enabledIdentifierCodeConfig: boolean;
7
+ enabledRegisterFillInfo: boolean;
8
+ enabledExtIdpBind: boolean;
9
+ allowSkipBindExtIdp: boolean;
10
+ sendIdentifierCodeMethod: 'prioritySMS' | 'priorityEmail' | 'SMS' | 'email';
11
+ receiverType: 'emailCode' | 'phoneCode';
12
+ phone: string | null;
13
+ username: string | null;
14
+ name: string | null;
15
+ verifyCodeMaxLength: number;
16
+ verifyCodeMaxErrCount: number;
17
+ extendsFieldsI18n?: {
18
+ [key: string]: Record<Lang, {
19
+ enabled: boolean;
20
+ value: string;
21
+ }>;
22
+ };
23
+ extendsFieldsOptions?: {
24
+ key: string;
25
+ options: {
26
+ value: string;
27
+ label: string;
28
+ }[];
29
+ }[];
30
+ extendsFields: any;
31
+ qrCodeBindMethods: Record<string, {
32
+ QRConfig: any;
33
+ id: string;
34
+ isDefault: boolean;
35
+ title: string;
36
+ }[]>;
37
+ socialConnections: any[];
38
+ registerInfoFillMsg?: string;
39
+ extIdpBindMsg?: string;
40
+ }
41
+ export interface GuardInviteLoginInitData extends Partial<InviteContext> {
42
+ canBack?: boolean;
43
+ verifyAccount: string;
44
+ context: any;
45
+ originModule: GuardModuleType;
46
+ originContext: any;
47
+ }
48
+ export interface GuardInviteCompleteInitData extends Partial<GuardInviteLoginInitData> {
49
+ metaData: any;
50
+ }
51
+ export interface GuardInviteIdentityBindInitData extends Partial<GuardInviteLoginInitData> {
52
+ weComConfig: {
53
+ QRConfig: any;
54
+ id: string;
55
+ isDefault: boolean;
56
+ title: string;
57
+ };
58
+ isNew: boolean;
59
+ socialConnections: any[];
60
+ }
61
+ export interface EyGuardProtocolInitData {
62
+ onAcceptHandle: () => void;
63
+ onRejectHandle: () => void;
64
+ mode: 'Guard' | 'Portal';
65
+ }
66
+ export interface EyLoginProps {
67
+ onBeforeLogin?: (loginInfo: any) => void;
68
+ onLoginSuccess?: (data: any, message?: string) => void;
69
+ onLoginFailed?: (code: number, data: any, message?: string) => void;
70
+ }
71
+ export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
72
+ current: {
73
+ onSpin: (arg0: boolean) => void;
74
+ };
75
+ } | 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>;
@@ -82,5 +82,6 @@ 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
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.13",
3
+ "version": "4.5.14-alpha.0",
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",