@ohhwells/bridge 0.1.112 → 0.1.113

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
@@ -16518,6 +16518,7 @@ function isFooterAddItemDisabled(selected) {
16518
16518
  }
16519
16519
  function resolveFooterColumnSelectionTarget(target, clientX, clientY) {
16520
16520
  if (getNavigationItemAnchor(target)) return null;
16521
+ if (target.closest("[data-ohw-editable]")) return null;
16521
16522
  const column = getFooterColumn(target);
16522
16523
  if (!column) return null;
16523
16524
  if (isPointOverNavItem(column, clientX, clientY)) return null;
@@ -16659,6 +16660,12 @@ function collectNavigationItemSiblingHintRects(selected) {
16659
16660
  return [];
16660
16661
  }).filter((el) => isNavigationItem2(el) && el !== selected).map((el) => el.getBoundingClientRect());
16661
16662
  }
16663
+ if (selected.closest('footer, [data-ohw-section="footer"]')) {
16664
+ const group = findFooterItemGroup2(selected);
16665
+ if (group) {
16666
+ return Array.from(group.querySelectorAll("[data-ohw-href-key]")).filter((el) => isNavigationItem2(el) && el !== selected).map((el) => el.getBoundingClientRect());
16667
+ }
16668
+ }
16662
16669
  return listNavigationItems().filter((el) => el !== selected && !el.closest("[data-ohw-nav-children]")).map((el) => el.getBoundingClientRect());
16663
16670
  }
16664
16671
  function placeCaretAtPoint(el, x, y) {
@@ -20121,7 +20128,7 @@ function OhhwellsBridge() {
20121
20128
  return;
20122
20129
  }
20123
20130
  const footerColClick = target.closest("[data-ohw-footer-col]");
20124
- if (footerColClick) {
20131
+ if (footerColClick && !target.closest("[data-ohw-editable]")) {
20125
20132
  e.preventDefault();
20126
20133
  e.stopPropagation();
20127
20134
  selectFrameRef.current(footerColClick);
@@ -20280,7 +20287,7 @@ function OhhwellsBridge() {
20280
20287
  const navContainer = target.closest("[data-ohw-nav-container]");
20281
20288
  if (!navContainer) {
20282
20289
  const footerLinks = target.closest("[data-ohw-footer-links], .rb-footer-links") ?? null;
20283
- if (footerLinks && selected2 !== footerLinks && !getNavigationItemAnchor(target) && !target.closest("[data-ohw-footer-col], [data-ohw-footer-column]")) {
20290
+ if (footerLinks && selected2 !== footerLinks && !getNavigationItemAnchor(target) && !target.closest("[data-ohw-footer-col], [data-ohw-footer-column]") && !target.closest("[data-ohw-editable]")) {
20284
20291
  hoveredNavContainerRef.current = footerLinks;
20285
20292
  setHoveredNavContainerRect(footerLinks.getBoundingClientRect());
20286
20293
  hoveredItemElRef.current = null;
@@ -20318,7 +20325,7 @@ function OhhwellsBridge() {
20318
20325
  return;
20319
20326
  }
20320
20327
  const footerCol = target.closest("[data-ohw-footer-col]") ?? target.closest("[data-ohw-footer-column]");
20321
- if (footerCol) {
20328
+ if (footerCol && !target.closest("[data-ohw-editable]")) {
20322
20329
  hoveredNavContainerRef.current = null;
20323
20330
  setHoveredNavContainerRect(null);
20324
20331
  if (selectedElRef.current === footerCol) return;
@@ -22756,7 +22763,7 @@ function OhhwellsBridge() {
22756
22763
  postToParent2({
22757
22764
  type: "ow:ready",
22758
22765
  version: "1",
22759
- bridgeVersion: "0.1.111",
22766
+ bridgeVersion: "0.1.112",
22760
22767
  path: pathname,
22761
22768
  nodes: collectEditableNodes(editContentRef.current),
22762
22769
  sections