@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 +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -511,7 +511,7 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
|
|
|
511
511
|
}
|
|
512
512
|
)
|
|
513
513
|
] }),
|
|
514
|
-
/* @__PURE__ */ jsx2("div", { className: "sm:hidden flex flex-col gap-px", children: isFull ? /* @__PURE__ */ jsx2("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
514
|
+
cls.showAvailability !== false && /* @__PURE__ */ jsx2("div", { className: "sm:hidden flex flex-col gap-px", children: isFull ? /* @__PURE__ */ jsx2("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
515
515
|
/* @__PURE__ */ jsxs2("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
|
|
516
516
|
available,
|
|
517
517
|
"/",
|
|
@@ -523,9 +523,10 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
|
|
|
523
523
|
/* @__PURE__ */ jsxs2("div", { className: "flex flex-1 flex-col gap-2 min-w-0 sm:contents", children: [
|
|
524
524
|
/* @__PURE__ */ jsxs2("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
|
|
525
525
|
/* @__PURE__ */ jsx2("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block truncate", children: cls.name }),
|
|
526
|
-
cls.hostName && /* @__PURE__ */ jsx2("span", { className: "font-body text-base font-normal text-(--color-dark,#200C02) opacity-80 block truncate", children: cls.hostName })
|
|
526
|
+
cls.hostName && /* @__PURE__ */ jsx2("span", { className: "font-body text-base font-normal text-(--color-dark,#200C02) opacity-80 block truncate", children: cls.hostName }),
|
|
527
|
+
cls.description && /* @__PURE__ */ jsx2("span", { className: "font-body text-sm font-normal text-(--color-dark,#200C02) opacity-70 block truncate", children: cls.description })
|
|
527
528
|
] }),
|
|
528
|
-
/* @__PURE__ */ jsx2("div", { className: "hidden sm:flex w-14 shrink-0 flex-col gap-px", children: isFull ? /* @__PURE__ */ jsx2("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
529
|
+
cls.showAvailability !== false && /* @__PURE__ */ jsx2("div", { className: "hidden sm:flex w-14 shrink-0 flex-col gap-px", children: isFull ? /* @__PURE__ */ jsx2("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
529
530
|
/* @__PURE__ */ jsxs2("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
|
|
530
531
|
available,
|
|
531
532
|
"/",
|
|
@@ -4887,6 +4888,7 @@ function parseSectionsFromRoot(root) {
|
|
|
4887
4888
|
for (const el of root.querySelectorAll("[data-ohw-section]")) {
|
|
4888
4889
|
const id = el.getAttribute("data-ohw-section") ?? "";
|
|
4889
4890
|
if (!id || seen.has(id)) continue;
|
|
4891
|
+
if (el.parentElement?.closest("[data-ohw-section]")) continue;
|
|
4890
4892
|
seen.add(id);
|
|
4891
4893
|
const label = el.getAttribute("data-ohw-section-label") ?? titleCaseSectionId(id);
|
|
4892
4894
|
sections.push({ id, label });
|
|
@@ -5721,6 +5723,9 @@ function SectionPickerOverlay({
|
|
|
5721
5723
|
document.querySelectorAll("[data-ohw-hovered]").forEach((el) => {
|
|
5722
5724
|
el.removeAttribute("data-ohw-hovered");
|
|
5723
5725
|
});
|
|
5726
|
+
document.querySelectorAll("[data-ohw-state-hovered]").forEach((el) => {
|
|
5727
|
+
el.removeAttribute("data-ohw-state-hovered");
|
|
5728
|
+
});
|
|
5724
5729
|
return () => {
|
|
5725
5730
|
document.documentElement.removeAttribute("data-ohw-section-picking");
|
|
5726
5731
|
};
|
|
@@ -8428,6 +8433,7 @@ function OhhwellsBridge() {
|
|
|
8428
8433
|
});
|
|
8429
8434
|
};
|
|
8430
8435
|
const handleMouseOver = (e) => {
|
|
8436
|
+
if (document.documentElement.hasAttribute("data-ohw-section-picking")) return;
|
|
8431
8437
|
const target = e.target;
|
|
8432
8438
|
if (toolbarVariantRef.current !== "select-frame") {
|
|
8433
8439
|
const navContainer = target.closest("[data-ohw-nav-container]");
|
|
@@ -8807,6 +8813,14 @@ function OhhwellsBridge() {
|
|
|
8807
8813
|
}
|
|
8808
8814
|
};
|
|
8809
8815
|
const probeHoverCardsAt = (clientX, clientY, fromParentViewport = false) => {
|
|
8816
|
+
if (linkPopoverOpenRef.current || document.documentElement.hasAttribute("data-ohw-section-picking")) {
|
|
8817
|
+
if (activeStateElRef.current) {
|
|
8818
|
+
activeStateElRef.current.removeAttribute("data-ohw-state-hovered");
|
|
8819
|
+
activeStateElRef.current = null;
|
|
8820
|
+
setToggleState(null);
|
|
8821
|
+
}
|
|
8822
|
+
return;
|
|
8823
|
+
}
|
|
8810
8824
|
const { x, y } = toProbeCoords(clientX, clientY, fromParentViewport);
|
|
8811
8825
|
const toggleEl = document.querySelector("[data-ohw-state-toggle]");
|
|
8812
8826
|
if (toggleEl) {
|