@pipelex/mthds-ui 0.37.0 → 0.39.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.
@@ -110,6 +110,11 @@ interface GraphViewerProps {
110
110
  * all four from ONE source: a run's results, or a method's validate report
111
111
  * beside the dry or static graph of that same method. `null` draws nothing.
112
112
  *
113
+ * A spec `validateGraphSpec` refuses, or one the viewer otherwise fails to
114
+ * draw, draws an error state in place of the graph, naming what was refused,
115
+ * and is never thrown out of render: the host's page stays up. The next spec
116
+ * the host passes is drawn afresh.
117
+ *
113
118
  * One object rather than a spec prop and three descriptor props, because the
114
119
  * detail panel looks a data node's descriptor up by the `pipe_ref` of the pipe
115
120
  * that produced it IN THIS GRAPH. A graph paired with another source's
@@ -292,6 +297,16 @@ interface GraphViewerProps {
292
297
  }
293
298
  /** Apply Layer 2 execution state overrides to rendered nodes. */
294
299
  declare function applyStatusOverrides(nodes: AppNode[], statusMap: Record<string, PipeStatus> | undefined): AppNode[];
300
+ /**
301
+ * The viewer. A spec `validateGraphSpec` refuses is drawn as an error state by
302
+ * the canvas itself, which reads the spec as a value (`readGraphSpec`); anything
303
+ * else the canvas throws or reports is caught by the boundary around it, which
304
+ * draws the same error state, so no failure of the graph unmounts the host's
305
+ * tree. A new spec clears either. A layout that fails to redraw a spec already
306
+ * drawn, after a change of direction, folds or style, reaches neither: the
307
+ * canvas draws it over the flow and keeps the toolbar, so the reader can change
308
+ * the view back (`routeLayoutFailure`).
309
+ */
295
310
  declare function GraphViewer(props: GraphViewerProps): react_jsx_runtime.JSX.Element;
296
311
 
297
312
  declare function renderLabel(desc: LabelDescriptor): React.ReactNode;