@authing/react-ui-components 3.1.27 → 3.1.28
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 +28 -5
- package/lib/index.min.js +1 -1
- package/package.json +4 -2
package/lib/index.d.ts
CHANGED
|
@@ -1167,13 +1167,23 @@ declare module '@authing/react-ui-components/components/ChangeLanguage/index' {
|
|
|
1167
1167
|
declare module '@authing/react-ui-components/components/ChangePassword/businessRequest' {
|
|
1168
1168
|
export enum ChangePasswordBusinessAction {
|
|
1169
1169
|
ResetPassword = "reset-password-first-time",
|
|
1170
|
-
FirstLoginReset = "reset-password-forced"
|
|
1170
|
+
FirstLoginReset = "reset-password-forced",
|
|
1171
|
+
ResetPasswordStrengthDetection = "reset-password-strength-detection"
|
|
1171
1172
|
}
|
|
1172
1173
|
export const authFlow: (action: ChangePasswordBusinessAction, content: {
|
|
1173
1174
|
password: string;
|
|
1174
1175
|
oldPassword?: string;
|
|
1175
1176
|
}) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
|
|
1176
1177
|
|
|
1178
|
+
}
|
|
1179
|
+
declare module '@authing/react-ui-components/components/ChangePassword/core/PasswordNotSafeReset' {
|
|
1180
|
+
import React from 'react';
|
|
1181
|
+
interface PasswordNotSafeResetProps {
|
|
1182
|
+
onReset: any;
|
|
1183
|
+
}
|
|
1184
|
+
export const PasswordNotSafeReset: React.FC<PasswordNotSafeResetProps>;
|
|
1185
|
+
export {};
|
|
1186
|
+
|
|
1177
1187
|
}
|
|
1178
1188
|
declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
|
|
1179
1189
|
import React from 'react';
|
|
@@ -1206,6 +1216,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1206
1216
|
explain: string;
|
|
1207
1217
|
}>;
|
|
1208
1218
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1219
|
+
export const GuardPasswordNotSafeResetView: React.FC;
|
|
1209
1220
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1210
1221
|
export const GuardNoticePasswordResetView: React.FC;
|
|
1211
1222
|
export const GuardRegisterCompletePasswordView: React.FC;
|
|
@@ -1687,6 +1698,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1687
1698
|
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
1688
1699
|
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
1689
1700
|
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
1701
|
+
UNSAFE_PASSWORD_RESET = "unsafePasswordReset",
|
|
1690
1702
|
DOWNLOAD_AT = "downloadAT",
|
|
1691
1703
|
BIND_TOTP = "bindTotp",
|
|
1692
1704
|
ANY_QUESTIONS = "anyQuestions",
|
|
@@ -3130,7 +3142,7 @@ declare module '@authing/react-ui-components/components/_utils/guardHttp' {
|
|
|
3130
3142
|
setTenantId(tenantId: string): this;
|
|
3131
3143
|
setBaseUrl(baseUrl: string): this;
|
|
3132
3144
|
getHeaders: () => Record<string, string>;
|
|
3133
|
-
get: <T = any>(path: string, query?: Record<string, any>, config?:
|
|
3145
|
+
get: <T = any>(path: string, query?: Record<string, any>, config?: any) => Promise<AuthingGuardResponse<T>>;
|
|
3134
3146
|
post: <T = any>(path: string, data: any, config?: {
|
|
3135
3147
|
headers: any;
|
|
3136
3148
|
} | undefined) => Promise<AuthingGuardResponse<T>>;
|
|
@@ -3194,9 +3206,10 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3194
3206
|
}
|
|
3195
3207
|
declare module '@authing/react-ui-components/components/_utils/http' {
|
|
3196
3208
|
import { CodeAction } from '@authing/react-ui-components/components/_utils/responseManagement/interface';
|
|
3209
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3197
3210
|
export const requestClient: {
|
|
3198
3211
|
(input: RequestInfo, init?: RequestInit | undefined): Promise<any>;
|
|
3199
|
-
get<T>(path: string, query?: Record<string, any>, init?:
|
|
3212
|
+
get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig | undefined): Promise<AuthingResponse<T>>;
|
|
3200
3213
|
post<T_1>(path: string, data: any, config?: {
|
|
3201
3214
|
headers: any;
|
|
3202
3215
|
} | undefined): Promise<AuthingResponse<T_1>>;
|
|
@@ -3413,10 +3426,20 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3413
3426
|
UNLOCK = 1643,
|
|
3414
3427
|
FLOW_END = 1600,
|
|
3415
3428
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3416
|
-
FORCED_PASSWORD_RESET = 2058
|
|
3429
|
+
FORCED_PASSWORD_RESET = 2058,
|
|
3430
|
+
UNSAFE_PASSWORD_TIP = 2061,
|
|
3431
|
+
UNSAFE_PASSWORD_RESET = 2071
|
|
3417
3432
|
}
|
|
3418
3433
|
export const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
3419
3434
|
|
|
3435
|
+
}
|
|
3436
|
+
declare module '@authing/react-ui-components/components/_utils/useErrorText' {
|
|
3437
|
+
import React from 'react';
|
|
3438
|
+
export const usePasswordErrorText: () => {
|
|
3439
|
+
setPasswordErrorTextShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
3440
|
+
getPassWordUnsafeText: () => JSX.Element;
|
|
3441
|
+
};
|
|
3442
|
+
|
|
3420
3443
|
}
|
|
3421
3444
|
declare module '@authing/react-ui-components/components/context/base' {
|
|
3422
3445
|
import React from 'react';
|
|
@@ -3510,7 +3533,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3510
3533
|
|
|
3511
3534
|
}
|
|
3512
3535
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3513
|
-
const _default: "3.1.
|
|
3536
|
+
const _default: "3.1.28";
|
|
3514
3537
|
export default _default;
|
|
3515
3538
|
|
|
3516
3539
|
}
|