@burdenoff/fluidgrids-fe-sdk 2026.1105.4 → 2026.1107.1

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 (54) hide show
  1. package/README.md +4 -0
  2. package/dist/{ExecutionDetailPage-OOHJQR2L.js → ExecutionDetailPage-TQST7JKC.js} +7 -7
  3. package/dist/{ExecutionsListPage-6HS5VQOV.js → ExecutionsListPage-QQKEGXSC.js} +6 -6
  4. package/dist/{WorkflowBuilder-PICIS7FI.js → WorkflowBuilder-R7VIOVRO.js} +11 -11
  5. package/dist/{WorkflowsList-SD5XQC4Q.js → WorkflowsList-2WX7N526.js} +7 -7
  6. package/dist/{agentTools-UH4LU6LA.js → agentTools-MEEGOAE2.js} +4 -4
  7. package/dist/assistant.d.ts +1 -61
  8. package/dist/{chunk-OTOQFZFO.js → chunk-4F54UT62.js} +10 -10
  9. package/dist/{chunk-XNARCHMT.js → chunk-5KK3ALQ4.js} +1 -1
  10. package/dist/{chunk-Y4UCHFGK.js → chunk-752BT4WM.js} +1 -1
  11. package/dist/{chunk-KJT5TAOE.js → chunk-BLLBUHVF.js} +1 -1
  12. package/dist/{chunk-GBQC5WDH.js → chunk-E3PNEIBJ.js} +4 -4
  13. package/dist/{chunk-UYTPURFW.js → chunk-GA3V3X7Q.js} +2 -2
  14. package/dist/{chunk-HSTP2RX3.js → chunk-HUCRE45R.js} +1 -1
  15. package/dist/{chunk-LLCVVRCE.js → chunk-HY3XCZLB.js} +6 -6
  16. package/dist/{chunk-UWCD7JUU.js → chunk-JOOGRWYY.js} +4 -4
  17. package/dist/{chunk-43GSC5Y6.js → chunk-JRSCUUBT.js} +1 -1
  18. package/dist/{chunk-6VIG44VF.js → chunk-KE677WYY.js} +1 -1
  19. package/dist/{chunk-5GG2FEKW.js → chunk-KXCJPWYE.js} +2 -2
  20. package/dist/{chunk-OLRIWGYM.js → chunk-MESGVHUU.js} +4 -4
  21. package/dist/{chunk-WBRW67HX.js → chunk-MYAFMXFI.js} +2 -2
  22. package/dist/{chunk-XWINH6CR.js → chunk-NMYENCP2.js} +1 -1
  23. package/dist/{chunk-GBJWPSLJ.js → chunk-NSDBXKIC.js} +2 -2
  24. package/dist/{chunk-5Z4F24QT.js → chunk-OHKSDHNC.js} +1 -1
  25. package/dist/{chunk-4XAXF5VP.js → chunk-PYSEOWLW.js} +4 -4
  26. package/dist/{chunk-M72SMQOS.js → chunk-RI4NFNDX.js} +6 -6
  27. package/dist/{chunk-JRLBPR5U.js → chunk-TDFC5U66.js} +1 -1
  28. package/dist/{chunk-TGWDFLEX.js → chunk-UZJKX5FN.js} +5 -4
  29. package/dist/{chunk-EIMTOK6E.js → chunk-V2K4HJY4.js} +1 -1
  30. package/dist/{chunk-UIS7KGHW.js → chunk-VKC3ICRA.js} +4 -4
  31. package/dist/{chunk-GPABUQTD.js → chunk-WBVBRXDI.js} +5 -5
  32. package/dist/{chunk-ASYYYJG2.js → chunk-ZTZNQ5GF.js} +1 -1
  33. package/dist/{chunk-WC526MLS.js → chunk-ZWDKN6PU.js} +1 -1
  34. package/dist/executions.js +8 -8
  35. package/dist/history.js +6 -6
  36. package/dist/index.d.ts +6 -25757
  37. package/dist/index.js +35 -35
  38. package/dist/{node-detail-view-P5NV5CMO.js → node-detail-view-AQCGO4XQ.js} +7 -7
  39. package/dist/observability.js +4 -4
  40. package/dist/pageControlsBridge-kfcowd-2.d.ts +37 -0
  41. package/dist/{quick-config-panel-ZNSBVF4G.js → quick-config-panel-G3T4JCF6.js} +5 -5
  42. package/dist/settings.d.ts +0 -8
  43. package/dist/settings.js +5 -5
  44. package/dist/templates.d.ts +0 -10
  45. package/dist/templates.js +10 -10
  46. package/dist/workflow-builder-C261exmL.d.ts +688 -0
  47. package/dist/workflow-builder.d.ts +1 -1
  48. package/dist/workflow-builder.js +12 -12
  49. package/dist/workflow-preview.d.ts +0 -88
  50. package/dist/workflow-preview.js +78 -43
  51. package/dist/workflows-list.js +7 -7
  52. package/package.json +1 -1
  53. package/dist/pageControlsBridge-D6y36qi5.d.ts +0 -87
  54. package/dist/workflow-builder-C-ekFbwR.d.ts +0 -1210
@@ -0,0 +1,688 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ApolloClient } from '@apollo/client/core';
3
+ import { ReactNode } from 'react';
4
+ import { Edge, Node, NodeChange, EdgeChange, Connection } from '@xyflow/react';
5
+ import * as zustand from 'zustand';
6
+
7
+ declare const FLUIDGRIDS_EVENTS_VERSION = "1.0.0";
8
+ type FluidGridsErrorSource = "workflow:save" | "workflow:activate" | "run:start";
9
+ interface FluidGridsEventMap {
10
+ "workflow:saved": {
11
+ workflowKey: string;
12
+ version?: string;
13
+ id?: string;
14
+ };
15
+ "workflow:activated": {
16
+ workflowKey: string;
17
+ version?: string;
18
+ };
19
+ "run:started": {
20
+ runId: string;
21
+ workflowKey?: string;
22
+ mode?: string;
23
+ };
24
+ "run:completed": {
25
+ runId: string;
26
+ status: string;
27
+ workflowKey?: string;
28
+ };
29
+ "node:selected": {
30
+ nodeId: string | null;
31
+ nodeType?: string;
32
+ };
33
+ error: {
34
+ source: FluidGridsErrorSource;
35
+ message: string;
36
+ code?: string;
37
+ };
38
+ "auth:failed": {
39
+ message: string;
40
+ };
41
+ }
42
+ type FluidGridsEventName = keyof FluidGridsEventMap;
43
+ type FluidGridsEventPayload<K extends FluidGridsEventName> = FluidGridsEventMap[K];
44
+ declare const FLUIDGRIDS_EVENT_NAMES: readonly FluidGridsEventName[];
45
+ type FluidGridsEventArgs = {
46
+ [K in FluidGridsEventName]: [name: K, payload: FluidGridsEventMap[K]];
47
+ }[FluidGridsEventName];
48
+ type FluidGridsEventHandler = (...args: FluidGridsEventArgs) => void;
49
+
50
+ type FluidGridsThemeMode = "light" | "dark";
51
+ interface FluidGridsThemeColors {
52
+ bgCanvas?: string;
53
+ bgSurface?: string;
54
+ bgElevated?: string;
55
+ bgSunken?: string;
56
+ textPrimary?: string;
57
+ textSecondary?: string;
58
+ textMuted?: string;
59
+ borderDefault?: string;
60
+ borderSubtle?: string;
61
+ borderStrong?: string;
62
+ primary?: string;
63
+ primaryHover?: string;
64
+ primaryActive?: string;
65
+ primaryText?: string;
66
+ success?: string;
67
+ warning?: string;
68
+ error?: string;
69
+ info?: string;
70
+ }
71
+ interface FluidGridsThemeRadius {
72
+ base?: string;
73
+ card?: string;
74
+ button?: string;
75
+ input?: string;
76
+ }
77
+ interface FluidGridsThemeFont {
78
+ body?: string;
79
+ heading?: string;
80
+ mono?: string;
81
+ }
82
+ interface FluidGridsThemeTokens {
83
+ mode?: FluidGridsThemeMode;
84
+ colors?: FluidGridsThemeColors;
85
+ radius?: FluidGridsThemeRadius;
86
+ font?: FluidGridsThemeFont;
87
+ }
88
+ type FluidGridsTheme = FluidGridsThemeMode | FluidGridsThemeTokens;
89
+ type FluidGridsThemeValueKind = "color" | "length" | "font";
90
+ interface FluidGridsThemeTokenMapping {
91
+ kind: FluidGridsThemeValueKind;
92
+ cssVariables: readonly string[];
93
+ }
94
+ type FluidGridsThemeTokenKey = `colors.${keyof FluidGridsThemeColors & string}` | `radius.${keyof FluidGridsThemeRadius & string}` | `font.${keyof FluidGridsThemeFont & string}`;
95
+ declare const FLUIDGRIDS_THEME_TOKEN_MAP: Readonly<Record<FluidGridsThemeTokenKey, FluidGridsThemeTokenMapping>>;
96
+ declare function themeToCssVariables(theme: FluidGridsTheme | null | undefined): Record<string, string>;
97
+ declare function applyFluidGridsTheme(theme: FluidGridsTheme | null | undefined): () => void;
98
+
99
+ interface WorkflowSavedResult {
100
+ dbId: string;
101
+ workflowKey: string;
102
+ version: string;
103
+ name: string;
104
+ description?: string;
105
+ operation: "created" | "updated" | "versioned";
106
+ }
107
+ interface FluidGridsRefreshedTokens {
108
+ authToken?: string;
109
+ workspaceToken?: string;
110
+ }
111
+ interface FluidGridsAuthConfig {
112
+ onTokenExpired?: () => Promise<string | FluidGridsRefreshedTokens>;
113
+ }
114
+ interface FluidGridsConfig {
115
+ apiGatewayUrl: string;
116
+ globalApiUrl?: string;
117
+ authToken?: string;
118
+ workspaceId: string;
119
+ workspaceToken?: string;
120
+ tenantId?: string;
121
+ organizationId?: string;
122
+ fluidgridFrontendUrl?: string;
123
+ productId?: string;
124
+ productName?: string;
125
+ trustedOrigins?: string[];
126
+ onWorkflowSaved?: (result: WorkflowSavedResult) => void | Promise<void>;
127
+ theme?: FluidGridsTheme;
128
+ auth?: FluidGridsAuthConfig;
129
+ onEvent?: FluidGridsEventHandler;
130
+ }
131
+ declare const config: FluidGridsConfig;
132
+ declare function getFluidGridsConfig(): FluidGridsConfig;
133
+ declare function setFluidGridsConfig(newConfig: Partial<FluidGridsConfig>): void;
134
+ declare function resetFluidGridsConfig(): void;
135
+ declare function getGraphQLEndpoint(baseUrl?: string): string;
136
+ declare function resetFluidGridsExecutionState(): void;
137
+
138
+ interface FluidGridsProviderProps {
139
+ apiGatewayUrl?: string;
140
+ globalApiUrl?: string;
141
+ authToken?: string;
142
+ workspaceToken?: string;
143
+ workspaceId: string;
144
+ productId?: string;
145
+ userId?: string;
146
+ trustedOrigins?: string[];
147
+ tenantId?: string;
148
+ organizationId?: string;
149
+ workspaceClient?: ApolloClient;
150
+ globalClient?: ApolloClient;
151
+ apolloClient?: ApolloClient;
152
+ t?: (key: string, fallback: string) => string;
153
+ theme?: FluidGridsTheme;
154
+ auth?: FluidGridsAuthConfig;
155
+ onEvent?: FluidGridsEventHandler;
156
+ children: ReactNode;
157
+ }
158
+ interface FluidGridsContextValue {
159
+ apiGatewayUrl?: string;
160
+ globalApiUrl?: string;
161
+ authToken?: string;
162
+ workspaceId: string;
163
+ productId?: string;
164
+ userId?: string;
165
+ trustedOrigins?: string[];
166
+ tenantId?: string;
167
+ organizationId?: string;
168
+ workspaceClient?: ApolloClient;
169
+ globalClient?: ApolloClient;
170
+ t?: (key: string, fallback: string) => string;
171
+ }
172
+ declare function FluidGridsProvider({ apiGatewayUrl, globalApiUrl, authToken, workspaceToken, workspaceId, productId, userId, trustedOrigins, tenantId, organizationId, t, theme, auth, onEvent, workspaceClient: externalWorkspaceClient, globalClient: externalGlobalClient, apolloClient: legacyClient, children, }: FluidGridsProviderProps): react_jsx_runtime.JSX.Element;
173
+ declare function useFluidGridsContext(): FluidGridsContextValue;
174
+
175
+ type ExtendedNodeType = "trigger:api" | "end" | "internal:if" | "internal:switch" | "internal:loop" | "internal:merge" | "internal:set" | "internal:filter" | "internal:aggregate" | "internal:wait" | "internal:noop" | "internal:subworkflow" | string;
176
+ interface FlowNodeData {
177
+ label: string;
178
+ deletable?: boolean;
179
+ nodeType?: string;
180
+ config?: Record<string, unknown>;
181
+ disabled?: boolean;
182
+ errorConfig?: INodeErrorConfig;
183
+ notes?: string;
184
+ executionSettings?: INodeExecutionSettings;
185
+ [key: string]: unknown;
186
+ }
187
+ interface FlowNode extends Node {
188
+ type: ExtendedNodeType;
189
+ data: FlowNodeData;
190
+ deletable?: boolean;
191
+ }
192
+ interface FlowEdge extends Edge {
193
+ type?: "deletable" | "smoothstep" | "default" | string;
194
+ condition?: EdgeCondition;
195
+ mapping?: EdgeMapping;
196
+ }
197
+ interface EdgeCondition {
198
+ rules: ConditionRule[];
199
+ logic: "and" | "or";
200
+ }
201
+ interface ConditionRule {
202
+ field: string;
203
+ operator: string;
204
+ value: string;
205
+ }
206
+ type MappingValue = string | number | boolean | null | MappingValue[] | {
207
+ [key: string]: MappingValue;
208
+ };
209
+ interface EdgeMapping {
210
+ definition: Record<string, MappingValue>;
211
+ comment?: string;
212
+ }
213
+ interface NodeAdapterManifest {
214
+ name: string;
215
+ required?: boolean;
216
+ type?: string;
217
+ maxConnections?: number | null;
218
+ filter?: {
219
+ kind?: string[];
220
+ excludeNodes?: string[];
221
+ };
222
+ }
223
+ interface NodeManifest {
224
+ nodeType: string;
225
+ name: string;
226
+ description?: string;
227
+ kind?: string[];
228
+ version: string;
229
+ operations?: {
230
+ operations?: unknown[];
231
+ };
232
+ icon?: string;
233
+ category?: string;
234
+ nodeAdapters?: NodeAdapterManifest[];
235
+ supportsAdapterMode?: boolean;
236
+ adapterOutputType?: string;
237
+ docsUrl?: string;
238
+ }
239
+ interface NodeEndpointConfig {
240
+ id: string;
241
+ nodeType: string;
242
+ name: string;
243
+ description?: string;
244
+ icon?: string;
245
+ category?: string;
246
+ manifest?: NodeManifest;
247
+ }
248
+
249
+ interface INodeRetryConfig {
250
+ maxRetries: number;
251
+ retryDelay: number;
252
+ backoffMultiplier?: number;
253
+ maxDelay?: number;
254
+ retryOnErrorTypes?: string[];
255
+ }
256
+ interface INodeTimeoutConfig {
257
+ duration: number;
258
+ onTimeout?: "stop" | "continue" | "branch";
259
+ timeoutBranchId?: string;
260
+ }
261
+ interface INodeErrorConfig {
262
+ onError?: "stop" | "continue" | "branch";
263
+ errorBranchId?: string;
264
+ retryConfig?: INodeRetryConfig;
265
+ timeout?: INodeTimeoutConfig;
266
+ }
267
+ interface INodeExecutionSettings {
268
+ alwaysOutputData?: boolean;
269
+ executeOnce?: boolean;
270
+ runOn?: {
271
+ kind: "runner";
272
+ runnerId: string;
273
+ };
274
+ }
275
+ interface WorkflowDataSaving {
276
+ saveSuccessExecutions?: boolean;
277
+ saveFailedExecutions?: boolean;
278
+ saveManualExecutions?: boolean;
279
+ }
280
+ interface WorkflowDataPrivacy {
281
+ doNotStoreRunData?: boolean;
282
+ redactFields?: string[];
283
+ }
284
+ interface WorkflowRetention {
285
+ maxAgeDays?: number;
286
+ maxRuns?: number;
287
+ }
288
+ interface IWorkflowConfig {
289
+ maxParallelism?: number;
290
+ timeout?: number;
291
+ retry?: {
292
+ maxAttempts: number;
293
+ backoffMultiplier?: number;
294
+ initialDelay?: number;
295
+ };
296
+ onError?: "stop" | "continue" | "retry";
297
+ errorWorkflowKey?: string;
298
+ dataSaving?: WorkflowDataSaving;
299
+ retention?: WorkflowRetention;
300
+ dataPrivacy?: WorkflowDataPrivacy;
301
+ }
302
+ interface WorkflowDefinition {
303
+ id: string;
304
+ workflowKey: string;
305
+ version: string;
306
+ name: string;
307
+ description?: string;
308
+ alias?: string;
309
+ status?: "draft" | "active" | "archived";
310
+ definitionJson?: WorkflowDefinitionJson;
311
+ createdAt?: string;
312
+ updatedAt?: string;
313
+ createdBy?: string;
314
+ revision?: number;
315
+ updatedById?: string | null;
316
+ }
317
+ interface WorkflowDefinitionJson {
318
+ key: string;
319
+ name: string;
320
+ description?: string;
321
+ workflow_type?: string;
322
+ data: WorkflowData;
323
+ meta?: Record<string, unknown>;
324
+ tags?: string[];
325
+ config?: IWorkflowConfig;
326
+ }
327
+ interface WorkflowData {
328
+ id: string;
329
+ workflowKey: string;
330
+ name: string;
331
+ version: string;
332
+ alias?: string;
333
+ nodes: FlowNode[];
334
+ edges: FlowEdge[];
335
+ sidebar: SidebarState;
336
+ }
337
+ interface SidebarState {
338
+ active: "node-properties" | "store-browse" | "none";
339
+ panels: {
340
+ nodeProperties: {
341
+ selectedNode: {
342
+ id: string;
343
+ type: string;
344
+ } | null;
345
+ };
346
+ };
347
+ }
348
+ interface Tag {
349
+ value: string;
350
+ label: string;
351
+ color: string;
352
+ }
353
+
354
+ type RunStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "timeout";
355
+ type NodeStatus = "idle" | "pending" | "running" | "success" | "error" | "skipped";
356
+ type ErrorType = "validation" | "execution" | "timeout" | "cancelled" | "unknown";
357
+ interface WorkflowRun {
358
+ id: string;
359
+ workflowKey: string;
360
+ workflowVersion: string;
361
+ workflowName?: string;
362
+ status: RunStatus;
363
+ startedAt: string;
364
+ completedAt?: string;
365
+ duration?: number;
366
+ triggeredBy?: string;
367
+ triggerType?: string;
368
+ error?: WorkflowError;
369
+ nodeStates?: NodeState[];
370
+ inputData?: Record<string, unknown>;
371
+ outputData?: Record<string, unknown>;
372
+ parentRunId?: string;
373
+ isSubWorkflowRun?: boolean;
374
+ subworkflowDepth?: number;
375
+ rootRunId?: string;
376
+ childRuns?: WorkflowRun[];
377
+ }
378
+ interface NodeState {
379
+ id: string;
380
+ nodeId: string;
381
+ nodeType: string;
382
+ nodeName?: string;
383
+ status: NodeStatus;
384
+ startedAt?: string;
385
+ completedAt?: string;
386
+ duration?: number;
387
+ inputData?: Record<string, unknown>;
388
+ outputData?: Record<string, unknown>;
389
+ error?: string;
390
+ itemCount?: number;
391
+ childRunId?: string;
392
+ }
393
+ interface WorkflowError {
394
+ type: ErrorType;
395
+ message: string;
396
+ nodeId?: string;
397
+ stack?: string;
398
+ }
399
+ interface StepExecutionPlan {
400
+ runId: string;
401
+ targetNodeId: string;
402
+ sourceRunId: string | null;
403
+ reusedNodeIds: string[];
404
+ pinnedNodeIds: string[];
405
+ executeNodeIds: string[];
406
+ initialNodeIds: string[];
407
+ blockers: string[];
408
+ }
409
+ interface ExecutionRunMetadata {
410
+ runId: string;
411
+ workflowKey: string;
412
+ version: string;
413
+ sourceMode?: "TEST" | "PRODUCTION";
414
+ }
415
+ interface ExecutionLog {
416
+ id: string;
417
+ runId: string;
418
+ nodeId: string;
419
+ nodeType: string;
420
+ nodeName: string;
421
+ status: "pending" | "running" | "completed" | "failed";
422
+ inputArgs: Record<string, unknown> | null;
423
+ output: Record<string, unknown> | null;
424
+ error: string | null;
425
+ duration: number | null;
426
+ startTime: string;
427
+ endTime: string | null;
428
+ usedPinnedData?: boolean;
429
+ reusedFromRunId?: string | null;
430
+ }
431
+ interface ExecutionsFilter {
432
+ status?: RunStatus[];
433
+ workflowKey?: string;
434
+ dateRange?: {
435
+ start: string;
436
+ end: string;
437
+ };
438
+ triggeredBy?: string;
439
+ }
440
+ interface ExecutionsPagination {
441
+ page: number;
442
+ pageSize: number;
443
+ total: number;
444
+ }
445
+ declare const RUN_STATUS_CONFIG: Record<RunStatus, {
446
+ label: string;
447
+ color: string;
448
+ bgColor: string;
449
+ }>;
450
+ declare const NODE_STATUS_CONFIG: Record<NodeStatus, {
451
+ label: string;
452
+ color: string;
453
+ bgColor: string;
454
+ }>;
455
+
456
+ interface WorkflowBuilderCoreProps {
457
+ workflow?: WorkflowData;
458
+ readonly?: boolean;
459
+ hideHeader?: boolean;
460
+ hideSidebar?: boolean;
461
+ hideLogsPanel?: boolean;
462
+ onSave?: (workflow: WorkflowData) => void;
463
+ onExecute?: (runId: string) => void;
464
+ onNodeClick?: (node: FlowNode) => void;
465
+ onBack?: () => void;
466
+ className?: string;
467
+ }
468
+ declare function WorkflowBuilderCore(props: WorkflowBuilderCoreProps): react_jsx_runtime.JSX.Element;
469
+
470
+ interface WorkflowBuilderProps extends Omit<WorkflowBuilderCoreProps, "workflow"> {
471
+ workflowId?: string;
472
+ workflowVersion?: string;
473
+ initialWorkflow?: WorkflowData;
474
+ apiGatewayUrl?: string;
475
+ globalApiUrl?: string;
476
+ authToken?: string;
477
+ workspaceId: string;
478
+ productId?: string;
479
+ userId?: string;
480
+ workspaceToken?: string;
481
+ tenantId?: string;
482
+ organizationId?: string;
483
+ workspaceClient?: ApolloClient;
484
+ globalClient?: ApolloClient;
485
+ theme?: FluidGridsProviderProps["theme"];
486
+ auth?: FluidGridsProviderProps["auth"];
487
+ onEvent?: FluidGridsProviderProps["onEvent"];
488
+ }
489
+ declare function WorkflowBuilder$1({ workflowId, workflowVersion, initialWorkflow, apiGatewayUrl, globalApiUrl, authToken, workspaceId, tenantId, productId, userId, workspaceToken, organizationId, workspaceClient, globalClient, theme, auth, onEvent, ...coreProps }: WorkflowBuilderProps): react_jsx_runtime.JSX.Element;
490
+
491
+ declare function WorkflowBuilder(): react_jsx_runtime.JSX.Element;
492
+
493
+ declare function WorkflowSearchRedirect(): react_jsx_runtime.JSX.Element;
494
+
495
+ interface ExecutionState {
496
+ isExecuting: boolean;
497
+ executingNodeId: string | null;
498
+ currentRunId: string | null;
499
+ sourceRun: ExecutionRunMetadata | null;
500
+ stepPlan: StepExecutionPlan | null;
501
+ logs: ExecutionLog[];
502
+ selectedLogId: string | null;
503
+ panelExpanded: boolean;
504
+ nodeStatuses: Record<string, "idle" | "running" | "success" | "error">;
505
+ nodeItemCounts: Record<string, number>;
506
+ followRequest: {
507
+ runId: string;
508
+ triggerNodeId: string;
509
+ } | null;
510
+ }
511
+ interface CustomEdgeProps extends Edge {
512
+ condition?: EdgeCondition;
513
+ mapping?: EdgeMapping;
514
+ }
515
+ interface HistorySnapshot {
516
+ nodes: Node[];
517
+ edges: CustomEdgeProps[];
518
+ }
519
+ interface HistoryState {
520
+ past: HistorySnapshot[];
521
+ future: HistorySnapshot[];
522
+ }
523
+ interface State {
524
+ nodes: Node[];
525
+ edges: CustomEdgeProps[];
526
+ ndv?: {
527
+ nodeId: string;
528
+ type: ExtendedNodeType;
529
+ tab?: "source";
530
+ } | null;
531
+ renamingNodeId?: string | null;
532
+ quickConfig?: {
533
+ nodeId: string;
534
+ type: ExtendedNodeType;
535
+ } | null;
536
+ pendingConnection?: {
537
+ nodeId: string;
538
+ handleId: string;
539
+ } | null;
540
+ sidebar: {
541
+ active: "node-properties" | "store-browse" | "none";
542
+ panels: {
543
+ nodeProperties: {
544
+ selectedNode: {
545
+ id: string;
546
+ type: ExtendedNodeType;
547
+ } | null | undefined;
548
+ };
549
+ };
550
+ };
551
+ }
552
+ interface Actions {
553
+ actions: {
554
+ saveWorkflow: () => {
555
+ id: string;
556
+ name: string;
557
+ version: string;
558
+ alias?: string;
559
+ dbId?: string;
560
+ status?: string;
561
+ nodes: Node[];
562
+ edges: Edge[];
563
+ };
564
+ setWorkflow: (workflow: Partial<IFlowState["workflow"]>) => void;
565
+ resetWorkflow: () => void;
566
+ history: {
567
+ undo: () => void;
568
+ redo: () => void;
569
+ clear: () => void;
570
+ };
571
+ nodes: {
572
+ onNodesChange: (changes: NodeChange[]) => void;
573
+ setNodes: (nodes: Node[], opts?: {
574
+ historyKind?: string;
575
+ skipHistory?: boolean;
576
+ }) => void;
577
+ deleteNode: (node: Node) => void;
578
+ deleteNodes: (nodes: Node[]) => void;
579
+ duplicateNodes: (nodeIds: string[]) => void;
580
+ pasteNodes: (payload: {
581
+ nodes: Node[];
582
+ edges: Edge[];
583
+ }) => void;
584
+ toggleDisabled: (nodeId: string) => boolean;
585
+ renameNode: (nodeId: string, label: string) => void;
586
+ startRename: (nodeId: string) => void;
587
+ endRename: () => void;
588
+ };
589
+ edges: {
590
+ onEdgesChange: (changes: EdgeChange[]) => void;
591
+ onConnect: (connection: Connection) => void;
592
+ setEdges: (edges: Edge[], opts?: {
593
+ historyKind?: string;
594
+ skipHistory?: boolean;
595
+ }) => void;
596
+ deleteEdge: (edge: Edge) => void;
597
+ };
598
+ ndv: {
599
+ open: (node: {
600
+ nodeId: string;
601
+ type: ExtendedNodeType;
602
+ tab?: "source";
603
+ }) => void;
604
+ close: () => void;
605
+ };
606
+ quickConfig: {
607
+ open: (node: {
608
+ nodeId: string;
609
+ type: ExtendedNodeType;
610
+ }) => void;
611
+ close: () => void;
612
+ };
613
+ pendingConnection: {
614
+ start: (connection: {
615
+ nodeId: string;
616
+ handleId: string;
617
+ }) => void;
618
+ clear: () => void;
619
+ };
620
+ sidebar: {
621
+ setActivePanel: (panel: "node-properties" | "store-browse" | "none") => void;
622
+ showNodePropertiesOf: (node: {
623
+ id: string;
624
+ type: ExtendedNodeType;
625
+ block?: string;
626
+ }) => void;
627
+ panels: {
628
+ nodeProperties: {
629
+ setSelectedNode: (node: {
630
+ id: string;
631
+ type: ExtendedNodeType;
632
+ } | undefined | null) => void;
633
+ };
634
+ tags: {
635
+ setTags: (tags: Tag[]) => void;
636
+ createTag: (tag: Tag) => void;
637
+ deleteTag: (tag: Tag) => void;
638
+ updateTag: (tag: Tag, newTag: Tag) => void;
639
+ };
640
+ };
641
+ };
642
+ };
643
+ }
644
+ interface IFlowState {
645
+ tags: Tag[];
646
+ history: HistoryState;
647
+ editRevision: number;
648
+ loadGeneration: number;
649
+ workflow: {
650
+ id: string;
651
+ workflowKey: string;
652
+ name: string;
653
+ version: string;
654
+ alias?: string;
655
+ dbId?: string;
656
+ status?: string;
657
+ codeBuildId?: string;
658
+ pinnedNodeData?: Record<string, {
659
+ data: Record<string, unknown>;
660
+ pinnedAt?: string;
661
+ pinnedBy?: string;
662
+ }>;
663
+ } & State;
664
+ execution: ExecutionState;
665
+ actions: Actions["actions"] & {
666
+ execution: {
667
+ startExecution: (nodeId: string, runId: string, metadata?: Omit<ExecutionRunMetadata, "runId">) => void;
668
+ setRunMetadata: (metadata: ExecutionRunMetadata) => void;
669
+ setStepPlan: (plan: StepExecutionPlan) => void;
670
+ addLog: (log: ExecutionLog) => void;
671
+ updateLog: (logId: string, updates: Partial<ExecutionLog>) => void;
672
+ setNodeStatus: (nodeId: string, status: "idle" | "running" | "success" | "error") => void;
673
+ setNodeItemCount: (nodeId: string, count: number) => void;
674
+ selectLog: (logId: string | null) => void;
675
+ togglePanel: () => void;
676
+ clearLogs: () => void;
677
+ completeExecution: () => void;
678
+ loadDebugRun: (runId: string, logs: ExecutionLog[], metadata?: Omit<ExecutionRunMetadata, "runId">) => void;
679
+ requestFollowRun: (runId: string, triggerNodeId: string) => void;
680
+ clearFollowRequest: () => void;
681
+ };
682
+ };
683
+ }
684
+ declare const useFlowStore: zustand.UseBoundStore<zustand.StoreApi<IFlowState>>;
685
+
686
+ declare function refetchStoreNodes(): Promise<void>;
687
+
688
+ export { type WorkflowError as $, type FluidGridsThemeRadius as A, type FluidGridsThemeTokenKey as B, type ConditionRule as C, type FluidGridsThemeTokenMapping as D, type EdgeCondition as E, FLUIDGRIDS_EVENTS_VERSION as F, type FluidGridsThemeTokens as G, type FluidGridsThemeValueKind as H, type IFlowState as I, type NodeEndpointConfig as J, type NodeManifest as K, type NodeState as L, type MappingValue as M, NODE_STATUS_CONFIG as N, type NodeStatus as O, type RunStatus as P, WorkflowBuilder as Q, RUN_STATUS_CONFIG as R, type SidebarState as S, type Tag as T, WorkflowBuilderCore as U, type WorkflowBuilderCoreProps as V, WorkflowBuilder$1 as W, type WorkflowBuilderProps as X, type WorkflowData as Y, type WorkflowDefinition as Z, type WorkflowDefinitionJson as _, type EdgeMapping as a, type WorkflowRun as a0, type WorkflowSavedResult as a1, WorkflowSearchRedirect as a2, applyFluidGridsTheme as a3, config as a4, getFluidGridsConfig as a5, getGraphQLEndpoint as a6, refetchStoreNodes as a7, resetFluidGridsConfig as a8, resetFluidGridsExecutionState as a9, setFluidGridsConfig as aa, themeToCssVariables as ab, useFlowStore as ac, useFluidGridsContext as ad, type ErrorType as b, type ExecutionLog as c, type ExecutionsFilter as d, type ExecutionsPagination as e, type ExtendedNodeType as f, FLUIDGRIDS_EVENT_NAMES as g, FLUIDGRIDS_THEME_TOKEN_MAP as h, type FlowEdge as i, type FlowNode as j, type FlowNodeData as k, type FluidGridsAuthConfig as l, type FluidGridsConfig as m, type FluidGridsErrorSource as n, type FluidGridsEventArgs as o, type FluidGridsEventHandler as p, type FluidGridsEventMap as q, type FluidGridsEventName as r, type FluidGridsEventPayload as s, FluidGridsProvider as t, type FluidGridsProviderProps as u, type FluidGridsRefreshedTokens as v, type FluidGridsTheme as w, type FluidGridsThemeColors as x, type FluidGridsThemeFont as y, type FluidGridsThemeMode as z };
@@ -1,4 +1,4 @@
1
- export { I as IFlowState, W as WorkflowBuilder, U as WorkflowBuilderCore, V as WorkflowBuilderCoreProps, Q as WorkflowBuilderPage, X as WorkflowBuilderProps, a2 as WorkflowSearchRedirect, a7 as refetchStoreNodes, ac as useFlowStore } from './workflow-builder-C-ekFbwR.js';
1
+ export { I as IFlowState, W as WorkflowBuilder, U as WorkflowBuilderCore, V as WorkflowBuilderCoreProps, Q as WorkflowBuilderPage, X as WorkflowBuilderProps, a2 as WorkflowSearchRedirect, a7 as refetchStoreNodes, ac as useFlowStore } from './workflow-builder-C261exmL.js';
2
2
  import 'react/jsx-runtime';
3
3
  import '@apollo/client/core';
4
4
  import 'react';