@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,14 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var chunkZ7PWFZG5_js = require('./chunk-Z7PWFZG5.js');
|
|
3
|
+
var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
|
|
4
|
+
var types = require('@genfeedai/types');
|
|
6
5
|
var lucideReact = require('lucide-react');
|
|
7
6
|
var react = require('react');
|
|
8
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
8
|
|
|
10
|
-
// src/panels/NodePalette.tsx
|
|
11
|
-
var import_types = chunkZ7PWFZG5_js.__toESM(chunkNSDLGLAQ_js.require_dist());
|
|
12
9
|
var ICONS = {
|
|
13
10
|
// Input
|
|
14
11
|
Image: lucideReact.Image,
|
|
@@ -107,7 +104,7 @@ function NodeCard({ type, label, description, icon, category }) {
|
|
|
107
104
|
);
|
|
108
105
|
}
|
|
109
106
|
function CategorySection({ category, isExpanded, onToggle }) {
|
|
110
|
-
const nodes =
|
|
107
|
+
const nodes = types.getNodesByCategory()[category];
|
|
111
108
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-[var(--border)] last:border-0", children: [
|
|
112
109
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
113
110
|
"button",
|
|
@@ -135,12 +132,12 @@ function CategorySection({ category, isExpanded, onToggle }) {
|
|
|
135
132
|
] });
|
|
136
133
|
}
|
|
137
134
|
function NodePalette() {
|
|
138
|
-
const { togglePalette } =
|
|
135
|
+
const { togglePalette } = chunkAXFOCPPP_js.useUIStore();
|
|
139
136
|
const [searchQuery, setSearchQuery] = react.useState("");
|
|
140
137
|
const [expandedCategories, setExpandedCategories] = react.useState(
|
|
141
138
|
/* @__PURE__ */ new Set(["input"])
|
|
142
139
|
);
|
|
143
|
-
const nodesByCategory = react.useMemo(() =>
|
|
140
|
+
const nodesByCategory = react.useMemo(() => types.getNodesByCategory(), []);
|
|
144
141
|
const filteredNodes = react.useMemo(() => {
|
|
145
142
|
if (!searchQuery.trim()) return null;
|
|
146
143
|
const query = searchQuery.toLowerCase();
|
|
@@ -319,9 +316,9 @@ function PayloadCard({ payload }) {
|
|
|
319
316
|
] });
|
|
320
317
|
}
|
|
321
318
|
function DebugPanelComponent() {
|
|
322
|
-
const debugPayloads =
|
|
323
|
-
const clearDebugPayloads =
|
|
324
|
-
const setShowDebugPanel =
|
|
319
|
+
const debugPayloads = chunkAXFOCPPP_js.useExecutionStore((s) => s.debugPayloads);
|
|
320
|
+
const clearDebugPayloads = chunkAXFOCPPP_js.useExecutionStore((s) => s.clearDebugPayloads);
|
|
321
|
+
const setShowDebugPanel = chunkAXFOCPPP_js.useUIStore((s) => s.setShowDebugPanel);
|
|
325
322
|
const handleClose = react.useCallback(() => {
|
|
326
323
|
setShowDebugPanel(false);
|
|
327
324
|
}, [setShowDebugPanel]);
|