@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.cjs
CHANGED
|
@@ -7496,7 +7496,9 @@ function applyPersistedOrder(entries) {
|
|
|
7496
7496
|
}
|
|
7497
7497
|
}
|
|
7498
7498
|
function setSectionRemoved(instanceId, currentPath, existingEntries, removed) {
|
|
7499
|
-
|
|
7499
|
+
const escapedId = CSS.escape(instanceId);
|
|
7500
|
+
if (!document.querySelector(`[data-ohw-instance="${escapedId}"]`) && !document.querySelector(`[data-ohw-section="${escapedId}"]:not([data-ohw-instance])`))
|
|
7501
|
+
return null;
|
|
7500
7502
|
const byId = new Map(existingEntries.map((e) => [e.instanceId, e]));
|
|
7501
7503
|
const allSections = Array.from(document.querySelectorAll("[data-ohw-section]")).filter(
|
|
7502
7504
|
(el) => !el.parentElement?.closest("[data-ohw-section]") && !isChromeSection(el)
|
|
@@ -20186,7 +20188,7 @@ function OhhwellsBridge() {
|
|
|
20186
20188
|
postToParent2({
|
|
20187
20189
|
type: "ow:ready",
|
|
20188
20190
|
version: "1",
|
|
20189
|
-
bridgeVersion: "0.1.
|
|
20191
|
+
bridgeVersion: "0.1.76",
|
|
20190
20192
|
path: pathname,
|
|
20191
20193
|
nodes: collectEditableNodes(editContentRef.current),
|
|
20192
20194
|
sections
|