@genfeedai/workflow-ui 0.2.2 → 0.2.4

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 (47) hide show
  1. package/README.md +11 -33
  2. package/dist/canvas.d.ts +22 -22
  3. package/dist/canvas.mjs +16 -17
  4. package/dist/{chunk-WBR34V4L.mjs → chunk-2FUPL67V.mjs} +1593 -1045
  5. package/dist/{chunk-4VEN4UN7.mjs → chunk-53XDE62A.mjs} +818 -623
  6. package/dist/{chunk-PCIWWD37.mjs → chunk-7LV4UAUS.mjs} +19 -19
  7. package/dist/{chunk-7SKSRSS7.mjs → chunk-B4EAAKYF.mjs} +16 -16
  8. package/dist/{chunk-ZJD5WMR3.mjs → chunk-C6MQBJFC.mjs} +45 -13
  9. package/dist/{chunk-7H3WJJYS.mjs → chunk-ESVULCFY.mjs} +12 -6
  10. package/dist/{chunk-GWBGK3KL.mjs → chunk-FWJIAW2E.mjs} +82 -47
  11. package/dist/{chunk-R727OFBR.mjs → chunk-GPYIIWD5.mjs} +404 -350
  12. package/dist/{chunk-OQREHJXK.mjs → chunk-IYFWAJBB.mjs} +208 -203
  13. package/dist/{chunk-2JQSKIWR.mjs → chunk-MGLAKMDP.mjs} +24 -23
  14. package/dist/{chunk-LT3ZJJL6.mjs → chunk-OJWVEEMM.mjs} +497 -399
  15. package/dist/{chunk-ZD2BADZO.mjs → chunk-ORVDYXDP.mjs} +221 -175
  16. package/dist/{chunk-CV4M7CNU.mjs → chunk-QQVHGJ2G.mjs} +149 -142
  17. package/dist/{chunk-6PSJTBNV.mjs → chunk-U4QPE4CY.mjs} +387 -347
  18. package/dist/{chunk-EFXQT23N.mjs → chunk-VVQ4CH77.mjs} +5 -5
  19. package/dist/{chunk-VRN3UWE5.mjs → chunk-XRC3O5GK.mjs} +73 -73
  20. package/dist/{chunk-FT33LFII.mjs → chunk-YUIK4AHM.mjs} +1 -1
  21. package/dist/{chunk-JT4Y5H3U.mjs → chunk-ZSITTZ4S.mjs} +630 -569
  22. package/dist/hooks.d.ts +37 -37
  23. package/dist/hooks.mjs +10 -10
  24. package/dist/index.d.ts +26 -11
  25. package/dist/index.mjs +99 -20
  26. package/dist/lib.d.ts +203 -203
  27. package/dist/lib.mjs +228 -199
  28. package/dist/nodes.d.ts +2 -2
  29. package/dist/nodes.mjs +12 -13
  30. package/dist/panels.d.ts +2 -3
  31. package/dist/panels.mjs +3 -3
  32. package/dist/provider.d.ts +2 -2
  33. package/dist/provider.mjs +2 -2
  34. package/dist/stores.d.ts +5 -5
  35. package/dist/stores.mjs +5 -5
  36. package/dist/toolbar.d.ts +42 -24
  37. package/dist/toolbar.mjs +4 -5
  38. package/dist/ui.d.ts +2 -2
  39. package/dist/ui.mjs +2 -2
  40. package/dist/{useCommentNavigation-BakbiiIc.d.ts → useRequiredInputs-ByoIS-fT.d.ts} +160 -160
  41. package/dist/{promptLibraryStore-Dl3Q3cP6.d.ts → workflowStore-Bsz0nd5c.d.ts} +368 -368
  42. package/dist/workflowStore-N2F7WIG3.mjs +2 -0
  43. package/package.json +79 -77
  44. package/src/styles/workflow-ui.css +56 -19
  45. package/dist/chunk-OY7BRSGG.mjs +0 -60
  46. package/dist/workflowStore-UAAKOOIK.mjs +0 -2
  47. package/dist/{types-IEKYuYhu.d.ts → types-CRXJnajq.d.ts} +1 -1
package/README.md CHANGED
@@ -1,52 +1,30 @@
1
1
  # @genfeedai/workflow-ui
2
2
 
3
- Shared UI components for the Genfeed workflow editor built on React Flow.
3
+ Shared workflow editor UI components built on React Flow.
4
4
 
5
- ## Installation
5
+ ## Install
6
6
 
7
7
  ```bash
8
- npm install @genfeedai/workflow-ui
9
- # or
10
- bun add @genfeedai/workflow-ui
11
- ```
12
-
13
- ### Peer Dependencies
14
-
15
- ```bash
16
- npm install @xyflow/react react react-dom zustand zundo next
8
+ npm i @genfeedai/workflow-ui
17
9
  ```
18
10
 
19
11
  ## Usage
20
12
 
21
- ```typescript
13
+ ```ts
22
14
  import { WorkflowCanvas } from '@genfeedai/workflow-ui/canvas';
15
+ import { WorkflowUIProvider } from '@genfeedai/workflow-ui/provider';
23
16
  import { useWorkflowStore } from '@genfeedai/workflow-ui/stores';
24
- import { WorkflowProvider } from '@genfeedai/workflow-ui/provider';
17
+ import '@genfeedai/workflow-ui/styles';
25
18
  ```
26
19
 
27
- ### Subpath Exports
28
-
29
- | Export | Description |
30
- |--------|-------------|
31
- | `@genfeedai/workflow-ui` | Main entry (re-exports all) |
32
- | `@genfeedai/workflow-ui/canvas` | Workflow canvas components |
33
- | `@genfeedai/workflow-ui/nodes` | Node type components |
34
- | `@genfeedai/workflow-ui/panels` | Side panels (inspector, settings) |
35
- | `@genfeedai/workflow-ui/toolbar` | Toolbar components |
36
- | `@genfeedai/workflow-ui/hooks` | React hooks |
37
- | `@genfeedai/workflow-ui/stores` | Zustand stores |
38
- | `@genfeedai/workflow-ui/provider` | Context providers |
39
- | `@genfeedai/workflow-ui/ui` | Primitive UI components |
40
- | `@genfeedai/workflow-ui/lib` | Utility functions |
41
- | `@genfeedai/workflow-ui/styles` | CSS stylesheet |
20
+ ## Related Packages
42
21
 
43
- ### Styles
22
+ - `@genfeedai/types`
23
+ - `@genfeedai/core`
44
24
 
45
- Import the stylesheet in your app:
25
+ ## Build Faster with Genfeed
46
26
 
47
- ```typescript
48
- import '@genfeedai/workflow-ui/styles';
49
- ```
27
+ Embed the workflow UI in your own product, or use Genfeed out of the box at [https://genfeed.ai](https://genfeed.ai).
50
28
 
51
29
  ## License
52
30
 
package/dist/canvas.d.ts CHANGED
@@ -1,15 +1,19 @@
1
+ import * as react from 'react';
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { NodeTypes, EdgeProps } from '@xyflow/react';
3
+ import { EdgeProps, NodeTypes } from '@xyflow/react';
3
4
  import { WorkflowNode } from '@genfeedai/types';
4
- import * as react from 'react';
5
5
 
6
- interface WorkflowCanvasProps {
7
- /** Override default node types. Pass merged core + cloud nodeTypes here. */
8
- nodeTypes?: NodeTypes;
9
- /** Optional callback for download-as-ZIP of selected nodes */
10
- onDownloadAsZip?: (nodes: WorkflowNode[]) => void;
11
- }
12
- declare function WorkflowCanvas({ nodeTypes: nodeTypesProp, onDownloadAsZip }?: WorkflowCanvasProps): react_jsx_runtime.JSX.Element;
6
+ declare function ConnectionDropMenuComponent(): react_jsx_runtime.JSX.Element | null;
7
+ declare const ConnectionDropMenu: react.MemoExoticComponent<typeof ConnectionDropMenuComponent>;
8
+
9
+ declare function EdgeToolbarComponent(): react_jsx_runtime.JSX.Element | null;
10
+ declare const EdgeToolbar: react.MemoExoticComponent<typeof EdgeToolbarComponent>;
11
+
12
+ declare function EditableEdgeComponent({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, markerEnd, data, selected, }: EdgeProps): react_jsx_runtime.JSX.Element;
13
+ declare const EditableEdge: react.MemoExoticComponent<typeof EditableEdgeComponent>;
14
+
15
+ declare function GroupOverlayComponent(): react_jsx_runtime.JSX.Element;
16
+ declare const GroupOverlay: react.MemoExoticComponent<typeof GroupOverlayComponent>;
13
17
 
14
18
  interface HelperLinesProps {
15
19
  draggingNodeId: string | null;
@@ -17,25 +21,21 @@ interface HelperLinesProps {
17
21
  declare function HelperLinesComponent({ draggingNodeId }: HelperLinesProps): react_jsx_runtime.JSX.Element | null;
18
22
  declare const HelperLines: react.MemoExoticComponent<typeof HelperLinesComponent>;
19
23
 
20
- declare function GroupOverlayComponent(): react_jsx_runtime.JSX.Element;
21
- declare const GroupOverlay: react.MemoExoticComponent<typeof GroupOverlayComponent>;
22
-
23
24
  declare function NodeSearch(): react_jsx_runtime.JSX.Element | null;
24
25
 
25
- declare function ShortcutHelpModal(): react_jsx_runtime.JSX.Element | null;
26
-
27
26
  declare function PauseEdgeComponent({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, markerEnd, data, }: EdgeProps): react_jsx_runtime.JSX.Element;
28
27
  declare const PauseEdge: react.MemoExoticComponent<typeof PauseEdgeComponent>;
29
28
 
30
- declare function ConnectionDropMenuComponent(): react_jsx_runtime.JSX.Element | null;
31
- declare const ConnectionDropMenu: react.MemoExoticComponent<typeof ConnectionDropMenuComponent>;
32
-
33
- declare function EditableEdgeComponent({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, markerEnd, data, selected, }: EdgeProps): react_jsx_runtime.JSX.Element;
34
- declare const EditableEdge: react.MemoExoticComponent<typeof EditableEdgeComponent>;
29
+ declare function ReferenceEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, markerEnd, source, target, }: EdgeProps): react_jsx_runtime.JSX.Element;
35
30
 
36
- declare function EdgeToolbarComponent(): react_jsx_runtime.JSX.Element | null;
37
- declare const EdgeToolbar: react.MemoExoticComponent<typeof EdgeToolbarComponent>;
31
+ declare function ShortcutHelpModal(): react_jsx_runtime.JSX.Element | null;
38
32
 
39
- declare function ReferenceEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, markerEnd, source, target, }: EdgeProps): react_jsx_runtime.JSX.Element;
33
+ interface WorkflowCanvasProps {
34
+ /** Override default node types. Pass merged core + cloud nodeTypes here. */
35
+ nodeTypes?: NodeTypes;
36
+ /** Optional callback for download-as-ZIP of selected nodes */
37
+ onDownloadAsZip?: (nodes: WorkflowNode[]) => void;
38
+ }
39
+ declare function WorkflowCanvas({ nodeTypes: nodeTypesProp, onDownloadAsZip, }?: WorkflowCanvasProps): react_jsx_runtime.JSX.Element;
40
40
 
41
41
  export { ConnectionDropMenu, EdgeToolbar, EditableEdge, GroupOverlay, HelperLines, NodeSearch, PauseEdge, ReferenceEdge, ShortcutHelpModal, WorkflowCanvas };
package/dist/canvas.mjs CHANGED
@@ -1,18 +1,17 @@
1
- export { ConnectionDropMenu, EdgeToolbar, EditableEdge, GroupOverlay, HelperLines, NodeSearch, PauseEdge, ReferenceEdge, ShortcutHelpModal, WorkflowCanvas } from './chunk-4VEN4UN7.mjs';
2
- import './chunk-WBR34V4L.mjs';
3
- import './chunk-ZJD5WMR3.mjs';
4
- import './chunk-6PSJTBNV.mjs';
5
- import './chunk-2JQSKIWR.mjs';
6
- import './chunk-OY7BRSGG.mjs';
7
- import './chunk-ZD2BADZO.mjs';
8
- import './chunk-GWBGK3KL.mjs';
9
- import './chunk-7SKSRSS7.mjs';
10
- import './chunk-EFXQT23N.mjs';
11
- import './chunk-CV4M7CNU.mjs';
12
- import './chunk-PCIWWD37.mjs';
13
- import './chunk-LDN7IX4Y.mjs';
14
- import './chunk-LT3ZJJL6.mjs';
15
- import './chunk-R727OFBR.mjs';
1
+ export { ConnectionDropMenu, EdgeToolbar, EditableEdge, GroupOverlay, HelperLines, NodeSearch, PauseEdge, ReferenceEdge, ShortcutHelpModal, WorkflowCanvas } from './chunk-53XDE62A.mjs';
2
+ import './chunk-ORVDYXDP.mjs';
3
+ import './chunk-MGLAKMDP.mjs';
4
+ import './chunk-2FUPL67V.mjs';
5
+ import './chunk-C6MQBJFC.mjs';
6
+ import './chunk-FWJIAW2E.mjs';
7
+ import './chunk-B4EAAKYF.mjs';
8
+ import './chunk-U4QPE4CY.mjs';
9
+ import './chunk-VVQ4CH77.mjs';
16
10
  import './chunk-MLJJBBTB.mjs';
17
- import './chunk-FT33LFII.mjs';
18
- import './chunk-VRN3UWE5.mjs';
11
+ import './chunk-YUIK4AHM.mjs';
12
+ import './chunk-7LV4UAUS.mjs';
13
+ import './chunk-QQVHGJ2G.mjs';
14
+ import './chunk-LDN7IX4Y.mjs';
15
+ import './chunk-OJWVEEMM.mjs';
16
+ import './chunk-GPYIIWD5.mjs';
17
+ import './chunk-XRC3O5GK.mjs';