@ohhwells/bridge 0.1.60-next.171 → 0.1.61-next.172

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
@@ -7187,6 +7187,7 @@ function AiSectionOverlay({
7187
7187
  }) {
7188
7188
  const [selectedId, setSelectedId] = (0, import_react8.useState)(null);
7189
7189
  const [reviewId, setReviewId] = (0, import_react8.useState)(null);
7190
+ const [reviewButtonsHidden, setReviewButtonsHidden] = (0, import_react8.useState)(false);
7190
7191
  const reviewIdRef = (0, import_react8.useRef)(null);
7191
7192
  reviewIdRef.current = reviewId;
7192
7193
  const selectedIdRef = (0, import_react8.useRef)(null);
@@ -7245,6 +7246,7 @@ function AiSectionOverlay({
7245
7246
  }
7246
7247
  const found = readRect(sectionId) != null;
7247
7248
  setReviewId(found ? sectionId : null);
7249
+ setReviewButtonsHidden(e.data.hideButtons === true);
7248
7250
  postToParent2({ type: "ow:ai-review-started", sectionId, found });
7249
7251
  if (found) {
7250
7252
  document.querySelector(`[data-ohw-instance="${CSS.escape(sectionId)}"]`)?.scrollIntoView({ behavior: "smooth", block: "nearest" });
@@ -7380,7 +7382,7 @@ function AiSectionOverlay({
7380
7382
  cursor: "default"
7381
7383
  },
7382
7384
  onClick: (e) => e.stopPropagation(),
7383
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
7385
+ children: !reviewButtonsHidden && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
7384
7386
  "div",
7385
7387
  {
7386
7388
  style: {
@@ -18534,7 +18536,7 @@ function OhhwellsBridge() {
18534
18536
  postToParent2({
18535
18537
  type: "ow:ready",
18536
18538
  version: "1",
18537
- bridgeVersion: "0.1.60",
18539
+ bridgeVersion: "0.1.61",
18538
18540
  path: pathname,
18539
18541
  nodes: collectEditableNodes(editContentRef.current),
18540
18542
  sections