@ohhwells/bridge 0.1.76 → 0.1.77
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7423,7 +7423,9 @@ function applyPersistedOrder(entries) {
|
|
|
7423
7423
|
}
|
|
7424
7424
|
}
|
|
7425
7425
|
function setSectionRemoved(instanceId, currentPath, existingEntries, removed) {
|
|
7426
|
-
|
|
7426
|
+
const escapedId = CSS.escape(instanceId);
|
|
7427
|
+
if (!document.querySelector(`[data-ohw-instance="${escapedId}"]`) && !document.querySelector(`[data-ohw-section="${escapedId}"]:not([data-ohw-instance])`))
|
|
7428
|
+
return null;
|
|
7427
7429
|
const byId = new Map(existingEntries.map((e) => [e.instanceId, e]));
|
|
7428
7430
|
const allSections = Array.from(document.querySelectorAll("[data-ohw-section]")).filter(
|
|
7429
7431
|
(el) => !el.parentElement?.closest("[data-ohw-section]") && !isChromeSection(el)
|
|
@@ -20119,7 +20121,7 @@ function OhhwellsBridge() {
|
|
|
20119
20121
|
postToParent2({
|
|
20120
20122
|
type: "ow:ready",
|
|
20121
20123
|
version: "1",
|
|
20122
|
-
bridgeVersion: "0.1.
|
|
20124
|
+
bridgeVersion: "0.1.76",
|
|
20123
20125
|
path: pathname,
|
|
20124
20126
|
nodes: collectEditableNodes(editContentRef.current),
|
|
20125
20127
|
sections
|