@micha.bigler/ui-core-micha 1.4.16 → 1.4.18
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/auth/authApi.js +3 -3
- package/dist/components/SupportRecoveryRequestsTab.js +1 -1
- package/dist/i18n/authTranslations.js +5 -0
- package/package.json +1 -1
- package/src/auth/authApi.jsx +4 -5
- package/src/components/SupportRecoveryRequestsTab.jsx +1 -1
- package/src/i18n/authTranslations.js +5 -0
package/dist/auth/authApi.js
CHANGED
|
@@ -13,9 +13,8 @@ function bufferToBase64URL(buffer) {
|
|
|
13
13
|
return base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
|
|
14
14
|
}
|
|
15
15
|
function serializeCredential(credential) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
// Wir nutzen IMMER die manuelle Serialisierung, um sicherzugehen,
|
|
17
|
+
// dass alles Base64URL-kodiert ist (kompatibel mit Allauth).
|
|
19
18
|
const p = {
|
|
20
19
|
id: credential.id,
|
|
21
20
|
rawId: bufferToBase64URL(credential.rawId),
|
|
@@ -36,6 +35,7 @@ function serializeCredential(credential) {
|
|
|
36
35
|
if (credential.response.userHandle) {
|
|
37
36
|
p.response.userHandle = bufferToBase64URL(credential.response.userHandle);
|
|
38
37
|
}
|
|
38
|
+
// Extension Results direkt übernehmen, falls vorhanden
|
|
39
39
|
if (typeof credential.getClientExtensionResults === 'function') {
|
|
40
40
|
p.clientExtensionResults = credential.getClientExtensionResults();
|
|
41
41
|
}
|
|
@@ -82,6 +82,6 @@ const SupportRecoveryRequestsTab = () => {
|
|
|
82
82
|
mb: 2,
|
|
83
83
|
whiteSpace: 'pre-wrap',
|
|
84
84
|
fontSize: '0.875rem',
|
|
85
|
-
}, children: selectedRequest.message || t('Support.RECOVERY_NO_MESSAGE', 'No message provided.') })] })), _jsx(TextField, { label: t('Support.RECOVERY_NOTE_LABEL', 'Reason for your decision'), helperText: t('Support.RECOVERY_NOTE_HELP', 'Explain briefly why you approve or reject this request.'), multiline: true, minRows: 3, fullWidth: true, value: dialogNote, onChange: (e) => setDialogNote(e.target.value) })] }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: closeDialog, children: t('
|
|
85
|
+
}, children: selectedRequest.message || t('Support.RECOVERY_NO_MESSAGE', 'No message provided.') })] })), _jsx(TextField, { label: t('Support.RECOVERY_NOTE_LABEL', 'Reason for your decision'), helperText: t('Support.RECOVERY_NOTE_HELP', 'Explain briefly why you approve or reject this request.'), multiline: true, minRows: 3, fullWidth: true, value: dialogNote, onChange: (e) => setDialogNote(e.target.value) })] }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: closeDialog, children: t('Support.CANCEL', 'Cancel') }), _jsx(Button, { onClick: handleReject, color: "error", disabled: !dialogNote.trim(), children: t('Support.RECOVERY_REJECT_SUBMIT', 'Reject request') }), _jsx(Button, { onClick: handleApprove, variant: "contained", disabled: !dialogNote.trim(), children: t('Support.RECOVERY_APPROVE_SUBMIT', 'Approve and send link') })] })] })] }));
|
|
86
86
|
};
|
|
87
87
|
export default SupportRecoveryRequestsTab;
|
|
@@ -821,6 +821,11 @@ export const authTranslations = {
|
|
|
821
821
|
"fr": "Refuser la demande",
|
|
822
822
|
"en": "Reject request"
|
|
823
823
|
},
|
|
824
|
+
"Support.CANCEL": {
|
|
825
|
+
"de": "Abbrechen",
|
|
826
|
+
"fr": "Annuler",
|
|
827
|
+
"en": "Cancel"
|
|
828
|
+
},
|
|
824
829
|
"Support.RECOVERY_REQUESTS_TITLE": {
|
|
825
830
|
"de": "Anfragen zur Kontowiederherstellung",
|
|
826
831
|
"fr": "Demandes de récupération de compte",
|
package/package.json
CHANGED
package/src/auth/authApi.jsx
CHANGED
|
@@ -15,10 +15,8 @@ function bufferToBase64URL(buffer) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function serializeCredential(credential) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
18
|
+
// Wir nutzen IMMER die manuelle Serialisierung, um sicherzugehen,
|
|
19
|
+
// dass alles Base64URL-kodiert ist (kompatibel mit Allauth).
|
|
22
20
|
const p = {
|
|
23
21
|
id: credential.id,
|
|
24
22
|
rawId: bufferToBase64URL(credential.rawId),
|
|
@@ -43,7 +41,8 @@ function serializeCredential(credential) {
|
|
|
43
41
|
if (credential.response.userHandle) {
|
|
44
42
|
p.response.userHandle = bufferToBase64URL(credential.response.userHandle);
|
|
45
43
|
}
|
|
46
|
-
|
|
44
|
+
|
|
45
|
+
// Extension Results direkt übernehmen, falls vorhanden
|
|
47
46
|
if (typeof credential.getClientExtensionResults === 'function') {
|
|
48
47
|
p.clientExtensionResults = credential.getClientExtensionResults();
|
|
49
48
|
}
|
|
@@ -867,6 +867,11 @@ export const authTranslations = {
|
|
|
867
867
|
"fr": "Refuser la demande",
|
|
868
868
|
"en": "Reject request"
|
|
869
869
|
},
|
|
870
|
+
"Support.CANCEL": {
|
|
871
|
+
"de": "Abbrechen",
|
|
872
|
+
"fr": "Annuler",
|
|
873
|
+
"en": "Cancel"
|
|
874
|
+
},
|
|
870
875
|
"Support.RECOVERY_REQUESTS_TITLE": {
|
|
871
876
|
"de": "Anfragen zur Kontowiederherstellung",
|
|
872
877
|
"fr": "Demandes de récupération de compte",
|