@schukai/monster 4.7.0 → 4.8.0
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/source/components/form/login.mjs +6 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.0","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.0","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.8.0"}
|
@@ -131,6 +131,9 @@ const digitsCollapseSymbol = Symbol("digitsCollapse");
|
|
131
131
|
*
|
132
132
|
* @fires login-success
|
133
133
|
* @fires redirect-to-first-success-url
|
134
|
+
* @fires second-factor-success
|
135
|
+
* @fires digits-success
|
136
|
+
* @fires monster-login-clicked
|
134
137
|
*/
|
135
138
|
class Login extends CustomElement {
|
136
139
|
/**
|
@@ -388,7 +391,7 @@ class Login extends CustomElement {
|
|
388
391
|
}
|
389
392
|
|
390
393
|
/**
|
391
|
-
* Opens the digits collapse and focuses the
|
394
|
+
* Opens the digits collapse and focuses the digit control.
|
392
395
|
* @returns {Login}
|
393
396
|
*/
|
394
397
|
openDigits() {
|
@@ -1455,6 +1458,7 @@ function initEventHandler() {
|
|
1455
1458
|
if (response.ok) {
|
1456
1459
|
const timeout = this.getOption("timeoutForSuccess");
|
1457
1460
|
this[secondFactorButtonSymbol].setState("successful", timeout);
|
1461
|
+
fireEvent(this, "second-factor-success");
|
1458
1462
|
setTimeout(() => {
|
1459
1463
|
this.openLoggedIn();
|
1460
1464
|
}, timeout);
|
@@ -1538,6 +1542,7 @@ function initEventHandler() {
|
|
1538
1542
|
|
1539
1543
|
if (response.ok) {
|
1540
1544
|
this[digitsButtonSymbol].setState("successful", timeout);
|
1545
|
+
fireEvent(this, "digits-success");
|
1541
1546
|
setTimeout(() => {
|
1542
1547
|
this.openLoggedIn();
|
1543
1548
|
}, timeout);
|