@pipelex/mthds-ui 0.44.0 → 0.45.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/dist/{chunk-ENRYQOCO.js → chunk-CZGIDVT7.js} +2 -2
- package/dist/{chunk-7JZBXBZS.js → chunk-DNYJEPHT.js} +3 -3
- package/dist/{chunk-6S5TQPTO.js → chunk-DUBNSW66.js} +2 -2
- package/dist/{chunk-5E3UJI2I.js → chunk-SCKRIESM.js} +411 -29
- package/dist/chunk-SCKRIESM.js.map +1 -0
- package/dist/{chunk-N2F62MW7.js → chunk-UAYO53EO.js} +5 -5
- package/dist/chunk-UAYO53EO.js.map +1 -0
- package/dist/{chunk-4KLE62AN.js → chunk-X7GHQ3SD.js} +1 -1
- package/dist/{chunk-4KLE62AN.js.map → chunk-X7GHQ3SD.js.map} +1 -1
- package/dist/form/react/index.d.ts +1 -1
- package/dist/form/react/index.js +2 -2
- package/dist/graph/index.d.ts +226 -4
- package/dist/graph/index.js +8 -4
- package/dist/graph/react/index.d.ts +2 -2
- package/dist/graph/react/index.js +1679 -985
- package/dist/graph/react/index.js.map +1 -1
- package/dist/graph/react/styles/simple/SimpleDetailPanel.css +492 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -4
- package/dist/{registryJoin-C6Wfkik-.d.ts → registryJoin-C7paykZ2.d.ts} +1 -1
- package/dist/standalone/graph-standalone.html +620 -127
- package/dist/standalone/graph-viewer.css +493 -0
- package/dist/standalone/graph-viewer.js +127 -127
- package/dist/static-graph/index.d.ts +1 -1
- package/dist/static-graph/index.js +1 -1
- package/dist/timeline/index.d.ts +3 -3
- package/dist/timeline/index.js +2 -2
- package/dist/timeline/react/index.d.ts +2 -2
- package/dist/timeline/react/index.js +5 -5
- package/dist/{types-DLAnYNoi.d.ts → types-DgYaVX6K.d.ts} +8 -0
- package/package.json +2 -1
- package/dist/chunk-5E3UJI2I.js.map +0 -1
- package/dist/chunk-N2F62MW7.js.map +0 -1
- /package/dist/{chunk-ENRYQOCO.js.map → chunk-CZGIDVT7.js.map} +0 -0
- /package/dist/{chunk-7JZBXBZS.js.map → chunk-DNYJEPHT.js.map} +0 -0
- /package/dist/{chunk-6S5TQPTO.js.map → chunk-DUBNSW66.js.map} +0 -0
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as GraphSpecNode, s as CardNode, t as PipeCallNode, d as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, u as GraphData, v as GraphSpecMode, p as PipeCardPayload, o as FoldToggleOptions, g as GraphNode, f as GraphEdge, e as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, l as GraphSpecNodeIoItem, i as GraphDirection, w as LayoutConfig, E as EdgeRoute, x as GraphPoint, h as GraphConfig, T as ToolbarPosition, j as GraphStyleId, a as GraphTheme, y as SimpleTitleFit, z as NodePipeType, A as StepCategory, k as PipeStatus } from '../types-
|
|
2
|
-
export { B as ARROW_CLOSED_MARKER, H as BINDING_STEP_TYPE, I as BindingNode, J as BindingStepSpec, K as BindingStepType, M as CONTROLLER_PADDING_BOTTOM, O as CONTROLLER_PADDING_TOP, Q as CONTROLLER_PADDING_X, R as EDGE_TYPE, U as EDGE_TYPE_ROUTED, W as EdgeType, X as FOLD_MODE, Y as FieldResolution, F as FoldMode, Z as GRAPH_DIRECTION, _ as GRAPH_SPEC_MODE, $ as GRAPH_STYLE, a0 as GRAPH_THEME, a1 as GRAPH_THEME_MODE, a2 as GraphSpecEdge, a3 as GraphSpecEdgeKind, a4 as GraphSpecMeta, a5 as GraphSpecModelUsage, a6 as GraphSpecNodeIo, a7 as GraphSpecNodeTiming, a8 as GraphSpecNodeUsage, a9 as GraphSpecUsage, G as GraphThemeMode, aa as JudgmentQuestionSpec, ab as KNOWN_PIPE_TYPES, L as LabelDescriptor, ac as NODE_TYPE_CONTROLLER, ad as NODE_TYPE_PIPE_CARD, ae as NODE_TYPE_SIMPLE_DECISION, af as NODE_TYPE_SIMPLE_FRAME, ag as NODE_TYPE_SIMPLE_STEP, ah as NODE_TYPE_SIMPLE_TERMINAL, ai as NODE_TYPE_STUFF, aj as NodeKind, ak as PipeBatchBlueprint, al as PipeBlueprintBase, am as PipeComposeBlueprint, an as PipeComposeConstructBlueprint, ao as PipeComposeConstructField, ap as PipeConditionBlueprint, n as PipeControllerType, aq as PipeDocGenBlueprint, ar as PipeExtractBlueprint, as as PipeFuncBlueprint, at as PipeImgGenBlueprint, au as PipeJudgeBlueprint, av as PipeLLMBlueprint, r as PipeOperatorType, aw as PipeParallelBlueprint, ax as PipeSearchBlueprint, b as PipeSequenceBlueprint, ay as PipeSignatureBlueprint, az as PipeStructureBlueprint, aA as PipeType, c as PresenceMarker, aB as STEP_CATEGORY, aC as STUFF_ID_PREFIX, aD as SequenceStepSpec, aE as SimpleNodePayload, aF as StuffMultiplicity, aG as StuffRegistryEntry, aH as StuffRole, aI as StuffSpecInfo, S as SubPipeSpec, aJ as TOOLBAR_POSITION, aK as TemplateBlueprint, aL as ToolbarOrientation, aM as ToolbarSide, aN as VALIDATION_STATE, m as ValidationState, aO as graphSpecMode, aP as isBindingNode, aQ as isBindingStepSpec, aR as isDryGraphSpec, aS as isFailingPipeNode, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as problemFailingPipe, a_ as stuffDigestFromId, a$ as stuffNodeId, b0 as toolbarOrientation, b1 as toolbarSide } from '../types-
|
|
1
|
+
import { q as GraphSpecNode, s as CardNode, t as PipeCallNode, d as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, u as GraphData, v as GraphSpecMode, p as PipeCardPayload, o as FoldToggleOptions, g as GraphNode, f as GraphEdge, e as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, l as GraphSpecNodeIoItem, i as GraphDirection, w as LayoutConfig, E as EdgeRoute, x as GraphPoint, h as GraphConfig, T as ToolbarPosition, j as GraphStyleId, a as GraphTheme, y as SimpleTitleFit, z as NodePipeType, A as StepCategory, k as PipeStatus } from '../types-DgYaVX6K.js';
|
|
2
|
+
export { B as ARROW_CLOSED_MARKER, H as BINDING_STEP_TYPE, I as BindingNode, J as BindingStepSpec, K as BindingStepType, M as CONTROLLER_PADDING_BOTTOM, O as CONTROLLER_PADDING_TOP, Q as CONTROLLER_PADDING_X, R as EDGE_TYPE, U as EDGE_TYPE_ROUTED, W as EdgeType, X as FOLD_MODE, Y as FieldResolution, F as FoldMode, Z as GRAPH_DIRECTION, _ as GRAPH_SPEC_MODE, $ as GRAPH_STYLE, a0 as GRAPH_THEME, a1 as GRAPH_THEME_MODE, a2 as GraphSpecEdge, a3 as GraphSpecEdgeKind, a4 as GraphSpecMeta, a5 as GraphSpecModelUsage, a6 as GraphSpecNodeIo, a7 as GraphSpecNodeTiming, a8 as GraphSpecNodeUsage, a9 as GraphSpecUsage, G as GraphThemeMode, aa as JudgmentQuestionSpec, ab as KNOWN_PIPE_TYPES, L as LabelDescriptor, ac as NODE_TYPE_CONTROLLER, ad as NODE_TYPE_PIPE_CARD, ae as NODE_TYPE_SIMPLE_DECISION, af as NODE_TYPE_SIMPLE_FRAME, ag as NODE_TYPE_SIMPLE_STEP, ah as NODE_TYPE_SIMPLE_TERMINAL, ai as NODE_TYPE_STUFF, aj as NodeKind, ak as PipeBatchBlueprint, al as PipeBlueprintBase, am as PipeComposeBlueprint, an as PipeComposeConstructBlueprint, ao as PipeComposeConstructField, ap as PipeConditionBlueprint, n as PipeControllerType, aq as PipeDocGenBlueprint, ar as PipeExtractBlueprint, as as PipeFuncBlueprint, at as PipeImgGenBlueprint, au as PipeJudgeBlueprint, av as PipeLLMBlueprint, r as PipeOperatorType, aw as PipeParallelBlueprint, ax as PipeSearchBlueprint, b as PipeSequenceBlueprint, ay as PipeSignatureBlueprint, az as PipeStructureBlueprint, aA as PipeType, c as PresenceMarker, aB as STEP_CATEGORY, aC as STUFF_ID_PREFIX, aD as SequenceStepSpec, aE as SimpleNodePayload, aF as StuffMultiplicity, aG as StuffRegistryEntry, aH as StuffRole, aI as StuffSpecInfo, S as SubPipeSpec, aJ as TOOLBAR_POSITION, aK as TemplateBlueprint, aL as ToolbarOrientation, aM as ToolbarSide, aN as VALIDATION_STATE, m as ValidationState, aO as graphSpecMode, aP as isBindingNode, aQ as isBindingStepSpec, aR as isDryGraphSpec, aS as isFailingPipeNode, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as problemFailingPipe, a_ as stuffDigestFromId, a$ as stuffNodeId, b0 as toolbarOrientation, b1 as toolbarSide } from '../types-DgYaVX6K.js';
|
|
3
3
|
export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
|
|
4
4
|
import { ElkNode } from 'elkjs/lib/elk-api';
|
|
5
|
-
import 'mthds/errors';
|
|
5
|
+
import { Problem } from 'mthds/errors';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Single boundary validator for GraphSpec JSON.
|
|
@@ -390,6 +390,11 @@ interface GraphStyleCapabilities {
|
|
|
390
390
|
* frame.
|
|
391
391
|
*/
|
|
392
392
|
foldAll: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* The style draws values as arrows rather than nodes, so an arrow takes a
|
|
395
|
+
* click and opens the values it carries in the detail panel.
|
|
396
|
+
*/
|
|
397
|
+
valueArrows: boolean;
|
|
393
398
|
}
|
|
394
399
|
/** What the registry says of one style: what it is called, what it is for, and what it supports. */
|
|
395
400
|
interface GraphStyleDescriptor {
|
|
@@ -604,7 +609,38 @@ interface SimpleProjection {
|
|
|
604
609
|
analysis: DataflowAnalysis;
|
|
605
610
|
/** Each spec node the style does not draw, mapped to the drawn node that stands for it. */
|
|
606
611
|
standIns: ReadonlyMap<string, string>;
|
|
612
|
+
/**
|
|
613
|
+
* Where each value goes among the drawn nodes, by digest: the steps, the
|
|
614
|
+
* decisions or the method input it comes from, and the ones that read it, a
|
|
615
|
+
* binding passing it through to its own readers. What the detail panel says
|
|
616
|
+
* of a value the canvas draws only as arrows.
|
|
617
|
+
*/
|
|
618
|
+
valueFlows: ReadonlyMap<string, SimpleValueFlow>;
|
|
619
|
+
/**
|
|
620
|
+
* Every run each drawn node stands for, by the drawn node's id, itself
|
|
621
|
+
* included: one for a step outside a batch, one per item for a step a batch
|
|
622
|
+
* ran once per item. A node drawn for one run maps to itself alone.
|
|
623
|
+
*/
|
|
624
|
+
runs: ReadonlyMap<string, readonly string[]>;
|
|
625
|
+
}
|
|
626
|
+
/** Where one value goes among the nodes the simple style draws. */
|
|
627
|
+
interface SimpleValueFlow {
|
|
628
|
+
/** The drawn nodes it comes from: the steps that wrote it, or the method input it is. */
|
|
629
|
+
from: readonly string[];
|
|
630
|
+
/** The drawn nodes that read it: steps, decisions, or the final output it is. */
|
|
631
|
+
to: readonly string[];
|
|
607
632
|
}
|
|
633
|
+
/**
|
|
634
|
+
* What the simple style calls a value, on the canvas and in the detail panel
|
|
635
|
+
* alike. A value is named by its variable, with its concept's plain name beneath
|
|
636
|
+
* when that says more. The method's final output is named by its concept when
|
|
637
|
+
* the author defined it ("Bid summary"), and like any other value when the
|
|
638
|
+
* concept is built in, since a shape reading "Text" says nothing.
|
|
639
|
+
*/
|
|
640
|
+
declare function simpleValueTitle(graphspec: GraphSpec, item: Pick<GraphSpecNodeIoItem, "name" | "concept">, role: "input" | "output"): {
|
|
641
|
+
title: string;
|
|
642
|
+
subtitle?: string;
|
|
643
|
+
};
|
|
608
644
|
/**
|
|
609
645
|
* Project the folded dataflow graph into the simple style's nodes and edges.
|
|
610
646
|
* Node ids stay the GraphSpec's — a step keeps its pipe node's id and a method
|
|
@@ -667,6 +703,14 @@ interface StyleProjection {
|
|
|
667
703
|
* validation issue pinned to the first still badges the second.
|
|
668
704
|
*/
|
|
669
705
|
standIns?: ReadonlyMap<string, string>;
|
|
706
|
+
/**
|
|
707
|
+
* For a style that draws values as arrows: where each value goes among the
|
|
708
|
+
* drawn nodes, by digest, so the detail panel can say what the canvas does
|
|
709
|
+
* not draw.
|
|
710
|
+
*/
|
|
711
|
+
valueFlows?: ReadonlyMap<string, SimpleValueFlow>;
|
|
712
|
+
/** For a style that draws several runs as one node: every run each drawn node stands for. */
|
|
713
|
+
runs?: ReadonlyMap<string, readonly string[]>;
|
|
670
714
|
}
|
|
671
715
|
/** What a style's frame pass receives: the laid-out nodes, and the viewer's frame and fold state. */
|
|
672
716
|
interface StyleFrameArgs {
|
|
@@ -697,4 +741,182 @@ interface GraphStylePipeline {
|
|
|
697
741
|
}
|
|
698
742
|
declare const GRAPH_STYLE_PIPELINES: Record<GraphStyleId, GraphStylePipeline>;
|
|
699
743
|
|
|
700
|
-
|
|
744
|
+
/** Which of the simple style's shapes a link points at. */
|
|
745
|
+
type SimpleLinkKind = "step" | "decision" | "frame" | "input" | "output";
|
|
746
|
+
/** A drawn node the panel names and lets the reader go to. */
|
|
747
|
+
interface SimpleNodeLink {
|
|
748
|
+
nodeId: string;
|
|
749
|
+
title: string;
|
|
750
|
+
kind: SimpleLinkKind;
|
|
751
|
+
}
|
|
752
|
+
/** A value as the panel shows it: named as the canvas names it, with where it comes from and goes. */
|
|
753
|
+
interface SimpleValue {
|
|
754
|
+
digest: string;
|
|
755
|
+
title: string;
|
|
756
|
+
/** The concept's plain name, when it says something the title does not. */
|
|
757
|
+
subtitle?: string;
|
|
758
|
+
/** The concept's authored description. */
|
|
759
|
+
description?: string;
|
|
760
|
+
isList: boolean;
|
|
761
|
+
/** The drawn nodes it comes from: the steps that wrote it, or the method input it is. */
|
|
762
|
+
from: SimpleNodeLink[];
|
|
763
|
+
/** The drawn nodes that read it, the method's final output included. */
|
|
764
|
+
to: SimpleNodeLink[];
|
|
765
|
+
/**
|
|
766
|
+
* Where the spec holds it, for drawing the value itself: the richest copy and
|
|
767
|
+
* the pipe that produced it, which the result panel's descriptors are keyed by.
|
|
768
|
+
*/
|
|
769
|
+
location: StuffLocation | null;
|
|
770
|
+
}
|
|
771
|
+
/** How the runs of a node drawn once for several stand, by status. */
|
|
772
|
+
interface SimpleRunTally {
|
|
773
|
+
total: number;
|
|
774
|
+
byStatus: Partial<Record<PipeStatus, number>>;
|
|
775
|
+
}
|
|
776
|
+
/** What the panel says of a node's run; absent in a static graph, which ran nothing. */
|
|
777
|
+
interface SimpleRunSummary {
|
|
778
|
+
/** The status the canvas shows, the worst of its runs for a node drawn once for several. */
|
|
779
|
+
status: PipeStatus;
|
|
780
|
+
/** How many runs the node stands for: more than one for a step a batch ran once per item. */
|
|
781
|
+
runs: number;
|
|
782
|
+
/** Seconds, for a node drawn for one run that recorded its time. */
|
|
783
|
+
durationSeconds?: number;
|
|
784
|
+
/**
|
|
785
|
+
* For a node drawn once for several runs, a step a batch ran once per item:
|
|
786
|
+
* how many there were and how they stand.
|
|
787
|
+
*/
|
|
788
|
+
tally?: SimpleRunTally;
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* What a step is asked to do, in its author's words: an AI step's prompt, a
|
|
792
|
+
* judge's question, an image step's description, a search's query. The view
|
|
793
|
+
* heads it by `category`.
|
|
794
|
+
*/
|
|
795
|
+
interface SimpleInstructions {
|
|
796
|
+
category: StepCategory;
|
|
797
|
+
text: string;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* An outcome that leads to no step: `fail` stops the method with a failure,
|
|
801
|
+
* `continue` goes on past the decision without running a branch.
|
|
802
|
+
*/
|
|
803
|
+
type SimpleOutcomeEnd = "fail" | "continue";
|
|
804
|
+
/** One way a decision can go. */
|
|
805
|
+
interface SimpleOutcome {
|
|
806
|
+
/** The outcome in plain words: "Needs review", "Yes", "Otherwise". */
|
|
807
|
+
label: string;
|
|
808
|
+
/** The step it leads to, by the registry's title, drawn or not; empty when `ends` is set. */
|
|
809
|
+
leadsToTitle: string;
|
|
810
|
+
/** Set when the outcome leads to no step, which the canvas draws no arrow for. */
|
|
811
|
+
ends?: SimpleOutcomeEnd;
|
|
812
|
+
/** The drawn node its arrow goes to, when it is drawn. */
|
|
813
|
+
leadsTo?: SimpleNodeLink;
|
|
814
|
+
/**
|
|
815
|
+
* In a run: how many of the decision's runs took it, out of `runs`. Absent in
|
|
816
|
+
* a static graph and in a dry run, which resolves no condition, and for an
|
|
817
|
+
* outcome that `ends`, which leaves no branch to read it off.
|
|
818
|
+
*/
|
|
819
|
+
taken?: number;
|
|
820
|
+
}
|
|
821
|
+
interface SimpleNodeDetailBase {
|
|
822
|
+
nodeId: string;
|
|
823
|
+
title: string;
|
|
824
|
+
/** The spec node the panel's technical fold shows. */
|
|
825
|
+
specNode: GraphSpecNode;
|
|
826
|
+
run?: SimpleRunSummary;
|
|
827
|
+
/**
|
|
828
|
+
* Why it failed, first in the panel: for a node drawn once for several runs,
|
|
829
|
+
* the problem of the first run that failed, which need not be the drawn one.
|
|
830
|
+
*/
|
|
831
|
+
problem?: Problem;
|
|
832
|
+
}
|
|
833
|
+
interface SimpleStepDetail extends SimpleNodeDetailBase {
|
|
834
|
+
kind: "step";
|
|
835
|
+
category: StepCategory;
|
|
836
|
+
uses: SimpleValue[];
|
|
837
|
+
produces: SimpleValue[];
|
|
838
|
+
instructions?: SimpleInstructions;
|
|
839
|
+
/** "For each page", when a batch runs the step once per item. */
|
|
840
|
+
forEach?: string;
|
|
841
|
+
/** For a folded sub-method: the titles of the steps it holds, and how to unfold it. */
|
|
842
|
+
inner?: {
|
|
843
|
+
count: number;
|
|
844
|
+
steps: string[];
|
|
845
|
+
onExpand?: (options?: FoldToggleOptions) => void;
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
interface SimpleDecisionDetail extends SimpleNodeDetailBase {
|
|
849
|
+
kind: "decision";
|
|
850
|
+
uses: SimpleValue[];
|
|
851
|
+
outcomes: SimpleOutcome[];
|
|
852
|
+
/** How many times the decision was made: more than one inside a batch. */
|
|
853
|
+
runs: number;
|
|
854
|
+
}
|
|
855
|
+
interface SimpleFrameDetail extends SimpleNodeDetailBase {
|
|
856
|
+
kind: "frame";
|
|
857
|
+
/** The list it repeats over. */
|
|
858
|
+
over?: SimpleValue;
|
|
859
|
+
/** The drawn nodes it repeats, in drawing order. */
|
|
860
|
+
steps: SimpleNodeLink[];
|
|
861
|
+
/** In a run: how the items stand. */
|
|
862
|
+
items?: SimpleRunTally;
|
|
863
|
+
}
|
|
864
|
+
interface SimpleValueDetail {
|
|
865
|
+
kind: "value";
|
|
866
|
+
nodeId: string;
|
|
867
|
+
role: "input" | "output";
|
|
868
|
+
value: SimpleValue;
|
|
869
|
+
/** What the value's concept holds, field by field, in plain words. */
|
|
870
|
+
fields: {
|
|
871
|
+
title: string;
|
|
872
|
+
description?: string;
|
|
873
|
+
}[];
|
|
874
|
+
}
|
|
875
|
+
interface SimpleArrowDetail {
|
|
876
|
+
kind: "arrow";
|
|
877
|
+
edgeId: string;
|
|
878
|
+
from: SimpleNodeLink;
|
|
879
|
+
to: SimpleNodeLink;
|
|
880
|
+
/** The outcome it stands for, when it leaves a decision. */
|
|
881
|
+
outcome?: string;
|
|
882
|
+
values: SimpleValue[];
|
|
883
|
+
}
|
|
884
|
+
/** What the simple style's panel shows, discriminated on `kind`. */
|
|
885
|
+
type SimpleDetail = SimpleStepDetail | SimpleDecisionDetail | SimpleFrameDetail | SimpleValueDetail | SimpleArrowDetail;
|
|
886
|
+
/**
|
|
887
|
+
* What the panel was opened on: a node, by its id, or an arrow, by its two ends,
|
|
888
|
+
* which name one arrow of a drawing however it was numbered.
|
|
889
|
+
*/
|
|
890
|
+
type SimpleDetailTarget = {
|
|
891
|
+
kind: "node";
|
|
892
|
+
id: string;
|
|
893
|
+
} | {
|
|
894
|
+
kind: "arrow";
|
|
895
|
+
source: string;
|
|
896
|
+
target: string;
|
|
897
|
+
};
|
|
898
|
+
interface SimpleDetailInput {
|
|
899
|
+
graphspec: GraphSpec;
|
|
900
|
+
/**
|
|
901
|
+
* The nodes the simple style drew, as the canvas holds them: the payload's
|
|
902
|
+
* status is the one the canvas shows, a host's `statusMap` included.
|
|
903
|
+
*/
|
|
904
|
+
nodes: readonly Pick<GraphNode, "id" | "type" | "data">[];
|
|
905
|
+
edges: readonly Pick<GraphEdge, "id" | "source" | "target" | "label" | "carries">[];
|
|
906
|
+
/** The projection's value flows (`SimpleProjection.valueFlows`). */
|
|
907
|
+
valueFlows: ReadonlyMap<string, SimpleValueFlow>;
|
|
908
|
+
/** The projection's runs (`SimpleProjection.runs`). */
|
|
909
|
+
runs: ReadonlyMap<string, readonly string[]>;
|
|
910
|
+
/**
|
|
911
|
+
* What each "for each" frame holds, by the frame's id: the projection's
|
|
912
|
+
* `analysis.containmentTree`, whose only controllers are its frames.
|
|
913
|
+
*/
|
|
914
|
+
frameContents: Readonly<Record<string, readonly string[]>>;
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* What the panel says about a node or an arrow of the simple style, or null
|
|
918
|
+
* when the target is not one the style drew.
|
|
919
|
+
*/
|
|
920
|
+
declare function buildSimpleNodeDetail(input: SimpleDetailInput, target: SimpleDetailTarget): SimpleDetail | null;
|
|
921
|
+
|
|
922
|
+
export { CardNode, ConceptInfo, type ControllerRect, DARK_PALETTE_COLORS, DEFAULT_GRAPH_CONFIG, DataflowAnalysis, EdgeRoute, type ElkPositionResult, FoldToggleOptions, GRAPH_STYLES, GRAPH_STYLE_IDS, GRAPH_STYLE_PIPELINES, GraphConfig, GraphData, GraphDirection, GraphEdge, GraphNode, GraphNodeData, GraphPoint, GraphSpec, GraphSpecMode, GraphSpecNode, GraphSpecNodeIoItem, GraphSpecValidationError, type GraphStyleCapabilities, type GraphStyleDescriptor, GraphStyleId, type GraphStylePipeline, GraphTheme, LIGHT_PALETTE_COLORS, LayoutConfig, type LayoutResult, MAX_VISIBLE_CONTROLLER_CHILDREN, NodePipeType, NodeValidationSummary, PipeBlueprintUnion, PipeCallNode, PipeCardPayload, PipeStatus, ROUTE_CORNER_RADIUS_PX, ROUTE_ENDPOINT_TOLERANCE_PX, SIMPLE_DECISION_WIDTHS, SIMPLE_FOLD_DEPTH, SIMPLE_STEP_TITLE_FITS, SIMPLE_STEP_WIDE_WIDTH, SIMPLE_STEP_WIDTH, SIMPLE_TERMINAL_WIDTH, STEP_CATEGORY_BY_PIPE_TYPE, STEP_CATEGORY_WORDS, type SimpleArrowDetail, type SimpleDecisionDetail, type SimpleDetail, type SimpleDetailInput, type SimpleDetailTarget, type SimpleFrameDetail, type SimpleInstructions, type SimpleLinkKind, type SimpleNodeLink, type SimpleOutcome, type SimpleOutcomeEnd, type SimpleProjection, type SimpleProjectionInput, type SimpleRunSummary, type SimpleRunTally, type SimpleStepDetail, SimpleTitleFit, type SimpleValue, type SimpleValueDetail, type SimpleValueFlow, StepCategory, type StuffLocation, type StyleFrameArgs, type StyleProjection, type StyleProjectionArgs, ToolbarPosition, ValidationIssue, type WrapEstimate, aggregateStatus, applyControllers, applyFolds, applySimpleFrames, applyValidationDecorations, asCardNode, asPipeCallNode, buildChildToControllerMap, buildContainmentChain, buildControllerNodes, buildDataflowAnalysis, buildDataflowGraph, buildElkGraph, buildGraph, buildPipeCardPayload, buildSimpleNodeDetail, buildValidationDecorations, conceptPlainName, estimateNodeDimensions, estimateWrap, extractAbsolutePositions, extractEdgeRoutes, findCousinControllers, findStuffByDigest, fitRoute, getConceptInfo, getLayoutedElements, getPaletteColors, getPaletteForTheme, getPipeBlueprint, humanizeIdentifier, humanizeInSentence, inputPortId, isGenericConcept, isGraphStyleId, outcomeLabel, outermostFoldedAncestor, outputPortId, pipeRefOf, pipeTitle, polylineMidpoint, projectSimpleGraph, resolveConceptRef, resolveGraphStyle, resolveIssueTargetNodeId, resolveNodeBlueprint, resolveStyleMenu, roundedPolylinePath, routeLabelCenter, sentenceCase, simpleDecisionSize, simpleDefaultFolds, simpleEdgeLabelSize, simpleStepSize, simpleTerminalSize, simpleTitleFit, simpleTitleWrap, simpleValueTitle, sortParentsFirst, stripDomain, textWidthPx, validateGraphSpec };
|
package/dist/graph/index.js
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
buildElkGraph,
|
|
29
29
|
buildGraph,
|
|
30
30
|
buildPipeCardPayload,
|
|
31
|
+
buildSimpleNodeDetail,
|
|
31
32
|
buildValidationDecorations,
|
|
32
33
|
estimateNodeDimensions,
|
|
33
34
|
estimateWrap,
|
|
@@ -57,17 +58,18 @@ import {
|
|
|
57
58
|
simpleTerminalSize,
|
|
58
59
|
simpleTitleFit,
|
|
59
60
|
simpleTitleWrap,
|
|
61
|
+
simpleValueTitle,
|
|
60
62
|
sortParentsFirst,
|
|
61
63
|
textWidthPx,
|
|
62
64
|
validateGraphSpec
|
|
63
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-SCKRIESM.js";
|
|
64
66
|
import {
|
|
65
67
|
GRAPH_STYLES,
|
|
66
68
|
GRAPH_STYLE_IDS,
|
|
67
69
|
isGraphStyleId,
|
|
68
70
|
resolveGraphStyle,
|
|
69
71
|
resolveStyleMenu
|
|
70
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-UAYO53EO.js";
|
|
71
73
|
import {
|
|
72
74
|
makePipeRef,
|
|
73
75
|
parsePipeRef
|
|
@@ -88,7 +90,7 @@ import {
|
|
|
88
90
|
LIGHT_PALETTE_COLORS,
|
|
89
91
|
getPaletteColors,
|
|
90
92
|
getPaletteForTheme
|
|
91
|
-
} from "../chunk-
|
|
93
|
+
} from "../chunk-CZGIDVT7.js";
|
|
92
94
|
import {
|
|
93
95
|
ARROW_CLOSED_MARKER,
|
|
94
96
|
BINDING_STEP_TYPE,
|
|
@@ -131,7 +133,7 @@ import {
|
|
|
131
133
|
stuffNodeId,
|
|
132
134
|
toolbarOrientation,
|
|
133
135
|
toolbarSide
|
|
134
|
-
} from "../chunk-
|
|
136
|
+
} from "../chunk-X7GHQ3SD.js";
|
|
135
137
|
import "../chunk-2NMEKWO5.js";
|
|
136
138
|
export {
|
|
137
139
|
ARROW_CLOSED_MARKER,
|
|
@@ -192,6 +194,7 @@ export {
|
|
|
192
194
|
buildElkGraph,
|
|
193
195
|
buildGraph,
|
|
194
196
|
buildPipeCardPayload,
|
|
197
|
+
buildSimpleNodeDetail,
|
|
195
198
|
buildValidationDecorations,
|
|
196
199
|
conceptPlainName,
|
|
197
200
|
estimateNodeDimensions,
|
|
@@ -247,6 +250,7 @@ export {
|
|
|
247
250
|
simpleTerminalSize,
|
|
248
251
|
simpleTitleFit,
|
|
249
252
|
simpleTitleWrap,
|
|
253
|
+
simpleValueTitle,
|
|
250
254
|
sortParentsFirst,
|
|
251
255
|
stripDomain,
|
|
252
256
|
stuffDigestFromId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { d as GraphSpec, e as GraphNodeData, f as GraphEdge, g as GraphNode, h as GraphConfig, i as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, j as GraphStyleId, a as GraphTheme, k as PipeStatus, l as GraphSpecNodeIoItem, m as ValidationState, V as ValidationIssue, L as LabelDescriptor, n as PipeControllerType, o as FoldToggleOptions, N as NodeValidationSummary, p as PipeCardPayload, C as ConceptInfo, q as GraphSpecNode } from '../../types-
|
|
4
|
-
export { r as PipeOperatorType } from '../../types-
|
|
3
|
+
import { d as GraphSpec, e as GraphNodeData, f as GraphEdge, g as GraphNode, h as GraphConfig, i as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, j as GraphStyleId, a as GraphTheme, k as PipeStatus, l as GraphSpecNodeIoItem, m as ValidationState, V as ValidationIssue, L as LabelDescriptor, n as PipeControllerType, o as FoldToggleOptions, N as NodeValidationSummary, p as PipeCardPayload, C as ConceptInfo, q as GraphSpecNode } from '../../types-DgYaVX6K.js';
|
|
4
|
+
export { r as PipeOperatorType } from '../../types-DgYaVX6K.js';
|
|
5
5
|
import { PipeIOContracts, OutputForm, InputForm, SaveFiles } from '@pipelex/mthds-form';
|
|
6
6
|
import { ResolveUrl, ResolveRendition, ResolveShareUrl, DownloadDisplay } from '@pipelex/mthds-form/react';
|
|
7
7
|
import { Edge, Node, ReactFlowInstance } from '@xyflow/react';
|