[web] Domi UI: no allowJs needed with v1.0.4; docs say v1.0.4

This commit is contained in:
2026-11-23 00:40:28 +01:00
parent c9e82579b3
commit dfbf4cb713
3 changed files with 6 additions and 14 deletions
+4 -9
View File
@@ -2,7 +2,7 @@
The web UI's controls and roles come from **@domi/ui**, the shared Domi design system (Gitea `mnovak/domi-design`,
its `docs/INTEGRATE.md` §6a and `docs/MIGRATION.md`). It is **vendored** at a tag in `packages/domi-ui` (CPAL-1.0,
like Ianitor; `VERSION` names the tag, v1.0.3; `LICENSE`, `NOTICE` and `VERSION` there stay unchanged) and used as a
like Ianitor; `VERSION` names the tag, v1.0.4; `LICENSE`, `NOTICE` and `VERSION` there stay unchanged) and used as a
workspace package by `apps/web` and `packages/ui`:
```json
@@ -66,12 +66,6 @@ share dialog still opens with the focus on it.
The host form still checks a field when the focus leaves it, now when it leaves the field and its seal.
## Type checking
@domi/ui's `Strike.svelte` has no `<script lang="ts">`, so TypeScript reads it as JavaScript. `apps/web/tsconfig.json`
sets `allowJs` (with `checkJs` off), as domi-design's own tsconfig does; without it a strict svelte-check refuses the
import (implicit any).
## The credit
@domi/ui and Ianitor are both CPAL-1.0 with the same Exhibit B, so one credit covers both: `<DomiCredit />` renders
@@ -81,12 +75,13 @@ plain data for the e2e real-data check, and a unit test keeps them equal to @dom
contains @domi/ui in `packages/domi-ui` (INTEGRATE.md §6a).
History: the first pins were v1.0.0 and v1.0.1 (a git dependency), then v1.0.2 was vendored (MPL-2.0). That copy
stays in this PR's branch history by Mark's choice; the PR is squash-merged, so main only ever holds v1.0.3.
stays in this PR's branch history by Mark's choice; the PR is squash-merged, so main only ever holds v1.0.4
(v1.0.4 is v1.0.3 with a script block in `Strike.svelte`, so no tsconfig workaround is needed).
## Risks
- **The Nix hash** in `deploy/nixos/web.nix` is the one Fabrica's NixOS runner reported for this lockfile (run
`rp8rw56wvg5k2`, 2026-11-23); v1.0.3 left the lockfile byte-identical. A verify-nix run on the branch confirms it.
`rp8rw56wvg5k2`, 2026-11-23); v1.0.3 and v1.0.4 left the lockfile byte-identical. A verify-nix run on the branch confirms it.
- A visual change Mark has not seen beyond the asked-for controls: the field labels are @domi/ui's (13 px, 600),
and Ianitor's group labels (Certificate, Visit log, What is it) follow them so a form reads as one; the
segmented controls are as wide as their choices, not the panel.