@shotstack/shotstack-studio 2.26.0 → 2.26.1

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
@@ -633,7 +633,7 @@ declare type EditEventMap = {
633
633
 
634
634
  declare type EventPayloadMap<TPayload = any> = Record<string, TPayload>;
635
635
 
636
- declare interface ExportBlobOptions {
636
+ export declare interface ExportBlobOptions {
637
637
  signal?: AbortSignal;
638
638
  onProgress?: (fraction: number, stage: string) => void;
639
639
  }
@@ -642,11 +642,23 @@ declare interface ExportBlobOptions {
642
642
  * Export error with context
643
643
  */
644
644
  export declare class ExportError extends Error {
645
- readonly phase: string;
645
+ readonly phase: ExportPhase | (string & {});
646
646
  readonly context: Record<string, unknown>;
647
- constructor(message: string, phase?: string, context?: Record<string, unknown>, cause?: Error);
647
+ readonly issues?: ExportIssue[] | undefined;
648
+ constructor(message: string, phase?: ExportPhase | (string & {}), context?: Record<string, unknown>, cause?: Error, issues?: ExportIssue[] | undefined);
648
649
  }
649
650
 
651
+ export declare interface ExportIssue {
652
+ code: ExportIssueCode;
653
+ message: string;
654
+ clipId?: string;
655
+ }
656
+
657
+ export declare type ExportIssueCode = "ai-pending" | "output-format" | "video-source" | "chroma-key" | "filter" | "html" | "effect" | "transition" | "font" | "luma" | "too-long" | "browser";
658
+
659
+ /** Where an export stopped; `unknown` when an `ExportError` is built without one. */
660
+ export declare type ExportPhase = "init" | "assets" | "unsupported" | "export" | "cancelled" | "unknown";
661
+
650
662
  declare type GenerationModelCatalogueResponse = operations["getModels"]["responses"][200]["content"]["application/json"];
651
663
 
652
664
  declare type Listener<TPayload = any> = (payload: TPayload) => void;
@@ -972,23 +984,19 @@ export declare const VERSION: string;
972
984
 
973
985
  export declare class VideoExporter {
974
986
  private readonly edit;
975
- private readonly canvas;
976
987
  private readonly app;
977
- private isExporting;
978
988
  private videoProcessor;
979
989
  private audioProcessor;
980
990
  private progressUI;
981
- private exportCommand;
982
991
  constructor(edit: Edit, canvas: Canvas);
983
992
  exportBlob(options?: ExportBlobOptions): Promise<Blob>;
984
993
  export(filename?: string, fps?: number): Promise<void>;
985
994
  private encode;
995
+ private checkExportable;
986
996
  private processFrames;
987
997
  private handleKeyDown;
988
998
  dispose(): void;
989
999
  private prepareConfig;
990
- private saveEditState;
991
- private restoreEditState;
992
1000
  }
993
1001
 
994
1002
  /**