@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 +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16451,6 +16451,7 @@ function isFooterAddItemDisabled(selected) {
|
|
|
16451
16451
|
}
|
|
16452
16452
|
function resolveFooterColumnSelectionTarget(target, clientX, clientY) {
|
|
16453
16453
|
if (getNavigationItemAnchor(target)) return null;
|
|
16454
|
+
if (target.closest("[data-ohw-editable]")) return null;
|
|
16454
16455
|
const column = getFooterColumn(target);
|
|
16455
16456
|
if (!column) return null;
|
|
16456
16457
|
if (isPointOverNavItem(column, clientX, clientY)) return null;
|
|
@@ -16592,6 +16593,12 @@ function collectNavigationItemSiblingHintRects(selected) {
|
|
|
16592
16593
|
return [];
|
|
16593
16594
|
}).filter((el) => isNavigationItem2(el) && el !== selected).map((el) => el.getBoundingClientRect());
|
|
16594
16595
|
}
|
|
16596
|
+
if (selected.closest('footer, [data-ohw-section="footer"]')) {
|
|
16597
|
+
const group = findFooterItemGroup2(selected);
|
|
16598
|
+
if (group) {
|
|
16599
|
+
return Array.from(group.querySelectorAll("[data-ohw-href-key]")).filter((el) => isNavigationItem2(el) && el !== selected).map((el) => el.getBoundingClientRect());
|
|
16600
|
+
}
|
|
16601
|
+
}
|
|
16595
16602
|
return listNavigationItems().filter((el) => el !== selected && !el.closest("[data-ohw-nav-children]")).map((el) => el.getBoundingClientRect());
|
|
16596
16603
|
}
|
|
16597
16604
|
function placeCaretAtPoint(el, x, y) {
|
|
@@ -20054,7 +20061,7 @@ function OhhwellsBridge() {
|
|
|
20054
20061
|
return;
|
|
20055
20062
|
}
|
|
20056
20063
|
const footerColClick = target.closest("[data-ohw-footer-col]");
|
|
20057
|
-
if (footerColClick) {
|
|
20064
|
+
if (footerColClick && !target.closest("[data-ohw-editable]")) {
|
|
20058
20065
|
e.preventDefault();
|
|
20059
20066
|
e.stopPropagation();
|
|
20060
20067
|
selectFrameRef.current(footerColClick);
|
|
@@ -20213,7 +20220,7 @@ function OhhwellsBridge() {
|
|
|
20213
20220
|
const navContainer = target.closest("[data-ohw-nav-container]");
|
|
20214
20221
|
if (!navContainer) {
|
|
20215
20222
|
const footerLinks = target.closest("[data-ohw-footer-links], .rb-footer-links") ?? null;
|
|
20216
|
-
if (footerLinks && selected2 !== footerLinks && !getNavigationItemAnchor(target) && !target.closest("[data-ohw-footer-col], [data-ohw-footer-column]")) {
|
|
20223
|
+
if (footerLinks && selected2 !== footerLinks && !getNavigationItemAnchor(target) && !target.closest("[data-ohw-footer-col], [data-ohw-footer-column]") && !target.closest("[data-ohw-editable]")) {
|
|
20217
20224
|
hoveredNavContainerRef.current = footerLinks;
|
|
20218
20225
|
setHoveredNavContainerRect(footerLinks.getBoundingClientRect());
|
|
20219
20226
|
hoveredItemElRef.current = null;
|
|
@@ -20251,7 +20258,7 @@ function OhhwellsBridge() {
|
|
|
20251
20258
|
return;
|
|
20252
20259
|
}
|
|
20253
20260
|
const footerCol = target.closest("[data-ohw-footer-col]") ?? target.closest("[data-ohw-footer-column]");
|
|
20254
|
-
if (footerCol) {
|
|
20261
|
+
if (footerCol && !target.closest("[data-ohw-editable]")) {
|
|
20255
20262
|
hoveredNavContainerRef.current = null;
|
|
20256
20263
|
setHoveredNavContainerRect(null);
|
|
20257
20264
|
if (selectedElRef.current === footerCol) return;
|
|
@@ -22689,7 +22696,7 @@ function OhhwellsBridge() {
|
|
|
22689
22696
|
postToParent2({
|
|
22690
22697
|
type: "ow:ready",
|
|
22691
22698
|
version: "1",
|
|
22692
|
-
bridgeVersion: "0.1.
|
|
22699
|
+
bridgeVersion: "0.1.112",
|
|
22693
22700
|
path: pathname,
|
|
22694
22701
|
nodes: collectEditableNodes(editContentRef.current),
|
|
22695
22702
|
sections
|