@datatechsolutions/ui 2.10.8 → 2.11.0

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 (107) hide show
  1. package/package.json +2 -1
  2. package/dist/astrlabe/contracts.d.mts +0 -293
  3. package/dist/astrlabe/contracts.d.ts +0 -293
  4. package/dist/astrlabe/contracts.js +0 -5
  5. package/dist/astrlabe/contracts.js.map +0 -1
  6. package/dist/astrlabe/contracts.mjs +0 -4
  7. package/dist/astrlabe/contracts.mjs.map +0 -1
  8. package/dist/astrlabe/graph-node.d.mts +0 -28
  9. package/dist/astrlabe/graph-node.d.ts +0 -28
  10. package/dist/astrlabe/graph-node.js +0 -27
  11. package/dist/astrlabe/graph-node.js.map +0 -1
  12. package/dist/astrlabe/graph-node.mjs +0 -6
  13. package/dist/astrlabe/graph-node.mjs.map +0 -1
  14. package/dist/astrlabe/index.d.mts +0 -707
  15. package/dist/astrlabe/index.d.ts +0 -707
  16. package/dist/astrlabe/index.js +0 -3248
  17. package/dist/astrlabe/index.js.map +0 -1
  18. package/dist/astrlabe/index.mjs +0 -2957
  19. package/dist/astrlabe/index.mjs.map +0 -1
  20. package/dist/astrlabe/utils.d.mts +0 -71
  21. package/dist/astrlabe/utils.d.ts +0 -71
  22. package/dist/astrlabe/utils.js +0 -31
  23. package/dist/astrlabe/utils.js.map +0 -1
  24. package/dist/astrlabe/utils.mjs +0 -6
  25. package/dist/astrlabe/utils.mjs.map +0 -1
  26. package/dist/astrlabe/workflow-canvas.d.mts +0 -5
  27. package/dist/astrlabe/workflow-canvas.d.ts +0 -5
  28. package/dist/astrlabe/workflow-canvas.js +0 -20
  29. package/dist/astrlabe/workflow-canvas.js.map +0 -1
  30. package/dist/astrlabe/workflow-canvas.mjs +0 -11
  31. package/dist/astrlabe/workflow-canvas.mjs.map +0 -1
  32. package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
  33. package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
  34. package/dist/astrlabe/workflow-preview-canvas.js +0 -28
  35. package/dist/astrlabe/workflow-preview-canvas.js.map +0 -1
  36. package/dist/astrlabe/workflow-preview-canvas.mjs +0 -26
  37. package/dist/astrlabe/workflow-preview-canvas.mjs.map +0 -1
  38. package/dist/chunk-2XQ2GYYV.mjs +0 -7167
  39. package/dist/chunk-2XQ2GYYV.mjs.map +0 -1
  40. package/dist/chunk-3GDQP6AS.mjs +0 -15
  41. package/dist/chunk-3GDQP6AS.mjs.map +0 -1
  42. package/dist/chunk-3GE3MBUZ.js +0 -279
  43. package/dist/chunk-3GE3MBUZ.js.map +0 -1
  44. package/dist/chunk-55H6WZQP.js +0 -5
  45. package/dist/chunk-55H6WZQP.js.map +0 -1
  46. package/dist/chunk-7VJ7CMMT.mjs +0 -96
  47. package/dist/chunk-7VJ7CMMT.mjs.map +0 -1
  48. package/dist/chunk-AM2TTPYM.mjs +0 -189
  49. package/dist/chunk-AM2TTPYM.mjs.map +0 -1
  50. package/dist/chunk-BLNXRUC4.mjs +0 -276
  51. package/dist/chunk-BLNXRUC4.mjs.map +0 -1
  52. package/dist/chunk-D2JF6C3E.mjs +0 -46
  53. package/dist/chunk-D2JF6C3E.mjs.map +0 -1
  54. package/dist/chunk-DFR6CMJH.js +0 -197
  55. package/dist/chunk-DFR6CMJH.js.map +0 -1
  56. package/dist/chunk-JB6RNAD2.mjs +0 -4
  57. package/dist/chunk-JB6RNAD2.mjs.map +0 -1
  58. package/dist/chunk-OZNTQROP.mjs +0 -39
  59. package/dist/chunk-OZNTQROP.mjs.map +0 -1
  60. package/dist/chunk-P4YYEM4B.js +0 -44
  61. package/dist/chunk-P4YYEM4B.js.map +0 -1
  62. package/dist/chunk-QWG2FMUN.mjs +0 -60
  63. package/dist/chunk-QWG2FMUN.mjs.map +0 -1
  64. package/dist/chunk-S7KHTUHA.js +0 -65
  65. package/dist/chunk-S7KHTUHA.js.map +0 -1
  66. package/dist/chunk-UPTU224P.js +0 -23923
  67. package/dist/chunk-UPTU224P.js.map +0 -1
  68. package/dist/chunk-UZ3CMNUJ.js +0 -49
  69. package/dist/chunk-UZ3CMNUJ.js.map +0 -1
  70. package/dist/chunk-VUNV25KB.js +0 -18
  71. package/dist/chunk-VUNV25KB.js.map +0 -1
  72. package/dist/chunk-WURR63IK.mjs +0 -23189
  73. package/dist/chunk-WURR63IK.mjs.map +0 -1
  74. package/dist/chunk-XJV5ERUJ.js +0 -7228
  75. package/dist/chunk-XJV5ERUJ.js.map +0 -1
  76. package/dist/chunk-YXN2K77G.js +0 -102
  77. package/dist/chunk-YXN2K77G.js.map +0 -1
  78. package/dist/entity-drawer-D2H7ugi9.d.mts +0 -31
  79. package/dist/entity-drawer-D2H7ugi9.d.ts +0 -31
  80. package/dist/index.d.mts +0 -4791
  81. package/dist/index.d.ts +0 -4791
  82. package/dist/index.js +0 -2893
  83. package/dist/index.js.map +0 -1
  84. package/dist/index.mjs +0 -8
  85. package/dist/index.mjs.map +0 -1
  86. package/dist/lib/i18n-context.d.mts +0 -36
  87. package/dist/lib/i18n-context.d.ts +0 -36
  88. package/dist/lib/i18n-context.js +0 -30
  89. package/dist/lib/i18n-context.js.map +0 -1
  90. package/dist/lib/i18n-context.mjs +0 -5
  91. package/dist/lib/i18n-context.mjs.map +0 -1
  92. package/dist/lib/router-context.d.mts +0 -35
  93. package/dist/lib/router-context.d.ts +0 -35
  94. package/dist/lib/router-context.js +0 -26
  95. package/dist/lib/router-context.js.map +0 -1
  96. package/dist/lib/router-context.mjs +0 -5
  97. package/dist/lib/router-context.mjs.map +0 -1
  98. package/dist/navigation-ANFMVDVW.mjs +0 -2445
  99. package/dist/navigation-ANFMVDVW.mjs.map +0 -1
  100. package/dist/navigation-JQ2TJKKI.js +0 -2447
  101. package/dist/navigation-JQ2TJKKI.js.map +0 -1
  102. package/dist/use-haptic-2SHBMEY5.js +0 -18
  103. package/dist/use-haptic-2SHBMEY5.js.map +0 -1
  104. package/dist/use-haptic-4UCNQATC.mjs +0 -5
  105. package/dist/use-haptic-4UCNQATC.mjs.map +0 -1
  106. package/dist/workflow-canvas-CGeuIgBQ.d.ts +0 -241
  107. package/dist/workflow-canvas-at3LMbkg.d.mts +0 -241
@@ -1,71 +0,0 @@
1
- import { WorkflowNodeType, LogicNodeConfig, WorkflowGraph } from './contracts.mjs';
2
- import { Node, Edge } from '@xyflow/react';
3
-
4
- /**
5
- * Layout Engine
6
- * =============
7
- * Auto-layout for workflow graphs using @dagrejs/dagre.
8
- * Pure utility — no React dependencies.
9
- */
10
-
11
- /** Layout direction: free means no auto-layout is applied. */
12
- type LayoutDirection = 'free' | 'LR' | 'TB';
13
- /**
14
- * Apply dagre layout to the given nodes and edges.
15
- * Returns a new array of nodes with updated positions.
16
- * Group child nodes (parentId set) and note nodes are excluded from layout.
17
- */
18
- declare function applyDagreLayout(nodes: Node[], edges: Edge[], direction: Exclude<LayoutDirection, 'free'>): Node[];
19
-
20
- /**
21
- * Logic Node Default Configs
22
- * ==========================
23
- * Factory function to create default configs for each logic node type.
24
- */
25
-
26
- declare function createDefaultLogicNodeConfig(nodeType: WorkflowNodeType): LogicNodeConfig | null;
27
-
28
- /**
29
- * Workflow Validator
30
- * =================
31
- * Validates the workflow graph before publishing.
32
- * Ensures the graph forms a valid DAG with proper node connections.
33
- */
34
-
35
- type ValidationResult = {
36
- valid: boolean;
37
- errors: string[];
38
- };
39
- /**
40
- * Validate a workflow graph for publishing.
41
- * Checks:
42
- * - At least one agent node exists
43
- * - All edges have valid source/target nodes
44
- * - No orphan nodes (every node has at least one connection, except note nodes)
45
- * - Tool nodes connect to agent nodes only
46
- * - Agent chain forms a valid DAG (no cycles)
47
- * - Rule nodes have incoming edges from agents
48
- * - Logic node constraints (start/end uniqueness, config validation)
49
- * - New node type validations (answer, question_classifier, parameter_extractor, etc.)
50
- */
51
- declare function validateWorkflowGraph(graph: WorkflowGraph): ValidationResult;
52
- /**
53
- * Topologically sort agent nodes from the graph edges.
54
- * Returns agent entityIds in execution order.
55
- * Logic nodes are skipped — only agent entityIds are returned.
56
- */
57
- declare function topologicalSortAgents(graph: WorkflowGraph): string[];
58
-
59
- /**
60
- * Agent ELO Tier
61
- * ==============
62
- * Derives difficulty tier from agent ELO rating.
63
- * Used in node palette, agent flow node, and agent drawer.
64
- */
65
- type AgentTier = {
66
- key: 'beginner' | 'intermediate' | 'advanced' | 'expert';
67
- pillColor: string;
68
- };
69
- declare function getAgentTier(elo: number | undefined): AgentTier;
70
-
71
- export { type AgentTier, type LayoutDirection, applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier, topologicalSortAgents, validateWorkflowGraph };
@@ -1,71 +0,0 @@
1
- import { WorkflowNodeType, LogicNodeConfig, WorkflowGraph } from './contracts.js';
2
- import { Node, Edge } from '@xyflow/react';
3
-
4
- /**
5
- * Layout Engine
6
- * =============
7
- * Auto-layout for workflow graphs using @dagrejs/dagre.
8
- * Pure utility — no React dependencies.
9
- */
10
-
11
- /** Layout direction: free means no auto-layout is applied. */
12
- type LayoutDirection = 'free' | 'LR' | 'TB';
13
- /**
14
- * Apply dagre layout to the given nodes and edges.
15
- * Returns a new array of nodes with updated positions.
16
- * Group child nodes (parentId set) and note nodes are excluded from layout.
17
- */
18
- declare function applyDagreLayout(nodes: Node[], edges: Edge[], direction: Exclude<LayoutDirection, 'free'>): Node[];
19
-
20
- /**
21
- * Logic Node Default Configs
22
- * ==========================
23
- * Factory function to create default configs for each logic node type.
24
- */
25
-
26
- declare function createDefaultLogicNodeConfig(nodeType: WorkflowNodeType): LogicNodeConfig | null;
27
-
28
- /**
29
- * Workflow Validator
30
- * =================
31
- * Validates the workflow graph before publishing.
32
- * Ensures the graph forms a valid DAG with proper node connections.
33
- */
34
-
35
- type ValidationResult = {
36
- valid: boolean;
37
- errors: string[];
38
- };
39
- /**
40
- * Validate a workflow graph for publishing.
41
- * Checks:
42
- * - At least one agent node exists
43
- * - All edges have valid source/target nodes
44
- * - No orphan nodes (every node has at least one connection, except note nodes)
45
- * - Tool nodes connect to agent nodes only
46
- * - Agent chain forms a valid DAG (no cycles)
47
- * - Rule nodes have incoming edges from agents
48
- * - Logic node constraints (start/end uniqueness, config validation)
49
- * - New node type validations (answer, question_classifier, parameter_extractor, etc.)
50
- */
51
- declare function validateWorkflowGraph(graph: WorkflowGraph): ValidationResult;
52
- /**
53
- * Topologically sort agent nodes from the graph edges.
54
- * Returns agent entityIds in execution order.
55
- * Logic nodes are skipped — only agent entityIds are returned.
56
- */
57
- declare function topologicalSortAgents(graph: WorkflowGraph): string[];
58
-
59
- /**
60
- * Agent ELO Tier
61
- * ==============
62
- * Derives difficulty tier from agent ELO rating.
63
- * Used in node palette, agent flow node, and agent drawer.
64
- */
65
- type AgentTier = {
66
- key: 'beginner' | 'intermediate' | 'advanced' | 'expert';
67
- pillColor: string;
68
- };
69
- declare function getAgentTier(elo: number | undefined): AgentTier;
70
-
71
- export { type AgentTier, type LayoutDirection, applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier, topologicalSortAgents, validateWorkflowGraph };
@@ -1,31 +0,0 @@
1
- "use client";
2
- 'use strict';
3
-
4
- var chunk3GE3MBUZ_js = require('../chunk-3GE3MBUZ.js');
5
- var chunkDFR6CMJH_js = require('../chunk-DFR6CMJH.js');
6
- require('../chunk-VUNV25KB.js');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "topologicalSortAgents", {
11
- enumerable: true,
12
- get: function () { return chunk3GE3MBUZ_js.topologicalSortAgents; }
13
- });
14
- Object.defineProperty(exports, "validateWorkflowGraph", {
15
- enumerable: true,
16
- get: function () { return chunk3GE3MBUZ_js.validateWorkflowGraph; }
17
- });
18
- Object.defineProperty(exports, "applyDagreLayout", {
19
- enumerable: true,
20
- get: function () { return chunkDFR6CMJH_js.applyDagreLayout; }
21
- });
22
- Object.defineProperty(exports, "createDefaultLogicNodeConfig", {
23
- enumerable: true,
24
- get: function () { return chunkDFR6CMJH_js.createDefaultLogicNodeConfig; }
25
- });
26
- Object.defineProperty(exports, "getAgentTier", {
27
- enumerable: true,
28
- get: function () { return chunkDFR6CMJH_js.getAgentTier; }
29
- });
30
- //# sourceMappingURL=utils.js.map
31
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"utils.js"}
@@ -1,6 +0,0 @@
1
- "use client";
2
- export { topologicalSortAgents, validateWorkflowGraph } from '../chunk-BLNXRUC4.mjs';
3
- export { applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier } from '../chunk-AM2TTPYM.mjs';
4
- import '../chunk-3GDQP6AS.mjs';
5
- //# sourceMappingURL=utils.mjs.map
6
- //# sourceMappingURL=utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"utils.mjs"}
@@ -1,5 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-at3LMbkg.mjs';
4
- import '@xyflow/react';
5
- import './contracts.mjs';
@@ -1,5 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-CGeuIgBQ.js';
4
- import '@xyflow/react';
5
- import './contracts.js';
@@ -1,20 +0,0 @@
1
- "use client";
2
- 'use strict';
3
-
4
- var chunkXJV5ERUJ_js = require('../chunk-XJV5ERUJ.js');
5
- require('../chunk-UPTU224P.js');
6
- require('../chunk-S7KHTUHA.js');
7
- require('../chunk-UZ3CMNUJ.js');
8
- require('../chunk-P4YYEM4B.js');
9
- require('../chunk-DFR6CMJH.js');
10
- require('../chunk-YXN2K77G.js');
11
- require('../chunk-VUNV25KB.js');
12
-
13
-
14
-
15
- Object.defineProperty(exports, "Workspace", {
16
- enumerable: true,
17
- get: function () { return chunkXJV5ERUJ_js.Workspace; }
18
- });
19
- //# sourceMappingURL=workflow-canvas.js.map
20
- //# sourceMappingURL=workflow-canvas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-canvas.js"}
@@ -1,11 +0,0 @@
1
- "use client";
2
- export { Workspace } from '../chunk-2XQ2GYYV.mjs';
3
- import '../chunk-WURR63IK.mjs';
4
- import '../chunk-QWG2FMUN.mjs';
5
- import '../chunk-D2JF6C3E.mjs';
6
- import '../chunk-OZNTQROP.mjs';
7
- import '../chunk-AM2TTPYM.mjs';
8
- import '../chunk-7VJ7CMMT.mjs';
9
- import '../chunk-3GDQP6AS.mjs';
10
- //# sourceMappingURL=workflow-canvas.mjs.map
11
- //# sourceMappingURL=workflow-canvas.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"workflow-canvas.mjs"}
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { WorkflowGraph } from './contracts.mjs';
3
-
4
- type WorkflowPreviewCanvasProps = {
5
- graph: WorkflowGraph;
6
- className?: string;
7
- };
8
- declare function WorkflowPreviewCanvas({ graph, className }: WorkflowPreviewCanvasProps): react_jsx_runtime.JSX.Element;
9
-
10
- export { WorkflowPreviewCanvas, type WorkflowPreviewCanvasProps };
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { WorkflowGraph } from './contracts.js';
3
-
4
- type WorkflowPreviewCanvasProps = {
5
- graph: WorkflowGraph;
6
- className?: string;
7
- };
8
- declare function WorkflowPreviewCanvas({ graph, className }: WorkflowPreviewCanvasProps): react_jsx_runtime.JSX.Element;
9
-
10
- export { WorkflowPreviewCanvas, type WorkflowPreviewCanvasProps };
@@ -1,28 +0,0 @@
1
- "use client";
2
- 'use strict';
3
-
4
- require('../chunk-VUNV25KB.js');
5
- var jsxRuntime = require('react/jsx-runtime');
6
-
7
- function WorkflowPreviewCanvas({ graph, className }) {
8
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className, style: { overflow: "auto", padding: 12 }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "grid", gap: 10 }, children: graph.nodes.map((node) => /* @__PURE__ */ jsxRuntime.jsxs(
9
- "div",
10
- {
11
- style: {
12
- border: "1px solid #cbd5e1",
13
- borderRadius: 10,
14
- padding: "10px 12px",
15
- background: "#fff"
16
- },
17
- children: [
18
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: 12, color: "#64748b", textTransform: "uppercase" }, children: node.type }),
19
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: 14, fontWeight: 600 }, children: node.data?.label || node.id })
20
- ]
21
- },
22
- node.id
23
- )) }) });
24
- }
25
-
26
- exports.WorkflowPreviewCanvas = WorkflowPreviewCanvas;
27
- //# sourceMappingURL=workflow-preview-canvas.js.map
28
- //# sourceMappingURL=workflow-preview-canvas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/astrlabe/workflow-preview-canvas.tsx"],"names":["jsx","jsxs"],"mappings":";;;;;AAOO,SAAS,qBAAA,CAAsB,EAAE,KAAA,EAAO,SAAA,EAAU,EAA+B;AACtF,EAAA,uBACEA,cAAA,CAAC,SAAI,SAAA,EAAsB,KAAA,EAAO,EAAE,QAAA,EAAU,MAAA,EAAQ,OAAA,EAAS,EAAA,EAAG,EAChE,QAAA,kBAAAA,cAAA,CAAC,SAAI,KAAA,EAAO,EAAE,OAAA,EAAS,MAAA,EAAQ,GAAA,EAAK,EAAA,IACjC,QAAA,EAAA,KAAA,CAAM,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,qBAChBC,eAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MAEC,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ,mBAAA;AAAA,QACR,YAAA,EAAc,EAAA;AAAA,QACd,OAAA,EAAS,WAAA;AAAA,QACT,UAAA,EAAY;AAAA,OACd;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAAD,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,QAAA,EAAU,EAAA,EAAI,KAAA,EAAO,SAAA,EAAW,aAAA,EAAe,WAAA,EAAY,EAAI,QAAA,EAAA,IAAA,CAAK,IAAA,EAAK,CAAA;AAAA,wBACvFA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,QAAA,EAAU,EAAA,EAAI,UAAA,EAAY,GAAA,EAAI,EAAI,QAAA,EAAA,IAAA,CAAK,IAAA,EAAM,KAAA,IAAS,KAAK,EAAA,EAAG;AAAA;AAAA,KAAA;AAAA,IATvE,IAAA,CAAK;AAAA,GAWb,GACH,CAAA,EACF,CAAA;AAEJ","file":"workflow-preview-canvas.js","sourcesContent":["import type { WorkflowGraph } from './contracts'\n\nexport type WorkflowPreviewCanvasProps = {\n graph: WorkflowGraph\n className?: string\n}\n\nexport function WorkflowPreviewCanvas({ graph, className }: WorkflowPreviewCanvasProps) {\n return (\n <div className={className} style={{ overflow: 'auto', padding: 12 }}>\n <div style={{ display: 'grid', gap: 10 }}>\n {graph.nodes.map((node) => (\n <div\n key={node.id}\n style={{\n border: '1px solid #cbd5e1',\n borderRadius: 10,\n padding: '10px 12px',\n background: '#fff',\n }}\n >\n <div style={{ fontSize: 12, color: '#64748b', textTransform: 'uppercase' }}>{node.type}</div>\n <div style={{ fontSize: 14, fontWeight: 600 }}>{node.data?.label || node.id}</div>\n </div>\n ))}\n </div>\n </div>\n )\n}\n"]}
@@ -1,26 +0,0 @@
1
- "use client";
2
- import '../chunk-3GDQP6AS.mjs';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
-
5
- function WorkflowPreviewCanvas({ graph, className }) {
6
- return /* @__PURE__ */ jsx("div", { className, style: { overflow: "auto", padding: 12 }, children: /* @__PURE__ */ jsx("div", { style: { display: "grid", gap: 10 }, children: graph.nodes.map((node) => /* @__PURE__ */ jsxs(
7
- "div",
8
- {
9
- style: {
10
- border: "1px solid #cbd5e1",
11
- borderRadius: 10,
12
- padding: "10px 12px",
13
- background: "#fff"
14
- },
15
- children: [
16
- /* @__PURE__ */ jsx("div", { style: { fontSize: 12, color: "#64748b", textTransform: "uppercase" }, children: node.type }),
17
- /* @__PURE__ */ jsx("div", { style: { fontSize: 14, fontWeight: 600 }, children: node.data?.label || node.id })
18
- ]
19
- },
20
- node.id
21
- )) }) });
22
- }
23
-
24
- export { WorkflowPreviewCanvas };
25
- //# sourceMappingURL=workflow-preview-canvas.mjs.map
26
- //# sourceMappingURL=workflow-preview-canvas.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/astrlabe/workflow-preview-canvas.tsx"],"names":[],"mappings":";;;AAOO,SAAS,qBAAA,CAAsB,EAAE,KAAA,EAAO,SAAA,EAAU,EAA+B;AACtF,EAAA,uBACE,GAAA,CAAC,SAAI,SAAA,EAAsB,KAAA,EAAO,EAAE,QAAA,EAAU,MAAA,EAAQ,OAAA,EAAS,EAAA,EAAG,EAChE,QAAA,kBAAA,GAAA,CAAC,SAAI,KAAA,EAAO,EAAE,OAAA,EAAS,MAAA,EAAQ,GAAA,EAAK,EAAA,IACjC,QAAA,EAAA,KAAA,CAAM,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,qBAChB,IAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MAEC,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ,mBAAA;AAAA,QACR,YAAA,EAAc,EAAA;AAAA,QACd,OAAA,EAAS,WAAA;AAAA,QACT,UAAA,EAAY;AAAA,OACd;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,QAAA,EAAU,EAAA,EAAI,KAAA,EAAO,SAAA,EAAW,aAAA,EAAe,WAAA,EAAY,EAAI,QAAA,EAAA,IAAA,CAAK,IAAA,EAAK,CAAA;AAAA,wBACvF,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,QAAA,EAAU,EAAA,EAAI,UAAA,EAAY,GAAA,EAAI,EAAI,QAAA,EAAA,IAAA,CAAK,IAAA,EAAM,KAAA,IAAS,KAAK,EAAA,EAAG;AAAA;AAAA,KAAA;AAAA,IATvE,IAAA,CAAK;AAAA,GAWb,GACH,CAAA,EACF,CAAA;AAEJ","file":"workflow-preview-canvas.mjs","sourcesContent":["import type { WorkflowGraph } from './contracts'\n\nexport type WorkflowPreviewCanvasProps = {\n graph: WorkflowGraph\n className?: string\n}\n\nexport function WorkflowPreviewCanvas({ graph, className }: WorkflowPreviewCanvasProps) {\n return (\n <div className={className} style={{ overflow: 'auto', padding: 12 }}>\n <div style={{ display: 'grid', gap: 10 }}>\n {graph.nodes.map((node) => (\n <div\n key={node.id}\n style={{\n border: '1px solid #cbd5e1',\n borderRadius: 10,\n padding: '10px 12px',\n background: '#fff',\n }}\n >\n <div style={{ fontSize: 12, color: '#64748b', textTransform: 'uppercase' }}>{node.type}</div>\n <div style={{ fontSize: 14, fontWeight: 600 }}>{node.data?.label || node.id}</div>\n </div>\n ))}\n </div>\n </div>\n )\n}\n"]}