@ohhwells/bridge 0.1.86-next.257 → 0.1.87-next.261
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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14659,11 +14659,11 @@ function useSectionDrag({
|
|
|
14659
14659
|
editContentRef.current = { ...editContentRef.current, [SECTION_ORDER_KEY]: orderJson };
|
|
14660
14660
|
setAiSectionOrder(orderJson, window.location.pathname);
|
|
14661
14661
|
postToParentRef.current({ type: "ow:change", nodes: [{ key: SECTION_ORDER_KEY, text: orderJson }] });
|
|
14662
|
-
applyPersistedOrder(
|
|
14662
|
+
applyPersistedOrder(getPageSectionOrderEntries(orderJson, window.location.pathname));
|
|
14663
14663
|
clearSectionDragVisuals();
|
|
14664
14664
|
requestAnimationFrame(() => {
|
|
14665
14665
|
if (editContentRef.current[SECTION_ORDER_KEY] === orderJson) {
|
|
14666
|
-
applyPersistedOrder(
|
|
14666
|
+
applyPersistedOrder(getPageSectionOrderEntries(orderJson, window.location.pathname));
|
|
14667
14667
|
}
|
|
14668
14668
|
requestAnimationFrame(() => {
|
|
14669
14669
|
window.dispatchEvent(new Event("resize"));
|
|
@@ -20961,6 +20961,7 @@ function OhhwellsBridge() {
|
|
|
20961
20961
|
mergePageSectionOrder(editContentRef.current[SECTION_ORDER_KEY], window.location.pathname, entries)
|
|
20962
20962
|
);
|
|
20963
20963
|
editContentRef.current = { ...editContentRef.current, [SECTION_ORDER_KEY]: orderJson };
|
|
20964
|
+
applyPersistedOrder(getPageSectionOrderEntries(orderJson, window.location.pathname));
|
|
20964
20965
|
setAiSectionOrder(orderJson, window.location.pathname);
|
|
20965
20966
|
postToParentRef.current({ type: "ow:change", nodes: [{ key: SECTION_ORDER_KEY, text: orderJson }] });
|
|
20966
20967
|
window.dispatchEvent(new Event("resize"));
|
|
@@ -21042,6 +21043,7 @@ function OhhwellsBridge() {
|
|
|
21042
21043
|
...editContentRef.current,
|
|
21043
21044
|
...Object.fromEntries(nodes.map(({ key, text }) => [key, text]))
|
|
21044
21045
|
};
|
|
21046
|
+
applyPersistedOrder(getPageSectionOrderEntries(orderJson, window.location.pathname));
|
|
21045
21047
|
setAiSectionOrder(orderJson, window.location.pathname);
|
|
21046
21048
|
postToParentRef.current({ type: "ow:change", nodes });
|
|
21047
21049
|
window.dispatchEvent(new Event("resize"));
|
|
@@ -21964,7 +21966,7 @@ function OhhwellsBridge() {
|
|
|
21964
21966
|
postToParent2({
|
|
21965
21967
|
type: "ow:ready",
|
|
21966
21968
|
version: "1",
|
|
21967
|
-
bridgeVersion: "0.1.
|
|
21969
|
+
bridgeVersion: "0.1.87",
|
|
21968
21970
|
path: pathname,
|
|
21969
21971
|
nodes: collectEditableNodes(editContentRef.current),
|
|
21970
21972
|
sections
|