@virtuoso.dev/message-list
Advanced tools
Comparing version 1.8.0-alpha.12 to 1.8.0-alpha.13
@@ -0,1 +1,8 @@ | ||
# [1.8.0-alpha.13](https://github.com/virtuoso-dev/message-list/compare/v1.8.0-alpha.12...v1.8.0-alpha.13) (2024-06-17) | ||
### Bug Fixes | ||
* extend timeout for livescroll ([ed13009](https://github.com/virtuoso-dev/message-list/commit/ed1300973625dd44c733fdcf0ac2381e551784f0)) | ||
# [1.8.0-alpha.12](https://github.com/virtuoso-dev/message-list/compare/v1.8.0-alpha.11...v1.8.0-alpha.12) (2024-06-17) | ||
@@ -2,0 +9,0 @@ |
import { jsxs as Nt, jsx as y, Fragment as Gn } from "react/jsx-runtime"; | ||
import g from "react"; | ||
import { Cell as c, Signal as I, map as a, withLatestFrom as $, filter as v, mapTo as O, debounceTime as ge, throttleTime as ve, delayWithMicrotask as At, onNext as Qe, scan as U, useCellValue as B, useRealm as zt, Realm as Zn, RealmContext as Jn, useCellValues as Xn } from "@mdxeditor/gurx"; | ||
import { Cell as c, Signal as I, map as a, withLatestFrom as T, filter as v, mapTo as O, debounceTime as ge, throttleTime as ve, delayWithMicrotask as At, onNext as Qe, scan as U, useCellValue as B, useRealm as zt, Realm as Zn, RealmContext as Jn, useCellValues as Xn } from "@mdxeditor/gurx"; | ||
function be(e, t) { | ||
@@ -31,6 +31,6 @@ const n = c(e, (o) => { | ||
const [i, l] = Kt(o); | ||
return Ke(T(e, { k: i, l: jt(o), v: l })); | ||
return Ke($(e, { k: i, l: jt(o), v: l })); | ||
} | ||
} else | ||
return t < n ? Ke(T(e, { l: bt(o, t) })) : Ke(T(e, { r: bt(s, t) })); | ||
return t < n ? Ke($(e, { l: bt(o, t) })) : Ke($(e, { r: bt(s, t) })); | ||
} | ||
@@ -49,3 +49,3 @@ function re(e, t, n = "k") { | ||
function C(e, t, n) { | ||
return b(e) ? Yt(t, n, 1) : t === e.k ? T(e, { k: t, v: n }) : t < e.k ? Vt(T(e, { l: C(e.l, t, n) })) : Vt(T(e, { r: C(e.r, t, n) })); | ||
return b(e) ? Yt(t, n, 1) : t === e.k ? $(e, { k: t, v: n }) : t < e.k ? Vt($(e, { l: C(e.l, t, n) })) : Vt($(e, { r: C(e.r, t, n) })); | ||
} | ||
@@ -80,5 +80,5 @@ function mt(e, t, n) { | ||
function jt(e) { | ||
return b(e.r) ? e.l : Ke(T(e, { r: jt(e.r) })); | ||
return b(e.r) ? e.l : Ke($(e, { r: jt(e.r) })); | ||
} | ||
function T(e, t) { | ||
function $(e, t) { | ||
return Yt(t.k ?? e.k, t.v ?? e.v, t.lvl ?? e.lvl, t.l ?? e.l, t.r ?? e.r); | ||
@@ -98,8 +98,8 @@ } | ||
if (dt(t)) | ||
return Zt(T(e, { lvl: o - 1 })); | ||
return Zt($(e, { lvl: o - 1 })); | ||
if (!b(t) && !b(t.r)) | ||
return T(t.r, { | ||
l: T(t, { r: t.r.l }), | ||
return $(t.r, { | ||
l: $(t, { r: t.r.l }), | ||
lvl: o, | ||
r: T(e, { | ||
r: $(e, { | ||
l: t.r.r, | ||
@@ -112,7 +112,7 @@ lvl: o - 1 | ||
if (dt(e)) | ||
return kt(T(e, { lvl: o - 1 })); | ||
return kt($(e, { lvl: o - 1 })); | ||
if (!b(n) && !b(n.l)) { | ||
const s = n.l, i = dt(s) ? n.lvl - 1 : n.lvl; | ||
return T(s, { | ||
l: T(e, { | ||
return $(s, { | ||
l: $(e, { | ||
lvl: o - 1, | ||
@@ -122,3 +122,3 @@ r: s.l | ||
lvl: s.lvl + 1, | ||
r: kt(T(n, { l: s.r, lvl: i })) | ||
r: kt($(n, { l: s.r, lvl: i })) | ||
}); | ||
@@ -155,7 +155,7 @@ } else | ||
const { r: t, lvl: n } = e; | ||
return !b(t) && !b(t.r) && t.lvl === n && t.r.lvl === n ? T(t, { l: T(e, { r: t.l }), lvl: n + 1 }) : e; | ||
return !b(t) && !b(t.r) && t.lvl === n && t.r.lvl === n ? $(t, { l: $(e, { r: t.l }), lvl: n + 1 }) : e; | ||
} | ||
function Zt(e) { | ||
const { l: t } = e; | ||
return !b(t) && t.lvl === e.lvl ? T(t, { r: T(e, { l: t.r }) }) : e; | ||
return !b(t) && t.lvl === e.lvl ? $(t, { r: $(e, { l: t.r }) }) : e; | ||
} | ||
@@ -232,3 +232,3 @@ function no(e) { | ||
} | ||
const $e = [[], 0, 0, 0]; | ||
const Te = [[], 0, 0, 0]; | ||
function uo(e, [t, n]) { | ||
@@ -297,3 +297,3 @@ let o = 0, s = 0, i = 0, l = 0; | ||
const { align: h, behavior: p, offset: m, index: k } = Ct(e, s - 1); | ||
function _() { | ||
function F() { | ||
const J = re(t, k)[1]; | ||
@@ -306,3 +306,3 @@ if (J === void 0) | ||
let d = ao(k, n) + l - r; | ||
h === "end" ? d = d - i + _() : h === "center" && (d = d - i / 2 + _() / 2), m && (d += m); | ||
h === "end" ? d = d - i + F() : h === "center" && (d = d - i / 2 + F() / 2), m && (d += m); | ||
let Y = 0; | ||
@@ -329,3 +329,3 @@ return h === "start" && (Y = Math.max(0, Math.min(d - (o - i)))), d = Math.max(0, d), { top: d, behavior: p, align: h, forceBottomSpace: Y }; | ||
on, | ||
$(ke, rt, _e), | ||
T(ke, rt, Fe), | ||
a(([t, n, o, s]) => { | ||
@@ -344,3 +344,3 @@ let { align: i, behavior: l, offset: r, index: u } = Ct(t, n - 1); | ||
ne, | ||
$( | ||
T( | ||
G, | ||
@@ -352,3 +352,3 @@ rt, | ||
Be, | ||
Fe, | ||
_e, | ||
Re | ||
@@ -381,3 +381,3 @@ ), | ||
ge(0), | ||
$(je, Le), | ||
T(je, Le), | ||
v(([, n, o]) => !n && o !== null), | ||
@@ -420,3 +420,3 @@ a(([, , n]) => n) | ||
e.combine(nt, G), | ||
$(Me), | ||
T(Me), | ||
v(([[n, o], s]) => n !== null && !b(o) && s !== null), | ||
@@ -491,4 +491,4 @@ ge(10), | ||
Be, | ||
Fe, | ||
F, | ||
_e, | ||
_, | ||
q, | ||
@@ -514,3 +514,3 @@ W | ||
k, | ||
_, | ||
F, | ||
d, | ||
@@ -535,3 +535,3 @@ Y | ||
headerHeight: e.getValue(ct), | ||
stickyHeaderHeight: _, | ||
stickyHeaderHeight: F, | ||
stickyFooterHeight: d | ||
@@ -624,3 +624,3 @@ }).top ?? 0); | ||
e.pipe( | ||
e.combine(Te, x, Z, gn, rn, ut, G), | ||
e.combine($e, x, Z, gn, rn, ut, G), | ||
v(([, , , , , , t]) => !b(t)), | ||
@@ -674,3 +674,3 @@ U((t, [n, o, s, i, l]) => { | ||
Z, | ||
$(qe), | ||
T(qe), | ||
U( | ||
@@ -693,3 +693,3 @@ (t, [n, o]) => { | ||
e.pipe( | ||
e.combine(x, Te, Z), | ||
e.combine(x, $e, Z), | ||
U( | ||
@@ -743,3 +743,3 @@ (t, [n, o, s]) => { | ||
ve(100), | ||
$(De), | ||
T(De), | ||
v(([, t]) => !!t), | ||
@@ -755,3 +755,3 @@ U(([, t], [n]) => [t, n], [0, 0]), | ||
He, | ||
$(un, q), | ||
T(un, q), | ||
v(([, , t]) => !t), | ||
@@ -767,3 +767,3 @@ U( | ||
v(([t]) => t !== 0), | ||
$(x, ot, Ve), | ||
T(x, ot, Ve), | ||
v(([, t, n, o]) => !o && t !== 0 && n === sn), | ||
@@ -773,13 +773,13 @@ a(([[t]]) => t) | ||
Ge | ||
), en() ? (e.sub(e.pipe(Ge, $(F, x)), ([t, n]) => { | ||
e.pub(F, n - t); | ||
}), e.sub(e.pipe(e.combine(x, F, q)), ([t, n, o]) => { | ||
), en() ? (e.sub(e.pipe(Ge, T(_, x)), ([t, n]) => { | ||
e.pub(_, n - t); | ||
}), e.sub(e.pipe(e.combine(x, _, q)), ([t, n, o]) => { | ||
o || (n > 0 && t < n ? (e.pub(W, !0), e.pub(Ee, { top: 0, behavior: "instant" }), setTimeout(() => { | ||
e.pubIn({ | ||
[W]: !1, | ||
[F]: 0 | ||
[_]: 0 | ||
}); | ||
})) : n < 0 && t <= 0 && (e.pubIn({ | ||
[W]: !0, | ||
[F]: 0 | ||
[_]: 0 | ||
}), setTimeout(() => { | ||
@@ -790,3 +790,3 @@ e.pub(Ee, { top: 0, behavior: "instant" }), e.pub(W, !1); | ||
e.pipe( | ||
e.combine(De, F, W, q), | ||
e.combine(De, _, W, q), | ||
v(([t, n, o, s]) => !t && n !== 0 && !o && !s), | ||
@@ -797,7 +797,7 @@ ve(100) | ||
e.pub(W, !0), t < 0 ? requestAnimationFrame(() => { | ||
e.pub(oe, { top: -t, behavior: "instant" }), e.pub(F, 0), requestAnimationFrame(() => { | ||
e.pub(oe, { top: -t, behavior: "instant" }), e.pub(_, 0), requestAnimationFrame(() => { | ||
e.pub(W, !1); | ||
}); | ||
}) : requestAnimationFrame(() => { | ||
e.pub(oe, { top: -t, behavior: "instant" }), e.pub(F, 0), requestAnimationFrame(() => { | ||
e.pub(oe, { top: -t, behavior: "instant" }), e.pub(_, 0), requestAnimationFrame(() => { | ||
e.pub(W, !1); | ||
@@ -829,10 +829,10 @@ }); | ||
he, | ||
$(Se), | ||
T(Se), | ||
a(([n, o]) => o * n.length) | ||
), | ||
F | ||
_ | ||
), e.link(e.pipe(he, O(t)), W), e.sub( | ||
e.pipe( | ||
he, | ||
$(Se), | ||
T(Se), | ||
a(([n, o]) => ({ | ||
@@ -848,5 +848,5 @@ top: o * n.length, | ||
}), t ? setTimeout(() => { | ||
e.pub(F, 0), e.pub(q, !1), e.pub(W, !1); | ||
e.pub(_, 0), e.pub(q, !1), e.pub(W, !1); | ||
}, 100) : requestAnimationFrame(() => { | ||
e.pub(F, 0), e.pub(q, !1); | ||
e.pub(_, 0), e.pub(q, !1); | ||
}); | ||
@@ -857,3 +857,3 @@ } | ||
he, | ||
$(G, Se), | ||
T(G, Se), | ||
a(([n, o, s]) => { | ||
@@ -880,3 +880,3 @@ const i = n.length, l = s; | ||
it, | ||
$(_e, Tt, Ce, G), | ||
T(Fe, $t, Ce, G), | ||
v(([, , , , o]) => !b(o)), | ||
@@ -960,9 +960,9 @@ a(([{ data: o, scrollToBottom: s }, i, l, r]) => { | ||
}); | ||
}), _t = I((e) => { | ||
e.changeWith(H, _t, (t, n) => t ? t.slice(n) : []), e.changeWith(ce, _t, ([t], n) => [de(t).reduce((s, { k: i, v: l }) => C(s, Math.max(0, i - n), l), me()), 0]); | ||
}), Ft = I((e) => { | ||
e.changeWith(H, Ft, (t, n) => t ? t.slice(n) : []), e.changeWith(ce, Ft, ([t], n) => [de(t).reduce((s, { k: i, v: l }) => C(s, Math.max(0, i - n), l), me()), 0]); | ||
}), _t = I((e) => { | ||
e.changeWith(H, _t, (t, n) => t ? t.slice(0, t.length - n) : []), e.link( | ||
e.changeWith(H, Ft, (t, n) => t ? t.slice(0, t.length - n) : []), e.link( | ||
e.pipe( | ||
_t, | ||
$(ke, Se), | ||
Ft, | ||
T(ke, Se), | ||
a(([, t, n]) => [ | ||
@@ -981,3 +981,3 @@ { | ||
an, | ||
$(H), | ||
T(H), | ||
a(([n, o]) => { | ||
@@ -993,8 +993,8 @@ if (!o) | ||
e.changeWith(H, t, (n, o) => n ? n.filter((s, i) => !o.includes(i)) : []), e.changeWith(ce, t, ([n], o) => [ho(n, o), 0]); | ||
}), $t = I((e) => { | ||
e.changeWith(H, $t, (t, { mapper: n }) => t ? t.map(n) : []), e.link( | ||
}), Tt = I((e) => { | ||
e.changeWith(H, Tt, (t, { mapper: n }) => t ? t.map(n) : []), e.link( | ||
e.pipe( | ||
$t, | ||
Tt, | ||
ve(40), | ||
$(cn), | ||
T(cn), | ||
v(([{ autoscrollToBottomBehavior: t }, n]) => n && !!t), | ||
@@ -1016,3 +1016,3 @@ a(([{ autoscrollToBottomBehavior: t }]) => ({ index: "LAST", align: "end", behavior: t })) | ||
v((t) => t.length > 0), | ||
$(G), | ||
T(G), | ||
a(([t, n]) => so(n, [t, []])) | ||
@@ -1038,8 +1038,8 @@ ), | ||
); | ||
}), Se = c($e[1]), rt = c($e[0]), Ae = c($e, (e) => { | ||
}), Se = c(Te[1]), rt = c(Te[0]), Ae = c(Te, (e) => { | ||
e.link( | ||
e.pipe( | ||
G, | ||
$(pn), | ||
U(([t], [n, o]) => uo(t, [n, o]), $e) | ||
T(pn), | ||
U(([t], [n, o]) => uo(t, [n, o]), Te) | ||
), | ||
@@ -1060,3 +1060,3 @@ Ae | ||
); | ||
}), fn = c($e[2], (e) => { | ||
}), fn = c(Te[2], (e) => { | ||
e.link( | ||
@@ -1069,3 +1069,3 @@ e.pipe( | ||
); | ||
}), hn = c($e[3], (e) => { | ||
}), hn = c(Te[3], (e) => { | ||
e.link( | ||
@@ -1086,15 +1086,15 @@ e.pipe( | ||
); | ||
}), Ve = I(), Tt = c(!1), Oe = I((e) => { | ||
}), Ve = I(), $t = c(!1), Oe = I((e) => { | ||
e.link(e.pipe(Oe, O(!1)), Ve); | ||
}), x = c(0), Z = c(0), gn = c(0), Te = c(0), xo = x, Xe = c(0), Be = c(0), We = c(0), Fe = c(0), Ot = c(0), Et = c(null), ct = be(0, (e) => e.pipe( | ||
}), x = c(0), Z = c(0), gn = c(0), $e = c(0), xo = x, Xe = c(0), Be = c(0), We = c(0), _e = c(0), Ot = c(0), Et = c(null), ct = be(0, (e) => e.pipe( | ||
e.combine(Be, We), | ||
a(([t, n]) => t + n) | ||
)), dn = be(0, (e) => e.pipe( | ||
e.combine(Fe, Ot), | ||
e.combine(_e, Ot), | ||
a(([t, n]) => t + n) | ||
)), $o = be(0, (e) => e.pipe( | ||
)), To = be(0, (e) => e.pipe( | ||
e.combine(Be, We, x), | ||
a(([t, n, o]) => t + Math.max(n - o, 0)) | ||
)), To = be(0, (e) => e.pipe( | ||
e.combine(Fe, Ot, x, Z, Te), | ||
)), $o = be(0, (e) => e.pipe( | ||
e.combine(_e, Ot, x, Z, $e), | ||
a(([t, n, o, s, i]) => { | ||
@@ -1105,3 +1105,3 @@ const l = Math.max(n - (i - (o + s)), 0); | ||
)), vn = be(0, (e) => e.pipe( | ||
e.combine(Z, $o, To), | ||
e.combine(Z, To, $o), | ||
a(([t, n, o]) => t - n - o) | ||
@@ -1126,3 +1126,3 @@ )), ut = c(0), bn = c(0, (e) => { | ||
Ee, | ||
$(x), | ||
T(x), | ||
v(([t, n]) => t.top !== n), | ||
@@ -1133,3 +1133,3 @@ O(!0) | ||
); | ||
}), _e = be( | ||
}), Fe = be( | ||
{ | ||
@@ -1149,3 +1149,3 @@ listOffset: 0, | ||
vn, | ||
Te, | ||
$e, | ||
ut, | ||
@@ -1172,5 +1172,5 @@ q, | ||
]) => { | ||
const k = e.getValue(rn), _ = l - n - o, d = -t + s, Y = r === 0 ? _ + Math.min(0, d) - i : -r; | ||
const k = e.getValue(rn), F = l - n - o, d = -t + s, Y = r === 0 ? F + Math.min(0, d) - i : -r; | ||
return { | ||
scrollHeight: _, | ||
scrollHeight: F, | ||
listOffset: d, | ||
@@ -1189,3 +1189,3 @@ visibleListHeight: i, | ||
ge(0), | ||
$(_e), | ||
T(Fe), | ||
v(([, t]) => t.scrollHeight > 0), | ||
@@ -1196,6 +1196,6 @@ a(([, t]) => t) | ||
); | ||
}), oe = I(), F = c(0), wt = c(0), mn = c(""), kn = ({ index: e }) => /* @__PURE__ */ Nt("div", { children: [ | ||
}), oe = I(), _ = c(0), wt = c(0), mn = c(""), kn = ({ index: e }) => /* @__PURE__ */ Nt("div", { children: [ | ||
"Item ", | ||
e | ||
] }), yn = ({ index: e }) => e, Lt = c(kn), In = c(yn), Sn = c(null), xn = c(null), $n = c(null), Tn = c(null), En = c(null), Rn = c("div"), Eo = { | ||
] }), yn = ({ index: e }) => e, Lt = c(kn), In = c(yn), Sn = c(null), xn = c(null), Tn = c(null), $n = c(null), En = c(null), Rn = c("div"), Eo = { | ||
position: "sticky", | ||
@@ -1565,7 +1565,7 @@ top: 0, | ||
watermarkMessage: "Your Virtuoso Message List license key is invalid" | ||
}, Fo = { | ||
}, _o = { | ||
valid: !1, | ||
consoleMessage: "Your annual license key to use Virtuoso Message List in non-production environments has expired. You can still use it in production. To keep using it in development, purchase a new key from https://virtuoso.dev/pricing/", | ||
watermarkMessage: "Your annual license key to use Virtuoso Message List in non-production environments has expired. You can still use it in production. To keep using it in development, purchase a new key from https://virtuoso.dev/pricing/" | ||
}, _o = { | ||
}, Fo = { | ||
valid: !1, | ||
@@ -1583,5 +1583,5 @@ consoleMessage: "You have installed a version of `@virtuoso.dev/message-list` that is newer than the period of your license key. Either downgrade to a supported version, or purchase a new license from https://virtuoso.dev/pricing/", | ||
if (s) | ||
return _o; | ||
if (l.expiryDate.getTime() < o) | ||
return Fo; | ||
if (l.expiryDate.getTime() < o) | ||
return _o; | ||
} | ||
@@ -1600,3 +1600,3 @@ } else | ||
now: /* @__PURE__ */ new Date(), | ||
packageTimestamp: 1718606018093 | ||
packageTimestamp: 1718623347321 | ||
}); | ||
@@ -1606,3 +1606,3 @@ return /* @__PURE__ */ y(Wn.Provider, { value: n, children: t }); | ||
Ko.displayName = Math.random().toString(36).slice(2, 8); | ||
function Fn(e) { | ||
function _n(e) { | ||
return { | ||
@@ -1626,3 +1626,3 @@ data: { | ||
map: (t, n) => { | ||
e.pub($t, { | ||
e.pub(Tt, { | ||
mapper: t, | ||
@@ -1651,5 +1651,5 @@ autoscrollToBottomBehavior: n | ||
batch: (t, n) => { | ||
e.pub(q, !0), t(), e.pub(q, !1), requestAnimationFrame(() => { | ||
e.pub(q, !0), t(), e.pub(q, !1), setTimeout(() => { | ||
e.pub(it, { data: [], scrollToBottom: n }); | ||
}); | ||
}, 50); | ||
} | ||
@@ -1665,3 +1665,3 @@ }, | ||
getScrollLocation() { | ||
return e.getValue(_e); | ||
return e.getValue(Fe); | ||
} | ||
@@ -1671,3 +1671,3 @@ }; | ||
function Xo() { | ||
return B(_e); | ||
return B(Fe); | ||
} | ||
@@ -1679,3 +1679,3 @@ function Qo() { | ||
const e = zt(); | ||
return g.useMemo(() => Fn(e), [e]); | ||
return g.useMemo(() => _n(e), [e]); | ||
} | ||
@@ -1698,3 +1698,3 @@ let Pt = !1; | ||
EmptyPlaceholder: k = null, | ||
HeaderWrapper: _ = wn, | ||
HeaderWrapper: F = wn, | ||
StickyHeaderWrapper: d = Mn, | ||
@@ -1715,5 +1715,5 @@ FooterWrapper: Y = Ln, | ||
[Sn]: u, | ||
[$n]: p, | ||
[Tn]: p, | ||
[xn]: h, | ||
[Tn]: m, | ||
[$n]: m, | ||
[En]: k, | ||
@@ -1724,7 +1724,7 @@ [Rn]: X, | ||
[On]: Y, | ||
[Dn]: _, | ||
[Dn]: F, | ||
[Mt]: s | ||
}), N.singletonSub(Rt, i), N.singletonSub(yt, l), N; | ||
}, []); | ||
g.useImperativeHandle(ae, () => Fn(j), [j]), g.useEffect(() => { | ||
g.useImperativeHandle(ae, () => _n(j), [j]), g.useEffect(() => { | ||
j.pubIn({ | ||
@@ -1763,3 +1763,3 @@ [Ce]: n, | ||
k, | ||
_ | ||
F | ||
] = Xn( | ||
@@ -1770,4 +1770,4 @@ Sn, | ||
Cn, | ||
Tn, | ||
$n, | ||
Tn, | ||
On, | ||
@@ -1807,3 +1807,3 @@ Hn, | ||
...S, | ||
[Fe]: te.contentRect.height | ||
[_e]: te.contentRect.height | ||
}; | ||
@@ -1815,3 +1815,3 @@ continue; | ||
[x]: D.scrollTop, | ||
[Te]: D.scrollHeight, | ||
[$e]: D.scrollHeight, | ||
[Z]: te.contentRect.height, | ||
@@ -1824,3 +1824,3 @@ [gn]: D.clientWidth | ||
...S, | ||
[Te]: E.current.scrollHeight | ||
[$e]: E.current.scrollHeight | ||
}); | ||
@@ -1879,3 +1879,3 @@ continue; | ||
} | ||
f.top !== void 0 && (pe.current = f.top, n.pub(Tt, !0)), f.forceBottomSpace !== void 0 && Q.current && (Q.current.style.paddingBottom = `${f.forceBottomSpace}px`), f.behavior === "smooth" ? ye(f.top ?? 0) : (S = E.current) == null || S.scrollTo(f); | ||
f.top !== void 0 && (pe.current = f.top, n.pub($t, !0)), f.forceBottomSpace !== void 0 && Q.current && (Q.current.style.paddingBottom = `${f.forceBottomSpace}px`), f.behavior === "smooth" ? ye(f.top ?? 0) : (S = E.current) == null || S.scrollTo(f); | ||
}, | ||
@@ -1891,3 +1891,3 @@ [n, ye] | ||
const z = f.scrollHeight - f.clientHeight; | ||
Qt(f.scrollTop, Math.min(z, pe.current)) && (pe.current = null, n.pub(Tt, !1), n.pub(Oe, f.scrollTop)); | ||
Qt(f.scrollTop, Math.min(z, pe.current)) && (pe.current = null, n.pub($t, !1), n.pub(Oe, f.scrollTop)); | ||
} | ||
@@ -1903,5 +1903,5 @@ n.pub(x, f.scrollTop); | ||
g.useLayoutEffect(() => n.sub(Ee, se), [se, n]), g.useLayoutEffect(() => n.sub(oe, ee), [ee, n]); | ||
const _n = B(F), Pn = B(W), Nn = B(wt), zn = B(ut), Yn = B(mn), fe = B(Ce), Kn = B(In), jn = B(ke), Un = B(Re); | ||
const Fn = B(_), Pn = B(W), Nn = B(wt), zn = B(ut), Yn = B(mn), fe = B(Ce), Kn = B(In), jn = B(ke), Un = B(Re); | ||
return /* @__PURE__ */ y(Gn, { children: /* @__PURE__ */ Nt( | ||
_, | ||
F, | ||
{ | ||
@@ -1916,3 +1916,3 @@ ...t, | ||
}, | ||
..._ === "div" ? { context: fe } : {}, | ||
...F === "div" ? { context: fe } : {}, | ||
children: [ | ||
@@ -1934,3 +1934,3 @@ s && /* @__PURE__ */ y(l, { ref: P, style: ze, children: /* @__PURE__ */ y(s, { context: fe }) }), | ||
position: "relative", | ||
transform: `translateY(${_n}px)` | ||
transform: `translateY(${Fn}px)` | ||
}, | ||
@@ -1937,0 +1937,0 @@ children: ft.map((f) => /* @__PURE__ */ y( |
@@ -23,3 +23,3 @@ { | ||
}, | ||
"version": "1.8.0-alpha.12", | ||
"version": "1.8.0-alpha.13", | ||
"type": "module", | ||
@@ -26,0 +26,0 @@ "module": "dist/index.js", |
82507