@micha.bigler/ui-core-micha 1.4.30 → 1.4.31
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/components/LoginForm.js +1 -1
- package/dist/components/SecurityComponent.js +4 -4
- package/dist/pages/LoginPage.js +2 -2
- package/dist/pages/PasswordChangePage.js +1 -1
- package/dist/pages/PasswordInvitePage.js +1 -1
- package/dist/pages/PasswordResetRequestPage.js +1 -1
- package/package.json +1 -1
- package/src/components/LoginForm.jsx +1 -1
- package/src/components/SecurityComponent.jsx +4 -4
- package/src/pages/LoginPage.jsx +2 -2
- package/src/pages/PasswordChangePage.jsx +1 -1
- package/src/pages/PasswordInvitePage.jsx +1 -1
- package/src/pages/PasswordResetRequestPage.jsx +1 -1
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import { Box, TextField, Button, Typography, Divider, } from '@mui/material';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import SocialLoginButtons from './SocialLoginButtons';
|
|
5
|
+
import { SocialLoginButtons } from './SocialLoginButtons';
|
|
6
6
|
export function LoginForm({ onSubmit, onForgotPassword, onSocialLogin, onPasskeyLogin, onSignUp, error, // bereits übersetzter Text oder t(errorKey) aus dem Parent
|
|
7
7
|
disabled = false, initialIdentifier = '', }) {
|
|
8
8
|
const { t } = useTranslation();
|
|
@@ -3,10 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { Box, Typography, Divider, Alert, } from '@mui/material';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import PasswordChangeForm from './PasswordChangeForm';
|
|
7
|
-
import SocialLoginButtons from './SocialLoginButtons';
|
|
8
|
-
import PasskeysComponent from './PasskeysComponent';
|
|
9
|
-
import MFAComponent from './MFAComponent';
|
|
6
|
+
import { PasswordChangeForm } from './PasswordChangeForm';
|
|
7
|
+
import { SocialLoginButtons } from './SocialLoginButtons';
|
|
8
|
+
import { PasskeysComponent } from './PasskeysComponent';
|
|
9
|
+
import { MFAComponent } from './MFAComponent';
|
|
10
10
|
import { changePassword } from '../auth/authApi';
|
|
11
11
|
import { startSocialLogin } from '../utils/authService';
|
|
12
12
|
export function SecurityComponent({ fromRecovery = false, fromWeakLogin = false, // optional: wenn du später weak-login-Redirect nutzt
|
package/dist/pages/LoginPage.js
CHANGED
|
@@ -11,8 +11,8 @@ import { AuthContext } from '../auth/AuthContext';
|
|
|
11
11
|
import { loginWithRecoveryPassword, loginWithPassword } from '../auth/authApi';
|
|
12
12
|
import { loginWithPasskey, startSocialLogin } from '../utils/authService';
|
|
13
13
|
// Components
|
|
14
|
-
import LoginForm from '../components/LoginForm';
|
|
15
|
-
import MfaLoginComponent from '../components/MfaLoginComponent';
|
|
14
|
+
import { LoginForm } from '../components/LoginForm';
|
|
15
|
+
import { MfaLoginComponent } from '../components/MfaLoginComponent';
|
|
16
16
|
export function LoginPage() {
|
|
17
17
|
const navigate = useNavigate();
|
|
18
18
|
const location = useLocation();
|
|
@@ -5,7 +5,7 @@ import { Helmet } from 'react-helmet';
|
|
|
5
5
|
import { Typography } from '@mui/material';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { NarrowPage } from '../layout/PageLayout';
|
|
8
|
-
import PasswordChangeForm from '../components/PasswordChangeForm';
|
|
8
|
+
import { PasswordChangeForm } from '../components/PasswordChangeForm';
|
|
9
9
|
import { changePassword } from '../auth/authApi';
|
|
10
10
|
export function PasswordChangePage() {
|
|
11
11
|
const { t } = useTranslation();
|
|
@@ -6,7 +6,7 @@ import { Helmet } from 'react-helmet';
|
|
|
6
6
|
import { Typography } from '@mui/material';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { NarrowPage } from '../layout/PageLayout';
|
|
9
|
-
import PasswordSetForm from '../components/PasswordSetForm';
|
|
9
|
+
import { PasswordSetForm } from '../components/PasswordSetForm';
|
|
10
10
|
import { verifyResetToken, setNewPassword } from '../auth/authApi';
|
|
11
11
|
export function PasswordInvitePage() {
|
|
12
12
|
const { uid, token } = useParams();
|
|
@@ -6,7 +6,7 @@ import { Typography } from '@mui/material';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { NarrowPage } from '../layout/PageLayout';
|
|
8
8
|
import { requestPasswordReset } from '../auth/authApi';
|
|
9
|
-
import PasswordResetRequestForm from '../components/PasswordResetRequestForm';
|
|
9
|
+
import { PasswordResetRequestForm } from '../components/PasswordResetRequestForm';
|
|
10
10
|
export function PasswordResetRequestPage() {
|
|
11
11
|
const { t } = useTranslation();
|
|
12
12
|
const [submitting, setSubmitting] = useState(false);
|
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
Alert,
|
|
8
8
|
} from '@mui/material';
|
|
9
9
|
import { useTranslation } from 'react-i18next';
|
|
10
|
-
import PasswordChangeForm from './PasswordChangeForm';
|
|
11
|
-
import SocialLoginButtons from './SocialLoginButtons';
|
|
12
|
-
import PasskeysComponent from './PasskeysComponent';
|
|
13
|
-
import MFAComponent from './MFAComponent';
|
|
10
|
+
import { PasswordChangeForm } from './PasswordChangeForm';
|
|
11
|
+
import { SocialLoginButtons } from './SocialLoginButtons';
|
|
12
|
+
import { PasskeysComponent } from './PasskeysComponent';
|
|
13
|
+
import { MFAComponent } from './MFAComponent';
|
|
14
14
|
import { changePassword } from '../auth/authApi';
|
|
15
15
|
import { startSocialLogin } from '../utils/authService';
|
|
16
16
|
|
package/src/pages/LoginPage.jsx
CHANGED
|
@@ -13,8 +13,8 @@ import { loginWithRecoveryPassword, loginWithPassword } from '../auth/authApi';
|
|
|
13
13
|
import { loginWithPasskey, startSocialLogin } from '../utils/authService';
|
|
14
14
|
|
|
15
15
|
// Components
|
|
16
|
-
import LoginForm from '../components/LoginForm';
|
|
17
|
-
import MfaLoginComponent from '../components/MfaLoginComponent';
|
|
16
|
+
import { LoginForm } from '../components/LoginForm';
|
|
17
|
+
import { MfaLoginComponent } from '../components/MfaLoginComponent';
|
|
18
18
|
|
|
19
19
|
export function LoginPage() {
|
|
20
20
|
const navigate = useNavigate();
|
|
@@ -4,7 +4,7 @@ import { Helmet } from 'react-helmet';
|
|
|
4
4
|
import { Typography } from '@mui/material';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { NarrowPage } from '../layout/PageLayout';
|
|
7
|
-
import PasswordChangeForm from '../components/PasswordChangeForm';
|
|
7
|
+
import { PasswordChangeForm } from '../components/PasswordChangeForm';
|
|
8
8
|
import { changePassword } from '../auth/authApi';
|
|
9
9
|
|
|
10
10
|
export function PasswordChangePage() {
|
|
@@ -5,7 +5,7 @@ import { Helmet } from 'react-helmet';
|
|
|
5
5
|
import { Typography } from '@mui/material';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { NarrowPage } from '../layout/PageLayout';
|
|
8
|
-
import PasswordSetForm from '../components/PasswordSetForm';
|
|
8
|
+
import { PasswordSetForm } from '../components/PasswordSetForm';
|
|
9
9
|
import { verifyResetToken, setNewPassword } from '../auth/authApi';
|
|
10
10
|
|
|
11
11
|
export function PasswordInvitePage() {
|
|
@@ -5,7 +5,7 @@ import { Typography } from '@mui/material';
|
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { NarrowPage } from '../layout/PageLayout';
|
|
7
7
|
import { requestPasswordReset } from '../auth/authApi';
|
|
8
|
-
import PasswordResetRequestForm from '../components/PasswordResetRequestForm';
|
|
8
|
+
import {PasswordResetRequestForm } from '../components/PasswordResetRequestForm';
|
|
9
9
|
|
|
10
10
|
export function PasswordResetRequestPage() {
|
|
11
11
|
const { t } = useTranslation();
|