@ohhwells/bridge 0.1.55-next.160 → 0.1.55-next.161

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
@@ -7160,7 +7160,10 @@ function AiSectionOverlay({
7160
7160
  border: `2px solid ${PRIMARY2}`,
7161
7161
  borderRadius: edgeAwareRadius(reviewRect),
7162
7162
  zIndex: 2147483200,
7163
- // The veil itself: swallows clicks so the section stays locked until decided.
7163
+ // The veil itself: swallows clicks so the section stays locked until decided. This
7164
+ // stopPropagation only guards the bubble phase; the bridge's capture-phase click
7165
+ // handlers additionally bail on `[data-ohw-ai-review]`, without which a click on
7166
+ // Accept/Discard resolves to the media beneath and opens the file picker.
7164
7167
  background: "rgba(8, 133, 254, 0.04)",
7165
7168
  pointerEvents: "auto",
7166
7169
  cursor: "default"
@@ -15923,6 +15926,7 @@ function OhhwellsBridge() {
15923
15926
  return;
15924
15927
  }
15925
15928
  const target = e.target;
15929
+ if (target.closest("[data-ohw-ai-review]")) return;
15926
15930
  if (target.closest("[data-ohw-toolbar]")) return;
15927
15931
  if (target.closest("[data-ohw-state-toggle]")) return;
15928
15932
  if (target.closest("[data-ohw-max-badge]")) return;
@@ -16154,6 +16158,7 @@ function OhhwellsBridge() {
16154
16158
  };
16155
16159
  const handleDblClick = (e) => {
16156
16160
  const target = e.target;
16161
+ if (target.closest("[data-ohw-ai-review]")) return;
16157
16162
  if (target.closest("[data-ohw-toolbar]")) return;
16158
16163
  if (target.closest("[data-ohw-state-toggle]")) return;
16159
16164
  if (target.closest("[data-ohw-max-badge]")) return;