@graview/primitives 0.1.17 → 0.1.19
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 +5 -2
- package/dist/app-bar.d.ts +54 -1
- package/dist/app-bar.d.ts.map +1 -1
- package/dist/app-bar.js +277 -62
- package/dist/app-bar.js.map +1 -1
- package/dist/arrange-bar.d.ts +1 -1
- package/dist/arrange-bar.d.ts.map +1 -1
- package/dist/arrange-bar.js +48 -16
- package/dist/arrange-bar.js.map +1 -1
- package/dist/bar-panes-door.d.ts +8 -0
- package/dist/bar-panes-door.d.ts.map +1 -0
- package/dist/bar-panes-door.js +10 -0
- package/dist/bar-panes-door.js.map +1 -0
- package/dist/bar-panes.d.ts +3 -1
- package/dist/bar-panes.d.ts.map +1 -1
- package/dist/bar-panes.js +12 -5
- package/dist/bar-panes.js.map +1 -1
- package/dist/chat.d.ts +68 -30
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +206 -223
- package/dist/chat.js.map +1 -1
- package/dist/connections.d.ts +7 -1
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +13 -13
- package/dist/connections.js.map +1 -1
- package/dist/declared-lens-doors.d.ts +21 -3
- package/dist/declared-lens-doors.d.ts.map +1 -1
- package/dist/declared-lens-doors.js +62 -27
- package/dist/declared-lens-doors.js.map +1 -1
- package/dist/declared-lenses.d.ts.map +1 -1
- package/dist/declared-lenses.js +4 -7
- package/dist/declared-lenses.js.map +1 -1
- package/dist/default-view.d.ts +2 -0
- package/dist/default-view.d.ts.map +1 -1
- package/dist/default-view.js +10 -4
- package/dist/default-view.js.map +1 -1
- package/dist/default-views.d.ts.map +1 -1
- package/dist/default-views.js +195 -42
- package/dist/default-views.js.map +1 -1
- package/dist/draft-door.d.ts +3 -0
- package/dist/draft-door.d.ts.map +1 -0
- package/dist/draft-door.js +22 -0
- package/dist/draft-door.js.map +1 -0
- package/dist/draft-frame.d.ts +25 -0
- package/dist/draft-frame.d.ts.map +1 -0
- package/dist/draft-frame.js +69 -0
- package/dist/draft-frame.js.map +1 -0
- package/dist/editable.d.ts +35 -1
- package/dist/editable.d.ts.map +1 -1
- package/dist/editable.js +93 -23
- package/dist/editable.js.map +1 -1
- package/dist/figure.js +1 -1
- package/dist/figure.js.map +1 -1
- package/dist/find.d.ts.map +1 -1
- package/dist/find.js +46 -11
- package/dist/find.js.map +1 -1
- package/dist/frame.d.ts +8 -6
- package/dist/frame.d.ts.map +1 -1
- package/dist/frame.js +7 -5
- package/dist/frame.js.map +1 -1
- package/dist/index.d.ts +23 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -9
- package/dist/index.js.map +1 -1
- package/dist/lens/board.d.ts.map +1 -1
- package/dist/lens/board.js +7 -3
- package/dist/lens/board.js.map +1 -1
- package/dist/lens/calendar-dates.d.ts +2 -0
- package/dist/lens/calendar-dates.d.ts.map +1 -1
- package/dist/lens/calendar-dates.js +2 -0
- package/dist/lens/calendar-dates.js.map +1 -1
- package/dist/lens/calendar-drawing.d.ts +2 -2
- package/dist/lens/calendar-drawing.d.ts.map +1 -1
- package/dist/lens/calendar-drawing.js +1 -2
- package/dist/lens/calendar-drawing.js.map +1 -1
- package/dist/lens/calendar-options.d.ts +8 -1
- package/dist/lens/calendar-options.d.ts.map +1 -1
- package/dist/lens/calendar-options.js +5 -0
- package/dist/lens/calendar-options.js.map +1 -1
- package/dist/lens/calendar-spans.d.ts.map +1 -1
- package/dist/lens/calendar-spans.js +1 -2
- package/dist/lens/calendar-spans.js.map +1 -1
- package/dist/lens/calendar-view.d.ts +2 -1
- package/dist/lens/calendar-view.d.ts.map +1 -1
- package/dist/lens/calendar-view.js +4 -3
- package/dist/lens/calendar-view.js.map +1 -1
- package/dist/lens/columns.d.ts.map +1 -1
- package/dist/lens/columns.js +2 -2
- package/dist/lens/columns.js.map +1 -1
- package/dist/lens/coverage.d.ts.map +1 -1
- package/dist/lens/coverage.js +14 -10
- package/dist/lens/coverage.js.map +1 -1
- package/dist/lens/more.d.ts.map +1 -1
- package/dist/lens/more.js +2 -1
- package/dist/lens/more.js.map +1 -1
- package/dist/lens-keeping.d.ts +17 -0
- package/dist/lens-keeping.d.ts.map +1 -0
- package/dist/lens-keeping.js +127 -0
- package/dist/lens-keeping.js.map +1 -0
- package/dist/lines-key.d.ts +12 -0
- package/dist/lines-key.d.ts.map +1 -0
- package/dist/lines-key.js +74 -0
- package/dist/lines-key.js.map +1 -0
- package/dist/notice-place.d.ts +3 -3
- package/dist/notice-place.d.ts.map +1 -1
- package/dist/notice-place.js +6 -4
- package/dist/notice-place.js.map +1 -1
- package/dist/notices.d.ts +6 -0
- package/dist/notices.d.ts.map +1 -1
- package/dist/notices.js +7 -1
- package/dist/notices.js.map +1 -1
- package/dist/pages.d.ts +14 -8
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +14 -7
- package/dist/pages.js.map +1 -1
- package/dist/places.d.ts +0 -24
- package/dist/places.d.ts.map +1 -1
- package/dist/places.js +7 -3
- package/dist/places.js.map +1 -1
- package/dist/profile.d.ts +7 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +35 -10
- package/dist/profile.js.map +1 -1
- package/dist/prose-editor.d.ts +9 -0
- package/dist/prose-editor.d.ts.map +1 -0
- package/dist/prose-editor.js +64 -0
- package/dist/prose-editor.js.map +1 -0
- package/dist/quick-relations.d.ts.map +1 -1
- package/dist/quick-relations.js +2 -2
- package/dist/quick-relations.js.map +1 -1
- package/dist/reader-lenses.d.ts +21 -0
- package/dist/reader-lenses.d.ts.map +1 -0
- package/dist/reader-lenses.js +27 -0
- package/dist/reader-lenses.js.map +1 -0
- package/dist/record-head.d.ts +28 -0
- package/dist/record-head.d.ts.map +1 -0
- package/dist/record-head.js +3 -0
- package/dist/record-head.js.map +1 -0
- package/dist/relation-key.d.ts +2 -0
- package/dist/relation-key.d.ts.map +1 -1
- package/dist/relation-key.js +14 -24
- package/dist/relation-key.js.map +1 -1
- package/dist/scene-bar.d.ts +29 -0
- package/dist/scene-bar.d.ts.map +1 -0
- package/dist/scene-bar.js +72 -0
- package/dist/scene-bar.js.map +1 -0
- package/dist/scene-css.d.ts.map +1 -1
- package/dist/scene-css.js +538 -0
- package/dist/scene-css.js.map +1 -1
- package/dist/scene-places.d.ts +37 -0
- package/dist/scene-places.d.ts.map +1 -0
- package/dist/scene-places.js +77 -0
- package/dist/scene-places.js.map +1 -0
- package/dist/scene.d.ts +5 -2
- package/dist/scene.d.ts.map +1 -1
- package/dist/scene.js +5 -1
- package/dist/scene.js.map +1 -1
- package/dist/seat-field.d.ts +58 -0
- package/dist/seat-field.d.ts.map +1 -0
- package/dist/seat-field.js +144 -0
- package/dist/seat-field.js.map +1 -0
- package/dist/seat-move.d.ts +32 -0
- package/dist/seat-move.d.ts.map +1 -0
- package/dist/seat-move.js +56 -0
- package/dist/seat-move.js.map +1 -0
- package/dist/seat-panel.d.ts +37 -0
- package/dist/seat-panel.d.ts.map +1 -0
- package/dist/seat-panel.js +131 -0
- package/dist/seat-panel.js.map +1 -0
- package/dist/seat.d.ts +20 -58
- package/dist/seat.d.ts.map +1 -1
- package/dist/seat.js +28 -45
- package/dist/seat.js.map +1 -1
- package/dist/seeding.d.ts.map +1 -1
- package/dist/seeding.js +4 -4
- package/dist/seeding.js.map +1 -1
- package/dist/shell.d.ts +25 -21
- package/dist/shell.d.ts.map +1 -1
- package/dist/shell.js +46 -116
- package/dist/shell.js.map +1 -1
- package/dist/spec-views.d.ts +9 -2
- package/dist/spec-views.d.ts.map +1 -1
- package/dist/spec-views.js +55 -6
- package/dist/spec-views.js.map +1 -1
- package/dist/subject.d.ts +19 -0
- package/dist/subject.d.ts.map +1 -0
- package/dist/subject.js +159 -0
- package/dist/subject.js.map +1 -0
- package/dist/text-body.d.ts +28 -0
- package/dist/text-body.d.ts.map +1 -0
- package/dist/text-body.js +64 -0
- package/dist/text-body.js.map +1 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +6 -523
- package/dist/theme.js.map +1 -1
- package/dist/view-doors.d.ts +5 -1
- package/dist/view-doors.d.ts.map +1 -1
- package/dist/view-doors.js +28 -14
- package/dist/view-doors.js.map +1 -1
- package/dist/workbench/activity.d.ts.map +1 -1
- package/dist/workbench/activity.js +9 -9
- package/dist/workbench/activity.js.map +1 -1
- package/dist/workbench/answer-args.d.ts.map +1 -1
- package/dist/workbench/answer-args.js +26 -2
- package/dist/workbench/answer-args.js.map +1 -1
- package/dist/workbench/back-out.js +3 -3
- package/dist/workbench/back-out.js.map +1 -1
- package/dist/workbench/inspector.d.ts +11 -6
- package/dist/workbench/inspector.d.ts.map +1 -1
- package/dist/workbench/inspector.js +42 -56
- package/dist/workbench/inspector.js.map +1 -1
- package/dist/workbench/standing.d.ts.map +1 -1
- package/dist/workbench/standing.js +4 -3
- package/dist/workbench/standing.js.map +1 -1
- package/dist/workbench/trail.d.ts +10 -17
- package/dist/workbench/trail.d.ts.map +1 -1
- package/dist/workbench/trail.js +29 -41
- package/dist/workbench/trail.js.map +1 -1
- package/package.json +7 -7
- package/dist/companion.d.ts +0 -73
- package/dist/companion.d.ts.map +0 -1
- package/dist/companion.js +0 -594
- package/dist/companion.js.map +0 -1
- package/dist/ladder.d.ts +0 -2
- package/dist/ladder.d.ts.map +0 -1
- package/dist/ladder.js +0 -48
- package/dist/ladder.js.map +0 -1
- package/dist/popover.d.ts +0 -21
- package/dist/popover.d.ts.map +0 -1
- package/dist/popover.js +0 -28
- package/dist/popover.js.map +0 -1
- package/dist/wordmark.d.ts +0 -15
- package/dist/wordmark.d.ts.map +0 -1
- package/dist/wordmark.js +0 -50
- package/dist/wordmark.js.map +0 -1
package/dist/companion.js
DELETED
|
@@ -1,594 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { labelOf, layer, placeSlug } from "@graview/core";
|
|
3
|
-
import { withFocus } from "@graview/layout/view";
|
|
4
|
-
import { aggregateId, bandAggregateWords, kindOfCard, kindsOfAggregate } from "@graview/layout";
|
|
5
|
-
import { useGraview, useSeatWork, useSelection } from "@graview/react";
|
|
6
|
-
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
7
|
-
import { ChatPanel } from "./chat.js";
|
|
8
|
-
import { QuickRelations } from "./quick-relations.js";
|
|
9
|
-
import { RelationKey } from "./relation-key.js";
|
|
10
|
-
import { Inspector } from "./workbench/index.js";
|
|
11
|
-
import { VISUALLY_HIDDEN } from "./primitives/index.js";
|
|
12
|
-
/*
|
|
13
|
-
* A dwell, so a pointer crossing the picture on its way somewhere does not
|
|
14
|
-
* rename the panel six times. Long enough to be a look, short enough that
|
|
15
|
-
* asking "what's wrong with this?" about the thing under the pointer works
|
|
16
|
-
* the moment you stop moving.
|
|
17
|
-
*/
|
|
18
|
-
const DWELL_MS = 220;
|
|
19
|
-
/**
|
|
20
|
-
* The pick target under a scene point, read from the DOM the way a click
|
|
21
|
-
* would. The point is in the scene's own coordinates — the space the layout
|
|
22
|
-
* places things in — so the stage's box is what turns it into the window's.
|
|
23
|
-
*/
|
|
24
|
-
function pickAt(stage, point) {
|
|
25
|
-
if (!stage || !point || typeof document === "undefined")
|
|
26
|
-
return null;
|
|
27
|
-
const box = stage.getBoundingClientRect();
|
|
28
|
-
const element = document.elementFromPoint(box.left + point.x, box.top + point.y);
|
|
29
|
-
const picked = element?.closest("[data-graview-pick]")?.getAttribute("data-graview-pick");
|
|
30
|
-
if (picked)
|
|
31
|
-
return picked;
|
|
32
|
-
const view = element?.closest("[data-graview-view]")?.getAttribute("data-graview-view");
|
|
33
|
-
return view ?? null;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* WHAT "THIS" MEANS, without a gesture to turn it on.
|
|
37
|
-
*
|
|
38
|
-
* The selection when there is one — something chosen outranks something
|
|
39
|
-
* glanced at. Otherwise what the pointer has settled on. Otherwise where
|
|
40
|
-
* you are: the focused place, district or record, or the whole thing.
|
|
41
|
-
*/
|
|
42
|
-
export function useSubject() {
|
|
43
|
-
const { store, view, views, pointer } = useGraview();
|
|
44
|
-
const { selection } = useSelection();
|
|
45
|
-
const [dwelt, setDwelt] = useState(null);
|
|
46
|
-
/*
|
|
47
|
-
* THE POINTER IS WATCHED, NOT SUBSCRIBED TO.
|
|
48
|
-
*
|
|
49
|
-
* Reading it the ordinary way — `useScenePointer`, a store subscription
|
|
50
|
-
* React re-renders on — re-rendered this whole rail on every pointer
|
|
51
|
-
* move: the acts, the relations, the conversation and the key, sixty
|
|
52
|
-
* times a second, for a subject that changes when you stop rather than
|
|
53
|
-
* while you move. The moves are taken here without a render; only what
|
|
54
|
-
* the pointer SETTLED on is state, and only when it is a different
|
|
55
|
-
* thing from last time.
|
|
56
|
-
*/
|
|
57
|
-
useEffect(() => {
|
|
58
|
-
let timer = null;
|
|
59
|
-
let handOn = false;
|
|
60
|
-
/*
|
|
61
|
-
* AND NOT WHILE THE PICTURE IS MOVING UNDER THE POINTER.
|
|
62
|
-
*
|
|
63
|
-
* Dragging the city slides one district after another past a pointer
|
|
64
|
-
* that never moved, and the subject chased every one of them: the
|
|
65
|
-
* rail's header, its acts and its relations flickered through the
|
|
66
|
-
* whole map on the way. The pointer says what you are looking at when
|
|
67
|
-
* YOU move it over a picture that is still — so while a hand is down,
|
|
68
|
-
* and while the scene is still traveling, the question is not asked.
|
|
69
|
-
*/
|
|
70
|
-
const stillMoving = () => typeof document !== "undefined" && document.querySelector("[data-graview-reach]") !== null
|
|
71
|
-
? document.querySelector("[data-graview-settled]") === null
|
|
72
|
-
: false;
|
|
73
|
-
const settle = () => {
|
|
74
|
-
if (timer)
|
|
75
|
-
clearTimeout(timer);
|
|
76
|
-
if (handOn)
|
|
77
|
-
return;
|
|
78
|
-
const at = pointer.snapshot();
|
|
79
|
-
if (!at) {
|
|
80
|
-
setDwelt((was) => (was === null ? was : null));
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
timer = setTimeout(() => {
|
|
84
|
-
if (handOn || stillMoving()) {
|
|
85
|
-
settle();
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const stage = typeof document === "undefined" ? null : document.querySelector("[data-graview-stage]");
|
|
89
|
-
const on = pickAt(stage, at);
|
|
90
|
-
setDwelt((was) => (was === on ? was : on));
|
|
91
|
-
}, DWELL_MS);
|
|
92
|
-
};
|
|
93
|
-
const down = () => {
|
|
94
|
-
handOn = true;
|
|
95
|
-
if (timer)
|
|
96
|
-
clearTimeout(timer);
|
|
97
|
-
};
|
|
98
|
-
const up = () => {
|
|
99
|
-
handOn = false;
|
|
100
|
-
settle();
|
|
101
|
-
};
|
|
102
|
-
const stop = pointer.subscribe(settle);
|
|
103
|
-
document.addEventListener("pointerdown", down, true);
|
|
104
|
-
document.addEventListener("pointerup", up, true);
|
|
105
|
-
document.addEventListener("pointercancel", up, true);
|
|
106
|
-
settle();
|
|
107
|
-
return () => {
|
|
108
|
-
stop();
|
|
109
|
-
document.removeEventListener("pointerdown", down, true);
|
|
110
|
-
document.removeEventListener("pointerup", up, true);
|
|
111
|
-
document.removeEventListener("pointercancel", up, true);
|
|
112
|
-
if (timer)
|
|
113
|
-
clearTimeout(timer);
|
|
114
|
-
};
|
|
115
|
-
}, [pointer]);
|
|
116
|
-
const name = (id) => {
|
|
117
|
-
const node = store.graph.getNode(id);
|
|
118
|
-
if (node)
|
|
119
|
-
return labelOf(store.schema.tryDefinition(node.kind), node);
|
|
120
|
-
const band = bandAggregateWords(id, store.schema);
|
|
121
|
-
if (band)
|
|
122
|
-
return band;
|
|
123
|
-
const kind = kindOfCard(id);
|
|
124
|
-
if (kind)
|
|
125
|
-
return store.schema.tryDefinition(kind)?.plural ?? kind;
|
|
126
|
-
/* A group of several kinds is its plurals together, as the scene's own label says: "Blocks and Runs", never "block+duty". */
|
|
127
|
-
const kinds = kindsOfAggregate(id);
|
|
128
|
-
if (kinds.length > 0) {
|
|
129
|
-
const plurals = kinds.map((one) => store.schema.tryDefinition(one)?.plural ?? one);
|
|
130
|
-
return plurals.length === 1 ? plurals[0] : `${plurals.slice(0, -1).join(", ")} and ${plurals.at(-1)}`;
|
|
131
|
-
}
|
|
132
|
-
return null;
|
|
133
|
-
};
|
|
134
|
-
const chosen = selection[selection.length - 1];
|
|
135
|
-
if (chosen !== undefined) {
|
|
136
|
-
const said = name(chosen);
|
|
137
|
-
if (said) {
|
|
138
|
-
return {
|
|
139
|
-
id: chosen,
|
|
140
|
-
name: selection.length > 1 ? `${said} and ${selection.length - 1} more` : said,
|
|
141
|
-
because: "selection",
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
if (dwelt !== null && dwelt !== undefined) {
|
|
146
|
-
const said = name(dwelt);
|
|
147
|
-
if (said)
|
|
148
|
-
return { id: dwelt, name: said, because: "hover" };
|
|
149
|
-
}
|
|
150
|
-
/* Where you are: the picture being shown, else the district in focus, else the whole thing. */
|
|
151
|
-
const showing = view.within?.["view"];
|
|
152
|
-
const place = showing ? views.places().find((one) => one.as === showing || placeSlug(one.title) === showing) : undefined;
|
|
153
|
-
if (place)
|
|
154
|
-
return { id: null, name: place.title, because: "place" };
|
|
155
|
-
if (view.focusId) {
|
|
156
|
-
const said = name(view.focusId);
|
|
157
|
-
if (said)
|
|
158
|
-
return { id: view.focusId, name: said, because: "place" };
|
|
159
|
-
}
|
|
160
|
-
return { id: null, name: "the whole thing", because: "place" };
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* The key a card answers with its acts. A letter, and only on the card that
|
|
164
|
-
* has the keyboard — a character key bound to focus is not one a voice
|
|
165
|
-
* user's dictation sets off by accident (WCAG 2.1.4).
|
|
166
|
-
*/
|
|
167
|
-
export const ACTS_KEY = "A";
|
|
168
|
-
const RULE = "1px solid var(--graview-edge)";
|
|
169
|
-
/** What the seat is doing, in one word, from the state it already reports. */
|
|
170
|
-
function seatSays(mode) {
|
|
171
|
-
switch (mode) {
|
|
172
|
-
case "reading":
|
|
173
|
-
return { word: "reading", tone: "var(--graview-ink-muted)" };
|
|
174
|
-
case "writing":
|
|
175
|
-
return { word: "working", tone: "var(--graview-accent)" };
|
|
176
|
-
case "asking":
|
|
177
|
-
return { word: "asked you something", tone: "var(--graview-accent)" };
|
|
178
|
-
case "refused":
|
|
179
|
-
return { word: "refused", tone: "var(--graview-warn)" };
|
|
180
|
-
default:
|
|
181
|
-
return { word: "listening", tone: "var(--graview-ink-faint)" };
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
/** The slim tab the seat is put away to, in pixels: the picture has everything else. */
|
|
185
|
-
export const COMPANION_TAB = 36;
|
|
186
|
-
/** Narrower than this the open seat is laid over the picture rather than taking a column of it. */
|
|
187
|
-
export const COMPANION_OVERLAY_BELOW = 960;
|
|
188
|
-
const COMPANION_KEY = (app) => `graview:companion:${app}`;
|
|
189
|
-
/** What the reader chose last time for this app, if their browser lets the page remember. */
|
|
190
|
-
function remembered(memory, app) {
|
|
191
|
-
if (!app)
|
|
192
|
-
return null;
|
|
193
|
-
try {
|
|
194
|
-
const kept = (memory ?? localStorage).getItem(COMPANION_KEY(app));
|
|
195
|
-
return kept === "open" || kept === "collapsed" ? kept : null;
|
|
196
|
-
}
|
|
197
|
-
catch {
|
|
198
|
-
// A private window, a sandboxed frame: the start stands.
|
|
199
|
-
return null;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function remember(memory, app, mode) {
|
|
203
|
-
if (!app)
|
|
204
|
-
return;
|
|
205
|
-
try {
|
|
206
|
-
(memory ?? localStorage).setItem(COMPANION_KEY(app), mode);
|
|
207
|
-
}
|
|
208
|
-
catch {
|
|
209
|
-
// Put away for this visit only.
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
export function Companion({ respond, onCall, onPick, chat = true, framed = false, start, rememberAs } = {}) {
|
|
213
|
-
const { seatWho, robots, session, store, setView: setViewOf, registerActsDoor, registerRail, memory } = useGraview();
|
|
214
|
-
const { set: chooseOf } = useSelection();
|
|
215
|
-
const subject = useSubject();
|
|
216
|
-
/*
|
|
217
|
-
* THE SEAT CAN BE PUT AWAY (FR-78). The rail took a fifth of the picture
|
|
218
|
-
* on every screen whether anybody was talking to it or not. Put away, it
|
|
219
|
-
* is a slim tab at the picture's edge and the city has the rest; the
|
|
220
|
-
* reader's choice is remembered for this app. On a phone it is the sheet
|
|
221
|
-
* along the bottom, which starts shut, as it always has.
|
|
222
|
-
*/
|
|
223
|
-
const [mode, setModeState] = useState(() => (start === "hidden" ? "hidden" : (remembered(memory, rememberAs) ?? start ?? "open")));
|
|
224
|
-
const [sheetOpen, setSheetOpen] = useState(false);
|
|
225
|
-
const robot = robots.get(`agent:${seatWho ?? "chat"}:${session}`);
|
|
226
|
-
const state = seatSays(robot?.mode);
|
|
227
|
-
const said = robot?.say ?? null;
|
|
228
|
-
const name = seatWho ?? "the seat";
|
|
229
|
-
/*
|
|
230
|
-
* A NARROW SCENE HAS NO RAIL. The same argument the inspector makes: a
|
|
231
|
-
* rail down the side of a 390-wide picture covers the picture. There it
|
|
232
|
-
* is a sheet along the bottom, which is where a phone has always put
|
|
233
|
-
* this, and it starts closed so the picture is the first thing.
|
|
234
|
-
*/
|
|
235
|
-
/*
|
|
236
|
-
* AND BELOW A LAPTOP'S WIDTH IT IS LAID OVER THE PICTURE rather than
|
|
237
|
-
* taking a column of it: a column of 22% of a tablet's picture is a
|
|
238
|
-
* column the city never gets back. The tab keeps its place at the edge.
|
|
239
|
-
*/
|
|
240
|
-
const [shape, setShape] = useState("column");
|
|
241
|
-
const narrow = shape === "sheet";
|
|
242
|
-
const frame = useRef(null);
|
|
243
|
-
useEffect(() => {
|
|
244
|
-
if (framed)
|
|
245
|
-
return;
|
|
246
|
-
const element = frame.current?.parentElement;
|
|
247
|
-
if (!element || typeof ResizeObserver === "undefined")
|
|
248
|
-
return;
|
|
249
|
-
const measure = () => {
|
|
250
|
-
const width = element.getBoundingClientRect().width;
|
|
251
|
-
setShape(width < 640 ? "sheet" : width < COMPANION_OVERLAY_BELOW ? "overlay" : "column");
|
|
252
|
-
};
|
|
253
|
-
const watch = new ResizeObserver(measure);
|
|
254
|
-
watch.observe(element);
|
|
255
|
-
measure();
|
|
256
|
-
return () => watch.disconnect();
|
|
257
|
-
}, [mode === "hidden"]);
|
|
258
|
-
const open = framed ? true : narrow ? sheetOpen : mode === "open";
|
|
259
|
-
/** Opens or puts it away; a choice the reader made is kept for this app. */
|
|
260
|
-
const setOpen = (next, kept = true) => {
|
|
261
|
-
if (narrow) {
|
|
262
|
-
setSheetOpen(next);
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const to = next ? "open" : "collapsed";
|
|
266
|
-
setModeState(to);
|
|
267
|
-
if (kept)
|
|
268
|
-
remember(memory, rememberAs, to);
|
|
269
|
-
};
|
|
270
|
-
const tabbed = !framed && !narrow && mode !== "hidden" && (mode === "collapsed" || shape === "overlay");
|
|
271
|
-
/*
|
|
272
|
-
* WHAT THE SEAT TAKES OF THE PICTURE. As a column, the scene keeps its
|
|
273
|
-
* proportional rail; as a tab, an overlay or nothing, the picture's own
|
|
274
|
-
* box gives up only the tab (below) and the city lays out into the rest.
|
|
275
|
-
*/
|
|
276
|
-
useEffect(() => {
|
|
277
|
-
if (framed || narrow)
|
|
278
|
-
return;
|
|
279
|
-
registerRail(mode === "hidden" || tabbed ? 8 : null);
|
|
280
|
-
return () => registerRail(null);
|
|
281
|
-
}, [framed, narrow, mode, tabbed, registerRail]);
|
|
282
|
-
useLayoutEffect(() => {
|
|
283
|
-
const parent = frame.current?.parentElement;
|
|
284
|
-
if (!parent || !tabbed)
|
|
285
|
-
return;
|
|
286
|
-
const before = parent.style.paddingLeft;
|
|
287
|
-
parent.style.paddingLeft = `${COMPANION_TAB}px`;
|
|
288
|
-
return () => {
|
|
289
|
-
parent.style.paddingLeft = before;
|
|
290
|
-
};
|
|
291
|
-
}, [tabbed]);
|
|
292
|
-
const tab = useRef(null);
|
|
293
|
-
/* The keyboard follows the control: put away from the header, it lands on the tab; opened from the tab, on the header. */
|
|
294
|
-
const followTo = useRef(null);
|
|
295
|
-
useLayoutEffect(() => {
|
|
296
|
-
const to = followTo.current;
|
|
297
|
-
followTo.current = null;
|
|
298
|
-
if (to === "tab")
|
|
299
|
-
tab.current?.focus({ preventScroll: true });
|
|
300
|
-
else if (to === "dock")
|
|
301
|
-
dock.current?.focus({ preventScroll: true });
|
|
302
|
-
});
|
|
303
|
-
/*
|
|
304
|
-
* AND THE PICTURE MAKES ROOM FOR THE SHEET. Laid over a 390-wide scene,
|
|
305
|
-
* an open sheet covers the districts and the control that opens one —
|
|
306
|
-
* the very thing it is about. The same trade the actions strip makes: the
|
|
307
|
-
* scene's box loses the sheet's height while it is there, and the layout
|
|
308
|
-
* runs again into what is left.
|
|
309
|
-
*/
|
|
310
|
-
useLayoutEffect(() => {
|
|
311
|
-
const parent = frame.current?.offsetParent;
|
|
312
|
-
if (!parent || !narrow || framed)
|
|
313
|
-
return;
|
|
314
|
-
const room = `${Math.round(frame.current?.getBoundingClientRect().height ?? 0) + 20}px`;
|
|
315
|
-
if (parent.style.paddingBottom === room)
|
|
316
|
-
return;
|
|
317
|
-
const before = parent.style.paddingBottom;
|
|
318
|
-
parent.style.paddingBottom = room;
|
|
319
|
-
return () => {
|
|
320
|
-
parent.style.paddingBottom = before;
|
|
321
|
-
};
|
|
322
|
-
});
|
|
323
|
-
/*
|
|
324
|
-
* AND THE KEYBOARD GETS THERE IN ONE KEY. Folded, the sheet's toggle sat a
|
|
325
|
-
* dozen Tabs from the card the keyboard was on — past every other card
|
|
326
|
-
* and the controls inside them — so every act from the keyboard on a
|
|
327
|
-
* phone began with that walk. The scene's cards answer A instead, the way
|
|
328
|
-
* a right-click is answered: the card chosen, the seat opened, and the
|
|
329
|
-
* keyboard put on its first act. Put away again from the keyboard, the
|
|
330
|
-
* keyboard goes back to the card it came from. The rail does the same
|
|
331
|
-
* where it is already open, so a laptop's keyboard gets the short way too.
|
|
332
|
-
*/
|
|
333
|
-
const cameFrom = useRef(null);
|
|
334
|
-
const dock = useRef(null);
|
|
335
|
-
const [asked, setAsked] = useState(0);
|
|
336
|
-
useEffect(() => {
|
|
337
|
-
// Hidden by the host, there is no seat to open: a card's acts stay at the pointer.
|
|
338
|
-
if (framed || mode === "hidden")
|
|
339
|
-
return;
|
|
340
|
-
registerActsDoor({
|
|
341
|
-
key: ACTS_KEY,
|
|
342
|
-
open: (from) => {
|
|
343
|
-
cameFrom.current = from;
|
|
344
|
-
setOpen(true, false);
|
|
345
|
-
setAsked((count) => count + 1);
|
|
346
|
-
},
|
|
347
|
-
});
|
|
348
|
-
return () => registerActsDoor(null);
|
|
349
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
350
|
-
}, [framed, registerActsDoor, narrow, mode === "hidden"]);
|
|
351
|
-
/* Whether the keyboard stands on a card, so the seat can say the key where it is seen. */
|
|
352
|
-
const [onACard, setOnACard] = useState(false);
|
|
353
|
-
useEffect(() => {
|
|
354
|
-
if (framed || typeof document === "undefined")
|
|
355
|
-
return;
|
|
356
|
-
const watch = () => {
|
|
357
|
-
const active = document.activeElement;
|
|
358
|
-
setOnACard(active instanceof HTMLElement && active.closest("[data-graview-view][aria-keyshortcuts]") !== null);
|
|
359
|
-
};
|
|
360
|
-
document.addEventListener("focusin", watch);
|
|
361
|
-
document.addEventListener("focusout", watch);
|
|
362
|
-
return () => {
|
|
363
|
-
document.removeEventListener("focusin", watch);
|
|
364
|
-
document.removeEventListener("focusout", watch);
|
|
365
|
-
};
|
|
366
|
-
}, [framed]);
|
|
367
|
-
const anything = store.graph.allEdges().length > 0;
|
|
368
|
-
const docked = !narrow && !framed;
|
|
369
|
-
const overlaid = docked && shape === "overlay";
|
|
370
|
-
/* The conversation, rendered once and placed by the pane's shape. */
|
|
371
|
-
const conversation = (_jsx(ChatPanel, { inside: true, ...(onPick ? { onPick } : {}),
|
|
372
|
-
/* What the graph can answer about THIS, offered before anybody types. */
|
|
373
|
-
offer: [
|
|
374
|
-
"What's wrong?",
|
|
375
|
-
...(subject.id && store.graph.getNode(subject.id) ? [`Tell me about ${subject.name}`] : []),
|
|
376
|
-
"What is here?",
|
|
377
|
-
], ...(respond ? { respond } : {}), ...(onCall ? { onCall } : {}) }));
|
|
378
|
-
const work = useSeatWork();
|
|
379
|
-
/* Questions back, from every seat in this tab: they wait for an answer, so they are listed until answered. */
|
|
380
|
-
const asking = [...robots.values()].filter((one) => one.mode === "asking" && one.say);
|
|
381
|
-
const { setView, choose } = { setView: setViewOf, choose: chooseOf };
|
|
382
|
-
/*
|
|
383
|
-
* THE WAY BACK TO WHAT IT DID. Where you are decides what "show me"
|
|
384
|
-
* means: from altitude the district the thing lives in, since a single
|
|
385
|
-
* task is a building up there; on the ground the thing itself, chosen
|
|
386
|
-
* and focused, which is what a person would have clicked.
|
|
387
|
-
*/
|
|
388
|
-
const showMe = (id) => {
|
|
389
|
-
const node = store.graph.getNode(id);
|
|
390
|
-
choose([id]);
|
|
391
|
-
setView((current) => current.overview && node
|
|
392
|
-
? withFocus(current, aggregateId(node.kind))
|
|
393
|
-
: withFocus(current, id));
|
|
394
|
-
};
|
|
395
|
-
/*
|
|
396
|
-
* AN ASK COMES TO THE TOP. Answering an act's open question is a
|
|
397
|
-
* conversation of its own, and in a scrolling column it can open below
|
|
398
|
-
* the fold — the pane asking a question nobody can see.
|
|
399
|
-
*/
|
|
400
|
-
const column = useRef(null);
|
|
401
|
-
useEffect(() => {
|
|
402
|
-
const scroller = column.current;
|
|
403
|
-
if (!scroller || typeof MutationObserver === "undefined")
|
|
404
|
-
return;
|
|
405
|
-
const bring = () => {
|
|
406
|
-
const ask = scroller.querySelector("[data-graview-asking]");
|
|
407
|
-
ask?.scrollIntoView?.({ block: "nearest" });
|
|
408
|
-
};
|
|
409
|
-
const watch = new MutationObserver(bring);
|
|
410
|
-
watch.observe(scroller, { childList: true, subtree: true, attributes: true, attributeFilter: ["data-graview-asking"] });
|
|
411
|
-
return () => watch.disconnect();
|
|
412
|
-
}, [open]);
|
|
413
|
-
useEffect(() => {
|
|
414
|
-
if (asked === 0)
|
|
415
|
-
return;
|
|
416
|
-
/*
|
|
417
|
-
* The acts are derived after the choice the key made, so the first one
|
|
418
|
-
* may be a frame or two behind the press: asked for a little while, and
|
|
419
|
-
* only while the keyboard has not gone somewhere else meanwhile.
|
|
420
|
-
*/
|
|
421
|
-
let tries = 12;
|
|
422
|
-
let frame = 0;
|
|
423
|
-
const land = () => {
|
|
424
|
-
const active = document.activeElement;
|
|
425
|
-
const stillThere = active === document.body || active === null || (active instanceof Node && cameFrom.current?.closest("[data-graview-view]")?.contains(active));
|
|
426
|
-
if (!stillThere)
|
|
427
|
-
return;
|
|
428
|
-
const pane = column.current;
|
|
429
|
-
const act = pane?.querySelector('[data-testid="affordances"] button:not([disabled])');
|
|
430
|
-
if (act) {
|
|
431
|
-
act.focus();
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
if (tries-- > 0) {
|
|
435
|
-
frame = requestAnimationFrame(land);
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
// Nothing to do here: the first thing the seat holds, so the keyboard is in what opened.
|
|
439
|
-
(pane?.querySelector("button:not([disabled]), input, select, textarea, summary") ?? dock.current)?.focus();
|
|
440
|
-
};
|
|
441
|
-
frame = requestAnimationFrame(land);
|
|
442
|
-
return () => cancelAnimationFrame(frame);
|
|
443
|
-
}, [asked]);
|
|
444
|
-
/*
|
|
445
|
-
* A REGION, NOT A LANDMARK INSIDE ONE (FR-40). The seat was an `<aside>`,
|
|
446
|
-
* a complementary landmark, drawn inside the Shell's main and inside an
|
|
447
|
-
* embed's own region, so axe's `landmark-complementary-is-top-level`
|
|
448
|
-
* failed on every hosted app at every size. It lives in the picture it is
|
|
449
|
-
* about, so it is a labeled region there, and what it holds are groups.
|
|
450
|
-
*/
|
|
451
|
-
if (mode === "hidden" && !framed)
|
|
452
|
-
return null;
|
|
453
|
-
if (tabbed && !open) {
|
|
454
|
-
/*
|
|
455
|
-
* PUT AWAY: a slim tab at the picture's edge, the whole height of it,
|
|
456
|
-
* and one control that opens the seat again.
|
|
457
|
-
*/
|
|
458
|
-
return (_jsx("section", { ref: frame, "aria-label": `The seat — about ${subject.name}`, "data-testid": "companion", "data-graview-companion": "shut", "data-graview-companion-mode": "collapsed", "data-graview-subject": subject.id ?? "", "data-graview-offstage": "", onMouseDown: (event) => event.stopPropagation(), style: {
|
|
459
|
-
zIndex: layer("rail"),
|
|
460
|
-
position: "absolute",
|
|
461
|
-
left: 0,
|
|
462
|
-
top: 0,
|
|
463
|
-
bottom: 0,
|
|
464
|
-
width: COMPANION_TAB,
|
|
465
|
-
boxSizing: "border-box",
|
|
466
|
-
display: "flex",
|
|
467
|
-
flexDirection: "column",
|
|
468
|
-
alignItems: "center",
|
|
469
|
-
paddingTop: 8,
|
|
470
|
-
borderRight: RULE,
|
|
471
|
-
background: "var(--graview-bar)",
|
|
472
|
-
}, children: _jsxs("button", { type: "button", ref: tab, "data-testid": "companion-tab", "aria-expanded": false, "aria-label": `Open the seat — about ${subject.name}`, title: `Open the seat — about ${subject.name}`, onClick: (event) => {
|
|
473
|
-
if (document.activeElement === event.currentTarget)
|
|
474
|
-
followTo.current = "dock";
|
|
475
|
-
setOpen(true);
|
|
476
|
-
}, style: { display: "grid", justifyItems: "center", gap: 8, width: 28, minHeight: 28, padding: "6px 0", borderRadius: 8, fontSize: "0.75rem", color: "var(--graview-ink-muted)" }, children: [_jsx("span", { "aria-hidden": "true", children: "\u25C6" }), _jsx("span", { "aria-hidden": "true", style: { writingMode: "vertical-rl", letterSpacing: "0.12em", textTransform: "uppercase", fontSize: "0.6875rem" }, children: "The seat" })] }) }));
|
|
477
|
-
}
|
|
478
|
-
return (_jsxs("section", { ref: frame, "aria-label": `The seat — about ${subject.name}`, "data-testid": "companion", "data-graview-companion": open ? "open" : "shut", "data-graview-companion-mode": narrow ? (open ? "open" : "collapsed") : mode, "data-graview-companion-shape": framed ? "framed" : shape, "data-graview-subject": subject.id ?? "", "data-graview-because": subject.because, "data-graview-offstage": "", onMouseDown: (event) => event.stopPropagation(), style: {
|
|
479
|
-
zIndex: layer("rail"),
|
|
480
|
-
boxSizing: "border-box",
|
|
481
|
-
display: "flex",
|
|
482
|
-
flexDirection: "column",
|
|
483
|
-
gap: 8,
|
|
484
|
-
borderRadius: "var(--graview-radius, 12px)",
|
|
485
|
-
/* Each side by itself: docking takes three away, and React warns when a shorthand and its longhands trade places. */
|
|
486
|
-
borderTop: RULE,
|
|
487
|
-
borderRight: RULE,
|
|
488
|
-
borderBottom: RULE,
|
|
489
|
-
borderLeft: RULE,
|
|
490
|
-
background: "var(--graview-float)",
|
|
491
|
-
boxShadow: "var(--graview-lift-high)",
|
|
492
|
-
...(framed
|
|
493
|
-
? { position: "static", width: "auto", maxHeight: "100%", padding: "10px 12px" }
|
|
494
|
-
: narrow
|
|
495
|
-
? { position: "absolute", left: 10, right: 10, bottom: 10, maxHeight: open ? "min(58cqh, 420px)" : undefined, padding: open ? "10px 12px" : "6px 10px" }
|
|
496
|
-
: overlaid
|
|
497
|
-
? {
|
|
498
|
-
/*
|
|
499
|
-
* LAID OVER THE PICTURE, from the tab's edge: the floating
|
|
500
|
-
* panel's look, the high lift, and the picture underneath
|
|
501
|
-
* keeps its whole width.
|
|
502
|
-
*/
|
|
503
|
-
position: "absolute",
|
|
504
|
-
left: 0,
|
|
505
|
-
top: 0,
|
|
506
|
-
bottom: 0,
|
|
507
|
-
width: "min(300px, calc(100% - 48px))",
|
|
508
|
-
padding: "12px 12px 10px",
|
|
509
|
-
borderRadius: 0,
|
|
510
|
-
borderTop: "none",
|
|
511
|
-
borderBottom: "none",
|
|
512
|
-
borderLeft: "none",
|
|
513
|
-
display: "grid",
|
|
514
|
-
gridTemplateRows: "auto minmax(0, 1fr) auto",
|
|
515
|
-
}
|
|
516
|
-
: {
|
|
517
|
-
/*
|
|
518
|
-
* DOCKED, NOT FLOATING. The layout keeps this rail clear of the
|
|
519
|
-
* picture in every mode (see railInset), so the pane stands in
|
|
520
|
-
* it as a column of the interface — the scene's height, a rule
|
|
521
|
-
* down its right edge, no shadow — rather than as a card
|
|
522
|
-
* dropped over the corner of the picture. The width is the
|
|
523
|
-
* rail's share, so the two can never disagree.
|
|
524
|
-
*/
|
|
525
|
-
position: "absolute",
|
|
526
|
-
left: 0,
|
|
527
|
-
top: 0,
|
|
528
|
-
bottom: 0,
|
|
529
|
-
width: "min(264px, 22cqw)",
|
|
530
|
-
padding: open ? "12px 12px 10px" : "10px 12px",
|
|
531
|
-
borderRadius: 0,
|
|
532
|
-
borderTop: "none",
|
|
533
|
-
borderBottom: "none",
|
|
534
|
-
borderLeft: "none",
|
|
535
|
-
boxShadow: "none",
|
|
536
|
-
background: "var(--graview-bar)",
|
|
537
|
-
...(open ? { display: "grid", gridTemplateRows: "auto minmax(0, 1fr) auto" } : {}),
|
|
538
|
-
}),
|
|
539
|
-
overflow: "hidden",
|
|
540
|
-
}, children: [_jsxs("h2", { style: { ...VISUALLY_HIDDEN, margin: 0 }, children: ["The seat \u2014 about ", subject.name] }), _jsxs("button", { type: "button", ref: dock, "data-testid": "companion-dock", "aria-expanded": open, onClick: (event) => {
|
|
541
|
-
// Put away from the header where there is a tab to put it away to, the keyboard lands on the tab —
|
|
542
|
-
// when the keyboard was on the header. A press a host's script makes leaves the reader's keyboard where it is.
|
|
543
|
-
if (open && !narrow && document.activeElement === event.currentTarget)
|
|
544
|
-
followTo.current = "tab";
|
|
545
|
-
setOpen(!open);
|
|
546
|
-
/*
|
|
547
|
-
* Put away from the keyboard (a click no pointer made), the
|
|
548
|
-
* keyboard goes back to the card the key brought it from rather
|
|
549
|
-
* than staying on a toggle at the foot of the screen.
|
|
550
|
-
*/
|
|
551
|
-
const back = cameFrom.current;
|
|
552
|
-
cameFrom.current = null;
|
|
553
|
-
if (open && narrow && event.detail === 0 && back?.isConnected)
|
|
554
|
-
back.focus({ preventScroll: true });
|
|
555
|
-
}, title: open ? "Put the seat away" : `Talk to the seat about ${subject.name}`, style: {
|
|
556
|
-
all: "unset",
|
|
557
|
-
outline: "revert-layer",
|
|
558
|
-
cursor: "pointer",
|
|
559
|
-
display: "grid",
|
|
560
|
-
gridTemplateColumns: "auto minmax(0, 1fr) auto",
|
|
561
|
-
alignItems: "center",
|
|
562
|
-
gap: 8,
|
|
563
|
-
minHeight: 32,
|
|
564
|
-
}, children: [_jsxs("span", { style: { display: "grid", gap: 1, minWidth: 0 }, children: [_jsx("span", { style: { fontSize: "0.6875rem", letterSpacing: "0.12em", textTransform: "uppercase", color: subject.because === "selection" ? "var(--graview-accent)" : "var(--graview-ink-faint)" }, children: subject.because === "selection" ? "Selected" : subject.because === "hover" ? "Under the pointer" : "In view" }), _jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--graview-ink)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: _jsx("span", { "data-testid": "companion-subject", children: subject.name }) }), _jsxs("span", { "data-testid": "companion-state", style: state.word === "listening"
|
|
565
|
-
? { position: "absolute", width: 1, height: 1, overflow: "hidden", clipPath: "inset(50%)" }
|
|
566
|
-
: { fontSize: "0.75rem", color: state.tone, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: [name, " \u00B7 ", state.word] })] }), _jsxs("span", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.75rem", color: "var(--graview-ink-faint)" }, children: [onACard ? (_jsxs("span", { "data-testid": "companion-acts-key", style: { color: "var(--graview-ink-muted)", whiteSpace: "nowrap" }, children: [_jsx("kbd", { style: { font: "inherit", fontWeight: 600, padding: "0 4px", border: "1px solid var(--graview-edge)", borderRadius: 4 }, children: ACTS_KEY }), " its acts"] })) : null, _jsx("span", { "aria-hidden": "true", children: open ? "▾" : "▸" })] })] }), open && said && (robot?.mode === "refused" || robot?.mode === "asking") ? (_jsx("p", { "data-testid": "companion-said", style: { margin: 0, fontSize: "0.8125rem", color: state.tone }, children: said })) : null, open ? (_jsxs("div", { ref: column, style: {
|
|
567
|
-
display: "grid",
|
|
568
|
-
/*
|
|
569
|
-
* EVERY SECTION IS AS TALL AS ITS CONTENT, and the column
|
|
570
|
-
* scrolls. Left to itself a grid with a definite height hands
|
|
571
|
-
* each row a share of the space — and a row whose item has no
|
|
572
|
-
* automatic minimum is compressed below what is in it, which
|
|
573
|
-
* paints the conversation's chips and field straight over the
|
|
574
|
-
* relations underneath. Rows sized by their content, packed at
|
|
575
|
-
* the top, cannot do that: what does not fit is scrolled to.
|
|
576
|
-
*/
|
|
577
|
-
gridAutoRows: "min-content",
|
|
578
|
-
alignContent: "start",
|
|
579
|
-
gap: 10,
|
|
580
|
-
minHeight: 0,
|
|
581
|
-
overflowY: "auto",
|
|
582
|
-
overflowX: "hidden",
|
|
583
|
-
}, children: [_jsx(Inspector, { placement: "rail" }), _jsx(QuickRelations, { inside: true }), chat && !docked ? conversation : null, asking.length > 0 ? (_jsxs("section", { "data-testid": "companion-asking", style: { display: "grid", gap: 6 }, children: [_jsx("span", { style: { fontSize: "0.75rem", letterSpacing: "0.12em", textTransform: "uppercase", color: "var(--graview-accent)" }, children: asking.length === 1 ? "It asked" : `It asked ${asking.length} things` }), _jsx("ul", { style: { margin: 0, padding: 0, listStyle: "none", display: "grid", gap: 4 }, children: asking.map((one) => (_jsxs("li", { style: { display: "grid", gridTemplateColumns: "minmax(0, 1fr) auto", gap: 6, alignItems: "baseline" }, children: [_jsx("span", { style: { fontSize: "0.8125rem", color: "var(--graview-ink)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, title: one.say, children: one.say }), one.at ? (_jsx("button", { type: "button", "data-testid": "companion-show-me", "data-graview-show": one.at, "aria-label": `Show me what ${one.who} is asking about`, title: "Show me what it is asking about", onClick: () => showMe(one.at), style: { font: "inherit", fontSize: "0.75rem", minHeight: 24, padding: "0 8px", maxWidth: 110, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: (() => {
|
|
584
|
-
const about = store.graph.getNode(one.at);
|
|
585
|
-
return about ? labelOf(store.schema.tryDefinition(about.kind), about) : "Show me";
|
|
586
|
-
})() })) : null] }, one.participant))) })] })) : null, work.acts.length > 0 ? (_jsxs("section", { "data-testid": "companion-log", style: { display: "grid", gap: 6 }, children: [_jsx("span", { style: { fontSize: "0.75rem", letterSpacing: "0.12em", textTransform: "uppercase", color: "var(--graview-ink-faint)" }, children: "What it did" }), _jsx("ul", { style: { margin: 0, padding: 0, listStyle: "none", display: "grid", gap: 4 }, children: work.acts.slice(0, 4).map((act) => {
|
|
587
|
-
const first = act.wrote[0];
|
|
588
|
-
const node = first ? store.graph.getNode(first) : undefined;
|
|
589
|
-
return (_jsxs("li", { style: { display: "grid", gridTemplateColumns: "minmax(0, 1fr) auto", gap: 6, alignItems: "baseline" }, children: [_jsx("span", { style: { fontSize: "0.8125rem", color: "var(--graview-ink)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, title: act.intent, children: act.intent }), node ? (
|
|
590
|
-
/* Named, not "Show me" three times: a row of identical labels is a list nobody can read. */
|
|
591
|
-
_jsx("button", { type: "button", "data-testid": "companion-show-me", "data-graview-show": first, "aria-label": `Show me ${labelOf(store.schema.tryDefinition(node.kind), node)}`, title: `Show me ${labelOf(store.schema.tryDefinition(node.kind), node)}`, onClick: () => showMe(first), style: { font: "inherit", fontSize: "0.75rem", minHeight: 24, padding: "0 8px", maxWidth: 110, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: labelOf(store.schema.tryDefinition(node.kind), node) })) : null] }, act.batch));
|
|
592
|
-
}) })] })) : null, anything ? (_jsxs("details", { "data-testid": "companion-key", children: [_jsx("summary", { style: { cursor: "pointer", fontSize: "0.75rem", letterSpacing: "0.12em", textTransform: "uppercase", color: "var(--graview-ink-faint)", minHeight: 24 }, children: "What the lines mean" }), _jsx(RelationKey, { inside: true })] })) : null] })) : null, open && chat && docked ? (_jsx("div", { style: { paddingTop: 8, borderTop: "1px solid var(--graview-edge)", minWidth: 0 }, children: conversation })) : null] }));
|
|
593
|
-
}
|
|
594
|
-
//# sourceMappingUR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