@ohhwells/bridge 0.1.61 → 0.1.62
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12758,7 +12758,7 @@ function isNavItemPointerTarget(el) {
|
|
|
12758
12758
|
function getNavigationItemAnchor(el) {
|
|
12759
12759
|
const anchor = el.matches("[data-ohw-href-key]") ? el : el.closest("[data-ohw-href-key]");
|
|
12760
12760
|
if (!anchor) return null;
|
|
12761
|
-
if (!anchor.querySelector('[data-ohw-editable="text"], [data-ohw-editable="plain"]') && !getSocialItem(anchor))
|
|
12761
|
+
if (!anchor.matches('[data-ohw-editable="text"], [data-ohw-editable="plain"]') && !anchor.querySelector('[data-ohw-editable="text"], [data-ohw-editable="plain"]') && !getSocialItem(anchor))
|
|
12762
12762
|
return null;
|
|
12763
12763
|
if (!isNavItemPointerTarget(anchor)) return null;
|
|
12764
12764
|
return anchor;
|
|
@@ -17287,7 +17287,7 @@ function OhhwellsBridge() {
|
|
|
17287
17287
|
postToParent2({
|
|
17288
17288
|
type: "ow:ready",
|
|
17289
17289
|
version: "1",
|
|
17290
|
-
bridgeVersion: "0.1.
|
|
17290
|
+
bridgeVersion: "0.1.61",
|
|
17291
17291
|
path: pathname,
|
|
17292
17292
|
nodes: collectEditableNodes(editContentRef.current),
|
|
17293
17293
|
sections
|