@authing/guard-shim-react18 4.5.40-alpha.9 → 4.5.40-ey.1

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.
Files changed (62) hide show
  1. package/dist/guard.min.css +1 -1
  2. package/dist/guard.min.js +4452 -4914
  3. package/dist/typings/src/ChangeLanguage/index.d.ts +2 -2
  4. package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +8 -1
  5. package/dist/typings/src/CompleteInfo/interface.d.ts +5 -1
  6. package/dist/typings/src/CompleteInfo/utils.d.ts +7 -0
  7. package/dist/typings/src/EY/CheckCaptcha/index.d.ts +1 -0
  8. package/dist/typings/src/EY/Error/index.d.ts +1 -0
  9. package/dist/typings/src/EY/ForgetPassword/index.d.ts +2 -0
  10. package/dist/typings/src/EY/InviteComplete/index.d.ts +1 -0
  11. package/dist/typings/src/EY/InviteIdentityBind/component/WeComQrcode.d.ts +2 -0
  12. package/dist/typings/src/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +1 -0
  13. package/dist/typings/src/EY/InviteIdentityBind/index.d.ts +1 -0
  14. package/dist/typings/src/EY/InviteLoading/index.d.ts +1 -0
  15. package/dist/typings/src/EY/Login/components/EyLoginWithWeComQrcode.d.ts +1 -0
  16. package/dist/typings/src/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +1 -0
  17. package/dist/typings/src/EY/Login/core/EmailVerify.d.ts +7 -0
  18. package/dist/typings/src/EY/Login/core/ScanCode.d.ts +7 -0
  19. package/dist/typings/src/EY/Login/index.d.ts +6 -0
  20. package/dist/typings/src/EY/PreCheckEmail/index.d.ts +1 -0
  21. package/dist/typings/src/EY/Protocol/index.d.ts +1 -0
  22. package/dist/typings/src/EY/components/EmailFormItem.d.ts +2 -0
  23. package/dist/typings/src/EY/components/GoBack.d.ts +1 -0
  24. package/dist/typings/src/EY/components/ResetPassword.d.ts +16 -0
  25. package/dist/typings/src/EY/interface.d.ts +75 -0
  26. package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +3 -0
  27. package/dist/typings/src/Guard/GuardModule/stateMachine.d.ts +1 -1
  28. package/dist/typings/src/Guard/authClient.d.ts +4 -6
  29. package/dist/typings/src/Guard/config.d.ts +1 -0
  30. package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +21 -21
  31. package/dist/typings/src/Guard/module.d.ts +59 -28
  32. package/dist/typings/src/Invitation/interface.d.ts +1 -1
  33. package/dist/typings/src/Login/core/eyWithWeComQrcode.d.ts +1 -0
  34. package/dist/typings/src/Login/core/withAuthingOtpPush/types.d.ts +3 -3
  35. package/dist/typings/src/Login/index.d.ts +4 -0
  36. package/dist/typings/src/MFA/BindPreCheck/index.d.ts +2 -0
  37. package/dist/typings/src/MFA/VerifyCodeInput/ey.d.ts +16 -0
  38. package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +5 -0
  39. package/dist/typings/src/MFA/businessRequest.d.ts +2 -1
  40. package/dist/typings/src/MFA/core/email.d.ts +1 -0
  41. package/dist/typings/src/MFA/core/passkey.d.ts +1 -1
  42. package/dist/typings/src/MFA/core/sms.d.ts +1 -0
  43. package/dist/typings/src/MFA/core/totp.d.ts +1 -0
  44. package/dist/typings/src/MFA/mfaMethods/index.d.ts +1 -0
  45. package/dist/typings/src/Qrcode/UiQrCode.d.ts +1 -1
  46. package/dist/typings/src/Qrcode/WorkQrCode.d.ts +1 -1
  47. package/dist/typings/src/Qrcode/hooks/useImage.d.ts +1 -1
  48. package/dist/typings/src/Qrcode/hooks/usePreQrCode.d.ts +2 -2
  49. package/dist/typings/src/Qrcode/index.d.ts +2 -2
  50. package/dist/typings/src/SelfUnlock/core/selfUnlock.d.ts +1 -1
  51. package/dist/typings/src/SendCode/SendCodeBtn.d.ts +2 -1
  52. package/dist/typings/src/SendCode/index.d.ts +1 -0
  53. package/dist/typings/src/TenantPortalSelect/interface.d.ts +1 -1
  54. package/dist/typings/src/Type/application.d.ts +28 -19
  55. package/dist/typings/src/ValidatorRules/index.d.ts +1 -1
  56. package/dist/typings/src/_utils/config/index.d.ts +1 -0
  57. package/dist/typings/src/_utils/context.d.ts +151 -1
  58. package/dist/typings/src/_utils/http.d.ts +4 -4
  59. package/dist/typings/src/_utils/index.d.ts +3 -1
  60. package/dist/typings/src/_utils/responseManagement/interface.d.ts +15 -5
  61. package/dist/typings/src/_utils/signRequestParams.d.ts +8 -0
  62. package/package.json +2 -2
@@ -4,6 +4,6 @@ export declare const LngTextMapping: Record<Lang, {
4
4
  label: string;
5
5
  }>;
6
6
  export declare const ChangeLanguage: (props: {
7
- onLangChange?: ((lang: Lang) => void) | undefined;
8
- langRange?: Lang[] | undefined;
7
+ onLangChange?: (lang: Lang) => void;
8
+ langRange?: Lang[];
9
9
  }) => JSX.Element | null;
@@ -1,9 +1,16 @@
1
1
  import { React } from 'shim-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
- extendsFieldsI18n?: any;
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;
@@ -21,7 +21,7 @@ export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
21
21
  initData: any;
22
22
  onLogin?: any;
23
23
  }
24
- export declare type ExtendsFieldType = 'user' | 'internal';
24
+ export type ExtendsFieldType = 'user' | 'internal';
25
25
  export interface ExtendsField {
26
26
  type: ExtendsFieldType;
27
27
  name: string;
@@ -93,6 +93,10 @@ export interface CompleteInfoRequest {
93
93
  name: string;
94
94
  value: string;
95
95
  code?: string;
96
+ /**
97
+ * 国际手机区号
98
+ */
99
+ phoneCountryCode?: string;
96
100
  }[];
97
101
  }
98
102
  export declare enum OmitCompleteInfo {
@@ -9,6 +9,13 @@ export declare const extendsFieldsToMetaData: (extendsFields: import("../Type/ap
9
9
  label: string;
10
10
  }[];
11
11
  }[]) => CompleteInfoMetaData[];
12
+ export declare const eyFieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
13
+ registerProfile: Record<string, any>;
14
+ udf: {
15
+ key: string;
16
+ value: string;
17
+ }[];
18
+ };
12
19
  export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
13
20
  registerProfile: Record<string, any>;
14
21
  udf: {
@@ -0,0 +1 @@
1
+ export declare const EyGuardCheckCaptchaView: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EyGuardInviteExpireView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { React } from 'shim-react';
2
+ export declare const EyGuardForgetPassword: React.FC;
@@ -0,0 +1 @@
1
+ export declare const EyGuardInviteCompleteView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const WeComQrcode: (props: any) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const WeComQrcodeNew: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EyGuardIviteIdentityBindView: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EyGuardInviteLoadingView: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EyLoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EyLoginWithWeComQrcodeNew: (props: any) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { React } from 'shim-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 {};
@@ -0,0 +1,7 @@
1
+ import { React } from 'shim-react';
2
+ import { EyLoginProps } from '../../interface';
3
+ interface ScanCodeSceneProps extends EyLoginProps {
4
+ refreshQrcode: number;
5
+ }
6
+ export declare const ScanCodeScene: React.FC<ScanCodeSceneProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface GuardLoginInitData {
2
+ scene: 'password' | 'qrcode' | 'verifyCode';
3
+ noBack: boolean;
4
+ verifyAccount?: string;
5
+ }
6
+ export declare const EyGuardLoginView: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EyGuardPreCheckEmailView: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const EyGuardProtocolView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EmailFormItem: (props: any) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const GoBack: (props: any) => JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { React } from 'shim-react';
2
+ export declare enum InputMethodMap {
3
+ email = "email-code",
4
+ phone = "phone-code"
5
+ }
6
+ interface ResetPasswordProps {
7
+ publicConfig: any;
8
+ setControlShow: any;
9
+ setPolicyStrength: any;
10
+ setCustomPasswordStrength: any;
11
+ setPhoneOrEmailText: any;
12
+ setResetToken: React.Dispatch<React.SetStateAction<string>>;
13
+ setUserId: React.Dispatch<React.SetStateAction<string>>;
14
+ }
15
+ export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
16
+ export {};
@@ -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 EyGuardInviteLoginInitData extends Partial<InviteContext> {
42
+ canBack?: boolean;
43
+ verifyAccount: string;
44
+ context: any;
45
+ originModule: GuardModuleType;
46
+ originContext: any;
47
+ }
48
+ export interface EyGuardInviteCompleteInitData extends Partial<EyGuardInviteLoginInitData> {
49
+ metaData: any;
50
+ }
51
+ export interface EyGuardInviteIdentityBindInitData extends Partial<EyGuardInviteLoginInitData> {
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
+ }) => (context: any) => Promise<void>;
@@ -1,4 +1,5 @@
1
1
  import { React } from 'shim-react';
2
+ import { VerifyLoginMethods } from '../../Type';
2
3
  export declare enum InputMethodMap {
3
4
  email = "email-code",
4
5
  phone = "phone-code"
@@ -11,6 +12,8 @@ interface ResetPasswordProps {
11
12
  setPhoneOrEmailText: any;
12
13
  setResetToken: React.Dispatch<React.SetStateAction<string>>;
13
14
  setUserId: React.Dispatch<React.SetStateAction<string>>;
15
+ supportMethods?: VerifyLoginMethods[];
16
+ firstValidate?: 'phone' | 'email';
14
17
  }
15
18
  export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
16
19
  export {};
@@ -14,7 +14,7 @@ export interface StateMachineLog {
14
14
  date: number;
15
15
  dataSource: ModuleState;
16
16
  }
17
- export declare type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
17
+ export type ChangeModuleEvent = (nextModule: GuardModuleType, initData?: any) => void;
18
18
  export declare class GuardStateMachine {
19
19
  private order;
20
20
  private config;
@@ -1,14 +1,12 @@
1
1
  import { AuthenticationClient } from 'authing-js-sdk';
2
2
  import { GuardLocalConfig } from './config';
3
- declare let authClient: AuthenticationClient;
4
3
  export declare const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string) => AuthenticationClient;
5
4
  export declare const useInitGuardAuthClient: (props: {
6
- config?: GuardLocalConfig | undefined;
7
- appId?: string | undefined;
8
- authClient?: AuthenticationClient | undefined;
5
+ config?: GuardLocalConfig;
6
+ appId?: string;
7
+ authClient?: AuthenticationClient;
9
8
  setError?: any;
10
- tenantId?: string | undefined;
9
+ tenantId?: string;
11
10
  }) => AuthenticationClient | undefined;
12
11
  export declare const getGuardAuthClient: () => AuthenticationClient;
13
12
  export declare const useGuardAuthClient: () => AuthenticationClient;
14
- export {};
@@ -4,6 +4,7 @@ import { ForgetPasswordConfig } from '../ForgetPassword/interface';
4
4
  import { LoginConfig } from '../Login/interface';
5
5
  import { RegisterConfig } from '../Register/interface';
6
6
  export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPasswordConfig {
7
+ isInvited?: boolean;
7
8
  isSSO?: boolean;
8
9
  defaultScenes?: GuardModuleType;
9
10
  defaultInitData?: any;
@@ -13,7 +13,7 @@ export declare const QR_CODE_WAY: LoginWay[];
13
13
  * 登录时所有支持的登录列表(前端定义列表)
14
14
  * 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
15
15
  */
16
- export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'zjzwfw-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
16
+ export type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'zjzwfw-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
17
17
  /**
18
18
  * when: 多账号页面跳转进入登录页面
19
19
  * 携带的回填数据信息
@@ -27,7 +27,7 @@ export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickn
27
27
  /**
28
28
  * Store instance
29
29
  */
30
- export declare type StoreInstance = ReturnType<MultipleAccount['getStore']>;
30
+ export type StoreInstance = ReturnType<MultipleAccount['getStore']>;
31
31
  /**
32
32
  * 当前 userId 对应的类型
33
33
  */
@@ -248,18 +248,18 @@ declare class MultipleAccount {
248
248
  }) => void;
249
249
  setUserInfo: (user: Omit<User & {
250
250
  id: string;
251
- loginAccount?: string | undefined;
252
- usertype?: string | undefined;
253
- }, "way" | "tab" | "phoneCountryCode">) => void;
251
+ loginAccount?: string;
252
+ usertype?: string;
253
+ }, 'way' | 'tab' | 'phoneCountryCode'>) => void;
254
254
  setLoginWayByHttpData: (account: string, data: {
255
- username?: string | undefined;
256
- phone?: string | undefined;
257
- email?: string | undefined;
255
+ username?: string;
256
+ phone?: string;
257
+ email?: string;
258
258
  }) => void;
259
259
  setLoginWayByLDAPData: (account: string, data: {
260
- name?: string | undefined;
261
- phone?: string | undefined;
262
- email?: string | undefined;
260
+ name?: string;
261
+ phone?: string;
262
+ email?: string;
263
263
  }) => void;
264
264
  getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
265
265
  getMemoSingleUser: (id: string) => {
@@ -278,7 +278,7 @@ declare class MultipleAccount {
278
278
  * Finally Config 类型过滤
279
279
  */
280
280
  declare const useSelectAccounts: ({ appId, finallyConfig }: {
281
- appId?: string | undefined;
281
+ appId?: string;
282
282
  finallyConfig?: any;
283
283
  }) => {
284
284
  instance: {
@@ -292,18 +292,18 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
292
292
  }) => void;
293
293
  setUserInfo: (user: Omit<User & {
294
294
  id: string;
295
- loginAccount?: string | undefined;
296
- usertype?: string | undefined;
297
- }, "way" | "tab" | "phoneCountryCode">) => void;
295
+ loginAccount?: string;
296
+ usertype?: string;
297
+ }, 'way' | 'tab' | 'phoneCountryCode'>) => void;
298
298
  setLoginWayByHttpData: (account: string, data: {
299
- username?: string | undefined;
300
- phone?: string | undefined;
301
- email?: string | undefined;
299
+ username?: string;
300
+ phone?: string;
301
+ email?: string;
302
302
  }) => void;
303
303
  setLoginWayByLDAPData: (account: string, data: {
304
- name?: string | undefined;
305
- phone?: string | undefined;
306
- email?: string | undefined;
304
+ name?: string;
305
+ phone?: string;
306
+ email?: string;
307
307
  }) => void;
308
308
  getMemoUser: (excludeWays?: LoginWay[]) => SelectOptions[];
309
309
  getMemoSingleUser: (id: string) => {
@@ -1,39 +1,70 @@
1
1
  export declare enum GuardModuleType {
2
- ERROR = "error",
3
- LOGIN = "login",
4
- REGISTER = "register",
5
- MFA = "mfa",
6
- FORGET_PWD = "forgetPassword",
7
- FORCED_PASSWORD_RESET = "forcedPasswordReset",
8
- NOTICE_PASSWORD_RESET = "noticePasswordReset",
9
- FIRST_LOGIN_PASSWORD = "firstLoginPassword",
10
- UNSAFE_PASSWORD_RESET = "unsafePasswordReset",
11
- DOWNLOAD_AT = "downloadAT",
12
- BIND_TOTP = "bindTotp",
13
- ANY_QUESTIONS = "anyQuestions",
14
- LOGIN_COMPLETE_INFO = "loginCompleteInfo",
15
- REGISTER_PASSWORD = "registerPassword",
16
- REGISTER_COMPLETE_INFO = "registerCompleteInfo",
17
- RECOVERY_CODE = "recoveryCode",
18
- SUBMIT_SUCCESS = "submitSuccess",
19
- IDENTITY_BINDING_ASK = "identityBindingAsk",
20
- IDENTITY_BINDING = "identityBinding",
21
- IDENTITY_BINDING_NO_ASK = "identityBindingNoAsk",
22
- SELF_UNLOCK = "selfUnlock",
23
- FLOW_SELECT_ACCOUNT = "flowSelectAccount",
2
+ ERROR = "error",//错误页
3
+ LOGIN = "login",//登录页
4
+ REGISTER = "register",//注册页
5
+ MFA = "mfa",// 二次 mfa 认证页
6
+ FORGET_PWD = "forgetPassword",// 忘记密码页
7
+ FORCED_PASSWORD_RESET = "forcedPasswordReset",// 登陆安全策略 密码轮换页
8
+ NOTICE_PASSWORD_RESET = "noticePasswordReset",//提示修改密码页
9
+ FIRST_LOGIN_PASSWORD = "firstLoginPassword",//首次登录修改密码页
10
+ UNSAFE_PASSWORD_RESET = "unsafePasswordReset",// 密码强度不符合要求修改密码页
11
+ DOWNLOAD_AT = "downloadAT",//下载 Authenticator 页
12
+ BIND_TOTP = "bindTotp",// 绑定 TOTP页
13
+ ANY_QUESTIONS = "anyQuestions",// 问题反馈页
14
+ LOGIN_COMPLETE_INFO = "loginCompleteInfo",// 登录信息补全
15
+ REGISTER_PASSWORD = "registerPassword",// 验证码注册拉起密码补全页
16
+ REGISTER_COMPLETE_INFO = "registerCompleteInfo",//注册信息补全页
17
+ RECOVERY_CODE = "recoveryCode",// MFA 恢复码展示页
18
+ SUBMIT_SUCCESS = "submitSuccess",// 提交成功展示页
19
+ IDENTITY_BINDING_ASK = "identityBindingAsk",// 身份源绑定 问询页
20
+ IDENTITY_BINDING = "identityBinding",// 身份源绑定页
21
+ IDENTITY_BINDING_NO_ASK = "identityBindingNoAsk",// 身份源绑定页不问询
22
+ SELF_UNLOCK = "selfUnlock",// 自助解锁页
23
+ FLOW_SELECT_ACCOUNT = "flowSelectAccount",// 选择登录账号
24
+ SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",// 选择登录身份
24
25
  /** 多租户门户选择页 */
25
26
  TENANT_PORTAL = "tenant-portal",
26
- New_SUBMIT_SUCCESS = "newSubmitSuccess",
27
- SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
27
+ New_SUBMIT_SUCCESS = "newSubmitSuccess",// 提交成功展示页
28
28
  RESET_ACCOUNT_NAME = "resetAccountName",
29
29
  APPLY_INVITATION = "applyInvitation",
30
30
  MESSAGE = "message",
31
31
  INVITE_AUTH = "inviteAuth",
32
32
  INVITE_COMPLETE = "inviteComplete",
33
- INVITE_EXPIRE = "inviteExpire",
34
- INVITE_PAGE_EXPIRE = "invitePageExpire",
35
- INVITE_SUCCESS = "inviteSuccess",
36
- RESET_PASSWORD = "resetPassword"
33
+ INVITE_EXPIRE = "inviteExpire",// 邀请链接过期
34
+ INVITE_PAGE_EXPIRE = "invitePageExpire",// 页面过期
35
+ INVITE_SUCCESS = "inviteSuccess",// 邀请成功
36
+ RESET_PASSWORD = "resetPassword",
37
+ /**
38
+ * pre check email
39
+ */
40
+ EY_PRE_CHECK_EMAIL = "ey_pre_check_email",
41
+ /**
42
+ * protocols
43
+ */
44
+ EY_PROTOCOLS = "ey_protocols",
45
+ /**
46
+ * check captcha
47
+ */
48
+ EY_CHECK_CAPTCHA = "ey_check_captcha",
49
+ /**
50
+ * invite expire
51
+ */
52
+ EY_INVITE_EXPIRE = "ey_invite_expire",
53
+ /**
54
+ * invite loading
55
+ */
56
+ EY_INVITE_LOADING = "ey_invite_loading",
57
+ /**
58
+ * identity bind
59
+ */
60
+ EY_IDENTITY_BIND = "ey_identity_bind",
61
+ /**
62
+ * invite complete
63
+ */
64
+ EY_INVITE_COMPLETE = "ey_invite_complete"
65
+ /**
66
+ * invite login
67
+ */
37
68
  }
38
69
  export interface GuardModuleAction {
39
70
  action: string;
@@ -63,4 +63,4 @@ export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
63
63
  current: {
64
64
  onSpin: (arg0: boolean) => void;
65
65
  };
66
- } | undefined) => (context: any) => Promise<void>;
66
+ }) => (context: any) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const EYLoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -10,7 +10,7 @@ export interface OnLoginProps {
10
10
  account: string;
11
11
  agreementIds?: (string | number)[];
12
12
  }
13
- export declare type LoginStatus = 'before' | 'pending';
13
+ export type LoginStatus = 'before' | 'pending';
14
14
  export interface LoginWithAuthingOtpPushProps {
15
15
  onLoginSuccess?: any;
16
16
  multipleInstance?: StoreInstance;
@@ -21,9 +21,9 @@ export interface PushLoginGudeModalProps {
21
21
  visible: boolean;
22
22
  onClose: () => void;
23
23
  }
24
- export declare type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
24
+ export type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
25
25
  export interface SelectorOption {
26
26
  value: Selector;
27
27
  label: string;
28
28
  }
29
- export declare type SelectorOptions = SelectorOption[];
29
+ export type SelectorOptions = SelectorOption[];
@@ -1,5 +1,9 @@
1
1
  import { React } from 'shim-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: React.FC<{
4
8
  isResetPage?: boolean;
5
9
  }>;
@@ -0,0 +1,2 @@
1
+ import './style.less';
2
+ export default function BindPreCheck(props: any): JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { React } from 'shim-react';
2
+ import './style.less';
3
+ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ beforeSend: () => Promise<boolean>;
5
+ verifyType: 'emailCode' | 'phoneCode';
6
+ length?: number;
7
+ size?: string;
8
+ gutter?: string;
9
+ onEenter?: Function;
10
+ showDivider?: boolean;
11
+ onChange?: any;
12
+ value?: string;
13
+ onFinish?: any;
14
+ }
15
+ export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<VerifyCodeInputProps & React.RefAttributes<any>>;
16
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { React } from 'shim-react';
2
+ import { SlotProps } from 'input-otp';
2
3
  import './style.less';
3
4
  interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
4
5
  length?: number;
@@ -9,6 +10,10 @@ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
9
10
  onChange?: any;
10
11
  value?: string;
11
12
  onFinish?: any;
13
+ ResentBtnSort?: () => JSX.Element;
12
14
  }
15
+ export declare const SoltInput: (solt: SlotProps & {
16
+ style: any;
17
+ }) => JSX.Element;
13
18
  export declare const VerifyCodeInput: React.FC<VerifyCodeInputProps>;
14
19
  export {};
@@ -35,7 +35,7 @@ interface AssociateFaceContent {
35
35
  isExternalPhoto?: boolean;
36
36
  mfaToken?: string;
37
37
  }
38
- declare type BindPasskeyContent = PublicKeyCredentialWithAttestationJSON;
38
+ type BindPasskeyContent = PublicKeyCredentialWithAttestationJSON;
39
39
  interface VerifyPasskeyContent {
40
40
  credential: PublicKeyCredentialWithAssertionJSON;
41
41
  ticket: string;
@@ -47,6 +47,7 @@ interface GetPasskeyVerifyChallengeParams {
47
47
  mfaToken: string;
48
48
  }
49
49
  export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<AuthingGuardResponse<any>>;
50
+ export declare const checkEmailOrSms: (content: any) => Promise<AuthingGuardResponse<any>>;
50
51
  export declare const VerifySms: (content: VerifySmsContent) => Promise<AuthingGuardResponse<any>>;
51
52
  export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>;
52
53
  export declare const VerifyFace: (content: VerifyFaceContent) => Promise<AuthingGuardResponse<any>>;
@@ -20,4 +20,5 @@ export declare const MFAEmail: React.FC<{
20
20
  mfaLogin: any;
21
21
  config: MFAConfig;
22
22
  }>;
23
+ export declare const EmailPreCheck: React.FC<any>;
23
24
  export {};
@@ -9,7 +9,7 @@ interface VerifyPasskeyProps {
9
9
  mfaToken: string;
10
10
  mfaLogin: (code: any, data: any, message?: string) => void;
11
11
  }
12
- export declare type MFAPasskeyProps = BindPasskeyProps & VerifyPasskeyProps & {
12
+ export type MFAPasskeyProps = BindPasskeyProps & VerifyPasskeyProps & {
13
13
  passkeyEnabled: boolean;
14
14
  };
15
15
  export declare const MFAPasskey: React.FC<MFAPasskeyProps>;
@@ -28,3 +28,4 @@ export declare const MFASms: React.FC<{
28
28
  initData: GuardMFAInitData;
29
29
  mfaConfigsMap: Map<MFAType, boolean>;
30
30
  }>;
31
+ export declare const SmsPreCheck: React.FC<any>;
@@ -18,3 +18,4 @@ export interface MFATotpProps {
18
18
  mfaLogin: any;
19
19
  }
20
20
  export declare const MFATotp: React.FC<MFATotpProps>;
21
+ export declare const TotpPreCheck: (props: any) => JSX.Element;
@@ -4,5 +4,6 @@ import './style.less';
4
4
  export interface MFAMethodsProps {
5
5
  method: MFAType;
6
6
  onChangeMethod: (type: MFAType) => void;
7
+ beforeBind?: any;
7
8
  }
8
9
  export declare const MFAMethods: React.FC<MFAMethodsProps>;
@@ -1,7 +1,7 @@
1
1
  import { React } from 'shim-react';
2
2
  import './index.less';
3
3
  import { CodeStatusDescriptions } from './WorkQrCode';
4
- export declare type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
4
+ export type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
5
5
  export declare const prefix = "refactor";
6
6
  export interface UiQrProps {
7
7
  /**
@@ -4,7 +4,7 @@ import { CodeStatus, UiQrProps } from './UiQrCode';
4
4
  /**
5
5
  * 二维码不同状态下的底部描述文字
6
6
  */
7
- export declare type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
7
+ export type CodeStatusDescriptions = Partial<Record<Exclude<CodeStatus, 'loading'>, React.ReactNode | ((referQrCode?: () => void) => React.ReactNode)>>;
8
8
  export interface WorkQrCodeRef {
9
9
  referQrCode: () => Promise<{
10
10
  random: string;
@@ -1,4 +1,4 @@
1
1
  declare const useImage: (src: string | undefined, options: {
2
- onLoad?: (() => void) | undefined;
2
+ onLoad?: () => void;
3
3
  }) => (string | undefined)[];
4
4
  export { useImage };