@genfeedai/workflow-ui 0.1.0 → 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.
- package/dist/canvas.js +13 -13
- package/dist/canvas.mjs +7 -7
- package/dist/{chunk-HPQT36RR.js → chunk-3TMV3K34.js} +18 -27
- package/dist/{chunk-Z7PWFZG5.js → chunk-4MZ62VMF.js} +8 -1
- package/dist/{chunk-VOGL2WCE.mjs → chunk-7P2JWDC7.mjs} +9 -18
- package/dist/{chunk-FT64PCUP.mjs → chunk-AOTUCJMA.mjs} +6 -15
- package/dist/{chunk-LAJ34AH2.mjs → chunk-AUZR6REQ.mjs} +4 -7
- package/dist/{chunk-EC2ZIWOK.js → chunk-AXFOCPPP.js} +36 -45
- package/dist/{chunk-CETJJ73S.js → chunk-BMFRA6GK.js} +28 -37
- package/dist/{chunk-XV5Z5XYR.mjs → chunk-E3YBVMYZ.mjs} +403 -59
- package/dist/{chunk-H6LZKSLY.js → chunk-ECD5J2BA.js} +496 -152
- package/dist/{chunk-ADWNF7V3.js → chunk-EMGXUNBL.js} +3 -3
- package/dist/{chunk-22PDGHNQ.mjs → chunk-HCXI63ME.mjs} +2 -2
- package/dist/{chunk-UQQUWGHW.mjs → chunk-IASLG6IA.mjs} +1 -1
- package/dist/chunk-IHF35QZD.js +1095 -0
- package/dist/{chunk-E544XUBL.js → chunk-KDIWRSYV.js} +8 -11
- package/dist/chunk-RIGVIEYB.mjs +1093 -0
- package/dist/{chunk-SW7QNEZU.js → chunk-SEV2DWKF.js} +30 -30
- package/dist/{chunk-CSUBLSKZ.mjs → chunk-SQK4JDYY.mjs} +27 -36
- package/dist/{chunk-AC6TWLRT.mjs → chunk-ZJWP5KGZ.mjs} +8 -2
- package/dist/hooks.js +15 -15
- package/dist/hooks.mjs +5 -5
- package/dist/index.js +42 -42
- package/dist/index.mjs +9 -9
- package/dist/lib.js +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/nodes.js +38 -38
- package/dist/nodes.mjs +5 -5
- package/dist/panels.js +7 -7
- package/dist/panels.mjs +4 -4
- package/dist/provider.js +1 -1
- package/dist/provider.mjs +1 -1
- package/dist/stores.js +8 -8
- package/dist/stores.mjs +3 -3
- package/dist/toolbar.js +10 -10
- package/dist/toolbar.mjs +4 -4
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +1 -1
- package/dist/workflowStore-7SDJC4UR.mjs +3 -0
- package/dist/workflowStore-LNJQ5RZG.js +12 -0
- package/package.json +1 -1
- package/dist/chunk-BJ3R5R32.mjs +0 -2163
- package/dist/chunk-NSDLGLAQ.js +0 -2166
- package/dist/workflowStore-4EGKJLYK.mjs +0 -3
- package/dist/workflowStore-KM32FDL7.js +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
|
|
4
|
+
var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -104,10 +104,10 @@ function SaveAsDialog({ isOpen, currentName, onSave, onClose }) {
|
|
|
104
104
|
] });
|
|
105
105
|
}
|
|
106
106
|
function SaveIndicator() {
|
|
107
|
-
const isDirty =
|
|
108
|
-
const isSaving =
|
|
109
|
-
const autoSaveEnabled =
|
|
110
|
-
const toggleAutoSave =
|
|
107
|
+
const isDirty = chunkIHF35QZD_js.useWorkflowStore((state) => state.isDirty);
|
|
108
|
+
const isSaving = chunkIHF35QZD_js.useWorkflowStore((state) => state.isSaving);
|
|
109
|
+
const autoSaveEnabled = chunkAXFOCPPP_js.useSettingsStore((state) => state.autoSaveEnabled);
|
|
110
|
+
const toggleAutoSave = chunkAXFOCPPP_js.useSettingsStore((state) => state.toggleAutoSave);
|
|
111
111
|
if (!autoSaveEnabled) {
|
|
112
112
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
113
113
|
"button",
|
|
@@ -240,25 +240,25 @@ function Toolbar({
|
|
|
240
240
|
showSettings = true,
|
|
241
241
|
rightContent
|
|
242
242
|
}) {
|
|
243
|
-
const { exportWorkflow, workflowName } =
|
|
244
|
-
const { undo, redo } =
|
|
243
|
+
const { exportWorkflow, workflowName } = chunkIHF35QZD_js.useWorkflowStore();
|
|
244
|
+
const { undo, redo } = chunkIHF35QZD_js.useWorkflowStore.temporal.getState();
|
|
245
245
|
const [canUndo, setCanUndo] = react.useState(false);
|
|
246
246
|
const [canRedo, setCanRedo] = react.useState(false);
|
|
247
247
|
const [showSaveAsDialog, setShowSaveAsDialog] = react.useState(false);
|
|
248
|
-
const validationErrors =
|
|
249
|
-
const clearValidationErrors =
|
|
250
|
-
const { openModal } =
|
|
251
|
-
const debugMode =
|
|
248
|
+
const validationErrors = chunkAXFOCPPP_js.useExecutionStore((state) => state.validationErrors);
|
|
249
|
+
const clearValidationErrors = chunkAXFOCPPP_js.useExecutionStore((state) => state.clearValidationErrors);
|
|
250
|
+
const { openModal } = chunkAXFOCPPP_js.useUIStore();
|
|
251
|
+
const debugMode = chunkAXFOCPPP_js.useSettingsStore((s) => s.debugMode);
|
|
252
252
|
const uniqueErrorMessages = react.useMemo(() => {
|
|
253
253
|
if (!validationErrors?.errors.length) return [];
|
|
254
254
|
return [...new Set(validationErrors.errors.map((e) => e.message))];
|
|
255
255
|
}, [validationErrors]);
|
|
256
256
|
react.useEffect(() => {
|
|
257
|
-
const unsubscribe =
|
|
257
|
+
const unsubscribe = chunkIHF35QZD_js.useWorkflowStore.temporal.subscribe((state) => {
|
|
258
258
|
setCanUndo(state.pastStates.length > 0);
|
|
259
259
|
setCanRedo(state.futureStates.length > 0);
|
|
260
260
|
});
|
|
261
|
-
const temporal =
|
|
261
|
+
const temporal = chunkIHF35QZD_js.useWorkflowStore.temporal.getState();
|
|
262
262
|
setCanUndo(temporal.pastStates.length > 0);
|
|
263
263
|
setCanRedo(temporal.futureStates.length > 0);
|
|
264
264
|
return unsubscribe;
|
|
@@ -292,7 +292,7 @@ function Toolbar({
|
|
|
292
292
|
console.warn("[Toolbar] Invalid workflow file structure");
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
chunkIHF35QZD_js.useWorkflowStore.getState().loadWorkflow(data);
|
|
296
296
|
} catch {
|
|
297
297
|
console.warn("[Toolbar] Failed to parse workflow file");
|
|
298
298
|
}
|
|
@@ -461,16 +461,16 @@ function BottomBar() {
|
|
|
461
461
|
const [dropdownOpen, setDropdownOpen] = react.useState(false);
|
|
462
462
|
const batchCancelledRef = react.useRef(false);
|
|
463
463
|
const dropdownRef = react.useRef(null);
|
|
464
|
-
const isRunning =
|
|
465
|
-
const executeWorkflow =
|
|
466
|
-
const executeSelectedNodes =
|
|
467
|
-
const resumeFromFailed =
|
|
468
|
-
const canResumeFromFailed =
|
|
469
|
-
const stopExecution =
|
|
470
|
-
|
|
471
|
-
const selectedNodeIds =
|
|
472
|
-
const nodes =
|
|
473
|
-
const validateWorkflow =
|
|
464
|
+
const isRunning = chunkAXFOCPPP_js.useExecutionStore((s) => s.isRunning);
|
|
465
|
+
const executeWorkflow = chunkAXFOCPPP_js.useExecutionStore((s) => s.executeWorkflow);
|
|
466
|
+
const executeSelectedNodes = chunkAXFOCPPP_js.useExecutionStore((s) => s.executeSelectedNodes);
|
|
467
|
+
const resumeFromFailed = chunkAXFOCPPP_js.useExecutionStore((s) => s.resumeFromFailed);
|
|
468
|
+
const canResumeFromFailed = chunkAXFOCPPP_js.useExecutionStore((s) => s.canResumeFromFailed);
|
|
469
|
+
const stopExecution = chunkAXFOCPPP_js.useExecutionStore((s) => s.stopExecution);
|
|
470
|
+
chunkAXFOCPPP_js.useExecutionStore((s) => s.lastFailedNodeId);
|
|
471
|
+
const selectedNodeIds = chunkIHF35QZD_js.useWorkflowStore((s) => s.selectedNodeIds);
|
|
472
|
+
const nodes = chunkIHF35QZD_js.useWorkflowStore((s) => s.nodes);
|
|
473
|
+
const validateWorkflow = chunkIHF35QZD_js.useWorkflowStore((s) => s.validateWorkflow);
|
|
474
474
|
const canRunWorkflow = react.useMemo(() => {
|
|
475
475
|
if (nodes.length === 0) return false;
|
|
476
476
|
const validation = validateWorkflow();
|
|
@@ -486,11 +486,11 @@ function BottomBar() {
|
|
|
486
486
|
}, []);
|
|
487
487
|
const waitForExecutionEnd = react.useCallback(() => {
|
|
488
488
|
return new Promise((resolve) => {
|
|
489
|
-
if (!
|
|
489
|
+
if (!chunkAXFOCPPP_js.useExecutionStore.getState().isRunning) {
|
|
490
490
|
resolve();
|
|
491
491
|
return;
|
|
492
492
|
}
|
|
493
|
-
const unsubscribe =
|
|
493
|
+
const unsubscribe = chunkAXFOCPPP_js.useExecutionStore.subscribe((state) => {
|
|
494
494
|
if (!state.isRunning) {
|
|
495
495
|
unsubscribe();
|
|
496
496
|
resolve();
|
|
@@ -507,10 +507,10 @@ function BottomBar() {
|
|
|
507
507
|
setCurrentBatchRun(i + 1);
|
|
508
508
|
executeWorkflow();
|
|
509
509
|
await new Promise((r) => setTimeout(r, 50));
|
|
510
|
-
if (!
|
|
510
|
+
if (!chunkAXFOCPPP_js.useExecutionStore.getState().isRunning) break;
|
|
511
511
|
await waitForExecutionEnd();
|
|
512
|
-
if (
|
|
513
|
-
const { nodes: currentNodes, updateNodeData } =
|
|
512
|
+
if (chunkAXFOCPPP_js.useExecutionStore.getState().lastFailedNodeId) break;
|
|
513
|
+
const { nodes: currentNodes, updateNodeData } = chunkIHF35QZD_js.useWorkflowStore.getState();
|
|
514
514
|
for (const node of currentNodes) {
|
|
515
515
|
if (node.type !== "imageGen") continue;
|
|
516
516
|
const nodeData = node.data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { __toESM } from './chunk-AC6TWLRT.mjs';
|
|
1
|
+
import { useWorkflowStore } from './chunk-RIGVIEYB.mjs';
|
|
3
2
|
import { create } from 'zustand';
|
|
3
|
+
import { ProviderTypeEnum, NodeStatusEnum } from '@genfeedai/types';
|
|
4
4
|
|
|
5
5
|
var notificationId = 0;
|
|
6
6
|
var useUIStore = create((set) => ({
|
|
@@ -84,9 +84,6 @@ var useUIStore = create((set) => ({
|
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
86
|
}));
|
|
87
|
-
|
|
88
|
-
// src/stores/settingsStore.ts
|
|
89
|
-
var import_types = __toESM(require_dist());
|
|
90
87
|
var STORAGE_KEY = "genfeed-settings";
|
|
91
88
|
var MAX_RECENT_MODELS = 8;
|
|
92
89
|
var DEFAULT_SETTINGS = {
|
|
@@ -214,7 +211,7 @@ var useSettingsStore = create((set, get) => {
|
|
|
214
211
|
},
|
|
215
212
|
setEdgeStyle: (style) => {
|
|
216
213
|
setAndPersist(() => ({ edgeStyle: style }));
|
|
217
|
-
import('./workflowStore-
|
|
214
|
+
import('./workflowStore-7SDJC4UR.mjs').then(({ useWorkflowStore: useWorkflowStore2 }) => {
|
|
218
215
|
useWorkflowStore2.getState().setEdgeStyle(style);
|
|
219
216
|
});
|
|
220
217
|
},
|
|
@@ -269,10 +266,10 @@ var useSettingsStore = create((set, get) => {
|
|
|
269
266
|
const key = state.providers[provider].apiKey;
|
|
270
267
|
if (!key) return {};
|
|
271
268
|
const headerMap = {
|
|
272
|
-
[
|
|
273
|
-
[
|
|
274
|
-
[
|
|
275
|
-
[
|
|
269
|
+
[ProviderTypeEnum.REPLICATE]: "X-Replicate-Key",
|
|
270
|
+
[ProviderTypeEnum.FAL]: "X-Fal-Key",
|
|
271
|
+
[ProviderTypeEnum.HUGGINGFACE]: "X-HF-Key",
|
|
272
|
+
[ProviderTypeEnum.GENFEED_AI]: "X-Genfeed-Key"
|
|
276
273
|
};
|
|
277
274
|
return { [headerMap[provider]]: key };
|
|
278
275
|
},
|
|
@@ -285,34 +282,28 @@ var useSettingsStore = create((set, get) => {
|
|
|
285
282
|
};
|
|
286
283
|
});
|
|
287
284
|
var PROVIDER_INFO = {
|
|
288
|
-
[
|
|
285
|
+
[ProviderTypeEnum.REPLICATE]: {
|
|
289
286
|
name: "Replicate",
|
|
290
287
|
description: "Access thousands of open-source AI models",
|
|
291
288
|
docsUrl: "https://replicate.com/docs"
|
|
292
289
|
},
|
|
293
|
-
[
|
|
290
|
+
[ProviderTypeEnum.FAL]: {
|
|
294
291
|
name: "fal.ai",
|
|
295
292
|
description: "Fast inference for image and video generation",
|
|
296
293
|
docsUrl: "https://fal.ai/docs"
|
|
297
294
|
},
|
|
298
|
-
[
|
|
295
|
+
[ProviderTypeEnum.HUGGINGFACE]: {
|
|
299
296
|
name: "Hugging Face",
|
|
300
297
|
description: "The AI community platform with 500k+ models",
|
|
301
298
|
docsUrl: "https://huggingface.co/docs/api-inference"
|
|
302
299
|
},
|
|
303
|
-
[
|
|
300
|
+
[ProviderTypeEnum.GENFEED_AI]: {
|
|
304
301
|
name: "Genfeed AI",
|
|
305
302
|
description: "Built-in models powered by Genfeed",
|
|
306
303
|
docsUrl: "https://genfeed.ai/docs"
|
|
307
304
|
}
|
|
308
305
|
};
|
|
309
306
|
|
|
310
|
-
// src/stores/execution/slices/executionSlice.ts
|
|
311
|
-
var import_types3 = __toESM(require_dist());
|
|
312
|
-
|
|
313
|
-
// src/stores/execution/helpers/sseSubscription.ts
|
|
314
|
-
var import_types2 = __toESM(require_dist());
|
|
315
|
-
|
|
316
307
|
// src/stores/execution/helpers/outputHelpers.ts
|
|
317
308
|
function extractOutputValue(output) {
|
|
318
309
|
if (!output) return null;
|
|
@@ -394,11 +385,11 @@ function getOutputUpdate(nodeId, output, workflowStore) {
|
|
|
394
385
|
// src/stores/execution/helpers/sseSubscription.ts
|
|
395
386
|
var API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://local.genfeed.ai:3001/api";
|
|
396
387
|
var statusMap = {
|
|
397
|
-
pending:
|
|
398
|
-
processing:
|
|
399
|
-
complete:
|
|
400
|
-
succeeded:
|
|
401
|
-
error:
|
|
388
|
+
pending: NodeStatusEnum.IDLE,
|
|
389
|
+
processing: NodeStatusEnum.PROCESSING,
|
|
390
|
+
complete: NodeStatusEnum.COMPLETE,
|
|
391
|
+
succeeded: NodeStatusEnum.COMPLETE,
|
|
392
|
+
error: NodeStatusEnum.ERROR
|
|
402
393
|
};
|
|
403
394
|
function applyJobUpdates(jobs, workflowStore, debugMode, set, filterNodeId) {
|
|
404
395
|
if (!jobs || jobs.length === 0) return;
|
|
@@ -466,7 +457,7 @@ async function reconcileNodeStatuses(executionId) {
|
|
|
466
457
|
const execution = await response.json();
|
|
467
458
|
const workflowStore = useWorkflowStore.getState();
|
|
468
459
|
for (const nodeResult of execution.nodeResults || []) {
|
|
469
|
-
const nodeStatus = statusMap[nodeResult.status] ??
|
|
460
|
+
const nodeStatus = statusMap[nodeResult.status] ?? NodeStatusEnum.IDLE;
|
|
470
461
|
const isSuccess = nodeResult.status === "complete" || nodeResult.status === "succeeded";
|
|
471
462
|
workflowStore.updateNodeData(nodeResult.nodeId, {
|
|
472
463
|
status: nodeStatus,
|
|
@@ -491,7 +482,7 @@ function createExecutionSubscription(executionId, set) {
|
|
|
491
482
|
const workflowStore = useWorkflowStore.getState();
|
|
492
483
|
const nodeResults = data.nodeResults || [];
|
|
493
484
|
for (const nodeResult of nodeResults) {
|
|
494
|
-
const nodeStatus = statusMap[nodeResult.status] ??
|
|
485
|
+
const nodeStatus = statusMap[nodeResult.status] ?? NodeStatusEnum.IDLE;
|
|
495
486
|
const isSuccess = nodeResult.status === "complete" || nodeResult.status === "succeeded";
|
|
496
487
|
workflowStore.updateNodeData(nodeResult.nodeId, {
|
|
497
488
|
status: nodeStatus,
|
|
@@ -542,7 +533,7 @@ function createNodeExecutionSubscription(executionId, nodeId, set, _get) {
|
|
|
542
533
|
const workflowStore = useWorkflowStore.getState();
|
|
543
534
|
const nodeResults = data.nodeResults || [];
|
|
544
535
|
for (const nodeResult of nodeResults) {
|
|
545
|
-
const nodeStatus = statusMap[nodeResult.status] ??
|
|
536
|
+
const nodeStatus = statusMap[nodeResult.status] ?? NodeStatusEnum.IDLE;
|
|
546
537
|
const isSuccess = nodeResult.status === "complete" || nodeResult.status === "succeeded";
|
|
547
538
|
workflowStore.updateNodeData(nodeResult.nodeId, {
|
|
548
539
|
status: nodeStatus,
|
|
@@ -648,7 +639,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
648
639
|
set({ isRunning: true });
|
|
649
640
|
for (const node of workflowStore.nodes) {
|
|
650
641
|
workflowStore.updateNodeData(node.id, {
|
|
651
|
-
status:
|
|
642
|
+
status: NodeStatusEnum.IDLE,
|
|
652
643
|
error: void 0,
|
|
653
644
|
progress: void 0
|
|
654
645
|
});
|
|
@@ -685,7 +676,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
685
676
|
await workflowStore.saveWorkflow();
|
|
686
677
|
} catch {
|
|
687
678
|
workflowStore.updateNodeData(nodeId, {
|
|
688
|
-
status:
|
|
679
|
+
status: NodeStatusEnum.ERROR,
|
|
689
680
|
error: "Failed to save workflow"
|
|
690
681
|
});
|
|
691
682
|
return;
|
|
@@ -694,7 +685,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
694
685
|
const workflowId = workflowStore.workflowId;
|
|
695
686
|
if (!workflowId) {
|
|
696
687
|
workflowStore.updateNodeData(nodeId, {
|
|
697
|
-
status:
|
|
688
|
+
status: NodeStatusEnum.ERROR,
|
|
698
689
|
error: "Workflow must be saved first"
|
|
699
690
|
});
|
|
700
691
|
return;
|
|
@@ -721,7 +712,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
721
712
|
});
|
|
722
713
|
} catch (error) {
|
|
723
714
|
workflowStore.updateNodeData(nodeId, {
|
|
724
|
-
status:
|
|
715
|
+
status: NodeStatusEnum.ERROR,
|
|
725
716
|
error: error instanceof Error ? error.message : "Node execution failed"
|
|
726
717
|
});
|
|
727
718
|
}
|
|
@@ -775,7 +766,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
775
766
|
}
|
|
776
767
|
for (const nodeId of selectedNodeIds) {
|
|
777
768
|
workflowStore.updateNodeData(nodeId, {
|
|
778
|
-
status:
|
|
769
|
+
status: NodeStatusEnum.IDLE,
|
|
779
770
|
error: void 0,
|
|
780
771
|
progress: void 0
|
|
781
772
|
});
|
|
@@ -826,7 +817,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
826
817
|
useUIStore.getState().setShowDebugPanel(true);
|
|
827
818
|
}
|
|
828
819
|
workflowStore.updateNodeData(lastFailedNodeId, {
|
|
829
|
-
status:
|
|
820
|
+
status: NodeStatusEnum.IDLE,
|
|
830
821
|
error: void 0,
|
|
831
822
|
progress: void 0
|
|
832
823
|
});
|
|
@@ -883,7 +874,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
883
874
|
});
|
|
884
875
|
}
|
|
885
876
|
const workflowStore = useWorkflowStore.getState();
|
|
886
|
-
workflowStore.updateNodeData(nodeId, { status:
|
|
877
|
+
workflowStore.updateNodeData(nodeId, { status: NodeStatusEnum.IDLE, error: void 0 });
|
|
887
878
|
},
|
|
888
879
|
isNodeExecuting: (nodeId) => {
|
|
889
880
|
const { activeNodeExecutions } = get();
|
|
@@ -915,7 +906,7 @@ var createExecutionSlice = (set, get) => ({
|
|
|
915
906
|
const workflowStore = useWorkflowStore.getState();
|
|
916
907
|
for (const node of workflowStore.nodes) {
|
|
917
908
|
workflowStore.updateNodeData(node.id, {
|
|
918
|
-
status:
|
|
909
|
+
status: NodeStatusEnum.IDLE,
|
|
919
910
|
error: void 0,
|
|
920
911
|
progress: void 0
|
|
921
912
|
});
|
|
@@ -4,7 +4,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var
|
|
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() {
|
|
8
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
15
|
};
|
|
10
16
|
var __copyProps = (to, from, except, desc) => {
|
|
@@ -24,4 +30,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
30
|
mod
|
|
25
31
|
));
|
|
26
32
|
|
|
27
|
-
export { __commonJS, __toESM };
|
|
33
|
+
export { __commonJS, __require, __toESM };
|
package/dist/hooks.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-FOMOOERN.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkEMGXUNBL_js = require('./chunk-EMGXUNBL.js');
|
|
5
|
+
var chunk3TMV3K34_js = require('./chunk-3TMV3K34.js');
|
|
6
6
|
require('./chunk-5HJFQVUR.js');
|
|
7
7
|
require('./chunk-EMUMKW5C.js');
|
|
8
8
|
require('./chunk-JLWKW3G5.js');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-AXFOCPPP.js');
|
|
10
|
+
require('./chunk-IHF35QZD.js');
|
|
11
11
|
require('./chunk-RJ262NXS.js');
|
|
12
12
|
require('./chunk-RXNEDWK2.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-4MZ62VMF.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "useCanvasKeyboardShortcuts", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkEMGXUNBL_js.useCanvasKeyboardShortcuts; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "useAIGenNode", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk3TMV3K34_js.useAIGenNode; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "useAIGenNodeHeader", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk3TMV3K34_js.useAIGenNodeHeader; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "useAutoLoadModelSchema", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk3TMV3K34_js.useAutoLoadModelSchema; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "useCanGenerate", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk3TMV3K34_js.useCanGenerate; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "useMediaUpload", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk3TMV3K34_js.useMediaUpload; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "useModelSelection", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk3TMV3K34_js.useModelSelection; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useNodeExecution", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk3TMV3K34_js.useNodeExecution; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "usePromptAutocomplete", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk3TMV3K34_js.usePromptAutocomplete; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "useRequiredInputs", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk3TMV3K34_js.useRequiredInputs; }
|
|
56
56
|
});
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './chunk-L5TF4EHW.mjs';
|
|
2
|
-
export { useCanvasKeyboardShortcuts } from './chunk-
|
|
3
|
-
export { useAIGenNode, useAIGenNodeHeader, useAutoLoadModelSchema, useCanGenerate, useMediaUpload, useModelSelection, useNodeExecution, usePromptAutocomplete, useRequiredInputs } from './chunk-
|
|
2
|
+
export { useCanvasKeyboardShortcuts } from './chunk-IASLG6IA.mjs';
|
|
3
|
+
export { useAIGenNode, useAIGenNodeHeader, useAutoLoadModelSchema, useCanGenerate, useMediaUpload, useModelSelection, useNodeExecution, usePromptAutocomplete, useRequiredInputs } from './chunk-AOTUCJMA.mjs';
|
|
4
4
|
import './chunk-7SKSRSS7.mjs';
|
|
5
5
|
import './chunk-EFXQT23N.mjs';
|
|
6
6
|
import './chunk-LDN7IX4Y.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-SQK4JDYY.mjs';
|
|
8
|
+
import './chunk-RIGVIEYB.mjs';
|
|
9
9
|
import './chunk-FT33LFII.mjs';
|
|
10
10
|
import './chunk-VRN3UWE5.mjs';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-ZJWP5KGZ.mjs';
|
package/dist/index.js
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkBMFRA6GK_js = require('./chunk-BMFRA6GK.js');
|
|
4
|
+
var chunkECD5J2BA_js = require('./chunk-ECD5J2BA.js');
|
|
5
5
|
require('./chunk-3SPPKCWR.js');
|
|
6
6
|
require('./chunk-3YFFDHC5.js');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunkKDIWRSYV_js = require('./chunk-KDIWRSYV.js');
|
|
8
|
+
var chunkSEV2DWKF_js = require('./chunk-SEV2DWKF.js');
|
|
9
9
|
require('./chunk-FOMOOERN.js');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var chunkEMGXUNBL_js = require('./chunk-EMGXUNBL.js');
|
|
11
|
+
var chunk3TMV3K34_js = require('./chunk-3TMV3K34.js');
|
|
12
12
|
require('./chunk-5HJFQVUR.js');
|
|
13
13
|
require('./chunk-EMUMKW5C.js');
|
|
14
14
|
var chunk6DOEUDD5_js = require('./chunk-6DOEUDD5.js');
|
|
15
15
|
require('./chunk-JLWKW3G5.js');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
|
|
17
|
+
var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
|
|
18
18
|
require('./chunk-5LQ4QBR5.js');
|
|
19
19
|
var chunkRJ262NXS_js = require('./chunk-RJ262NXS.js');
|
|
20
20
|
var chunkRXNEDWK2_js = require('./chunk-RXNEDWK2.js');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-4MZ62VMF.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "DEFAULT_GROUP_COLORS", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkBMFRA6GK_js.DEFAULT_GROUP_COLORS; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "GROUP_COLORS", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkBMFRA6GK_js.GROUP_COLORS; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "GroupOverlay", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkBMFRA6GK_js.GroupOverlay; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "HelperLines", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkBMFRA6GK_js.HelperLines; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "NodeSearch", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkBMFRA6GK_js.NodeSearch; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "PauseEdge", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkBMFRA6GK_js.PauseEdge; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "ShortcutHelpModal", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkBMFRA6GK_js.ShortcutHelpModal; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "WorkflowCanvas", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkBMFRA6GK_js.WorkflowCanvas; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "BaseNode", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkECD5J2BA_js.BaseNode; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "nodeTypes", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkECD5J2BA_js.nodeTypes; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "DebugPanel", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkKDIWRSYV_js.DebugPanel; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "NodePalette", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkKDIWRSYV_js.NodePalette; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "PanelContainer", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkKDIWRSYV_js.PanelContainer; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "BottomBar", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkSEV2DWKF_js.BottomBar; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "OverflowMenu", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkSEV2DWKF_js.OverflowMenu; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "SaveAsDialog", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkSEV2DWKF_js.SaveAsDialog; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "SaveIndicator", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkSEV2DWKF_js.SaveIndicator; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "Toolbar", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkSEV2DWKF_js.Toolbar; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ToolbarDropdown", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkSEV2DWKF_js.ToolbarDropdown; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "useCanvasKeyboardShortcuts", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkEMGXUNBL_js.useCanvasKeyboardShortcuts; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "useAIGenNode", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk3TMV3K34_js.useAIGenNode; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "useAIGenNodeHeader", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunk3TMV3K34_js.useAIGenNodeHeader; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "useAutoLoadModelSchema", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunk3TMV3K34_js.useAutoLoadModelSchema; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "useCanGenerate", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunk3TMV3K34_js.useCanGenerate; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "useMediaUpload", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk3TMV3K34_js.useMediaUpload; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "useModelSelection", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk3TMV3K34_js.useModelSelection; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "useNodeExecution", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk3TMV3K34_js.useNodeExecution; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "usePromptAutocomplete", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk3TMV3K34_js.usePromptAutocomplete; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "useRequiredInputs", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk3TMV3K34_js.useRequiredInputs; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "useAnnotationStore", {
|
|
142
142
|
enumerable: true,
|
|
@@ -148,19 +148,19 @@ Object.defineProperty(exports, "usePromptEditorStore", {
|
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "useExecutionStore", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkAXFOCPPP_js.useExecutionStore; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "useSettingsStore", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkAXFOCPPP_js.useSettingsStore; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "useUIStore", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkAXFOCPPP_js.useUIStore; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "useWorkflowStore", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkIHF35QZD_js.useWorkflowStore; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "WorkflowUIProvider", {
|
|
166
166
|
enumerable: true,
|