@pipelex/mthds-ui 0.30.0 → 0.31.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.
@@ -1,4 +1,4 @@
1
- import { C as ConceptInfo, P as PipeBlueprintUnion, a as PresenceMarker, b as GraphSpec, V as ValidationIssue } from '../types-BNqjYF_x.js';
1
+ import { C as ConceptInfo, P as PipeBlueprintUnion, a as PresenceMarker, b as GraphSpec, V as ValidationIssue } from '../types-KYRgLdlh.js';
2
2
  export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
3
3
 
4
4
  type DiagnosticSeverity = "error" | "warning";
@@ -7,7 +7,7 @@ import {
7
7
  KNOWN_PIPE_TYPES,
8
8
  isBindingStepSpec,
9
9
  isPluralMultiplicity
10
- } from "../chunk-PJTYQURQ.js";
10
+ } from "../chunk-QRO3TYZE.js";
11
11
  import {
12
12
  __spreadProps,
13
13
  __spreadValues
@@ -827,11 +827,24 @@ declare const STEP_CATEGORY: {
827
827
  readonly PICK: "pick";
828
828
  };
829
829
  type StepCategory = (typeof STEP_CATEGORY)[keyof typeof STEP_CATEGORY];
830
+ /**
831
+ * How a step's title is set: the box width and the type the layout sized the
832
+ * step for, which the drawing must use for the two to agree.
833
+ */
834
+ interface SimpleTitleFit {
835
+ boxWidth: number;
836
+ fontPx: number;
837
+ lineHeightPx: number;
838
+ /** The lines the title may take; a title needing more is cut with an ellipsis. */
839
+ maxLines: number;
840
+ }
830
841
  /** What one node of the simple style says, discriminated on `kind`. All text is plain, never an identifier. */
831
842
  type SimpleNodePayload = {
832
843
  kind: "step";
833
844
  /** The pipe's authored description, or its humanized code when it has none. */
834
845
  title: string;
846
+ /** The size the title is set at: one rung of `SIMPLE_STEP_TITLE_FITS`. */
847
+ titleFit: SimpleTitleFit;
835
848
  category: StepCategory;
836
849
  status: PipeStatus;
837
850
  graphMode?: GraphSpecMode;
@@ -992,4 +1005,4 @@ declare const ARROW_CLOSED_MARKER = "arrowclosed";
992
1005
  declare function nodeWidth(n: GraphNode): number;
993
1006
  declare function nodeHeight(n: GraphNode): number;
994
1007
 
995
- export { type GraphSpecEdge as $, ARROW_CLOSED_MARKER as A, BINDING_STEP_TYPE as B, type ConceptInfo as C, type DataflowAnalysis as D, type EdgeRoute as E, type FoldMode as F, type GraphTheme as G, type BindingStepType as H, CONTROLLER_PADDING_BOTTOM as I, CONTROLLER_PADDING_TOP as J, CONTROLLER_PADDING_X as K, type LabelDescriptor as L, EDGE_TYPE as M, type NodeValidationSummary as N, EDGE_TYPE_ROUTED as O, type PipeBlueprintUnion as P, type EdgeType as Q, FOLD_MODE as R, type StepCategory as S, type ToolbarPosition as T, type FieldResolution as U, type ValidationIssue as V, GRAPH_DIRECTION as W, GRAPH_SPEC_MODE as X, GRAPH_STYLE as Y, GRAPH_THEME as Z, GRAPH_THEME_MODE as _, type PresenceMarker as a, toolbarSide as a$, type GraphSpecEdgeKind as a0, type GraphSpecMeta as a1, type GraphSpecModelUsage as a2, type GraphSpecNodeError as a3, type GraphSpecNodeIo as a4, type GraphSpecNodeTiming as a5, type GraphSpecNodeUsage as a6, type GraphSpecUsage as a7, type JudgmentQuestionSpec as a8, KNOWN_PIPE_TYPES as a9, STEP_CATEGORY as aA, STUFF_ID_PREFIX as aB, type SequenceStepSpec as aC, type SimpleNodePayload as aD, type StuffMultiplicity as aE, type StuffRegistryEntry as aF, type StuffRole as aG, type StuffSpecInfo as aH, type SubPipeSpec as aI, TOOLBAR_POSITION as aJ, type TemplateBlueprint as aK, type ToolbarOrientation as aL, type ToolbarSide as aM, VALIDATION_STATE as aN, graphSpecMode as aO, isBindingNode as aP, isBindingStepSpec as aQ, isDryGraphSpec as aR, isPluralMultiplicity as aS, isStaticGraphSpec as aT, isStuffNodeId as aU, multiplicitySuffix as aV, nodeHeight as aW, nodeWidth as aX, stuffDigestFromId as aY, stuffNodeId as aZ, toolbarOrientation as a_, NODE_TYPE_CONTROLLER as aa, NODE_TYPE_PIPE_CARD as ab, NODE_TYPE_SIMPLE_DECISION as ac, NODE_TYPE_SIMPLE_FRAME as ad, NODE_TYPE_SIMPLE_STEP as ae, NODE_TYPE_SIMPLE_TERMINAL as af, NODE_TYPE_STUFF as ag, type NodeKind as ah, type PipeBatchBlueprint as ai, type PipeBlueprintBase as aj, type PipeComposeBlueprint as ak, type PipeComposeConstructBlueprint as al, type PipeComposeConstructField as am, type PipeConditionBlueprint as an, type PipeDocGenBlueprint as ao, type PipeExtractBlueprint as ap, type PipeFuncBlueprint as aq, type PipeImgGenBlueprint as ar, type PipeJudgeBlueprint as as, type PipeLLMBlueprint as at, type PipeParallelBlueprint as au, type PipeSearchBlueprint as av, type PipeSequenceBlueprint as aw, type PipeSignatureBlueprint as ax, type PipeStructureBlueprint as ay, type PipeType as az, type GraphSpec as b, type GraphNodeData as c, type GraphEdge as d, type GraphNode as e, type GraphConfig as f, type GraphDirection as g, type GraphThemeMode as h, type GraphStyleId as i, type PipeStatus as j, type GraphSpecNodeIoItem as k, type ValidationState as l, type PipeControllerType as m, type FoldToggleOptions as n, type NodePipeType as o, type GraphSpecMode as p, type GraphSpecNode as q, type PipeOperatorType as r, type CardNode as s, type PipeCallNode as t, type GraphData as u, type PipeCardPayload as v, type LayoutConfig as w, type GraphPoint as x, type BindingNode as y, type BindingStepSpec as z };
1008
+ export { GRAPH_THEME_MODE as $, ARROW_CLOSED_MARKER as A, BINDING_STEP_TYPE as B, type ConceptInfo as C, type DataflowAnalysis as D, type EdgeRoute as E, type FoldMode as F, type GraphTheme as G, type BindingStepSpec as H, type BindingStepType as I, CONTROLLER_PADDING_BOTTOM as J, CONTROLLER_PADDING_TOP as K, type LabelDescriptor as L, CONTROLLER_PADDING_X as M, type NodeValidationSummary as N, EDGE_TYPE as O, type PipeBlueprintUnion as P, EDGE_TYPE_ROUTED as Q, type EdgeType as R, type SimpleTitleFit as S, type ToolbarPosition as T, FOLD_MODE as U, type ValidationIssue as V, type FieldResolution as W, GRAPH_DIRECTION as X, GRAPH_SPEC_MODE as Y, GRAPH_STYLE as Z, GRAPH_THEME as _, type PresenceMarker as a, toolbarOrientation as a$, type GraphSpecEdge as a0, type GraphSpecEdgeKind as a1, type GraphSpecMeta as a2, type GraphSpecModelUsage as a3, type GraphSpecNodeError as a4, type GraphSpecNodeIo as a5, type GraphSpecNodeTiming as a6, type GraphSpecNodeUsage as a7, type GraphSpecUsage as a8, type JudgmentQuestionSpec as a9, type PipeType as aA, STEP_CATEGORY as aB, STUFF_ID_PREFIX as aC, type SequenceStepSpec as aD, type SimpleNodePayload as aE, type StuffMultiplicity as aF, type StuffRegistryEntry as aG, type StuffRole as aH, type StuffSpecInfo as aI, type SubPipeSpec as aJ, TOOLBAR_POSITION as aK, type TemplateBlueprint as aL, type ToolbarOrientation as aM, type ToolbarSide as aN, VALIDATION_STATE as aO, graphSpecMode as aP, isBindingNode as aQ, isBindingStepSpec as aR, isDryGraphSpec as aS, isPluralMultiplicity as aT, isStaticGraphSpec as aU, isStuffNodeId as aV, multiplicitySuffix as aW, nodeHeight as aX, nodeWidth as aY, stuffDigestFromId as aZ, stuffNodeId as a_, KNOWN_PIPE_TYPES as aa, NODE_TYPE_CONTROLLER as ab, NODE_TYPE_PIPE_CARD as ac, NODE_TYPE_SIMPLE_DECISION as ad, NODE_TYPE_SIMPLE_FRAME as ae, NODE_TYPE_SIMPLE_STEP as af, NODE_TYPE_SIMPLE_TERMINAL as ag, NODE_TYPE_STUFF as ah, type NodeKind as ai, type PipeBatchBlueprint as aj, type PipeBlueprintBase as ak, type PipeComposeBlueprint as al, type PipeComposeConstructBlueprint as am, type PipeComposeConstructField as an, type PipeConditionBlueprint as ao, type PipeDocGenBlueprint as ap, type PipeExtractBlueprint as aq, type PipeFuncBlueprint as ar, type PipeImgGenBlueprint as as, type PipeJudgeBlueprint as at, type PipeLLMBlueprint as au, type PipeParallelBlueprint as av, type PipeSearchBlueprint as aw, type PipeSequenceBlueprint as ax, type PipeSignatureBlueprint as ay, type PipeStructureBlueprint as az, type GraphSpec as b, toolbarSide as b0, type GraphNodeData as c, type GraphEdge as d, type GraphNode as e, type GraphConfig as f, type GraphDirection as g, type GraphThemeMode as h, type GraphStyleId as i, type PipeStatus as j, type GraphSpecNodeIoItem as k, type ValidationState as l, type PipeControllerType as m, type FoldToggleOptions as n, type NodePipeType as o, type GraphSpecMode as p, type GraphSpecNode as q, type PipeOperatorType as r, type CardNode as s, type PipeCallNode as t, type GraphData as u, type PipeCardPayload as v, type LayoutConfig as w, type GraphPoint as x, type StepCategory as y, type BindingNode as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelex/mthds-ui",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Shared graph rendering logic for MTHDS method visualization",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -79,7 +79,7 @@
79
79
  "build-storybook": "storybook build"
80
80
  },
81
81
  "dependencies": {
82
- "@pipelex/mthds-form": "^0.14.0",
82
+ "@pipelex/mthds-form": "^0.14.1",
83
83
  "@xyflow/react": "^12",
84
84
  "elkjs": "^0.11.1",
85
85
  "smol-toml": "^1.7.0"