@archbase/security 4.0.41 → 4.0.43
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from '@mantine/core';
|
|
2
|
+
import { ArchbasePasswordPolicy } from '@archbase/core';
|
|
2
3
|
export interface ArchbaseResetPasswordProps {
|
|
3
4
|
error?: string;
|
|
4
5
|
initialEmail?: string;
|
|
@@ -6,9 +7,18 @@ export interface ArchbaseResetPasswordProps {
|
|
|
6
7
|
onSendResetPasswordEmail: (email: string) => Promise<void>;
|
|
7
8
|
onResetPassword: (email: string, passwordResetToken: string, newPassword: string) => Promise<void>;
|
|
8
9
|
onClickBackToLogin: () => void;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
/** Validação customizada da nova senha. Deve retornar a mensagem de erro ou string vazia */
|
|
11
|
+
validatePassword?: (newPassword: string) => string;
|
|
12
|
+
validateToken?: (passwordResetToken: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Critérios de senha forte aplicados na nova senha.
|
|
15
|
+
* `true` aplica a política padrão do Archbase; um objeto permite ajustar cada critério.
|
|
16
|
+
* Quando ausente somente a confirmação de senha é verificada.
|
|
17
|
+
*/
|
|
18
|
+
passwordPolicy?: ArchbasePasswordPolicy | boolean;
|
|
19
|
+
/** Indicador se a lista de critérios deve ser exibida abaixo do campo. Padrão: true */
|
|
20
|
+
showPasswordRequirements?: boolean;
|
|
11
21
|
/** Estilo do card */
|
|
12
22
|
style?: CSSProperties;
|
|
13
23
|
}
|
|
14
|
-
export declare function ArchbaseResetPassword({ error, onSendResetPasswordEmail, onResetPassword, onClickBackToLogin, validatePassword, validateToken, initialEmail, description, style }: ArchbaseResetPasswordProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function ArchbaseResetPassword({ error, onSendResetPasswordEmail, onResetPassword, onClickBackToLogin, validatePassword, validateToken, initialEmail, description, style, passwordPolicy, showPasswordRequirements }: ArchbaseResetPasswordProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archbase/security",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.43",
|
|
4
4
|
"description": "Security and authentication components for Archbase React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"reflect-metadata": "^0.1.13",
|
|
38
38
|
"rxjs": "^7.8.2",
|
|
39
39
|
"uuid": "^9.0.1",
|
|
40
|
-
"@archbase/components": "4.0.
|
|
41
|
-
"@archbase/core": "4.0.
|
|
42
|
-
"@archbase/data": "4.0.
|
|
43
|
-
"@archbase/layout": "4.0.
|
|
40
|
+
"@archbase/components": "4.0.43",
|
|
41
|
+
"@archbase/core": "4.0.43",
|
|
42
|
+
"@archbase/data": "4.0.43",
|
|
43
|
+
"@archbase/layout": "4.0.43"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/crypto-js": "^4.1.1",
|
|
Binary file
|