@prose-reader/react-reader 1.371.0 → 1.373.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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/ui/accordion.d.ts +0 -12
- package/dist/components/ui/avatar.d.ts +0 -16
- package/dist/components/ui/checkbox.d.ts +0 -8
- package/dist/components/ui/input-group.d.ts +0 -12
- package/dist/components/ui/popover.d.ts +0 -17
- package/dist/components/ui/tooltip.d.ts +0 -11
package/dist/index.js
CHANGED
|
@@ -701,8 +701,8 @@ var pn = !0, mn = 10, hn = ({ position: e, containerSize: t, sizePercent: n }) =
|
|
|
701
701
|
let t = e(3), n = Ot(), r = yt(), i;
|
|
702
702
|
t[0] !== r || t[1] !== n ? (i = () => {
|
|
703
703
|
if (n) {
|
|
704
|
-
let e = r.pipe(X(yn), Ee()), t =
|
|
705
|
-
n.annotations.update({ annotations$:
|
|
704
|
+
let e = r.pipe(X(yn), Ee()), t = r.pipe(X(bn), Ee()), i = we([t, e]).pipe(X(xn));
|
|
705
|
+
n.annotations.update({ annotations$: i });
|
|
706
706
|
}
|
|
707
707
|
}, t[0] = r, t[1] = n, t[2] = i) : i = t[2], _e(i);
|
|
708
708
|
};
|
|
@@ -1398,10 +1398,14 @@ var Cr = (t, n, r) => {
|
|
|
1398
1398
|
let i = e(7), a = $(), o;
|
|
1399
1399
|
i[0] === a ? o = i[1] : (o = Tt(a) ? a : void 0, i[0] = a, i[1] = o);
|
|
1400
1400
|
let s = o, c;
|
|
1401
|
-
i[2] !== t || i[3] !== n || i[4] !== r || i[5] !== s ? (c = () =>
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1401
|
+
i[2] !== t || i[3] !== n || i[4] !== r || i[5] !== s ? (c = () => {
|
|
1402
|
+
if (!s || !t) return be;
|
|
1403
|
+
let e = n.didLayout$.pipe(Fe(n.layoutInfo), Ee(He), Re(100, void 0, { trailing: !0 })), i = Ue(t).pipe(X(Tr), Fe(!1), Ee());
|
|
1404
|
+
return we([e, i]).pipe(Ie((e) => {
|
|
1405
|
+
let [, i] = e;
|
|
1406
|
+
return i ? (t.innerHTML = "", s.gallery.snapshot(n, t, r)) : (t.innerHTML = "", be);
|
|
1407
|
+
}));
|
|
1408
|
+
}, i[2] = t, i[3] = n, i[4] = r, i[5] = s, i[6] = c) : c = i[6], _e(c);
|
|
1405
1409
|
};
|
|
1406
1410
|
function wr(e) {
|
|
1407
1411
|
return e.isIntersecting;
|
|
@@ -1498,7 +1502,7 @@ var Er = F((n) => {
|
|
|
1498
1502
|
contentProps: s,
|
|
1499
1503
|
children: d
|
|
1500
1504
|
}), r[8] = i, r[9] = a, r[10] = d, r[11] = f) : f = r[11], f;
|
|
1501
|
-
}), Or = "@prose-reader/react-reader", kr = "1.
|
|
1505
|
+
}), Or = "@prose-reader/react-reader", kr = "1.372.0", Ar = F((t) => {
|
|
1502
1506
|
let n = e(12), { open: r, setOpen: i } = t, a;
|
|
1503
1507
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
1504
1508
|
overflowY: "auto",
|