@accelerated-agency/visual-editor 0.2.4 → 0.2.5
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.js +17 -0
- package/dist/vite.cjs +716 -98
- package/dist/vite.js +716 -98
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2896,6 +2896,19 @@ function convertChainSetsToMutations(chainSets) {
|
|
|
2896
2896
|
case "remove":
|
|
2897
2897
|
mutations.push({ id, selector: cs.selector, action: "hide", value: "none", timestamp });
|
|
2898
2898
|
break;
|
|
2899
|
+
case "reorder":
|
|
2900
|
+
if (cs.selector && cs.targetSelector) {
|
|
2901
|
+
mutations.push({
|
|
2902
|
+
id,
|
|
2903
|
+
selector: cs.selector,
|
|
2904
|
+
action: "reorderElement",
|
|
2905
|
+
value: "",
|
|
2906
|
+
targetSelector: cs.targetSelector,
|
|
2907
|
+
insertPosition: cs.action === "before" ? "before" : "after",
|
|
2908
|
+
timestamp
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2911
|
+
break;
|
|
2899
2912
|
}
|
|
2900
2913
|
}
|
|
2901
2914
|
return mutations;
|
|
@@ -4852,6 +4865,10 @@ function PlatformVisualEditorV2({
|
|
|
4852
4865
|
setDirty(true);
|
|
4853
4866
|
}
|
|
4854
4867
|
break;
|
|
4868
|
+
case "editor-dirty":
|
|
4869
|
+
setDirty(!!payload?.dirty);
|
|
4870
|
+
if (!payload?.dirty) mutationSkipCountRef.current = 0;
|
|
4871
|
+
break;
|
|
4855
4872
|
case "save-experiment":
|
|
4856
4873
|
if (!onRequestSave) return;
|
|
4857
4874
|
try {
|