@pipelex/mthds-ui 0.39.0 → 0.41.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.
Files changed (41) hide show
  1. package/README.md +8 -6
  2. package/dist/chunk-6S5TQPTO.js +1349 -0
  3. package/dist/chunk-6S5TQPTO.js.map +1 -0
  4. package/dist/chunk-7JZBXBZS.js +258 -0
  5. package/dist/chunk-7JZBXBZS.js.map +1 -0
  6. package/dist/{chunk-AGFLCOWW.js → chunk-HPARBH6K.js} +14 -197
  7. package/dist/chunk-HPARBH6K.js.map +1 -0
  8. package/dist/chunk-N2F62MW7.js +55 -0
  9. package/dist/chunk-N2F62MW7.js.map +1 -0
  10. package/dist/chunk-P6IGZVWE.js +155 -0
  11. package/dist/chunk-P6IGZVWE.js.map +1 -0
  12. package/dist/form/react/index.d.ts +1 -1
  13. package/dist/graph/index.d.ts +19 -3
  14. package/dist/graph/index.js +20 -12
  15. package/dist/graph/react/index.d.ts +13 -13
  16. package/dist/graph/react/index.js +387 -560
  17. package/dist/graph/react/index.js.map +1 -1
  18. package/dist/graph/react/viewer/GraphToolbar.css +2 -107
  19. package/dist/graph/react/viewer/StyleMenu.css +109 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +20 -12
  22. package/dist/registryJoin-C6Wfkik-.d.ts +441 -0
  23. package/dist/standalone/graph-standalone.html +176 -171
  24. package/dist/standalone/graph-viewer.css +75 -70
  25. package/dist/standalone/graph-viewer.js +101 -101
  26. package/dist/static-graph/index.d.ts +1 -1
  27. package/dist/timeline/index.d.ts +344 -83
  28. package/dist/timeline/index.js +67 -3
  29. package/dist/timeline/react/RunTimeline.css +141 -0
  30. package/dist/timeline/react/index.d.ts +57 -6
  31. package/dist/timeline/react/index.js +929 -120
  32. package/dist/timeline/react/index.js.map +1 -1
  33. package/dist/timeline/react/styles/simple/SimpleProgress.css +354 -0
  34. package/dist/{types-DsrzH6gM.d.ts → types-DLAnYNoi.d.ts} +1 -1
  35. package/package.json +6 -4
  36. package/dist/chunk-AGFLCOWW.js.map +0 -1
  37. package/dist/chunk-ILZJIORT.js +0 -54
  38. package/dist/chunk-ILZJIORT.js.map +0 -1
  39. package/dist/chunk-JJG2TO7P.js +0 -473
  40. package/dist/chunk-JJG2TO7P.js.map +0 -1
  41. package/dist/progressSnapshot-VZ4PLul9.d.ts +0 -191
package/README.md CHANGED
@@ -16,10 +16,10 @@ If you render the React components, one setup step follows the install: the form
16
16
 
17
17
  ### Peer dependencies
18
18
 
19
- | Dependency | Required | Used by |
20
- | --------------------- | -------- | ----------------------------------------------------------- |
21
- | `react`, `react-dom` | no | React layer (`graph/react`, `form/react`, `timeline/react`) |
22
- | `shiki` | no | Syntax highlighting (`shiki`) |
19
+ | Dependency | Required | Used by |
20
+ | -------------------- | -------- | ----------------------------------------------------------- |
21
+ | `react`, `react-dom` | no | React layer (`graph/react`, `form/react`, `timeline/react`) |
22
+ | `shiki` | no | Syntax highlighting (`shiki`) |
23
23
 
24
24
  ### Bundled dependencies
25
25
 
@@ -311,7 +311,7 @@ See `graphConfig.ts` for the full default palette.
311
311
  | `@pipelex/mthds-ui/form/brand` | The kernel's brand entry: seed colours into readable colour roles |
312
312
  | `@pipelex/mthds-ui/form/react` | `RunPanel` — a pipe's input form — and the kernel's controls |
313
313
  | `@pipelex/mthds-ui/timeline` | A run's progress snapshot: types, path grammar, rows and time axis |
314
- | `@pipelex/mthds-ui/timeline/react` | `RunTimeline` — a running run's invocations as growing bars |
314
+ | `@pipelex/mthds-ui/timeline/react` | `RunTimeline` — a run's progress as growing bars or a checklist |
315
315
  | `@pipelex/mthds-ui/shiki` | MTHDS syntax highlighting with shiki |
316
316
  | `@pipelex/mthds-ui/tailwind.css` | Where the kernel's classes are, for a Tailwind 4 host |
317
317
  | `@pipelex/mthds-ui/form-kernel.css` | The kernel's prebuilt stylesheet, for a host without Tailwind |
@@ -402,7 +402,7 @@ Full contract, why this package stopped loading the kernel's stylesheet itself,
402
402
 
403
403
  ## Run timeline
404
404
 
405
- `RunTimeline` draws a running run as nested rows, one per invocation of a pipe, each with a bar on a shared time axis that grows while the invocation runs. Its only input is the progress snapshot of the hosted progress contract: a batch is one collapsible row with its counts and a strip of its items' states, a condition's branch carries the outcome it took, and a retried or stuck invocation is marked on its own row.
405
+ `RunTimeline` draws a running run as nested rows, one per invocation of a pipe, each with a bar on a shared time axis that grows while the invocation runs. Its only input is the progress snapshot of the hosted progress contract: a batch is one collapsible row with its counts and a strip of its items' states, whose items come a page at a time (`batchPageSize`, ten by default) with a jump to the next failed or stuck one, a condition's branch carries the outcome it took, and a retried or stuck invocation is marked on its own row.
406
406
 
407
407
  ```tsx
408
408
  import { RunTimeline } from "@pipelex/mthds-ui/timeline/react";
@@ -412,6 +412,8 @@ import { RunTimeline } from "@pipelex/mthds-ui/timeline/react";
412
412
  <RunTimeline snapshot={snapshot} theme="dark" />;
413
413
  ```
414
414
 
415
+ `timelineStyle="simple"` draws the same run as a checklist of its steps in the method's own words, titled from the method's pipe registry the host passes as `pipeRegistry`, with each batch as one line of counts, for a reader who did not write the method; `styleMenu` lets the reader switch. See [docs/timeline-styles.md](./docs/timeline-styles.md).
416
+
415
417
  The entry imports its own stylesheet, and the timeline themes itself with the same tokens as `GraphViewer`. The snapshot's types and the projection the component draws are in the React-free `@pipelex/mthds-ui/timeline`. Props, the freshness rule, what each row and bar shows, and the stories: [docs/run-timeline.md](./docs/run-timeline.md).
416
418
 
417
419
  ## Shiki integration