New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@virtuoso.dev/message-list

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@virtuoso.dev/message-list - npm Package Compare versions

Comparing version 1.8.0-alpha.13 to 1.8.0-alpha.14

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.8.0-alpha.14](https://github.com/virtuoso-dev/message-list/compare/v1.8.0-alpha.13...v1.8.0-alpha.14) (2024-06-17)
### Bug Fixes
* more reliable autoscroll ([950dcc8](https://github.com/virtuoso-dev/message-list/commit/950dcc8a19bc610679a4ff9bc703aa4a8d474307))
# [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)

@@ -2,0 +9,0 @@

255

dist/index.js
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 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";
import { Cell as c, Signal as I, map as a, withLatestFrom as $, filter as v, mapTo as O, debounceTime as de, throttleTime as ce, 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($(e, { k: i, l: jt(o), v: l }));
return Ke(T(e, { k: i, l: jt(o), v: l }));
}
} else
return t < n ? Ke($(e, { l: bt(o, t) })) : Ke($(e, { r: bt(s, t) }));
return t < n ? Ke(T(e, { l: bt(o, t) })) : Ke(T(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 ? $(e, { k: t, v: n }) : t < e.k ? Vt($(e, { l: C(e.l, t, n) })) : Vt($(e, { r: C(e.r, 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) }));
}

@@ -63,3 +63,3 @@ function mt(e, t, n) {

let s = me();
for (const { k: i, v: l } of de(e))
for (const { k: i, v: l } of ve(e))
i > t && i <= n ? s = C(s, ...o(i, l)) : s = C(s, i, l);

@@ -74,4 +74,4 @@ return s;

}
function de(e) {
return b(e) ? [] : [...de(e.l), { k: e.k, v: e.v }, ...de(e.r)];
function ve(e) {
return b(e) ? [] : [...ve(e.l), { k: e.k, v: e.v }, ...ve(e.r)];
}

@@ -82,5 +82,5 @@ function Kt(e) {

function jt(e) {
return b(e.r) ? e.l : Ke($(e, { r: jt(e.r) }));
return b(e.r) ? e.l : Ke(T(e, { r: jt(e.r) }));
}
function $(e, t) {
function T(e, t) {
return Yt(t.k ?? e.k, t.v ?? e.v, t.lvl ?? e.lvl, t.l ?? e.l, t.r ?? e.r);

@@ -100,8 +100,8 @@ }

if (dt(t))
return Zt($(e, { lvl: o - 1 }));
return Zt(T(e, { lvl: o - 1 }));
if (!b(t) && !b(t.r))
return $(t.r, {
l: $(t, { r: t.r.l }),
return T(t.r, {
l: T(t, { r: t.r.l }),
lvl: o,
r: $(e, {
r: T(e, {
l: t.r.r,

@@ -114,7 +114,7 @@ lvl: o - 1

if (dt(e))
return kt($(e, { lvl: o - 1 }));
return kt(T(e, { lvl: o - 1 }));
if (!b(n) && !b(n.l)) {
const s = n.l, i = dt(s) ? n.lvl - 1 : n.lvl;
return $(s, {
l: $(e, {
return T(s, {
l: T(e, {
lvl: o - 1,

@@ -124,3 +124,3 @@ r: s.l

lvl: s.lvl + 1,
r: kt($(n, { l: s.r, lvl: i }))
r: kt(T(n, { l: s.r, lvl: i }))
});

@@ -132,3 +132,3 @@ } else

function to(e) {
return Gt(de(e));
return Gt(ve(e));
}

@@ -158,7 +158,7 @@ function Ut(e, t, n) {

const { r: t, lvl: n } = e;
return !b(t) && !b(t.r) && t.lvl === n && t.r.lvl === n ? $(t, { l: $(e, { r: t.l }), lvl: n + 1 }) : 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;
}
function Zt(e) {
const { l: t } = e;
return !b(t) && t.lvl === e.lvl ? $(t, { r: $(e, { l: t.r }) }) : e;
return !b(t) && t.lvl === e.lvl ? T(t, { r: T(e, { l: t.r }) }) : e;
}

@@ -235,3 +235,3 @@ function no(e) {

}
const Te = [[], 0, 0, 0];
const $e = [[], 0, 0, 0];
function uo(e, [t, n]) {

@@ -330,3 +330,3 @@ let o = 0, s = 0, i = 0, l = 0;

on,
T(ke, rt, Fe),
$(ke, rt, Fe),
a(([t, n, o, s]) => {

@@ -345,3 +345,3 @@ let { align: i, behavior: l, offset: r, index: u } = Ct(t, n - 1);

ne,
T(
$(
G,

@@ -380,4 +380,4 @@ rt,

G,
ge(0),
T(je, Le),
de(0),
$(je, Le),
v(([, n, o]) => !n && o !== null),

@@ -387,3 +387,3 @@ a(([, , n]) => n)

ne
), e.sub(e.pipe(Oe, ve(20)), () => {
), e.sub(e.pipe(Oe, ce(20)), () => {
const n = e.getValue(Le);

@@ -421,5 +421,5 @@ n !== null && typeof n != "number" && n.done !== void 0 && n.done(), e.pubIn({

e.combine(nt, G),
T(Me),
$(Me),
v(([[n, o], s]) => n !== null && !b(o) && s !== null),
ge(10),
de(10),
a(([[n]]) => n)

@@ -433,3 +433,3 @@ );

// unset the location after the scroll completes
ge(10)
de(10)
),

@@ -443,3 +443,3 @@ Me

const s = [];
de(e).forEach(({ k: l, v: r }) => {
ve(e).forEach(({ k: l, v: r }) => {
var p, m;

@@ -520,3 +520,3 @@ for (; n.length && n[0] < l; )

]) => {
var pe;
var fe;
if ((u == null ? void 0 : u.length) === 0)

@@ -543,6 +543,6 @@ return Ne;

0
), ue = X + o;
if (t.offsetTree === i && t.totalCount === l && t.data === u && X >= t.listTop && ue <= t.listBottom)
), ae = X + o;
if (t.offsetTree === i && t.totalCount === l && t.data === u && X >= t.listTop && ae <= t.listBottom)
return t;
const ae = [], j = l - 1, P = 0, N = co(i, X, ue, P);
const pe = [], j = l - 1, P = 0, N = co(i, X, ae, P);
let K = 0, Pe = 0, E = !1;

@@ -556,3 +556,3 @@ for (const V of N) {

const we = Math.min(V.end, j);
for (let ie = ee; ie <= we && !(K >= ue); ie++) {
for (let ie = ee; ie <= we && !(K >= ae); ie++) {
const ft = {

@@ -567,7 +567,7 @@ data: u == null ? void 0 : u[ie],

};
E || (E = !0, Pe = K), ae.push(ft), K += se;
E || (E = !0, Pe = K), pe.push(ft), K += se;
}
}
const Q = r - K, pt = ((pe = ae[0]) == null ? void 0 : pe.offset) || 0;
return { items: ae, listBottom: K, listTop: Pe, offsetTree: i, paddingBottom: Q, paddingTop: pt, totalCount: l, data: u };
const Q = r - K, pt = ((fe = pe[0]) == null ? void 0 : fe.offset) || 0;
return { items: pe, listBottom: K, listTop: Pe, offsetTree: i, paddingBottom: Q, paddingTop: pt, totalCount: l, data: u };
},

@@ -610,3 +610,3 @@ Ne

const Ue = c(!1), Io = I((e) => {
e.link(e.pipe(ln, ve(50)), Io);
e.link(e.pipe(ln, ce(50)), Io);
}), rn = c(yo), So = c(ko, (e) => {

@@ -621,5 +621,5 @@ e.link(

}), De = c(!1, (e) => {
e.link(e.pipe(x, Bt(1), O(!0)), De), e.link(e.pipe(x, Bt(1), O(!1), ge(100)), De);
e.link(e.pipe(x, Bt(1), O(!0)), De), e.link(e.pipe(x, Bt(1), O(!1), de(100)), De);
}), It = c(!1, (e) => {
e.link(e.pipe(oe, O(!0)), It), e.link(e.pipe(oe, O(!1), ge(200)), It);
e.link(e.pipe(oe, O(!0)), It), e.link(e.pipe(oe, O(!1), de(200)), It);
}), cn = c(!1), qe = c(

@@ -630,3 +630,3 @@ null,

e.pipe(
e.combine($e, x, Z, gn, rn, ut, G),
e.combine(Te, x, Z, gn, rn, ut, G),
v(([, , , , , , t]) => !b(t)),

@@ -661,3 +661,3 @@ U((t, [n, o, s, i, l]) => {

qe,
ve(10),
ce(10),
// withLatestFrom(scrollToInProgress$),

@@ -681,3 +681,3 @@ // filter(([, inProgress]) => !inProgress),

Z,
T(qe),
$(qe),
U(

@@ -700,3 +700,3 @@ (t, [n, o]) => {

e.pipe(
e.combine(x, $e, Z),
e.combine(x, Te, Z),
U(

@@ -744,3 +744,3 @@ (t, [n, o, s]) => {

ot
), e.link(e.pipe(x, ve(50), O(bo)), ot);
), e.link(e.pipe(x, ce(50), O(bo)), ot);
}), Wt = c(0, (e) => {

@@ -750,4 +750,4 @@ e.link(e.pipe(De, v(tn), O(0)), Wt), e.link(

x,
ve(100),
T(De),
ce(100),
$(De),
v(([, t]) => !!t),

@@ -763,3 +763,3 @@ U(([, t], [n]) => [t, n], [0, 0]),

He,
T(un, q),
$(un, q),
v(([, , t]) => !t),

@@ -775,3 +775,3 @@ U(

v(([t]) => t !== 0),
T(x, ot, Ve),
$(x, ot, Ve),
v(([, t, n, o]) => !o && t !== 0 && n === sn),

@@ -781,3 +781,3 @@ a(([[t]]) => t)

Ge
), en() ? (e.sub(e.pipe(Ge, T(_, x)), ([t, n]) => {
), en() ? (e.sub(e.pipe(Ge, $(_, x)), ([t, n]) => {
e.pub(_, n - t);

@@ -800,3 +800,3 @@ }), e.sub(e.pipe(e.combine(x, _, q)), ([t, n, o]) => {

v(([t, n, o, s]) => !t && n !== 0 && !o && !s),
ve(100)
ce(100)
),

@@ -830,16 +830,16 @@ ([, t]) => {

);
}), he = I((e) => {
e.link(e.pipe(he, O(!0)), q);
}), ge = I((e) => {
e.link(e.pipe(ge, O(!0)), q);
const t = en();
e.link(
e.pipe(
he,
T(Se),
ge,
$(Se),
a(([n, o]) => o * n.length)
),
_
), e.link(e.pipe(he, O(t)), W), e.sub(
), e.link(e.pipe(ge, O(t)), W), e.sub(
e.pipe(
he,
T(Se),
ge,
$(Se),
a(([n, o]) => ({

@@ -860,9 +860,9 @@ top: o * n.length,

}
), e.changeWith(H, he, (n, o) => n ? [...o, ...n] : o.slice()), e.link(
), e.changeWith(H, ge, (n, o) => n ? [...o, ...n] : o.slice()), e.link(
e.pipe(
he,
T(G, Se),
ge,
$(G, Se),
a(([n, o, s]) => {
const i = n.length, l = s;
return de(o).reduce(
return ve(o).reduce(
(r, { k: u, v: h }) => ({

@@ -886,3 +886,3 @@ ranges: [...r.ranges, { startIndex: r.prevIndex, endIndex: u + i - 1, size: r.prevSize }],

it,
T(Fe, $t, Ce, G),
$(Fe, Tt, Ce, G),
v(([, , , , o]) => !b(o)),

@@ -909,3 +909,4 @@ a(([{ data: o, scrollToBottom: s }, i, l, r]) => {

return u === !0 && (u = "auto"), { index: "LAST", align: "end", behavior: u };
})
}),
ce(50)
);

@@ -940,3 +941,3 @@ e.link(

v((o) => o !== null),
ge(1)
de(1)
),

@@ -948,3 +949,3 @@ ne

}), Ze = I((e) => {
e.changeWith(H, Ze, (t, n) => t ? [...t.slice(0, n.offset), ...n.data, ...t.slice(n.offset)] : n.data.slice()), e.changeWith(ce, Ze, ([t], n) => {
e.changeWith(H, Ze, (t, n) => t ? [...t.slice(0, n.offset), ...n.data, ...t.slice(n.offset)] : n.data.slice()), e.changeWith(ue, Ze, ([t], n) => {
const s = re(t, n.offset, "k")[0], i = n.data.length;

@@ -954,3 +955,3 @@ return [Qn(t, s, 1 / 0, (r, u) => [r + i, u]), s];

}), xt = I((e) => {
e.changeWith(H, xt, (t, { offset: n, count: o }) => t ? t.slice(0, n).concat(t.slice(n + o)) : []), e.changeWith(ce, xt, ([t], { offset: n, count: o }) => [eo(t, n, o), n]);
e.changeWith(H, xt, (t, { offset: n, count: o }) => t ? t.slice(0, n).concat(t.slice(n + o)) : []), e.changeWith(ue, xt, ([t], { offset: n, count: o }) => [eo(t, n, o), n]);
}), Je = I((e) => {

@@ -963,3 +964,3 @@ e.changeWith(H, Je, (t, n) => n.data.slice()), e.link(

ne
), e.changeWith(ce, Je, (t, n) => {
), e.changeWith(ue, Je, (t, n) => {
const o = re(t[0], 1 / 0, "k")[1];

@@ -972,3 +973,3 @@ if (!o)

}), _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]);
e.changeWith(H, _t, (t, n) => t ? t.slice(n) : []), e.changeWith(ue, _t, ([t], n) => [ve(t).reduce((s, { k: i, v: l }) => C(s, Math.max(0, i - n), l), me()), 0]);
}), Ft = I((e) => {

@@ -978,3 +979,3 @@ e.changeWith(H, Ft, (t, n) => t ? t.slice(0, t.length - n) : []), e.link(

Ft,
T(ke, Se),
$(ke, Se),
a(([, t, n]) => [

@@ -993,3 +994,3 @@ {

an,
T(H),
$(H),
a(([n, o]) => {

@@ -1004,9 +1005,9 @@ 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]);
}), Tt = I((e) => {
e.changeWith(H, Tt, (t, { mapper: n }) => t ? t.map(n) : []), e.link(
e.changeWith(H, t, (n, o) => n ? n.filter((s, i) => !o.includes(i)) : []), e.changeWith(ue, t, ([n], o) => [ho(n, o), 0]);
}), $t = I((e) => {
e.changeWith(H, $t, (t, { mapper: n }) => t ? t.map(n) : []), e.link(
e.pipe(
Tt,
ve(40),
T(cn),
$t,
ce(40),
$(cn),
v(([{ autoscrollToBottomBehavior: t }, n]) => n && !!t),

@@ -1023,3 +1024,3 @@ a(([{ autoscrollToBottomBehavior: t }]) => ({ index: "LAST", align: "end", behavior: t }))

c(NaN);
const q = c(!1), ce = c(st, (e) => {
const q = c(!1), ue = c(st, (e) => {
e.link(

@@ -1029,6 +1030,6 @@ e.pipe(

v((t) => t.length > 0),
T(G),
$(G),
a(([t, n]) => so(n, [t, []]))
),
ce
ue
);

@@ -1038,3 +1039,3 @@ }), G = c(st[0], (e) => {

e.pipe(
ce,
ue,
a(([t]) => t)

@@ -1047,3 +1048,3 @@ ),

e.pipe(
ce,
ue,
a(([, t]) => t)

@@ -1053,8 +1054,8 @@ ),

);
}), Se = c(Te[1]), rt = c(Te[0]), Ae = c(Te, (e) => {
}), Se = c($e[1]), rt = c($e[0]), Ae = c($e, (e) => {
e.link(
e.pipe(
G,
T(pn),
U(([t], [n, o]) => uo(t, [n, o]), Te)
$(pn),
U(([t], [n, o]) => uo(t, [n, o]), $e)
),

@@ -1075,3 +1076,3 @@ Ae

);
}), fn = c(Te[2], (e) => {
}), fn = c($e[2], (e) => {
e.link(

@@ -1084,3 +1085,3 @@ e.pipe(

);
}), hn = c(Te[3], (e) => {
}), hn = c($e[3], (e) => {
e.link(

@@ -1101,5 +1102,5 @@ e.pipe(

);
}), Ve = I(), $t = c(!1), Oe = I((e) => {
}), Ve = I(), Tt = c(!1), Oe = I((e) => {
e.link(e.pipe(Oe, O(!1)), Ve);
}), 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(
}), x = c(0), Z = c(0), gn = c(0), Te = 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),

@@ -1110,7 +1111,7 @@ a(([t, n]) => t + n)

a(([t, n]) => t + n)
)), To = be(0, (e) => e.pipe(
)), $o = be(0, (e) => e.pipe(
e.combine(Be, We, x),
a(([t, n, o]) => t + Math.max(n - o, 0))
)), $o = be(0, (e) => e.pipe(
e.combine(_e, Ot, x, Z, $e),
)), To = be(0, (e) => e.pipe(
e.combine(_e, Ot, x, Z, Te),
a(([t, n, o, s, i]) => {

@@ -1121,3 +1122,3 @@ const l = Math.max(n - (i - (o + s)), 0);

)), vn = be(0, (e) => e.pipe(
e.combine(Z, To, $o),
e.combine(Z, $o, To),
a(([t, n, o]) => t - n - o)

@@ -1142,3 +1143,3 @@ )), ut = c(0), bn = c(0, (e) => {

Ee,
T(x),
$(x),
v(([t, n]) => t.top !== n),

@@ -1164,3 +1165,3 @@ O(!0)

vn,
$e,
Te,
ut,

@@ -1202,4 +1203,4 @@ q,

x,
ge(0),
T(Fe),
de(0),
$(Fe),
v(([, t]) => t.scrollHeight > 0),

@@ -1213,3 +1214,3 @@ a(([, t]) => t)

e
] }), 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 = {
] }), 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 = {
position: "sticky",

@@ -1612,3 +1613,3 @@ top: 0,

now: /* @__PURE__ */ new Date(),
packageTimestamp: 1718623347321
packageTimestamp: 1718623693705
});

@@ -1622,3 +1623,3 @@ return /* @__PURE__ */ y(Wn.Provider, { value: n, children: t });

prepend: (t) => {
e.pub(he, t);
e.pub(ge, t);
},

@@ -1638,3 +1639,3 @@ append: (t, n) => {

map: (t, n) => {
e.pub(Tt, {
e.pub($t, {
mapper: t,

@@ -1663,5 +1664,3 @@ autoscrollToBottomBehavior: n

batch: (t, n) => {
e.pub(q, !0), t(), e.pub(q, !1), setTimeout(() => {
e.pub(it, { data: [], scrollToBottom: n });
}, 50);
e.pub(q, !0), t(), e.pub(q, !1), e.pub(it, { data: [], scrollToBottom: n });
}

@@ -1712,4 +1711,4 @@ },

ScrollElement: X = "div",
...ue
}, ae) => {
...ae
}, pe) => {
const j = g.useMemo(() => {

@@ -1724,5 +1723,5 @@ const N = new Zn();

[Sn]: u,
[Tn]: p,
[$n]: p,
[xn]: h,
[$n]: m,
[Tn]: m,
[En]: k,

@@ -1737,3 +1736,3 @@ [Rn]: X,

}, []);
g.useImperativeHandle(ae, () => _n(j), [j]), g.useEffect(() => {
g.useImperativeHandle(pe, () => _n(j), [j]), g.useEffect(() => {
j.pubIn({

@@ -1756,3 +1755,3 @@ [Ce]: n,

}
) : /* @__PURE__ */ y(Jn.Provider, { value: j, children: /* @__PURE__ */ y(Uo, { ...ue }) });
) : /* @__PURE__ */ y(Jn.Provider, { value: j, children: /* @__PURE__ */ y(Uo, { ...ae }) });
}

@@ -1779,4 +1778,4 @@ );

Cn,
$n,
Tn,
$n,
On,

@@ -1813,3 +1812,3 @@ Hn,

continue;
} else if (D === ue.current) {
} else if (D === ae.current) {
S = {

@@ -1824,3 +1823,3 @@ ...S,

[x]: D.scrollTop,
[$e]: D.scrollHeight,
[Te]: D.scrollHeight,
[Z]: te.contentRect.height,

@@ -1833,3 +1832,3 @@ [gn]: D.clientWidth

...S,
[$e]: E.current.scrollHeight
[Te]: E.current.scrollHeight
});

@@ -1851,3 +1850,3 @@ continue;

});
}), [Y, J] = Ye(d), [X, ue] = Ye(d), [ae, j] = Ye(d), [P, N] = Ye(d), K = g.useCallback(
}), [Y, J] = Ye(d), [X, ae] = Ye(d), [pe, j] = Ye(d), [P, N] = Ye(d), K = g.useCallback(
(f) => {

@@ -1867,3 +1866,3 @@ d.observe(f);

[d]
), pe = g.useRef(null), V = g.useRef(null);
), fe = g.useRef(null), V = g.useRef(null);
g.useEffect(() => n.sub(tt, () => {

@@ -1890,3 +1889,3 @@ V.current && cancelAnimationFrame(V.current);

}
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);
f.top !== void 0 && (fe.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);
},

@@ -1900,5 +1899,5 @@ [n, ye]

if (f !== null) {
if (pe.current !== null) {
if (fe.current !== null) {
const z = f.scrollHeight - f.clientHeight;
Qt(f.scrollTop, Math.min(z, pe.current)) && (pe.current = null, n.pub($t, !1), n.pub(Oe, f.scrollTop));
Qt(f.scrollTop, Math.min(z, fe.current)) && (fe.current = null, n.pub(Tt, !1), n.pub(Oe, f.scrollTop));
}

@@ -1914,3 +1913,3 @@ n.pub(x, f.scrollTop);

g.useLayoutEffect(() => n.sub(Ee, se), [se, n]), g.useLayoutEffect(() => n.sub(oe, ee), [ee, n]);
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);
const Fn = B(_), Pn = B(W), Nn = B(wt), zn = B(ut), Yn = B(mn), he = B(Ce), Kn = B(In), jn = B(ke), Un = B(Re);
return /* @__PURE__ */ y(Gn, { children: /* @__PURE__ */ Nt(

@@ -1927,6 +1926,6 @@ F,

},
...F === "div" ? { context: fe } : {},
...F === "div" ? { context: he } : {},
children: [
s && /* @__PURE__ */ y(l, { ref: P, style: ze, children: /* @__PURE__ */ y(s, { context: fe }) }),
o && /* @__PURE__ */ y(i, { ref: ae, style: ze, children: /* @__PURE__ */ y(o, { context: fe }) }),
s && /* @__PURE__ */ y(l, { ref: P, style: ze, children: /* @__PURE__ */ y(s, { context: he }) }),
o && /* @__PURE__ */ y(i, { ref: pe, style: ze, children: /* @__PURE__ */ y(o, { context: he }) }),
jn > 0 ? /* @__PURE__ */ y(

@@ -1955,8 +1954,8 @@ "div",

},
Kn({ index: f.index, data: f.data, context: fe })
Kn({ index: f.index, data: f.data, context: he })
))
}
) : k ? /* @__PURE__ */ y(k, { context: fe }) : null,
r && /* @__PURE__ */ y(h, { ref: Y, style: ze, children: /* @__PURE__ */ y(r, { context: fe }) }),
u && /* @__PURE__ */ y(p, { ref: X, style: ze, children: /* @__PURE__ */ y(u, { context: fe }) })
) : k ? /* @__PURE__ */ y(k, { context: he }) : null,
r && /* @__PURE__ */ y(h, { ref: Y, style: ze, children: /* @__PURE__ */ y(r, { context: he }) }),
u && /* @__PURE__ */ y(p, { ref: X, style: ze, children: /* @__PURE__ */ y(u, { context: he }) })
]

@@ -1963,0 +1962,0 @@ }

@@ -23,3 +23,3 @@ {

},
"version": "1.8.0-alpha.13",
"version": "1.8.0-alpha.14",
"type": "module",

@@ -26,0 +26,0 @@ "module": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc