@klauswuestefeld/jux-web 2024.12.7 → 2024.12.9
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
|
@@ -14464,7 +14464,7 @@ var juxWeb = (function (exports) {
|
|
|
14464
14464
|
return result;
|
|
14465
14465
|
};
|
|
14466
14466
|
|
|
14467
|
-
const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn) => {
|
|
14467
|
+
const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn, failInfo) => {
|
|
14468
14468
|
const content = [];
|
|
14469
14469
|
const notSent = document.createElement('p');
|
|
14470
14470
|
notSent.id = 'magic-link-not-sent';
|
|
@@ -14476,7 +14476,7 @@ var juxWeb = (function (exports) {
|
|
|
14476
14476
|
email.style.marginBottom = '10px';
|
|
14477
14477
|
const info = document.createElement('p');
|
|
14478
14478
|
info.id = 'magic-link-fail-info';
|
|
14479
|
-
info.innerHTML = getTranslation(info.id);
|
|
14479
|
+
info.innerHTML = getTranslation(failInfo || info.id);
|
|
14480
14480
|
info.style.padding = '0 30px';
|
|
14481
14481
|
info.style.textAlign = 'center';
|
|
14482
14482
|
const back = document.createElement('a');
|
|
@@ -14668,7 +14668,7 @@ var juxWeb = (function (exports) {
|
|
|
14668
14668
|
};
|
|
14669
14669
|
const onUnauthorized = () => {
|
|
14670
14670
|
disableSignInLayout();
|
|
14671
|
-
const page = unauthorizedMagicLinkRequestPage(backgroundImg, onReturn);
|
|
14671
|
+
const page = unauthorizedMagicLinkRequestPage(backgroundImg, onReturn, 'auth-password-fail-info');
|
|
14672
14672
|
const magicLinkEmail = page.querySelector('#magic-link-email');
|
|
14673
14673
|
magicLinkEmail.textContent = email;
|
|
14674
14674
|
displayPage(clientApp, page);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const unauthorizedMagicLinkRequestPage: (backgroundImg: string, onReturn: any) => HTMLElement;
|
|
1
|
+
export declare const unauthorizedMagicLinkRequestPage: (backgroundImg: string, onReturn: any, failInfo?: string) => HTMLElement;
|
package/dist/main.esm.js
CHANGED
|
@@ -949,7 +949,7 @@ const magicLinkRequestedPage = (backgroundImg, onReturn) => {
|
|
|
949
949
|
return result;
|
|
950
950
|
};
|
|
951
951
|
|
|
952
|
-
const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn) => {
|
|
952
|
+
const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn, failInfo) => {
|
|
953
953
|
const content = [];
|
|
954
954
|
const notSent = document.createElement('p');
|
|
955
955
|
notSent.id = 'magic-link-not-sent';
|
|
@@ -961,7 +961,7 @@ const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn) => {
|
|
|
961
961
|
email.style.marginBottom = '10px';
|
|
962
962
|
const info = document.createElement('p');
|
|
963
963
|
info.id = 'magic-link-fail-info';
|
|
964
|
-
info.innerHTML = getTranslation(info.id);
|
|
964
|
+
info.innerHTML = getTranslation(failInfo || info.id);
|
|
965
965
|
info.style.padding = '0 30px';
|
|
966
966
|
info.style.textAlign = 'center';
|
|
967
967
|
const back = document.createElement('a');
|
|
@@ -1153,7 +1153,7 @@ const onAuthPasswordLogin = (credentials, onUserLogin, onLoginError, onReturn, c
|
|
|
1153
1153
|
};
|
|
1154
1154
|
const onUnauthorized = () => {
|
|
1155
1155
|
disableSignInLayout();
|
|
1156
|
-
const page = unauthorizedMagicLinkRequestPage(backgroundImg, onReturn);
|
|
1156
|
+
const page = unauthorizedMagicLinkRequestPage(backgroundImg, onReturn, 'auth-password-fail-info');
|
|
1157
1157
|
const magicLinkEmail = page.querySelector('#magic-link-email');
|
|
1158
1158
|
magicLinkEmail.textContent = email;
|
|
1159
1159
|
displayPage(clientApp, page);
|
package/dist/main.js
CHANGED
|
@@ -973,7 +973,7 @@ const magicLinkRequestedPage = (backgroundImg, onReturn) => {
|
|
|
973
973
|
return result;
|
|
974
974
|
};
|
|
975
975
|
|
|
976
|
-
const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn) => {
|
|
976
|
+
const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn, failInfo) => {
|
|
977
977
|
const content = [];
|
|
978
978
|
const notSent = document.createElement('p');
|
|
979
979
|
notSent.id = 'magic-link-not-sent';
|
|
@@ -985,7 +985,7 @@ const unauthorizedMagicLinkRequestPage = (backgroundImg, onReturn) => {
|
|
|
985
985
|
email.style.marginBottom = '10px';
|
|
986
986
|
const info = document.createElement('p');
|
|
987
987
|
info.id = 'magic-link-fail-info';
|
|
988
|
-
info.innerHTML = getTranslation(info.id);
|
|
988
|
+
info.innerHTML = getTranslation(failInfo || info.id);
|
|
989
989
|
info.style.padding = '0 30px';
|
|
990
990
|
info.style.textAlign = 'center';
|
|
991
991
|
const back = document.createElement('a');
|
|
@@ -1177,7 +1177,7 @@ const onAuthPasswordLogin = (credentials, onUserLogin, onLoginError, onReturn, c
|
|
|
1177
1177
|
};
|
|
1178
1178
|
const onUnauthorized = () => {
|
|
1179
1179
|
disableSignInLayout();
|
|
1180
|
-
const page = unauthorizedMagicLinkRequestPage(backgroundImg, onReturn);
|
|
1180
|
+
const page = unauthorizedMagicLinkRequestPage(backgroundImg, onReturn, 'auth-password-fail-info');
|
|
1181
1181
|
const magicLinkEmail = page.querySelector('#magic-link-email');
|
|
1182
1182
|
magicLinkEmail.textContent = email;
|
|
1183
1183
|
displayPage(clientApp, page);
|