@homebound/beam 4.45.0 → 4.45.1

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 CHANGED
@@ -27326,10 +27326,7 @@ function useScrollPinnedViewportBounds(anchorRef, enabled, getPinTopPx) {
27326
27326
  const pinTopPx = getPinTopPxRef.current(el);
27327
27327
  const isPinned = rect.top <= pinTopPx + 1;
27328
27328
  const topPx = isPinned ? pinTopPx : Math.round(rect.top);
27329
- const heightPx = Math.max(0, Math.round(window.innerHeight - topPx));
27330
- setBounds(
27331
- (prev) => prev?.topPx === topPx && prev?.heightPx === heightPx && prev?.isPinned === isPinned ? prev : { topPx, heightPx, isPinned }
27332
- );
27329
+ setBounds((prev) => prev?.topPx === topPx && prev?.isPinned === isPinned ? prev : { topPx, isPinned });
27333
27330
  }, [anchorRef]);
27334
27331
  (0, import_react127.useLayoutEffect)(() => {
27335
27332
  getPinTopPxRef.current = getPinTopPx;
@@ -27504,13 +27501,9 @@ function DocumentScrollRightPane({
27504
27501
  current: null
27505
27502
  };
27506
27503
  const paneBounds = useScrollPinnedViewportBounds(isFixedOverlay ? anchor : paneRef, paneLayoutActive && isFixedOverlay, stickyTableHeaderOffsetPx);
27507
- const paneStyle = mobile ? {
27508
- top: bannerHeightPx
27509
- } : paneBounds ? {
27510
- top: paneBounds.topPx,
27511
- height: paneBounds.heightPx,
27512
- maxHeight: paneBounds.heightPx
27513
- } : void 0;
27504
+ const paneStyle = {
27505
+ top: mobile ? bannerHeightPx : paneBounds?.topPx
27506
+ };
27514
27507
  const pane = /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(import_framer_motion3.AnimatePresence, { children: isRightPaneOpen && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
27515
27508
  import_framer_motion3.motion.div,
27516
27509
  {
@@ -27534,6 +27527,7 @@ function DocumentScrollRightPane({
27534
27527
  } : {
27535
27528
  position: "fixed",
27536
27529
  right: "r_0",
27530
+ bottom: "bot_0",
27537
27531
  overflowY: "oya",
27538
27532
  width: ["w_var", {
27539
27533
  "--width": (0, import_runtime129.maybeCssVar)(__maybeInc20(paneWidthCss))
@@ -27550,7 +27544,7 @@ function DocumentScrollRightPane({
27550
27544
  "--borderColor": "var(--b-surface-separator)"
27551
27545
  }],
27552
27546
  ...!!paneBounds?.isPinned ? {
27553
- transition: "tsn_top_200ms_cubic_bezier_0_4_0_0_2_1_height_200ms_cubic_bezier_0_4_0_0_2_1"
27547
+ transition: "transitionTop"
27554
27548
  } : {}
27555
27549
  }),
27556
27550
  initial: {