@klauswuestefeld/jux-web 2026.1.15 → 2026.1.23

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,45 @@ 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.every(type => type === 'AUTH-PASSWORD');
1028
1029
  explanation.textContent = getTranslation('sign-in-explanation');
1029
- if (loginTypes.includes('auth-password2') || onlyAuth) {
1030
+ if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
1030
1031
  btnsContainer.replaceChildren();
1031
1032
  btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
1032
- loginTypes.pop();
1033
+ upperLoginTypes.pop();
1033
1034
  explanation.textContent = getTranslation('sign-in-email');
1034
1035
  if (!onlyAuth) {
1035
1036
  btnsContainer.appendChild(backButton('Back', () => {
1036
1037
  btnsContainer.replaceChildren();
1037
- appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1038
+ appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1038
1039
  }));
1039
1040
  }
1040
1041
  return;
1041
1042
  }
1042
- if (loginTypes.includes('SSO')) {
1043
+ if (upperLoginTypes.includes('SSO')) {
1043
1044
  btnsContainer.appendChild(loginButton('SSO', () => {
1044
1045
  handleSSOLogin();
1045
1046
  }));
1046
1047
  }
1047
- if (loginTypes.includes('Google')) {
1048
- btnsContainer.appendChild(loginButton('Google', () => handlers.onGoogleSignIn(onUserLogin)));
1048
+ if (upperLoginTypes.includes('GOOGLE')) {
1049
+ btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
1049
1050
  }
1050
- if (loginTypes.includes('Microsoft')) {
1051
- btnsContainer.appendChild(loginButton('Microsoft', () => handlers.onMicrosoftSignIn(onUserLogin)));
1051
+ if (upperLoginTypes.includes('MICROSOFT')) {
1052
+ btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
1052
1053
  }
1053
- if (loginTypes.includes('Linkedin')) {
1054
- btnsContainer.appendChild(loginButton('LinkedIn', () => console.log('login with Linkedin')));
1054
+ if (upperLoginTypes.includes('LINKEDIN')) {
1055
+ btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
1055
1056
  }
1056
- if (loginTypes.includes('Email')) {
1057
- 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)));
1058
1059
  }
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)));
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)));
1062
1063
  }
1063
- if (loginTypes.includes('anonymous')) {
1064
- btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
1064
+ if (upperLoginTypes.includes('ANONYMOUS')) {
1065
+ btnsContainer.appendChild(loginButton('guest', () => onUserLogin('ANONYMOUS')));
1065
1066
  }
1066
1067
  };
1067
1068
  const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
@@ -14868,7 +14869,10 @@ var juxWeb = (function (exports) {
14868
14869
  }));
14869
14870
  return;
14870
14871
  }
14871
- displayPage(clientApp, loginPage(clientApp, backgroundImage, onUserLogin, onLoginError, supportedLoginTypes, handleSSOLogin, { onAuthPasswordLogin, onGoogleSignIn, onMicrosoftSignIn, handleMagicLinkRequest }));
14872
+ const supportedLoginTypesArray = Array.isArray(supportedLoginTypes)
14873
+ ? supportedLoginTypes
14874
+ : [supportedLoginTypes];
14875
+ displayPage(clientApp, loginPage(clientApp, backgroundImage, onUserLogin, onLoginError, supportedLoginTypesArray, handleSSOLogin, { onAuthPasswordLogin, onGoogleSignIn, onMicrosoftSignIn, handleMagicLinkRequest }));
14872
14876
  // validateThirdPartyCookies(initGapi, () => displayPage(Page.LOGIN));
14873
14877
  // checkMixpanel(() => mixpanel.track('View Login Page'));
14874
14878
  };
package/dist/main.esm.js CHANGED
@@ -1023,44 +1023,45 @@ 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.every(type => type === 'AUTH-PASSWORD');
1027
1028
  explanation.textContent = getTranslation('sign-in-explanation');
1028
- if (loginTypes.includes('auth-password2') || onlyAuth) {
1029
+ if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
1029
1030
  btnsContainer.replaceChildren();
1030
1031
  btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
1031
- loginTypes.pop();
1032
+ upperLoginTypes.pop();
1032
1033
  explanation.textContent = getTranslation('sign-in-email');
1033
1034
  if (!onlyAuth) {
1034
1035
  btnsContainer.appendChild(backButton('Back', () => {
1035
1036
  btnsContainer.replaceChildren();
1036
- appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1037
+ appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1037
1038
  }));
1038
1039
  }
1039
1040
  return;
1040
1041
  }
1041
- if (loginTypes.includes('SSO')) {
1042
+ if (upperLoginTypes.includes('SSO')) {
1042
1043
  btnsContainer.appendChild(loginButton('SSO', () => {
1043
1044
  handleSSOLogin();
1044
1045
  }));
1045
1046
  }
1046
- if (loginTypes.includes('Google')) {
1047
- btnsContainer.appendChild(loginButton('Google', () => handlers.onGoogleSignIn(onUserLogin)));
1047
+ if (upperLoginTypes.includes('GOOGLE')) {
1048
+ btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
1048
1049
  }
1049
- if (loginTypes.includes('Microsoft')) {
1050
- btnsContainer.appendChild(loginButton('Microsoft', () => handlers.onMicrosoftSignIn(onUserLogin)));
1050
+ if (upperLoginTypes.includes('MICROSOFT')) {
1051
+ btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
1051
1052
  }
1052
- if (loginTypes.includes('Linkedin')) {
1053
- btnsContainer.appendChild(loginButton('LinkedIn', () => console.log('login with Linkedin')));
1053
+ if (upperLoginTypes.includes('LINKEDIN')) {
1054
+ btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
1054
1055
  }
1055
- if (loginTypes.includes('Email')) {
1056
- btnsContainer.appendChild(loginButton('Email', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, loginTypes, handlers)));
1056
+ if (upperLoginTypes.includes('EMAIL')) {
1057
+ btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
1057
1058
  }
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)));
1059
+ if (upperLoginTypes.includes('AUTH-PASSWORD')) {
1060
+ upperLoginTypes.push('AUTH-PASSWORD2');
1061
+ btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
1061
1062
  }
1062
- if (loginTypes.includes('anonymous')) {
1063
- btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
1063
+ if (upperLoginTypes.includes('ANONYMOUS')) {
1064
+ btnsContainer.appendChild(loginButton('guest', () => onUserLogin('ANONYMOUS')));
1064
1065
  }
1065
1066
  };
1066
1067
  const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
@@ -1548,7 +1549,10 @@ const initSession = ({ clientApp, supportedLoginTypes, onUserLogin, onLoginError
1548
1549
  }));
1549
1550
  return;
1550
1551
  }
1551
- displayPage(clientApp, loginPage(clientApp, backgroundImage, onUserLogin, onLoginError, supportedLoginTypes, handleSSOLogin, { onAuthPasswordLogin, onGoogleSignIn, onMicrosoftSignIn, handleMagicLinkRequest }));
1552
+ const supportedLoginTypesArray = Array.isArray(supportedLoginTypes)
1553
+ ? supportedLoginTypes
1554
+ : [supportedLoginTypes];
1555
+ displayPage(clientApp, loginPage(clientApp, backgroundImage, onUserLogin, onLoginError, supportedLoginTypesArray, handleSSOLogin, { onAuthPasswordLogin, onGoogleSignIn, onMicrosoftSignIn, handleMagicLinkRequest }));
1552
1556
  // validateThirdPartyCookies(initGapi, () => displayPage(Page.LOGIN));
1553
1557
  // checkMixpanel(() => mixpanel.track('View Login Page'));
1554
1558
  };
package/dist/main.js CHANGED
@@ -1047,44 +1047,45 @@ 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.every(type => type === 'AUTH-PASSWORD');
1051
1052
  explanation.textContent = getTranslation('sign-in-explanation');
1052
- if (loginTypes.includes('auth-password2') || onlyAuth) {
1053
+ if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
1053
1054
  btnsContainer.replaceChildren();
1054
1055
  btnsContainer.appendChild(authPasswordForm(clientApp, loginPage, onUserLogin, onLoginError, backgroundImg, handlers));
1055
- loginTypes.pop();
1056
+ upperLoginTypes.pop();
1056
1057
  explanation.textContent = getTranslation('sign-in-email');
1057
1058
  if (!onlyAuth) {
1058
1059
  btnsContainer.appendChild(backButton('Back', () => {
1059
1060
  btnsContainer.replaceChildren();
1060
- appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1061
+ appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers);
1061
1062
  }));
1062
1063
  }
1063
1064
  return;
1064
1065
  }
1065
- if (loginTypes.includes('SSO')) {
1066
+ if (upperLoginTypes.includes('SSO')) {
1066
1067
  btnsContainer.appendChild(loginButton('SSO', () => {
1067
1068
  handleSSOLogin();
1068
1069
  }));
1069
1070
  }
1070
- if (loginTypes.includes('Google')) {
1071
- btnsContainer.appendChild(loginButton('Google', () => handlers.onGoogleSignIn(onUserLogin)));
1071
+ if (upperLoginTypes.includes('GOOGLE')) {
1072
+ btnsContainer.appendChild(loginButton('GOOGLE', () => handlers.onGoogleSignIn(onUserLogin)));
1072
1073
  }
1073
- if (loginTypes.includes('Microsoft')) {
1074
- btnsContainer.appendChild(loginButton('Microsoft', () => handlers.onMicrosoftSignIn(onUserLogin)));
1074
+ if (upperLoginTypes.includes('MICROSOFT')) {
1075
+ btnsContainer.appendChild(loginButton('MICROSOFT', () => handlers.onMicrosoftSignIn(onUserLogin)));
1075
1076
  }
1076
- if (loginTypes.includes('Linkedin')) {
1077
- btnsContainer.appendChild(loginButton('LinkedIn', () => console.log('login with Linkedin')));
1077
+ if (upperLoginTypes.includes('LINKEDIN')) {
1078
+ btnsContainer.appendChild(loginButton('LINKEDIN', () => console.log('login with Linkedin')));
1078
1079
  }
1079
- if (loginTypes.includes('Email')) {
1080
- btnsContainer.appendChild(loginButton('Email', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, loginTypes, handlers)));
1080
+ if (upperLoginTypes.includes('EMAIL')) {
1081
+ btnsContainer.appendChild(loginButton('EMAIL', () => onEmailLoginRequest(clientApp, loginPage, onUserLogin, backgroundImg, upperLoginTypes, handlers)));
1081
1082
  }
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)));
1083
+ if (upperLoginTypes.includes('AUTH-PASSWORD')) {
1084
+ upperLoginTypes.push('AUTH-PASSWORD2');
1085
+ btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
1085
1086
  }
1086
- if (loginTypes.includes('anonymous')) {
1087
- btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
1087
+ if (upperLoginTypes.includes('ANONYMOUS')) {
1088
+ btnsContainer.appendChild(loginButton('guest', () => onUserLogin('ANONYMOUS')));
1088
1089
  }
1089
1090
  };
1090
1091
  const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
@@ -1572,7 +1573,10 @@ const initSession = ({ clientApp, supportedLoginTypes, onUserLogin, onLoginError
1572
1573
  }));
1573
1574
  return;
1574
1575
  }
1575
- displayPage(clientApp, loginPage(clientApp, backgroundImage, onUserLogin, onLoginError, supportedLoginTypes, handleSSOLogin, { onAuthPasswordLogin, onGoogleSignIn, onMicrosoftSignIn, handleMagicLinkRequest }));
1576
+ const supportedLoginTypesArray = Array.isArray(supportedLoginTypes)
1577
+ ? supportedLoginTypes
1578
+ : [supportedLoginTypes];
1579
+ displayPage(clientApp, loginPage(clientApp, backgroundImage, onUserLogin, onLoginError, supportedLoginTypesArray, handleSSOLogin, { onAuthPasswordLogin, onGoogleSignIn, onMicrosoftSignIn, handleMagicLinkRequest }));
1576
1580
  // validateThirdPartyCookies(initGapi, () => displayPage(Page.LOGIN));
1577
1581
  // checkMixpanel(() => mixpanel.track('View Login Page'));
1578
1582
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klauswuestefeld/jux-web",
3
- "version": "2026.1.15",
3
+ "version": "2026.1.23",
4
4
  "author": "Jux.House",
5
5
  "license": "Copyrighted",
6
6
  "description": "",