@genfeedai/workflow-ui 0.1.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.
Files changed (86) hide show
  1. package/dist/canvas.d.mts +27 -0
  2. package/dist/canvas.d.ts +27 -0
  3. package/dist/canvas.js +45 -0
  4. package/dist/canvas.mjs +16 -0
  5. package/dist/chunk-22PDGHNQ.mjs +737 -0
  6. package/dist/chunk-3SPPKCWR.js +458 -0
  7. package/dist/chunk-3YFFDHC5.js +300 -0
  8. package/dist/chunk-5HJFQVUR.js +61 -0
  9. package/dist/chunk-5LQ4QBR5.js +2 -0
  10. package/dist/chunk-6DOEUDD5.js +254 -0
  11. package/dist/chunk-7SKSRSS7.mjs +57 -0
  12. package/dist/chunk-AC6TWLRT.mjs +27 -0
  13. package/dist/chunk-ADWNF7V3.js +120 -0
  14. package/dist/chunk-BJ3R5R32.mjs +2163 -0
  15. package/dist/chunk-CETJJ73S.js +1555 -0
  16. package/dist/chunk-CSUBLSKZ.mjs +1002 -0
  17. package/dist/chunk-CV4M7CNU.mjs +251 -0
  18. package/dist/chunk-E323WAZG.mjs +272 -0
  19. package/dist/chunk-E544XUBL.js +378 -0
  20. package/dist/chunk-EC2ZIWOK.js +1007 -0
  21. package/dist/chunk-EFXQT23N.mjs +99 -0
  22. package/dist/chunk-EMUMKW5C.js +107 -0
  23. package/dist/chunk-FOMOOERN.js +2 -0
  24. package/dist/chunk-FT33LFII.mjs +21 -0
  25. package/dist/chunk-FT64PCUP.mjs +533 -0
  26. package/dist/chunk-H6LZKSLY.js +5678 -0
  27. package/dist/chunk-HPQT36RR.js +543 -0
  28. package/dist/chunk-JLWKW3G5.js +2 -0
  29. package/dist/chunk-L5TF4EHW.mjs +1 -0
  30. package/dist/chunk-LAJ34AH2.mjs +374 -0
  31. package/dist/chunk-LDN7IX4Y.mjs +1 -0
  32. package/dist/chunk-MLJJBBTB.mjs +1 -0
  33. package/dist/chunk-NSDLGLAQ.js +2166 -0
  34. package/dist/chunk-RJ262NXS.js +24 -0
  35. package/dist/chunk-RXNEDWK2.js +141 -0
  36. package/dist/chunk-SW7QNEZU.js +744 -0
  37. package/dist/chunk-UQQUWGHW.mjs +118 -0
  38. package/dist/chunk-VOGL2WCE.mjs +1542 -0
  39. package/dist/chunk-VRN3UWE5.mjs +138 -0
  40. package/dist/chunk-XV5Z5XYR.mjs +5640 -0
  41. package/dist/chunk-Z7PWFZG5.js +30 -0
  42. package/dist/chunk-ZJD5WMR3.mjs +418 -0
  43. package/dist/hooks.d.mts +255 -0
  44. package/dist/hooks.d.ts +255 -0
  45. package/dist/hooks.js +56 -0
  46. package/dist/hooks.mjs +11 -0
  47. package/dist/index.d.mts +29 -0
  48. package/dist/index.d.ts +29 -0
  49. package/dist/index.js +180 -0
  50. package/dist/index.mjs +19 -0
  51. package/dist/lib.d.mts +164 -0
  52. package/dist/lib.d.ts +164 -0
  53. package/dist/lib.js +144 -0
  54. package/dist/lib.mjs +3 -0
  55. package/dist/nodes.d.mts +128 -0
  56. package/dist/nodes.d.ts +128 -0
  57. package/dist/nodes.js +151 -0
  58. package/dist/nodes.mjs +14 -0
  59. package/dist/panels.d.mts +22 -0
  60. package/dist/panels.d.ts +22 -0
  61. package/dist/panels.js +21 -0
  62. package/dist/panels.mjs +4 -0
  63. package/dist/promptLibraryStore-BZnfmEkc.d.ts +464 -0
  64. package/dist/promptLibraryStore-zqb59nsu.d.mts +464 -0
  65. package/dist/provider.d.mts +29 -0
  66. package/dist/provider.d.ts +29 -0
  67. package/dist/provider.js +17 -0
  68. package/dist/provider.mjs +4 -0
  69. package/dist/stores.d.mts +96 -0
  70. package/dist/stores.d.ts +96 -0
  71. package/dist/stores.js +113 -0
  72. package/dist/stores.mjs +43 -0
  73. package/dist/toolbar.d.mts +73 -0
  74. package/dist/toolbar.d.ts +73 -0
  75. package/dist/toolbar.js +34 -0
  76. package/dist/toolbar.mjs +5 -0
  77. package/dist/types-ipAnBzAJ.d.mts +46 -0
  78. package/dist/types-ipAnBzAJ.d.ts +46 -0
  79. package/dist/ui.d.mts +67 -0
  80. package/dist/ui.d.ts +67 -0
  81. package/dist/ui.js +84 -0
  82. package/dist/ui.mjs +3 -0
  83. package/dist/workflowStore-4EGKJLYK.mjs +3 -0
  84. package/dist/workflowStore-KM32FDL7.js +12 -0
  85. package/package.json +117 -0
  86. package/src/styles/workflow-ui.css +186 -0
@@ -0,0 +1,251 @@
1
+ import { create } from 'zustand';
2
+
3
+ var usePromptEditorStore = create((set, get) => ({
4
+ isOpen: false,
5
+ nodeId: null,
6
+ prompt: "",
7
+ fontSize: 14,
8
+ openEditor: (nodeId, prompt) => {
9
+ set({
10
+ isOpen: true,
11
+ nodeId,
12
+ prompt
13
+ });
14
+ },
15
+ closeEditor: () => {
16
+ set({
17
+ isOpen: false,
18
+ nodeId: null,
19
+ prompt: ""
20
+ });
21
+ },
22
+ setPrompt: (prompt) => {
23
+ set({ prompt });
24
+ },
25
+ setFontSize: (fontSize) => {
26
+ set({ fontSize });
27
+ },
28
+ saveAndClose: () => {
29
+ const { nodeId, prompt } = get();
30
+ if (!nodeId) return null;
31
+ const result = { nodeId, prompt };
32
+ set({
33
+ isOpen: false,
34
+ nodeId: null,
35
+ prompt: ""
36
+ });
37
+ return result;
38
+ }
39
+ }));
40
+ var DEFAULT_TOOL_OPTIONS = {
41
+ strokeColor: "#ef4444",
42
+ // Red
43
+ strokeWidth: 3,
44
+ fillColor: null,
45
+ fontSize: 16
46
+ };
47
+ var shapeIdCounter = 0;
48
+ function generateShapeId() {
49
+ return `shape-${Date.now()}-${++shapeIdCounter}`;
50
+ }
51
+ var useAnnotationStore = create((set, get) => ({
52
+ isOpen: false,
53
+ nodeId: null,
54
+ sourceImage: null,
55
+ shapes: [],
56
+ selectedShapeId: null,
57
+ currentTool: "rectangle",
58
+ toolOptions: DEFAULT_TOOL_OPTIONS,
59
+ history: [],
60
+ historyIndex: -1,
61
+ isDrawing: false,
62
+ drawingShape: null,
63
+ openAnnotation: (nodeId, image, existingShapes = []) => {
64
+ set({
65
+ isOpen: true,
66
+ nodeId,
67
+ sourceImage: image,
68
+ shapes: existingShapes,
69
+ selectedShapeId: null,
70
+ currentTool: "rectangle",
71
+ toolOptions: DEFAULT_TOOL_OPTIONS,
72
+ history: [existingShapes],
73
+ historyIndex: 0,
74
+ isDrawing: false,
75
+ drawingShape: null
76
+ });
77
+ },
78
+ closeAnnotation: () => {
79
+ set({
80
+ isOpen: false,
81
+ nodeId: null,
82
+ sourceImage: null,
83
+ shapes: [],
84
+ selectedShapeId: null,
85
+ history: [],
86
+ historyIndex: -1,
87
+ isDrawing: false,
88
+ drawingShape: null
89
+ });
90
+ },
91
+ saveAndClose: () => {
92
+ const { nodeId, shapes } = get();
93
+ if (!nodeId) return null;
94
+ const result = { nodeId, shapes: [...shapes] };
95
+ set({
96
+ isOpen: false,
97
+ nodeId: null,
98
+ sourceImage: null,
99
+ shapes: [],
100
+ selectedShapeId: null,
101
+ history: [],
102
+ historyIndex: -1,
103
+ isDrawing: false,
104
+ drawingShape: null
105
+ });
106
+ return result;
107
+ },
108
+ addShape: (shape) => {
109
+ set((state) => {
110
+ const newShapes = [...state.shapes, shape];
111
+ const newHistory = [...state.history.slice(0, state.historyIndex + 1), newShapes].slice(
112
+ -50
113
+ );
114
+ return {
115
+ shapes: newShapes,
116
+ history: newHistory,
117
+ historyIndex: newHistory.length - 1
118
+ };
119
+ });
120
+ },
121
+ updateShape: (id, updates) => {
122
+ set((state) => {
123
+ const newShapes = state.shapes.map(
124
+ (s) => s.id === id ? { ...s, ...updates } : s
125
+ );
126
+ const newHistory = [...state.history.slice(0, state.historyIndex + 1), newShapes].slice(
127
+ -50
128
+ );
129
+ return {
130
+ shapes: newShapes,
131
+ history: newHistory,
132
+ historyIndex: newHistory.length - 1
133
+ };
134
+ });
135
+ },
136
+ deleteShape: (id) => {
137
+ set((state) => {
138
+ const newShapes = state.shapes.filter((s) => s.id !== id);
139
+ const newHistory = [...state.history.slice(0, state.historyIndex + 1), newShapes].slice(
140
+ -50
141
+ );
142
+ return {
143
+ shapes: newShapes,
144
+ selectedShapeId: state.selectedShapeId === id ? null : state.selectedShapeId,
145
+ history: newHistory,
146
+ historyIndex: newHistory.length - 1
147
+ };
148
+ });
149
+ },
150
+ selectShape: (id) => {
151
+ set({ selectedShapeId: id });
152
+ },
153
+ clearShapes: () => {
154
+ set((state) => {
155
+ const newHistory = [...state.history.slice(0, state.historyIndex + 1), []].slice(
156
+ -50
157
+ );
158
+ return {
159
+ shapes: [],
160
+ selectedShapeId: null,
161
+ history: newHistory,
162
+ historyIndex: newHistory.length - 1
163
+ };
164
+ });
165
+ },
166
+ setTool: (tool) => {
167
+ set({ currentTool: tool, selectedShapeId: null });
168
+ },
169
+ setToolOptions: (options) => {
170
+ set((state) => ({
171
+ toolOptions: { ...state.toolOptions, ...options }
172
+ }));
173
+ },
174
+ startDrawing: (shape) => {
175
+ set({
176
+ isDrawing: true,
177
+ drawingShape: {
178
+ id: generateShapeId(),
179
+ ...shape
180
+ }
181
+ });
182
+ },
183
+ updateDrawing: (updates) => {
184
+ set((state) => ({
185
+ drawingShape: state.drawingShape ? { ...state.drawingShape, ...updates } : null
186
+ }));
187
+ },
188
+ finishDrawing: () => {
189
+ const { drawingShape, addShape } = get();
190
+ if (drawingShape && isValidShape(drawingShape)) {
191
+ addShape(drawingShape);
192
+ }
193
+ set({ isDrawing: false, drawingShape: null });
194
+ },
195
+ cancelDrawing: () => {
196
+ set({ isDrawing: false, drawingShape: null });
197
+ },
198
+ undo: () => {
199
+ set((state) => {
200
+ if (state.historyIndex > 0) {
201
+ const newIndex = state.historyIndex - 1;
202
+ return {
203
+ shapes: state.history[newIndex],
204
+ historyIndex: newIndex,
205
+ selectedShapeId: null
206
+ };
207
+ }
208
+ return state;
209
+ });
210
+ },
211
+ redo: () => {
212
+ set((state) => {
213
+ if (state.historyIndex < state.history.length - 1) {
214
+ const newIndex = state.historyIndex + 1;
215
+ return {
216
+ shapes: state.history[newIndex],
217
+ historyIndex: newIndex,
218
+ selectedShapeId: null
219
+ };
220
+ }
221
+ return state;
222
+ });
223
+ },
224
+ canUndo: () => {
225
+ const { historyIndex } = get();
226
+ return historyIndex > 0;
227
+ },
228
+ canRedo: () => {
229
+ const { historyIndex, history } = get();
230
+ return historyIndex < history.length - 1;
231
+ }
232
+ }));
233
+ function isValidShape(shape) {
234
+ if (!shape.id || !shape.type) return false;
235
+ switch (shape.type) {
236
+ case "rectangle":
237
+ return typeof shape.x === "number" && typeof shape.y === "number" && typeof shape.width === "number" && typeof shape.height === "number" && Math.abs(shape.width) > 5 && Math.abs(shape.height) > 5;
238
+ case "circle":
239
+ return typeof shape.x === "number" && typeof shape.y === "number" && typeof shape.radius === "number" && shape.radius > 5;
240
+ case "arrow":
241
+ return Array.isArray(shape.points) && shape.points.length >= 4 && Math.hypot(shape.points[2] - shape.points[0], shape.points[3] - shape.points[1]) > 10;
242
+ case "freehand":
243
+ return Array.isArray(shape.points) && shape.points.length >= 4;
244
+ case "text":
245
+ return typeof shape.x === "number" && typeof shape.y === "number" && typeof shape.text === "string" && shape.text.length > 0;
246
+ default:
247
+ return false;
248
+ }
249
+ }
250
+
251
+ export { useAnnotationStore, usePromptEditorStore };
@@ -0,0 +1,272 @@
1
+ // src/lib/mediaExtraction.ts
2
+ function getMediaFromNode(nodeType, data) {
3
+ switch (nodeType) {
4
+ case "imageGen": {
5
+ const imgData = data;
6
+ const urls = imgData.outputImages?.length ? imgData.outputImages : [];
7
+ return {
8
+ url: imgData.outputImage,
9
+ urls,
10
+ type: imgData.outputImage || urls.length ? "image" : null
11
+ };
12
+ }
13
+ case "videoGen": {
14
+ const vidData = data;
15
+ return { url: vidData.outputVideo, type: vidData.outputVideo ? "video" : null };
16
+ }
17
+ case "imageInput": {
18
+ const inputData = data;
19
+ return { url: inputData.image, type: inputData.image ? "image" : null };
20
+ }
21
+ case "videoInput": {
22
+ const vidInputData = data;
23
+ return { url: vidInputData.video, type: vidInputData.video ? "video" : null };
24
+ }
25
+ case "motionControl": {
26
+ const mcData = data;
27
+ return { url: mcData.outputVideo, type: mcData.outputVideo ? "video" : null };
28
+ }
29
+ case "download": {
30
+ const outData = data;
31
+ if (outData.inputVideo) {
32
+ return { url: outData.inputVideo, type: "video" };
33
+ }
34
+ if (outData.inputImage) {
35
+ return { url: outData.inputImage, type: "image" };
36
+ }
37
+ return { url: null, type: null };
38
+ }
39
+ default:
40
+ return { url: null, type: null };
41
+ }
42
+ }
43
+
44
+ // src/lib/schemaHandles.ts
45
+ var HANDLE_FIELDS = /* @__PURE__ */ new Set([
46
+ // Text inputs
47
+ "prompt",
48
+ "negative_prompt",
49
+ "subject_reference",
50
+ // Image inputs (single)
51
+ "image",
52
+ "image_input",
53
+ "start_image",
54
+ "first_frame_image",
55
+ "end_image",
56
+ "last_frame",
57
+ "mask",
58
+ "mask_image",
59
+ "control_image",
60
+ "init_image",
61
+ "subject_image",
62
+ "face_image",
63
+ "style_image",
64
+ "pose_image",
65
+ "image_url",
66
+ "tail_image_url",
67
+ // Image inputs (array)
68
+ "reference_images",
69
+ // Video inputs
70
+ "video",
71
+ "video_url",
72
+ // Audio inputs
73
+ "audio",
74
+ "audio_url"
75
+ ]);
76
+ var FIELD_TO_HANDLE_TYPE = {
77
+ // Text fields
78
+ prompt: "text",
79
+ negative_prompt: "text",
80
+ subject_reference: "text",
81
+ // Image fields (single)
82
+ image: "image",
83
+ image_input: "image",
84
+ start_image: "image",
85
+ first_frame_image: "image",
86
+ end_image: "image",
87
+ last_frame: "image",
88
+ mask: "image",
89
+ mask_image: "image",
90
+ control_image: "image",
91
+ init_image: "image",
92
+ subject_image: "image",
93
+ face_image: "image",
94
+ style_image: "image",
95
+ pose_image: "image",
96
+ image_url: "image",
97
+ tail_image_url: "image",
98
+ // Image fields (array)
99
+ reference_images: "image",
100
+ // Video fields
101
+ video: "video",
102
+ video_url: "video",
103
+ // Audio fields
104
+ audio: "audio",
105
+ audio_url: "audio"
106
+ };
107
+ function generateHandlesFromSchema(inputSchema, staticHandles) {
108
+ if (!inputSchema) return staticHandles;
109
+ const schema = inputSchema;
110
+ if (!schema.properties) return staticHandles;
111
+ const staticIds = new Set(staticHandles.map((h) => h.id));
112
+ const dynamicHandles = [];
113
+ for (const [fieldName, prop] of Object.entries(schema.properties)) {
114
+ if (!HANDLE_FIELDS.has(fieldName) || staticIds.has(fieldName)) continue;
115
+ const handleType = FIELD_TO_HANDLE_TYPE[fieldName];
116
+ if (!handleType) continue;
117
+ const label = prop.title || fieldName.replace(/_/g, " ").replace(/\b\w/g, (c) => c.toUpperCase());
118
+ dynamicHandles.push({
119
+ id: fieldName,
120
+ type: handleType,
121
+ label,
122
+ multiple: prop.type === "array",
123
+ required: schema.required?.includes(fieldName),
124
+ fromSchema: true
125
+ });
126
+ }
127
+ return [...staticHandles, ...dynamicHandles];
128
+ }
129
+ function isSchemaHandle(handle) {
130
+ return handle.fromSchema === true;
131
+ }
132
+
133
+ // src/lib/models/registry.ts
134
+ var IMAGE_MODELS = [
135
+ { value: "nano-banana", label: "Nano Banana", apiId: "google/nano-banana" },
136
+ { value: "nano-banana-pro", label: "Nano Banana Pro", apiId: "google/nano-banana-pro" }
137
+ ];
138
+ var IMAGE_MODEL_MAP = Object.fromEntries(
139
+ IMAGE_MODELS.map((m) => [m.apiId, m.value])
140
+ );
141
+ var IMAGE_MODEL_ID_MAP = Object.fromEntries(
142
+ IMAGE_MODELS.map((m) => [m.value, m.apiId])
143
+ );
144
+ var DEFAULT_IMAGE_MODEL = "nano-banana-pro";
145
+ var VIDEO_MODELS = [
146
+ {
147
+ value: "veo-3.1-fast",
148
+ label: "Veo 3.1 Fast",
149
+ description: "Fast",
150
+ apiId: "google/veo-3.1-fast"
151
+ },
152
+ { value: "veo-3.1", label: "Veo 3.1", description: "High quality", apiId: "google/veo-3.1" }
153
+ ];
154
+ var VIDEO_MODEL_MAP = Object.fromEntries(
155
+ VIDEO_MODELS.map((m) => [m.apiId, m.value])
156
+ );
157
+ var VIDEO_MODEL_ID_MAP = Object.fromEntries(
158
+ VIDEO_MODELS.map((m) => [m.value, m.apiId])
159
+ );
160
+ var DEFAULT_VIDEO_MODEL = "veo-3.1-fast";
161
+ var LIPSYNC_MODELS = [
162
+ { value: "bytedance/omni-human", label: "OmniHuman (Image)", supportsImage: true },
163
+ { value: "veed/fabric-1.0", label: "VEED Fabric (Image)", supportsImage: true },
164
+ { value: "sync/lipsync-2-pro", label: "Sync Labs Pro (Video)", supportsImage: false },
165
+ { value: "sync/lipsync-2", label: "Sync Labs (Video)", supportsImage: false },
166
+ { value: "pixverse/lipsync", label: "Pixverse", supportsImage: true }
167
+ ];
168
+ var LIPSYNC_SYNC_MODES = [
169
+ { value: "loop", label: "Loop" },
170
+ { value: "bounce", label: "Bounce" },
171
+ { value: "cut_off", label: "Cut Off" },
172
+ { value: "silence", label: "Silence" },
173
+ { value: "remap", label: "Remap" }
174
+ ];
175
+ var DEFAULT_LIPSYNC_MODEL = "bytedance/omni-human";
176
+ var LLM_MODELS = [
177
+ {
178
+ value: "meta-llama-3.1-405b-instruct",
179
+ label: "Llama 3.1 405B",
180
+ apiId: "meta/meta-llama-3.1-405b-instruct"
181
+ },
182
+ {
183
+ value: "claude-4.5-sonnet",
184
+ label: "Claude 4.5 Sonnet",
185
+ apiId: "anthropic/claude-4.5-sonnet"
186
+ }
187
+ ];
188
+ var LLM_MODEL_MAP = Object.fromEntries(
189
+ LLM_MODELS.map((m) => [m.apiId, m.value])
190
+ );
191
+ var LLM_MODEL_ID_MAP = Object.fromEntries(
192
+ LLM_MODELS.map((m) => [m.value, m.apiId])
193
+ );
194
+ var DEFAULT_LLM_MODEL = "meta-llama-3.1-405b-instruct";
195
+ function getImageModelLabel(model) {
196
+ return IMAGE_MODELS.find((m) => m.value === model)?.label ?? model;
197
+ }
198
+ function getVideoModelLabel(model) {
199
+ return VIDEO_MODELS.find((m) => m.value === model)?.label ?? model;
200
+ }
201
+ function getLipSyncModelLabel(model) {
202
+ return LIPSYNC_MODELS.find((m) => m.value === model)?.label ?? model;
203
+ }
204
+ function getLLMModelLabel(model) {
205
+ return LLM_MODELS.find((m) => m.value === model)?.label ?? model;
206
+ }
207
+ function lipSyncModelSupportsImage(model) {
208
+ return LIPSYNC_MODELS.find((m) => m.value === model)?.supportsImage ?? false;
209
+ }
210
+
211
+ // src/lib/easing.ts
212
+ var EASING_PRESETS = {
213
+ // Linear - no easing
214
+ linear: [0, 0, 1, 1],
215
+ // Standard easing functions
216
+ easeIn: [0.42, 0, 1, 1],
217
+ easeOut: [0, 0, 0.58, 1],
218
+ easeInOut: [0.42, 0, 0.58, 1],
219
+ // Quadratic easing
220
+ easeInQuad: [0.55, 0.085, 0.68, 0.53],
221
+ easeOutQuad: [0.25, 0.46, 0.45, 0.94],
222
+ easeInOutQuad: [0.455, 0.03, 0.515, 0.955],
223
+ // Cubic easing
224
+ easeInCubic: [0.55, 0.055, 0.675, 0.19],
225
+ easeOutCubic: [0.215, 0.61, 0.355, 1],
226
+ easeInOutCubic: [0.645, 0.045, 0.355, 1],
227
+ // Exponential easing
228
+ easeInExpo: [0.95, 0.05, 0.795, 0.035],
229
+ easeOutExpo: [0.19, 1, 0.22, 1],
230
+ easeInOutExpo: [1, 0, 0, 1]
231
+ };
232
+ function evaluateBezier(t, curve) {
233
+ const [x1, y1, x2, y2] = curve;
234
+ const epsilon = 1e-6;
235
+ let guess = t;
236
+ for (let i = 0; i < 8; i++) {
237
+ const x = 3 * (1 - guess) * (1 - guess) * guess * x1 + 3 * (1 - guess) * guess * guess * x2 + guess * guess * guess - t;
238
+ if (Math.abs(x) < epsilon) break;
239
+ const dx = 3 * (1 - guess) * (1 - guess) * x1 + 6 * (1 - guess) * guess * (x2 - x1) + 3 * guess * guess * (1 - x2);
240
+ guess -= x / dx;
241
+ }
242
+ return 3 * (1 - guess) * (1 - guess) * guess * y1 + 3 * (1 - guess) * guess * guess * y2 + guess * guess * guess;
243
+ }
244
+ function applySpeedCurve(duration, curve, sampleRate = 60) {
245
+ const timestamps = [];
246
+ for (let i = 0; i <= sampleRate; i++) {
247
+ const t = i / sampleRate;
248
+ const easedT = evaluateBezier(t, curve);
249
+ timestamps.push(easedT * duration);
250
+ }
251
+ return timestamps;
252
+ }
253
+ function getEasingDisplayName(preset) {
254
+ const names = {
255
+ linear: "Linear",
256
+ easeIn: "Ease In",
257
+ easeOut: "Ease Out",
258
+ easeInOut: "Ease In Out",
259
+ easeInQuad: "Ease In Quadratic",
260
+ easeOutQuad: "Ease Out Quadratic",
261
+ easeInOutQuad: "Ease In Out Quadratic",
262
+ easeInCubic: "Ease In Cubic",
263
+ easeOutCubic: "Ease Out Cubic",
264
+ easeInOutCubic: "Ease In Out Cubic",
265
+ easeInExpo: "Ease In Exponential",
266
+ easeOutExpo: "Ease Out Exponential",
267
+ easeInOutExpo: "Ease In Out Exponential"
268
+ };
269
+ return names[preset] || preset;
270
+ }
271
+
272
+ export { DEFAULT_IMAGE_MODEL, DEFAULT_LIPSYNC_MODEL, DEFAULT_LLM_MODEL, DEFAULT_VIDEO_MODEL, EASING_PRESETS, IMAGE_MODELS, IMAGE_MODEL_ID_MAP, IMAGE_MODEL_MAP, LIPSYNC_MODELS, LIPSYNC_SYNC_MODES, LLM_MODELS, LLM_MODEL_ID_MAP, LLM_MODEL_MAP, VIDEO_MODELS, VIDEO_MODEL_ID_MAP, VIDEO_MODEL_MAP, applySpeedCurve, evaluateBezier, generateHandlesFromSchema, getEasingDisplayName, getImageModelLabel, getLLMModelLabel, getLipSyncModelLabel, getMediaFromNode, getVideoModelLabel, isSchemaHandle, lipSyncModelSupportsImage };