openvideo 0.2.14 → 0.2.16

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.
@@ -95,6 +95,13 @@ export declare class TimelineModel {
95
95
  trimSelected(trimFromSeconds: number): Promise<void>;
96
96
  updateSelected(updates: Partial<IClip>): Promise<void>;
97
97
  setTracks(tracks: StudioTrack[]): Promise<void>;
98
+ /**
99
+ * Reconciles the tracks list with the available clips.
100
+ * 1. Filters each track's clipIds to only include IDs present in this.clips.
101
+ * 2. Removes any tracks that are then empty.
102
+ * This is used as a safety net to ensure no orphaned empty tracks or dangling references remain.
103
+ */
104
+ reconcileTracks(): void;
98
105
  private ensureFontsForClips;
99
106
  recalculateMaxDuration(): Promise<void>;
100
107
  private setupPlaybackForClip;
package/dist/studio.d.ts CHANGED
@@ -148,6 +148,10 @@ export declare class Studio extends EventEmitter<StudioEvents> {
148
148
  private renderingSuspended;
149
149
  private historyPaused;
150
150
  private processingHistory;
151
+ /**
152
+ * Indicates if the studio is currently restoring state from history (undo/redo)
153
+ */
154
+ isRestoring: boolean;
151
155
  private historyGroupDepth;
152
156
  private clipCache;
153
157
  private _isUpdatingLayout;
@@ -1,4 +1,4 @@
1
- import { e as a, R as e, T as d, G as i, b as s, M as t, c as p, d as P, f as n, g as r, B as T, H as l, h as c, i as m, N as x, j as S, k as o } from "./index-xULbfbWy.js";
1
+ import { e as a, R as e, T as d, G as i, b as s, M as t, c as p, d as P, f as n, g as r, B as T, H as l, h as c, i as m, N as x, j as S, k as o } from "./index-T-Me9eJ5.js";
2
2
  a.add(e);
3
3
  a.add(d);
4
4
  a.add(i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openvideo",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "Video rendering and processing library",
5
5
  "type": "module",
6
6
  "publishConfig": {