@orion-studios/payload-studio 0.6.0-beta.139 → 0.6.0-beta.140

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.
@@ -2880,7 +2880,10 @@ function GrapesPageEditor({
2880
2880
  const customEntry = action === "undo" ? customUndoStackRef.current.pop() : customRedoStackRef.current.pop();
2881
2881
  if (customEntry) {
2882
2882
  historyRestoreActiveRef.current = true;
2883
- restoreCustomHistoryEntry(customEntry, action === "undo" ? "before" : "after");
2883
+ withoutUndoTracking2(() => {
2884
+ restoreCustomHistoryEntry(customEntry, action === "undo" ? "before" : "after");
2885
+ });
2886
+ clearNativeUndoHistory();
2884
2887
  if (action === "undo") {
2885
2888
  if (customEntry.after && !isComponentAttached(customEntry.after.component)) {
2886
2889
  const removedComponent = customEntry.after.component;
@@ -2756,7 +2756,10 @@ function GrapesPageEditor({
2756
2756
  const customEntry = action === "undo" ? customUndoStackRef.current.pop() : customRedoStackRef.current.pop();
2757
2757
  if (customEntry) {
2758
2758
  historyRestoreActiveRef.current = true;
2759
- restoreCustomHistoryEntry(customEntry, action === "undo" ? "before" : "after");
2759
+ withoutUndoTracking2(() => {
2760
+ restoreCustomHistoryEntry(customEntry, action === "undo" ? "before" : "after");
2761
+ });
2762
+ clearNativeUndoHistory();
2760
2763
  if (action === "undo") {
2761
2764
  if (customEntry.after && !isComponentAttached(customEntry.after.component)) {
2762
2765
  const removedComponent = customEntry.after.component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.139",
3
+ "version": "0.6.0-beta.140",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",