@panneau/form-auth 4.0.11 → 4.0.15
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/dist/index.d.ts +109 -0
- package/package.json +14 -12
- /package/{es → dist}/index.js +0 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Field, Label } from '@panneau/core';
|
|
3
|
+
|
|
4
|
+
interface ChangePasswordProps {
|
|
5
|
+
action?: string;
|
|
6
|
+
fields?: Field[] | null;
|
|
7
|
+
size?: string;
|
|
8
|
+
currentPasswordLabel?: Label | null;
|
|
9
|
+
passwordLabel?: Label | null;
|
|
10
|
+
passwordConfirmationLabel?: Label | null;
|
|
11
|
+
submitButtonLabel?: Label | null;
|
|
12
|
+
}
|
|
13
|
+
declare function ChangePassword({ action, fields, size, currentPasswordLabel, passwordLabel, passwordConfirmationLabel, submitButtonLabel, ...props }: ChangePasswordProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
interface ConfirmPasswordProps {
|
|
16
|
+
action?: string;
|
|
17
|
+
fields?: Field[] | null;
|
|
18
|
+
size?: string;
|
|
19
|
+
passwordLabel?: Label | null;
|
|
20
|
+
submitButtonLabel?: Label | null;
|
|
21
|
+
}
|
|
22
|
+
declare function ConfirmPassword({ action, fields, size, passwordLabel, submitButtonLabel, ...props }: ConfirmPasswordProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface ForgotPasswordProps {
|
|
25
|
+
action?: string;
|
|
26
|
+
fields?: Field[] | null;
|
|
27
|
+
size?: string;
|
|
28
|
+
emailLabel?: Label | null;
|
|
29
|
+
submitButtonLabel?: Label | null;
|
|
30
|
+
withLoginLink?: boolean;
|
|
31
|
+
loginLink?: string;
|
|
32
|
+
loginLabel?: Label | null;
|
|
33
|
+
}
|
|
34
|
+
declare function ForgotPassword({ action, fields, emailLabel, submitButtonLabel, size, withLoginLink, loginLink, loginLabel, ...props }: ForgotPasswordProps): react_jsx_runtime.JSX.Element;
|
|
35
|
+
|
|
36
|
+
interface LoginProps {
|
|
37
|
+
action?: string;
|
|
38
|
+
postForm?: ((action: string, data: unknown) => Promise<unknown>) | null;
|
|
39
|
+
fields?: Field[] | null;
|
|
40
|
+
size?: string;
|
|
41
|
+
emailLabel?: Label | null;
|
|
42
|
+
passwordLabel?: Label | null;
|
|
43
|
+
submitButtonLabel?: Label | null;
|
|
44
|
+
withForgotPassword?: boolean;
|
|
45
|
+
forgotPasswordLink?: string;
|
|
46
|
+
forgotPasswordLabel?: Label | null;
|
|
47
|
+
}
|
|
48
|
+
declare function Login({ action, postForm, fields, size, emailLabel, passwordLabel, submitButtonLabel, withForgotPassword, forgotPasswordLink, forgotPasswordLabel, ...props }: LoginProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
|
|
50
|
+
interface RegisterProps {
|
|
51
|
+
action?: string;
|
|
52
|
+
fields?: Field[] | null;
|
|
53
|
+
size?: string;
|
|
54
|
+
nameLabel?: Label | null;
|
|
55
|
+
emailLabel?: Label | null;
|
|
56
|
+
passwordLabel?: Label | null;
|
|
57
|
+
passwordConfirmationLabel?: Label | null;
|
|
58
|
+
submitButtonLabel?: Label | null;
|
|
59
|
+
withLoginLink?: boolean;
|
|
60
|
+
loginLink?: string;
|
|
61
|
+
loginLabel?: Label | null;
|
|
62
|
+
}
|
|
63
|
+
declare function Register({ action, fields, size, nameLabel, emailLabel, passwordLabel, passwordConfirmationLabel, submitButtonLabel, withLoginLink, loginLink, loginLabel, ...props }: RegisterProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
interface ResetPasswordProps {
|
|
66
|
+
action?: string;
|
|
67
|
+
fields?: Field[] | null;
|
|
68
|
+
size?: string;
|
|
69
|
+
emailLabel?: Label | null;
|
|
70
|
+
passwordLabel?: Label | null;
|
|
71
|
+
passwordConfirmationLabel?: Label | null;
|
|
72
|
+
submitButtonLabel?: Label | null;
|
|
73
|
+
}
|
|
74
|
+
declare function ResetPassword({ action, fields, size, emailLabel, passwordLabel, passwordConfirmationLabel, submitButtonLabel, ...props }: ResetPasswordProps): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
interface TwoFactorChallengeProps {
|
|
77
|
+
action?: string;
|
|
78
|
+
fields?: Field[] | null;
|
|
79
|
+
size?: string;
|
|
80
|
+
codeLabel?: Label | null;
|
|
81
|
+
submitButtonLabel?: Label | null;
|
|
82
|
+
}
|
|
83
|
+
declare function TwoFactorChallenge({ action, fields, size, codeLabel, submitButtonLabel, ...props }: TwoFactorChallengeProps): react_jsx_runtime.JSX.Element;
|
|
84
|
+
|
|
85
|
+
interface TwoFactorDisableProps {
|
|
86
|
+
action?: string;
|
|
87
|
+
fields?: Field[] | null;
|
|
88
|
+
size?: string;
|
|
89
|
+
explainationLabel?: Label | null;
|
|
90
|
+
submitButtonLabel?: Label | null;
|
|
91
|
+
withCancelLink?: boolean;
|
|
92
|
+
cancelLink?: string;
|
|
93
|
+
cancelLabel?: Label | null;
|
|
94
|
+
}
|
|
95
|
+
declare function TwoFactorDisable({ action, fields, explainationLabel, submitButtonLabel, size, withCancelLink, cancelLink, cancelLabel, ...props }: TwoFactorDisableProps): react_jsx_runtime.JSX.Element;
|
|
96
|
+
|
|
97
|
+
interface TwoFactorEnableProps {
|
|
98
|
+
action?: string;
|
|
99
|
+
fields?: Field[] | null;
|
|
100
|
+
size?: string;
|
|
101
|
+
explainationLabel?: Label | null;
|
|
102
|
+
submitButtonLabel?: Label | null;
|
|
103
|
+
withSkipLink?: boolean;
|
|
104
|
+
skipLink?: string;
|
|
105
|
+
skipLabel?: Label | null;
|
|
106
|
+
}
|
|
107
|
+
declare function TwoFactorEnable({ action, fields, explainationLabel, submitButtonLabel, size, withSkipLink, skipLink, skipLabel, ...props }: TwoFactorEnableProps): react_jsx_runtime.JSX.Element;
|
|
108
|
+
|
|
109
|
+
export { ChangePassword, ConfirmPassword, ForgotPassword, Login, Register, ResetPassword, TwoFactorChallenge, TwoFactorDisable, TwoFactorEnable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/form-auth",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.15",
|
|
4
4
|
"description": "Basic forgot password form",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -26,18 +26,21 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"type": "module",
|
|
29
|
-
"module": "
|
|
29
|
+
"module": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
30
31
|
"exports": {
|
|
31
|
-
".":
|
|
32
|
+
".": {
|
|
33
|
+
"default": "./dist/index.js",
|
|
34
|
+
"types": "./dist/index.d.ts"
|
|
35
|
+
}
|
|
32
36
|
},
|
|
33
37
|
"files": [
|
|
34
|
-
"
|
|
35
|
-
"es",
|
|
38
|
+
"dist",
|
|
36
39
|
"assets"
|
|
37
40
|
],
|
|
38
41
|
"scripts": {
|
|
39
42
|
"prepublishOnly": "npm run build",
|
|
40
|
-
"build": "../../scripts/prepare-package.sh"
|
|
43
|
+
"build": "../../scripts/prepare-package.sh --types"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
46
|
"react": "^19.0.0",
|
|
@@ -50,16 +53,15 @@
|
|
|
50
53
|
"dependencies": {
|
|
51
54
|
"@babel/runtime": "^7.12.5",
|
|
52
55
|
"@folklore/fetch": "^0.1.21",
|
|
53
|
-
"@panneau/core": "^4.0.
|
|
54
|
-
"@panneau/element-link": "^4.0.
|
|
55
|
-
"@panneau/form": "^4.0.
|
|
56
|
+
"@panneau/core": "^4.0.15",
|
|
57
|
+
"@panneau/element-link": "^4.0.15",
|
|
58
|
+
"@panneau/form": "^4.0.15",
|
|
56
59
|
"classnames": "^2.5.1",
|
|
57
|
-
"lodash
|
|
58
|
-
"prop-types": "^15.7.2",
|
|
60
|
+
"lodash": "^4.17.21",
|
|
59
61
|
"react-intl": "^5.15.8 || ^6.0.0 || ^7.0.0"
|
|
60
62
|
},
|
|
61
63
|
"publishConfig": {
|
|
62
64
|
"access": "public"
|
|
63
65
|
},
|
|
64
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "83c02ca2f26e02383ef452ffcafda984d0b211cd"
|
|
65
67
|
}
|
/package/{es → dist}/index.js
RENAMED
|
File without changes
|