@refinedev/core 4.18.0 → 4.18.2
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/CHANGELOG.md +16 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/iife/index.js +5 -5
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/pages/auth/components/forgotPassword/index.tsx +4 -9
- package/src/components/pages/auth/components/login/index.tsx +8 -11
- package/src/components/pages/auth/components/register/index.tsx +6 -10
- package/src/components/pages/auth/components/updatePassword/index.tsx +4 -2
- package/src/components/pages/error/index.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinedev/core",
|
|
3
|
-
"version": "4.18.
|
|
3
|
+
"version": "4.18.2",
|
|
4
4
|
"description": "refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,14 +40,8 @@ export const ForgotPasswordPage: React.FC<ForgotPasswordProps> = ({
|
|
|
40
40
|
const { mutate: forgotPassword, isLoading } =
|
|
41
41
|
useForgotPassword<ForgotPasswordFormTypes>();
|
|
42
42
|
|
|
43
|
-
const renderLink = (link:
|
|
44
|
-
|
|
45
|
-
if (typeof link === "string") {
|
|
46
|
-
return <ActiveLink to={link}>{text}</ActiveLink>;
|
|
47
|
-
}
|
|
48
|
-
return link;
|
|
49
|
-
}
|
|
50
|
-
return null;
|
|
43
|
+
const renderLink = (link: string, text?: string) => {
|
|
44
|
+
return <ActiveLink to={link}>{text}</ActiveLink>;
|
|
51
45
|
};
|
|
52
46
|
|
|
53
47
|
const content = (
|
|
@@ -73,13 +67,14 @@ export const ForgotPasswordPage: React.FC<ForgotPasswordProps> = ({
|
|
|
73
67
|
padding: 25,
|
|
74
68
|
}}
|
|
75
69
|
>
|
|
76
|
-
<label>
|
|
70
|
+
<label htmlFor="email-input">
|
|
77
71
|
{translate(
|
|
78
72
|
"pages.forgotPassword.fields.email",
|
|
79
73
|
"Email",
|
|
80
74
|
)}
|
|
81
75
|
</label>
|
|
82
76
|
<input
|
|
77
|
+
id="email-input"
|
|
83
78
|
name="email"
|
|
84
79
|
type="mail"
|
|
85
80
|
autoCorrect="off"
|
|
@@ -37,14 +37,8 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
37
37
|
v3LegacyAuthProviderCompatible: Boolean(authProvider?.isLegacy),
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
const renderLink = (link:
|
|
41
|
-
|
|
42
|
-
if (typeof link === "string") {
|
|
43
|
-
return <ActiveLink to={link}>{text}</ActiveLink>;
|
|
44
|
-
}
|
|
45
|
-
return link;
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
40
|
+
const renderLink = (link: string, text?: string) => {
|
|
41
|
+
return <ActiveLink to={link}>{text}</ActiveLink>;
|
|
48
42
|
};
|
|
49
43
|
|
|
50
44
|
const renderProviders = () => {
|
|
@@ -100,10 +94,11 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
100
94
|
padding: 25,
|
|
101
95
|
}}
|
|
102
96
|
>
|
|
103
|
-
<label>
|
|
97
|
+
<label htmlFor="email-input">
|
|
104
98
|
{translate("pages.login.fields.email", "Email")}
|
|
105
99
|
</label>
|
|
106
100
|
<input
|
|
101
|
+
id="email-input"
|
|
107
102
|
name="email"
|
|
108
103
|
type="text"
|
|
109
104
|
size={20}
|
|
@@ -114,10 +109,11 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
114
109
|
value={email}
|
|
115
110
|
onChange={(e) => setEmail(e.target.value)}
|
|
116
111
|
/>
|
|
117
|
-
<label>
|
|
112
|
+
<label htmlFor="password-input">
|
|
118
113
|
{translate("pages.login.fields.password", "Password")}
|
|
119
114
|
</label>
|
|
120
115
|
<input
|
|
116
|
+
id="password-input"
|
|
121
117
|
type="password"
|
|
122
118
|
name="password"
|
|
123
119
|
required
|
|
@@ -127,12 +123,13 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
127
123
|
/>
|
|
128
124
|
{rememberMe ?? (
|
|
129
125
|
<>
|
|
130
|
-
<label>
|
|
126
|
+
<label htmlFor="remember-me-input">
|
|
131
127
|
{translate(
|
|
132
128
|
"pages.login.buttons.rememberMe",
|
|
133
129
|
"Remember me",
|
|
134
130
|
)}
|
|
135
131
|
<input
|
|
132
|
+
id="remember-me-input"
|
|
136
133
|
name="remember"
|
|
137
134
|
type="checkbox"
|
|
138
135
|
size={20}
|
|
@@ -43,14 +43,8 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
43
43
|
v3LegacyAuthProviderCompatible: Boolean(authProvider?.isLegacy),
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
const renderLink = (link:
|
|
47
|
-
|
|
48
|
-
if (typeof link === "string") {
|
|
49
|
-
return <ActiveLink to={link}>{text}</ActiveLink>;
|
|
50
|
-
}
|
|
51
|
-
return link;
|
|
52
|
-
}
|
|
53
|
-
return null;
|
|
46
|
+
const renderLink = (link: string, text?: string) => {
|
|
47
|
+
return <ActiveLink to={link}>{text}</ActiveLink>;
|
|
54
48
|
};
|
|
55
49
|
|
|
56
50
|
const renderProviders = () => {
|
|
@@ -106,10 +100,11 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
106
100
|
padding: 25,
|
|
107
101
|
}}
|
|
108
102
|
>
|
|
109
|
-
<label>
|
|
103
|
+
<label htmlFor="email-input">
|
|
110
104
|
{translate("pages.register.fields.email", "Email")}
|
|
111
105
|
</label>
|
|
112
106
|
<input
|
|
107
|
+
id="email-input"
|
|
113
108
|
name="email"
|
|
114
109
|
type="email"
|
|
115
110
|
size={20}
|
|
@@ -120,13 +115,14 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
120
115
|
value={email}
|
|
121
116
|
onChange={(e) => setEmail(e.target.value)}
|
|
122
117
|
/>
|
|
123
|
-
<label>
|
|
118
|
+
<label htmlFor="password-input">
|
|
124
119
|
{translate(
|
|
125
120
|
"pages.register.fields.password",
|
|
126
121
|
"Password",
|
|
127
122
|
)}
|
|
128
123
|
</label>
|
|
129
124
|
<input
|
|
125
|
+
id="password-input"
|
|
130
126
|
name="password"
|
|
131
127
|
type="password"
|
|
132
128
|
required
|
|
@@ -56,13 +56,14 @@ export const UpdatePasswordPage: React.FC<UpdatePasswordProps> = ({
|
|
|
56
56
|
padding: 25,
|
|
57
57
|
}}
|
|
58
58
|
>
|
|
59
|
-
<label>
|
|
59
|
+
<label htmlFor="password-input">
|
|
60
60
|
{translate(
|
|
61
61
|
"pages.updatePassword.fields.password",
|
|
62
62
|
"New Password",
|
|
63
63
|
)}
|
|
64
64
|
</label>
|
|
65
65
|
<input
|
|
66
|
+
id="password-input"
|
|
66
67
|
name="password"
|
|
67
68
|
type="password"
|
|
68
69
|
required
|
|
@@ -70,13 +71,14 @@ export const UpdatePasswordPage: React.FC<UpdatePasswordProps> = ({
|
|
|
70
71
|
value={newPassword}
|
|
71
72
|
onChange={(e) => setNewPassword(e.target.value)}
|
|
72
73
|
/>
|
|
73
|
-
<label>
|
|
74
|
+
<label htmlFor="confirm-password-input">
|
|
74
75
|
{translate(
|
|
75
76
|
"pages.updatePassword.fields.confirmPassword",
|
|
76
77
|
"Confirm New Password",
|
|
77
78
|
)}
|
|
78
79
|
</label>
|
|
79
80
|
<input
|
|
81
|
+
id="confirm-password-input"
|
|
80
82
|
name="confirmPassword"
|
|
81
83
|
type="password"
|
|
82
84
|
required
|
|
@@ -30,9 +30,9 @@ export const ErrorComponent: React.FC = () => {
|
|
|
30
30
|
"pages.error.info",
|
|
31
31
|
{
|
|
32
32
|
action: action,
|
|
33
|
-
resource: resource
|
|
33
|
+
resource: resource.name,
|
|
34
34
|
},
|
|
35
|
-
`You may have forgotten to add the "${action}" component to "${resource
|
|
35
|
+
`You may have forgotten to add the "${action}" component to "${resource.name}" resource.`,
|
|
36
36
|
),
|
|
37
37
|
);
|
|
38
38
|
}
|