@pipelex/mthds-ui 0.58.2 → 0.59.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 +2 -3
- package/dist/form/index.d.ts +0 -1
- package/dist/graph/index.js +7 -7
- package/dist/graph/react/index.d.ts +11 -5
- package/dist/graph/react/index.js +4 -4
- package/dist/graph/react/index.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/standalone/graph-standalone.html +102 -102
- package/dist/standalone/graph-viewer.css +1 -1
- package/dist/standalone/graph-viewer.js +101 -101
- package/dist/timeline/react/index.js +3 -3
- package/package.json +2 -6
- package/dist/form/brand/index.d.ts +0 -1
- package/dist/form/brand/index.js +0 -3
- package/dist/form/brand/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -308,7 +308,6 @@ See `graphConfig.ts` for the full default palette.
|
|
|
308
308
|
| `@pipelex/mthds-ui` | Pure-TS graph logic — types, builders, layout, controllers, config |
|
|
309
309
|
| `@pipelex/mthds-ui/graph/react` | React components — `GraphViewer`, label helpers, type converters |
|
|
310
310
|
| `@pipelex/mthds-ui/form` | The form kernel's React-free surface, re-exported |
|
|
311
|
-
| `@pipelex/mthds-ui/form/brand` | The kernel's brand entry: seed colours and app styles into roles |
|
|
312
311
|
| `@pipelex/mthds-ui/form/generative` | The kernel's generative layer: a designed page over its controls |
|
|
313
312
|
| `@pipelex/mthds-ui/form/generative/headless` | The same layer's producer and checks, for a server: no React |
|
|
314
313
|
| `@pipelex/mthds-ui/form/layout-design.mthds` | The designer method that produces such a page, as a file |
|
|
@@ -403,9 +402,9 @@ Tailwind 3 hosts and Tailwind 4 hosts that configure a prefix are not supported:
|
|
|
403
402
|
|
|
404
403
|
Either way, the shadcn token values are yours to supply, and each must be a **complete colour** — `hsl(240 10% 3.9%)`, `#0a0711`, `oklch(…)` — never a bare HSL triplet. Since kernel `0.8.0` the sheet emits `background-color: var(--background)` rather than `hsl(var(--background))`, so a triplet computes to something that is not a colour and the browser discards the declaration instead of overriding with it: green build, token inspectable, style silently absent.
|
|
405
404
|
|
|
406
|
-
To brand the controls with a team's own colours,
|
|
405
|
+
To brand the controls with a team's own colours, a host derives them into roles itself and writes the button colour onto `--primary`, an accent ink that reads on the page onto the optional `--link` (the accent as text) and onto `--ring` (every focus the controls draw), and the accent's pale fill onto the optional `--selected` (the pale fill of a selected pill, tag or step). A role the team left unset gets no token, so the host keeps its own, and a page that defines neither `--link` nor `--selected` falls back to `--primary` for both.
|
|
407
406
|
|
|
408
|
-
|
|
407
|
+
A team's app style reaches the controls the same way, through tokens the host writes: the body face onto `--font-sans` and the radius onto `--radius`, which the controls already read, and the rest onto optional tokens (`--font-heading`, `--heading-weight`, `--heading-tracking`, and a designed page's `--panel-*` and `--action-shadow`), each falling back to what the control painted before.
|
|
409
408
|
|
|
410
409
|
Full contract, why this package stopped loading the kernel's stylesheet itself, the `.dark` bridge, the `mthds-run-panel` token hook and the brand tokens: [docs/run-form-panel.md](./docs/run-form-panel.md).
|
|
411
410
|
|
package/dist/form/index.d.ts
CHANGED
package/dist/graph/index.js
CHANGED
|
@@ -70,13 +70,6 @@ import {
|
|
|
70
70
|
resolveGraphStyle,
|
|
71
71
|
resolveStyleMenu
|
|
72
72
|
} from "../chunk-XMTXWXFO.js";
|
|
73
|
-
import {
|
|
74
|
-
DARK_PALETTE_COLORS,
|
|
75
|
-
DEFAULT_GRAPH_CONFIG,
|
|
76
|
-
LIGHT_PALETTE_COLORS,
|
|
77
|
-
getPaletteColors,
|
|
78
|
-
getPaletteForTheme
|
|
79
|
-
} from "../chunk-S4UMMHLE.js";
|
|
80
73
|
import {
|
|
81
74
|
makePipeRef,
|
|
82
75
|
parsePipeRef
|
|
@@ -91,6 +84,13 @@ import {
|
|
|
91
84
|
sentenceCase,
|
|
92
85
|
stripDomain
|
|
93
86
|
} from "../chunk-P6IGZVWE.js";
|
|
87
|
+
import {
|
|
88
|
+
DARK_PALETTE_COLORS,
|
|
89
|
+
DEFAULT_GRAPH_CONFIG,
|
|
90
|
+
LIGHT_PALETTE_COLORS,
|
|
91
|
+
getPaletteColors,
|
|
92
|
+
getPaletteForTheme
|
|
93
|
+
} from "../chunk-S4UMMHLE.js";
|
|
94
94
|
import {
|
|
95
95
|
ARROW_CLOSED_MARKER,
|
|
96
96
|
BINDING_STEP_TYPE,
|
|
@@ -301,8 +301,10 @@ interface GraphViewerProps {
|
|
|
301
301
|
*
|
|
302
302
|
* The PDF's URL in a `ready` answer is framed only on the page's own origin,
|
|
303
303
|
* as a root-relative path or an absolute URL there, as `resolveUrl`'s answer
|
|
304
|
-
* is
|
|
305
|
-
*
|
|
304
|
+
* is. An answer on another origin, such as a CDN or a presigned storage URL,
|
|
305
|
+
* is drawn page by page from `loadBytes`, asked with that URL, when the host
|
|
306
|
+
* also passes `loadBytes` and `pdfWorker`, and reads as `unavailable`
|
|
307
|
+
* otherwise. A `failed` answer with `final: true` shows no Try again.
|
|
306
308
|
*/
|
|
307
309
|
resolveDocumentPdf?: ResolveDocumentPdf;
|
|
308
310
|
/**
|
|
@@ -311,7 +313,8 @@ interface GraphViewerProps {
|
|
|
311
313
|
* storage URL) page by page with pdf.js. It takes effect only with
|
|
312
314
|
* `pdfWorker`.
|
|
313
315
|
*
|
|
314
|
-
* Called with the document's own `url` member, as `resolveUrl` is,
|
|
316
|
+
* Called with the document's own `url` member, as `resolveUrl` is, or with
|
|
317
|
+
* the `url` of the host's own `ready` answer to `resolveDocumentPdf`, and a
|
|
315
318
|
* `{ maxBytes, signal }` request; resolve to the file's bytes as a
|
|
316
319
|
* `Uint8Array` or an `ArrayBuffer`, pass `signal` to your `fetch`, and reject
|
|
317
320
|
* for anything that is not a reference you store yourself: the method chose
|
|
@@ -672,13 +675,16 @@ interface StuffResultPanelProps extends StuffResultRendererOptions {
|
|
|
672
675
|
* document's preview then shows the PDF's pages, while its name, its copy
|
|
673
676
|
* control and every download keep the original. Unset, such a document
|
|
674
677
|
* offers no preview. The PDF's URL in a `ready` answer is framed only on the
|
|
675
|
-
* page's own origin; an answer on another origin
|
|
678
|
+
* page's own origin; an answer on another origin is drawn from `loadBytes`
|
|
679
|
+
* when `pdfWorker` is also given, and reads as `unavailable` otherwise. A
|
|
680
|
+
* `failed` answer with `final: true` shows no Try again.
|
|
676
681
|
*/
|
|
677
682
|
resolveDocumentPdf?: ResolveDocumentPdf;
|
|
678
683
|
/**
|
|
679
684
|
* Reads a document's bytes, for a PDF the panel cannot frame because the
|
|
680
685
|
* frame rule refused it (another origin, such as a presigned storage URL):
|
|
681
|
-
* called with the document's own `url` member
|
|
686
|
+
* called with the document's own `url` member, or the `url` of the host's
|
|
687
|
+
* own `ready` answer to `resolveDocumentPdf`, and `{ maxBytes, signal }`, it
|
|
682
688
|
* resolves to the file as a `Uint8Array` or an `ArrayBuffer`, and the kernel
|
|
683
689
|
* draws its pages with pdf.js. It takes effect only with `pdfWorker`. The
|
|
684
690
|
* method chose the URL, so it reads only references the host stores itself
|
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
resolveGraphStyle,
|
|
35
35
|
resolveStyleMenu
|
|
36
36
|
} from "../../chunk-XMTXWXFO.js";
|
|
37
|
-
import {
|
|
38
|
-
DEFAULT_GRAPH_CONFIG,
|
|
39
|
-
getPaletteForTheme
|
|
40
|
-
} from "../../chunk-S4UMMHLE.js";
|
|
41
37
|
import {
|
|
42
38
|
parsePipeRef
|
|
43
39
|
} from "../../chunk-2N65P32H.js";
|
|
44
40
|
import "../../chunk-P6IGZVWE.js";
|
|
41
|
+
import {
|
|
42
|
+
DEFAULT_GRAPH_CONFIG,
|
|
43
|
+
getPaletteForTheme
|
|
44
|
+
} from "../../chunk-S4UMMHLE.js";
|
|
45
45
|
import {
|
|
46
46
|
BINDING_STEP_TYPE,
|
|
47
47
|
EDGE_TYPE,
|