@shotstack/shotstack-studio 2.11.6 → 2.12.0

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.d.ts CHANGED
@@ -137,6 +137,8 @@ export declare class Edit {
137
137
  playbackTime: number;
138
138
  totalDuration: number;
139
139
  isPlaying: boolean;
140
+ private playWallAnchorMs;
141
+ private playTimeAnchorSeconds;
140
142
  private get clips();
141
143
  private internalEvents;
142
144
  events: ReadonlyEventEmitter<EditEventMap>;
@@ -254,6 +256,10 @@ export declare class Edit {
254
256
  deleteTrack(trackIdx: number): void;
255
257
  undo(): Promise<void>;
256
258
  redo(): Promise<void>;
259
+ /** True when there is a command to undo (the history pointer is not before the first command). */
260
+ get canUndo(): boolean;
261
+ /** True when there is a command ahead to redo (the history pointer is not at the latest command). */
262
+ get canRedo(): boolean;
257
263
  /**
258
264
  * Add a command to history without executing it.
259
265
  */
@@ -26,6 +26,8 @@ export declare class Edit {
26
26
  playbackTime: number;
27
27
  totalDuration: number;
28
28
  isPlaying: boolean;
29
+ private playWallAnchorMs;
30
+ private playTimeAnchorSeconds;
29
31
  private get clips();
30
32
  private internalEvents;
31
33
  events: ReadonlyEventEmitter<EditEventMap>;
@@ -143,6 +145,10 @@ export declare class Edit {
143
145
  deleteTrack(trackIdx: number): void;
144
146
  undo(): Promise<void>;
145
147
  redo(): Promise<void>;
148
+ /** True when there is a command to undo (the history pointer is not before the first command). */
149
+ get canUndo(): boolean;
150
+ /** True when there is a command ahead to redo (the history pointer is not at the latest command). */
151
+ get canRedo(): boolean;
146
152
  /**
147
153
  * Add a command to history without executing it.
148
154
  */