@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 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 onlyAuth = loginTypes.every(type => type === 'auth-password');
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 (loginTypes.includes('auth-password2') || onlyAuth) {
1031
+ if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
1030
1032
  btnsContainer.replaceChildren();
1031
1033
  btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
1032
- loginTypes.pop();
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, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1039
+ appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1038
1040
  }));
1039
1041
  }
1040
1042
  return;
1041
1043
  }
1042
- if (loginTypes.includes('SSO')) {
1044
+ if (upperLoginTypes.includes('SSO')) {
1043
1045
  btnsContainer.appendChild(loginButton('SSO', () => {
1044
1046
  handleSSOLogin();
1045
1047
  }));
1046
1048
  }
1047
- if (loginTypes.includes('Google')) {
1048
- btnsContainer.appendChild(loginButton('Google', () => handlers.onGoogleSignIn(onUserLogin)));
1049
+ if (upperLoginTypes.includes('GOOGLE')) {
1050
+ btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
1049
1051
  }
1050
- if (loginTypes.includes('Microsoft')) {
1051
- btnsContainer.appendChild(loginButton('Microsoft', () => handlers.onMicrosoftSignIn(onUserLogin)));
1052
+ if (upperLoginTypes.includes('MICROSOFT')) {
1053
+ btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
1052
1054
  }
1053
- if (loginTypes.includes('Linkedin')) {
1054
- btnsContainer.appendChild(loginButton('LinkedIn', () => console.log('login with Linkedin')));
1055
+ if (upperLoginTypes.includes('LINKEDIN')) {
1056
+ btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
1055
1057
  }
1056
- if (loginTypes.includes('Email')) {
1057
- btnsContainer.appendChild(loginButton('Email', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, loginTypes, handlers)));
1058
+ if (upperLoginTypes.includes('EMAIL')) {
1059
+ btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
1058
1060
  }
1059
- if (loginTypes.includes('auth-password')) {
1060
- loginTypes.push('auth-password2');
1061
- btnsContainer.appendChild(loginButton('email-password', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
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 (loginTypes.includes('anonymous')) {
1064
- btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
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 onlyAuth = loginTypes.every(type => type === 'auth-password');
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 (loginTypes.includes('auth-password2') || onlyAuth) {
1030
+ if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
1029
1031
  btnsContainer.replaceChildren();
1030
1032
  btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
1031
- loginTypes.pop();
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, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1038
+ appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1037
1039
  }));
1038
1040
  }
1039
1041
  return;
1040
1042
  }
1041
- if (loginTypes.includes('SSO')) {
1043
+ if (upperLoginTypes.includes('SSO')) {
1042
1044
  btnsContainer.appendChild(loginButton('SSO', () => {
1043
1045
  handleSSOLogin();
1044
1046
  }));
1045
1047
  }
1046
- if (loginTypes.includes('Google')) {
1047
- btnsContainer.appendChild(loginButton('Google', () => handlers.onGoogleSignIn(onUserLogin)));
1048
+ if (upperLoginTypes.includes('GOOGLE')) {
1049
+ btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
1048
1050
  }
1049
- if (loginTypes.includes('Microsoft')) {
1050
- btnsContainer.appendChild(loginButton('Microsoft', () => handlers.onMicrosoftSignIn(onUserLogin)));
1051
+ if (upperLoginTypes.includes('MICROSOFT')) {
1052
+ btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
1051
1053
  }
1052
- if (loginTypes.includes('Linkedin')) {
1053
- btnsContainer.appendChild(loginButton('LinkedIn', () => console.log('login with Linkedin')));
1054
+ if (upperLoginTypes.includes('LINKEDIN')) {
1055
+ btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
1054
1056
  }
1055
- if (loginTypes.includes('Email')) {
1056
- btnsContainer.appendChild(loginButton('Email', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, loginTypes, handlers)));
1057
+ if (upperLoginTypes.includes('EMAIL')) {
1058
+ btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
1057
1059
  }
1058
- if (loginTypes.includes('auth-password')) {
1059
- loginTypes.push('auth-password2');
1060
- btnsContainer.appendChild(loginButton('email-password', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
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 (loginTypes.includes('anonymous')) {
1063
- btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
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 onlyAuth = loginTypes.every(type => type === 'auth-password');
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 (loginTypes.includes('auth-password2') || onlyAuth) {
1054
+ if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
1053
1055
  btnsContainer.replaceChildren();
1054
1056
  btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
1055
- loginTypes.pop();
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, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1062
+ appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1061
1063
  }));
1062
1064
  }
1063
1065
  return;
1064
1066
  }
1065
- if (loginTypes.includes('SSO')) {
1067
+ if (upperLoginTypes.includes('SSO')) {
1066
1068
  btnsContainer.appendChild(loginButton('SSO', () => {
1067
1069
  handleSSOLogin();
1068
1070
  }));
1069
1071
  }
1070
- if (loginTypes.includes('Google')) {
1071
- btnsContainer.appendChild(loginButton('Google', () => handlers.onGoogleSignIn(onUserLogin)));
1072
+ if (upperLoginTypes.includes('GOOGLE')) {
1073
+ btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
1072
1074
  }
1073
- if (loginTypes.includes('Microsoft')) {
1074
- btnsContainer.appendChild(loginButton('Microsoft', () => handlers.onMicrosoftSignIn(onUserLogin)));
1075
+ if (upperLoginTypes.includes('MICROSOFT')) {
1076
+ btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
1075
1077
  }
1076
- if (loginTypes.includes('Linkedin')) {
1077
- btnsContainer.appendChild(loginButton('LinkedIn', () => console.log('login with Linkedin')));
1078
+ if (upperLoginTypes.includes('LINKEDIN')) {
1079
+ btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
1078
1080
  }
1079
- if (loginTypes.includes('Email')) {
1080
- btnsContainer.appendChild(loginButton('Email', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, loginTypes, handlers)));
1081
+ if (upperLoginTypes.includes('EMAIL')) {
1082
+ btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
1081
1083
  }
1082
- if (loginTypes.includes('auth-password')) {
1083
- loginTypes.push('auth-password2');
1084
- btnsContainer.appendChild(loginButton('email-password', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
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 (loginTypes.includes('anonymous')) {
1087
- btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klauswuestefeld/jux-web",
3
- "version": "2026.1.16",
3
+ "version": "2026.1.24",
4
4
  "author": "Jux.House",
5
5
  "license": "Copyrighted",
6
6
  "description": "",