@goplasmatic/dataflow-ui 2.0.7 → 2.0.8
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/dataflow-ui.css +186 -0
- package/dist/index.cjs +2035 -1744
- package/dist/index.d.ts +85 -2
- package/dist/index.js +2035 -1744
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -89,6 +89,55 @@ export declare interface DataflowEngine {
|
|
|
89
89
|
dispose?(): void;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Configuration for integrated debug mode in WorkflowVisualizer.
|
|
94
|
+
*
|
|
95
|
+
* When enabled, the visualizer wraps itself with a DebuggerProvider and
|
|
96
|
+
* shows integrated debug controls in the header.
|
|
97
|
+
*/
|
|
98
|
+
export declare interface DebugConfig {
|
|
99
|
+
/**
|
|
100
|
+
* Enable integrated debug mode.
|
|
101
|
+
* When true, the visualizer will include a DebuggerProvider and show debug controls.
|
|
102
|
+
*/
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Factory function to create engine instances.
|
|
106
|
+
* Required for execution. If not provided, the run button will be disabled.
|
|
107
|
+
*/
|
|
108
|
+
engineFactory?: EngineFactory;
|
|
109
|
+
/**
|
|
110
|
+
* Initial payload to use for debugging.
|
|
111
|
+
* Can also be provided via the debugPayload prop on WorkflowVisualizer.
|
|
112
|
+
*/
|
|
113
|
+
initialPayload?: Record<string, unknown>;
|
|
114
|
+
/**
|
|
115
|
+
* Automatically execute when workflows or payload change.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
autoExecute?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Show playback controls in the header.
|
|
121
|
+
* @default true
|
|
122
|
+
*/
|
|
123
|
+
showControls?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Position of the debug controls.
|
|
126
|
+
* - 'header': Show controls in the explorer header (default)
|
|
127
|
+
* - 'bottom': Show controls in a bottom toolbar
|
|
128
|
+
* @default 'header'
|
|
129
|
+
*/
|
|
130
|
+
controlsPosition?: 'header' | 'bottom';
|
|
131
|
+
/**
|
|
132
|
+
* Callback fired when execution completes successfully.
|
|
133
|
+
*/
|
|
134
|
+
onExecutionComplete?: (trace: ExecutionTrace) => void;
|
|
135
|
+
/**
|
|
136
|
+
* Callback fired when execution encounters an error.
|
|
137
|
+
*/
|
|
138
|
+
onExecutionError?: (error: string) => void;
|
|
139
|
+
}
|
|
140
|
+
|
|
92
141
|
/**
|
|
93
142
|
* Actions for the debugger reducer
|
|
94
143
|
*/
|
|
@@ -366,6 +415,27 @@ export declare function getTaskState(trace: ExecutionTrace, currentStepIndex: nu
|
|
|
366
415
|
*/
|
|
367
416
|
export declare function getWorkflowState(trace: ExecutionTrace, currentStepIndex: number, workflowId: string): DebugNodeState;
|
|
368
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Compact debug toolbar for integration into the visualizer header.
|
|
420
|
+
* Includes execution status, step counter, and playback controls.
|
|
421
|
+
*/
|
|
422
|
+
export declare function IntegratedDebugToolbar({ workflows, payload, autoExecute, onExecutionComplete, onExecutionError, className, }: IntegratedDebugToolbarProps): JSX_2.Element;
|
|
423
|
+
|
|
424
|
+
declare interface IntegratedDebugToolbarProps {
|
|
425
|
+
/** Workflows to execute */
|
|
426
|
+
workflows: Workflow[];
|
|
427
|
+
/** Payload for execution */
|
|
428
|
+
payload?: Record<string, unknown>;
|
|
429
|
+
/** Auto-execute on change */
|
|
430
|
+
autoExecute?: boolean;
|
|
431
|
+
/** Callback when execution completes */
|
|
432
|
+
onExecutionComplete?: (trace: ExecutionTrace) => void;
|
|
433
|
+
/** Callback when execution errors */
|
|
434
|
+
onExecutionError?: (error: string) => void;
|
|
435
|
+
/** Additional CSS class */
|
|
436
|
+
className?: string;
|
|
437
|
+
}
|
|
438
|
+
|
|
369
439
|
/**
|
|
370
440
|
* Check if a function is a built-in type
|
|
371
441
|
*/
|
|
@@ -743,7 +813,7 @@ declare interface WorkflowFlowViewProps {
|
|
|
743
813
|
highlightedTaskIds?: Set<string>;
|
|
744
814
|
}
|
|
745
815
|
|
|
746
|
-
export declare function WorkflowVisualizer({ workflows, onWorkflowSelect, onTaskSelect, theme, className, executionResult, debugMode, }: WorkflowVisualizerProps): JSX_2.Element;
|
|
816
|
+
export declare function WorkflowVisualizer({ workflows, onWorkflowSelect, onTaskSelect, theme, className, executionResult, debugMode, debugConfig, debugPayload, }: WorkflowVisualizerProps): JSX_2.Element;
|
|
747
817
|
|
|
748
818
|
export declare interface WorkflowVisualizerProps {
|
|
749
819
|
/** Array of workflow definitions to display */
|
|
@@ -758,8 +828,21 @@ export declare interface WorkflowVisualizerProps {
|
|
|
758
828
|
className?: string;
|
|
759
829
|
/** Execution result to display in the result panel */
|
|
760
830
|
executionResult?: Message | null;
|
|
761
|
-
/**
|
|
831
|
+
/**
|
|
832
|
+
* Enable debug mode with step-by-step visualization.
|
|
833
|
+
* Use this when wrapping with your own DebuggerProvider.
|
|
834
|
+
*/
|
|
762
835
|
debugMode?: boolean;
|
|
836
|
+
/**
|
|
837
|
+
* Debug configuration for integrated debug mode.
|
|
838
|
+
* When enabled, automatically wraps with DebuggerProvider and shows controls.
|
|
839
|
+
*/
|
|
840
|
+
debugConfig?: DebugConfig;
|
|
841
|
+
/**
|
|
842
|
+
* Payload for debugging. Used with debugConfig.
|
|
843
|
+
* Takes precedence over debugConfig.initialPayload.
|
|
844
|
+
*/
|
|
845
|
+
debugPayload?: Record<string, unknown>;
|
|
763
846
|
}
|
|
764
847
|
|
|
765
848
|
export { }
|