@datatechsolutions/ui 2.11.85 → 2.11.86

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.
@@ -3,7 +3,7 @@
3
3
 
4
4
  var chunk3YVQXDKJ_js = require('../chunk-3YVQXDKJ.js');
5
5
  var chunkK26RY4EQ_js = require('../chunk-K26RY4EQ.js');
6
- var chunk6F3IMKDZ_js = require('../chunk-6F3IMKDZ.js');
6
+ var chunkURDQSUW6_js = require('../chunk-URDQSUW6.js');
7
7
  require('../chunk-SV4SMITM.js');
8
8
  var chunk2URBM4LA_js = require('../chunk-2URBM4LA.js');
9
9
  var chunkHZ4LOVHM_js = require('../chunk-HZ4LOVHM.js');
@@ -558,7 +558,27 @@ Object.defineProperty(exports, "WorkflowWorkspace", {
558
558
  });
559
559
  Object.defineProperty(exports, "AgentsWorkspace", {
560
560
  enumerable: true,
561
- get: function () { return chunk6F3IMKDZ_js.AgentsWorkspace; }
561
+ get: function () { return chunkURDQSUW6_js.AgentsWorkspace; }
562
+ });
563
+ Object.defineProperty(exports, "applyWorkflowExecutionEventToStore", {
564
+ enumerable: true,
565
+ get: function () { return chunkURDQSUW6_js.applyWorkflowExecutionEventToStore; }
566
+ });
567
+ Object.defineProperty(exports, "resetWorkflowRunPresentation", {
568
+ enumerable: true,
569
+ get: function () { return chunkURDQSUW6_js.resetWorkflowRunPresentation; }
570
+ });
571
+ Object.defineProperty(exports, "useRunEvents", {
572
+ enumerable: true,
573
+ get: function () { return chunkURDQSUW6_js.useRunEvents; }
574
+ });
575
+ Object.defineProperty(exports, "useWorkflowExecution", {
576
+ enumerable: true,
577
+ get: function () { return chunkURDQSUW6_js.useWorkflowExecution; }
578
+ });
579
+ Object.defineProperty(exports, "useWorkflowRunPresentation", {
580
+ enumerable: true,
581
+ get: function () { return chunkURDQSUW6_js.useWorkflowRunPresentation; }
562
582
  });
563
583
  Object.defineProperty(exports, "PlatformAppShell", {
564
584
  enumerable: true,
@@ -2,7 +2,7 @@
2
2
  export { WorkflowCanvasShell } from '../chunk-TLDVFFAK.mjs';
3
3
  import { UsersPageView, RolesPageView } from '../chunk-JUTOBBBI.mjs';
4
4
  export { WorkflowWorkspace } from '../chunk-JUTOBBBI.mjs';
5
- export { AgentsWorkspace } from '../chunk-6OWYGDNW.mjs';
5
+ export { AgentsWorkspace, applyWorkflowExecutionEventToStore, resetWorkflowRunPresentation, useRunEvents, useWorkflowExecution, useWorkflowRunPresentation } from '../chunk-NAQ32ZPG.mjs';
6
6
  import '../chunk-G7DZU3NM.mjs';
7
7
  import { usePlatformState } from '../chunk-XOZMUCMF.mjs';
8
8
  export { PlatformAppShell, PlatformStateProvider, usePlatformState } from '../chunk-XOZMUCMF.mjs';
@@ -0,0 +1,79 @@
1
+ import * as zustand from 'zustand';
2
+ import { Node, Edge } from '@xyflow/react';
3
+ import { L as LayoutDirection } from './layout-engine-YZcVr20M.js';
4
+
5
+ type GraphSnapshot = {
6
+ nodes: Node[];
7
+ edges: Edge[];
8
+ };
9
+ type CanvasControlMode = 'pointer' | 'hand';
10
+ type ContextMenuState = {
11
+ type: 'node' | 'edge' | 'panel';
12
+ position: {
13
+ x: number;
14
+ y: number;
15
+ };
16
+ targetId?: string;
17
+ } | null;
18
+ type NodeRunResult = {
19
+ status: 'pending' | 'running' | 'success' | 'error';
20
+ data?: unknown;
21
+ error?: string;
22
+ durationMs?: number;
23
+ };
24
+
25
+ type WorkflowStoreState = {
26
+ nodes: Node[];
27
+ edges: Edge[];
28
+ past: GraphSnapshot[];
29
+ future: GraphSnapshot[];
30
+ clipboard: GraphSnapshot | null;
31
+ editingNodeId: string | null;
32
+ contextMenu: ContextMenuState;
33
+ controlMode: CanvasControlMode;
34
+ layoutDirection: LayoutDirection;
35
+ showVariableInspector: boolean;
36
+ showVersionHistory: boolean;
37
+ showRunPanel: boolean;
38
+ showMinimap: boolean;
39
+ showDots: boolean;
40
+ showShortcuts: boolean;
41
+ cardDisplayMode: 'detailed' | 'compact';
42
+ isRunning: boolean;
43
+ nodeResults: Record<string, NodeRunResult>;
44
+ selectedRunId: string | null;
45
+ previewPanelOpen: boolean;
46
+ };
47
+ type WorkflowStoreActions = {
48
+ setNodes: (updater: Node[] | ((nodes: Node[]) => Node[])) => void;
49
+ setEdges: (updater: Edge[] | ((edges: Edge[]) => Edge[])) => void;
50
+ takeSnapshot: () => void;
51
+ undo: () => void;
52
+ redo: () => void;
53
+ copy: () => void;
54
+ paste: (offset?: number) => void;
55
+ selectAll: () => void;
56
+ deselectAll: () => void;
57
+ setEditingNodeId: (nodeId: string | null) => void;
58
+ setContextMenu: (menu: ContextMenuState) => void;
59
+ setControlMode: (mode: CanvasControlMode) => void;
60
+ setLayoutDirection: (direction: LayoutDirection) => void;
61
+ toggleVariableInspector: () => void;
62
+ toggleVersionHistory: () => void;
63
+ toggleRunPanel: () => void;
64
+ toggleMinimap: () => void;
65
+ toggleDots: () => void;
66
+ toggleShortcuts: () => void;
67
+ closeShortcuts: () => void;
68
+ toggleCardDisplayMode: () => void;
69
+ setIsRunning: (running: boolean) => void;
70
+ setNodeResult: (nodeId: string, result: NodeRunResult) => void;
71
+ clearNodeResults: () => void;
72
+ setSelectedRunId: (runId: string | null) => void;
73
+ togglePreviewPanel: () => void;
74
+ reset: () => void;
75
+ };
76
+ type WorkflowStore = WorkflowStoreState & WorkflowStoreActions;
77
+ declare const useWorkflowStore: zustand.UseBoundStore<zustand.StoreApi<WorkflowStore>>;
78
+
79
+ export { type NodeRunResult as N, type WorkflowStore as W, useWorkflowStore as u };
@@ -0,0 +1,79 @@
1
+ import * as zustand from 'zustand';
2
+ import { Node, Edge } from '@xyflow/react';
3
+ import { L as LayoutDirection } from './layout-engine-YZcVr20M.mjs';
4
+
5
+ type GraphSnapshot = {
6
+ nodes: Node[];
7
+ edges: Edge[];
8
+ };
9
+ type CanvasControlMode = 'pointer' | 'hand';
10
+ type ContextMenuState = {
11
+ type: 'node' | 'edge' | 'panel';
12
+ position: {
13
+ x: number;
14
+ y: number;
15
+ };
16
+ targetId?: string;
17
+ } | null;
18
+ type NodeRunResult = {
19
+ status: 'pending' | 'running' | 'success' | 'error';
20
+ data?: unknown;
21
+ error?: string;
22
+ durationMs?: number;
23
+ };
24
+
25
+ type WorkflowStoreState = {
26
+ nodes: Node[];
27
+ edges: Edge[];
28
+ past: GraphSnapshot[];
29
+ future: GraphSnapshot[];
30
+ clipboard: GraphSnapshot | null;
31
+ editingNodeId: string | null;
32
+ contextMenu: ContextMenuState;
33
+ controlMode: CanvasControlMode;
34
+ layoutDirection: LayoutDirection;
35
+ showVariableInspector: boolean;
36
+ showVersionHistory: boolean;
37
+ showRunPanel: boolean;
38
+ showMinimap: boolean;
39
+ showDots: boolean;
40
+ showShortcuts: boolean;
41
+ cardDisplayMode: 'detailed' | 'compact';
42
+ isRunning: boolean;
43
+ nodeResults: Record<string, NodeRunResult>;
44
+ selectedRunId: string | null;
45
+ previewPanelOpen: boolean;
46
+ };
47
+ type WorkflowStoreActions = {
48
+ setNodes: (updater: Node[] | ((nodes: Node[]) => Node[])) => void;
49
+ setEdges: (updater: Edge[] | ((edges: Edge[]) => Edge[])) => void;
50
+ takeSnapshot: () => void;
51
+ undo: () => void;
52
+ redo: () => void;
53
+ copy: () => void;
54
+ paste: (offset?: number) => void;
55
+ selectAll: () => void;
56
+ deselectAll: () => void;
57
+ setEditingNodeId: (nodeId: string | null) => void;
58
+ setContextMenu: (menu: ContextMenuState) => void;
59
+ setControlMode: (mode: CanvasControlMode) => void;
60
+ setLayoutDirection: (direction: LayoutDirection) => void;
61
+ toggleVariableInspector: () => void;
62
+ toggleVersionHistory: () => void;
63
+ toggleRunPanel: () => void;
64
+ toggleMinimap: () => void;
65
+ toggleDots: () => void;
66
+ toggleShortcuts: () => void;
67
+ closeShortcuts: () => void;
68
+ toggleCardDisplayMode: () => void;
69
+ setIsRunning: (running: boolean) => void;
70
+ setNodeResult: (nodeId: string, result: NodeRunResult) => void;
71
+ clearNodeResults: () => void;
72
+ setSelectedRunId: (runId: string | null) => void;
73
+ togglePreviewPanel: () => void;
74
+ reset: () => void;
75
+ };
76
+ type WorkflowStore = WorkflowStoreState & WorkflowStoreActions;
77
+ declare const useWorkflowStore: zustand.UseBoundStore<zustand.StoreApi<WorkflowStore>>;
78
+
79
+ export { type NodeRunResult as N, type WorkflowStore as W, useWorkflowStore as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datatechsolutions/ui",
3
- "version": "2.11.85",
3
+ "version": "2.11.86",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",