@klauswuestefeld/jux-web 2026.1.16 → 2026.1.24
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/jux-web.js +20 -18
- package/dist/main.esm.js +20 -18
- package/dist/main.js +20 -18
- package/package.json +1 -1
package/dist/jux-web.js
CHANGED
|
@@ -1024,44 +1024,46 @@ var juxWeb = (function (exports) {
|
|
|
1024
1024
|
loginPage.appendChild(magicLinkModal(onUserLogin, onReturn, backgroundImage, loginPage, clientApp, loginTypes, handlers));
|
|
1025
1025
|
};
|
|
1026
1026
|
const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers) => {
|
|
1027
|
-
const
|
|
1027
|
+
const upperLoginTypes = loginTypes.map(str => str.toUpperCase());
|
|
1028
|
+
const onlyAuth = upperLoginTypes.length > 0 &&
|
|
1029
|
+
upperLoginTypes.every(type => type === 'AUTH-PASSWORD');
|
|
1028
1030
|
explanation.textContent = getTranslation('sign-in-explanation');
|
|
1029
|
-
if (
|
|
1031
|
+
if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
|
|
1030
1032
|
btnsContainer.replaceChildren();
|
|
1031
1033
|
btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
|
|
1032
|
-
|
|
1034
|
+
upperLoginTypes.pop();
|
|
1033
1035
|
explanation.textContent = getTranslation('sign-in-email');
|
|
1034
1036
|
if (!onlyAuth) {
|
|
1035
1037
|
btnsContainer.appendChild(backButton('Back', () => {
|
|
1036
1038
|
btnsContainer.replaceChildren();
|
|
1037
|
-
appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError,
|
|
1039
|
+
appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
|
|
1038
1040
|
}));
|
|
1039
1041
|
}
|
|
1040
1042
|
return;
|
|
1041
1043
|
}
|
|
1042
|
-
if (
|
|
1044
|
+
if (upperLoginTypes.includes('SSO')) {
|
|
1043
1045
|
btnsContainer.appendChild(loginButton('SSO', () => {
|
|
1044
1046
|
handleSSOLogin();
|
|
1045
1047
|
}));
|
|
1046
1048
|
}
|
|
1047
|
-
if (
|
|
1048
|
-
btnsContainer.appendChild(loginButton('
|
|
1049
|
+
if (upperLoginTypes.includes('GOOGLE')) {
|
|
1050
|
+
btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
|
|
1049
1051
|
}
|
|
1050
|
-
if (
|
|
1051
|
-
btnsContainer.appendChild(loginButton('
|
|
1052
|
+
if (upperLoginTypes.includes('MICROSOFT')) {
|
|
1053
|
+
btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
|
|
1052
1054
|
}
|
|
1053
|
-
if (
|
|
1054
|
-
btnsContainer.appendChild(loginButton('
|
|
1055
|
+
if (upperLoginTypes.includes('LINKEDIN')) {
|
|
1056
|
+
btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
|
|
1055
1057
|
}
|
|
1056
|
-
if (
|
|
1057
|
-
btnsContainer.appendChild(loginButton('
|
|
1058
|
+
if (upperLoginTypes.includes('EMAIL')) {
|
|
1059
|
+
btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
|
|
1058
1060
|
}
|
|
1059
|
-
if (
|
|
1060
|
-
|
|
1061
|
-
btnsContainer.appendChild(loginButton('
|
|
1061
|
+
if (upperLoginTypes.includes('AUTH-PASSWORD')) {
|
|
1062
|
+
upperLoginTypes.push('AUTH-PASSWORD2');
|
|
1063
|
+
btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
|
|
1062
1064
|
}
|
|
1063
|
-
if (
|
|
1064
|
-
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('
|
|
1065
|
+
if (upperLoginTypes.includes('ANONYMOUS')) {
|
|
1066
|
+
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('ANONYMOUS')));
|
|
1065
1067
|
}
|
|
1066
1068
|
};
|
|
1067
1069
|
const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
|
package/dist/main.esm.js
CHANGED
|
@@ -1023,44 +1023,46 @@ const onEmailLoginRequest = (clientApp, loginPage, onUserLogin, backgroundImage,
|
|
|
1023
1023
|
loginPage.appendChild(magicLinkModal(onUserLogin, onReturn, backgroundImage, loginPage, clientApp, loginTypes, handlers));
|
|
1024
1024
|
};
|
|
1025
1025
|
const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers) => {
|
|
1026
|
-
const
|
|
1026
|
+
const upperLoginTypes = loginTypes.map(str => str.toUpperCase());
|
|
1027
|
+
const onlyAuth = upperLoginTypes.length > 0 &&
|
|
1028
|
+
upperLoginTypes.every(type => type === 'AUTH-PASSWORD');
|
|
1027
1029
|
explanation.textContent = getTranslation('sign-in-explanation');
|
|
1028
|
-
if (
|
|
1030
|
+
if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
|
|
1029
1031
|
btnsContainer.replaceChildren();
|
|
1030
1032
|
btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
|
|
1031
|
-
|
|
1033
|
+
upperLoginTypes.pop();
|
|
1032
1034
|
explanation.textContent = getTranslation('sign-in-email');
|
|
1033
1035
|
if (!onlyAuth) {
|
|
1034
1036
|
btnsContainer.appendChild(backButton('Back', () => {
|
|
1035
1037
|
btnsContainer.replaceChildren();
|
|
1036
|
-
appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError,
|
|
1038
|
+
appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
|
|
1037
1039
|
}));
|
|
1038
1040
|
}
|
|
1039
1041
|
return;
|
|
1040
1042
|
}
|
|
1041
|
-
if (
|
|
1043
|
+
if (upperLoginTypes.includes('SSO')) {
|
|
1042
1044
|
btnsContainer.appendChild(loginButton('SSO', () => {
|
|
1043
1045
|
handleSSOLogin();
|
|
1044
1046
|
}));
|
|
1045
1047
|
}
|
|
1046
|
-
if (
|
|
1047
|
-
btnsContainer.appendChild(loginButton('
|
|
1048
|
+
if (upperLoginTypes.includes('GOOGLE')) {
|
|
1049
|
+
btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
|
|
1048
1050
|
}
|
|
1049
|
-
if (
|
|
1050
|
-
btnsContainer.appendChild(loginButton('
|
|
1051
|
+
if (upperLoginTypes.includes('MICROSOFT')) {
|
|
1052
|
+
btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
|
|
1051
1053
|
}
|
|
1052
|
-
if (
|
|
1053
|
-
btnsContainer.appendChild(loginButton('
|
|
1054
|
+
if (upperLoginTypes.includes('LINKEDIN')) {
|
|
1055
|
+
btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
|
|
1054
1056
|
}
|
|
1055
|
-
if (
|
|
1056
|
-
btnsContainer.appendChild(loginButton('
|
|
1057
|
+
if (upperLoginTypes.includes('EMAIL')) {
|
|
1058
|
+
btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
|
|
1057
1059
|
}
|
|
1058
|
-
if (
|
|
1059
|
-
|
|
1060
|
-
btnsContainer.appendChild(loginButton('
|
|
1060
|
+
if (upperLoginTypes.includes('AUTH-PASSWORD')) {
|
|
1061
|
+
upperLoginTypes.push('AUTH-PASSWORD2');
|
|
1062
|
+
btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
|
|
1061
1063
|
}
|
|
1062
|
-
if (
|
|
1063
|
-
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('
|
|
1064
|
+
if (upperLoginTypes.includes('ANONYMOUS')) {
|
|
1065
|
+
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('ANONYMOUS')));
|
|
1064
1066
|
}
|
|
1065
1067
|
};
|
|
1066
1068
|
const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
|
package/dist/main.js
CHANGED
|
@@ -1047,44 +1047,46 @@ const onEmailLoginRequest = (clientApp, loginPage, onUserLogin, backgroundImage,
|
|
|
1047
1047
|
loginPage.appendChild(magicLinkModal(onUserLogin, onReturn, backgroundImage, loginPage, clientApp, loginTypes, handlers));
|
|
1048
1048
|
};
|
|
1049
1049
|
const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers) => {
|
|
1050
|
-
const
|
|
1050
|
+
const upperLoginTypes = loginTypes.map(str => str.toUpperCase());
|
|
1051
|
+
const onlyAuth = upperLoginTypes.length > 0 &&
|
|
1052
|
+
upperLoginTypes.every(type => type === 'AUTH-PASSWORD');
|
|
1051
1053
|
explanation.textContent = getTranslation('sign-in-explanation');
|
|
1052
|
-
if (
|
|
1054
|
+
if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
|
|
1053
1055
|
btnsContainer.replaceChildren();
|
|
1054
1056
|
btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
|
|
1055
|
-
|
|
1057
|
+
upperLoginTypes.pop();
|
|
1056
1058
|
explanation.textContent = getTranslation('sign-in-email');
|
|
1057
1059
|
if (!onlyAuth) {
|
|
1058
1060
|
btnsContainer.appendChild(backButton('Back', () => {
|
|
1059
1061
|
btnsContainer.replaceChildren();
|
|
1060
|
-
appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError,
|
|
1062
|
+
appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
|
|
1061
1063
|
}));
|
|
1062
1064
|
}
|
|
1063
1065
|
return;
|
|
1064
1066
|
}
|
|
1065
|
-
if (
|
|
1067
|
+
if (upperLoginTypes.includes('SSO')) {
|
|
1066
1068
|
btnsContainer.appendChild(loginButton('SSO', () => {
|
|
1067
1069
|
handleSSOLogin();
|
|
1068
1070
|
}));
|
|
1069
1071
|
}
|
|
1070
|
-
if (
|
|
1071
|
-
btnsContainer.appendChild(loginButton('
|
|
1072
|
+
if (upperLoginTypes.includes('GOOGLE')) {
|
|
1073
|
+
btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
|
|
1072
1074
|
}
|
|
1073
|
-
if (
|
|
1074
|
-
btnsContainer.appendChild(loginButton('
|
|
1075
|
+
if (upperLoginTypes.includes('MICROSOFT')) {
|
|
1076
|
+
btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
|
|
1075
1077
|
}
|
|
1076
|
-
if (
|
|
1077
|
-
btnsContainer.appendChild(loginButton('
|
|
1078
|
+
if (upperLoginTypes.includes('LINKEDIN')) {
|
|
1079
|
+
btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
|
|
1078
1080
|
}
|
|
1079
|
-
if (
|
|
1080
|
-
btnsContainer.appendChild(loginButton('
|
|
1081
|
+
if (upperLoginTypes.includes('EMAIL')) {
|
|
1082
|
+
btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
|
|
1081
1083
|
}
|
|
1082
|
-
if (
|
|
1083
|
-
|
|
1084
|
-
btnsContainer.appendChild(loginButton('
|
|
1084
|
+
if (upperLoginTypes.includes('AUTH-PASSWORD')) {
|
|
1085
|
+
upperLoginTypes.push('AUTH-PASSWORD2');
|
|
1086
|
+
btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
|
|
1085
1087
|
}
|
|
1086
|
-
if (
|
|
1087
|
-
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('
|
|
1088
|
+
if (upperLoginTypes.includes('ANONYMOUS')) {
|
|
1089
|
+
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('ANONYMOUS')));
|
|
1088
1090
|
}
|
|
1089
1091
|
};
|
|
1090
1092
|
const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
|