@video-editor/protocol 0.0.1-beta.16 → 0.0.1-beta.17
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 +17 -2
- package/dist/index.js +7468 -8147
- package/package.json +9 -4
package/dist/index.d.ts
CHANGED
|
@@ -392,6 +392,7 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol, opt
|
|
|
392
392
|
}[];
|
|
393
393
|
}>;
|
|
394
394
|
segmentMap: ComputedRef<Record<string, DeepReadonly<SegmentUnion | undefined>>>;
|
|
395
|
+
protocol: ComputedRef<IVideoProtocol>;
|
|
395
396
|
getSegment: <T extends ITrackType>(id: SegmentUnion["id"], type?: T) => DeepReadonly<TrackTypeMapSegment[T]> | undefined;
|
|
396
397
|
addSegment: (segment: PartialByKeys<TrackTypeMapSegment[ITrackType], "id">) => {
|
|
397
398
|
id: string;
|
|
@@ -441,8 +442,22 @@ export declare function createVideoProtocolManager(protocol: IVideoProtocol, opt
|
|
|
441
442
|
removeTransition: (segmentId: string) => boolean;
|
|
442
443
|
updateTransition: (segmentId: string, updater: (transition: ITransition) => void) => boolean;
|
|
443
444
|
replaceTrackId: (oldTrackId: string, newTrackId: string) => boolean;
|
|
444
|
-
undo: () =>
|
|
445
|
-
|
|
445
|
+
undo: () => {
|
|
446
|
+
success: boolean;
|
|
447
|
+
affectedSegments: SegmentUnion[];
|
|
448
|
+
affectedTracks: TrackUnion[];
|
|
449
|
+
createdTracks: TrackUnion[];
|
|
450
|
+
removedTrackIds: string[];
|
|
451
|
+
removedSegmentIds: string[];
|
|
452
|
+
};
|
|
453
|
+
redo: () => {
|
|
454
|
+
success: boolean;
|
|
455
|
+
affectedSegments: SegmentUnion[];
|
|
456
|
+
affectedTracks: TrackUnion[];
|
|
457
|
+
createdTracks: TrackUnion[];
|
|
458
|
+
removedTrackIds: string[];
|
|
459
|
+
removedSegmentIds: string[];
|
|
460
|
+
};
|
|
446
461
|
redoCount: ComputedRef<number>;
|
|
447
462
|
undoCount: ComputedRef<number>;
|
|
448
463
|
};
|