@authing/react-ui-components 3.1.27 → 3.1.28-rc.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.
package/lib/index.d.ts CHANGED
@@ -638,19 +638,11 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
638
638
 
639
639
  }
640
640
  declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
641
- import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
641
+ import { UserConfig, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
642
642
  export const OTP_MFA_CODE = 1635;
643
643
  export const APP_MFA_CODE = 1636;
644
644
  export const NEED_CAPTCHA = 2000;
645
- export const LOGIN_METHODS_MAP: () => {
646
- password: string;
647
- "phone-code": string;
648
- "app-qrcode": string;
649
- "wechat-miniprogram-qrcode": string;
650
- ldap: string;
651
- ad: string;
652
- "wechatmp-qrcode": string;
653
- };
645
+ export const LOGIN_METHODS_MAP: any;
654
646
  export const REGISTER_METHODS_MAP: any;
655
647
  export const HIDE_SOCIALS: string[];
656
648
  export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
@@ -821,7 +813,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
821
813
  PhoneCode = "phone-code",
822
814
  WxMinQr = "wechat-miniprogram-qrcode",
823
815
  AD = "ad",
824
- WechatMpQrcode = "wechatmp-qrcode"
816
+ WechatMpQrcode = "wechatmp-qrcode",
817
+ Landray = "landray"
825
818
  }
826
819
  export enum RegisterMethods {
827
820
  Email = "email",
@@ -1167,13 +1160,23 @@ declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
1167
1160
  declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
1168
1161
  export enum ChangePasswordBusinessAction {
1169
1162
  ResetPassword = "reset-password-first-time",
1170
- FirstLoginReset = "reset-password-forced"
1163
+ FirstLoginReset = "reset-password-forced",
1164
+ ResetPasswordStrengthDetection = "reset-password-strength-detection"
1171
1165
  }
1172
1166
  export const authFlow: (action: ChangePasswordBusinessAction, content: {
1173
1167
  password: string;
1174
1168
  oldPassword?: string;
1175
1169
  }) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1176
1170
 
1171
+ }
1172
+ declare module '@authing/react-ui-components/components/ChangePassword/core/PasswordNotSafeReset' {
1173
+ import React from 'react';
1174
+ interface PasswordNotSafeResetProps {
1175
+ onReset: any;
1176
+ }
1177
+ export const PasswordNotSafeReset: React.FC<PasswordNotSafeResetProps>;
1178
+ export {};
1179
+
1177
1180
  }
1178
1181
  declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
1179
1182
  import React from 'react';
@@ -1206,6 +1209,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1206
1209
  explain: string;
1207
1210
  }>;
1208
1211
  export const GuardFirstLoginPasswordResetView: React.FC;
1212
+ export const GuardPasswordNotSafeResetView: React.FC;
1209
1213
  export const GuardForcedPasswordResetView: React.FC;
1210
1214
  export const GuardNoticePasswordResetView: React.FC;
1211
1215
  export const GuardRegisterCompletePasswordView: React.FC;
@@ -1687,6 +1691,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1687
1691
  FORCED_PASSWORD_RESET = "forcedPasswordReset",
1688
1692
  NOTICE_PASSWORD_RESET = "noticePasswordReset",
1689
1693
  FIRST_LOGIN_PASSWORD = "firstLoginPassword",
1694
+ UNSAFE_PASSWORD_RESET = "unsafePasswordReset",
1690
1695
  DOWNLOAD_AT = "downloadAT",
1691
1696
  BIND_TOTP = "bindTotp",
1692
1697
  ANY_QUESTIONS = "anyQuestions",
@@ -1951,6 +1956,17 @@ declare module '@authing/react-ui-components/components/Login/core/withLDAP' {
1951
1956
  export const LoginWithLDAP: (props: LoginWithLDAPProps) => JSX.Element;
1952
1957
  export {};
1953
1958
 
1959
+ }
1960
+ declare module '@authing/react-ui-components/components/Login/core/withLandrayQrcode' {
1961
+ /// <reference types="react" />
1962
+ interface LoginWithLandrayQrcodeProps {
1963
+ onLoginSuccess: any;
1964
+ canLoop: boolean;
1965
+ qrCodeScanOptions: any;
1966
+ }
1967
+ export const LoginWithLandrayQrcode: (props: LoginWithLandrayQrcodeProps) => JSX.Element;
1968
+ export {};
1969
+
1954
1970
  }
1955
1971
  declare module '@authing/react-ui-components/components/Login/core/withPassword/FormItemAccount' {
1956
1972
  import { FormItemProps } from 'antd/lib/form';
@@ -2907,7 +2923,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2907
2923
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2908
2924
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2909
2925
  import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
2910
- import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
2926
+ import { LoginMethods, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
2911
2927
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2912
2928
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
2913
2929
  export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
@@ -2943,8 +2959,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2943
2959
  __unAuthFlow__?: boolean | undefined;
2944
2960
  autoRegister?: boolean | undefined;
2945
2961
  disableResetPwd?: boolean | undefined;
2946
- defaultLoginMethod?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods | undefined;
2947
- loginMethods?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods[] | undefined;
2962
+ defaultLoginMethod?: LoginMethods | undefined;
2963
+ loginMethods?: LoginMethods[] | undefined;
2948
2964
  passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
2949
2965
  socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
2950
2966
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
@@ -3130,7 +3146,7 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
3130
3146
  setTenantId(tenantId: string): this;
3131
3147
  setBaseUrl(baseUrl: string): this;
3132
3148
  getHeaders: () => Record<string, string>;
3133
- get: <T = any>(path: string, query?: Record<string, any>, config?: RequestInit | undefined) => Promise<AuthingGuardResponse<T>>;
3149
+ get: <T = any>(path: string, query?: Record<string, any>, config?: any) => Promise<AuthingGuardResponse<T>>;
3134
3150
  post: <T = any>(path: string, data: any, config?: {
3135
3151
  headers: any;
3136
3152
  } | undefined) => Promise<AuthingGuardResponse<T>>;
@@ -3194,9 +3210,10 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
3194
3210
  }
3195
3211
  declare module '@authing/react-ui-components/components/_utils/http' {
3196
3212
  import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
3213
+ import { AxiosRequestConfig } from 'axios';
3197
3214
  export const requestClient: {
3198
3215
  (input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
3199
- get<T>(path: string, query?: Record<string, any>, init?: RequestInit | undefined): Promise<AuthingResponse<T>>;
3216
+ get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig<any> | undefined): Promise<AuthingResponse<T>>;
3200
3217
  post<T_1>(path: string, data: any, config?: {
3201
3218
  headers: any;
3202
3219
  } | undefined): Promise<AuthingResponse<T_1>>;
@@ -3413,10 +3430,20 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3413
3430
  UNLOCK = 1643,
3414
3431
  FLOW_END = 1600,
3415
3432
  FIRST_LOGIN_PASSWORD = 1639,
3416
- FORCED_PASSWORD_RESET = 2058
3433
+ FORCED_PASSWORD_RESET = 2058,
3434
+ UNSAFE_PASSWORD_TIP = 2061,
3435
+ UNSAFE_PASSWORD_RESET = 2071
3417
3436
  }
3418
3437
  export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
3419
3438
 
3439
+ }
3440
+ declare module '@authing/react-ui-components/components/_utils/useErrorText' {
3441
+ import React from 'react';
3442
+ export const usePasswordErrorText: () => {
3443
+ setPasswordErrorTextShow: React.Dispatch<React.SetStateAction<boolean>>;
3444
+ getPassWordUnsafeText: () => JSX.Element;
3445
+ };
3446
+
3420
3447
  }
3421
3448
  declare module '@authing/react-ui-components/components/context/base' {
3422
3449
  import React from 'react';
@@ -3510,7 +3537,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3510
3537
 
3511
3538
  }
3512
3539
  declare module '@authing/react-ui-components/components/version/version' {
3513
- const _default: "3.1.27";
3540
+ const _default: "3.1.28-rc.1";
3514
3541
  export default _default;
3515
3542
 
3516
3543
  }