@ohhwells/bridge 0.1.112-next.289 → 0.1.112-next.291

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
@@ -16700,6 +16700,7 @@ function isFooterAddItemDisabled(selected) {
16700
16700
  }
16701
16701
  function resolveFooterColumnSelectionTarget(target, clientX, clientY) {
16702
16702
  if (getNavigationItemAnchor(target)) return null;
16703
+ if (target.closest("[data-ohw-editable]")) return null;
16703
16704
  const column = getFooterColumn(target);
16704
16705
  if (!column) return null;
16705
16706
  if (isPointOverNavItem(column, clientX, clientY)) return null;
@@ -16841,6 +16842,12 @@ function collectNavigationItemSiblingHintRects(selected) {
16841
16842
  return [];
16842
16843
  }).filter((el) => isNavigationItem2(el) && el !== selected).map((el) => el.getBoundingClientRect());
16843
16844
  }
16845
+ if (selected.closest('footer, [data-ohw-section="footer"]')) {
16846
+ const group = findFooterItemGroup2(selected);
16847
+ if (group) {
16848
+ return Array.from(group.querySelectorAll("[data-ohw-href-key]")).filter((el) => isNavigationItem2(el) && el !== selected).map((el) => el.getBoundingClientRect());
16849
+ }
16850
+ }
16844
16851
  return listNavigationItems().filter((el) => el !== selected && !el.closest("[data-ohw-nav-children]")).map((el) => el.getBoundingClientRect());
16845
16852
  }
16846
16853
  function placeCaretAtPoint(el, x, y) {
@@ -20315,7 +20322,7 @@ function OhhwellsBridge() {
20315
20322
  return;
20316
20323
  }
20317
20324
  const footerColClick = target.closest("[data-ohw-footer-col]");
20318
- if (footerColClick) {
20325
+ if (footerColClick && !target.closest("[data-ohw-editable]")) {
20319
20326
  e.preventDefault();
20320
20327
  e.stopPropagation();
20321
20328
  selectFrameRef.current(footerColClick);
@@ -20477,7 +20484,7 @@ function OhhwellsBridge() {
20477
20484
  const navContainer = target.closest("[data-ohw-nav-container]");
20478
20485
  if (!navContainer) {
20479
20486
  const footerLinks = target.closest("[data-ohw-footer-links], .rb-footer-links") ?? null;
20480
- if (footerLinks && selected2 !== footerLinks && !getNavigationItemAnchor(target) && !target.closest("[data-ohw-footer-col], [data-ohw-footer-column]")) {
20487
+ if (footerLinks && selected2 !== footerLinks && !getNavigationItemAnchor(target) && !target.closest("[data-ohw-footer-col], [data-ohw-footer-column]") && !target.closest("[data-ohw-editable]")) {
20481
20488
  hoveredNavContainerRef.current = footerLinks;
20482
20489
  setHoveredNavContainerRect(footerLinks.getBoundingClientRect());
20483
20490
  hoveredItemElRef.current = null;
@@ -20515,7 +20522,7 @@ function OhhwellsBridge() {
20515
20522
  return;
20516
20523
  }
20517
20524
  const footerCol = target.closest("[data-ohw-footer-col]") ?? target.closest("[data-ohw-footer-column]");
20518
- if (footerCol) {
20525
+ if (footerCol && !target.closest("[data-ohw-editable]")) {
20519
20526
  hoveredNavContainerRef.current = null;
20520
20527
  setHoveredNavContainerRect(null);
20521
20528
  if (selectedElRef.current === footerCol) return;