ugcinc 4.5.13 → 4.5.14

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.
@@ -298,6 +298,9 @@ export declare const nodeDefinitions: {
298
298
  };
299
299
  readonly 'screenshot-animation': NodeDefinition<"screenshot-animation", "generator", {
300
300
  holdDurationMs: number;
301
+ imageIsVariable: boolean;
302
+ imageMediaId: string | null;
303
+ imageMediaUrl: string | null;
301
304
  outputMode: import("./types").OutputMode;
302
305
  selectionMode: import("./types").SelectionMode | null;
303
306
  }, import("./screenshot-animation").ScreenshotAnimationNodeInputs, import("./screenshot-animation").ScreenshotAnimationNodeOutputs, false> & {
@@ -8,6 +8,12 @@ export interface ScreenshotAnimationNodeOutputs {
8
8
  }
9
9
  declare const definition: import("./types").NodeDefinition<"screenshot-animation", "generator", {
10
10
  holdDurationMs: number;
11
+ /** Whether image comes from a variable input port (default: true for backwards compat) */
12
+ imageIsVariable: boolean;
13
+ /** Media library ID for static image selection */
14
+ imageMediaId: string | null;
15
+ /** URL for static image selection */
16
+ imageMediaUrl: string | null;
11
17
  outputMode: OutputMode;
12
18
  selectionMode: SelectionMode | null;
13
19
  }, ScreenshotAnimationNodeInputs, ScreenshotAnimationNodeOutputs, false>;
@@ -14,27 +14,39 @@ const definition = (0, types_1.defineNode)({
14
14
  selectionModes: null,
15
15
  defaults: {
16
16
  holdDurationMs: 500,
17
+ /** Whether image comes from a variable input port (default: true for backwards compat) */
18
+ imageIsVariable: false,
19
+ /** Media library ID for static image selection */
20
+ imageMediaId: null,
21
+ /** URL for static image selection */
22
+ imageMediaUrl: null,
17
23
  outputMode: 'per-input',
18
24
  selectionMode: null,
19
25
  },
20
- computePorts: () => ({
21
- inputs: [
22
- {
26
+ computePorts: ({ config }) => {
27
+ const imageIsVariable = config?.imageIsVariable ?? true;
28
+ const inputs = [];
29
+ // Only add image port when variable
30
+ if (imageIsVariable) {
31
+ inputs.push({
23
32
  id: 'image',
24
33
  type: 'image',
25
34
  isArray: false,
26
35
  required: true,
27
- },
28
- ],
29
- outputs: [
30
- {
31
- id: 'output',
32
- type: 'video',
33
- isArray: false,
34
- required: true,
35
- },
36
- ],
37
- }),
36
+ });
37
+ }
38
+ return {
39
+ inputs,
40
+ outputs: [
41
+ {
42
+ id: 'output',
43
+ type: 'video',
44
+ isArray: false,
45
+ required: true,
46
+ },
47
+ ],
48
+ };
49
+ },
38
50
  generatePreview: (_config, _ctx, cachedOutputs) => {
39
51
  return (0, types_1.preview)({
40
52
  output: cachedOutputs?.output ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.13",
3
+ "version": "4.5.14",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",