@shotstack/shotstack-studio 2.0.0-beta.1 → 2.0.0-beta.2
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 -0
- package/dist/schema/index.d.ts +17 -0
- package/dist/shotstack-studio.es.js +3132 -3036
- package/dist/shotstack-studio.umd.js +90 -56
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4469,6 +4469,7 @@ export declare class Edit extends Entity {
|
|
|
4469
4469
|
mergeFields: MergeFieldService;
|
|
4470
4470
|
private canvas;
|
|
4471
4471
|
private lumaMaskController;
|
|
4472
|
+
private clipErrors;
|
|
4472
4473
|
/**
|
|
4473
4474
|
* Create an Edit instance from a template configuration.
|
|
4474
4475
|
*
|
|
@@ -4534,6 +4535,14 @@ export declare class Edit extends Entity {
|
|
|
4534
4535
|
getOriginalEdit(): ResolvedEdit | null;
|
|
4535
4536
|
addClip(trackIdx: number, clip: ResolvedClip): void | Promise<void>;
|
|
4536
4537
|
getClip(trackIdx: number, clipIdx: number): ResolvedClip | null;
|
|
4538
|
+
/**
|
|
4539
|
+
* Get the error state for a clip that failed to load.
|
|
4540
|
+
* Returns null if the clip loaded successfully.
|
|
4541
|
+
*/
|
|
4542
|
+
getClipError(trackIdx: number, clipIdx: number): {
|
|
4543
|
+
error: string;
|
|
4544
|
+
assetType: string;
|
|
4545
|
+
} | null;
|
|
4537
4546
|
getPlayerClip(trackIdx: number, clipIdx: number): Player | null;
|
|
4538
4547
|
/** Get the exportable asset for a clip, preserving merge field templates */
|
|
4539
4548
|
getOriginalAsset(trackIndex: number, clipIndex: number): unknown | undefined;
|
|
@@ -4758,6 +4767,8 @@ export declare class Edit extends Entity {
|
|
|
4758
4767
|
* This does NOT use the command pattern (no undo) - it's for live preview updates.
|
|
4759
4768
|
*/
|
|
4760
4769
|
updateMergeFieldValueLive(fieldName: string, newValue: string): void;
|
|
4770
|
+
/** Helper: Update merge field binding resolvedValues for a player */
|
|
4771
|
+
private updateMergeFieldBindings;
|
|
4761
4772
|
/** Helper: Update merge field occurrences in an object */
|
|
4762
4773
|
private updateMergeFieldInObject;
|
|
4763
4774
|
/**
|
|
@@ -4807,6 +4818,7 @@ export declare const EditEvent: {
|
|
|
4807
4818
|
readonly ClipDeleted: "clip:deleted";
|
|
4808
4819
|
readonly ClipRestored: "clip:restored";
|
|
4809
4820
|
readonly ClipCopied: "clip:copied";
|
|
4821
|
+
readonly ClipLoadFailed: "clip:loadFailed";
|
|
4810
4822
|
readonly SelectionCleared: "selection:cleared";
|
|
4811
4823
|
readonly EditChanged: "edit:changed";
|
|
4812
4824
|
readonly EditUndo: "edit:undo";
|
|
@@ -4851,6 +4863,10 @@ export declare type EditEventMap = {
|
|
|
4851
4863
|
[EditEvent.ClipDeleted]: ClipLocation;
|
|
4852
4864
|
[EditEvent.ClipRestored]: ClipLocation;
|
|
4853
4865
|
[EditEvent.ClipCopied]: ClipLocation;
|
|
4866
|
+
[EditEvent.ClipLoadFailed]: ClipLocation & {
|
|
4867
|
+
error: string;
|
|
4868
|
+
assetType: string;
|
|
4869
|
+
};
|
|
4854
4870
|
[EditEvent.SelectionCleared]: void;
|
|
4855
4871
|
[EditEvent.EditChanged]: {
|
|
4856
4872
|
source: string;
|
|
@@ -10993,6 +11009,7 @@ export declare class Timeline extends TimelineEntity {
|
|
|
10993
11009
|
private readonly handlePlaybackPlay;
|
|
10994
11010
|
private readonly handlePlaybackPause;
|
|
10995
11011
|
private readonly handleClipSelected;
|
|
11012
|
+
private readonly handleClipLoadFailed;
|
|
10996
11013
|
constructor(edit: Edit, container: HTMLElement, options?: TimelineOptions);
|
|
10997
11014
|
/** Initialize and mount the timeline */
|
|
10998
11015
|
load(): Promise<void>;
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -4469,6 +4469,7 @@ export declare class Edit extends Entity {
|
|
|
4469
4469
|
mergeFields: MergeFieldService;
|
|
4470
4470
|
private canvas;
|
|
4471
4471
|
private lumaMaskController;
|
|
4472
|
+
private clipErrors;
|
|
4472
4473
|
/**
|
|
4473
4474
|
* Create an Edit instance from a template configuration.
|
|
4474
4475
|
*
|
|
@@ -4534,6 +4535,14 @@ export declare class Edit extends Entity {
|
|
|
4534
4535
|
getOriginalEdit(): ResolvedEdit | null;
|
|
4535
4536
|
addClip(trackIdx: number, clip: ResolvedClip): void | Promise<void>;
|
|
4536
4537
|
getClip(trackIdx: number, clipIdx: number): ResolvedClip | null;
|
|
4538
|
+
/**
|
|
4539
|
+
* Get the error state for a clip that failed to load.
|
|
4540
|
+
* Returns null if the clip loaded successfully.
|
|
4541
|
+
*/
|
|
4542
|
+
getClipError(trackIdx: number, clipIdx: number): {
|
|
4543
|
+
error: string;
|
|
4544
|
+
assetType: string;
|
|
4545
|
+
} | null;
|
|
4537
4546
|
getPlayerClip(trackIdx: number, clipIdx: number): Player | null;
|
|
4538
4547
|
/** Get the exportable asset for a clip, preserving merge field templates */
|
|
4539
4548
|
getOriginalAsset(trackIndex: number, clipIndex: number): unknown | undefined;
|
|
@@ -4758,6 +4767,8 @@ export declare class Edit extends Entity {
|
|
|
4758
4767
|
* This does NOT use the command pattern (no undo) - it's for live preview updates.
|
|
4759
4768
|
*/
|
|
4760
4769
|
updateMergeFieldValueLive(fieldName: string, newValue: string): void;
|
|
4770
|
+
/** Helper: Update merge field binding resolvedValues for a player */
|
|
4771
|
+
private updateMergeFieldBindings;
|
|
4761
4772
|
/** Helper: Update merge field occurrences in an object */
|
|
4762
4773
|
private updateMergeFieldInObject;
|
|
4763
4774
|
/**
|
|
@@ -4807,6 +4818,7 @@ export declare const EditEvent: {
|
|
|
4807
4818
|
readonly ClipDeleted: "clip:deleted";
|
|
4808
4819
|
readonly ClipRestored: "clip:restored";
|
|
4809
4820
|
readonly ClipCopied: "clip:copied";
|
|
4821
|
+
readonly ClipLoadFailed: "clip:loadFailed";
|
|
4810
4822
|
readonly SelectionCleared: "selection:cleared";
|
|
4811
4823
|
readonly EditChanged: "edit:changed";
|
|
4812
4824
|
readonly EditUndo: "edit:undo";
|
|
@@ -4851,6 +4863,10 @@ export declare type EditEventMap = {
|
|
|
4851
4863
|
[EditEvent.ClipDeleted]: ClipLocation;
|
|
4852
4864
|
[EditEvent.ClipRestored]: ClipLocation;
|
|
4853
4865
|
[EditEvent.ClipCopied]: ClipLocation;
|
|
4866
|
+
[EditEvent.ClipLoadFailed]: ClipLocation & {
|
|
4867
|
+
error: string;
|
|
4868
|
+
assetType: string;
|
|
4869
|
+
};
|
|
4854
4870
|
[EditEvent.SelectionCleared]: void;
|
|
4855
4871
|
[EditEvent.EditChanged]: {
|
|
4856
4872
|
source: string;
|
|
@@ -10993,6 +11009,7 @@ export declare class Timeline extends TimelineEntity {
|
|
|
10993
11009
|
private readonly handlePlaybackPlay;
|
|
10994
11010
|
private readonly handlePlaybackPause;
|
|
10995
11011
|
private readonly handleClipSelected;
|
|
11012
|
+
private readonly handleClipLoadFailed;
|
|
10996
11013
|
constructor(edit: Edit, container: HTMLElement, options?: TimelineOptions);
|
|
10997
11014
|
/** Initialize and mount the timeline */
|
|
10998
11015
|
load(): Promise<void>;
|