@homebound/beam 4.49.0 → 4.50.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.d.cts CHANGED
@@ -6242,6 +6242,8 @@ type GridCellContent = {
6242
6242
  tooltip?: ReactNode;
6243
6243
  /** Set by `fieldCell`. Flexible body rows use 4px vertical padding. */
6244
6244
  field?: true;
6245
+ /** Styles the cell's text with the AI treatment (`Tokens.AiFieldFg`, semibold), e.g. for text cells in a `GridDataRow.aiMode` row. */
6246
+ aiMode?: boolean;
6245
6247
  };
6246
6248
  /** Marks a cell as hosting a field. Flexible rows use 4px vertical padding so the field lines up with text cells. */
6247
6249
  declare function fieldCell(cell: ReactNode | Omit<GridCellContent, "field">): GridCellContent;
package/dist/index.d.ts CHANGED
@@ -6242,6 +6242,8 @@ type GridCellContent = {
6242
6242
  tooltip?: ReactNode;
6243
6243
  /** Set by `fieldCell`. Flexible body rows use 4px vertical padding. */
6244
6244
  field?: true;
6245
+ /** Styles the cell's text with the AI treatment (`Tokens.AiFieldFg`, semibold), e.g. for text cells in a `GridDataRow.aiMode` row. */
6246
+ aiMode?: boolean;
6245
6247
  };
6246
6248
  /** Marks a cell as hosting a field. Flexible rows use 4px vertical padding so the field lines up with text cells. */
6247
6249
  declare function fieldCell(cell: ReactNode | Omit<GridCellContent, "field">): GridCellContent;
package/dist/index.js CHANGED
@@ -10878,6 +10878,13 @@ function RowImpl(props) {
10878
10878
  ...isGridCellContent(maybeContent) && maybeContent.typeScale ? {
10879
10879
  ...__typography2[maybeContent.typeScale] ?? {}
10880
10880
  } : {},
10881
+ // AI text treatment, before the cell's `css` so callers can still override it
10882
+ ...isGridCellContent(maybeContent) && maybeContent.aiMode && {
10883
+ fontWeight: "fw6",
10884
+ color: ["color_var", {
10885
+ "--color": "var(--b-ai-field-fg)"
10886
+ }]
10887
+ },
10881
10888
  ...isBodyRow && (column2.isField || isGridCellContent(maybeContent) && maybeContent.field) && style.fieldCellCss,
10882
10889
  // And any cell specific css
10883
10890
  ...isGridCellContent(maybeContent) && maybeContent.css ? maybeContent.css : {},
@@ -13841,7 +13848,7 @@ function CardBody(props) {
13841
13848
  ] })
13842
13849
  ] })
13843
13850
  ] }),
13844
- hasDetails && /* @__PURE__ */ jsxs30("div", { className: "df fdc g_2 mta", children: [
13851
+ hasDetails && /* @__PURE__ */ jsxs30("div", { className: "df fdc g_2", children: [
13845
13852
  data.length > 0 && /* @__PURE__ */ jsxs30("dl", { className: "df g_2 fw4 fz_14px lh_20px", children: [
13846
13853
  /* @__PURE__ */ jsx50("div", { className: "df fdc fg1 fb2 mw0", children: col1.map((d) => /* @__PURE__ */ jsxs30("div", { className: "df g_4px", ...tid[defaultTestId(d.label)], children: [
13847
13854
  /* @__PURE__ */ jsxs30("dt", { className: "fs0", children: [
@@ -27531,11 +27538,16 @@ function useScrollPinnedViewportBounds(anchorRef, enabled, getPinTopPx) {
27531
27538
  syncBounds();
27532
27539
  window.addEventListener("scroll", syncBounds, { passive: true });
27533
27540
  window.addEventListener("resize", syncBounds);
27541
+ const styleObserver = new MutationObserver(syncBounds);
27542
+ for (let node = anchorRef.current; node; node = node.parentElement) {
27543
+ styleObserver.observe(node, { attributes: true, attributeFilter: ["style"] });
27544
+ }
27534
27545
  return () => {
27535
27546
  window.removeEventListener("scroll", syncBounds);
27536
27547
  window.removeEventListener("resize", syncBounds);
27548
+ styleObserver.disconnect();
27537
27549
  };
27538
- }, [enabled, syncBounds]);
27550
+ }, [enabled, syncBounds, anchorRef]);
27539
27551
  return bounds;
27540
27552
  }
27541
27553
 
@@ -27769,6 +27781,8 @@ function DocumentScrollRightPane({
27769
27781
  }],
27770
27782
  borderLeftStyle: "bls_solid",
27771
27783
  borderLeftWidth: "blw_1px",
27784
+ borderTopStyle: "bts_solid",
27785
+ borderTopWidth: "btw_1px",
27772
27786
  borderColor: ["bc_var", {
27773
27787
  "--borderColor": "var(--b-surface-separator)"
27774
27788
  }],