@intentius/behold 0.29.35 → 0.29.37
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/dist/cli.js +2 -1
- package/package.json +1 -1
- package/web/kiosk.html +25 -11
package/dist/cli.js
CHANGED
|
@@ -25822,6 +25822,7 @@ function demoProblem(doc) {
|
|
|
25822
25822
|
if (!isRecord19(doc.next)) return "next is neither an object nor null";
|
|
25823
25823
|
if (!str15(doc.next.action)) return "next.action is not a string";
|
|
25824
25824
|
if (doc.next.at !== null && !(str15(doc.next.at) && UTC.test(doc.next.at))) return "next.at is neither a UTC time nor null";
|
|
25825
|
+
if (doc.next.from !== void 0 && !(str15(doc.next.from) && UTC.test(doc.next.from))) return "next.from is not a UTC time";
|
|
25825
25826
|
}
|
|
25826
25827
|
if (doc.pull !== null && !int2(doc.pull)) return "pull is neither an integer nor null";
|
|
25827
25828
|
if (doc.commit !== null && !str15(doc.commit)) return "commit is neither a string nor null";
|
|
@@ -25862,7 +25863,7 @@ function demoOf(d) {
|
|
|
25862
25863
|
step: d.step,
|
|
25863
25864
|
label: d.label,
|
|
25864
25865
|
started_at: d.started_at,
|
|
25865
|
-
next: d.next ? { action: d.next.action, at: d.next.at } : null,
|
|
25866
|
+
next: d.next ? { action: d.next.action, ...d.next.from ? { from: d.next.from } : {}, at: d.next.at } : null,
|
|
25866
25867
|
pull: d.pull,
|
|
25867
25868
|
commit: d.commit,
|
|
25868
25869
|
about: d.about ? { changes: d.about.changes, watch: d.about.watch, shows: d.about.shows } : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/behold",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.37",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "behold — a live control plane on chant. See your whole estate (every substrate in one graph), coloured by drift; act through delegated, gated Ops.",
|
package/web/kiosk.html
CHANGED
|
@@ -312,19 +312,23 @@
|
|
|
312
312
|
.k-brand-logo { width: 1.25em; height: 1.25em; }
|
|
313
313
|
.k-replay { margin: 0; padding: 0.2em 0.7em; padding-right: 16em; border-left: 4px solid var(--neutral); background: var(--surface-box); color: var(--fg); font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
314
314
|
/* behold#571: "What is this?" and the theme, at the header's top right, outside the boxes that redraw. */
|
|
315
|
-
#k-tools { position: absolute; top: 0.
|
|
316
|
-
|
|
315
|
+
#k-tools { position: absolute; top: 0.35em; right: 1em; z-index: 5; display: flex; gap: 0.6em; align-items: center; font-size: 1em; }
|
|
316
|
+
/* behold#571: the header's controls read as controls: one pill shape, full-size type. */
|
|
317
|
+
.k-pill, .k-menu summary, .eh-switch { display: inline-flex; align-items: center; gap: 0.4em; height: 2em; padding: 0 0.85em; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-pane-a); color: var(--fg); font: 600 0.92em var(--font-ui); cursor: pointer; }
|
|
318
|
+
.k-menu summary:hover, .eh-switch:hover { border-color: var(--focus); }
|
|
319
|
+
.eh-switch input { accent-color: var(--pending); margin: 0; width: 1em; height: 1em; }
|
|
320
|
+
.k-what { font: 600 0.92em var(--font-ui); color: var(--pending); background: transparent; border: 0; padding: 0.1em 0.2em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
|
|
317
321
|
#k-what-pop { position: absolute; top: 1.8em; right: 0; width: min(34em, calc(100vw - 32px)); padding: 0.7em 0.9em; background: var(--surface-pane-b); color: var(--fg); border: 1px solid var(--focus);
|
|
318
322
|
border-radius: 8px; box-shadow: 0 6px 24px color-mix(in srgb, var(--shadow) 70%, transparent); font-size: 1.15em; line-height: 1.45; }
|
|
319
323
|
#k-what-pop[hidden] { display: none; }
|
|
320
324
|
#k-what-pop p { margin: 0; }
|
|
321
325
|
#k-what-pop .k-what-more { margin-top: 0.5em; }
|
|
322
326
|
#k-what-pop a { color: var(--focus); }
|
|
323
|
-
.k-menu summary {
|
|
327
|
+
.k-menu summary { list-style: none; gap: 0; }
|
|
324
328
|
.k-menu summary::-webkit-details-marker { display: none; }
|
|
325
329
|
.k-menu summary::after { content: " ▾"; }
|
|
326
|
-
.k-menu[open] summary { color: var(--
|
|
327
|
-
.k-menu-body { position: absolute; right: 0; top:
|
|
330
|
+
.k-menu[open] summary { border-color: var(--focus); }
|
|
331
|
+
.k-menu-body { position: absolute; right: 0; top: 2.4em; padding: 0.5em; background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; }
|
|
328
332
|
.k-credit { color: var(--muted); }
|
|
329
333
|
.k-credit-link { color: var(--fg); }
|
|
330
334
|
.k-nograph-note { margin: 0; color: var(--muted); font-size: 0.88em; }
|
|
@@ -365,7 +369,9 @@
|
|
|
365
369
|
.k-read-rows { position: static; grid-template-columns: 1fr; border-radius: 6px; box-shadow: none; margin-bottom: 0.3em; }
|
|
366
370
|
#views { padding-right: 1em; }
|
|
367
371
|
.k-replay { padding-right: 0.7em; white-space: normal; }
|
|
368
|
-
#k-tools { position: static; justify-content: flex-end; margin: 0; padding: 0.4em 16px 0; }
|
|
372
|
+
#k-tools { position: static; justify-content: flex-end; flex-wrap: wrap; row-gap: 0.4em; margin: 0; padding: 0.4em 16px 0; }
|
|
373
|
+
.k-theme-n { display: none; }
|
|
374
|
+
.k-what { white-space: nowrap; }
|
|
369
375
|
#k-what-pop { right: 16px; left: 16px; width: auto; top: 2.2em; }
|
|
370
376
|
.k-ap-row { grid-template-columns: 1.1em 5.6em minmax(0, 1fr); }
|
|
371
377
|
#stage, body.k-nograph #stage { display: flex; flex-direction: column; padding: 0; gap: 0; }
|
|
@@ -393,8 +399,8 @@
|
|
|
393
399
|
* result a card at the end. The header is one quiet line. Inspect is
|
|
394
400
|
* the layout above, one click away.
|
|
395
401
|
*/
|
|
396
|
-
.k-modes { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
|
|
397
|
-
.k-mode { font: 600 0.
|
|
402
|
+
.k-modes { display: inline-flex; height: 2em; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; background: var(--surface-pane-a); }
|
|
403
|
+
.k-mode { font: 600 0.92em var(--font-ui); color: var(--muted); background: transparent; border: 0; padding: 0 1.1em; cursor: pointer; }
|
|
398
404
|
.k-mode + .k-mode { border-left: 1px solid var(--rule); }
|
|
399
405
|
.k-mode:hover { color: var(--fg); }
|
|
400
406
|
.k-mode-on, .k-mode-on:hover { color: var(--bg); background: var(--pending); }
|
|
@@ -407,7 +413,7 @@
|
|
|
407
413
|
body.k-watch #view-pane { position: absolute; inset: 0 5px 5px; border-radius: 8px; overflow: hidden; background: var(--bg); }
|
|
408
414
|
body.k-watch #view { height: 100%; }
|
|
409
415
|
/* The header, one line: the scenario's place, the steps, the delivery numbers. */
|
|
410
|
-
body.k-watch #bar { display: flex; align-items: center; gap: 0.5em 1.2em; min-height: 2.6em; padding: 0.35em 1em; padding-right:
|
|
416
|
+
body.k-watch #bar { display: flex; align-items: center; gap: 0.5em 1.2em; min-height: 2.6em; padding: 0.35em 1em; padding-right: calc(var(--k-tools-w, 30em) + 2em); }
|
|
411
417
|
.k-w-place { display: flex; align-items: baseline; gap: 0.7em; flex: none; white-space: nowrap; }
|
|
412
418
|
body.k-watch #bar .k-strip { flex: none; }
|
|
413
419
|
.k-w-place .k-brand { margin: 0; }
|
|
@@ -550,7 +556,7 @@
|
|
|
550
556
|
<div id="k-tools">
|
|
551
557
|
<div id="k-mode" class="k-modes" role="group" aria-label="Layout"></div>
|
|
552
558
|
<button type="button" class="k-what" aria-expanded="false" aria-controls="k-what-pop">What is this?</button>
|
|
553
|
-
<details class="k-menu"><summary>Theme</summary><div class="k-menu-body" id="k-theme"></div></details>
|
|
559
|
+
<details class="k-menu"><summary id="k-theme-name">Theme</summary><div class="k-menu-body" id="k-theme"></div></details>
|
|
554
560
|
<div id="k-what-pop" role="dialog" aria-label="What is this?" hidden></div>
|
|
555
561
|
</div>
|
|
556
562
|
<header id="bar" aria-live="polite"></header>
|
|
@@ -586,10 +592,18 @@
|
|
|
586
592
|
<div id="eh-tips" aria-live="polite"></div>
|
|
587
593
|
<div id="eh-modals"></div>
|
|
588
594
|
<script type="module">
|
|
589
|
-
import { initTheme, KIOSK_THEME } from "/theme.js";
|
|
595
|
+
import { initTheme, KIOSK_THEME, getThemeName, onThemeChange } from "/theme.js";
|
|
590
596
|
import { startKiosk } from "/kiosk.js";
|
|
591
597
|
import { pageTool } from "/kiosk-vendor.js";
|
|
592
598
|
initTheme(KIOSK_THEME);
|
|
599
|
+
// behold#571: the theme control names the theme in use.
|
|
600
|
+
const themeName = document.getElementById("k-theme-name");
|
|
601
|
+
const nameTheme = () => { if (!themeName) return; const n = document.createElement("span"); n.className = "k-theme-n"; n.textContent = `: ${getThemeName()}`; themeName.replaceChildren("Theme", n); };
|
|
602
|
+
nameTheme();
|
|
603
|
+
onThemeChange(nameTheme);
|
|
604
|
+
// behold#571: the header keeps clear of the controls at the top right, however wide they are.
|
|
605
|
+
const toolsEl = document.getElementById("k-tools");
|
|
606
|
+
if (toolsEl && typeof ResizeObserver === "function") new ResizeObserver(() => document.documentElement.style.setProperty("--k-tools-w", `${toolsEl.offsetWidth}px`)).observe(toolsEl);
|
|
593
607
|
// behold#571: /<tool> serves this page with its tool in a meta tag; /kiosk has none.
|
|
594
608
|
const kiosk = startKiosk(
|
|
595
609
|
{
|