@shotstack/shotstack-studio 2.24.5 → 2.26.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 +16 -0
- package/dist/internal.es.js +4538 -4428
- package/dist/internal.umd.js +37 -37
- package/dist/shotstack-studio.es.js +6863 -6730
- package/dist/shotstack-studio.umd.js +144 -144
- package/package.json +1 -1
- package/readme.md +17 -0
package/dist/index.d.ts
CHANGED
|
@@ -633,6 +633,20 @@ declare type EditEventMap = {
|
|
|
633
633
|
|
|
634
634
|
declare type EventPayloadMap<TPayload = any> = Record<string, TPayload>;
|
|
635
635
|
|
|
636
|
+
declare interface ExportBlobOptions {
|
|
637
|
+
signal?: AbortSignal;
|
|
638
|
+
onProgress?: (fraction: number, stage: string) => void;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Export error with context
|
|
643
|
+
*/
|
|
644
|
+
export declare class ExportError extends Error {
|
|
645
|
+
readonly phase: string;
|
|
646
|
+
readonly context: Record<string, unknown>;
|
|
647
|
+
constructor(message: string, phase?: string, context?: Record<string, unknown>, cause?: Error);
|
|
648
|
+
}
|
|
649
|
+
|
|
636
650
|
declare type GenerationModelCatalogueResponse = operations["getModels"]["responses"][200]["content"]["application/json"];
|
|
637
651
|
|
|
638
652
|
declare type Listener<TPayload = any> = (payload: TPayload) => void;
|
|
@@ -966,7 +980,9 @@ export declare class VideoExporter {
|
|
|
966
980
|
private progressUI;
|
|
967
981
|
private exportCommand;
|
|
968
982
|
constructor(edit: Edit, canvas: Canvas);
|
|
983
|
+
exportBlob(options?: ExportBlobOptions): Promise<Blob>;
|
|
969
984
|
export(filename?: string, fps?: number): Promise<void>;
|
|
985
|
+
private encode;
|
|
970
986
|
private processFrames;
|
|
971
987
|
private handleKeyDown;
|
|
972
988
|
dispose(): void;
|