@shotstack/shotstack-studio 2.17.0 → 2.19.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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "dazzatron",
7
7
  "kratos2k7"
8
8
  ],
9
- "version": "2.17.0",
9
+ "version": "2.19.0",
10
10
  "description": "A video editing library for creating and editing videos with Shotstack",
11
11
  "type": "module",
12
12
  "main": "dist/shotstack-studio.umd.js",
package/readme.md CHANGED
@@ -203,6 +203,16 @@ edit.registerAssetGenerator(async ({ clipId, asset, signal }) => {
203
203
  });
204
204
  ```
205
205
 
206
+ A host can trigger the same generation directly, without the toolbar: `await
207
+ edit.generateClip(clipId)` runs it for a prompt-bearing clip. Track progress with the events
208
+ `"clip:generationStarted"`, `"clip:generationCompleted"` and `"clip:generationFailed"`.
209
+
210
+ Pass a model catalogue as the registration's `catalogue` option to show model and option
211
+ controls. Entries must include their option schema; those without one are ignored. The
212
+ [Edit API](https://shotstack.io/docs/api/#shotstack-edit) returns this shape from
213
+ `GET /models?expand=options`. The SDK stores a snapshot; fetching and refreshing it remain
214
+ the host's responsibility.
215
+
206
216
  The SDK writes the returned URL to the clip, so the change is undoable and autosaves
207
217
  like any other edit. It tracks whether a clip is generating or has failed, and renders
208
218
  those states; a rejection's message is shown as-is next to a retry action. Everything