@reeve-iot/workflow-mui 1.0.0 → 1.1.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 (146) hide show
  1. package/README.md +17 -3
  2. package/dist/canvas/BlockNode.d.ts +0 -1
  3. package/dist/canvas/BlockNode.js +13 -7
  4. package/dist/canvas/Connection.d.ts +0 -1
  5. package/dist/canvas/Connection.js +0 -1
  6. package/dist/canvas/WorkflowCanvas.d.ts +0 -1
  7. package/dist/canvas/WorkflowCanvas.js +0 -1
  8. package/dist/canvas/analysedPortTerm.d.ts +0 -1
  9. package/dist/canvas/analysedPortTerm.js +0 -1
  10. package/dist/canvas/geometry.d.ts +0 -1
  11. package/dist/canvas/geometry.js +0 -1
  12. package/dist/canvas/graphTopology.d.ts +0 -1
  13. package/dist/canvas/graphTopology.js +0 -1
  14. package/dist/canvas/highlights.d.ts +0 -1
  15. package/dist/canvas/highlights.js +0 -1
  16. package/dist/canvas/nodePorts.d.ts +0 -1
  17. package/dist/canvas/nodePorts.js +0 -1
  18. package/dist/canvas/portCustomization.d.ts +0 -1
  19. package/dist/canvas/portCustomization.js +0 -1
  20. package/dist/canvas/portGeometry.d.ts +0 -1
  21. package/dist/canvas/portGeometry.js +0 -1
  22. package/dist/canvas/portLabelLayout.d.ts +16 -1
  23. package/dist/canvas/portLabelLayout.js +50 -1
  24. package/dist/canvas/unavailableBlock.d.ts +0 -1
  25. package/dist/canvas/unavailableBlock.js +0 -1
  26. package/dist/config/ErrorHandlingSection.d.ts +0 -1
  27. package/dist/config/ErrorHandlingSection.js +0 -1
  28. package/dist/config/NodeConfigPanel.d.ts +0 -1
  29. package/dist/config/NodeConfigPanel.js +0 -1
  30. package/dist/config/PassthroughSection.d.ts +0 -1
  31. package/dist/config/PassthroughSection.js +0 -1
  32. package/dist/config/ResiliencySection.d.ts +0 -1
  33. package/dist/config/ResiliencySection.js +0 -1
  34. package/dist/config/TypeArgumentPicker.d.ts +0 -1
  35. package/dist/config/TypeArgumentPicker.js +0 -1
  36. package/dist/config/nodeConfigCustomization.d.ts +0 -1
  37. package/dist/config/nodeConfigCustomization.js +0 -1
  38. package/dist/index.d.ts +0 -1
  39. package/dist/index.js +0 -1
  40. package/dist/mapping/MappingDialog.d.ts +0 -1
  41. package/dist/mapping/MappingDialog.js +0 -1
  42. package/dist/mapping/mappingCustomization.d.ts +0 -1
  43. package/dist/mapping/mappingCustomization.js +0 -1
  44. package/dist/mapping/wireSourceOutputs.d.ts +0 -1
  45. package/dist/mapping/wireSourceOutputs.js +0 -1
  46. package/dist/nameDraft.d.ts +0 -1
  47. package/dist/nameDraft.js +0 -1
  48. package/dist/navigation/SubCanvasBreadcrumb.d.ts +0 -1
  49. package/dist/navigation/SubCanvasBreadcrumb.js +0 -1
  50. package/dist/palette/BlockPalette.d.ts +0 -1
  51. package/dist/palette/BlockPalette.js +0 -1
  52. package/dist/ports/KeyValueRowsField.d.ts +0 -1
  53. package/dist/ports/KeyValueRowsField.js +0 -1
  54. package/dist/ports/PortDeclarationTable.d.ts +0 -1
  55. package/dist/ports/PortDeclarationTable.js +0 -1
  56. package/dist/ports/PortValueEditor.d.ts +0 -1
  57. package/dist/ports/PortValueEditor.js +0 -1
  58. package/dist/ports/collectionComposer.d.ts +0 -1
  59. package/dist/ports/collectionComposer.js +0 -1
  60. package/dist/ports/refusedLiteral.d.ts +0 -1
  61. package/dist/ports/refusedLiteral.js +0 -1
  62. package/dist/ports/writeTerm.d.ts +0 -1
  63. package/dist/ports/writeTerm.js +0 -1
  64. package/dist/settings/ConcurrencySection.d.ts +0 -1
  65. package/dist/settings/ConcurrencySection.js +0 -1
  66. package/dist/settings/ParameterDeclarationDialog.d.ts +0 -1
  67. package/dist/settings/ParameterDeclarationDialog.js +0 -1
  68. package/dist/settings/WorkflowExecutionSection.d.ts +0 -1
  69. package/dist/settings/WorkflowExecutionSection.js +0 -1
  70. package/dist/theme/editorColors.d.ts +0 -1
  71. package/dist/theme/editorColors.js +0 -1
  72. package/dist/validation/ValidationFindings.d.ts +0 -1
  73. package/dist/validation/ValidationFindings.js +0 -1
  74. package/package.json +6 -2
  75. package/dist/canvas/BlockNode.d.ts.map +0 -1
  76. package/dist/canvas/BlockNode.js.map +0 -1
  77. package/dist/canvas/Connection.d.ts.map +0 -1
  78. package/dist/canvas/Connection.js.map +0 -1
  79. package/dist/canvas/WorkflowCanvas.d.ts.map +0 -1
  80. package/dist/canvas/WorkflowCanvas.js.map +0 -1
  81. package/dist/canvas/analysedPortTerm.d.ts.map +0 -1
  82. package/dist/canvas/analysedPortTerm.js.map +0 -1
  83. package/dist/canvas/geometry.d.ts.map +0 -1
  84. package/dist/canvas/geometry.js.map +0 -1
  85. package/dist/canvas/graphTopology.d.ts.map +0 -1
  86. package/dist/canvas/graphTopology.js.map +0 -1
  87. package/dist/canvas/highlights.d.ts.map +0 -1
  88. package/dist/canvas/highlights.js.map +0 -1
  89. package/dist/canvas/nodePorts.d.ts.map +0 -1
  90. package/dist/canvas/nodePorts.js.map +0 -1
  91. package/dist/canvas/portCustomization.d.ts.map +0 -1
  92. package/dist/canvas/portCustomization.js.map +0 -1
  93. package/dist/canvas/portGeometry.d.ts.map +0 -1
  94. package/dist/canvas/portGeometry.js.map +0 -1
  95. package/dist/canvas/portLabelLayout.d.ts.map +0 -1
  96. package/dist/canvas/portLabelLayout.js.map +0 -1
  97. package/dist/canvas/unavailableBlock.d.ts.map +0 -1
  98. package/dist/canvas/unavailableBlock.js.map +0 -1
  99. package/dist/config/ErrorHandlingSection.d.ts.map +0 -1
  100. package/dist/config/ErrorHandlingSection.js.map +0 -1
  101. package/dist/config/NodeConfigPanel.d.ts.map +0 -1
  102. package/dist/config/NodeConfigPanel.js.map +0 -1
  103. package/dist/config/PassthroughSection.d.ts.map +0 -1
  104. package/dist/config/PassthroughSection.js.map +0 -1
  105. package/dist/config/ResiliencySection.d.ts.map +0 -1
  106. package/dist/config/ResiliencySection.js.map +0 -1
  107. package/dist/config/TypeArgumentPicker.d.ts.map +0 -1
  108. package/dist/config/TypeArgumentPicker.js.map +0 -1
  109. package/dist/config/nodeConfigCustomization.d.ts.map +0 -1
  110. package/dist/config/nodeConfigCustomization.js.map +0 -1
  111. package/dist/index.d.ts.map +0 -1
  112. package/dist/index.js.map +0 -1
  113. package/dist/mapping/MappingDialog.d.ts.map +0 -1
  114. package/dist/mapping/MappingDialog.js.map +0 -1
  115. package/dist/mapping/mappingCustomization.d.ts.map +0 -1
  116. package/dist/mapping/mappingCustomization.js.map +0 -1
  117. package/dist/mapping/wireSourceOutputs.d.ts.map +0 -1
  118. package/dist/mapping/wireSourceOutputs.js.map +0 -1
  119. package/dist/nameDraft.d.ts.map +0 -1
  120. package/dist/nameDraft.js.map +0 -1
  121. package/dist/navigation/SubCanvasBreadcrumb.d.ts.map +0 -1
  122. package/dist/navigation/SubCanvasBreadcrumb.js.map +0 -1
  123. package/dist/palette/BlockPalette.d.ts.map +0 -1
  124. package/dist/palette/BlockPalette.js.map +0 -1
  125. package/dist/ports/KeyValueRowsField.d.ts.map +0 -1
  126. package/dist/ports/KeyValueRowsField.js.map +0 -1
  127. package/dist/ports/PortDeclarationTable.d.ts.map +0 -1
  128. package/dist/ports/PortDeclarationTable.js.map +0 -1
  129. package/dist/ports/PortValueEditor.d.ts.map +0 -1
  130. package/dist/ports/PortValueEditor.js.map +0 -1
  131. package/dist/ports/collectionComposer.d.ts.map +0 -1
  132. package/dist/ports/collectionComposer.js.map +0 -1
  133. package/dist/ports/refusedLiteral.d.ts.map +0 -1
  134. package/dist/ports/refusedLiteral.js.map +0 -1
  135. package/dist/ports/writeTerm.d.ts.map +0 -1
  136. package/dist/ports/writeTerm.js.map +0 -1
  137. package/dist/settings/ConcurrencySection.d.ts.map +0 -1
  138. package/dist/settings/ConcurrencySection.js.map +0 -1
  139. package/dist/settings/ParameterDeclarationDialog.d.ts.map +0 -1
  140. package/dist/settings/ParameterDeclarationDialog.js.map +0 -1
  141. package/dist/settings/WorkflowExecutionSection.d.ts.map +0 -1
  142. package/dist/settings/WorkflowExecutionSection.js.map +0 -1
  143. package/dist/theme/editorColors.d.ts.map +0 -1
  144. package/dist/theme/editorColors.js.map +0 -1
  145. package/dist/validation/ValidationFindings.d.ts.map +0 -1
  146. package/dist/validation/ValidationFindings.js.map +0 -1
package/README.md CHANGED
@@ -17,9 +17,11 @@ on `@reeve-iot/workflow-core` directly and MUI never enters your bundle.
17
17
 
18
18
  ## What it contains
19
19
 
20
- The workflow canvas, block nodes, the block palette, the node configuration panel with its resiliency and execution
21
- sections, the mapping dialog, port value editors, navigation, validation display and a theme. Every component reads
22
- and writes through the editor store of `core`; none fetches. To load and save over HTTP, add
20
+ The workflow canvas, block nodes, the block palette, the node configuration panel (with Resiliency, Error Handling,
21
+ Passthrough and Type Arguments sections), `WorkflowExecutionSection` for a workflow's deadline, retry and checkpoint
22
+ policy, `ConcurrencySection` for its concurrency mode and queue, the mapping dialog, port value editors, navigation
23
+ and validation display. Every component reads and writes through the editor store of `core`; none fetches. To load and
24
+ save over HTTP, add
23
25
  [`@reeve-iot/workflow-client`](https://github.com/reeve-iot/reeve-workflow/tree/main/packages/client) and
24
26
  [`@reeve-iot/workflow-adapters`](https://github.com/reeve-iot/reeve-workflow/tree/main/packages/adapters).
25
27
 
@@ -39,6 +41,18 @@ export function Editor({ portTypes }: { portTypes: PortTypeRegistry }) {
39
41
  }
40
42
  ```
41
43
 
44
+ ### Customising
45
+
46
+ A host reaches into the editor through React contexts. Without a provider each one is empty and the editor draws only
47
+ what the block catalogue declares.
48
+
49
+ | Context | What the host supplies |
50
+ |---|---|
51
+ | `NodeConfigCustomizationContext` | Renderers for configuration fields, extra sections in the configuration panel, a type-argument picker and a control for `Json` expressions. |
52
+ | `NodePortCustomizationContext` | Ports to hide, input types that depend on the node's configuration, and ports discovered at runtime. |
53
+ | `MappingCustomizationContext` | The projection control in the mapping dialog. |
54
+ | `EditorColorsContext` | Literal colours for the canvas. By default `deriveEditorColors(theme)` builds them from the active MUI theme; a theme in MUI's CSS-variables mode needs literal colours here, because the canvas paints with SVG attributes that do not resolve `var(--…)`. |
55
+
42
56
  ### Validation findings
43
57
 
44
58
  The `ValidationFindings` component displays editor findings and warnings, or the diagnostics a publish attempt
@@ -28,4 +28,3 @@ export interface BlockNodeProps {
28
28
  describeUnavailableBlock?: DescribeUnavailableBlock;
29
29
  }
30
30
  export declare const BlockNode: import("react").MemoExoticComponent<({ node, isSelected, isConnecting, onDragStart, onConnectionStart, onConnectionEnd, onSelect, highlight, diffHighlight, readOnly, isBreakpoint, isPausedHere, isFlashing, flashKey, entryNodeLabel, exitNodeLabel, describeUnavailableBlock, }: BlockNodeProps) => import("react").JSX.Element>;
31
- //# sourceMappingURL=BlockNode.d.ts.map
@@ -4,7 +4,7 @@ import { ERROR_OUTPUT_NAME, ERROR_OUTPUT_TYPE, WORKFLOW_INPUT_BLOCK_TYPE_ID, WOR
4
4
  import { useEditorColors } from '../theme/editorColors.js';
5
5
  import { NODE_HEADER_HEIGHT, NODE_ITEM_HEIGHT, NODE_WIDTH } from './geometry.js';
6
6
  import { PORT_RADIUS, PORT_STROKE_WIDTH } from './portGeometry.js';
7
- import { PORT_LABEL_FONT_SIZE, PORT_LABEL_INSET, layoutPortLabelRow } from './portLabelLayout.js';
7
+ import { PORT_LABEL_FONT_SIZE, PORT_LABEL_INSET, layoutFittedPortLabelRow } from './portLabelLayout.js';
8
8
  import { useNodePorts } from './nodePorts.js';
9
9
  import { useGraphTopology } from './graphTopology.js';
10
10
  import { unavailableBlockText } from './unavailableBlock.js';
@@ -141,9 +141,16 @@ export const BlockNode = memo(function BlockNode({ node, isSelected, isConnectin
141
141
  const connectable = !readOnly && unavailable === undefined;
142
142
  const inputTerms = inputs.map((port) => termOf('inputs', port));
143
143
  const outputTerms = outputs.map((port) => termOf('outputs', port));
144
- const inputLabels = inputs.map((port, index) => `${port.displayName}${port.isRequired ? '*' : ''}${typeSuffix(inputTerms[index])}`);
145
- const outputLabels = outputs.map((port, index) => `${port.displayName}${typeSuffix(outputTerms[index])}`);
146
- const labelRows = Array.from({ length: Math.max(inputs.length, outputs.length) }, (_, index) => layoutPortLabelRow(inputLabels[index], outputLabels[index], NODE_WIDTH));
144
+ const inputNames = inputs.map((port) => `${port.displayName}${port.isRequired ? '*' : ''}`);
145
+ const outputNames = outputs.map((port) => port.displayName);
146
+ const inputLabels = inputNames.map((name, index) => `${name}${typeSuffix(inputTerms[index])}`);
147
+ const outputLabels = outputNames.map((name, index) => `${name}${typeSuffix(outputTerms[index])}`);
148
+ const labelText = (labels, names, index) => {
149
+ const full = labels[index];
150
+ const name = names[index];
151
+ return full === undefined || name === undefined ? undefined : { full, name };
152
+ };
153
+ const labelRows = Array.from({ length: Math.max(inputs.length, outputs.length) }, (_, index) => layoutFittedPortLabelRow(labelText(inputLabels, inputNames, index), labelText(outputLabels, outputNames, index), NODE_WIDTH));
147
154
  const displayName = isEntry ? entryNodeLabel : isExit ? exitNodeLabel : (unavailable?.title ?? blockType?.displayName ?? '');
148
155
  const subCanvasNames = isSynthetic ? [] : (blockType?.subCanvasNames ?? []);
149
156
  const hasSubCanvases = subCanvasNames.length > 0;
@@ -192,7 +199,7 @@ export const BlockNode = memo(function BlockNode({ node, isSelected, isConnectin
192
199
  return;
193
200
  event.stopPropagation();
194
201
  onConnectionEnd(node.id);
195
- }, style: { cursor: 'crosshair' } }), _jsxs("g", { ...bodyPointer, style: { cursor: 'grab' }, children: [_jsx("title", { children: labelHint(inputLabels[index], inputTerms[index]) }), _jsx("text", { x: PORT_LABEL_INSET, y: portY(index) + 5, clipPath: `url(#port-in-clip-${clipId}-${index})`, "data-testid": `workflow-port-label-${node.id}-input-${input.name}`, ...termAttributes(inputTerms[index]), fill: inputTerms[index]?.knowledge === 'refused' ? c.danger : c.textDim, style: { fontSize: PORT_LABEL_FONT_SIZE, ...(inputTerms[index]?.stale === true ? { fontStyle: 'italic', opacity: 0.7 } : {}) }, children: inputLabels[index] })] })] }, input.name))), outputs.map((output, index) => {
202
+ }, style: { cursor: 'crosshair' } }), _jsxs("g", { ...bodyPointer, style: { cursor: 'grab' }, children: [_jsx("title", { children: labelHint(inputLabels[index], inputTerms[index]) }), _jsx("text", { x: PORT_LABEL_INSET, y: portY(index) + 5, clipPath: `url(#port-in-clip-${clipId}-${index})`, "data-testid": `workflow-port-label-${node.id}-input-${input.name}`, ...termAttributes(inputTerms[index]), fill: inputTerms[index]?.knowledge === 'refused' ? c.danger : c.textDim, style: { fontSize: PORT_LABEL_FONT_SIZE, ...(inputTerms[index]?.stale === true ? { fontStyle: 'italic', opacity: 0.7 } : {}) }, children: labelRows[index]?.input })] })] }, input.name))), outputs.map((output, index) => {
196
203
  const isErrorPort = output.name === ERROR_PORT_NAME;
197
204
  return (_jsxs("g", { children: [_jsx("circle", { cx: NODE_WIDTH, cy: portY(index), r: PORT_RADIUS, "data-testid": `workflow-port-${node.id}-output-${output.name}`, "aria-label": `${displayName} output ${output.displayName}`, fill: c.nodeFill, stroke: isErrorPort ? c.danger : isEntry ? c.headerInput : c.nodeStroke, strokeWidth: PORT_STROKE_WIDTH, onMouseDown: (event) => {
198
205
  if (!connectable || event.button !== 0)
@@ -200,7 +207,7 @@ export const BlockNode = memo(function BlockNode({ node, isSelected, isConnectin
200
207
  event.stopPropagation();
201
208
  event.preventDefault();
202
209
  onConnectionStart(node.id, node.position.x + NODE_WIDTH, node.position.y + portY(index));
203
- }, style: { cursor: 'crosshair' } }), _jsxs("g", { ...bodyPointer, style: { cursor: 'grab' }, children: [_jsx("title", { children: labelHint(outputLabels[index], outputTerms[index]) }), _jsx("text", { x: NODE_WIDTH - PORT_LABEL_INSET, y: portY(index) + 5, textAnchor: "end", clipPath: `url(#port-out-clip-${clipId}-${index})`, "data-testid": `workflow-port-label-${node.id}-output-${output.name}`, ...termAttributes(outputTerms[index]), fill: isErrorPort || outputTerms[index]?.knowledge === 'refused' ? c.danger : c.textDim, style: { fontSize: PORT_LABEL_FONT_SIZE, ...(outputTerms[index]?.stale === true ? { fontStyle: 'italic', opacity: 0.7 } : {}) }, children: outputLabels[index] })] })] }, output.name));
210
+ }, style: { cursor: 'crosshair' } }), _jsxs("g", { ...bodyPointer, style: { cursor: 'grab' }, children: [_jsx("title", { children: labelHint(outputLabels[index], outputTerms[index]) }), _jsx("text", { x: NODE_WIDTH - PORT_LABEL_INSET, y: portY(index) + 5, textAnchor: "end", clipPath: `url(#port-out-clip-${clipId}-${index})`, "data-testid": `workflow-port-label-${node.id}-output-${output.name}`, ...termAttributes(outputTerms[index]), fill: isErrorPort || outputTerms[index]?.knowledge === 'refused' ? c.danger : c.textDim, style: { fontSize: PORT_LABEL_FONT_SIZE, ...(outputTerms[index]?.stale === true ? { fontStyle: 'italic', opacity: 0.7 } : {}) }, children: labelRows[index]?.output })] })] }, output.name));
204
211
  }), hasSubCanvases && (_jsxs(_Fragment, { children: [_jsx("line", { x1: 8, y1: portsEndY, x2: NODE_WIDTH - 8, y2: portsEndY, stroke: c.nodeStroke, strokeWidth: 1, style: { pointerEvents: 'none' } }), subCanvasNames.map((canvasName, index) => {
205
212
  const buttonY = portsEndY + BUTTONS_PADDING_TOP + index * (BUTTON_HEIGHT + BUTTON_GAP);
206
213
  return (_jsxs("g", { style: { cursor: 'pointer' }, children: [_jsx("rect", { x: 8, y: buttonY, width: NODE_WIDTH - 16, height: BUTTON_HEIGHT, rx: 4, ry: 4, fill: c.infoBg, stroke: c.infoBorder, strokeWidth: 1, style: { pointerEvents: 'none' } }), _jsxs("text", { x: NODE_WIDTH / 2, y: buttonY + BUTTON_HEIGHT / 2 + 5, textAnchor: "middle", fill: c.info, style: { fontSize: 11, fontWeight: 500, pointerEvents: 'none' }, children: ["\u25B6 Enter: ", canvasName] }), _jsx("rect", { x: 8, y: buttonY, width: NODE_WIDTH - 16, height: BUTTON_HEIGHT, rx: 4, ry: 4, fill: "transparent", "data-subcanvas-entry": `${node.id}:${canvasName}`, onClick: (event) => {
@@ -209,4 +216,3 @@ export const BlockNode = memo(function BlockNode({ node, isSelected, isConnectin
209
216
  } })] }, canvasName));
210
217
  })] }))] }));
211
218
  });
212
- //# sourceMappingURL=BlockNode.js.map
@@ -8,4 +8,3 @@ export interface ConnectionProps {
8
8
  }
9
9
  /** One wire between two nodes, drawn as a horizontal cubic so it leaves and enters sideways. */
10
10
  export declare function Connection({ edge, nodes, isSelected, onClick }: ConnectionProps): import("react").JSX.Element;
11
- //# sourceMappingURL=Connection.d.ts.map
@@ -20,4 +20,3 @@ export function Connection({ edge, nodes, isSelected, onClick }) {
20
20
  }, [source, target]);
21
21
  return (_jsxs("g", { onClick: onClick, "data-testid": `workflow-edge-${edge.sourceNodeId}-${edge.targetNodeId}`, style: { cursor: 'pointer' }, children: [_jsx("path", { d: path, fill: "none", stroke: isSelected ? colors.selected : colors.edge, strokeWidth: isSelected ? 4 : 2, pointerEvents: "visibleStroke" }), _jsx("path", { "data-testid": `workflow-edge-hit-${edge.sourceNodeId}-${edge.targetNodeId}`, d: path, fill: "none", stroke: "transparent", strokeWidth: WIRE_HIT_WIDTH_PX, vectorEffect: "non-scaling-stroke", pointerEvents: "stroke" })] }));
22
22
  }
23
- //# sourceMappingURL=Connection.js.map
@@ -14,4 +14,3 @@ export interface WorkflowCanvasProps {
14
14
  describeUnavailableBlock?: DescribeUnavailableBlock;
15
15
  }
16
16
  export declare function WorkflowCanvas({ onCanvasClick, highlights, diffHighlights, readOnly, breakpointNodeIds, pausedNodeId, describeUnavailableBlock, }: WorkflowCanvasProps): import("react").JSX.Element;
17
- //# sourceMappingURL=WorkflowCanvas.d.ts.map
@@ -256,4 +256,3 @@ export function WorkflowCanvas({ onCanvasClick, highlights, diffHighlights, read
256
256
  return (_jsx(BlockNode, { node: node, isSelected: selectedNodeId === node.id, isConnecting: !!pendingConnection, highlight: highlight, diffHighlight: diffHighlights?.[node.id], readOnly: readOnly, isBreakpoint: breakpointNodeIds?.includes(node.id), isPausedHere: pausedNodeId === node.id, isFlashing: flashNodeId === node.id, flashKey: flashSeq, onDragStart: onNodeDragStart, onConnectionStart: onConnectionStart, onConnectionEnd: onConnectionEnd, onSelect: setSelectedNode, describeUnavailableBlock: describeUnavailableBlock }, node.id));
257
257
  })] })] }) })] }));
258
258
  }
259
- //# sourceMappingURL=WorkflowCanvas.js.map
@@ -4,4 +4,3 @@ import type { PortTermDisplay } from '@reeve-iot/workflow-core';
4
4
  export declare function useAnalysedPortTerm(): (nodeId: string, side: 'inputs' | 'outputs', name: string) => PortTermDisplay | undefined;
5
5
  /** A term as text for a place that cannot style it: an answer older than the draft says so. */
6
6
  export declare const termText: (display: PortTermDisplay) => string;
7
- //# sourceMappingURL=analysedPortTerm.d.ts.map
@@ -15,4 +15,3 @@ export function useAnalysedPortTerm() {
15
15
  }
16
16
  /** A term as text for a place that cannot style it: an answer older than the draft says so. */
17
17
  export const termText = (display) => display.stale ? `${display.text} (stale)` : display.text;
18
- //# sourceMappingURL=analysedPortTerm.js.map
@@ -12,4 +12,3 @@ export declare const NODE_CONFIG_PANEL_WIDTH = 300;
12
12
  export declare const MIN_CENTRING_WIDTH = 320;
13
13
  /** Vertical centre of a node's first port row, in canvas coordinates. */
14
14
  export declare function portAnchorY(nodeY: number): number;
15
- //# sourceMappingURL=geometry.d.ts.map
@@ -14,4 +14,3 @@ export const MIN_CENTRING_WIDTH = 320;
14
14
  export function portAnchorY(nodeY) {
15
15
  return nodeY + NODE_HEADER_HEIGHT + 0.5 * NODE_ITEM_HEIGHT + 4;
16
16
  }
17
- //# sourceMappingURL=geometry.js.map
@@ -10,4 +10,3 @@ export declare const GraphTopologyContext: import("react").Context<GraphTopology
10
10
  /** What a node needs of the graph without re-rendering on every drag frame. Inside a WorkflowCanvas the
11
11
  * canvas derives it once and provides it; anywhere else the hook derives it from the store itself. */
12
12
  export declare function useGraphTopology(): GraphTopology;
13
- //# sourceMappingURL=graphTopology.d.ts.map
@@ -30,4 +30,3 @@ export function useGraphTopology() {
30
30
  const own = useSyncExternalStore(store.subscribe, getSnapshot, getSnapshot);
31
31
  return provided ?? own;
32
32
  }
33
- //# sourceMappingURL=graphTopology.js.map
@@ -10,4 +10,3 @@ export interface NodeHighlight {
10
10
  }
11
11
  /** Structural diff tint, for a host comparing two versions of a graph. */
12
12
  export type NodeDiffKind = 'added' | 'removed' | 'modified';
13
- //# sourceMappingURL=highlights.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=highlights.js.map
@@ -17,4 +17,3 @@ export interface NodePorts {
17
17
  * Calls both seams unconditionally — they are hooks, and each decides per node whether it has anything to
18
18
  * say. `node` may be null for a caller that has no node yet but must keep its hook order stable. */
19
19
  export declare function useNodePorts(node: WorkflowNode | null, blockType: BlockTypeDescriptor | undefined): NodePorts;
20
- //# sourceMappingURL=nodePorts.d.ts.map
@@ -26,4 +26,3 @@ export function useNodePorts(node, blockType) {
26
26
  },
27
27
  };
28
28
  }
29
- //# sourceMappingURL=nodePorts.js.map
@@ -19,4 +19,3 @@ export interface NodePortCustomization {
19
19
  }
20
20
  export declare const NodePortCustomizationContext: import("react").Context<NodePortCustomization>;
21
21
  export declare function useNodePortCustomization(): NodePortCustomization;
22
- //# sourceMappingURL=portCustomization.d.ts.map
@@ -4,4 +4,3 @@ export const NodePortCustomizationContext = createContext(NONE);
4
4
  export function useNodePortCustomization() {
5
5
  return useContext(NodePortCustomizationContext);
6
6
  }
7
- //# sourceMappingURL=portCustomization.js.map
@@ -1,4 +1,3 @@
1
1
  export declare const PORT_RADIUS = 6;
2
2
  export declare const PORT_STROKE_WIDTH = 2;
3
3
  export declare const NODE_RIGHT_OVERHANG: number;
4
- //# sourceMappingURL=portGeometry.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export const PORT_RADIUS = 6;
2
2
  export const PORT_STROKE_WIDTH = 2;
3
3
  export const NODE_RIGHT_OVERHANG = PORT_RADIUS + PORT_STROKE_WIDTH / 2;
4
- //# sourceMappingURL=portGeometry.js.map
@@ -7,4 +7,19 @@ export interface PortLabelRowLayout {
7
7
  outputStart: number;
8
8
  }
9
9
  export declare function layoutPortLabelRow(input: string | undefined, output: string | undefined, nodeWidth: number): PortLabelRowLayout;
10
- //# sourceMappingURL=portLabelLayout.d.ts.map
10
+ /** A port label in its two drawable forms: the whole label, and the port's name without the type. */
11
+ export interface PortLabelText {
12
+ full: string;
13
+ name: string;
14
+ }
15
+ export interface FittedPortLabelRow extends PortLabelRowLayout {
16
+ input: string | undefined;
17
+ output: string | undefined;
18
+ }
19
+ /** The longest form of a label that fits `room`: the whole label, else the name alone, else the name
20
+ * shortened to an ellipsis, keeping a required input's mark. A label is never cut mid-glyph by the node edge. */
21
+ export declare function fitPortLabel(label: PortLabelText, room: number): string;
22
+ /** Lays out one port row and chooses the text each side draws. A side whose whole label does not fit
23
+ * its share falls back to the port name; the row is then shared out again, and a side gets its whole
24
+ * label back when the room the other side freed is enough for it. */
25
+ export declare function layoutFittedPortLabelRow(input: PortLabelText | undefined, output: PortLabelText | undefined, nodeWidth: number): FittedPortLabelRow;
@@ -17,10 +17,14 @@ const EM_WIDTHS = [
17
17
  ['%', 0.889],
18
18
  ['W', 0.944],
19
19
  ['@', 1.015],
20
+ ['\u2026', 1],
20
21
  ];
21
22
  const UNLISTED_EM_WIDTH = 0.6;
22
23
  const WIDE_SCRIPT_START = 0x2e80;
23
24
  const ESTIMATE_MARGIN = 1.1;
25
+ const ELLIPSIS = '\u2026';
26
+ const REQUIRED_MARK = '*';
27
+ const ROUNDING_TOLERANCE = 1e-6;
24
28
  const emWidthOf = new Map(EM_WIDTHS.flatMap(([chars, width]) => [...chars].map((ch) => [ch, width])));
25
29
  export function estimatePortLabelWidth(text, fontSize = PORT_LABEL_FONT_SIZE) {
26
30
  let em = 0;
@@ -45,4 +49,49 @@ export function layoutPortLabelRow(input, output, nodeWidth) {
45
49
  const inputEnd = PORT_LABEL_INSET + inputShare;
46
50
  return { inputEnd, outputStart: inputEnd + PORT_LABEL_GAP };
47
51
  }
48
- //# sourceMappingURL=portLabelLayout.js.map
52
+ const fits = (text, room) => estimatePortLabelWidth(text) * ESTIMATE_MARGIN <= room + ROUNDING_TOLERANCE;
53
+ /** The longest form of a label that fits `room`: the whole label, else the name alone, else the name
54
+ * shortened to an ellipsis, keeping a required input's mark. A label is never cut mid-glyph by the node edge. */
55
+ export function fitPortLabel(label, room) {
56
+ if (fits(label.full, room))
57
+ return label.full;
58
+ if (fits(label.name, room))
59
+ return label.name;
60
+ const mark = label.name.endsWith(REQUIRED_MARK) ? REQUIRED_MARK : '';
61
+ const glyphs = [...label.name.slice(0, label.name.length - mark.length)];
62
+ for (let keep = glyphs.length - 1; keep > 1; keep--) {
63
+ const shortened = glyphs.slice(0, keep).join('').trimEnd() + ELLIPSIS + mark;
64
+ if (fits(shortened, room))
65
+ return shortened;
66
+ }
67
+ return glyphs.slice(0, 1).join('') + ELLIPSIS + mark;
68
+ }
69
+ /** Lays out one port row and chooses the text each side draws. A side whose whole label does not fit
70
+ * its share falls back to the port name; the row is then shared out again, and a side gets its whole
71
+ * label back when the room the other side freed is enough for it. */
72
+ export function layoutFittedPortLabelRow(input, output, nodeWidth) {
73
+ const rowEnd = nodeWidth - PORT_LABEL_INSET;
74
+ const layout = (inputText, outputText) => {
75
+ const row = layoutPortLabelRow(inputText, outputText, nodeWidth);
76
+ return { row, inputRoom: row.inputEnd - PORT_LABEL_INSET, outputRoom: rowEnd - row.outputStart };
77
+ };
78
+ const whole = layout(input?.full, output?.full);
79
+ let inputText = input === undefined || fits(input.full, whole.inputRoom) ? input?.full : input.name;
80
+ let outputText = output === undefined || fits(output.full, whole.outputRoom) ? output?.full : output.name;
81
+ if (input !== undefined && inputText !== input.full) {
82
+ const tried = layout(input.full, outputText);
83
+ if (fits(input.full, tried.inputRoom) && (outputText === undefined || fits(outputText, tried.outputRoom)))
84
+ inputText = input.full;
85
+ }
86
+ if (output !== undefined && outputText !== output.full) {
87
+ const tried = layout(inputText, output.full);
88
+ if (fits(output.full, tried.outputRoom) && (inputText === undefined || fits(inputText, tried.inputRoom)))
89
+ outputText = output.full;
90
+ }
91
+ const { row, inputRoom, outputRoom } = layout(inputText, outputText);
92
+ return {
93
+ ...row,
94
+ input: input === undefined ? undefined : fitPortLabel({ full: inputText ?? input.full, name: input.name }, inputRoom),
95
+ output: output === undefined ? undefined : fitPortLabel({ full: outputText ?? output.full, name: output.name }, outputRoom),
96
+ };
97
+ }
@@ -13,4 +13,3 @@ export type DescribeUnavailableBlock = (node: WorkflowNode) => Partial<Unavailab
13
13
  /** The title and reason shown for `node`, whose block type is not in the catalogue: the host's wording where
14
14
  * `describe` gives one, the generic wording otherwise. */
15
15
  export declare function unavailableBlockText(node: WorkflowNode, describe?: DescribeUnavailableBlock): UnavailableBlockText;
16
- //# sourceMappingURL=unavailableBlock.d.ts.map
@@ -7,4 +7,3 @@ export function unavailableBlockText(node, describe) {
7
7
  reason: hosted?.reason ?? `Block type '${node.blockTypeId}' is not available on this host. The block is kept as stored and cannot be edited.`,
8
8
  };
9
9
  }
10
- //# sourceMappingURL=unavailableBlock.js.map
@@ -10,4 +10,3 @@ export interface ErrorHandlingSectionProps {
10
10
  }
11
11
  /** What happens when the block throws. Collapsed by default — most nodes never change it. */
12
12
  export declare function ErrorHandlingSection({ errorPolicy, onChange, onReset }: ErrorHandlingSectionProps): import("react").JSX.Element;
13
- //# sourceMappingURL=ErrorHandlingSection.d.ts.map
@@ -53,4 +53,3 @@ export function ErrorHandlingSection({ errorPolicy, onChange, onReset }) {
53
53
  onChange({ ...policy, defaultOutputJson: json });
54
54
  } }))] }) })] }));
55
55
  }
56
- //# sourceMappingURL=ErrorHandlingSection.js.map
@@ -17,4 +17,3 @@ export interface NodeConfigPanelProps {
17
17
  * and passthrough. Everything domain-specific arrives through NodeConfigCustomization — the panel itself
18
18
  * knows nothing beyond what a descriptor declares. */
19
19
  export declare function NodeConfigPanel({ portValueEditor, rootCanvasLabel, describeUnavailableBlock, showWireLiterals, }: NodeConfigPanelProps): import("react").JSX.Element | null;
20
- //# sourceMappingURL=NodeConfigPanel.d.ts.map
@@ -244,4 +244,3 @@ export function NodeConfigPanel({ portValueEditor, rootCanvasLabel = 'Main Workf
244
244
  ? (_jsx(PortValueEditor, { fieldName: name, label: name, rawValue: node.configuration[name] ?? '', fieldType: incoming.find((v) => v.name === name)?.type, literalForm: literalFormOf(incoming.find((v) => v.name === name)?.type), onClear: () => { clearFields([name]); }, hasConnection: isFedByAnEdge(name), onChange: (value) => { setField(name, value); }, onObjectChange: (value) => { setField(name, value); }, ...portValueEditor }, `${node.id}:passthrough:${name}`))
245
245
  : null) }, `${node.id}-passthrough`)] })] }));
246
246
  }
247
- //# sourceMappingURL=NodeConfigPanel.js.map
@@ -16,4 +16,3 @@ export interface PassthroughSectionProps {
16
16
  /** Which incoming variables this node forwards to its own outputs, plus names typed by hand for a value
17
17
  * the editor cannot see yet — a plugin output the catalogue has not caught up with. */
18
18
  export declare function PassthroughSection({ incoming, passthrough, onToggle, subCanvasNames, renderValueEditor, termOf, }: PassthroughSectionProps): import("react").JSX.Element;
19
- //# sourceMappingURL=PassthroughSection.d.ts.map
@@ -35,4 +35,3 @@ export function PassthroughSection({ incoming, passthrough, onToggle, subCanvasN
35
35
  }, onChange: (e) => { setDraft({ scope: context, text: e.target.value, touched: true }); }, onKeyDown: (e) => { if (e.key === 'Enter')
36
36
  addCustom(); } }) })] }));
37
37
  }
38
- //# sourceMappingURL=PassthroughSection.js.map
@@ -15,4 +15,3 @@ export interface ResiliencySectionProps {
15
15
  /** Per-node timeout and retry. What the engine does with an unset retry is not a fixed answer — it is the
16
16
  * block's own IsIdempotent — so the box offers that as a state rather than guessing one of the two. */
17
17
  export declare function ResiliencySection({ configuration, onChange, isContainer, onClear }: ResiliencySectionProps): import("react").JSX.Element;
18
- //# sourceMappingURL=ResiliencySection.d.ts.map
@@ -154,4 +154,3 @@ export function ResiliencySection({ configuration, onChange, isContainer = false
154
154
  onClear?.(RETRY_KEYS);
155
155
  }, helperText: RETRY_HELP[retryChoice], children: [_jsx("option", { value: "default", disabled: onClear === undefined, children: "Default \u2014 the block decides" }), _jsx("option", { value: "on", children: "On" }), _jsx("option", { value: "off", children: "Off" }), retryChoice === 'unreadable' && (_jsx("option", { value: "unreadable", disabled: true, children: "Unreadable \u2014 the engine refuses this node" }))] }), (retryChoice === 'on' || isSet(configuration['retryCount'])) && (_jsx(CommittedNumberField, { label: "Retry Count", display: displayStored(configuration['retryCount'], String(DEFAULT_RETRY_COUNT)), stored: storedVerdict(configuration['retryCount'], COUNT_BOUNDS), bounds: COUNT_BOUNDS, onCommit: (value) => { onChange('retryCount', value); }, onCommitEmpty: () => { onChange('retryCount', DEFAULT_RETRY_COUNT); }, helperText: "Retry attempts after the first, where 0 means none. Max time is roughly count x timeout." })), (retryChoice === 'on' || isSet(configuration['retryBackoffSeconds'])) && (_jsx(CommittedNumberField, { label: "Backoff (seconds)", display: displayStored(configuration['retryBackoffSeconds'], String(DEFAULT_RETRY_BACKOFF_SECONDS)), stored: storedVerdict(configuration['retryBackoffSeconds'], backoff), bounds: backoff, onCommit: (value) => { onChange('retryBackoffSeconds', value); }, onCommitEmpty: () => { onChange('retryBackoffSeconds', DEFAULT_RETRY_BACKOFF_SECONDS); }, helperText: "Initial delay for exponential backoff" }))] })] }));
156
156
  }
157
- //# sourceMappingURL=ResiliencySection.js.map
@@ -4,4 +4,3 @@ import type { TypeArgumentPickerContext } from './nodeConfigCustomization.js';
4
4
  export declare function TypeArgumentPicker({ context }: {
5
5
  context: TypeArgumentPickerContext;
6
6
  }): import("react").JSX.Element;
7
- //# sourceMappingURL=TypeArgumentPicker.d.ts.map
@@ -29,4 +29,3 @@ function ParameterRow({ parameter, context }) {
29
29
  export function TypeArgumentPicker({ context }) {
30
30
  return (_jsxs(Box, { sx: { mt: 2, mb: 2 }, children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: "Type Arguments" }), context.typeParameters.map((parameter) => _jsx(ParameterRow, { parameter: parameter, context: context }, parameter.name))] }));
31
31
  }
32
- //# sourceMappingURL=TypeArgumentPicker.js.map
@@ -98,4 +98,3 @@ export interface NodeConfigCustomization {
98
98
  }
99
99
  export declare const NodeConfigCustomizationContext: import("react").Context<NodeConfigCustomization>;
100
100
  export declare function useNodeConfigCustomization(): NodeConfigCustomization;
101
- //# sourceMappingURL=nodeConfigCustomization.d.ts.map
@@ -4,4 +4,3 @@ export const NodeConfigCustomizationContext = createContext(NONE);
4
4
  export function useNodeConfigCustomization() {
5
5
  return useContext(NodeConfigCustomizationContext);
6
6
  }
7
- //# sourceMappingURL=nodeConfigCustomization.js.map
package/dist/index.d.ts CHANGED
@@ -24,4 +24,3 @@ export * from './settings/ConcurrencySection.js';
24
24
  export * from './settings/ParameterDeclarationDialog.js';
25
25
  export * from './settings/WorkflowExecutionSection.js';
26
26
  export * from './validation/ValidationFindings.js';
27
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -24,4 +24,3 @@ export * from './settings/ConcurrencySection.js';
24
24
  export * from './settings/ParameterDeclarationDialog.js';
25
25
  export * from './settings/WorkflowExecutionSection.js';
26
26
  export * from './validation/ValidationFindings.js';
27
- //# sourceMappingURL=index.js.map
@@ -8,4 +8,3 @@ export interface MappingDialogProps {
8
8
  * The port lists come from the same customization seam the canvas uses, so the dialog cannot drift from
9
9
  * what the node draws. */
10
10
  export declare function MappingDialog({ edgeId, onClose, entryNodeLabel, exitNodeLabel }: MappingDialogProps): import("react").JSX.Element | null;
11
- //# sourceMappingURL=MappingDialog.d.ts.map
@@ -280,4 +280,3 @@ export function MappingDialog({ edgeId, onClose, entryNodeLabel = 'Workflow Inpu
280
280
  })] })) : storedRefusalOf(input) !== undefined ? (_jsx(RefusedLiteral, { testId: `literal-refused-${input.name}`, value: valueStored(input), expected: storedRefusalOf(input) ?? '', onReplace: () => { replaceStored(input); } })) : kind === 'number' ? (_jsx(TextField, { fullWidth: true, size: "small", type: "text", placeholder: "Literal value", value: valueTextOf(input), error: numberInvalid(input), helperText: numberInvalid(input) ? (_jsxs("span", { "data-testid": `literal-error-${input.name}`, "data-rule-id": "literal-port-value-invalid", children: ["This value cannot be read as ", formOf(input)?.gradedAs ?? input.type, "."] })) : undefined, slotProps: { htmlInput: { inputMode: 'decimal', 'aria-label': `${input.displayName} literal` } }, onChange: (e) => { changeNumber(input.name, formOf(input)?.gradedAs ?? input.type, e.target.value); } })) : kind === 'text' ? (_jsx(TextField, { fullWidth: true, size: "small", multiline: true, rows: 4, placeholder: "Literal value", value: String(valueStored(input) ?? ''), slotProps: { htmlInput: { 'aria-label': `${input.displayName} literal` } }, onChange: (e) => { change(input.name, 'literalValue', e.target.value); } })) : kind === 'none' ? (_jsx(Typography, { variant: "caption", color: "textSecondary", "data-testid": `literal-none-${input.name}`, children: "This type takes no literal value. Connect a wire or write an expression." })) : kind === 'boolean' ? (_jsx(Switch, { size: "small", checked: valueStored(input) === true, slotProps: { input: { 'aria-label': `${input.displayName} literal` } }, onChange: (e) => { changeLiteral(input.name, e.target.checked); } })) : (_jsx(TextField, { fullWidth: true, size: "small", multiline: true, rows: 4, placeholder: "[1, 2, 3]", value: jsonTextOf(input), error: refusalOf(input) !== '', helperText: refusalOf(input) || undefined, slotProps: { htmlInput: { 'aria-label': `${input.displayName} literal`, style: { fontFamily: 'monospace', fontSize: 11 } } }, onChange: (e) => { changeJson(input, e.target.value); } }))] }))] })] }, input.name));
281
281
  }) })] }) }))] }), _jsxs(DialogActions, { sx: { justifyContent: 'space-between', px: 3 }, children: [_jsx(Button, { color: "error", startIcon: _jsx(DeleteIcon, {}), onClick: () => { removeEdge(edgeId); onClose(); }, children: "Remove Connection" }), _jsxs(Box, { children: [_jsx(Button, { onClick: onClose, sx: { mr: 1 }, children: "Cancel" }), _jsx(Button, { variant: "contained", color: "primary", disabled: refused, onClick: save, children: "Save Mappings" })] })] })] }));
282
282
  }
283
- //# sourceMappingURL=MappingDialog.js.map
@@ -48,4 +48,3 @@ export declare const MappingCustomizationContext: import("react").Context<Mappin
48
48
  /** The `MappingCustomization` in effect; an empty one where no provider is mounted. */
49
49
  export declare function useMappingCustomization(): MappingCustomization;
50
50
  export {};
51
- //# sourceMappingURL=mappingCustomization.d.ts.map
@@ -6,4 +6,3 @@ export const MappingCustomizationContext = createContext(NONE);
6
6
  export function useMappingCustomization() {
7
7
  return useContext(MappingCustomizationContext);
8
8
  }
9
- //# sourceMappingURL=mappingCustomization.js.map
@@ -27,4 +27,3 @@ export declare function WiredJsonOutputs({ edges, children, found }: {
27
27
  children: (outputs: readonly WiredJsonOutput[]) => ReactNode;
28
28
  found?: readonly WiredJsonOutput[];
29
29
  }): ReactNode;
30
- //# sourceMappingURL=wireSourceOutputs.d.ts.map
@@ -65,4 +65,3 @@ function WireJsonOutputs({ edge, rest, found, children }) {
65
65
  ], [found, outputs, edge.sourceNodeId]);
66
66
  return _jsx(WiredJsonOutputs, { edges: rest, found: json, children: children });
67
67
  }
68
- //# sourceMappingURL=wireSourceOutputs.js.map
@@ -21,4 +21,3 @@ export interface NameDraft {
21
21
  export declare function draftInScope<T extends {
22
22
  scope: string;
23
23
  }>(draft: T | undefined, scope: string): T | undefined;
24
- //# sourceMappingURL=nameDraft.d.ts.map
package/dist/nameDraft.js CHANGED
@@ -17,4 +17,3 @@ export function nameFault(text, blank) {
17
17
  export function draftInScope(draft, scope) {
18
18
  return draft !== undefined && draft.scope === scope ? draft : undefined;
19
19
  }
20
- //# sourceMappingURL=nameDraft.js.map
@@ -5,4 +5,3 @@ export interface SubCanvasBreadcrumbProps {
5
5
  /** Where in the sub-canvas stack the editor currently is, plus one-click travel back out and sideways
6
6
  * into a sibling branch of the same block. */
7
7
  export declare function SubCanvasBreadcrumb({ rootLabel }: SubCanvasBreadcrumbProps): import("react").JSX.Element;
8
- //# sourceMappingURL=SubCanvasBreadcrumb.d.ts.map
@@ -28,4 +28,3 @@ export function SubCanvasBreadcrumb({ rootLabel = 'Main Workflow' }) {
28
28
  return (_jsxs(Fragment, { children: [_jsx(ChevronRightIcon, { sx: { fontSize: 16, color: 'text.disabled' } }), _jsx(Chip, { label: isLast ? nodeLabel : `${nodeLabel} › ${frame.subCanvasName}`, size: "small", variant: isLast ? 'filled' : 'outlined', color: isLast ? 'primary' : 'default', clickable: !isLast, onClick: isLast ? undefined : () => exitToLevel(index + 1) })] }, `${frame.parentNodeId}:${frame.subCanvasName}:${index}`));
29
29
  }), canvasStack.length > 0 && (_jsx(Typography, { variant: "caption", color: "text.secondary", sx: { ml: 1 }, children: "(editing sub-canvas)" }))] }), lastFrame && siblings.length > 1 && (_jsx(Box, { sx: { px: 2, borderTop: '1px solid', borderColor: 'divider' }, children: _jsx(Tabs, { value: lastFrame.subCanvasName, onChange: switchBranch, variant: "scrollable", scrollButtons: "auto", sx: { minHeight: 40, '& .MuiTab-root': { minHeight: 40, py: 0.5, fontSize: '0.875rem' } }, children: siblings.map((name) => (_jsx(Tab, { label: name, value: name }, name))) }) }))] }));
30
30
  }
31
- //# sourceMappingURL=SubCanvasBreadcrumb.js.map
@@ -15,4 +15,3 @@ export interface BlockPaletteProps {
15
15
  subtitle?: string;
16
16
  }
17
17
  export declare function BlockPalette({ isBlockLocked, uncategorisedLabel, title, subtitle, }: BlockPaletteProps): import("react").JSX.Element;
18
- //# sourceMappingURL=BlockPalette.d.ts.map
@@ -53,4 +53,3 @@ export function BlockPalette({ isBlockLocked, uncategorisedLabel = 'Other', titl
53
53
  }, children: _jsx(ListItemText, { primary: _jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 0.5 }, children: [bt.displayName, lock && _jsx(LockIcon, { sx: { fontSize: 12, color: 'text.disabled' } })] }), secondary: bt.description, slotProps: { primary: { variant: 'body2', sx: { fontWeight: 'bold' } }, secondary: { variant: 'caption' } } }) }) }) }, bt.blockTypeId));
54
54
  }) }) })] }, category))) })] }));
55
55
  }
56
- //# sourceMappingURL=BlockPalette.js.map
@@ -32,4 +32,3 @@ export interface KeyValueRowsFieldProps {
32
32
  /** The rows a `Map<String,String>` literal is edited in. Rows that cannot be written (no key, a repeated key, a key that is no field name) are marked
33
33
  * where they stand and written nowhere, so the document keeps the last map that was whole. */
34
34
  export declare function KeyValueRowsField({ fieldName, label, rawValue, description, onObjectChange, onClear, secretValues, canProtect }: KeyValueRowsFieldProps): import("react").JSX.Element;
35
- //# sourceMappingURL=KeyValueRowsField.d.ts.map
@@ -109,4 +109,3 @@ export function KeyValueRowsField({ fieldName, label, rawValue, description, onO
109
109
  commit([...rows, { key: '', value: '', form: 'plain' }]);
110
110
  }, children: ["Add ", label, " entry"] })] }));
111
111
  }
112
- //# sourceMappingURL=KeyValueRowsField.js.map
@@ -16,4 +16,3 @@ export interface DeclaredOutputPortTableProps {
16
16
  }
17
17
  /** Editor for a node's declared outputs, including which port of each branch feeds them. */
18
18
  export declare function DeclaredOutputPortTable({ label, subCanvasNames, value, onChange }: DeclaredOutputPortTableProps): import("react").JSX.Element;
19
- //# sourceMappingURL=PortDeclarationTable.d.ts.map
@@ -109,4 +109,3 @@ export function DeclaredOutputPortTable({ label, subCanvasNames, value, onChange
109
109
  return (_jsxs(Box, { sx: { border: '1px solid', borderColor: 'divider', borderRadius: 1, p: 1, mb: 1 }, children: [_jsxs(Box, { sx: { display: 'flex', gap: 1, alignItems: 'center' }, children: [_jsx(TextField, { size: "small", label: "Name", variant: "standard", value: name, error: nameFaultText !== null, helperText: nameFaultText ?? undefined, onChange: (e) => { changeName(index, e.target.value); } }), _jsx(TextField, { size: "small", label: "Label", variant: "standard", value: port.displayName ?? '', onChange: (e) => setField(index, 'displayName', e.target.value) }), _jsx(Select, { size: "small", variant: "standard", value: port.type, sx: { minWidth: 120 }, inputProps: { 'aria-label': `Output ${index + 1} type` }, onChange: (e) => setField(index, 'type', e.target.value), children: typesWithCurrent(typeNames, port.type).map((t) => _jsx(MenuItem, { value: t, children: t }, t)) }), _jsx(CollectionComposer, { type: port.type, portTypes: portTypes, ariaLabel: `Output ${index + 1} type wrapped in a collection`, onWrap: (wrapped) => setField(index, 'type', wrapped) }), _jsx(IconButton, { size: "small", color: "error", "aria-label": `Remove output ${index + 1}`, onClick: () => { onChange(ports.filter((_, i) => i !== index)); }, children: _jsx(DeleteIcon, { fontSize: "small" }) })] }), _jsx(Box, { sx: { pl: 1, mt: 0.5 }, children: subCanvasNames.map((branch) => (_jsx(TextField, { size: "small", variant: "standard", sx: { mr: 1, width: 140 }, label: `${branch} →`, placeholder: port.name, value: port.sources?.[branch] ?? '', onChange: (e) => setSource(index, branch, e.target.value) }, branch))) })] }, index));
110
110
  }), _jsx(Button, { startIcon: _jsx(AddIcon, {}), size: "small", variant: "outlined", fullWidth: true, onClick: () => { onChange([...ports, newDeclaredOutput(ports, subCanvasNames)]); }, children: "Add Output Port" })] }));
111
111
  }
112
- //# sourceMappingURL=PortDeclarationTable.js.map
@@ -67,4 +67,3 @@ export interface PortValueEditorProps extends Omit<PortValueEditorContext, 'requ
67
67
  * chosen here — leaving it means removing the wire on the canvas. */
68
68
  export declare function PortValueEditor({ fieldName, label, rawValue, fieldType, literalForm, description, required, placeholder, onChange, allowedValues, onClear, hasConnection, renderTypeEditor, renderExpressionEditor, onObjectChange, expressionPrefix, secretValues, canProtectSecrets, storedValueRefusal, valueTerm, }: PortValueEditorProps): import("react").JSX.Element;
69
69
  export {};
70
- //# sourceMappingURL=PortValueEditor.d.ts.map
@@ -166,4 +166,3 @@ export function PortValueEditor({ fieldName, label, rawValue, fieldType, literal
166
166
  write(number);
167
167
  } })) : kind === null ? (_jsx(Typography, { variant: "caption", color: "text.secondary", "data-testid": `port-value-none-${fieldName}`, children: "This type takes no literal value. Connect a wire or write an expression." })) : (_jsx(TextField, { fullWidth: true, size: "small", value: textValue, type: "text", placeholder: placeholder, helperText: description ?? undefined, slotProps: { htmlInput: { 'data-testid': `port-value-input-${fieldName}` } }, onChange: (event) => write(event.target.value) }))] }));
168
168
  }
169
- //# sourceMappingURL=PortValueEditor.js.map
@@ -24,4 +24,3 @@ export interface CollectionComposerProps {
24
24
  /** One more collection level around a picker's current type, beside the type Select. Rendered even when it
25
25
  * refuses, so the control is discoverable; a disabled control offers nothing. */
26
26
  export declare function CollectionComposer({ type, portTypes, ariaLabel, onWrap }: CollectionComposerProps): import("react").JSX.Element;
27
- //# sourceMappingURL=collectionComposer.d.ts.map
@@ -35,4 +35,3 @@ export function CollectionComposer({ type, portTypes, ariaLabel, onWrap }) {
35
35
  return (_jsx(Button, { size: "small", variant: "outlined", disabled: wrapped === null, "aria-label": ariaLabel, onClick: () => { if (wrapped !== null)
36
36
  onWrap(wrapped); }, children: "Collection" }));
37
37
  }
38
- //# sourceMappingURL=collectionComposer.js.map
@@ -7,4 +7,3 @@ export declare function RefusedLiteral({ testId, value, expected, onReplace }: {
7
7
  expected: string;
8
8
  onReplace: () => void;
9
9
  }): import("react").JSX.Element;
10
- //# sourceMappingURL=refusedLiteral.d.ts.map
@@ -8,4 +8,3 @@ export function describeStoredLiteral(value) {
8
8
  export function RefusedLiteral({ testId, value, expected, onReplace }) {
9
9
  return (_jsxs(Alert, { severity: "error", "data-testid": testId, "data-rule-id": "literal-port-value-invalid", action: _jsx(Button, { color: "inherit", size: "small", onClick: onReplace, children: "Replace" }), children: ["The stored value ", describeStoredLiteral(value), " cannot be read as ", expected, "."] }));
10
10
  }
11
- //# sourceMappingURL=refusedLiteral.js.map
@@ -3,4 +3,3 @@ import type { CanvasPathSegment, DraftAnalysisIndex, WorkflowNode } from '@reeve
3
3
  * arguments first, so a control follows an argument the moment it is set; then those arguments with the last analysis
4
4
  * answer filling the parameters they leave open; then the analysis port. */
5
5
  export declare function inputWriteTerm(declared: string, node: WorkflowNode, inputName: string, analysis: DraftAnalysisIndex, canvasPath: readonly CanvasPathSegment[]): string | undefined;
6
- //# sourceMappingURL=writeTerm.d.ts.map
@@ -8,4 +8,3 @@ export function inputWriteTerm(declared, node, inputName, analysis, canvasPath)
8
8
  ?? literalWriteTerm(declared, undefined, { ...analysis.node(canvasPath, node.id)?.typeArguments, ...own })
9
9
  ?? literalWriteTerm(declared, analysis.port(canvasPath, node.id, 'inputs', inputName), undefined);
10
10
  }
11
- //# sourceMappingURL=writeTerm.js.map
@@ -6,4 +6,3 @@ export interface ConcurrencySectionProps {
6
6
  /** Concurrency settings. The fields that cannot apply to the chosen mode are hidden rather than disabled,
7
7
  * so the form never shows a number the engine would ignore. */
8
8
  export declare function ConcurrencySection({ value, onChange }: ConcurrencySectionProps): import("react").JSX.Element;
9
- //# sourceMappingURL=ConcurrencySection.d.ts.map
@@ -29,4 +29,3 @@ export function ConcurrencySection({ value, onChange }) {
29
29
  const showOverflow = value.mode === 'Queued' || value.mode === 'Parallel';
30
30
  return (_jsxs(Box, { "data-testid": "concurrency-section", sx: { mt: 2 }, children: [_jsx(Typography, { variant: "subtitle1", sx: { fontWeight: 600 }, children: "Concurrency" }), _jsx(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block', mb: 2 }, children: "Controls how multiple trigger fires for this workflow are coordinated." }), _jsxs(Stack, { spacing: 2, children: [_jsxs(FormControl, { fullWidth: true, "data-testid": "concurrency-mode-select", children: [_jsx(InputLabel, { children: "Mode" }), _jsx(Select, { label: "Mode", value: value.mode, onChange: changeMode, slotProps: { input: { 'aria-label': 'Concurrency mode' } }, children: MODE_OPTIONS.map((option) => _jsx(MenuItem, { value: option.value, children: option.label }, option.value)) }), _jsx(FormHelperText, { children: MODE_OPTIONS.find((m) => m.value === value.mode)?.description ?? '' })] }), showMaxConcurrent && (_jsx(TextField, { type: "number", label: "Max concurrent runs", fullWidth: true, value: value.maxConcurrentRuns, onChange: changeNumber('maxConcurrentRuns', 1), slotProps: { htmlInput: { min: 1, 'data-testid': 'concurrency-max-concurrent-input' } }, helperText: "Number of runs allowed to execute at the same time. Must be >= 1." })), showMaxQueued && (_jsx(TextField, { type: "number", label: "Max queued runs", fullWidth: true, value: value.maxQueuedRuns, onChange: changeNumber('maxQueuedRuns', 0), slotProps: { htmlInput: { min: 0, 'data-testid': 'concurrency-max-queued-input' } }, helperText: "Capacity of the wait queue. Triggers beyond this apply the overflow behaviour. Must be >= 0." })), showOverflow && (_jsxs(FormControl, { fullWidth: true, "data-testid": "concurrency-overflow-select", children: [_jsx(InputLabel, { id: "concurrency-overflow-label", children: "Overflow behavior" }), _jsx(Select, { labelId: "concurrency-overflow-label", label: "Overflow behavior", value: value.overflowBehavior, onChange: (event) => onChange({ ...value, overflowBehavior: event.target.value }), slotProps: { input: { 'aria-label': 'Overflow behavior' } }, children: OVERFLOW_OPTIONS.map((option) => _jsx(MenuItem, { value: option.value, children: option.label }, option.value)) }), _jsx(FormHelperText, { children: OVERFLOW_OPTIONS.find((o) => o.value === value.overflowBehavior)?.description ?? '' })] }))] })] }));
31
31
  }
32
- //# sourceMappingURL=ConcurrencySection.js.map