@authing/react-ui-components 4.3.3-alpha.0 → 4.3.3-fsl.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.
Files changed (62) hide show
  1. package/lib/index.min.css +1 -1
  2. package/lib/index.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/EY/CheckCaptcha/index.d.ts +2 -0
  5. package/types/EY/Error/index.d.ts +2 -0
  6. package/types/EY/ForgetPassword/index.d.ts +2 -0
  7. package/types/EY/InviteComplete/index.d.ts +2 -0
  8. package/types/EY/InviteIdentityBind/component/WeComQrcode.d.ts +2 -0
  9. package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +2 -0
  10. package/types/EY/InviteIdentityBind/index.d.ts +2 -0
  11. package/types/EY/InviteLoading/index.d.ts +2 -0
  12. package/types/EY/Login/components/EyLoginWithWeComQrcode.d.ts +2 -0
  13. package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +2 -0
  14. package/types/EY/Login/core/EmailVerify.d.ts +7 -0
  15. package/types/EY/Login/core/ScanCode.d.ts +7 -0
  16. package/types/EY/Login/index.d.ts +7 -0
  17. package/types/EY/PreCheckEmail/index.d.ts +2 -0
  18. package/types/EY/Protocol/index.d.ts +2 -0
  19. package/types/EY/components/EmailFormItem.d.ts +2 -0
  20. package/types/EY/components/GoBack.d.ts +2 -0
  21. package/types/EY/components/ResetPassword.d.ts +16 -0
  22. package/types/EY/interface.d.ts +75 -0
  23. package/types/ForgetPassword/core/resetPassword.d.ts +2 -2
  24. package/types/ForgetPassword/interface.d.ts +1 -0
  25. package/types/Guard/config.d.ts +2 -1
  26. package/types/Guard/core/hooks/useAgreements.d.ts +3 -4
  27. package/types/Guard/core/hooks/useMultipleAccounts.d.ts +3 -3
  28. package/types/Guard/event.d.ts +3 -12
  29. package/types/Guard/module.d.ts +3 -2
  30. package/types/IdentityBinding/IdentityBinding.d.ts +3 -1
  31. package/types/IdentityBinding/businessRequest.d.ts +5 -2
  32. package/types/Login/core/withAuthingOtpPush/HowBindClient.d.ts +2 -0
  33. package/types/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +2 -0
  34. package/types/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +2 -0
  35. package/types/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +3 -0
  36. package/types/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +9 -0
  37. package/types/Login/core/withAuthingOtpPush/types.d.ts +10 -0
  38. package/types/Login/core/withWeComQrcode.d.ts +2 -0
  39. package/types/Login/hooks/useLoginMultiple.d.ts +1 -1
  40. package/types/Login/index.d.ts +4 -2
  41. package/types/Login/multipleAccounts/panel.d.ts +0 -1
  42. package/types/Login/resetAccountName/businessRequest.d.ts +6 -0
  43. package/types/Login/resetAccountName/index.d.ts +3 -0
  44. package/types/MFA/VerifyCodeInput/ey.d.ts +15 -0
  45. package/types/NewSubmitSuccess/interface.d.ts +2 -0
  46. package/types/SelectAccount2Login/index.d.ts +3 -0
  47. package/types/TenantPortalSelect/index.d.ts +0 -13
  48. package/types/TenantPortalSelect/interface.d.ts +33 -0
  49. package/types/Type/application.d.ts +13 -6
  50. package/types/_utils/config/index.d.ts +1 -0
  51. package/types/_utils/context.d.ts +3 -2
  52. package/types/_utils/index.d.ts +2 -1
  53. package/types/_utils/responseManagement/interface.d.ts +3 -1
  54. package/types/_utils/signRequestParams.d.ts +8 -0
  55. package/types/index.d.ts +0 -1
  56. package/types/version/version.d.ts +1 -1
  57. package/types/AppOtpVerify/DownloadVerifier.d.ts +0 -2
  58. package/types/AppOtpVerify/LoginApp.d.ts +0 -2
  59. package/types/AppOtpVerify/ScanQrcode.d.ts +0 -2
  60. package/types/AppOtpVerify/Steps.d.ts +0 -11
  61. package/types/AppOtpVerify/index.d.ts +0 -3
  62. package/types/Login/hooks/useOtpPushLogin.d.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.3.3-alpha.0",
3
+ "version": "4.3.3-fsl.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -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 EyGuardInviteExpireView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EyGuardForgetPassword: React.FC;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardInviteCompleteView: () => 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 WeComQrcodeNew: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardIviteIdentityBindView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardInviteLoadingView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyLoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyLoginWithWeComQrcodeNew: (props: any) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from '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 '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,7 @@
1
+ /// <reference types="react" />
2
+ export interface GuardLoginInitData {
3
+ scene: 'password' | 'qrcode' | 'verifyCode';
4
+ noBack: boolean;
5
+ verifyAccount?: string;
6
+ }
7
+ 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: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const GoBack: (props: any) => JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from '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
+ } | undefined) => (context: any) => Promise<void>;
@@ -1,15 +1,15 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare enum InputMethodMap {
3
3
  email = "email-code",
4
4
  phone = "phone-code"
5
5
  }
6
6
  interface ResetPasswordProps {
7
7
  publicConfig: any;
8
- setPhoneOrEmail: any;
9
8
  setControlShow: any;
10
9
  setPolicyStrength: any;
11
10
  setCustomPasswordStrength: any;
12
11
  setPhoneOrEmailText: any;
12
+ setResetToken: React.Dispatch<React.SetStateAction<string>>;
13
13
  }
14
14
  export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
15
15
  export {};
@@ -9,6 +9,7 @@ export interface ForgetPasswordEvents extends IG2Events {
9
9
  onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
10
10
  }
11
11
  export interface ForgetPasswordConfig extends IG2Config {
12
+ goBack?: null | (() => void);
12
13
  }
13
14
  export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
14
15
  config: Partial<IG2Config>;
@@ -1,8 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { GuardModuleType } from '.';
3
+ import { ForgetPasswordConfig } from '../ForgetPassword/interface';
3
4
  import { LoginConfig } from '../Login/interface';
4
5
  import { RegisterConfig } from '../Register/interface';
5
- export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
6
+ export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPasswordConfig {
6
7
  isSSO?: boolean;
7
8
  defaultScenes?: GuardModuleType;
8
9
  defaultInitData?: any;
@@ -1,15 +1,14 @@
1
- /// <reference types="react" />
2
1
  import { Agreement } from '../../../Type';
3
2
  interface Options {
4
3
  agreements: Agreement[];
5
4
  checkedAgreements: (string | number)[];
6
5
  checkAllAgreements: () => void;
7
- noCheckAllAgreements: () => void;
6
+ unCheckAllAgreements: () => void;
8
7
  }
9
8
  export declare function useAgreements(options: Options): {
10
9
  agreements: Agreement[];
11
- checkedAgreements: import("react").ReactText[];
10
+ checkedAgreements: (string | number)[];
12
11
  checkAllAgreements: () => void;
13
- noCheckAllAgreements: () => void;
12
+ unCheckAllAgreements: () => void;
14
13
  };
15
14
  export {};
@@ -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' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
16
+ export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone';
17
17
  /**
18
18
  * when: 多账号页面跳转进入登录页面
19
19
  * 携带的回填数据信息
@@ -249,7 +249,7 @@ declare class MultipleAccount {
249
249
  setUserInfo: (user: Pick<User & {
250
250
  id: string;
251
251
  loginAccount?: string | undefined;
252
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "qrCodeId" | "areaCode" | "_updateTime" | "loginAccount">) => void;
252
+ }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount">) => void;
253
253
  setLoginWayByHttpData: (account: string, data: {
254
254
  username?: string | undefined;
255
255
  phone?: string | undefined;
@@ -292,7 +292,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
292
292
  setUserInfo: (user: Pick<User & {
293
293
  id: string;
294
294
  loginAccount?: string | undefined;
295
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "qrCodeId" | "areaCode" | "_updateTime" | "loginAccount">) => void;
295
+ }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount">) => void;
296
296
  setLoginWayByHttpData: (account: string, data: {
297
297
  username?: string | undefined;
298
298
  phone?: string | undefined;
@@ -5,15 +5,9 @@ import { IdentityBindingEvents } from '../IdentityBinding/interface';
5
5
  import { IdentityBindingAskEvents } from '../IdentityBindingAsk';
6
6
  import { LoginEvents } from '../Login/interface';
7
7
  import { RegisterEvents } from '../Register/interface';
8
- interface OnAfterChangeModuleOptions {
9
- currentView: string;
10
- currentModule: GuardModuleType;
11
- currentTab?: string;
12
- data?: any;
13
- }
14
- export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
8
+ import { TenantPortalEvents } from '../TenantPortalSelect/interface';
9
+ export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents, TenantPortalEvents {
15
10
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
16
- onAfterChangeModule?: (options: OnAfterChangeModuleOptions) => void;
17
11
  }
18
12
  export declare const guardEventsFilter: (props: any, multipleInstance?: {
19
13
  initStore: (appId: string, options: {
@@ -27,7 +21,7 @@ export declare const guardEventsFilter: (props: any, multipleInstance?: {
27
21
  setUserInfo: (user: Pick<import("./core/hooks/useMultipleAccounts").User & {
28
22
  id: string;
29
23
  loginAccount?: string | undefined;
30
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "qrCodeId" | "areaCode" | "_updateTime" | "loginAccount">) => void;
24
+ }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount">) => void;
31
25
  setLoginWayByHttpData: (account: string, data: {
32
26
  username?: string | undefined;
33
27
  phone?: string | undefined;
@@ -72,7 +66,6 @@ export declare const GuardEventsCamelToKebabMapping: {
72
66
  readonly onRegisterInfoCompletedError: "register-info-completed-error";
73
67
  readonly onLangChange: "lang-change";
74
68
  readonly onBeforeChangeModule: "before-change-module";
75
- readonly onAfterChangeModule: "after-change-module";
76
69
  };
77
70
  export interface GuardEventsKebabToCamelType {
78
71
  load: GuardEvents['onLoad'];
@@ -96,6 +89,4 @@ export interface GuardEventsKebabToCamelType {
96
89
  'register-info-completed-error': GuardEvents['onRegisterInfoCompletedError'];
97
90
  'lang-change': GuardEvents['onLangChange'];
98
91
  'before-change-module': GuardEvents['onBeforeChangeModule'];
99
- 'after-change-module': GuardEvents['onAfterChangeModule'];
100
92
  }
101
- export {};
@@ -18,12 +18,13 @@ export declare enum GuardModuleType {
18
18
  SUBMIT_SUCCESS = "submitSuccess",
19
19
  IDENTITY_BINDING_ASK = "identityBindingAsk",
20
20
  IDENTITY_BINDING = "identityBinding",
21
+ IDENTITY_BINDING_NO_ASK = "identityBindingNoAsk",
21
22
  SELF_UNLOCK = "selfUnlock",
22
23
  FLOW_SELECT_ACCOUNT = "flowSelectAccount",
23
- APP_OTP_VERIFY = "appOtpVerify",
24
24
  /** 多租户门户选择页 */
25
25
  TENANT_PORTAL = "tenant-portal",
26
- New_SUBMIT_SUCCESS = "newSubmitSuccess"
26
+ New_SUBMIT_SUCCESS = "newSubmitSuccess",
27
+ RESET_ACCOUNT_NAME = "resetAccountName"
27
28
  }
28
29
  export interface GuardModuleAction {
29
30
  action: string;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
2
  import './styles.less';
3
- export declare const GuardIdentityBindingView: React.FC;
3
+ export declare const GuardIdentityBindingView: React.FC<{
4
+ skipAsk?: boolean;
5
+ }>;
@@ -21,12 +21,15 @@ export declare enum IdentityBindingAction {
21
21
  CreateUser = "create-federation-account",
22
22
  BindByPassword = "bind-identity-by-password",
23
23
  BindByPhoneCode = "bind-identity-by-phone-code",
24
- BindByEmailCode = "bind-identity-by-email-code"
24
+ BindByEmailCode = "bind-identity-by-email-code",
25
+ RegisterByPassword = "register-bind-by-password",
26
+ RegisterByPhoneCode = "register-bind-by-phone-code",
27
+ RegisterByEmailCode = "register-bind-by-email-code"
25
28
  }
26
29
  export declare const PhoneCode: (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
27
30
  export declare const EmailCode: (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
28
31
  export declare const Password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
29
- export declare const useIdentityBindingBusinessRequest: () => {
32
+ export declare const useIdentityBindingBusinessRequest: (type?: 'register' | 'bind') => {
30
33
  "phone-code": (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
31
34
  "emial-code": (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
32
35
  password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowBindClient(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowGetAppLoginUrl(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowUsePushLogin(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PushLoginGudeModalProps } from './types';
3
+ export declare function PushLoginGudeModal(props: PushLoginGudeModalProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { SelectorOptions, Selector } from './types';
3
+ interface PushLoginGuideSelectorProps {
4
+ defaultValue: Selector;
5
+ onChange: (value: Selector) => void;
6
+ options: SelectorOptions;
7
+ }
8
+ export declare function PushLoginGuideSelector(props: PushLoginGuideSelectorProps): JSX.Element;
9
+ export {};
@@ -16,3 +16,13 @@ export interface LoginWithAuthingOtpPushProps {
16
16
  initData?: BackFillMultipleState;
17
17
  agreements: Agreement[];
18
18
  }
19
+ export interface PushLoginGudeModalProps {
20
+ visible: boolean;
21
+ onClose: () => void;
22
+ }
23
+ export declare type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
24
+ export interface SelectorOption {
25
+ value: Selector;
26
+ label: string;
27
+ }
28
+ export declare type SelectorOptions = SelectorOption[];
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -35,7 +35,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
35
35
  setUserInfo: (user: Pick<import("../../Guard/core/hooks/useMultipleAccounts").User & {
36
36
  id: string;
37
37
  loginAccount?: string | undefined;
38
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "qrCodeId" | "areaCode" | "_updateTime" | "loginAccount">) => void;
38
+ }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount">) => void;
39
39
  setLoginWayByHttpData: (account: string, data: {
40
40
  username?: string | undefined;
41
41
  phone?: string | undefined;
@@ -1,3 +1,5 @@
1
- /// <reference types="react" />
1
+ import { FC } from 'react';
2
2
  import './styles.less';
3
- export declare const GuardLoginView: () => JSX.Element;
3
+ export declare const GuardLoginView: FC<{
4
+ isResetPage?: boolean;
5
+ }>;
@@ -40,7 +40,6 @@ export interface SelectOptions {
40
40
  * 替代图片元素
41
41
  */
42
42
  element?: React.ReactElement;
43
- way: string;
44
43
  }
45
44
  declare const SelectPanel: React.FC<SelectPanelProps>;
46
45
  export { SelectPanel };
@@ -0,0 +1,6 @@
1
+ export declare const enum ResetAccountBusinessAction {
2
+ ResetName = "reset-username-before-auth"
3
+ }
4
+ export declare const authFlow: (action: ResetAccountBusinessAction, content: {
5
+ username: string;
6
+ }) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './style.less';
3
+ export declare const ResetAccountName: FC;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './style.less';
3
+ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ length?: number;
5
+ size?: string;
6
+ gutter?: string;
7
+ onEenter?: Function;
8
+ showDivider?: boolean;
9
+ onChange?: any;
10
+ value?: Array<number | string>;
11
+ onFinish?: any;
12
+ beforeSend: () => Promise<boolean>;
13
+ }
14
+ export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<VerifyCodeInputProps>>;
15
+ export {};
@@ -10,6 +10,8 @@ export interface SubmitSuccessInitData {
10
10
  text?: string;
11
11
  countDesc?: string;
12
12
  changeModule?: GuardModuleType;
13
+ needBack?: boolean;
14
+ goBack?: () => void;
13
15
  }
14
16
  export interface GuardNewSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
15
17
  config: SubmitSuccessConfig;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './style.less';
3
+ export declare const GuardSelectAccount2LoginView: () => JSX.Element;
@@ -1,16 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import './styles.less';
3
- /** 租户门户选择状态机返回数据类型 */
4
- export interface TenantPortalSelectType {
5
- title: string;
6
- description: string;
7
- logo: string;
8
- list: {
9
- tenantName: string;
10
- tenantId: string;
11
- tenantLogo: string;
12
- host: string;
13
- userName: string;
14
- }[];
15
- }
16
3
  export declare const GuardTenantPortalSelectView: () => JSX.Element;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { AvatarProps } from 'antd/lib/avatar';
3
+ import { AuthenticationClient, IG2Events, User } from '../Type';
4
+ export interface TenantPortalListType {
5
+ tenantName: string;
6
+ tenantId: string;
7
+ tenantLogo: string;
8
+ host: string;
9
+ description: string;
10
+ /** 是否为用户池 */
11
+ isUserPool: boolean;
12
+ userName?: string;
13
+ }
14
+ export interface TenantPortalSelectType extends Omit<TenantPortalListType, 'userName'> {
15
+ }
16
+ /** 租户门户选择状态机返回数据类型 */
17
+ export interface TenantPortalDataType {
18
+ title: string;
19
+ description: string;
20
+ logo: string;
21
+ list: TenantPortalListType[];
22
+ }
23
+ export interface TenantPortalDataItem extends TenantPortalListType {
24
+ avatar?: AvatarProps;
25
+ extra?: React.ReactNode;
26
+ title?: string;
27
+ }
28
+ /** 租户门户相关事件 */
29
+ export interface TenantPortalEvents extends IG2Events {
30
+ onLogin?: (user: User, authClient: AuthenticationClient) => void;
31
+ /** 租户门户选择回调 */
32
+ onTenantSelect?: (data?: TenantPortalSelectType) => void;
33
+ }
@@ -9,7 +9,7 @@ export declare enum LoginMethods {
9
9
  WxMinQr = "wechat-miniprogram-qrcode",
10
10
  AD = "ad",
11
11
  WechatMpQrcode = "wechatmp-qrcode",
12
- AuthingOtpPush = "authing-otp-push"
12
+ WechatworkCorpQrconnect = "wechatwork-corp-qrconnect"
13
13
  }
14
14
  export declare enum OIDCConnectionMode {
15
15
  FRONT_CHANNEL = "FRONT_CHANNEL",
@@ -113,6 +113,12 @@ export interface QrCodeItem {
113
113
  id: string;
114
114
  title: string;
115
115
  isDefault?: boolean;
116
+ QRConfig?: {
117
+ corpId: string;
118
+ agentId: string;
119
+ redirectUrl: string;
120
+ identifier: string;
121
+ };
116
122
  }
117
123
  export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
118
124
  export interface OidcClientMetadata {
@@ -308,9 +314,10 @@ export interface ApplicationConfig {
308
314
  mfa: {
309
315
  faceScore: number;
310
316
  };
311
- authingOtpPushTabConfig: {
312
- enabledLoginMethods: Array<string> | null;
313
- validLoginMethods: Array<string> | null;
314
- validRegisterMethods: Array<string> | null;
315
- };
317
+ /** 是否开启自定义安全规则 */
318
+ customSecurityEnabled: boolean;
319
+ /** 应用的人机验证策略,始终开启、不开启、设置条件触发 */
320
+ appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
321
+ /** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
322
+ userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
316
323
  }
@@ -100,6 +100,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
100
100
  withCustomData?: boolean | undefined;
101
101
  } | undefined;
102
102
  _closeLoopCheckQrcode?: boolean | undefined;
103
+ goBack?: (() => void) | null | undefined;
103
104
  };
104
105
  guardPageConfig: GuardPageConfig;
105
106
  } | {
@@ -83,7 +83,6 @@ export declare const useGuardEvents: () => Partial<GuardEvents>;
83
83
  export declare const useGuardModule: () => {
84
84
  changeModule: ((moduleName: GuardModuleType, initData?: any) => Promise<void>) | undefined;
85
85
  backModule: (() => void) | undefined;
86
- currentModule: ModuleState;
87
86
  };
88
87
  export declare const useGuardFinallyConfig: () => GuardLocalConfig;
89
88
  export declare const useGuardContextLoaded: () => boolean;
@@ -117,7 +116,7 @@ export declare const useGuardMultipleInstance: () => {
117
116
  setUserInfo: (user: Pick<import("../Guard/core/hooks/useMultipleAccounts").User & {
118
117
  id: string;
119
118
  loginAccount?: string | undefined;
120
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "qrCodeId" | "areaCode" | "_updateTime" | "loginAccount">) => void;
119
+ }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount">) => void;
121
120
  setLoginWayByHttpData: (account: string, data: {
122
121
  username?: string | undefined;
123
122
  phone?: string | undefined;
@@ -155,3 +154,5 @@ export declare const useGuardPhoneRegex: () => RegExp | null;
155
154
  export declare const useGuardDefaultLanguage: () => Lang;
156
155
  /** 用来操作和获取租户相关的内容 */
157
156
  export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
157
+ /** 当前人机验证策略 */
158
+ export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
27
27
  * @param item
28
28
  * @returns {boolean}
29
29
  */
30
- export declare function isObject(item: any): any;
30
+ export declare function isObject(item: any): boolean;
31
31
  /**
32
32
  * https://www.itranslater.com/qa/details/2115518846294557696
33
33
  * Deep merge two objects.
@@ -96,3 +96,4 @@ export declare const regexFromString: (string: string) => RegExp | null;
96
96
  export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
97
97
  export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
98
98
  export declare const getSortTabs: (tabs: string[], tab?: string | undefined) => string[];
99
+ export declare const isWeComOrigin: (event: MessageEvent) => boolean;