@genfeedai/workflow-ui 0.1.3 → 0.1.5

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 (84) hide show
  1. package/dist/canvas.d.mts +16 -2
  2. package/dist/canvas.mjs +10 -8
  3. package/dist/chunk-6PSJTBNV.mjs +638 -0
  4. package/dist/chunk-7H3WJJYS.mjs +52 -0
  5. package/dist/{chunk-HCXI63ME.mjs → chunk-AUQGOJOQ.mjs} +27 -4
  6. package/dist/{chunk-AOTUCJMA.mjs → chunk-GWBGK3KL.mjs} +2 -2
  7. package/dist/chunk-JTPADIUO.mjs +130 -0
  8. package/dist/{chunk-SQK4JDYY.mjs → chunk-LT3ZJJL6.mjs} +9 -2
  9. package/dist/{chunk-7P2JWDC7.mjs → chunk-O5II6BOJ.mjs} +1198 -254
  10. package/dist/{chunk-AUZR6REQ.mjs → chunk-OQREHJXK.mjs} +1 -1
  11. package/dist/chunk-OY7BRSGG.mjs +60 -0
  12. package/dist/{chunk-E3YBVMYZ.mjs → chunk-PANZDSP6.mjs} +274 -305
  13. package/dist/chunk-PCIWWD37.mjs +90 -0
  14. package/dist/{chunk-RIGVIEYB.mjs → chunk-R727OFBR.mjs} +11 -1
  15. package/dist/chunk-ZD2BADZO.mjs +1294 -0
  16. package/dist/contextMenuStore-DMg0hJQ1.d.mts +22 -0
  17. package/dist/hooks.d.mts +53 -244
  18. package/dist/hooks.mjs +6 -6
  19. package/dist/index.d.mts +11 -7
  20. package/dist/index.mjs +13 -11
  21. package/dist/lib.d.mts +250 -4
  22. package/dist/lib.mjs +562 -2
  23. package/dist/nodes.d.mts +3 -1
  24. package/dist/nodes.mjs +6 -6
  25. package/dist/panels.mjs +3 -4
  26. package/dist/{promptLibraryStore-zqb59nsu.d.mts → promptLibraryStore-Bgw5LzvD.d.mts} +33 -5
  27. package/dist/provider.d.mts +2 -2
  28. package/dist/provider.mjs +0 -1
  29. package/dist/stores.d.mts +4 -3
  30. package/dist/stores.mjs +3 -40
  31. package/dist/toolbar.d.mts +3 -1
  32. package/dist/toolbar.mjs +5 -4
  33. package/dist/{types-ipAnBzAJ.d.mts → types-CF6DPx0P.d.mts} +8 -3
  34. package/dist/ui.d.mts +1 -1
  35. package/dist/ui.mjs +0 -1
  36. package/dist/{hooks.d.ts → useCommentNavigation-NzJjkaj2.d.mts} +15 -2
  37. package/dist/workflowStore-UAAKOOIK.mjs +2 -0
  38. package/package.json +31 -25
  39. package/dist/canvas.d.ts +0 -27
  40. package/dist/canvas.js +0 -45
  41. package/dist/chunk-3SPPKCWR.js +0 -458
  42. package/dist/chunk-3TMV3K34.js +0 -534
  43. package/dist/chunk-3YFFDHC5.js +0 -300
  44. package/dist/chunk-4MZ62VMF.js +0 -37
  45. package/dist/chunk-5HJFQVUR.js +0 -61
  46. package/dist/chunk-5LQ4QBR5.js +0 -2
  47. package/dist/chunk-6DOEUDD5.js +0 -254
  48. package/dist/chunk-AXFOCPPP.js +0 -998
  49. package/dist/chunk-BMFRA6GK.js +0 -1546
  50. package/dist/chunk-E323WAZG.mjs +0 -272
  51. package/dist/chunk-ECD5J2BA.js +0 -6022
  52. package/dist/chunk-EMGXUNBL.js +0 -120
  53. package/dist/chunk-EMUMKW5C.js +0 -107
  54. package/dist/chunk-FOMOOERN.js +0 -2
  55. package/dist/chunk-IASLG6IA.mjs +0 -118
  56. package/dist/chunk-IHF35QZD.js +0 -1095
  57. package/dist/chunk-JLWKW3G5.js +0 -2
  58. package/dist/chunk-KDIWRSYV.js +0 -375
  59. package/dist/chunk-L5TF4EHW.mjs +0 -1
  60. package/dist/chunk-RJ262NXS.js +0 -24
  61. package/dist/chunk-RXNEDWK2.js +0 -141
  62. package/dist/chunk-SEV2DWKF.js +0 -744
  63. package/dist/chunk-ZJWP5KGZ.mjs +0 -33
  64. package/dist/hooks.js +0 -56
  65. package/dist/index.d.ts +0 -29
  66. package/dist/index.js +0 -180
  67. package/dist/lib.d.ts +0 -164
  68. package/dist/lib.js +0 -144
  69. package/dist/nodes.d.ts +0 -128
  70. package/dist/nodes.js +0 -151
  71. package/dist/panels.d.ts +0 -22
  72. package/dist/panels.js +0 -21
  73. package/dist/promptLibraryStore-BZnfmEkc.d.ts +0 -464
  74. package/dist/provider.d.ts +0 -29
  75. package/dist/provider.js +0 -17
  76. package/dist/stores.d.ts +0 -96
  77. package/dist/stores.js +0 -113
  78. package/dist/toolbar.d.ts +0 -73
  79. package/dist/toolbar.js +0 -34
  80. package/dist/types-ipAnBzAJ.d.ts +0 -46
  81. package/dist/ui.d.ts +0 -67
  82. package/dist/ui.js +0 -84
  83. package/dist/workflowStore-7SDJC4UR.mjs +0 -3
  84. package/dist/workflowStore-LNJQ5RZG.js +0 -12
@@ -1,33 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __commonJS = (cb, mod) => function __require2() {
14
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
- mod
31
- ));
32
-
33
- export { __commonJS, __require, __toESM };
package/dist/hooks.js DELETED
@@ -1,56 +0,0 @@
1
- 'use strict';
2
-
3
- require('./chunk-FOMOOERN.js');
4
- var chunkEMGXUNBL_js = require('./chunk-EMGXUNBL.js');
5
- var chunk3TMV3K34_js = require('./chunk-3TMV3K34.js');
6
- require('./chunk-5HJFQVUR.js');
7
- require('./chunk-EMUMKW5C.js');
8
- require('./chunk-JLWKW3G5.js');
9
- require('./chunk-AXFOCPPP.js');
10
- require('./chunk-IHF35QZD.js');
11
- require('./chunk-RJ262NXS.js');
12
- require('./chunk-RXNEDWK2.js');
13
- require('./chunk-4MZ62VMF.js');
14
-
15
-
16
-
17
- Object.defineProperty(exports, "useCanvasKeyboardShortcuts", {
18
- enumerable: true,
19
- get: function () { return chunkEMGXUNBL_js.useCanvasKeyboardShortcuts; }
20
- });
21
- Object.defineProperty(exports, "useAIGenNode", {
22
- enumerable: true,
23
- get: function () { return chunk3TMV3K34_js.useAIGenNode; }
24
- });
25
- Object.defineProperty(exports, "useAIGenNodeHeader", {
26
- enumerable: true,
27
- get: function () { return chunk3TMV3K34_js.useAIGenNodeHeader; }
28
- });
29
- Object.defineProperty(exports, "useAutoLoadModelSchema", {
30
- enumerable: true,
31
- get: function () { return chunk3TMV3K34_js.useAutoLoadModelSchema; }
32
- });
33
- Object.defineProperty(exports, "useCanGenerate", {
34
- enumerable: true,
35
- get: function () { return chunk3TMV3K34_js.useCanGenerate; }
36
- });
37
- Object.defineProperty(exports, "useMediaUpload", {
38
- enumerable: true,
39
- get: function () { return chunk3TMV3K34_js.useMediaUpload; }
40
- });
41
- Object.defineProperty(exports, "useModelSelection", {
42
- enumerable: true,
43
- get: function () { return chunk3TMV3K34_js.useModelSelection; }
44
- });
45
- Object.defineProperty(exports, "useNodeExecution", {
46
- enumerable: true,
47
- get: function () { return chunk3TMV3K34_js.useNodeExecution; }
48
- });
49
- Object.defineProperty(exports, "usePromptAutocomplete", {
50
- enumerable: true,
51
- get: function () { return chunk3TMV3K34_js.usePromptAutocomplete; }
52
- });
53
- Object.defineProperty(exports, "useRequiredInputs", {
54
- enumerable: true,
55
- get: function () { return chunk3TMV3K34_js.useRequiredInputs; }
56
- });
package/dist/index.d.ts DELETED
@@ -1,29 +0,0 @@
1
- export { GroupOverlay, HelperLines, NodeSearch, PauseEdge, ShortcutHelpModal, WorkflowCanvas } from './canvas.js';
2
- export { BaseNode, nodeTypes } from './nodes.js';
3
- export { DebugPanel, NodePalette, PanelContainer } from './panels.js';
4
- export { BottomBar, DropdownItem, OverflowMenu, OverflowMenuProps, SaveAsDialog, SaveIndicator, Toolbar, ToolbarDropdown, ToolbarDropdownProps } from './toolbar.js';
5
- export { useAIGenNode, useAIGenNodeHeader, useAutoLoadModelSchema, useCanGenerate, useCanvasKeyboardShortcuts, useMediaUpload, useModelSelection, useNodeExecution, usePromptAutocomplete, useRequiredInputs } from './hooks.js';
6
- export { g as configurePromptLibrary, e as useAnnotationStore, b as useExecutionStore, d as usePromptEditorStore, f as usePromptLibraryStore, c as useSettingsStore, u as useUIStore, a as useWorkflowStore } from './promptLibraryStore-BZnfmEkc.js';
7
- import { GroupColor } from '@genfeedai/types';
8
- export { GroupColor, NodeGroup } from '@genfeedai/types';
9
- export { WorkflowUIProvider, useWorkflowUIConfig } from './provider.js';
10
- export { M as ModelBrowserModalProps, P as PromptLibraryService, a as PromptPickerProps, W as WorkflowUIConfig } from './types-ipAnBzAJ.js';
11
- import 'react/jsx-runtime';
12
- import '@xyflow/react';
13
- import 'react';
14
- import 'zustand';
15
- import 'zundo';
16
-
17
- /**
18
- * Node Group UI Constants
19
- * Re-exports types from shared package, defines Tailwind-specific styling
20
- */
21
-
22
- declare const GROUP_COLORS: Record<GroupColor, {
23
- bg: string;
24
- border: string;
25
- text: string;
26
- }>;
27
- declare const DEFAULT_GROUP_COLORS: GroupColor[];
28
-
29
- export { DEFAULT_GROUP_COLORS, GROUP_COLORS };
package/dist/index.js DELETED
@@ -1,180 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkBMFRA6GK_js = require('./chunk-BMFRA6GK.js');
4
- var chunkECD5J2BA_js = require('./chunk-ECD5J2BA.js');
5
- require('./chunk-3SPPKCWR.js');
6
- require('./chunk-3YFFDHC5.js');
7
- var chunkKDIWRSYV_js = require('./chunk-KDIWRSYV.js');
8
- var chunkSEV2DWKF_js = require('./chunk-SEV2DWKF.js');
9
- require('./chunk-FOMOOERN.js');
10
- var chunkEMGXUNBL_js = require('./chunk-EMGXUNBL.js');
11
- var chunk3TMV3K34_js = require('./chunk-3TMV3K34.js');
12
- require('./chunk-5HJFQVUR.js');
13
- require('./chunk-EMUMKW5C.js');
14
- var chunk6DOEUDD5_js = require('./chunk-6DOEUDD5.js');
15
- require('./chunk-JLWKW3G5.js');
16
- var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
17
- var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
18
- require('./chunk-5LQ4QBR5.js');
19
- var chunkRJ262NXS_js = require('./chunk-RJ262NXS.js');
20
- var chunkRXNEDWK2_js = require('./chunk-RXNEDWK2.js');
21
- require('./chunk-4MZ62VMF.js');
22
-
23
-
24
-
25
- Object.defineProperty(exports, "DEFAULT_GROUP_COLORS", {
26
- enumerable: true,
27
- get: function () { return chunkBMFRA6GK_js.DEFAULT_GROUP_COLORS; }
28
- });
29
- Object.defineProperty(exports, "GROUP_COLORS", {
30
- enumerable: true,
31
- get: function () { return chunkBMFRA6GK_js.GROUP_COLORS; }
32
- });
33
- Object.defineProperty(exports, "GroupOverlay", {
34
- enumerable: true,
35
- get: function () { return chunkBMFRA6GK_js.GroupOverlay; }
36
- });
37
- Object.defineProperty(exports, "HelperLines", {
38
- enumerable: true,
39
- get: function () { return chunkBMFRA6GK_js.HelperLines; }
40
- });
41
- Object.defineProperty(exports, "NodeSearch", {
42
- enumerable: true,
43
- get: function () { return chunkBMFRA6GK_js.NodeSearch; }
44
- });
45
- Object.defineProperty(exports, "PauseEdge", {
46
- enumerable: true,
47
- get: function () { return chunkBMFRA6GK_js.PauseEdge; }
48
- });
49
- Object.defineProperty(exports, "ShortcutHelpModal", {
50
- enumerable: true,
51
- get: function () { return chunkBMFRA6GK_js.ShortcutHelpModal; }
52
- });
53
- Object.defineProperty(exports, "WorkflowCanvas", {
54
- enumerable: true,
55
- get: function () { return chunkBMFRA6GK_js.WorkflowCanvas; }
56
- });
57
- Object.defineProperty(exports, "BaseNode", {
58
- enumerable: true,
59
- get: function () { return chunkECD5J2BA_js.BaseNode; }
60
- });
61
- Object.defineProperty(exports, "nodeTypes", {
62
- enumerable: true,
63
- get: function () { return chunkECD5J2BA_js.nodeTypes; }
64
- });
65
- Object.defineProperty(exports, "DebugPanel", {
66
- enumerable: true,
67
- get: function () { return chunkKDIWRSYV_js.DebugPanel; }
68
- });
69
- Object.defineProperty(exports, "NodePalette", {
70
- enumerable: true,
71
- get: function () { return chunkKDIWRSYV_js.NodePalette; }
72
- });
73
- Object.defineProperty(exports, "PanelContainer", {
74
- enumerable: true,
75
- get: function () { return chunkKDIWRSYV_js.PanelContainer; }
76
- });
77
- Object.defineProperty(exports, "BottomBar", {
78
- enumerable: true,
79
- get: function () { return chunkSEV2DWKF_js.BottomBar; }
80
- });
81
- Object.defineProperty(exports, "OverflowMenu", {
82
- enumerable: true,
83
- get: function () { return chunkSEV2DWKF_js.OverflowMenu; }
84
- });
85
- Object.defineProperty(exports, "SaveAsDialog", {
86
- enumerable: true,
87
- get: function () { return chunkSEV2DWKF_js.SaveAsDialog; }
88
- });
89
- Object.defineProperty(exports, "SaveIndicator", {
90
- enumerable: true,
91
- get: function () { return chunkSEV2DWKF_js.SaveIndicator; }
92
- });
93
- Object.defineProperty(exports, "Toolbar", {
94
- enumerable: true,
95
- get: function () { return chunkSEV2DWKF_js.Toolbar; }
96
- });
97
- Object.defineProperty(exports, "ToolbarDropdown", {
98
- enumerable: true,
99
- get: function () { return chunkSEV2DWKF_js.ToolbarDropdown; }
100
- });
101
- Object.defineProperty(exports, "useCanvasKeyboardShortcuts", {
102
- enumerable: true,
103
- get: function () { return chunkEMGXUNBL_js.useCanvasKeyboardShortcuts; }
104
- });
105
- Object.defineProperty(exports, "useAIGenNode", {
106
- enumerable: true,
107
- get: function () { return chunk3TMV3K34_js.useAIGenNode; }
108
- });
109
- Object.defineProperty(exports, "useAIGenNodeHeader", {
110
- enumerable: true,
111
- get: function () { return chunk3TMV3K34_js.useAIGenNodeHeader; }
112
- });
113
- Object.defineProperty(exports, "useAutoLoadModelSchema", {
114
- enumerable: true,
115
- get: function () { return chunk3TMV3K34_js.useAutoLoadModelSchema; }
116
- });
117
- Object.defineProperty(exports, "useCanGenerate", {
118
- enumerable: true,
119
- get: function () { return chunk3TMV3K34_js.useCanGenerate; }
120
- });
121
- Object.defineProperty(exports, "useMediaUpload", {
122
- enumerable: true,
123
- get: function () { return chunk3TMV3K34_js.useMediaUpload; }
124
- });
125
- Object.defineProperty(exports, "useModelSelection", {
126
- enumerable: true,
127
- get: function () { return chunk3TMV3K34_js.useModelSelection; }
128
- });
129
- Object.defineProperty(exports, "useNodeExecution", {
130
- enumerable: true,
131
- get: function () { return chunk3TMV3K34_js.useNodeExecution; }
132
- });
133
- Object.defineProperty(exports, "usePromptAutocomplete", {
134
- enumerable: true,
135
- get: function () { return chunk3TMV3K34_js.usePromptAutocomplete; }
136
- });
137
- Object.defineProperty(exports, "useRequiredInputs", {
138
- enumerable: true,
139
- get: function () { return chunk3TMV3K34_js.useRequiredInputs; }
140
- });
141
- Object.defineProperty(exports, "useAnnotationStore", {
142
- enumerable: true,
143
- get: function () { return chunk6DOEUDD5_js.useAnnotationStore; }
144
- });
145
- Object.defineProperty(exports, "usePromptEditorStore", {
146
- enumerable: true,
147
- get: function () { return chunk6DOEUDD5_js.usePromptEditorStore; }
148
- });
149
- Object.defineProperty(exports, "useExecutionStore", {
150
- enumerable: true,
151
- get: function () { return chunkAXFOCPPP_js.useExecutionStore; }
152
- });
153
- Object.defineProperty(exports, "useSettingsStore", {
154
- enumerable: true,
155
- get: function () { return chunkAXFOCPPP_js.useSettingsStore; }
156
- });
157
- Object.defineProperty(exports, "useUIStore", {
158
- enumerable: true,
159
- get: function () { return chunkAXFOCPPP_js.useUIStore; }
160
- });
161
- Object.defineProperty(exports, "useWorkflowStore", {
162
- enumerable: true,
163
- get: function () { return chunkIHF35QZD_js.useWorkflowStore; }
164
- });
165
- Object.defineProperty(exports, "WorkflowUIProvider", {
166
- enumerable: true,
167
- get: function () { return chunkRJ262NXS_js.WorkflowUIProvider; }
168
- });
169
- Object.defineProperty(exports, "useWorkflowUIConfig", {
170
- enumerable: true,
171
- get: function () { return chunkRJ262NXS_js.useWorkflowUIConfig; }
172
- });
173
- Object.defineProperty(exports, "configurePromptLibrary", {
174
- enumerable: true,
175
- get: function () { return chunkRXNEDWK2_js.configurePromptLibrary; }
176
- });
177
- Object.defineProperty(exports, "usePromptLibraryStore", {
178
- enumerable: true,
179
- get: function () { return chunkRXNEDWK2_js.usePromptLibraryStore; }
180
- });
package/dist/lib.d.ts DELETED
@@ -1,164 +0,0 @@
1
- import { HandleDefinition, NodeType, WorkflowNodeData, EasingPreset, CubicBezier, ImageModel, VideoModel, LipSyncModel, TextModel } from '@genfeedai/types';
2
-
3
- /**
4
- * Generates dynamic input handles from a model's input schema.
5
- *
6
- * Merges dynamically discovered handles with static handles defined in NODE_DEFINITIONS.
7
- * Static handles take precedence - dynamic handles are only added if not already present.
8
- *
9
- * @param inputSchema - The model's input schema containing properties
10
- * @param staticHandles - Static handles from NODE_DEFINITIONS
11
- * @returns Combined array of handles (static + dynamic)
12
- */
13
- declare function generateHandlesFromSchema(inputSchema: Record<string, unknown> | undefined, staticHandles: HandleDefinition[]): HandleDefinition[];
14
- /**
15
- * Check if a handle was dynamically generated from schema.
16
- */
17
- declare function isSchemaHandle(handle: HandleDefinition): boolean;
18
-
19
- /**
20
- * Utility functions for validating required schema fields
21
- */
22
- /**
23
- * Validates that all required fields in a JSON Schema have values.
24
- *
25
- * @param inputSchema - The JSON Schema with required array
26
- * @param values - Current field values
27
- * @param skipFields - Fields to skip (e.g., fields populated via connections)
28
- * @returns Validation result with isValid flag and list of missing fields
29
- */
30
- declare function validateRequiredSchemaFields(inputSchema: Record<string, unknown> | undefined, values: Record<string, unknown>, skipFields: Set<string>): {
31
- isValid: boolean;
32
- missingFields: string[];
33
- };
34
- /**
35
- * Fields that are populated via node connections rather than schema inputs.
36
- * These should be skipped when validating schema required fields.
37
- */
38
- declare const CONNECTION_FIELDS: Set<string>;
39
-
40
- /**
41
- * Shared utilities for working with provider model schemas
42
- */
43
- /**
44
- * Extract default values from schema properties
45
- */
46
- declare function getSchemaDefaults(schema: Record<string, unknown> | undefined): Record<string, unknown>;
47
- /**
48
- * Check if the model's schema supports image input
49
- * Used to determine whether to enable/disable image input handles
50
- */
51
- declare function supportsImageInput(schema: Record<string, unknown> | undefined): boolean;
52
- /**
53
- * Extract enum values from component schemas for SchemaInputs dropdowns
54
- */
55
- declare function extractEnumValues(componentSchemas: Record<string, {
56
- enum?: unknown[];
57
- type?: string;
58
- }> | undefined): Record<string, string[]> | undefined;
59
-
60
- interface MediaInfo {
61
- url: string | null;
62
- urls?: string[];
63
- type: 'image' | 'video' | null;
64
- }
65
- /**
66
- * Extract media URL and type from node data
67
- */
68
- declare function getMediaFromNode(nodeType: NodeType, data: WorkflowNodeData): MediaInfo;
69
-
70
- /**
71
- * Get the dimensions of an image from its source URL or data URL.
72
- */
73
- declare function getImageDimensions(src: string): Promise<{
74
- width: number;
75
- height: number;
76
- }>;
77
- /**
78
- * Get duration and dimensions of a video from its source URL or data URL.
79
- */
80
- declare function getVideoMetadata(src: string): Promise<{
81
- duration: number;
82
- dimensions: {
83
- width: number;
84
- height: number;
85
- };
86
- }>;
87
-
88
- /**
89
- * Easing presets based on easy-peasy-ease patterns
90
- * Each preset is a cubic bezier curve: [x1, y1, x2, y2]
91
- */
92
- declare const EASING_PRESETS: Record<EasingPreset, CubicBezier>;
93
- /**
94
- * Evaluate a cubic bezier curve at parameter t
95
- */
96
- declare function evaluateBezier(t: number, curve: CubicBezier): number;
97
- /**
98
- * Apply speed curve to video timestamps
99
- * Returns an array of warped timestamps
100
- */
101
- declare function applySpeedCurve(duration: number, curve: CubicBezier, sampleRate?: number): number[];
102
- /**
103
- * Get display name for easing preset
104
- */
105
- declare function getEasingDisplayName(preset: EasingPreset): string;
106
-
107
- interface ImageModelConfig {
108
- value: ImageModel;
109
- label: string;
110
- apiId: string;
111
- }
112
- declare const IMAGE_MODELS: ImageModelConfig[];
113
- declare const IMAGE_MODEL_MAP: Record<string, ImageModel>;
114
- declare const IMAGE_MODEL_ID_MAP: Record<ImageModel, string>;
115
- declare const DEFAULT_IMAGE_MODEL: ImageModel;
116
- interface VideoModelConfig {
117
- value: VideoModel;
118
- label: string;
119
- description: string;
120
- apiId: string;
121
- }
122
- declare const VIDEO_MODELS: VideoModelConfig[];
123
- declare const VIDEO_MODEL_MAP: Record<string, VideoModel>;
124
- declare const VIDEO_MODEL_ID_MAP: Record<VideoModel, string>;
125
- declare const DEFAULT_VIDEO_MODEL: VideoModel;
126
- interface LipSyncModelConfig {
127
- value: LipSyncModel;
128
- label: string;
129
- supportsImage: boolean;
130
- }
131
- declare const LIPSYNC_MODELS: LipSyncModelConfig[];
132
- declare const LIPSYNC_SYNC_MODES: ({
133
- value: "loop";
134
- label: string;
135
- } | {
136
- value: "bounce";
137
- label: string;
138
- } | {
139
- value: "cut_off";
140
- label: string;
141
- } | {
142
- value: "silence";
143
- label: string;
144
- } | {
145
- value: "remap";
146
- label: string;
147
- })[];
148
- declare const DEFAULT_LIPSYNC_MODEL: LipSyncModel;
149
- interface TextModelConfig {
150
- value: TextModel;
151
- label: string;
152
- apiId: string;
153
- }
154
- declare const LLM_MODELS: TextModelConfig[];
155
- declare const LLM_MODEL_MAP: Record<string, TextModel>;
156
- declare const LLM_MODEL_ID_MAP: Record<TextModel, string>;
157
- declare const DEFAULT_LLM_MODEL: TextModel;
158
- declare function getImageModelLabel(model: ImageModel): string;
159
- declare function getVideoModelLabel(model: VideoModel): string;
160
- declare function getLipSyncModelLabel(model: LipSyncModel): string;
161
- declare function getLLMModelLabel(model: TextModel): string;
162
- declare function lipSyncModelSupportsImage(model: LipSyncModel): boolean;
163
-
164
- export { CONNECTION_FIELDS, DEFAULT_IMAGE_MODEL, DEFAULT_LIPSYNC_MODEL, DEFAULT_LLM_MODEL, DEFAULT_VIDEO_MODEL, EASING_PRESETS, IMAGE_MODELS, IMAGE_MODEL_ID_MAP, IMAGE_MODEL_MAP, type ImageModelConfig, LIPSYNC_MODELS, LIPSYNC_SYNC_MODES, LLM_MODELS, LLM_MODEL_ID_MAP, LLM_MODEL_MAP, type LipSyncModelConfig, type MediaInfo, type TextModelConfig, VIDEO_MODELS, VIDEO_MODEL_ID_MAP, VIDEO_MODEL_MAP, type VideoModelConfig, applySpeedCurve, evaluateBezier, extractEnumValues, generateHandlesFromSchema, getEasingDisplayName, getImageDimensions, getImageModelLabel, getLLMModelLabel, getLipSyncModelLabel, getMediaFromNode, getSchemaDefaults, getVideoMetadata, getVideoModelLabel, isSchemaHandle, lipSyncModelSupportsImage, supportsImageInput, validateRequiredSchemaFields };
package/dist/lib.js DELETED
@@ -1,144 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk3YFFDHC5_js = require('./chunk-3YFFDHC5.js');
4
- var chunkEMUMKW5C_js = require('./chunk-EMUMKW5C.js');
5
- require('./chunk-4MZ62VMF.js');
6
-
7
-
8
-
9
- Object.defineProperty(exports, "DEFAULT_IMAGE_MODEL", {
10
- enumerable: true,
11
- get: function () { return chunk3YFFDHC5_js.DEFAULT_IMAGE_MODEL; }
12
- });
13
- Object.defineProperty(exports, "DEFAULT_LIPSYNC_MODEL", {
14
- enumerable: true,
15
- get: function () { return chunk3YFFDHC5_js.DEFAULT_LIPSYNC_MODEL; }
16
- });
17
- Object.defineProperty(exports, "DEFAULT_LLM_MODEL", {
18
- enumerable: true,
19
- get: function () { return chunk3YFFDHC5_js.DEFAULT_LLM_MODEL; }
20
- });
21
- Object.defineProperty(exports, "DEFAULT_VIDEO_MODEL", {
22
- enumerable: true,
23
- get: function () { return chunk3YFFDHC5_js.DEFAULT_VIDEO_MODEL; }
24
- });
25
- Object.defineProperty(exports, "EASING_PRESETS", {
26
- enumerable: true,
27
- get: function () { return chunk3YFFDHC5_js.EASING_PRESETS; }
28
- });
29
- Object.defineProperty(exports, "IMAGE_MODELS", {
30
- enumerable: true,
31
- get: function () { return chunk3YFFDHC5_js.IMAGE_MODELS; }
32
- });
33
- Object.defineProperty(exports, "IMAGE_MODEL_ID_MAP", {
34
- enumerable: true,
35
- get: function () { return chunk3YFFDHC5_js.IMAGE_MODEL_ID_MAP; }
36
- });
37
- Object.defineProperty(exports, "IMAGE_MODEL_MAP", {
38
- enumerable: true,
39
- get: function () { return chunk3YFFDHC5_js.IMAGE_MODEL_MAP; }
40
- });
41
- Object.defineProperty(exports, "LIPSYNC_MODELS", {
42
- enumerable: true,
43
- get: function () { return chunk3YFFDHC5_js.LIPSYNC_MODELS; }
44
- });
45
- Object.defineProperty(exports, "LIPSYNC_SYNC_MODES", {
46
- enumerable: true,
47
- get: function () { return chunk3YFFDHC5_js.LIPSYNC_SYNC_MODES; }
48
- });
49
- Object.defineProperty(exports, "LLM_MODELS", {
50
- enumerable: true,
51
- get: function () { return chunk3YFFDHC5_js.LLM_MODELS; }
52
- });
53
- Object.defineProperty(exports, "LLM_MODEL_ID_MAP", {
54
- enumerable: true,
55
- get: function () { return chunk3YFFDHC5_js.LLM_MODEL_ID_MAP; }
56
- });
57
- Object.defineProperty(exports, "LLM_MODEL_MAP", {
58
- enumerable: true,
59
- get: function () { return chunk3YFFDHC5_js.LLM_MODEL_MAP; }
60
- });
61
- Object.defineProperty(exports, "VIDEO_MODELS", {
62
- enumerable: true,
63
- get: function () { return chunk3YFFDHC5_js.VIDEO_MODELS; }
64
- });
65
- Object.defineProperty(exports, "VIDEO_MODEL_ID_MAP", {
66
- enumerable: true,
67
- get: function () { return chunk3YFFDHC5_js.VIDEO_MODEL_ID_MAP; }
68
- });
69
- Object.defineProperty(exports, "VIDEO_MODEL_MAP", {
70
- enumerable: true,
71
- get: function () { return chunk3YFFDHC5_js.VIDEO_MODEL_MAP; }
72
- });
73
- Object.defineProperty(exports, "applySpeedCurve", {
74
- enumerable: true,
75
- get: function () { return chunk3YFFDHC5_js.applySpeedCurve; }
76
- });
77
- Object.defineProperty(exports, "evaluateBezier", {
78
- enumerable: true,
79
- get: function () { return chunk3YFFDHC5_js.evaluateBezier; }
80
- });
81
- Object.defineProperty(exports, "generateHandlesFromSchema", {
82
- enumerable: true,
83
- get: function () { return chunk3YFFDHC5_js.generateHandlesFromSchema; }
84
- });
85
- Object.defineProperty(exports, "getEasingDisplayName", {
86
- enumerable: true,
87
- get: function () { return chunk3YFFDHC5_js.getEasingDisplayName; }
88
- });
89
- Object.defineProperty(exports, "getImageModelLabel", {
90
- enumerable: true,
91
- get: function () { return chunk3YFFDHC5_js.getImageModelLabel; }
92
- });
93
- Object.defineProperty(exports, "getLLMModelLabel", {
94
- enumerable: true,
95
- get: function () { return chunk3YFFDHC5_js.getLLMModelLabel; }
96
- });
97
- Object.defineProperty(exports, "getLipSyncModelLabel", {
98
- enumerable: true,
99
- get: function () { return chunk3YFFDHC5_js.getLipSyncModelLabel; }
100
- });
101
- Object.defineProperty(exports, "getMediaFromNode", {
102
- enumerable: true,
103
- get: function () { return chunk3YFFDHC5_js.getMediaFromNode; }
104
- });
105
- Object.defineProperty(exports, "getVideoModelLabel", {
106
- enumerable: true,
107
- get: function () { return chunk3YFFDHC5_js.getVideoModelLabel; }
108
- });
109
- Object.defineProperty(exports, "isSchemaHandle", {
110
- enumerable: true,
111
- get: function () { return chunk3YFFDHC5_js.isSchemaHandle; }
112
- });
113
- Object.defineProperty(exports, "lipSyncModelSupportsImage", {
114
- enumerable: true,
115
- get: function () { return chunk3YFFDHC5_js.lipSyncModelSupportsImage; }
116
- });
117
- Object.defineProperty(exports, "CONNECTION_FIELDS", {
118
- enumerable: true,
119
- get: function () { return chunkEMUMKW5C_js.CONNECTION_FIELDS; }
120
- });
121
- Object.defineProperty(exports, "extractEnumValues", {
122
- enumerable: true,
123
- get: function () { return chunkEMUMKW5C_js.extractEnumValues; }
124
- });
125
- Object.defineProperty(exports, "getImageDimensions", {
126
- enumerable: true,
127
- get: function () { return chunkEMUMKW5C_js.getImageDimensions; }
128
- });
129
- Object.defineProperty(exports, "getSchemaDefaults", {
130
- enumerable: true,
131
- get: function () { return chunkEMUMKW5C_js.getSchemaDefaults; }
132
- });
133
- Object.defineProperty(exports, "getVideoMetadata", {
134
- enumerable: true,
135
- get: function () { return chunkEMUMKW5C_js.getVideoMetadata; }
136
- });
137
- Object.defineProperty(exports, "supportsImageInput", {
138
- enumerable: true,
139
- get: function () { return chunkEMUMKW5C_js.supportsImageInput; }
140
- });
141
- Object.defineProperty(exports, "validateRequiredSchemaFields", {
142
- enumerable: true,
143
- get: function () { return chunkEMUMKW5C_js.validateRequiredSchemaFields; }
144
- });