vrembem 4.0.0-next.1 → 4.0.0-next.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/index.js CHANGED
@@ -146,12 +146,12 @@ function ji(e, t, i) {
146
146
  return n || (r = document.createComment("teleported #" + e.id), e.before(r)), t[i](e), n && t.remove(), r;
147
147
  }
148
148
  const Ni = (e, t) => new Promise((i) => {
149
- t.transition ? (e.classList.remove(t.stateClosed), e.classList.add(t.stateOpening), e.addEventListener("transitionend", function n() {
150
- e.classList.add(t.stateOpened), e.classList.remove(t.stateOpening), i(e), this.removeEventListener("transitionend", n);
149
+ t.transition ? (e.classList.remove(t.stateClosed), e.classList.add(t.stateOpening), e.addEventListener("transitionend", function n(s) {
150
+ s.target == e && (e.classList.add(t.stateOpened), e.classList.remove(t.stateOpening), i(e), this.removeEventListener("transitionend", n));
151
151
  })) : (e.classList.add(t.stateOpened), e.classList.remove(t.stateClosed), i(e));
152
152
  }), _i = (e, t) => new Promise((i) => {
153
- t.transition ? (e.classList.add(t.stateClosing), e.classList.remove(t.stateOpened), e.addEventListener("transitionend", function n() {
154
- e.classList.remove(t.stateClosing), e.classList.add(t.stateClosed), i(e), this.removeEventListener("transitionend", n);
153
+ t.transition ? (e.classList.add(t.stateClosing), e.classList.remove(t.stateOpened), e.addEventListener("transitionend", function n(s) {
154
+ s.target == e && (e.classList.remove(t.stateClosing), e.classList.add(t.stateClosed), i(e), this.removeEventListener("transitionend", n));
155
155
  })) : (e.classList.add(t.stateClosed), e.classList.remove(t.stateOpened), i(e));
156
156
  });
157
157
  function Fi(e, t) {
@@ -362,12 +362,12 @@ function Xi(e, t = !0) {
362
362
  };
363
363
  }
364
364
  const Yi = (e, t) => new Promise((i) => {
365
- t.transition ? (e.classList.remove(t.stateClosed), e.classList.add(t.stateOpening), e.addEventListener("transitionend", function n() {
366
- e.classList.add(t.stateOpened), e.classList.remove(t.stateOpening), i(e), this.removeEventListener("transitionend", n);
365
+ t.transition ? (e.classList.remove(t.stateClosed), e.classList.add(t.stateOpening), e.addEventListener("transitionend", function n(s) {
366
+ s.target == e && (e.classList.add(t.stateOpened), e.classList.remove(t.stateOpening), i(e), this.removeEventListener("transitionend", n));
367
367
  })) : (e.classList.add(t.stateOpened), e.classList.remove(t.stateClosed), i(e));
368
368
  }), tn = (e, t) => new Promise((i) => {
369
- t.transition ? (e.classList.add(t.stateClosing), e.classList.remove(t.stateOpened), e.addEventListener("transitionend", function n() {
370
- e.classList.remove(t.stateClosing), e.classList.add(t.stateClosed), i(e), this.removeEventListener("transitionend", n);
369
+ t.transition ? (e.classList.add(t.stateClosing), e.classList.remove(t.stateOpened), e.addEventListener("transitionend", function n(s) {
370
+ s.target == e && (e.classList.remove(t.stateClosing), e.classList.add(t.stateClosed), i(e), this.removeEventListener("transitionend", n));
371
371
  })) : (e.classList.add(t.stateClosed), e.classList.remove(t.stateOpened), i(e));
372
372
  });
373
373
  function en(e, t) {
@@ -741,12 +741,12 @@ function We(e, t, i) {
741
741
  return n || (r = document.createComment("teleported #" + e.id), e.before(r)), t[i](e), n && t.remove(), r;
742
742
  }
743
743
  const yn = (e, t) => new Promise((i) => {
744
- t.transition ? (e.classList.remove(t.stateClosed), e.classList.add(t.stateOpening), e.addEventListener("transitionend", function n() {
745
- e.classList.add(t.stateOpened), e.classList.remove(t.stateOpening), i(e), this.removeEventListener("transitionend", n);
744
+ t.transition ? (e.classList.remove(t.stateClosed), e.classList.add(t.stateOpening), e.addEventListener("transitionend", function n(s) {
745
+ s.target == e && (e.classList.add(t.stateOpened), e.classList.remove(t.stateOpening), i(e), this.removeEventListener("transitionend", n));
746
746
  })) : (e.classList.add(t.stateOpened), e.classList.remove(t.stateClosed), i(e));
747
747
  }), wn = (e, t) => new Promise((i) => {
748
- t.transition ? (e.classList.add(t.stateClosing), e.classList.remove(t.stateOpened), e.addEventListener("transitionend", function n() {
749
- e.classList.remove(t.stateClosing), e.classList.add(t.stateClosed), i(e), this.removeEventListener("transitionend", n);
748
+ t.transition ? (e.classList.add(t.stateClosing), e.classList.remove(t.stateOpened), e.addEventListener("transitionend", function n(s) {
749
+ s.target == e && (e.classList.remove(t.stateClosing), e.classList.add(t.stateClosed), i(e), this.removeEventListener("transitionend", n));
750
750
  })) : (e.classList.add(t.stateClosed), e.classList.remove(t.stateOpened), i(e));
751
751
  });
752
752
  function $n(e, t) {