@ohhwells/bridge 0.1.123-next.343 → 0.1.124-next.344

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
@@ -20562,11 +20562,6 @@ function applyLinkByKey(key, val) {
20562
20562
  hrefAnchors.forEach((el) => applyLinkHref(el, val));
20563
20563
  }
20564
20564
  }
20565
- function isInsideLinkEditor(target) {
20566
- return Boolean(
20567
- target.closest("[data-ohw-link-popover-root]") || target.closest("[data-ohw-link-modal-root]") || target.closest("[data-ohw-link-page-dropdown]") || target.closest("[data-ohw-section-picker]") || target.closest("[data-ohw-navbar-container-chrome]") || target.closest("[data-ohw-navbar-add-button]") || target.closest("[data-ohw-footer-container-chrome]") || target.closest("[data-ohw-footer-add-button]") || target.closest("[data-ohw-more-menu]") || target.closest('[data-slot="dropdown-menu-content"]') || target.closest('[data-slot="popover-content"]') || target.closest('[data-slot="dialog-content"]') || target.closest('[data-slot="dialog-overlay"]')
20568
- );
20569
- }
20570
20565
  function isInsideFloatingPanel(target) {
20571
20566
  return Boolean(target.closest("[data-ohw-floating-panel]"));
20572
20567
  }
@@ -20574,6 +20569,11 @@ function isPointOverFloatingPanel(clientX, clientY) {
20574
20569
  const el = document.elementFromPoint(clientX, clientY);
20575
20570
  return Boolean(el instanceof Element && el.closest("[data-ohw-floating-panel]"));
20576
20571
  }
20572
+ function isInsideLinkEditor(target) {
20573
+ return Boolean(
20574
+ target.closest("[data-ohw-link-popover-root]") || target.closest("[data-ohw-link-modal-root]") || target.closest("[data-ohw-link-page-dropdown]") || target.closest("[data-ohw-section-picker]") || target.closest("[data-ohw-navbar-container-chrome]") || target.closest("[data-ohw-navbar-add-button]") || target.closest("[data-ohw-footer-container-chrome]") || target.closest("[data-ohw-footer-add-button]") || target.closest("[data-ohw-more-menu]") || target.closest('[data-slot="dropdown-menu-content"]') || target.closest('[data-slot="popover-content"]') || target.closest('[data-slot="dialog-content"]') || target.closest('[data-slot="dialog-overlay"]')
20575
+ );
20576
+ }
20577
20577
  function getHrefKeyFromElement(el) {
20578
20578
  if (!el) return null;
20579
20579
  const anchor = el.closest("[data-ohw-href-key]");
@@ -21654,6 +21654,7 @@ function OhhwellsBridge() {
21654
21654
  if (!subdomainFromQuery || typeof window === "undefined") return;
21655
21655
  const url = new URL(window.location.href);
21656
21656
  if (!url.searchParams.has("subdomain")) return;
21657
+ if (!resolveSubdomain(null)) return;
21657
21658
  url.searchParams.delete("subdomain");
21658
21659
  window.history.replaceState(null, "", url.pathname + url.search + url.hash);
21659
21660
  }, [subdomainFromQuery]);
@@ -25256,7 +25257,7 @@ function OhhwellsBridge() {
25256
25257
  };
25257
25258
  const probeImageAt = (clientX, clientY, isDragOver = false, fromParentViewport = false) => {
25258
25259
  syncSelectedMediaPointerRelease(true);
25259
- if (linkPopoverOpenRef.current || floatingPanelOpenRef.current && isPointOverFloatingPanel(clientX, clientY)) {
25260
+ if (linkPopoverOpenRef.current) {
25260
25261
  if (hoveredImageRef.current) {
25261
25262
  hoveredImageRef.current = null;
25262
25263
  hoveredImageHasTextOverlapRef.current = false;
@@ -27562,7 +27563,7 @@ function OhhwellsBridge() {
27562
27563
  postToParent2({
27563
27564
  type: "ow:ready",
27564
27565
  version: "1",
27565
- bridgeVersion: "0.1.123",
27566
+ bridgeVersion: "0.1.124",
27566
27567
  path: pathname,
27567
27568
  nodes: collectEditableNodes(editContentRef.current),
27568
27569
  sections