@shotstack/shotstack-studio 2.19.3 → 2.19.4

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.
@@ -46188,12 +46188,16 @@ class Za {
46188
46188
  console.warn(`commitClipUpdate: clip ${e} not found in document`);
46189
46189
  return;
46190
46190
  }
46191
- Ru.parse(n);
46192
- const a = new ku(r, structuredClone(n), {
46191
+ const a = Ru.safeParse(n);
46192
+ if (!a.success) {
46193
+ console.warn(`commitClipUpdate: skipping invalid clip ${e}`, a.error);
46194
+ return;
46195
+ }
46196
+ const s = new ku(r, structuredClone(n), {
46193
46197
  trackIndex: i.trackIndex,
46194
46198
  clipIndex: i.clipIndex
46195
46199
  });
46196
- this.addCommandToHistory(a);
46200
+ this.addCommandToHistory(s);
46197
46201
  }
46198
46202
  /**
46199
46203
  * Manage command history: dispose redo stack, add command, prune old entries.