@vitrinka/web 0.7.2 → 0.8.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/README.md +117 -19
  3. package/build/hud.iife.js +11 -11
  4. package/build/recorder/config.d.ts +6 -2
  5. package/build/recorder/hud/Hud.d.ts +3 -1
  6. package/build/recorder/hud/Hud.js +2 -2
  7. package/build/recorder/hud/Menu.d.ts +7 -1
  8. package/build/recorder/hud/Menu.js +2 -2
  9. package/build/recorder/hud/host.d.ts +13 -0
  10. package/build/recorder/hud/host.js +96 -1
  11. package/build/recorder/hud/icons.d.ts +2 -0
  12. package/build/recorder/hud/icons.js +4 -0
  13. package/build/recorder/hud/mount.d.ts +2 -0
  14. package/build/recorder/hud/mount.js +1 -0
  15. package/build/recorder/index.d.ts +6 -0
  16. package/build/recorder/index.js +3 -0
  17. package/build/recorder/link.js +1 -1
  18. package/build/recorder/version.d.ts +2 -2
  19. package/build/recorder/version.js +1 -1
  20. package/build/report/attachments.d.ts +56 -0
  21. package/build/report/attachments.js +91 -0
  22. package/build/report/drag.d.ts +18 -0
  23. package/build/report/drag.js +34 -0
  24. package/build/report/element.d.ts +11 -2
  25. package/build/report/element.js +106 -15
  26. package/build/report/engine.d.ts +5 -1
  27. package/build/report/engine.js +7 -1
  28. package/build/report/face.d.ts +23 -0
  29. package/build/report/face.js +92 -0
  30. package/build/report/i18n.d.ts +75 -3
  31. package/build/report/i18n.js +125 -6
  32. package/build/report/place.d.ts +26 -0
  33. package/build/report/place.js +33 -0
  34. package/build/report/reader.d.ts +42 -0
  35. package/build/report/reader.js +39 -0
  36. package/build/report/recorder-face.js +6 -2
  37. package/build/report/sent.d.ts +16 -0
  38. package/build/report/sent.js +39 -0
  39. package/build/report/settings.d.ts +32 -0
  40. package/build/report/settings.js +47 -0
  41. package/build/report/styles.d.ts +1 -1
  42. package/build/report/styles.js +216 -52
  43. package/build/report/widget.d.ts +109 -3
  44. package/build/report/widget.js +1063 -99
  45. package/build/report/wire.d.ts +20 -9
  46. package/build/report/wire.js +44 -9
  47. package/build/report-widget.mjs +223 -59
  48. package/package.json +1 -1
@@ -14,6 +14,17 @@ export const REPORT_CSS = `
14
14
  --bg-deep: #121115;
15
15
  --accent: #dc2f4c;
16
16
  --accent-soft: rgba(220, 47, 76, .28);
17
+ /* Motion (transitions-dev tokens): a sliding indicator rides --dur-fast, the card's one glide --dur-slow. */
18
+ --dur-quick: 150ms;
19
+ --dur-fast: 250ms;
20
+ --dur-slow: 400ms;
21
+ --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
22
+ /* Size (vt-8020 D9, settings.ts): ONE factor, written by the widget, scales the button, the card and
23
+ the marking bar — fonts and boxes together — each from its anchored corner. */
24
+ --vr-scale: 1;
25
+ /* The dock: the gap to the viewport edge, and where the card rests — clear of the button above or below it. */
26
+ --edge: 24px;
27
+ --lift: calc(var(--edge) + 72px * var(--vr-scale));
17
28
  font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
18
29
  color: var(--ink);
19
30
  -webkit-font-smoothing: antialiased;
@@ -22,6 +33,7 @@ export const REPORT_CSS = `
22
33
  }
23
34
  .vr *, .vr *::before, .vr *::after { box-sizing: border-box; }
24
35
  .vr [hidden] { display: none !important; }
36
+ .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
25
37
  button { font: inherit; color: inherit; cursor: pointer; }
26
38
  button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
27
39
  outline: 2px solid #fff; outline-offset: 2px;
@@ -29,7 +41,10 @@ button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visib
29
41
 
30
42
  /* -- the floating button -------------------------------------------------- */
31
43
  .fab {
32
- position: fixed; right: 24px; bottom: 24px;
44
+ position: fixed; right: var(--edge); bottom: var(--edge);
45
+ scale: var(--vr-scale); transform-origin: 100% 100%;
46
+ /* A press can become a drag to another corner: the page never scrolls under it. */
47
+ touch-action: none;
33
48
  display: inline-flex; align-items: center; gap: 12px;
34
49
  padding: 15px 22px; border: 0; border-radius: 999px;
35
50
  background: #131216; color: #fff;
@@ -46,23 +61,50 @@ kbd {
46
61
  border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);
47
62
  }
48
63
 
49
- /* -- the card --------------------------------------------------------------- */
64
+ /* -- the card: ONE size from drafting to thanks (vt-8020 D10) ---------------- */
50
65
  .card {
51
- position: fixed; right: 24px; bottom: 96px;
52
- width: min(420px, calc(100vw - 32px));
53
- max-height: calc(100vh - 120px); overflow: auto;
66
+ position: fixed; right: var(--edge); bottom: var(--lift);
67
+ display: flex; flex-direction: column;
68
+ /* The box is divided by the scale so the painted card (scale × box) still fits the viewport. */
69
+ width: min(380px, calc((100vw - 32px) / var(--vr-scale)));
70
+ height: min(460px, calc((100vh - var(--lift) - var(--edge)) / var(--vr-scale)));
71
+ scale: var(--vr-scale); transform-origin: 100% 100%;
54
72
  background: var(--bg); color: var(--ink);
55
73
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
56
74
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);
57
75
  pointer-events: auto;
58
76
  animation: vr-in .16s ease-out;
59
77
  }
60
- .vr.nobutton .card { bottom: 24px; }
78
+ .vr.nobutton .card { bottom: var(--edge); }
79
+ /* The dock (vt-8020 D9, drag.ts): the button in any corner; the card rests beside it — above it at the
80
+ bottom, below it at the top — and both scale from that corner. */
81
+ .vr[data-dock$="l"] .fab, .vr[data-dock$="l"] .card { right: auto; left: var(--edge); }
82
+ .vr[data-dock^="t"] .fab { bottom: auto; top: var(--edge); }
83
+ .vr[data-dock^="t"] .card { bottom: auto; top: var(--lift); }
84
+ .vr.nobutton[data-dock^="t"] .card { top: var(--edge); }
85
+ .vr[data-dock="bl"] .fab, .vr[data-dock="bl"] .card { transform-origin: 0 100%; }
86
+ .vr[data-dock="tr"] .fab, .vr[data-dock="tr"] .card { transform-origin: 100% 0; }
87
+ .vr[data-dock="tl"] .fab, .vr[data-dock="tl"] .card { transform-origin: 0 0; }
88
+ /* Dragged, the button rides the pointer by its left/top; dropped, it glides into its corner (FLIP on translate). */
89
+ .vr .fab.dragging { transform-origin: 0 0; transition: none; cursor: grabbing; }
90
+ .fab.gliding { transition: translate var(--dur-slow) var(--ease-smooth-out), transform .14s ease, box-shadow .14s ease; }
91
+ /* Parked by marking: placed by left/top where it already is (place.ts, from its painted box) — the same size,
92
+ so starting to mark never moves it; it glides once to a corner clear of the marks. */
93
+ .card.parked { right: auto; bottom: auto; transition: left var(--dur-slow) var(--ease-smooth-out), top var(--dur-slow) var(--ease-smooth-out); }
94
+ .vr .card.parked { transform-origin: 0 0; }
61
95
  @keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
62
96
  .head {
63
- display: flex; align-items: center; gap: 4px;
64
- padding: 16px 14px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07);
97
+ position: relative; flex: none; display: flex; align-items: center; gap: 4px;
98
+ padding: 12px 10px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);
65
99
  }
100
+ /* Sending: a quiet sweep along the head's edge, the card's size untouched. */
101
+ .card.busy .head::after {
102
+ content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
103
+ background: linear-gradient(90deg, transparent, rgba(242, 241, 239, .6), transparent) no-repeat;
104
+ background-size: 40% 100%; animation: vr-sweep 1.3s linear infinite;
105
+ }
106
+ @keyframes vr-sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }
107
+ .body { flex: 1; min-height: 0; overflow: auto; }
66
108
  .head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
67
109
  .icon {
68
110
  display: inline-grid; place-items: center; width: 32px; height: 32px;
@@ -70,10 +112,71 @@ kbd {
70
112
  }
71
113
  .icon:hover { background: var(--faint); color: var(--ink); }
72
114
  .icon svg { width: 16px; height: 16px; }
73
- .pane { padding: 18px 20px 20px; }
115
+ .icon[aria-expanded="true"] { background: var(--faint); color: var(--ink); }
116
+
117
+ /* -- who you are and the menu (vt-8020 D5 A) -------------------------------- */
118
+ .who {
119
+ display: inline-flex; align-items: center; gap: 7px; max-width: 132px; height: 32px; padding: 0 11px 0 5px; margin-right: 2px;
120
+ border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: var(--ink);
121
+ font-size: 13px; font-weight: 600;
122
+ }
123
+ .who:hover, .who[aria-expanded="true"] { background: var(--faint); }
124
+ .who .av {
125
+ display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
126
+ background: #3a3940; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
127
+ }
128
+ .who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
129
+ .pop {
130
+ position: absolute; top: 52px; right: 10px; z-index: 2; min-width: 240px; max-width: calc(100% - 20px); padding: 6px;
131
+ background: #222126; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
132
+ box-shadow: 0 18px 44px rgba(0, 0, 0, .42); animation: vr-in .14s ease-out;
133
+ }
134
+ .pop-item {
135
+ display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px;
136
+ background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none; text-align: left;
137
+ }
138
+ .pop-item:hover, .pop-item:focus-visible { background: var(--faint); }
139
+ .pop-item svg { width: 15px; height: 15px; flex: none; color: var(--dim); }
140
+ .acc-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
141
+ .acc-who strong { font-size: 14px; }
142
+ .acc-mail, .acc-via { color: var(--dim); font-size: 12.5px; margin: 0; }
143
+ .acc-member { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; }
144
+ .acc-member:has(.acc-linked:not([hidden])) { padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
145
+ .acc-linked { margin: 0; font-size: 12.5px; color: var(--ink); }
146
+
147
+ /* -- the lists: My reports, recent recordings — in the card body ------------ */
148
+ .back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px -4px; padding: 4px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 650; }
149
+ .back svg { width: 14px; height: 14px; color: var(--dim); }
150
+ .rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
151
+ .row {
152
+ display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t step" "age step"; column-gap: 10px;
153
+ padding: 9px 10px; border-radius: 10px; background: rgba(242, 241, 239, .045); color: var(--ink); text-decoration: none;
154
+ }
155
+ a.row:hover { background: var(--faint); }
156
+ .row-t { grid-area: t; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
157
+ .age { grid-area: age; color: var(--dim); font-size: 12px; }
158
+ .step { grid-area: step; align-self: center; padding: 3px 9px; border-radius: 999px; background: var(--bg-deep); color: var(--dim); font-size: 12px; font-weight: 600; }
159
+ .step:empty { display: none; }
160
+ .list-status, .list-note { margin: 8px 0; color: var(--dim); font-size: 13px; }
161
+
162
+ /* -- the member link sheet (the pill's flow, vt-8020 D3) ------------------- */
163
+ .code { margin: 6px 0 14px; font: 650 26px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
164
+ .link-go { display: flex; align-items: center; gap: 16px; }
165
+ .qr { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; }
166
+ .pane { padding: 14px 16px 16px; }
167
+ /* The reporter's word for it (vt-8020 D11): chips above the input, like the board composer's intents. */
168
+ .kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
169
+ .kinds button {
170
+ height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
171
+ background: transparent; color: rgba(242, 241, 239, .6); font-size: 13px; font-weight: 600;
172
+ transition: background-color var(--dur-quick) ease-out, border-color var(--dur-quick) ease-out, color var(--dur-quick) ease-out;
173
+ }
174
+ .kinds button:hover:not(:disabled) { color: var(--ink); }
175
+ .kinds button[aria-checked="true"] { background: rgba(242, 241, 239, .12); border-color: rgba(242, 241, 239, .26); color: var(--ink); }
176
+ .kinds button:disabled { opacity: .5; cursor: default; }
74
177
  .prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }
75
178
  .desc {
76
- display: block; width: 100%; min-height: 88px; resize: vertical;
179
+ display: block; width: 100%; min-height: 76px; resize: none;
77
180
  padding: 12px 14px; border-radius: 10px;
78
181
  border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);
79
182
  font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;
@@ -91,22 +194,54 @@ kbd {
91
194
  .link[aria-expanded="true"] svg { transform: rotate(180deg); }
92
195
  .included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }
93
196
  .included li { margin: 2px 0; }
94
- .marked { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--dim); }
95
- .chip {
96
- display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
97
- border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
197
+ /* One numbered line per mark: its note, typed in the card, never floating on the page. */
198
+ .lines-wrap { margin-top: 10px; }
199
+ .lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
200
+ .ln {
201
+ display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 9px;
202
+ border-radius: 10px; background: rgba(242, 241, 239, .045); border: 1px solid transparent;
203
+ }
204
+ .ln:focus-within { background: var(--bg-deep); border-color: rgba(242, 241, 239, .36); }
205
+ .ln-n {
206
+ display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
207
+ background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; box-shadow: 0 0 0 1.5px #fff;
208
+ }
209
+ .ln.hide .ln-n { background: #3a3940; }
210
+ .ln-t {
211
+ flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink);
212
+ font-family: inherit; font-size: 13.5px;
98
213
  }
99
- .chip.hide { background: #3a3940; }
214
+ .ln-t::placeholder { color: rgba(242, 241, 239, .4); }
215
+ .ln-t:focus, .ln-t:focus-visible { outline: none; }
216
+ .ln-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: rgba(242, 241, 239, .5); }
217
+ .ln-x:hover:not(:disabled) { background: var(--faint); color: var(--ink); }
218
+ .ln-x svg { width: 11px; height: 11px; }
219
+ .ln-empty { margin: 0; padding: 11px 13px; border: 1px dashed rgba(242, 241, 239, .14); border-radius: 10px; color: rgba(242, 241, 239, .46); font-size: 13px; }
100
220
  .notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
101
221
  .notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
102
222
  .error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }
103
- .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
223
+ /* The bottom actions: attachments and Show us where on the left, Send on the right. */
224
+ .foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
225
+ .foot .send { margin-left: auto; }
226
+ .icon:disabled { opacity: .45; cursor: default; background: transparent; color: var(--dim); }
227
+ /* Attached files (vt-8020 D9): chips in a tray above the foot — it scrolls, the card never grows. */
228
+ .tray { flex: none; max-height: 84px; overflow: auto; padding: 9px 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
229
+ .tray:not([hidden]) + .foot { border-top: 0; }
230
+ .file-note { margin: 0 0 7px; color: #ffc1ca; font-size: 12.5px; }
231
+ .files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
232
+ .file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 2px 0 10px; border-radius: 8px; background: rgba(242, 241, 239, .07); font-size: 12.5px; }
233
+ .file-name { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
234
+ .file-size { flex: none; color: var(--dim); }
235
+ .file .ln-x { width: 22px; height: 22px; }
236
+ /* A file dragged over the card: it will land here. */
237
+ .card.dropping { outline: 2px dashed rgba(242, 241, 239, .5); outline-offset: -7px; }
104
238
  .where {
105
239
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;
106
240
  border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);
107
241
  font-size: 13px; font-weight: 600;
108
242
  }
109
243
  .where:hover:not(:disabled) { background: var(--faint); }
244
+ .where[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
110
245
  .where svg { width: 14px; height: 14px; }
111
246
  .where:disabled { opacity: .45; cursor: default; }
112
247
  .send {
@@ -117,8 +252,15 @@ kbd {
117
252
  .send:disabled { opacity: .45; cursor: default; }
118
253
 
119
254
  /* -- settings --------------------------------------------------------------- */
120
- .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
121
- .row .label { font-weight: 600; }
255
+ /* Scoped to the pane: a bare .row would restyle the lists' rows (their grid) above. */
256
+ .settings .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
257
+ .settings .label { font-weight: 600; }
258
+ .size-row { margin-top: 18px; }
259
+ .size-row .seg button { padding: 0 12px; font-size: 13px; }
260
+ .tech-wrap { margin-top: 18px; }
261
+ .tech { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 12.5px; }
262
+ .tech dt { color: var(--dim); }
263
+ .tech dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
122
264
  .bind {
123
265
  min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;
124
266
  border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);
@@ -151,42 +293,62 @@ kbd {
151
293
  .ink .veil { fill: #1b1b1f; }
152
294
  .ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
153
295
  .ink .draft { opacity: .85; }
154
- .pin { position: absolute; display: flex; align-items: center; gap: 6px; cursor: default; }
296
+ /* A pin is the mark's number on the page; its ✕ shows while the pin is hovered or focused. */
297
+ .pin { position: absolute; display: flex; align-items: center; gap: 4px; cursor: default; }
155
298
  .pin .num {
156
- display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px;
299
+ display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;
157
300
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;
158
301
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;
159
302
  }
160
- .pin .note {
161
- width: 220px; padding: 6px 10px; border-radius: 9px;
162
- border: 1px solid rgba(255, 255, 255, .16); background: #151417; color: #fff;
163
- font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.3;
164
- box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
165
- }
166
- .pin .note::placeholder { color: rgba(255, 255, 255, .45); }
167
- .pin .note:focus { outline: none; border-color: var(--accent); }
168
303
  .pin .rm {
169
- display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;
304
+ display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 11px;
170
305
  background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
306
+ opacity: 0; transition: opacity var(--dur-quick) ease-out;
171
307
  }
308
+ .pin:hover .rm, .pin:focus-within .rm { opacity: 1; }
172
309
  .pin .rm:hover { color: #fff; }
173
- .pin .rm svg { width: 12px; height: 12px; }
174
- .toolbar {
175
- position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
176
- display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 15px;
177
- background: #151417; box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;
178
- cursor: default;
179
- }
180
- .toolbar button {
181
- padding: 9px 15px; border: 0; border-radius: 10px; background: transparent; color: #f2f1ef;
182
- font-size: 15px; font-weight: 600;
183
- }
184
- .toolbar button:hover { background: rgba(255, 255, 255, .08); }
185
- .toolbar button[aria-pressed="true"] { background: #e6455f; color: #fff; }
186
- .toolbar .sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, .14); }
187
- .toolbar .done { background: var(--accent); color: #fff; }
188
- .toolbar .done:hover { background: #e43a57; }
189
- .toolbar button:disabled { opacity: .4; cursor: default; background: transparent; }
310
+ .pin .rm svg { width: 11px; height: 11px; }
311
+
312
+ /* The marking bar (vt-8020 D6): translucent glass at the top, the shape as a segmented control. */
313
+ .tb {
314
+ /* translate (not transform): it applies after the scale, so the scaled bar stays centred. */
315
+ position: fixed; left: 50%; top: 14px; translate: -50% 0;
316
+ scale: var(--vr-scale); transform-origin: 50% 0;
317
+ display: flex; align-items: center; gap: 4px; padding: 5px;
318
+ border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
319
+ background: rgba(30, 29, 34, .68);
320
+ -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
321
+ box-shadow: 0 14px 36px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .05) inset;
322
+ color: var(--ink); cursor: default; white-space: nowrap;
323
+ }
324
+ .tb-lead { padding: 0 12px 0 11px; color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 500; }
325
+ .seg { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
326
+ .seg button {
327
+ position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
328
+ height: 30px; padding: 0 13px 0 11px; border: 0; border-radius: 8px; background: transparent;
329
+ color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 600;
330
+ transition: color var(--dur-fast) var(--ease-smooth-out);
331
+ }
332
+ .seg button svg { width: 15px; height: 15px; flex: none; }
333
+ .seg button:hover { color: rgba(242, 241, 239, .86); }
334
+ .seg button[aria-checked="true"] { color: var(--ink); }
335
+ .seg-ind {
336
+ position: absolute; top: 3px; left: 0; z-index: 0; width: 0; height: 30px; border-radius: 8px;
337
+ background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .115));
338
+ box-shadow: 0 1px 0 rgba(255, 255, 255, .13) inset, 0 2px 7px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .22);
339
+ transition: transform var(--dur-fast) var(--ease-smooth-out), width var(--dur-fast) var(--ease-smooth-out);
340
+ pointer-events: none; opacity: 0;
341
+ }
342
+ .seg.measured .seg-ind { opacity: 1; }
343
+ /* Before the indicator is measured, the picked segment carries the raised fill itself. */
344
+ .seg:not(.measured) button[aria-checked="true"] { background: rgba(255, 255, 255, .15); }
345
+ .tb-sep { width: 1px; height: 20px; margin: 0 5px; background: rgba(255, 255, 255, .1); }
346
+ .tb-quiet { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(242, 241, 239, .72); font-size: 13.5px; font-weight: 600; }
347
+ .tb-quiet:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
348
+ .tb-confirm { display: inline-flex; align-items: center; gap: 4px; }
349
+ .tb-ask { padding: 0 6px 0 4px; font-size: 13.5px; font-weight: 600; }
350
+ .tb-discard { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; }
351
+ .tb-discard:hover { background: #e43a57; }
190
352
 
191
353
  /* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */
192
354
  .coach {
@@ -210,16 +372,18 @@ kbd {
210
372
  @keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }
211
373
 
212
374
  @media (max-width: 520px) {
213
- .fab { right: 16px; bottom: 16px; padding: 13px 18px; font-size: 16px; }
214
- .card { right: 16px; bottom: 84px; }
215
- .vr.nobutton .card { bottom: 16px; }
216
- .toolbar { bottom: 16px; max-width: calc(100vw - 24px); overflow-x: auto; }
217
- .toolbar button { padding: 8px 11px; font-size: 14px; }
375
+ .vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }
376
+ .fab { padding: 13px 18px; font-size: 16px; }
377
+ .tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }
378
+ .tb-lead { display: none; }
379
+ .seg button { padding: 0 9px; }
218
380
  .coach { width: 260px; }
219
381
  }
220
382
  @media (prefers-reduced-motion: reduce) {
221
383
  .card { animation: none; }
222
- .fab { transition: none; }
384
+ .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm { transition: none; }
385
+ .card.busy .head::after { animation: none; }
386
+ .fab, .fab.gliding { transition: none; }
223
387
  .coach .loop { animation: none; stroke-dashoffset: 0; }
224
388
  .coach .hold { animation: none; opacity: .9; }
225
389
  }
@@ -40,6 +40,7 @@ export declare class ReportWidget {
40
40
  private frozen;
41
41
  private job;
42
42
  private sending;
43
+ /** Which leg a failed send stopped at: nothing reached the server, a file, or the replay. */
43
44
  private error;
44
45
  private result;
45
46
  private notify;
@@ -47,11 +48,45 @@ export declare class ReportWidget {
47
48
  private includedOpen;
48
49
  private recordingBind;
49
50
  private bindRefused;
50
- /** The note input the reporter is in (or just drew); others with no text fold away. */
51
- private noteOpen;
51
+ /** The reporter's own word for it (vt-8020 D11); null until they pick one. */
52
+ private kind;
53
+ /** The marks that existed when this marking pass began: Cancel keeps exactly these (vt-8020 D12). */
54
+ private passKeys;
55
+ /** Cancel asked "Discard N marks?" and waits for the answer. */
56
+ private confirming;
57
+ /** The corner the card is parked in once marking has moved it; null = its anchored place. */
58
+ private parked;
59
+ /** The insets marking parks the card with, read where it rested when marking started (insetsAt). */
60
+ private parkInsets;
61
+ /** The corner the button docks in (drag.ts); the card rests beside it and marking parks it from there. */
62
+ private dock;
63
+ private size;
64
+ private techOpen;
65
+ /** A press on the button: it becomes a drag once it travels DRAG_THRESHOLD; `grab` is where the pointer holds it. */
66
+ private fabDrag;
67
+ /** The click that ends a drag is the drop, not a press of the button. */
68
+ private swallowClick;
69
+ /** The button's glide to its new corner, while it runs. */
70
+ private glide;
71
+ /** The reporter's attachments (vt-8020 D9), in the order added, and the reason the last refused one got. */
72
+ private files;
73
+ private fileRefusal;
74
+ private pastes;
75
+ private readonly chips;
76
+ /** Swaps this widget for the recorder pill; set only for a linked member (setRecordSwitch). */
77
+ private recordSwitch;
78
+ private menu;
79
+ /** The reporter session the host's signed token was traded for (vt-8020 D4), and that token. */
80
+ private session;
81
+ private sessionToken;
82
+ /** The vitrinka member this browser is linked to (vt-8020 D3), read with the link's own token. */
83
+ private member;
84
+ private mine;
85
+ private linkFlow;
52
86
  private drawing;
53
87
  private readonly offs;
54
88
  private readonly pins;
89
+ private readonly lines;
55
90
  /** Per hide mark: the page nodes it covered when drawn (they are blanked in the capture). */
56
91
  private readonly hideIds;
57
92
  /** Native dialogs in the order they opened (seeded with those already open, in DOM order). */
@@ -78,16 +113,76 @@ export declare class ReportWidget {
78
113
  setLocale(raw: string | null | undefined): void;
79
114
  setButton(on: boolean): void;
80
115
  setOpenSelector(sel: string | null): void;
116
+ /**
117
+ * The way to the recorder pill (vt-8020 D8): element.ts sets it only for a
118
+ * linked vitrinka member — the menu then offers "Record" — and clears it
119
+ * with null; reporters never get one.
120
+ */
121
+ setRecordSwitch(fn: (() => void) | null): void;
81
122
  identify(input: IdentifyInput): void;
82
123
  unmount(): void;
83
124
  private bind;
84
125
  private show;
126
+ private target;
127
+ private toggleMenu;
128
+ /** The host's signed token traded once for a reporter session; renewed only when it is about to lapse. Answers the session in force. */
129
+ private refreshWho;
130
+ /**
131
+ * identify() or the page-wide identity moved: a session and a list read for
132
+ * the previous person never stay on screen for the next one, and an open My
133
+ * reports reloads for whoever is here now.
134
+ */
135
+ private whoChanged;
136
+ private refreshMember;
137
+ private openReports;
138
+ private loadReports;
139
+ /** My reports; a 401 means the reporter session lapsed or the host's key rotated: trade the token again, then ask once more. */
140
+ private listMineRenewing;
141
+ /** The pill's member link (vt-8020 D3): a code approved in vitrinka mints this browser's own recorder key. */
142
+ private startLinkFlow;
143
+ /** "2 h ago" in the widget's language. */
144
+ private ago;
145
+ /** One list row: a title, a quiet state chip and its age; a link when the server minted an address. */
146
+ private row;
85
147
  private who;
148
+ /** The signed token of the person here now; '' for an asserted or anonymous reporter. */
149
+ private whoToken;
86
150
  private stopBindListener;
87
151
  private startRecordingBind;
88
152
  private stopRecordingBind;
153
+ /** Files join while the report is being written — not while it is on its way (Retry sends it as it was). */
154
+ private canAttach;
155
+ private caps;
156
+ private addFiles;
157
+ private removeFile;
158
+ /** One chip per file, built once; paint() writes their sizes and labels. */
159
+ private renderFiles;
160
+ /** The one line a refused file gets: the cap it broke, by name. */
161
+ private refusalText;
162
+ private fabDown;
163
+ /** Past the threshold the press is a drag: the button rides the pointer, inside the viewport. */
164
+ private fabMove;
165
+ /** A drop docks the button in the nearest corner (a cancelled drag goes home); a press that never travelled stays a click. */
166
+ private fabUp;
167
+ /** Docks the button in `c` and remembers it; it glides there from `from` (the drop point, else where it was). */
168
+ private moveDock;
89
169
  private startMarking;
170
+ /** Leaves marking; the card stays where marking parked it until it closes (it never jumps back). */
90
171
  private endMarking;
172
+ /** Cancel (vt-8020 D12): leave marking and drop this pass's marks — asking first when there are any. */
173
+ private cancelMarking;
174
+ /**
175
+ * The card's live insets in `corner` (the nearer side, and the bottom or the top — never above the
176
+ * marking bar's band), the far side at the default: `cornerRect(corner)` is then exactly where it is.
177
+ */
178
+ private insetsAt;
179
+ /** The card's box as painted (the size setting scales it, styles: `--vr-scale`) and the insets marking parks it with. */
180
+ private frame;
181
+ /** Parks the card in the corner that covers none of the marks; it glides there (styles: `.card.parked`). */
182
+ private placeCard;
183
+ private unpark;
184
+ /** The segmented control's indicator under the picked shape. */
185
+ private placeSeg;
91
186
  private onChrome;
92
187
  private pointerDown;
93
188
  private pointerMove;
@@ -102,10 +197,21 @@ export declare class ReportWidget {
102
197
  private placeCoach;
103
198
  private shapeNodes;
104
199
  private renderMarks;
105
- /** Pin numbers, positions and which notes show; text in place (the locale may have changed). */
200
+ /** Pin numbers and positions, line numbers and labels; text in place (the locale may have changed). */
106
201
  private renderPins;
107
202
  private envelope;
203
+ /** The words the report goes with: the description, else the first mark's note — either one is enough to send. */
204
+ private words;
108
205
  private send;
109
206
  private includedItems;
207
+ /** Who the face says you are (vt-8020 D2): the host's person, then the linked member; never a guess. */
208
+ private paintAccount;
209
+ private paintReports;
210
+ private paintRecents;
211
+ private paintLink;
212
+ /** 📎, the picker's types, the tray of chips and the refusal line — the tray shows only while there is something in it. */
213
+ private paintFiles;
214
+ /** Size and technical details (vt-8020 D9); the size indicator is measured once the pane shows. */
215
+ private paintSettings;
110
216
  private paint;
111
217
  }