@genfeedai/workflow-ui 0.1.1 → 0.1.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.
Files changed (37) hide show
  1. package/dist/canvas.js +11 -10
  2. package/dist/canvas.mjs +5 -4
  3. package/dist/{chunk-DICI5FSP.js → chunk-3TMV3K34.js} +3 -3
  4. package/dist/chunk-4MZ62VMF.js +37 -0
  5. package/dist/{chunk-EYL6J4MW.mjs → chunk-7P2JWDC7.mjs} +2 -2
  6. package/dist/{chunk-3PMLER6D.mjs → chunk-AOTUCJMA.mjs} +1 -1
  7. package/dist/{chunk-XOC5ETTX.mjs → chunk-AUZR6REQ.mjs} +1 -1
  8. package/dist/{chunk-DUZLPHRC.js → chunk-AXFOCPPP.js} +1 -1
  9. package/dist/{chunk-PVWLMJGZ.js → chunk-BMFRA6GK.js} +13 -13
  10. package/dist/{chunk-PFHFGSM5.mjs → chunk-E3YBVMYZ.mjs} +389 -10
  11. package/dist/{chunk-H3JOHAS5.js → chunk-ECD5J2BA.js} +450 -71
  12. package/dist/{chunk-I3GNO2SR.mjs → chunk-HCXI63ME.mjs} +1 -1
  13. package/dist/{chunk-HWY6IBWT.js → chunk-KDIWRSYV.js} +5 -5
  14. package/dist/{chunk-OZNYKFMX.js → chunk-SEV2DWKF.js} +18 -18
  15. package/dist/{chunk-73V6SUEO.mjs → chunk-SQK4JDYY.mjs} +1 -1
  16. package/dist/chunk-ZJWP5KGZ.mjs +33 -0
  17. package/dist/hooks.js +12 -11
  18. package/dist/hooks.mjs +3 -2
  19. package/dist/index.js +38 -37
  20. package/dist/index.mjs +7 -6
  21. package/dist/lib.js +1 -0
  22. package/dist/lib.mjs +1 -0
  23. package/dist/nodes.js +37 -36
  24. package/dist/nodes.mjs +4 -3
  25. package/dist/panels.js +6 -5
  26. package/dist/panels.mjs +3 -2
  27. package/dist/provider.js +1 -0
  28. package/dist/provider.mjs +1 -0
  29. package/dist/stores.js +6 -5
  30. package/dist/stores.mjs +2 -1
  31. package/dist/toolbar.js +9 -8
  32. package/dist/toolbar.mjs +3 -2
  33. package/dist/ui.js +1 -0
  34. package/dist/ui.mjs +1 -0
  35. package/dist/{workflowStore-ZCSVIZQF.mjs → workflowStore-7SDJC4UR.mjs} +1 -0
  36. package/dist/{workflowStore-32ZH5REM.js → workflowStore-LNJQ5RZG.js} +1 -0
  37. package/package.json +3 -3
package/dist/canvas.js CHANGED
@@ -1,44 +1,45 @@
1
1
  'use strict';
2
2
 
3
- var chunkPVWLMJGZ_js = require('./chunk-PVWLMJGZ.js');
4
- require('./chunk-H3JOHAS5.js');
3
+ var chunkBMFRA6GK_js = require('./chunk-BMFRA6GK.js');
4
+ require('./chunk-ECD5J2BA.js');
5
5
  require('./chunk-3SPPKCWR.js');
6
6
  require('./chunk-3YFFDHC5.js');
7
7
  require('./chunk-EMGXUNBL.js');
8
- require('./chunk-DICI5FSP.js');
8
+ require('./chunk-3TMV3K34.js');
9
9
  require('./chunk-5HJFQVUR.js');
10
10
  require('./chunk-EMUMKW5C.js');
11
11
  require('./chunk-6DOEUDD5.js');
12
12
  require('./chunk-JLWKW3G5.js');
13
- require('./chunk-DUZLPHRC.js');
13
+ require('./chunk-AXFOCPPP.js');
14
14
  require('./chunk-IHF35QZD.js');
15
15
  require('./chunk-5LQ4QBR5.js');
16
16
  require('./chunk-RJ262NXS.js');
17
17
  require('./chunk-RXNEDWK2.js');
18
+ require('./chunk-4MZ62VMF.js');
18
19
 
19
20
 
20
21
 
21
22
  Object.defineProperty(exports, "GroupOverlay", {
22
23
  enumerable: true,
23
- get: function () { return chunkPVWLMJGZ_js.GroupOverlay; }
24
+ get: function () { return chunkBMFRA6GK_js.GroupOverlay; }
24
25
  });
25
26
  Object.defineProperty(exports, "HelperLines", {
26
27
  enumerable: true,
27
- get: function () { return chunkPVWLMJGZ_js.HelperLines; }
28
+ get: function () { return chunkBMFRA6GK_js.HelperLines; }
28
29
  });
29
30
  Object.defineProperty(exports, "NodeSearch", {
30
31
  enumerable: true,
31
- get: function () { return chunkPVWLMJGZ_js.NodeSearch; }
32
+ get: function () { return chunkBMFRA6GK_js.NodeSearch; }
32
33
  });
33
34
  Object.defineProperty(exports, "PauseEdge", {
34
35
  enumerable: true,
35
- get: function () { return chunkPVWLMJGZ_js.PauseEdge; }
36
+ get: function () { return chunkBMFRA6GK_js.PauseEdge; }
36
37
  });
37
38
  Object.defineProperty(exports, "ShortcutHelpModal", {
38
39
  enumerable: true,
39
- get: function () { return chunkPVWLMJGZ_js.ShortcutHelpModal; }
40
+ get: function () { return chunkBMFRA6GK_js.ShortcutHelpModal; }
40
41
  });
41
42
  Object.defineProperty(exports, "WorkflowCanvas", {
42
43
  enumerable: true,
43
- get: function () { return chunkPVWLMJGZ_js.WorkflowCanvas; }
44
+ get: function () { return chunkBMFRA6GK_js.WorkflowCanvas; }
44
45
  });
package/dist/canvas.mjs CHANGED
@@ -1,15 +1,16 @@
1
- export { GroupOverlay, HelperLines, NodeSearch, PauseEdge, ShortcutHelpModal, WorkflowCanvas } from './chunk-EYL6J4MW.mjs';
2
- import './chunk-PFHFGSM5.mjs';
1
+ export { GroupOverlay, HelperLines, NodeSearch, PauseEdge, ShortcutHelpModal, WorkflowCanvas } from './chunk-7P2JWDC7.mjs';
2
+ import './chunk-E3YBVMYZ.mjs';
3
3
  import './chunk-ZJD5WMR3.mjs';
4
4
  import './chunk-E323WAZG.mjs';
5
5
  import './chunk-IASLG6IA.mjs';
6
- import './chunk-3PMLER6D.mjs';
6
+ import './chunk-AOTUCJMA.mjs';
7
7
  import './chunk-7SKSRSS7.mjs';
8
8
  import './chunk-EFXQT23N.mjs';
9
9
  import './chunk-CV4M7CNU.mjs';
10
10
  import './chunk-LDN7IX4Y.mjs';
11
- import './chunk-73V6SUEO.mjs';
11
+ import './chunk-SQK4JDYY.mjs';
12
12
  import './chunk-RIGVIEYB.mjs';
13
13
  import './chunk-MLJJBBTB.mjs';
14
14
  import './chunk-FT33LFII.mjs';
15
15
  import './chunk-VRN3UWE5.mjs';
16
+ import './chunk-ZJWP5KGZ.mjs';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunk5HJFQVUR_js = require('./chunk-5HJFQVUR.js');
4
4
  var chunkEMUMKW5C_js = require('./chunk-EMUMKW5C.js');
5
- var chunkDUZLPHRC_js = require('./chunk-DUZLPHRC.js');
5
+ var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
6
6
  var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
7
7
  var chunkRJ262NXS_js = require('./chunk-RJ262NXS.js');
8
8
  var react = require('react');
@@ -286,8 +286,8 @@ function useModelSelection({ nodeId, modelMap, fallbackModel }) {
286
286
  }
287
287
  function useNodeExecution(nodeId) {
288
288
  const updateNodeData = chunkIHF35QZD_js.useWorkflowStore((state) => state.updateNodeData);
289
- const executeNode = chunkDUZLPHRC_js.useExecutionStore((state) => state.executeNode);
290
- const stopNodeExecution = chunkDUZLPHRC_js.useExecutionStore((state) => state.stopNodeExecution);
289
+ const executeNode = chunkAXFOCPPP_js.useExecutionStore((state) => state.executeNode);
290
+ const stopNodeExecution = chunkAXFOCPPP_js.useExecutionStore((state) => state.stopNodeExecution);
291
291
  const handleGenerate = react.useCallback(() => {
292
292
  updateNodeData(nodeId, { status: types.NodeStatusEnum.PROCESSING });
293
293
  executeNode(nodeId);
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
+ // If the importer is in node compatibility mode or this is not an ESM
28
+ // file that has been converted to a CommonJS file using a Babel-
29
+ // compatible transform (i.e. "__esModule" has not been set), then set
30
+ // "default" to the CommonJS "module.exports" for node compatibility.
31
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
+ mod
33
+ ));
34
+
35
+ exports.__commonJS = __commonJS;
36
+ exports.__require = __require;
37
+ exports.__toESM = __toESM;
@@ -1,9 +1,9 @@
1
- import { nodeTypes } from './chunk-PFHFGSM5.mjs';
1
+ import { nodeTypes } from './chunk-E3YBVMYZ.mjs';
2
2
  import { getMediaFromNode } from './chunk-E323WAZG.mjs';
3
3
  import { useCanvasKeyboardShortcuts } from './chunk-IASLG6IA.mjs';
4
4
  import { Button } from './chunk-7SKSRSS7.mjs';
5
5
  import { usePromptEditorStore } from './chunk-CV4M7CNU.mjs';
6
- import { useUIStore, useSettingsStore, useExecutionStore } from './chunk-73V6SUEO.mjs';
6
+ import { useUIStore, useSettingsStore, useExecutionStore } from './chunk-SQK4JDYY.mjs';
7
7
  import { useWorkflowStore } from './chunk-RIGVIEYB.mjs';
8
8
  import { useNodes, ViewportPortal, useViewport, useStore, getBezierPath, BaseEdge, useReactFlow, ReactFlow, SelectionMode, ConnectionMode, Background, BackgroundVariant, Controls, MiniMap } from '@xyflow/react';
9
9
  import { Pause, Palette, Lock, Unlock, Trash2, Search, X, Keyboard, PanelLeft, Download, ChevronLeft, ChevronRight, ZoomOut, ZoomIn } from 'lucide-react';
@@ -1,6 +1,6 @@
1
1
  import { Button } from './chunk-7SKSRSS7.mjs';
2
2
  import { extractEnumValues, supportsImageInput, validateRequiredSchemaFields, CONNECTION_FIELDS, getSchemaDefaults, getImageDimensions, getVideoMetadata } from './chunk-EFXQT23N.mjs';
3
- import { useExecutionStore } from './chunk-73V6SUEO.mjs';
3
+ import { useExecutionStore } from './chunk-SQK4JDYY.mjs';
4
4
  import { useWorkflowStore } from './chunk-RIGVIEYB.mjs';
5
5
  import { useWorkflowUIConfig } from './chunk-FT33LFII.mjs';
6
6
  import { useMemo, useCallback, useRef, useEffect, useState } from 'react';
@@ -1,4 +1,4 @@
1
- import { useExecutionStore, useUIStore } from './chunk-73V6SUEO.mjs';
1
+ import { useExecutionStore, useUIStore } from './chunk-SQK4JDYY.mjs';
2
2
  import { getNodesByCategory } from '@genfeedai/types';
3
3
  import { Bug, Trash2, X, ChevronDown, ChevronRight, Copy, PanelLeftClose, Search, GitBranch, ArrowLeftFromLine, ArrowRightToLine, Download, Eye, CheckCircle, Columns2, LayoutGrid, Subtitles, Pencil, Grid3X3, Maximize, Crop, Film, Scissors, Layers, Wand2, Maximize2, Navigation, AudioLines, Mic, Brain, Video, Sparkles, Puzzle, Volume2, FileVideo, FileText, MessageSquare, Image } from 'lucide-react';
4
4
  import { forwardRef, memo, useCallback, useState, useMemo } from 'react';
@@ -213,7 +213,7 @@ var useSettingsStore = zustand.create((set, get) => {
213
213
  },
214
214
  setEdgeStyle: (style) => {
215
215
  setAndPersist(() => ({ edgeStyle: style }));
216
- import('./workflowStore-32ZH5REM.js').then(({ useWorkflowStore: useWorkflowStore2 }) => {
216
+ import('./workflowStore-LNJQ5RZG.js').then(({ useWorkflowStore: useWorkflowStore2 }) => {
217
217
  useWorkflowStore2.getState().setEdgeStyle(style);
218
218
  });
219
219
  },
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkH3JOHAS5_js = require('./chunk-H3JOHAS5.js');
3
+ var chunkECD5J2BA_js = require('./chunk-ECD5J2BA.js');
4
4
  var chunk3YFFDHC5_js = require('./chunk-3YFFDHC5.js');
5
5
  var chunkEMGXUNBL_js = require('./chunk-EMGXUNBL.js');
6
6
  var chunk5HJFQVUR_js = require('./chunk-5HJFQVUR.js');
7
7
  var chunk6DOEUDD5_js = require('./chunk-6DOEUDD5.js');
8
- var chunkDUZLPHRC_js = require('./chunk-DUZLPHRC.js');
8
+ var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
9
9
  var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
10
10
  var react$1 = require('@xyflow/react');
11
11
  var lucideReact = require('lucide-react');
@@ -560,7 +560,7 @@ function HelperLinesComponent({ draggingNodeId }) {
560
560
  }
561
561
  var HelperLines = react.memo(HelperLinesComponent);
562
562
  function NodeSearch() {
563
- const { activeModal, closeModal } = chunkDUZLPHRC_js.useUIStore();
563
+ const { activeModal, closeModal } = chunkAXFOCPPP_js.useUIStore();
564
564
  const { nodes, setSelectedNodeIds } = chunkIHF35QZD_js.useWorkflowStore();
565
565
  const reactFlow = react$1.useReactFlow();
566
566
  const [search, setSearch] = react.useState("");
@@ -758,7 +758,7 @@ var SHORTCUTS = [
758
758
  ];
759
759
  var CATEGORIES = ["Navigation", "Selection", "Editing", "Nodes", "Organization", "Help"];
760
760
  function ShortcutHelpModal() {
761
- const { activeModal, closeModal } = chunkDUZLPHRC_js.useUIStore();
761
+ const { activeModal, closeModal } = chunkAXFOCPPP_js.useUIStore();
762
762
  const [searchQuery, setSearchQuery] = react.useState("");
763
763
  const backdropRef = react.useRef(null);
764
764
  const inputRef = react.useRef(null);
@@ -864,7 +864,7 @@ function ShortcutHelpModal() {
864
864
  }
865
865
  var PROMPT_NODE_TYPES = ["prompt"];
866
866
  function NodeDetailModal() {
867
- const { activeModal, nodeDetailNodeId, nodeDetailStartIndex, closeNodeDetailModal } = chunkDUZLPHRC_js.useUIStore();
867
+ const { activeModal, nodeDetailNodeId, nodeDetailStartIndex, closeNodeDetailModal } = chunkAXFOCPPP_js.useUIStore();
868
868
  const { getNodeById } = chunkIHF35QZD_js.useWorkflowStore();
869
869
  const { openEditor } = chunk6DOEUDD5_js.usePromptEditorStore();
870
870
  const [zoomLevel, setZoomLevel] = react.useState(1);
@@ -1151,14 +1151,14 @@ function WorkflowCanvas({ nodeTypes: nodeTypesProp } = {}) {
1151
1151
  showPalette,
1152
1152
  togglePalette,
1153
1153
  openModal
1154
- } = chunkDUZLPHRC_js.useUIStore();
1154
+ } = chunkAXFOCPPP_js.useUIStore();
1155
1155
  const reactFlow = react$1.useReactFlow();
1156
- const { edgeStyle, showMinimap } = chunkDUZLPHRC_js.useSettingsStore();
1157
- const isRunning = chunkDUZLPHRC_js.useExecutionStore((state) => state.isRunning);
1158
- const currentNodeId = chunkDUZLPHRC_js.useExecutionStore((state) => state.currentNodeId);
1159
- const executingNodeIds = chunkDUZLPHRC_js.useExecutionStore((state) => state.executingNodeIds);
1160
- const activeNodeExecutions = chunkDUZLPHRC_js.useExecutionStore((state) => state.activeNodeExecutions);
1161
- const hasActiveNodeExecutions = chunkDUZLPHRC_js.useExecutionStore((state) => state.activeNodeExecutions.size > 0);
1156
+ const { edgeStyle, showMinimap } = chunkAXFOCPPP_js.useSettingsStore();
1157
+ const isRunning = chunkAXFOCPPP_js.useExecutionStore((state) => state.isRunning);
1158
+ const currentNodeId = chunkAXFOCPPP_js.useExecutionStore((state) => state.currentNodeId);
1159
+ const executingNodeIds = chunkAXFOCPPP_js.useExecutionStore((state) => state.executingNodeIds);
1160
+ const activeNodeExecutions = chunkAXFOCPPP_js.useExecutionStore((state) => state.activeNodeExecutions);
1161
+ const hasActiveNodeExecutions = chunkAXFOCPPP_js.useExecutionStore((state) => state.activeNodeExecutions.size > 0);
1162
1162
  const [isMinimapVisible, setIsMinimapVisible] = react.useState(false);
1163
1163
  const [draggingNodeId, setDraggingNodeId] = react.useState(null);
1164
1164
  const hideTimeoutRef = react.useRef(null);
@@ -1434,7 +1434,7 @@ function WorkflowCanvas({ nodeTypes: nodeTypesProp } = {}) {
1434
1434
  onNodeDrag: handleNodeDrag,
1435
1435
  onNodeDragStop: handleNodeDragStop,
1436
1436
  isValidConnection: checkValidConnection,
1437
- nodeTypes: nodeTypesProp ?? chunkH3JOHAS5_js.nodeTypes,
1437
+ nodeTypes: nodeTypesProp ?? chunkECD5J2BA_js.nodeTypes,
1438
1438
  fitView: true,
1439
1439
  snapToGrid: true,
1440
1440
  snapGrid: [16, 16],