@ai-matrx/capture 0.3.0 → 0.3.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/react.js CHANGED
@@ -1998,7 +1998,10 @@ function CameraCaptureV3({
1998
1998
  }
1999
1999
  ] : []
2000
2000
  ];
2001
- const railActions = [...coreRail, ...slots.railActions ?? []];
2001
+ const railActions = [
2002
+ ...coreRail.map((a) => blocked ? { ...a, disabled: true } : a),
2003
+ ...slots.railActions ?? []
2004
+ ];
2002
2005
  return /* @__PURE__ */ jsxs12("div", { className: "absolute inset-0 select-none overflow-hidden bg-black", children: [
2003
2006
  /* @__PURE__ */ jsx14("div", { className: "absolute inset-0", children: preview }),
2004
2007
  /* @__PURE__ */ jsx14(GridOverlay, { visible: gridOn && !blocked }),
@@ -2052,12 +2055,14 @@ function CameraCaptureV3({
2052
2055
  {
2053
2056
  className: "pointer-events-none absolute inset-x-0 z-20 flex flex-col items-center gap-1.5 px-3",
2054
2057
  style: {
2055
- top: `calc(env(safe-area-inset-top, 0px) + ${controlsHidden ? 12 : 64}px)`
2058
+ // Clears the top row AND the topCenter line beneath it — chips
2059
+ // rendered at the label's own height read as a collision.
2060
+ top: `calc(env(safe-area-inset-top, 0px) + ${controlsHidden ? 12 : slots.topCenter ? 92 : 64}px)`
2056
2061
  },
2057
2062
  children: slots.statusChips
2058
2063
  }
2059
2064
  ) : null,
2060
- !controlsHidden && !blocked && /* @__PURE__ */ jsx14(
2065
+ !controlsHidden && /* @__PURE__ */ jsx14(
2061
2066
  "div",
2062
2067
  {
2063
2068
  className: "pointer-events-none absolute right-1 z-20 flex justify-end",