@authing/react-ui-components 4.3.16-rc.5 → 4.3.16-rc.6

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 (33) hide show
  1. package/lib/index.min.css +1 -1
  2. package/lib/index.min.js +1 -1
  3. package/lib/index.min.js.LICENSE.txt +0 -6
  4. package/package.json +3 -5
  5. package/types/AuthClientProvider/AuthClientProvider.d.ts +2 -4
  6. package/types/Back/index.d.ts +1 -3
  7. package/types/ChangePassword/index.d.ts +1 -2
  8. package/types/CompleteInfo/interface.d.ts +1 -4
  9. package/types/CompleteInfo/utils.d.ts +0 -6
  10. package/types/ForgetPassword/core/resetPassword.d.ts +2 -2
  11. package/types/ForgetPassword/interface.d.ts +1 -2
  12. package/types/Guard/config.d.ts +1 -2
  13. package/types/Guard/core/hooks/useMultipleAccounts.d.ts +1 -1
  14. package/types/Guard/core/renderContext.d.ts +1 -2
  15. package/types/Guard/event.d.ts +1 -12
  16. package/types/Guard/module.d.ts +1 -3
  17. package/types/IdentityBinding/IdentityBinding.d.ts +1 -3
  18. package/types/IdentityBinding/businessRequest.d.ts +2 -5
  19. package/types/InputPassword/index.d.ts +4 -2
  20. package/types/Login/index.d.ts +2 -4
  21. package/types/Login/multipleAccounts/panel.d.ts +0 -1
  22. package/types/NewSubmitSuccess/interface.d.ts +0 -2
  23. package/types/Qrcode/UiQrCode.d.ts +1 -1
  24. package/types/SendCode/SendCodeByPhone.d.ts +0 -2
  25. package/types/TenantPortalSelect/index.d.ts +13 -0
  26. package/types/Type/application.d.ts +1 -32
  27. package/types/Type/index.d.ts +0 -2
  28. package/types/_utils/config/index.d.ts +0 -2
  29. package/types/_utils/context.d.ts +2 -15
  30. package/types/_utils/index.d.ts +4 -6
  31. package/types/_utils/responseManagement/interface.d.ts +1 -3
  32. package/types/index.d.ts +0 -1
  33. package/types/version/version.d.ts +1 -1
@@ -25,12 +25,6 @@
25
25
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
26
26
  */
27
27
 
28
- /**
29
- * @license qrcode.react
30
- * Copyright (c) Paul O'Shannessy
31
- * SPDX-License-Identifier: ISC
32
- */
33
-
34
28
  /** @license React v16.13.1
35
29
  * react-is.production.min.js
36
30
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.3.16-rc.5",
3
+ "version": "4.3.16-rc.6",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -11,13 +11,12 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "antd": "^4.8.0",
14
- "authing-js-sdk": "4.23.44",
14
+ "authing-js-sdk": "4.23.36-alpha.1",
15
15
  "classnames": "^2.3.1",
16
16
  "fastclick": "^1.0.6",
17
17
  "global": "^4.4.0",
18
18
  "phone": "^3.1.12",
19
19
  "prompt": "^1.3.0",
20
- "qrcode.react": "^3.1.0",
21
20
  "qs": "^6.9.4",
22
21
  "react-responsive": "^9.0.0-beta.5",
23
22
  "react-use": "^17.3.1",
@@ -46,8 +45,7 @@
46
45
  "vite": "vite",
47
46
  "generate-version": "node ./scripts/generate-version",
48
47
  "generate-examples": "node ./scripts/generate-examples.js",
49
- "test": "node ./scripts/dev/pre-build.js",
50
- "lint:fix": "eslint --fix --ext .ts,.tsx,.js ./components"
48
+ "test": "node ./scripts/dev/pre-build.js"
51
49
  },
52
50
  "publishConfig": {
53
51
  "access": "public",
@@ -1,6 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { AuthClientContextProps } from './context';
3
- export declare const AuthClientProvider: React.FC<AuthClientContextProps & {
4
- children: ReactNode;
5
- }>;
3
+ export declare const AuthClientProvider: React.FC<AuthClientContextProps>;
6
4
  export declare const useGlobalAuthClient: () => import("authing-js-sdk").AuthenticationClient | undefined;
@@ -7,6 +7,4 @@ export declare const BackLogin: React.FC<BackProps>;
7
7
  export interface BackCustomProps extends BackProps {
8
8
  onBack?: () => void;
9
9
  }
10
- export declare const BackCustom: React.FC<BackCustomProps & {
11
- children: any;
12
- }>;
10
+ export declare const BackCustom: React.FC<BackCustomProps>;
@@ -1,8 +1,7 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  export declare const GuardChangePassword: React.FC<{
3
3
  title: string;
4
4
  explain: string;
5
- children: ReactNode;
6
5
  }>;
7
6
  export declare const GuardFirstLoginPasswordResetView: React.FC;
8
7
  export declare const GuardPasswordNotSafeResetView: React.FC;
@@ -1,5 +1,5 @@
1
1
  import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
2
- import { IG2Config, IG2Events, IG2FCProps, Lang } from '../Type';
2
+ import { IG2Config, IG2Events, IG2FCProps } from '../Type';
3
3
  export interface CompleteInfoConfig extends IG2Config {
4
4
  }
5
5
  export declare const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
@@ -41,9 +41,6 @@ export interface CompleteInfoRule {
41
41
  type: FormValidateRule;
42
42
  content: string;
43
43
  errorMessage?: string;
44
- i18n?: {
45
- errorMessage: Record<Lang, []>;
46
- };
47
44
  }
48
45
  export interface CompleteInfoSelectOption {
49
46
  value: string;
@@ -20,9 +20,3 @@ export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationCo
20
20
  value: string;
21
21
  }[];
22
22
  };
23
- /**
24
- * @description 获取对应key的国际化value
25
- * @param record :example {key:"",i18n:{key:{zh_CN:{enabled:true,value:""}}}
26
- * @param key
27
- */
28
- export declare const getI18nValue: (record: any, key: string) => any;
@@ -1,15 +1,15 @@
1
- import React from 'react';
1
+ /// <reference types="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;
8
9
  setControlShow: any;
9
10
  setPolicyStrength: any;
10
11
  setCustomPasswordStrength: any;
11
12
  setPhoneOrEmailText: any;
12
- setResetToken: React.Dispatch<React.SetStateAction<string>>;
13
13
  }
14
14
  export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
15
15
  export {};
@@ -2,14 +2,13 @@ import { AuthenticationClient, CommonMessage, SceneType } from 'authing-js-sdk';
2
2
  import { EmailScene, IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
3
3
  export interface ForgetPasswordEvents extends IG2Events {
4
4
  onEmailSend?: (authClient: AuthenticationClient, sence?: EmailScene) => void;
5
- onEmailSendError?: (error?: CommonMessage, authClient?: AuthenticationClient, sence?: EmailScene) => void;
5
+ onEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient, sence?: EmailScene) => void;
6
6
  onPhoneSend?: (authClient: AuthenticationClient, sence?: SceneType) => void;
7
7
  onPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient, sence?: SceneType) => void;
8
8
  onPwdReset?: (authClient: AuthenticationClient) => void;
9
9
  onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
10
10
  }
11
11
  export interface ForgetPasswordConfig extends IG2Config {
12
- goBack?: null | (() => void);
13
12
  }
14
13
  export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
15
14
  config: Partial<IG2Config>;
@@ -1,9 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { GuardModuleType } from '.';
3
- import { ForgetPasswordConfig } from '../ForgetPassword/interface';
4
3
  import { LoginConfig } from '../Login/interface';
5
4
  import { RegisterConfig } from '../Register/interface';
6
- export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPasswordConfig {
5
+ export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
7
6
  isSSO?: boolean;
8
7
  defaultScenes?: GuardModuleType;
9
8
  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' | '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
  * 携带的回填数据信息
@@ -1,8 +1,7 @@
1
1
  import { GuardProps } from '..';
2
- import React, { ReactNode } from 'react';
2
+ import React from 'react';
3
3
  import { ModuleState } from '../GuardModule/stateMachine';
4
4
  export declare const RenderContext: React.FC<{
5
5
  guardProps: GuardProps;
6
6
  initState: ModuleState;
7
- children: ReactNode;
8
7
  }>;
@@ -5,16 +5,8 @@ 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
- import { TenantPortalEvents } from '../TenantPortalSelect/interface';
9
- interface OnAfterChangeModuleOptions {
10
- currentView: string;
11
- currentModule: GuardModuleType;
12
- currentTab?: string;
13
- data?: any;
14
- }
15
- export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents, TenantPortalEvents {
8
+ export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
16
9
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
17
- onAfterChangeModule?: (options: OnAfterChangeModuleOptions) => void;
18
10
  }
19
11
  export declare const guardEventsFilter: (props: any, multipleInstance?: {
20
12
  initStore: (appId: string, options: {
@@ -73,7 +65,6 @@ export declare const GuardEventsCamelToKebabMapping: {
73
65
  readonly onRegisterInfoCompletedError: "register-info-completed-error";
74
66
  readonly onLangChange: "lang-change";
75
67
  readonly onBeforeChangeModule: "before-change-module";
76
- readonly onAfterChangeModule: "after-change-module";
77
68
  };
78
69
  export interface GuardEventsKebabToCamelType {
79
70
  load: GuardEvents['onLoad'];
@@ -97,6 +88,4 @@ export interface GuardEventsKebabToCamelType {
97
88
  'register-info-completed-error': GuardEvents['onRegisterInfoCompletedError'];
98
89
  'lang-change': GuardEvents['onLangChange'];
99
90
  'before-change-module': GuardEvents['onBeforeChangeModule'];
100
- 'after-change-module': GuardEvents['onAfterChangeModule'];
101
91
  }
102
- export {};
@@ -18,13 +18,11 @@ 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",
22
21
  SELF_UNLOCK = "selfUnlock",
23
22
  FLOW_SELECT_ACCOUNT = "flowSelectAccount",
24
23
  /** 多租户门户选择页 */
25
24
  TENANT_PORTAL = "tenant-portal",
26
- New_SUBMIT_SUCCESS = "newSubmitSuccess",
27
- RESET_ACCOUNT_NAME = "resetAccountName"
25
+ New_SUBMIT_SUCCESS = "newSubmitSuccess"
28
26
  }
29
27
  export interface GuardModuleAction {
30
28
  action: string;
@@ -1,5 +1,3 @@
1
1
  import React from 'react';
2
2
  import './styles.less';
3
- export declare const GuardIdentityBindingView: React.FC<{
4
- skipAsk?: boolean;
5
- }>;
3
+ export declare const GuardIdentityBindingView: React.FC;
@@ -21,15 +21,12 @@ 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",
25
- RegisterByPassword = "register-bind-by-password",
26
- RegisterByPhoneCode = "register-bind-by-phone-code",
27
- RegisterByEmailCode = "register-bind-by-email-code"
24
+ BindByEmailCode = "bind-identity-by-email-code"
28
25
  }
29
26
  export declare const PhoneCode: (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
30
27
  export declare const EmailCode: (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
31
28
  export declare const Password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
32
- export declare const useIdentityBindingBusinessRequest: (type?: 'register' | 'bind') => {
29
+ export declare const useIdentityBindingBusinessRequest: () => {
33
30
  "phone-code": (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
34
31
  "emial-code": (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
35
32
  password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
@@ -1,2 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const InputPassword: (props: any) => JSX.Element;
1
+ import { Input } from 'antd';
2
+ import { PasswordProps } from 'antd/lib/input';
3
+ import React from 'react';
4
+ export declare const InputPassword: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
@@ -1,5 +1,3 @@
1
- import { FC } from 'react';
1
+ /// <reference types="react" />
2
2
  import './styles.less';
3
- export declare const GuardLoginView: FC<{
4
- isResetPage?: boolean;
5
- }>;
3
+ export declare const GuardLoginView: () => JSX.Element;
@@ -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 };
@@ -10,8 +10,6 @@ export interface SubmitSuccessInitData {
10
10
  text?: string;
11
11
  countDesc?: string;
12
12
  changeModule?: GuardModuleType;
13
- needBack?: boolean;
14
- goBack?: () => void;
15
13
  }
16
14
  export interface GuardNewSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
17
15
  config: SubmitSuccessConfig;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './index.less';
3
3
  import { CodeStatusDescriptions } from './WorkQrCode';
4
4
  export declare type CodeStatus = 'loading' | 'ready' | 'already' | 'success' | 'error' | 'expired' | 'cancel' | 'MFA';
5
- export declare const prefix: string;
5
+ export declare const prefix = "refactor";
6
6
  export interface UiQrProps {
7
7
  /**
8
8
  * Loading 组件
@@ -11,7 +11,5 @@ export interface SendCodeByPhoneProps extends InputProps {
11
11
  scene: SceneType;
12
12
  areaCode?: string;
13
13
  isInternationSms?: boolean;
14
- codeFieldName?: string;
15
- captchaCode?: string;
16
14
  }
17
15
  export declare const SendCodeByPhone: FC<SendCodeByPhoneProps>;
@@ -1,3 +1,16 @@
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
+ }
3
16
  export declare const GuardTenantPortalSelectView: () => JSX.Element;
@@ -8,8 +8,7 @@ export declare enum LoginMethods {
8
8
  PhoneCode = "phone-code",
9
9
  WxMinQr = "wechat-miniprogram-qrcode",
10
10
  AD = "ad",
11
- WechatMpQrcode = "wechatmp-qrcode",
12
- AuthingOtpPush = "authing-otp-push"
11
+ WechatMpQrcode = "wechatmp-qrcode"
13
12
  }
14
13
  export declare enum OIDCConnectionMode {
15
14
  FRONT_CHANNEL = "FRONT_CHANNEL",
@@ -178,14 +177,6 @@ export interface TabFieldsI18nItem {
178
177
  [propName in Lang]?: string;
179
178
  };
180
179
  }
181
- interface LoginTypeI18nProps {
182
- tab: {
183
- default: string;
184
- i18n: {
185
- [propName: string]: string;
186
- };
187
- };
188
- }
189
180
  export interface ApplicationConfig {
190
181
  id: string;
191
182
  allowedOrigins: string[];
@@ -271,12 +262,6 @@ export interface ApplicationConfig {
271
262
  socialLoginBtns: boolean;
272
263
  userPasswordInput: boolean;
273
264
  wxMpScanTab: boolean;
274
- loginMethodsI18nDisplaySettings: {
275
- password?: LoginTypeI18nProps;
276
- verifyCode?: LoginTypeI18nProps;
277
- ad?: LoginTypeI18nProps;
278
- ldap?: LoginTypeI18nProps;
279
- };
280
265
  };
281
266
  protocol: Protocol;
282
267
  oidcConfig: OidcClientMetadata;
@@ -307,11 +292,6 @@ export interface ApplicationConfig {
307
292
  loginMethodsSort: string[];
308
293
  };
309
294
  tabMethodsFields: TabFieldsI18nItem[];
310
- regexRules?: {
311
- key: string;
312
- appLevel: string;
313
- userpoolLevel: string;
314
- }[];
315
295
  /** 是否为租户控制台应用 */
316
296
  isTenantConsole?: boolean;
317
297
  /** 是否默认为租户应用面板应用 */
@@ -322,15 +302,4 @@ export interface ApplicationConfig {
322
302
  mfa: {
323
303
  faceScore: number;
324
304
  };
325
- authingOtpPushTabConfig: {
326
- enabledLoginMethods: Array<string> | null;
327
- validLoginMethods: Array<string> | null;
328
- validRegisterMethods: Array<string> | null;
329
- };
330
- /** 是否开启自定义安全规则 */
331
- customSecurityEnabled: boolean;
332
- /** 应用的人机验证策略,始终开启、不开启、设置条件触发 */
333
- appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
334
- /** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
335
- userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
336
305
  }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
3
2
  import { GuardModuleType } from '../Guard/module';
4
3
  import { FacePlugin } from '../_utils/facePlugin/interface';
@@ -43,7 +42,6 @@ export interface IG2Config {
43
42
  userpool?: string;
44
43
  contentCss?: string;
45
44
  target?: HTMLElement | string;
46
- style?: React.CSSProperties;
47
45
  __internalRequest__?: boolean;
48
46
  __singleComponent__?: boolean;
49
47
  __unAuthFlow__?: boolean;
@@ -43,7 +43,6 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
43
43
  userpool?: string | undefined;
44
44
  contentCss?: string | undefined;
45
45
  target?: string | HTMLElement | undefined;
46
- style?: import("react").CSSProperties | undefined;
47
46
  __internalRequest__?: boolean | undefined;
48
47
  __singleComponent__?: boolean | undefined;
49
48
  __unAuthFlow__?: boolean | undefined;
@@ -101,7 +100,6 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
101
100
  withCustomData?: boolean | undefined;
102
101
  } | undefined;
103
102
  _closeLoopCheckQrcode?: boolean | undefined;
104
- goBack?: (() => void) | null | undefined;
105
103
  };
106
104
  guardPageConfig: GuardPageConfig;
107
105
  } | {
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { GuardEvents, GuardLocalConfig, GuardModuleType, GuardPageConfig, Lang } from '..';
3
3
  import { BackFillMultipleState, StoreInstance } from '../Guard/core/hooks/useMultipleAccounts';
4
4
  import { ModuleState } from '../Guard/GuardModule/stateMachine';
@@ -43,24 +43,19 @@ export interface IGuardContext {
43
43
  */
44
44
  clearBackFillData?: () => void;
45
45
  };
46
- phoneRegex: RegExp | null;
47
46
  defaultLanguageConfig: Lang;
48
47
  /** 租户信息获取和操作处理相关 */
49
48
  tenantInstance?: MultipleTenant;
50
- /** 判断是否是国外的用户池 */
51
- isForeignUserpool: boolean;
52
49
  }
53
50
  export declare const createGuardXContext: () => {
54
51
  Provider: React.FC<{
55
52
  value: Partial<IGuardContext>;
56
- children: ReactNode;
57
53
  }>;
58
54
  Consumer: React.Consumer<IGuardContext>;
59
55
  };
60
56
  export declare const useGuardXContext: () => {
61
57
  Provider: React.FC<{
62
58
  value: Partial<IGuardContext>;
63
- children: ReactNode;
64
59
  }>;
65
60
  Consumer: React.Consumer<IGuardContext>;
66
61
  };
@@ -69,9 +64,7 @@ export interface IGuardContextProvider {
69
64
  spinChange: (spin: boolean) => void;
70
65
  }
71
66
  export declare const useGuardButtonContext: () => {
72
- GuardButtonProvider: React.FC<{
73
- children: ReactNode;
74
- }>;
67
+ GuardButtonProvider: React.FC<{}>;
75
68
  };
76
69
  export declare const useGuardButtonState: () => IGuardContextProvider;
77
70
  export declare const useGuardPublicConfig: () => ApplicationConfig;
@@ -85,7 +78,6 @@ export declare const useGuardEvents: () => Partial<GuardEvents>;
85
78
  export declare const useGuardModule: () => {
86
79
  changeModule: ((moduleName: GuardModuleType, initData?: any) => Promise<void>) | undefined;
87
80
  backModule: (() => void) | undefined;
88
- currentModule: ModuleState;
89
81
  };
90
82
  export declare const useGuardFinallyConfig: () => GuardLocalConfig;
91
83
  export declare const useGuardContextLoaded: () => boolean;
@@ -150,14 +142,9 @@ export declare const useGuardMultipleInstance: () => {
150
142
  */
151
143
  clearBackFillData?: (() => void) | undefined;
152
144
  };
153
- export declare const useGuardPhoneRegex: () => RegExp | null;
154
145
  /**
155
146
  * 默认语言
156
147
  */
157
148
  export declare const useGuardDefaultLanguage: () => Lang;
158
149
  /** 用来操作和获取租户相关的内容 */
159
150
  export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
160
- /** 当前人机验证策略 */
161
- export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
162
- /** 当前用户池是否是国外用户池 */
163
- export declare const useIsForeignUserpool: () => boolean;
@@ -34,7 +34,7 @@ export declare function isObject(item: any): any;
34
34
  * @param target
35
35
  * @param ...sources
36
36
  */
37
- export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
37
+ export declare function deepMerge<T extends any = any>(target: T, ...sources: any[]): T;
38
38
  /**
39
39
  * 在托管页下上传query中指定的用户自定义字段进行补全
40
40
  * @param params 指定上传的用户自定义字段
@@ -65,16 +65,15 @@ export declare enum PasswordStrength {
65
65
  Low = 1,
66
66
  Middle = 2,
67
67
  High = 3,
68
- AUTO = 4,
69
- Custom = 5
68
+ AUTO = 4
70
69
  }
71
70
  export declare const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
72
71
  placeholder: () => string;
73
72
  validateMessage: () => string;
74
73
  }>;
75
74
  export declare const getSymbolTypeLength: (pwd: string) => number;
76
- export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined, userId?: string | undefined) => Rule[];
77
- export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string | undefined, fieldRequiredRuleMessage?: string | undefined, userId?: string | undefined) => Rule[];
75
+ export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
76
+ export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string | undefined, fieldRequiredRuleMessage?: string | undefined) => Rule[];
78
77
  export declare const sleep: (delay: number) => Promise<unknown>;
79
78
  export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
80
79
  export declare const transformMethod: (method: RegisterMethods | string) => string;
@@ -93,7 +92,6 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
93
92
  } | undefined;
94
93
  export declare const getPasswordIdentify: (identity: string) => string;
95
94
  export declare const getCurrentLng: () => Lang;
96
- export declare const regexFromString: (string: string) => RegExp | null;
97
95
  export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
98
96
  export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
99
97
  export declare const getSortTabs: (tabs: string[], tab?: string | undefined) => string[];
@@ -7,7 +7,6 @@ export declare enum CodeAction {
7
7
  export declare enum ApiCode {
8
8
  IDENTITY_BINDING_ASK = 1641,
9
9
  IDENTITY_BINDING = 1640,
10
- IDENTITY_BINDING_NO_ASK = 1666,
11
10
  APP_MFA = 1636,
12
11
  MFA = 1635,
13
12
  ABORT_FLOW = 1699,
@@ -19,7 +18,6 @@ export declare enum ApiCode {
19
18
  UNSAFE_PASSWORD_TIP = 2061,
20
19
  UNSAFE_PASSWORD_RESET = 2071,
21
20
  FLOW_SELECT_ACCOUNT = 2921,
22
- TENANT_PORTAL = 1644,
23
- RESET_ACCOUNT_NAME = 1108
21
+ TENANT_PORTAL = 1644
24
22
  }
25
23
  export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
package/types/index.d.ts CHANGED
@@ -4,4 +4,3 @@ export * from './AuthClientProvider';
4
4
  export * from './Guard';
5
5
  export * from './Type';
6
6
  export * from './version';
7
- export * from './Guard/core/hooks/useGuardView';
@@ -1,2 +1,2 @@
1
- declare const _default: "4.3.16-rc.5";
1
+ declare const _default: "4.3.16-rc.6";
2
2
  export default _default;