@klauswuestefeld/jux-web 2026.1.23 → 2026.2.2
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 +3 -2
- package/dist/main.esm.js +3 -2
- package/dist/main.js +3 -2
- package/package.json +1 -1
package/dist/jux-web.js
CHANGED
|
@@ -1025,7 +1025,8 @@ var juxWeb = (function (exports) {
|
|
|
1025
1025
|
};
|
|
1026
1026
|
const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers) => {
|
|
1027
1027
|
const upperLoginTypes = loginTypes.map(str => str.toUpperCase());
|
|
1028
|
-
const onlyAuth = upperLoginTypes.
|
|
1028
|
+
const onlyAuth = upperLoginTypes.length > 0 &&
|
|
1029
|
+
upperLoginTypes.every(type => type === 'AUTH-PASSWORD');
|
|
1029
1030
|
explanation.textContent = getTranslation('sign-in-explanation');
|
|
1030
1031
|
if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
|
|
1031
1032
|
btnsContainer.replaceChildren();
|
|
@@ -1062,7 +1063,7 @@ var juxWeb = (function (exports) {
|
|
|
1062
1063
|
btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
|
|
1063
1064
|
}
|
|
1064
1065
|
if (upperLoginTypes.includes('ANONYMOUS')) {
|
|
1065
|
-
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('
|
|
1066
|
+
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
|
|
1066
1067
|
}
|
|
1067
1068
|
};
|
|
1068
1069
|
const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
|
package/dist/main.esm.js
CHANGED
|
@@ -1024,7 +1024,8 @@ const onEmailLoginRequest = (clientApp, loginPage, onUserLogin, backgroundImage,
|
|
|
1024
1024
|
};
|
|
1025
1025
|
const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers) => {
|
|
1026
1026
|
const upperLoginTypes = loginTypes.map(str => str.toUpperCase());
|
|
1027
|
-
const onlyAuth = upperLoginTypes.
|
|
1027
|
+
const onlyAuth = upperLoginTypes.length > 0 &&
|
|
1028
|
+
upperLoginTypes.every(type => type === 'AUTH-PASSWORD');
|
|
1028
1029
|
explanation.textContent = getTranslation('sign-in-explanation');
|
|
1029
1030
|
if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
|
|
1030
1031
|
btnsContainer.replaceChildren();
|
|
@@ -1061,7 +1062,7 @@ const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLo
|
|
|
1061
1062
|
btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
|
|
1062
1063
|
}
|
|
1063
1064
|
if (upperLoginTypes.includes('ANONYMOUS')) {
|
|
1064
|
-
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('
|
|
1065
|
+
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
|
|
1065
1066
|
}
|
|
1066
1067
|
};
|
|
1067
1068
|
const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
|
package/dist/main.js
CHANGED
|
@@ -1048,7 +1048,8 @@ const onEmailLoginRequest = (clientApp, loginPage, onUserLogin, backgroundImage,
|
|
|
1048
1048
|
};
|
|
1049
1049
|
const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, loginTypes, backgroundImg, explanation, handleSSOLogin, handlers) => {
|
|
1050
1050
|
const upperLoginTypes = loginTypes.map(str => str.toUpperCase());
|
|
1051
|
-
const onlyAuth = upperLoginTypes.
|
|
1051
|
+
const onlyAuth = upperLoginTypes.length > 0 &&
|
|
1052
|
+
upperLoginTypes.every(type => type === 'AUTH-PASSWORD');
|
|
1052
1053
|
explanation.textContent = getTranslation('sign-in-explanation');
|
|
1053
1054
|
if (upperLoginTypes.includes('AUTH-PASSWORD2') || onlyAuth) {
|
|
1054
1055
|
btnsContainer.replaceChildren();
|
|
@@ -1085,7 +1086,7 @@ const appendLoginTypes = (loginPage, btnsContainer, clientApp, onUserLogin, onLo
|
|
|
1085
1086
|
btnsContainer.appendChild(loginButton('EMAIL-PASSWORD', () => appendLoginTypes(loginPage, btnsContainer, clientApp, onUserLogin, onLoginError, upperLoginTypes, backgroundImg, explanation, handleSSOLogin, handlers)));
|
|
1086
1087
|
}
|
|
1087
1088
|
if (upperLoginTypes.includes('ANONYMOUS')) {
|
|
1088
|
-
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('
|
|
1089
|
+
btnsContainer.appendChild(loginButton('guest', () => onUserLogin('anonymous')));
|
|
1089
1090
|
}
|
|
1090
1091
|
};
|
|
1091
1092
|
const loginPage = (clientApp, backgroundImg, onUserLogin, onLoginError, loginTypes, handleSSOLogin, handlers) => {
|