@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.
- package/README.md +8 -6
- package/dist/chunk-6S5TQPTO.js +1349 -0
- package/dist/chunk-6S5TQPTO.js.map +1 -0
- package/dist/chunk-7JZBXBZS.js +258 -0
- package/dist/chunk-7JZBXBZS.js.map +1 -0
- package/dist/{chunk-AGFLCOWW.js → chunk-HPARBH6K.js} +14 -197
- package/dist/chunk-HPARBH6K.js.map +1 -0
- package/dist/chunk-N2F62MW7.js +55 -0
- package/dist/chunk-N2F62MW7.js.map +1 -0
- package/dist/chunk-P6IGZVWE.js +155 -0
- package/dist/chunk-P6IGZVWE.js.map +1 -0
- package/dist/form/react/index.d.ts +1 -1
- package/dist/graph/index.d.ts +19 -3
- package/dist/graph/index.js +20 -12
- package/dist/graph/react/index.d.ts +13 -13
- package/dist/graph/react/index.js +387 -560
- package/dist/graph/react/index.js.map +1 -1
- package/dist/graph/react/viewer/GraphToolbar.css +2 -107
- package/dist/graph/react/viewer/StyleMenu.css +109 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -12
- package/dist/registryJoin-C6Wfkik-.d.ts +441 -0
- package/dist/standalone/graph-standalone.html +176 -171
- package/dist/standalone/graph-viewer.css +75 -70
- package/dist/standalone/graph-viewer.js +101 -101
- package/dist/static-graph/index.d.ts +1 -1
- package/dist/timeline/index.d.ts +344 -83
- package/dist/timeline/index.js +67 -3
- package/dist/timeline/react/RunTimeline.css +141 -0
- package/dist/timeline/react/index.d.ts +57 -6
- package/dist/timeline/react/index.js +929 -120
- package/dist/timeline/react/index.js.map +1 -1
- package/dist/timeline/react/styles/simple/SimpleProgress.css +354 -0
- package/dist/{types-DsrzH6gM.d.ts → types-DLAnYNoi.d.ts} +1 -1
- package/package.json +6 -4
- package/dist/chunk-AGFLCOWW.js.map +0 -1
- package/dist/chunk-ILZJIORT.js +0 -54
- package/dist/chunk-ILZJIORT.js.map +0 -1
- package/dist/chunk-JJG2TO7P.js +0 -473
- package/dist/chunk-JJG2TO7P.js.map +0 -1
- 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
|
|
20
|
-
|
|
|
21
|
-
| `react`, `react-dom`
|
|
22
|
-
| `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
|
|
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
|