@authing/react-ui-components 4.4.4-ey.3 → 4.4.4-ey.30

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 (46) hide show
  1. package/lib/index.min.css +1 -1
  2. package/lib/index.min.js +1 -1
  3. package/package.json +7 -3
  4. package/types/CompleteInfo/businessRequest.d.ts +1 -1
  5. package/types/CompleteInfo/interface.d.ts +1 -1
  6. package/types/CompleteInfo/utils.d.ts +3 -13
  7. package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +2 -0
  8. package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +2 -0
  9. package/types/EY/interface.d.ts +1 -0
  10. package/types/Guard/GuardModule/stateMachine.d.ts +1 -1
  11. package/types/Guard/authClient.d.ts +1 -1
  12. package/types/Guard/core/hooks/useMultipleAccounts.d.ts +11 -11
  13. package/types/Guard/core/useAppendConfig.d.ts +1 -1
  14. package/types/Guard/core/usePlugin.d.ts +1 -1
  15. package/types/Guard/event.d.ts +3 -36
  16. package/types/Guard/module.d.ts +24 -24
  17. package/types/IconFont/useGuardIconfont.d.ts +1 -1
  18. package/types/Login/core/withAuthingOtpPush/types.d.ts +3 -3
  19. package/types/Login/hooks/useLoginMultiple.d.ts +2 -2
  20. package/types/MFA/BindPreCheck/index.d.ts +3 -0
  21. package/types/MFA/VerifyCodeInput/ey.d.ts +3 -2
  22. package/types/MFA/VerifyCodeInput/index.d.ts +5 -1
  23. package/types/MFA/businessRequest.d.ts +1 -0
  24. package/types/MFA/core/email.d.ts +1 -0
  25. package/types/MFA/core/sms.d.ts +1 -0
  26. package/types/MFA/core/totp.d.ts +1 -0
  27. package/types/MFA/mfaMethods/index.d.ts +1 -0
  28. package/types/Qrcode/UiQrCode.d.ts +1 -1
  29. package/types/Qrcode/WorkQrCode.d.ts +1 -1
  30. package/types/Qrcode/hooks/usePreQrCode.d.ts +2 -2
  31. package/types/Qrcode/hooks/useStatus.d.ts +2 -1
  32. package/types/Qrcode/index.d.ts +1 -1
  33. package/types/SendCode/SendCodeBtn.d.ts +1 -0
  34. package/types/SendCode/index.d.ts +1 -0
  35. package/types/Type/application.d.ts +12 -11
  36. package/types/Type/index.d.ts +1 -1
  37. package/types/ValidatorRules/index.d.ts +1 -1
  38. package/types/_utils/config/index.d.ts +2 -2
  39. package/types/_utils/context.d.ts +2 -2
  40. package/types/_utils/guardHttp.d.ts +2 -2
  41. package/types/_utils/hooks/index.d.ts +1 -1
  42. package/types/_utils/http.d.ts +3 -3
  43. package/types/_utils/index.d.ts +8 -8
  44. package/types/_utils/initAppId.d.ts +1 -1
  45. package/types/_utils/responseManagement/interface.d.ts +1 -1
  46. package/types/version/version.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.4.4-ey.3",
3
+ "version": "4.4.4-ey.30",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -10,19 +10,22 @@
10
10
  "types"
11
11
  ],
12
12
  "dependencies": {
13
+ "@wecom/jssdk": "1.4.3",
13
14
  "antd": "^4.8.0",
14
15
  "authing-js-sdk": "4.23.48",
15
16
  "classnames": "^2.3.1",
16
17
  "crypto-js": "^4.1.1",
17
18
  "fastclick": "^1.0.6",
18
19
  "global": "^4.4.0",
20
+ "input-otp": "^1.2.4",
19
21
  "phone": "^3.1.12",
20
22
  "prompt": "^1.3.0",
21
23
  "qrcode.react": "^3.1.0",
22
24
  "qs": "^6.9.4",
23
25
  "react-responsive": "^9.0.0-beta.5",
24
26
  "react-use": "^17.3.1",
25
- "ua-parser-js": "^1.0.2",
27
+ "typescript": "5.3.3",
28
+ "ua-parser-js": "^1.0.33",
26
29
  "wildcard": "^1.1.2"
27
30
  },
28
31
  "peerDependencies": {
@@ -240,6 +243,7 @@
240
243
  "workbox-webpack-plugin": "5.1.4"
241
244
  },
242
245
  "resolutions": {
243
- "lodash": "^4.17.21"
246
+ "lodash": "^4.17.21",
247
+ "moment": "^2.29.4"
244
248
  }
245
249
  }
@@ -4,6 +4,6 @@ export declare enum CompleteInfoAuthFlowAction {
4
4
  Complete = "complete-completion",
5
5
  Skip = "skip-completion"
6
6
  }
7
- export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
7
+ export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
8
  export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
9
9
  export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("../_utils/http").AuthingGuardResponse<any> | undefined>;
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { User } from 'authing-js-sdk';
2
- import { CompleteInfoMetaData, ExtendsField } from '../CompleteInfo/interface';
2
+ import { CompleteInfoMetaData, CompleteInfoRequest, ExtendsField } from '../CompleteInfo/interface';
3
3
  import { ApplicationConfig } from '../Type/application';
4
4
  export declare const completeFieldsFilter: (user: User, field: ExtendsField) => boolean;
5
5
  export declare const extendsFieldsToMetaData: (extendsFields: import("../Type/application").ExtendsField[] | undefined, selectOptions: {
@@ -9,24 +9,14 @@ 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?: {
13
- name: string;
14
- value: string;
15
- code?: string | undefined;
16
- phoneCountryCode?: string | undefined;
17
- }[] | undefined) => {
12
+ export declare const eyFieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
18
13
  registerProfile: Record<string, any>;
19
14
  udf: {
20
15
  key: string;
21
16
  value: string;
22
17
  }[];
23
18
  };
24
- export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: {
25
- name: string;
26
- value: string;
27
- code?: string | undefined;
28
- phoneCountryCode?: string | undefined;
29
- }[] | undefined) => {
19
+ export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
30
20
  registerProfile: Record<string, any>;
31
21
  udf: {
32
22
  key: string;
@@ -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 EyLoginWithWeComQrcodeNew: (props: any) => JSX.Element;
@@ -55,6 +55,7 @@ export interface EyGuardInviteIdentityBindInitData extends Partial<EyGuardInvite
55
55
  isDefault: boolean;
56
56
  title: string;
57
57
  };
58
+ isNew: boolean;
58
59
  socialConnections: any[];
59
60
  }
60
61
  export interface EyGuardProtocolInitData {
@@ -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,7 +1,7 @@
1
1
  import { AuthenticationClient } from 'authing-js-sdk';
2
2
  import { GuardLocalConfig } from './config';
3
3
  declare let authClient: AuthenticationClient;
4
- export declare const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string | undefined) => AuthenticationClient;
4
+ export declare const initGuardAuthClient: (config: GuardLocalConfig, appId: string, tenantId?: string) => AuthenticationClient;
5
5
  export declare const useInitGuardAuthClient: (props: {
6
6
  config?: GuardLocalConfig | undefined;
7
7
  appId?: string | undefined;
@@ -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 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';
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
  */
@@ -242,15 +242,15 @@ declare class MultipleAccount {
242
242
  serverSideLoginMethods: LoginWay[];
243
243
  isInternationSms: boolean;
244
244
  }) => void;
245
- setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string | undefined, internation?: {
245
+ setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string, internation?: {
246
246
  phoneCountryCode: string;
247
247
  areaCode: string;
248
- } | undefined) => void;
249
- setUserInfo: (user: Pick<User & {
248
+ }) => void;
249
+ setUserInfo: (user: Omit<User & {
250
250
  id: string;
251
251
  loginAccount?: string | undefined;
252
252
  usertype?: string | undefined;
253
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
253
+ }, "tab" | "way" | "phoneCountryCode">) => void;
254
254
  setLoginWayByHttpData: (account: string, data: {
255
255
  username?: string | undefined;
256
256
  phone?: string | undefined;
@@ -286,15 +286,15 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
286
286
  serverSideLoginMethods: LoginWay[];
287
287
  isInternationSms: boolean;
288
288
  }) => void;
289
- setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string | undefined, internation?: {
289
+ setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string, internation?: {
290
290
  phoneCountryCode: string;
291
291
  areaCode: string;
292
- } | undefined) => void;
293
- setUserInfo: (user: Pick<User & {
292
+ }) => void;
293
+ setUserInfo: (user: Omit<User & {
294
294
  id: string;
295
295
  loginAccount?: string | undefined;
296
296
  usertype?: string | undefined;
297
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
297
+ }, "tab" | "way" | "phoneCountryCode">) => void;
298
298
  setLoginWayByHttpData: (account: string, data: {
299
299
  username?: string | undefined;
300
300
  phone?: string | undefined;
@@ -317,7 +317,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig, }: {
317
317
  getOriginWay: () => string;
318
318
  } | undefined;
319
319
  isMultipleAccount: boolean;
320
- referMultipleState: (type: 'login' | 'multiple', data?: BackFillMultipleState | undefined) => void;
320
+ referMultipleState: (type: 'login' | 'multiple', data?: BackFillMultipleState) => void;
321
321
  multipleAccountData: BackFillMultipleState | undefined;
322
322
  clearBackFillData: () => void;
323
323
  };
@@ -1,4 +1,4 @@
1
1
  import { GuardAppendConfig } from '../..';
2
2
  export declare const getGuardWindow: () => (Window & typeof globalThis) | undefined;
3
3
  export declare const useGuardWindow: () => (Window & typeof globalThis) | undefined;
4
- export declare const useInitGuardAppendConfig: (setForceUpdate: any, appId?: string | undefined, appendConfig?: GuardAppendConfig | undefined) => void;
4
+ export declare const useInitGuardAppendConfig: (setForceUpdate: any, appId?: string, appendConfig?: GuardAppendConfig) => void;
@@ -1,3 +1,3 @@
1
1
  import { FacePlugin } from '../../_utils/facePlugin/interface';
2
2
  export declare const useGuardPlugin: any;
3
- export declare const useGuardFacePlugin: (facePlugin?: FacePlugin | undefined) => boolean;
3
+ export declare const useGuardFacePlugin: (facePlugin?: FacePlugin) => boolean;
@@ -6,6 +6,7 @@ import { IdentityBindingAskEvents } from '../IdentityBindingAsk';
6
6
  import { LoginEvents } from '../Login/interface';
7
7
  import { RegisterEvents } from '../Register/interface';
8
8
  import { TenantPortalEvents } from '../TenantPortalSelect/interface';
9
+ import { StoreInstance } from './core/hooks/useMultipleAccounts';
9
10
  interface OnAfterChangeModuleOptions {
10
11
  currentView: string;
11
12
  currentModule: GuardModuleType;
@@ -16,42 +17,8 @@ export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEv
16
17
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
17
18
  onAfterChangeModule?: (options: OnAfterChangeModuleOptions) => void;
18
19
  }
19
- export declare const guardEventsFilter: (props: any, multipleInstance?: {
20
- initStore: (appId: string, options: {
21
- serverSideLoginMethods: import("./core/hooks/useMultipleAccounts").LoginWay[];
22
- isInternationSms: boolean;
23
- }) => void;
24
- setLoginWay: (tab: "input" | "qrcode", way: import("./core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
25
- phoneCountryCode: string;
26
- areaCode: string;
27
- } | undefined) => void;
28
- setUserInfo: (user: Pick<import("./core/hooks/useMultipleAccounts").User & {
29
- id: string;
30
- loginAccount?: string | undefined;
31
- usertype?: string | undefined;
32
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
33
- setLoginWayByHttpData: (account: string, data: {
34
- username?: string | undefined;
35
- phone?: string | undefined;
36
- email?: string | undefined;
37
- }) => void;
38
- setLoginWayByLDAPData: (account: string, data: {
39
- name?: string | undefined;
40
- phone?: string | undefined;
41
- email?: string | undefined;
42
- }) => void;
43
- getMemoUser: (excludeWays?: import("./core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
44
- getMemoSingleUser: (id: string) => {
45
- way: import("./core/hooks/useMultipleAccounts").LoginWay;
46
- account: string;
47
- } | undefined;
48
- delUserById: (id: string) => string;
49
- getMemberState: () => boolean;
50
- getFirstBackFillData: () => import("./core/hooks/useMultipleAccounts").BackFillMultipleState | undefined;
51
- getOriginAccount: () => string;
52
- getOriginWay: () => string;
53
- } | undefined, openEventsMapping?: boolean | undefined) => GuardEvents;
54
- export declare const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean | undefined) => GuardEvents;
20
+ export declare const guardEventsFilter: (props: any, multipleInstance?: StoreInstance, openEventsMapping?: boolean) => GuardEvents;
21
+ export declare const guardEventsHijacking: (events: GuardEvents, openEventsMapping?: boolean) => GuardEvents;
55
22
  export declare const GuardEventsCamelToKebabMapping: {
56
23
  readonly onLoad: "load";
57
24
  readonly onLoadError: "load-error";
@@ -1,30 +1,30 @@
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",
24
- SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
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",// 选择登录身份
25
25
  /** 多租户门户选择页 */
26
26
  TENANT_PORTAL = "tenant-portal",
27
- New_SUBMIT_SUCCESS = "newSubmitSuccess",
27
+ New_SUBMIT_SUCCESS = "newSubmitSuccess",// 提交成功展示页
28
28
  RESET_ACCOUNT_NAME = "resetAccountName",
29
29
  /**
30
30
  * pre check email
@@ -1 +1 @@
1
- export declare const useGuardIconfont: (cdnBase?: string | undefined, setError?: any) => boolean;
1
+ export declare const useGuardIconfont: (cdnBase?: string, setError?: any) => boolean;
@@ -9,7 +9,7 @@ export interface CheckPushCodeStatusProps {
9
9
  export interface OnLoginProps {
10
10
  account: string;
11
11
  }
12
- export declare type LoginStatus = 'before' | 'pending';
12
+ export type LoginStatus = 'before' | 'pending';
13
13
  export interface LoginWithAuthingOtpPushProps {
14
14
  onLoginSuccess?: any;
15
15
  multipleInstance?: StoreInstance;
@@ -20,9 +20,9 @@ export interface PushLoginGudeModalProps {
20
20
  visible: boolean;
21
21
  onClose: () => void;
22
22
  }
23
- export declare type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
23
+ export type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
24
24
  export interface SelectorOption {
25
25
  value: Selector;
26
26
  label: string;
27
27
  }
28
- export declare type SelectorOptions = SelectorOption[];
28
+ export type SelectorOptions = SelectorOption[];
@@ -32,11 +32,11 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
32
32
  phoneCountryCode: string;
33
33
  areaCode: string;
34
34
  } | undefined) => void;
35
- setUserInfo: (user: Pick<import("../../Guard/core/hooks/useMultipleAccounts").User & {
35
+ setUserInfo: (user: Omit<import("../../Guard/core/hooks/useMultipleAccounts").User & {
36
36
  id: string;
37
37
  loginAccount?: string | undefined;
38
38
  usertype?: string | undefined;
39
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
39
+ }, "tab" | "way" | "phoneCountryCode">) => void;
40
40
  setLoginWayByHttpData: (account: string, data: {
41
41
  username?: string | undefined;
42
42
  phone?: string | undefined;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './style.less';
3
+ export default function BindPreCheck(props: any): JSX.Element;
@@ -7,9 +7,10 @@ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  onEenter?: Function;
8
8
  showDivider?: boolean;
9
9
  onChange?: any;
10
- value?: Array<number | string>;
10
+ value?: string;
11
11
  onFinish?: any;
12
12
  beforeSend: () => Promise<boolean>;
13
+ verifyType: 'emailCode' | 'phoneCode';
13
14
  }
14
- export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<VerifyCodeInputProps>>;
15
+ export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<VerifyCodeInputProps & React.RefAttributes<any>>;
15
16
  export {};
@@ -1,3 +1,4 @@
1
+ import { SlotProps } from 'input-otp';
1
2
  import React, { FC } from 'react';
2
3
  import './style.less';
3
4
  interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -7,9 +8,12 @@ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
7
8
  onEenter?: Function;
8
9
  showDivider?: boolean;
9
10
  onChange?: any;
10
- value?: Array<number | string>;
11
+ value?: string;
11
12
  onFinish?: any;
12
13
  ResentBtnSort?: () => JSX.Element;
13
14
  }
15
+ export declare const SoltInput: (solt: SlotProps & {
16
+ style: any;
17
+ }) => JSX.Element;
14
18
  export declare const VerifyCodeInput: FC<VerifyCodeInputProps>;
15
19
  export {};
@@ -32,6 +32,7 @@ interface AssociateFaceContent {
32
32
  mfaToken?: string;
33
33
  }
34
34
  export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
35
+ export declare const checkEmailOrSms: (content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
35
36
  export declare const VerifySms: (content: VerifySmsContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
36
37
  export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
37
38
  export declare const VerifyFace: (content: VerifyFaceContent) => Promise<import("../_utils/http").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 {};
@@ -26,3 +26,4 @@ export declare const MFASms: React.FC<{
26
26
  config: MFAConfig;
27
27
  initData: GuardMFAInitData;
28
28
  }>;
29
+ 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 '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: string;
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,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CodeStatus } from '../UiQrCode';
3
- export declare type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
4
- export declare type RootState = {
3
+ export type ReducerType = 'change' | 'changeStatus' | 'changeDesc';
4
+ export type RootState = {
5
5
  /**
6
6
  * 状态
7
7
  */
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { CodeStatus } from '../UiQrCode';
2
3
  /**
3
4
  * 根据不同状态添加不同的元素
4
5
  * 维护不同状态的处理
5
6
  */
6
- declare const useStatus: (status: CodeStatus) => ({} | null | undefined)[];
7
+ declare const useStatus: (status: CodeStatus) => React.ReactNode[];
7
8
  export { useStatus };
@@ -1,6 +1,6 @@
1
1
  import { UiQrCode } from './UiQrCode';
2
2
  import { WorkQrCode } from './WorkQrCode';
3
- declare type IQrCode = typeof WorkQrCode & {
3
+ type IQrCode = typeof WorkQrCode & {
4
4
  UI: typeof UiQrCode;
5
5
  };
6
6
  declare const QrCode: IQrCode;
@@ -6,5 +6,6 @@ export interface SendCodeProps extends ButtonProps {
6
6
  btnRef?: React.RefObject<HTMLButtonElement>;
7
7
  setSent?: (value: boolean) => void;
8
8
  sendDesc?: string;
9
+ timerTime?: number;
9
10
  }
10
11
  export declare const SendCodeBtn: React.ForwardRefExoticComponent<SendCodeProps & React.RefAttributes<unknown>>;
@@ -5,5 +5,6 @@ export interface SendPhoneCodeProps extends InputProps {
5
5
  form?: any;
6
6
  beforeSend?: any;
7
7
  autoSubmit?: boolean;
8
+ timerTime?: number;
8
9
  }
9
10
  export declare const SendCode: FC<SendPhoneCodeProps>;
@@ -6,12 +6,13 @@ export declare enum LoginMethods {
6
6
  AppQr = "app-qrcode",
7
7
  Password = "password",
8
8
  PhoneCode = "phone-code",
9
- EmailCode = "email-code",
10
- WxMinQr = "wechat-miniprogram-qrcode",
11
- AD = "ad",
12
- WechatMpQrcode = "wechatmp-qrcode",
13
- AuthingOtpPush = "authing-otp-push",
14
- WechatworkCorpQrconnect = "wechatwork-service-provider-qrconnect"
9
+ EmailCode = "email-code",// 这是前端单独加的,后端只会返回 phone-code
10
+ WxMinQr = "wechat-miniprogram-qrcode",// 对应社会化登录的 wechat:miniprogram:qrconnect(小程序扫码登录)
11
+ AD = "ad",// 对应企业身份源的 Windows AD 登录
12
+ WechatMpQrcode = "wechatmp-qrcode",// 微信扫码关注登录
13
+ AuthingOtpPush = "authing-otp-push",// App 扫码登录
14
+ WechatworkCorpQrconnect = "wechatwork-service-provider-qrconnect",// 微信企业扫码关注登录
15
+ WechatworkCorpQrconnectNew = "wechatwork-service-provider-qrconnect-v2"
15
16
  }
16
17
  export declare enum OIDCConnectionMode {
17
18
  FRONT_CHANNEL = "FRONT_CHANNEL",
@@ -122,7 +123,7 @@ export interface QrCodeItem {
122
123
  identifier: string;
123
124
  };
124
125
  }
125
- export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
126
+ export type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
126
127
  export interface OidcClientMetadata {
127
128
  grant_types: string[];
128
129
  client_id: string;
@@ -157,7 +158,7 @@ export interface UserExtendsField {
157
158
  required: boolean;
158
159
  validateRules: any[];
159
160
  }
160
- export declare type ExtendsField = InternalExtendsField | UserExtendsField;
161
+ export type ExtendsField = InternalExtendsField | UserExtendsField;
161
162
  export interface ApplicationPasswordTabConfig {
162
163
  enabledLoginMethods?: PasswordLoginMethods[];
163
164
  validRegisterMethods?: string[];
@@ -175,9 +176,9 @@ export interface Agreement {
175
176
  lang: Lang;
176
177
  availableAt?: number;
177
178
  }
178
- export declare type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
179
- export declare type VerifyLoginMethods = 'email-code' | 'phone-code';
180
- export declare type ComplateFiledsPlace = 'register' | 'login';
179
+ export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
180
+ export type VerifyLoginMethods = 'email-code' | 'phone-code';
181
+ export type ComplateFiledsPlace = 'register' | 'login';
181
182
  export interface TabFieldsI18nItem {
182
183
  key: string;
183
184
  label: string;
@@ -5,7 +5,7 @@ import { FacePlugin } from '../_utils/facePlugin/interface';
5
5
  import { ApplicationConfig } from './application';
6
6
  export * from './application';
7
7
  export type { CommonMessage, User };
8
- export declare type Lang = 'zh-CN' | 'en-US';
8
+ export type Lang = 'zh-CN' | 'en-US';
9
9
  export declare enum GuardMode {
10
10
  Modal = "modal",
11
11
  Normal = "normal"
@@ -20,7 +20,7 @@ export interface PasswordFormItemProps extends FormItemProps {
20
20
  export interface ICheckProps {
21
21
  check: (values: any) => void;
22
22
  }
23
- declare type InternalFormItemType = typeof FormItem;
23
+ type InternalFormItemType = typeof FormItem;
24
24
  interface FormItemInterface extends InternalFormItemType {
25
25
  Password: typeof PasswordFormItem;
26
26
  Email: typeof EmailFormItem;
@@ -7,7 +7,7 @@ export declare const getPublicConfig: (appId: string) => ApplicationConfig;
7
7
  export declare const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
8
8
  export declare const getPageConfig: (appId: string) => GuardPageConfig;
9
9
  export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
10
- export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: Partial<GuardLocalConfig> | undefined) => GuardLocalConfig | undefined;
10
+ export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: Partial<GuardLocalConfig>) => GuardLocalConfig | undefined;
11
11
  /**
12
12
  * 请求服务console关于guard的配置
13
13
  * @param forceUpdate
@@ -16,7 +16,7 @@ export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, co
16
16
  * @param httpClient
17
17
  * @param setError
18
18
  */
19
- export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, setError?: any) => {
19
+ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string, config?: GuardLocalConfig, httpClient?: GuardHttp, setError?: any) => {
20
20
  finallyConfig: {
21
21
  host: string;
22
22
  isInvited?: boolean | undefined;
@@ -202,11 +202,11 @@ export declare const useGuardMultipleInstance: () => {
202
202
  phoneCountryCode: string;
203
203
  areaCode: string;
204
204
  } | undefined) => void;
205
- setUserInfo: (user: Pick<import("../Guard/core/hooks/useMultipleAccounts").User & {
205
+ setUserInfo: (user: Omit<import("../Guard/core/hooks/useMultipleAccounts").User & {
206
206
  id: string;
207
207
  loginAccount?: string | undefined;
208
208
  usertype?: string | undefined;
209
- }, "email" | "username" | "phone" | "photo" | "id" | "name" | "nickname" | "_updateTime" | "qrCodeId" | "areaCode" | "loginAccount" | "usertype">) => void;
209
+ }, "tab" | "way" | "phoneCountryCode">) => void;
210
210
  setLoginWayByHttpData: (account: string, data: {
211
211
  username?: string | undefined;
212
212
  phone?: string | undefined;