@pipelex/mthds-ui 0.35.0 → 0.37.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.
- package/README.md +10 -0
- package/dist/{chunk-TMZ2JR2J.js → chunk-4KLE62AN.js} +13 -1
- package/dist/chunk-4KLE62AN.js.map +1 -0
- package/dist/{chunk-ABUDTHWF.js → chunk-AGFLCOWW.js} +47 -5
- package/dist/chunk-AGFLCOWW.js.map +1 -0
- package/dist/{chunk-K2C5FU4W.js → chunk-ENRYQOCO.js} +2 -2
- package/dist/{chunk-F63A55IE.js → chunk-ILZJIORT.js} +2 -2
- package/dist/form/react/RunPanel.css +12 -0
- package/dist/form/react/index.d.ts +59 -7
- package/dist/form/react/index.js +66 -10
- package/dist/form/react/index.js.map +1 -1
- package/dist/graph/index.d.ts +3 -2
- package/dist/graph/index.js +7 -3
- package/dist/graph/react/detail/DetailPanel.css +37 -11
- package/dist/graph/react/graph-core.css +39 -0
- package/dist/graph/react/index.d.ts +5 -2
- package/dist/graph/react/index.js +482 -433
- package/dist/graph/react/index.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/dist/standalone/graph-standalone.html +226 -161
- package/dist/standalone/graph-viewer.css +77 -12
- package/dist/standalone/graph-viewer.js +148 -148
- package/dist/static-graph/index.d.ts +2 -1
- package/dist/static-graph/index.js +1 -1
- package/dist/timeline/react/index.d.ts +2 -1
- package/dist/timeline/react/index.js +3 -3
- package/dist/{types-CTrrBpQf.d.ts → types-DsrzH6gM.d.ts} +43 -7
- package/package.json +3 -2
- package/dist/chunk-ABUDTHWF.js.map +0 -1
- package/dist/chunk-TMZ2JR2J.js.map +0 -1
- /package/dist/{chunk-K2C5FU4W.js.map → chunk-ENRYQOCO.js.map} +0 -0
- /package/dist/{chunk-F63A55IE.js.map → chunk-ILZJIORT.js.map} +0 -0
package/dist/graph/index.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
stripDomain,
|
|
72
72
|
textWidthPx,
|
|
73
73
|
validateGraphSpec
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-AGFLCOWW.js";
|
|
75
75
|
import {
|
|
76
76
|
makePipeRef,
|
|
77
77
|
parsePipeRef
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
LIGHT_PALETTE_COLORS,
|
|
83
83
|
getPaletteColors,
|
|
84
84
|
getPaletteForTheme
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-ENRYQOCO.js";
|
|
86
86
|
import {
|
|
87
87
|
ARROW_CLOSED_MARKER,
|
|
88
88
|
BINDING_STEP_TYPE,
|
|
@@ -113,17 +113,19 @@ import {
|
|
|
113
113
|
isBindingNode,
|
|
114
114
|
isBindingStepSpec,
|
|
115
115
|
isDryGraphSpec,
|
|
116
|
+
isFailingPipeNode,
|
|
116
117
|
isPluralMultiplicity,
|
|
117
118
|
isStaticGraphSpec,
|
|
118
119
|
isStuffNodeId,
|
|
119
120
|
multiplicitySuffix,
|
|
120
121
|
nodeHeight,
|
|
121
122
|
nodeWidth,
|
|
123
|
+
problemFailingPipe,
|
|
122
124
|
stuffDigestFromId,
|
|
123
125
|
stuffNodeId,
|
|
124
126
|
toolbarOrientation,
|
|
125
127
|
toolbarSide
|
|
126
|
-
} from "../chunk-
|
|
128
|
+
} from "../chunk-4KLE62AN.js";
|
|
127
129
|
import "../chunk-2NMEKWO5.js";
|
|
128
130
|
export {
|
|
129
131
|
ARROW_CLOSED_MARKER,
|
|
@@ -204,6 +206,7 @@ export {
|
|
|
204
206
|
isBindingNode,
|
|
205
207
|
isBindingStepSpec,
|
|
206
208
|
isDryGraphSpec,
|
|
209
|
+
isFailingPipeNode,
|
|
207
210
|
isGenericConcept,
|
|
208
211
|
isGraphStyleId,
|
|
209
212
|
isPluralMultiplicity,
|
|
@@ -219,6 +222,7 @@ export {
|
|
|
219
222
|
parsePipeRef,
|
|
220
223
|
pipeRefOf,
|
|
221
224
|
polylineMidpoint,
|
|
225
|
+
problemFailingPipe,
|
|
222
226
|
projectSimpleGraph,
|
|
223
227
|
resolveConceptRef,
|
|
224
228
|
resolveGraphStyle,
|
|
@@ -438,37 +438,63 @@
|
|
|
438
438
|
font-size: 9px;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
/* ───
|
|
441
|
+
/* ─── Problem section (a failed node's problem document) ────────────────── */
|
|
442
442
|
|
|
443
|
-
.detail-
|
|
443
|
+
.detail-problem {
|
|
444
444
|
background: var(--color-error-bg);
|
|
445
445
|
border: 1px solid var(--color-error-border);
|
|
446
446
|
border-radius: 6px;
|
|
447
447
|
padding: 10px 12px;
|
|
448
|
+
display: flex;
|
|
449
|
+
flex-direction: column;
|
|
450
|
+
gap: 8px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.detail-problem-header {
|
|
454
|
+
display: flex;
|
|
455
|
+
flex-wrap: wrap;
|
|
456
|
+
align-items: baseline;
|
|
457
|
+
gap: 4px 8px;
|
|
448
458
|
}
|
|
449
459
|
|
|
450
|
-
.detail-
|
|
460
|
+
.detail-problem-title {
|
|
451
461
|
font-size: 12px;
|
|
452
462
|
font-weight: 600;
|
|
453
463
|
color: var(--color-error);
|
|
454
|
-
margin-bottom: 4px;
|
|
455
464
|
}
|
|
456
465
|
|
|
457
|
-
.detail-
|
|
466
|
+
.detail-problem-code {
|
|
467
|
+
font-family: var(--font-mono);
|
|
468
|
+
font-size: 10px;
|
|
469
|
+
color: var(--text-muted);
|
|
470
|
+
border: 1px solid var(--color-error-border);
|
|
471
|
+
border-radius: 4px;
|
|
472
|
+
padding: 1px 5px;
|
|
473
|
+
overflow-wrap: anywhere;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.detail-problem-detail {
|
|
458
477
|
font-size: 11px;
|
|
459
478
|
color: var(--text-muted);
|
|
460
479
|
line-height: 1.5;
|
|
461
480
|
}
|
|
462
481
|
|
|
463
|
-
.detail-
|
|
482
|
+
.detail-problem-path {
|
|
464
483
|
font-family: var(--font-mono);
|
|
465
484
|
font-size: 10px;
|
|
466
485
|
color: var(--text-dim);
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
486
|
+
text-align: right;
|
|
487
|
+
overflow-wrap: anywhere;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.detail-problem-next-step .detail-section-label {
|
|
491
|
+
margin-bottom: 2px;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.detail-problem-next-step-detail {
|
|
495
|
+
font-size: 11px;
|
|
496
|
+
color: var(--text-default);
|
|
497
|
+
line-height: 1.5;
|
|
472
498
|
}
|
|
473
499
|
|
|
474
500
|
/* ─── Steps list (PipeSequence, PipeCondition outcomes) ─────────────────── */
|
|
@@ -651,6 +651,45 @@
|
|
|
651
651
|
outline-offset: 1px;
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
+
/* ─── The failing pipe ─────────────────────────────────────────────────────
|
|
655
|
+
The pipe a failed run failed in: the node whose own problem's `location`
|
|
656
|
+
names its pipe (`isFailingPipeNode`), as against the controllers above it,
|
|
657
|
+
which failed because of it. A ring in the error colour, drawn as a box-shadow
|
|
658
|
+
so it composes with the validation ring, an outline, and leaves the node's
|
|
659
|
+
geometry, and so the layout, unchanged. A box-shadow is one property, so
|
|
660
|
+
each state a card's own shadow changes in restates the ring beside it:
|
|
661
|
+
hovered, the card keeps it over the hover shadow (`.pipe-card:hover`, which
|
|
662
|
+
would otherwise win on specificity and drop it); selected, outside the
|
|
663
|
+
selection ring. A controller's group is drawn inside ReactFlow's wrapper,
|
|
664
|
+
whose selection ring sits in the same band as the group's ring and is
|
|
665
|
+
painted beneath it, so a selected failing group draws the selection ring
|
|
666
|
+
itself, with its own ring outside it, the way a selected failing card does. */
|
|
667
|
+
|
|
668
|
+
.pipe-card--failing-pipe {
|
|
669
|
+
box-shadow:
|
|
670
|
+
0 0 0 2px var(--color-error),
|
|
671
|
+
var(--shadow-sm);
|
|
672
|
+
}
|
|
673
|
+
.pipe-card--failing-pipe:hover {
|
|
674
|
+
box-shadow:
|
|
675
|
+
0 0 0 2px var(--color-error),
|
|
676
|
+
var(--shadow-md);
|
|
677
|
+
}
|
|
678
|
+
.react-flow__node-pipeCard.selected .pipe-card--failing-pipe {
|
|
679
|
+
box-shadow:
|
|
680
|
+
0 0 0 2px var(--color-accent),
|
|
681
|
+
0 0 0 4px var(--color-error),
|
|
682
|
+
var(--shadow-md);
|
|
683
|
+
}
|
|
684
|
+
.controller-group-node--failing-pipe {
|
|
685
|
+
box-shadow: 0 0 0 2px var(--color-error);
|
|
686
|
+
}
|
|
687
|
+
.react-flow__node-controllerGroup.selected .controller-group-node--failing-pipe {
|
|
688
|
+
box-shadow:
|
|
689
|
+
0 0 0 2px var(--color-accent),
|
|
690
|
+
0 0 0 4px var(--color-error);
|
|
691
|
+
}
|
|
692
|
+
|
|
654
693
|
.node-validation-badge {
|
|
655
694
|
flex-shrink: 0;
|
|
656
695
|
min-width: 16px;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { c as GraphSpec, d as GraphNodeData, e as GraphEdge, f as GraphNode, g as GraphConfig, h as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, j as PipeStatus, k as GraphSpecNodeIoItem, l as ValidationState, V as ValidationIssue, L as LabelDescriptor, m as PipeControllerType, n as FoldToggleOptions, N as NodeValidationSummary, o as PipeCardPayload, C as ConceptInfo, p as GraphSpecNode } from '../../types-
|
|
4
|
-
export { q as PipeOperatorType } from '../../types-
|
|
3
|
+
import { c as GraphSpec, d as GraphNodeData, e as GraphEdge, f as GraphNode, g as GraphConfig, h as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, j as PipeStatus, k as GraphSpecNodeIoItem, l as ValidationState, V as ValidationIssue, L as LabelDescriptor, m as PipeControllerType, n as FoldToggleOptions, N as NodeValidationSummary, o as PipeCardPayload, C as ConceptInfo, p as GraphSpecNode } from '../../types-DsrzH6gM.js';
|
|
4
|
+
export { q as PipeOperatorType } from '../../types-DsrzH6gM.js';
|
|
5
5
|
import { PipeIOContracts, OutputForm, InputForm, SaveFiles } from '@pipelex/mthds-form';
|
|
6
6
|
import { ResolveUrl, ResolveShareUrl, DownloadDisplay } from '@pipelex/mthds-form/react';
|
|
7
7
|
import { Edge, Node, ReactFlowInstance } from '@xyflow/react';
|
|
8
|
+
import 'mthds/errors';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* A graph and the artifacts that describe its pipes, taken from ONE source.
|
|
@@ -360,6 +361,8 @@ interface ControllerGroupData {
|
|
|
360
361
|
onToggleFold?: (options?: FoldToggleOptions) => void;
|
|
361
362
|
validation?: NodeValidationSummary;
|
|
362
363
|
onValidationBadgeClick?: () => void;
|
|
364
|
+
/** Set when the controller is itself the pipe its run failed in (`isFailingPipeNode`). */
|
|
365
|
+
failingPipe?: true;
|
|
363
366
|
}
|
|
364
367
|
declare function ControllerGroupNode({ data }: {
|
|
365
368
|
data: ControllerGroupData;
|