@telegraph/modal 0.3.3 → 0.3.4
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 +11 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/esm/index.mjs
CHANGED
|
@@ -1618,8 +1618,8 @@ var mi = 40, hi = class extends mr {
|
|
|
1618
1618
|
motionValue: c,
|
|
1619
1619
|
element: l,
|
|
1620
1620
|
...u
|
|
1621
|
-
};
|
|
1622
|
-
this.keyframeResolver = new (
|
|
1621
|
+
}, f = l?.KeyframeResolver || zr;
|
|
1622
|
+
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1623
1623
|
}
|
|
1624
1624
|
onKeyframesResolved(e, t, n, r) {
|
|
1625
1625
|
this.keyframeResolver = void 0;
|
|
@@ -3691,14 +3691,14 @@ var ec = {
|
|
|
3691
3691
|
root: t ? t.current : void 0,
|
|
3692
3692
|
rootMargin: n,
|
|
3693
3693
|
threshold: typeof r == "number" ? r : ec[r]
|
|
3694
|
-
}
|
|
3695
|
-
this.stopObserver = $s(this.node.current, a, (e) => {
|
|
3694
|
+
}, o = (e) => {
|
|
3696
3695
|
let { isIntersecting: t } = e;
|
|
3697
3696
|
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
|
|
3698
3697
|
t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
|
|
3699
3698
|
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
|
|
3700
3699
|
a && a(e);
|
|
3701
|
-
}
|
|
3700
|
+
};
|
|
3701
|
+
this.stopObserver = $s(this.node.current, a, o);
|
|
3702
3702
|
}
|
|
3703
3703
|
mount() {
|
|
3704
3704
|
this.startObserver();
|