@ohhwells/bridge 0.1.38-next.61 → 0.1.38-next.63

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
@@ -573,7 +573,7 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
573
573
  }
574
574
  )
575
575
  ] }),
576
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "sm:hidden flex flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
576
+ cls.showAvailability !== false && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "sm:hidden flex flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
577
577
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
578
578
  available,
579
579
  "/",
@@ -585,9 +585,10 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
585
585
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0 sm:contents", children: [
586
586
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
587
587
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block truncate", children: cls.name }),
588
- cls.hostName && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-base font-normal text-(--color-dark,#200C02) opacity-80 block truncate", children: cls.hostName })
588
+ cls.hostName && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-base font-normal text-(--color-dark,#200C02) opacity-80 block truncate", children: cls.hostName }),
589
+ cls.description && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-sm font-normal text-(--color-dark,#200C02) opacity-70 block truncate", children: cls.description })
589
590
  ] }),
590
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "hidden sm:flex w-14 shrink-0 flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
591
+ cls.showAvailability !== false && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "hidden sm:flex w-14 shrink-0 flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
591
592
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
592
593
  available,
593
594
  "/",
@@ -4949,6 +4950,7 @@ function parseSectionsFromRoot(root) {
4949
4950
  for (const el of root.querySelectorAll("[data-ohw-section]")) {
4950
4951
  const id = el.getAttribute("data-ohw-section") ?? "";
4951
4952
  if (!id || seen.has(id)) continue;
4953
+ if (el.parentElement?.closest("[data-ohw-section]")) continue;
4952
4954
  seen.add(id);
4953
4955
  const label = el.getAttribute("data-ohw-section-label") ?? titleCaseSectionId(id);
4954
4956
  sections.push({ id, label });
@@ -5783,6 +5785,9 @@ function SectionPickerOverlay({
5783
5785
  document.querySelectorAll("[data-ohw-hovered]").forEach((el) => {
5784
5786
  el.removeAttribute("data-ohw-hovered");
5785
5787
  });
5788
+ document.querySelectorAll("[data-ohw-state-hovered]").forEach((el) => {
5789
+ el.removeAttribute("data-ohw-state-hovered");
5790
+ });
5786
5791
  return () => {
5787
5792
  document.documentElement.removeAttribute("data-ohw-section-picking");
5788
5793
  };
@@ -8490,6 +8495,7 @@ function OhhwellsBridge() {
8490
8495
  });
8491
8496
  };
8492
8497
  const handleMouseOver = (e) => {
8498
+ if (document.documentElement.hasAttribute("data-ohw-section-picking")) return;
8493
8499
  const target = e.target;
8494
8500
  if (toolbarVariantRef.current !== "select-frame") {
8495
8501
  const navContainer = target.closest("[data-ohw-nav-container]");
@@ -8869,6 +8875,14 @@ function OhhwellsBridge() {
8869
8875
  }
8870
8876
  };
8871
8877
  const probeHoverCardsAt = (clientX, clientY, fromParentViewport = false) => {
8878
+ if (linkPopoverOpenRef.current || document.documentElement.hasAttribute("data-ohw-section-picking")) {
8879
+ if (activeStateElRef.current) {
8880
+ activeStateElRef.current.removeAttribute("data-ohw-state-hovered");
8881
+ activeStateElRef.current = null;
8882
+ setToggleState(null);
8883
+ }
8884
+ return;
8885
+ }
8872
8886
  const { x, y } = toProbeCoords(clientX, clientY, fromParentViewport);
8873
8887
  const toggleEl = document.querySelector("[data-ohw-state-toggle]");
8874
8888
  if (toggleEl) {