decklight 0.6.0 → 0.7.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 +16 -8
- package/SPEC.md +166 -10
- package/cli/agents.mjs +52 -2
- package/cli/banner.mjs +125 -0
- package/cli/bundle.mjs +14 -4
- package/cli/{rec.mjs → cast.mjs} +25 -8
- package/cli/comments.mjs +389 -0
- package/cli/commit-flow.mjs +157 -0
- package/cli/commit-message.mjs +125 -0
- package/cli/decklight.mjs +88 -25
- package/cli/dev.mjs +159 -13
- package/cli/edit.mjs +927 -39
- package/cli/git-tree.mjs +87 -0
- package/cli/git.mjs +22 -0
- package/cli/init.mjs +37 -5
- package/cli/port-conflict.mjs +187 -16
- package/cli/publish.mjs +15 -40
- package/cli/record.mjs +154 -0
- package/cli/review-remote.mjs +330 -0
- package/cli/review-store.mjs +107 -0
- package/cli/review-submit.mjs +292 -0
- package/cli/review.mjs +361 -0
- package/cli/serve.mjs +36 -1
- package/cli/skill-content.mjs +3 -1
- package/cli/units.mjs +2 -2
- package/cli/util.mjs +59 -0
- package/dist/build-info.json +1 -0
- package/dist/decklight.css +244 -1
- package/dist/decklight.js +102 -79
- package/dist/decklight.js.map +4 -4
- package/docs/architecture.svg +7 -0
- package/package.json +2 -1
- package/tools/args.mjs +20 -0
- package/tools/deck-html.mjs +50 -0
- package/tools/elevenlabs-tts.mjs +1 -1
- package/tools/lipsync-server.mjs +64 -2
- package/tools/lipsync.mjs +40 -24
- package/tools/local-voice.mjs +170 -16
- package/tools/publish-voices.mjs +78 -18
- package/tools/recording-impact.mjs +110 -0
- package/tools/review-anchor.mjs +180 -0
- package/tools/test-impact.mjs +259 -0
- package/tools/tts-engines.mjs +26 -4
- package/tools/tts-setup.mjs +1 -1
- package/tools/video.mjs +15 -3
- package/tools/voiceover-server.mjs +167 -7
- package/tools/voiceover.mjs +30 -1
package/cli/serve.mjs
CHANGED
|
@@ -207,7 +207,42 @@ export function staticFiles(root, { index = '/index.html', html: rewriteHtml = n
|
|
|
207
207
|
}
|
|
208
208
|
let body = readFileSync(file);
|
|
209
209
|
if (rewriteHtml && type === MIME['.html']) body = Buffer.from(rewriteHtml(body.toString('utf8'), file), 'utf8');
|
|
210
|
-
|
|
210
|
+
const headers = {
|
|
211
|
+
'content-type': type ?? 'application/octet-stream',
|
|
212
|
+
'cache-control': 'no-cache',
|
|
213
|
+
// Media elements are the reason both of these exist. A browser asks for
|
|
214
|
+
// audio and video with `Range: bytes=…`, and a server that answers 200,
|
|
215
|
+
// chunked, with no Content-Length gives the media stack a stream of
|
|
216
|
+
// unknown size: duration reads Infinity, seeking is impossible, and
|
|
217
|
+
// real Chrome — stricter than a bare fetch — can refuse the source
|
|
218
|
+
// outright, which surfaced as "no narration for slide 1" pointing at a
|
|
219
|
+
// file that was sitting right there.
|
|
220
|
+
'accept-ranges': 'bytes',
|
|
221
|
+
'content-length': body.length,
|
|
222
|
+
};
|
|
223
|
+
const range = /^bytes=(\d*)-(\d*)$/.exec(req.headers.range ?? '');
|
|
224
|
+
if (range && (range[1] || range[2])) {
|
|
225
|
+
// One range, which is all a media element ever sends. Malformed or
|
|
226
|
+
// multipart ranges fall through to the plain 200 — RFC 7233 allows
|
|
227
|
+
// ignoring Range entirely, so partial support must never invent a 416
|
|
228
|
+
// for a request a full response satisfies.
|
|
229
|
+
const start = range[1] ? Number(range[1]) : Math.max(0, body.length - Number(range[2]));
|
|
230
|
+
const end = range[1] && range[2] ? Math.min(Number(range[2]), body.length - 1) : body.length - 1;
|
|
231
|
+
if (start <= end && start < body.length) {
|
|
232
|
+
const slice = body.subarray(start, end + 1);
|
|
233
|
+
res.writeHead(206, {
|
|
234
|
+
...headers,
|
|
235
|
+
'content-length': slice.length,
|
|
236
|
+
'content-range': `bytes ${start}-${end}/${body.length}`,
|
|
237
|
+
});
|
|
238
|
+
res.end(slice);
|
|
239
|
+
return true;
|
|
240
|
+
}
|
|
241
|
+
res.writeHead(416, { 'content-range': `bytes */${body.length}` });
|
|
242
|
+
res.end();
|
|
243
|
+
return true;
|
|
244
|
+
}
|
|
245
|
+
res.writeHead(200, headers);
|
|
211
246
|
res.end(body);
|
|
212
247
|
return true;
|
|
213
248
|
};
|
package/cli/skill-content.mjs
CHANGED
|
@@ -72,10 +72,12 @@ with a build and notes already wired):
|
|
|
72
72
|
|
|
73
73
|
**CLI** (\`npx decklight@latest <command>\`, no install needed):
|
|
74
74
|
- \`decklight author deck.html\` — the whole authoring loop: serve with live reload; **E** in the browser edits speaker notes back into the file
|
|
75
|
-
- \`decklight
|
|
75
|
+
- \`decklight cast script.term.yaml\` — record a truthful terminal cast in a real PTY, for \`<div class="terminal">\` (this records a TERMINAL; \`decklight record\` records the author's voice)
|
|
76
76
|
- \`decklight bundle deck.html --themes all\` — flatten into one self-contained file to hand off or publish
|
|
77
77
|
- \`decklight pdf deck.html\` — render every slide to a PDF, and report the ones that overflow
|
|
78
78
|
- \`decklight tts\` — live voice bridge so the deck can narrate itself on the fly
|
|
79
|
+
- \`decklight record deck.html\` — record the narration in the author's OWN voice: the deck shows one \`⟨CLICK⟩\` beat at a time and \`→\` ends it, writing \`slide-NN-KK.wav\` per beat so the recording paces the builds (play it back with \`narration: { files: 'voiceover', ext: 'wav', segments: true }\`)
|
|
80
|
+
- \`decklight review deck.html\` / \`decklight comments deck.html\` — reviewer comments on slides, stored append-only in \`<deck>.review.jsonl\` and carried by git; a comment records the slide's title and a fingerprint of its text, so it finds its slide again after the deck moves and says so when the slide changed or is gone; \`decklight review submit deck.html\` pushes the review to a \`review/<you>-<date>\` branch (one file, never the reviewer's own commits; \`--pr\` opens the pull request), and the author hears about waiting reviews at \`decklight author\` startup, in the M overlay, and via \`decklight comments deck.html --incoming\`
|
|
79
81
|
- \`decklight skills\` — regenerate this skill after upgrading Decklight
|
|
80
82
|
|
|
81
83
|
**Render the deck before you call a slide done.** Content that exceeds a slide
|
package/cli/units.mjs
CHANGED
|
@@ -111,7 +111,7 @@ export const UNIT_TYPES = {
|
|
|
111
111
|
dir: 'engines',
|
|
112
112
|
single: 'mjs',
|
|
113
113
|
label: 'speech engine',
|
|
114
|
-
use: 'decklight tts --engine <name>, then the
|
|
114
|
+
use: 'decklight tts --engine <name>, then the V picker',
|
|
115
115
|
example: 'azure-tts',
|
|
116
116
|
required: ['apiVersion', 'capability'],
|
|
117
117
|
pinned: true,
|
|
@@ -144,7 +144,7 @@ export const UNIT_TYPES = {
|
|
|
144
144
|
single: 'json',
|
|
145
145
|
reference: true,
|
|
146
146
|
label: 'voice',
|
|
147
|
-
use: 'the
|
|
147
|
+
use: 'the V picker, author mode',
|
|
148
148
|
example: 'narrator-anna',
|
|
149
149
|
note: 'A voice is a REFERENCE — which engine, which of its voices. Installing\n one writes a pointer and fetches nothing, so this is the one add that works\n offline; speaking through it still needs that engine and your own credential.',
|
|
150
150
|
required: ['engine', 'voiceId'],
|
package/cli/util.mjs
CHANGED
|
@@ -87,4 +87,63 @@ export async function runMain(cmd, fn) {
|
|
|
87
87
|
// the first time a deck highlights language-html, which turned the old
|
|
88
88
|
// escape into a lazy SyntaxError. The unicode escape is valid in strings,
|
|
89
89
|
// templates, JSON, and regexes with or without the u flag.
|
|
90
|
+
/**
|
|
91
|
+
* The two recorders take inputs as different as their outputs — `cast` a YAML
|
|
92
|
+
* command script, `record` a deck — and the names invite the mix-up: they
|
|
93
|
+
* differ by two letters and both mean "record".
|
|
94
|
+
*
|
|
95
|
+
* Getting it wrong used to be silent in the direction that mattered.
|
|
96
|
+
* `decklight record demo.term.yaml` started a server, printed a URL and opened
|
|
97
|
+
* a browser on a YAML file: no error anywhere, just a page that would never be
|
|
98
|
+
* a deck. (The other way at least failed, if unhelpfully — `script has no
|
|
99
|
+
* steps`, said of a perfectly good deck.)
|
|
100
|
+
*
|
|
101
|
+
* Returns the refusal, or null when the file is the right kind or a kind
|
|
102
|
+
* neither command claims — an unusual extension is not evidence of a mistake,
|
|
103
|
+
* and refusing one would break a deck somebody named `talk.htm5`.
|
|
104
|
+
*/
|
|
105
|
+
export function wrongRecorder(cmd, file) {
|
|
106
|
+
const name = String(file ?? '');
|
|
107
|
+
const isScript = /\.ya?ml$/i.test(name);
|
|
108
|
+
const isDeck = /\.(html?|decklight)$/i.test(name);
|
|
109
|
+
const wrong = (cmd === 'record' && isScript) || (cmd === 'cast' && isDeck);
|
|
110
|
+
if (!wrong) return null;
|
|
111
|
+
const what = isScript ? 'a terminal script, not a deck' : 'a deck, not a terminal script';
|
|
112
|
+
// Both are named, because the whole reason this is worth refusing is that
|
|
113
|
+
// either could have been meant — and the suggested line is the one they
|
|
114
|
+
// typed, repaired, so it can be copied rather than reconstructed.
|
|
115
|
+
return `${name} is ${what}.\n`
|
|
116
|
+
+ ' decklight cast records a TERMINAL — a YAML command script, replayed in the deck\n'
|
|
117
|
+
+ " decklight record records YOU — your voice narrating a deck's notes\n\n"
|
|
118
|
+
+ ` did you mean: decklight ${isScript ? 'cast' : 'record'} ${name}`;
|
|
119
|
+
}
|
|
120
|
+
|
|
90
121
|
export const scriptSafe = (s) => s.replace(/<\/script/gi, '<\\/script').replace(/<!--/g, '<\\u0021--');
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The banner's version, with the build's provenance when the build recorded
|
|
125
|
+
* any (dist/build-info.json, written by build.mjs from `git describe`).
|
|
126
|
+
*
|
|
127
|
+
* `0.6.0+30.gd3307f4` — semver build-metadata syntax, so anything matching
|
|
128
|
+
* "decklight 0.6.0" still matches, and the "+30" answers the question three
|
|
129
|
+
* identically-named sandbox repacks in one afternoon could not: WHICH 0.6.0
|
|
130
|
+
* is this? A release build (zero commits past the tag, clean) shows the
|
|
131
|
+
* plain version — the tag is the whole truth there. A dirty tree says so,
|
|
132
|
+
* because a build nobody can reproduce should not look like one somebody can.
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* `git describe --tags --long --dirty=.dirty` → {tag, commits, commit, dirty},
|
|
136
|
+
* or null for anything that does not parse (no tags, not a repo, garbage).
|
|
137
|
+
* Shared by build.mjs (stamping a tarball) and the banner's live path (a
|
|
138
|
+
* checkout), so the two can never learn different spellings.
|
|
139
|
+
*/
|
|
140
|
+
export function parseDescribe(desc) {
|
|
141
|
+
const m = /^v?(.+)-(\d+)-g([0-9a-f]+?)(\.dirty)?$/.exec(String(desc ?? '').trim());
|
|
142
|
+
return m ? { tag: m[1], commits: Number(m[2]), commit: m[3], dirty: !!m[4] } : null;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function versionLine(version, info) {
|
|
146
|
+
if (!info || !Number.isInteger(info.commits) || !info.commit) return `decklight ${version}`;
|
|
147
|
+
if (info.commits === 0 && !info.dirty) return `decklight ${version}`;
|
|
148
|
+
return `decklight ${version}+${info.commits}.g${info.commit}${info.dirty ? '.dirty' : ''}`;
|
|
149
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"tag":"0.7.0","commits":0,"commit":"6575588","dirty":false}
|
package/dist/decklight.css
CHANGED
|
@@ -1060,6 +1060,40 @@
|
|
|
1060
1060
|
messages top-left, so this can be persistent without ever covering them.
|
|
1061
1061
|
Quiet by construction — it reports rather than asks, and nothing about a
|
|
1062
1062
|
background job should compete with the slide. */
|
|
1063
|
+
/* The commit chip (SPEC PRESENTING) — "this is not committed", said once.
|
|
1064
|
+
Bottom-RIGHT, not centre: the agent chip owns the centre and the two can be
|
|
1065
|
+
up at the same time (an agent edit is exactly what leaves work uncommitted).
|
|
1066
|
+
Clickable, because a statement you can act on should be actionable where it
|
|
1067
|
+
is, and the deck's own keyboard help is one key away. */
|
|
1068
|
+
.decklight-commit-chip {
|
|
1069
|
+
position: absolute;
|
|
1070
|
+
right: 16px;
|
|
1071
|
+
bottom: 16px;
|
|
1072
|
+
z-index: 42;
|
|
1073
|
+
background: rgba(0, 0, 0, .72);
|
|
1074
|
+
color: #fff;
|
|
1075
|
+
font: 500 13px/1 var(--font-mono, monospace);
|
|
1076
|
+
font-variant-numeric: tabular-nums;
|
|
1077
|
+
padding: 7px 12px;
|
|
1078
|
+
border-radius: 999px;
|
|
1079
|
+
cursor: pointer;
|
|
1080
|
+
border: 1px solid rgba(255, 255, 255, .16);
|
|
1081
|
+
}
|
|
1082
|
+
.decklight-commit-chip:hover { background: rgba(0, 0, 0, .85); }
|
|
1083
|
+
.decklight-commit-chip:focus-visible { outline: 2px solid var(--accent, #6af); outline-offset: 2px; }
|
|
1084
|
+
|
|
1085
|
+
/* The commit window. Shares the narration card chrome like every other
|
|
1086
|
+
overlay; only the composer's own rows are new. */
|
|
1087
|
+
.decklight-commit .narr-card { width: min(520px, 88vw); }
|
|
1088
|
+
.decklight-commit .cm-what { padding: 2px 12px 8px; font-size: 12px; opacity: .6; }
|
|
1089
|
+
.decklight-commit .cm-input { width: calc(100% - 24px); margin: 0 12px 8px; resize: vertical; }
|
|
1090
|
+
.decklight-commit .cm-row { display: flex; gap: 8px; padding: 0 12px 4px; }
|
|
1091
|
+
.decklight-commit .cm-row .narr-row { flex: 1; text-align: center; border-radius: 8px; }
|
|
1092
|
+
.decklight-commit .cm-go { background: rgba(122, 214, 163, .16); color: #7cd6a3; }
|
|
1093
|
+
.decklight-commit .cm-go:hover { background: rgba(122, 214, 163, .26); }
|
|
1094
|
+
.decklight-commit .cm-write { background: rgba(255, 255, 255, .08); }
|
|
1095
|
+
.decklight-commit .cm-write:hover { background: rgba(255, 255, 255, .16); }
|
|
1096
|
+
|
|
1063
1097
|
.decklight-agent-chip {
|
|
1064
1098
|
position: absolute;
|
|
1065
1099
|
left: 50%;
|
|
@@ -1252,6 +1286,9 @@
|
|
|
1252
1286
|
padding: 10px 12px 2px;
|
|
1253
1287
|
}
|
|
1254
1288
|
.decklight-narr .narr-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
|
|
1289
|
+
.decklight-narr .narr-group { margin: 10px 12px 2px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .68em; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
|
|
1290
|
+
.decklight-narr .narr-group:first-of-type { border-top: none; padding-top: 0; }
|
|
1291
|
+
.decklight-narr .narr-row.narr-toggle { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0 0 8px 8px; opacity: .75; }
|
|
1255
1292
|
.decklight-narr .narr-row-label { flex: 1 1 auto; min-width: 0; }
|
|
1256
1293
|
.decklight-narr .narr-prev-btn {
|
|
1257
1294
|
flex: none;
|
|
@@ -1301,7 +1338,19 @@
|
|
|
1301
1338
|
outline: none;
|
|
1302
1339
|
}
|
|
1303
1340
|
|
|
1304
|
-
/*
|
|
1341
|
+
/* The voice filter sits above the preview sentence and holds the keyboard from
|
|
1342
|
+
the moment the view opens: a say roster is ~184 names, and looking for one is
|
|
1343
|
+
why anybody is on this screen. It is the only input here that gets focus
|
|
1344
|
+
without being clicked, so it is the only one that shows a focus ring — a
|
|
1345
|
+
caret blinking in an unmarked box is how you get somebody typing a voice name
|
|
1346
|
+
into the preview sentence. */
|
|
1347
|
+
.decklight-narr .narr-filter-row { margin-top: 2px; }
|
|
1348
|
+
.decklight-narr .narr-filter:focus {
|
|
1349
|
+
border-color: rgba(255, 255, 255, .42);
|
|
1350
|
+
background: rgba(255, 255, 255, .1);
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/* offline recording (V → Record… → synthesized) — shares .decklight-narr's card chrome */
|
|
1305
1354
|
.decklight-record .narr-card { width: min(400px, 82vw); }
|
|
1306
1355
|
.decklight-record .rec-line { padding: 4px 12px; opacity: .85; }
|
|
1307
1356
|
.decklight-record .rec-hint { padding: 10px 12px 2px; opacity: .5; font-size: 12px; }
|
|
@@ -1318,6 +1367,200 @@
|
|
|
1318
1367
|
transition: width 200ms ease;
|
|
1319
1368
|
}
|
|
1320
1369
|
|
|
1370
|
+
/* live recording (V → Record… → your voice) — the card is a TELEPROMPTER, so it is wider than the
|
|
1371
|
+
synthesized one and the line you are reading is the largest thing on it. Everything
|
|
1372
|
+
else on the card is chrome around that one sentence. */
|
|
1373
|
+
.decklight-mic .narr-card { width: min(640px, 90vw); }
|
|
1374
|
+
.decklight-mic .rec-where { font-size: 12px; opacity: .55; letter-spacing: .04em; }
|
|
1375
|
+
.decklight-mic .rec-read {
|
|
1376
|
+
padding: 10px 12px 12px;
|
|
1377
|
+
font-size: 20px;
|
|
1378
|
+
line-height: 1.45;
|
|
1379
|
+
text-wrap: pretty;
|
|
1380
|
+
max-height: 42vh;
|
|
1381
|
+
overflow-y: auto;
|
|
1382
|
+
}
|
|
1383
|
+
.decklight-mic .rec-note { font-size: 12px; opacity: .7; }
|
|
1384
|
+
/* Something you need to act on before you start reading — the amber the deck
|
|
1385
|
+
uses everywhere for "this will not do what you expect". */
|
|
1386
|
+
.decklight-record .rec-warn {
|
|
1387
|
+
color: #ffcf8b;
|
|
1388
|
+
background: rgba(255, 207, 139, .1);
|
|
1389
|
+
border-radius: 6px;
|
|
1390
|
+
margin: 4px 12px;
|
|
1391
|
+
padding: 7px 10px;
|
|
1392
|
+
font-size: 13px;
|
|
1393
|
+
opacity: 1;
|
|
1394
|
+
}
|
|
1395
|
+
.decklight-record .rec-warn code { font-size: .92em; }
|
|
1396
|
+
|
|
1397
|
+
/* the folder a recording goes into — a field, not a label, because a proposal
|
|
1398
|
+
you cannot correct is a decision made somewhere else */
|
|
1399
|
+
.decklight-record .rec-folder label {
|
|
1400
|
+
display: flex;
|
|
1401
|
+
align-items: center;
|
|
1402
|
+
gap: 8px;
|
|
1403
|
+
font-size: 12px;
|
|
1404
|
+
opacity: .75;
|
|
1405
|
+
}
|
|
1406
|
+
.decklight-record .rec-dir {
|
|
1407
|
+
flex: 1;
|
|
1408
|
+
min-width: 0;
|
|
1409
|
+
padding: 5px 8px;
|
|
1410
|
+
border-radius: 6px;
|
|
1411
|
+
border: 1px solid rgba(255, 255, 255, .18);
|
|
1412
|
+
background: rgba(255, 255, 255, .07);
|
|
1413
|
+
color: inherit;
|
|
1414
|
+
font: inherit;
|
|
1415
|
+
font-size: 13px;
|
|
1416
|
+
outline: none;
|
|
1417
|
+
}
|
|
1418
|
+
.decklight-record .rec-dir:focus { border-color: var(--accent, #6af); }
|
|
1419
|
+
.decklight-record .rec-dir.rec-bad { border-color: #e5533d; }
|
|
1420
|
+
.decklight-mic kbd {
|
|
1421
|
+
padding: 1px 5px;
|
|
1422
|
+
border: 1px solid rgba(255, 255, 255, .25);
|
|
1423
|
+
border-radius: 4px;
|
|
1424
|
+
font-size: .9em;
|
|
1425
|
+
}
|
|
1426
|
+
/* the level meter — the answer to "is it even hearing me", before twenty
|
|
1427
|
+
slides are recorded silent rather than after */
|
|
1428
|
+
.decklight-mic .rec-level {
|
|
1429
|
+
height: 8px;
|
|
1430
|
+
margin: 2px 12px 4px;
|
|
1431
|
+
border-radius: 4px;
|
|
1432
|
+
background: rgba(255, 255, 255, .12);
|
|
1433
|
+
overflow: hidden;
|
|
1434
|
+
}
|
|
1435
|
+
.decklight-mic .rec-level-fill {
|
|
1436
|
+
height: 100%;
|
|
1437
|
+
background: var(--accent, #6af);
|
|
1438
|
+
transition: width 90ms linear;
|
|
1439
|
+
}
|
|
1440
|
+
.decklight-mic .rec-level.hot .rec-level-fill { background: #e5533d; }
|
|
1441
|
+
|
|
1442
|
+
/* "Use this track" — the offer that spares you pasting a config line. Shares
|
|
1443
|
+
.narr-row's chrome; the two states it can reach are the two things worth
|
|
1444
|
+
saying afterwards, so neither is a toast that scrolls away. */
|
|
1445
|
+
.decklight-record .rec-use { margin-top: 6px; cursor: pointer; }
|
|
1446
|
+
.decklight-record .rec-use.rec-done {
|
|
1447
|
+
color: #7cd6a3;
|
|
1448
|
+
background: rgba(124, 214, 163, .12);
|
|
1449
|
+
cursor: default;
|
|
1450
|
+
}
|
|
1451
|
+
.decklight-record .rec-use.rec-failed {
|
|
1452
|
+
color: #ffb4a2;
|
|
1453
|
+
background: rgba(229, 83, 61, .12);
|
|
1454
|
+
cursor: default;
|
|
1455
|
+
font-size: 13px;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
/* review comments (M) — SPEC REVIEW. Shares the narration card chrome; the
|
|
1459
|
+
list is rows of somebody else's prose, so it reads like a thread rather
|
|
1460
|
+
than a picker. */
|
|
1461
|
+
/* Review is a NON-MODAL panel: it sits beside the slide — docked to an edge or
|
|
1462
|
+
floating — never a dimming modal over it, so the content stays visible and the
|
|
1463
|
+
deck stays navigable. The frame is click-through; only the card catches the
|
|
1464
|
+
pointer, and the stage reflows away from a docked gutter via --dock-* (engine
|
|
1465
|
+
rescale). */
|
|
1466
|
+
.decklight-review { background: none; backdrop-filter: none; display: block; pointer-events: none; }
|
|
1467
|
+
.decklight-review .narr-card { position: absolute; pointer-events: auto; width: min(560px, 88vw); }
|
|
1468
|
+
|
|
1469
|
+
/* float — positioned by JS at left/top, dragged by its header */
|
|
1470
|
+
.decklight-review[data-dock="float"] .narr-card {
|
|
1471
|
+
width: min(460px, 88vw);
|
|
1472
|
+
max-height: 78vh;
|
|
1473
|
+
box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
|
|
1474
|
+
}
|
|
1475
|
+
/* left / right — a full-height column the stage reflows away from. border-box
|
|
1476
|
+
so the card is exactly the gutter the stage was told to leave: content-box
|
|
1477
|
+
added the 14px padding twice and the panel overhung the slide by 28px. */
|
|
1478
|
+
.decklight-review[data-dock="left"] .narr-card,
|
|
1479
|
+
.decklight-review[data-dock="right"] .narr-card {
|
|
1480
|
+
box-sizing: border-box;
|
|
1481
|
+
top: 0; bottom: 0; height: 100%;
|
|
1482
|
+
width: var(--dock-size, 360px);
|
|
1483
|
+
max-height: none; border-radius: 0;
|
|
1484
|
+
}
|
|
1485
|
+
.decklight-review[data-dock="right"] .narr-card { right: 0; box-shadow: -12px 0 40px rgba(0, 0, 0, .5); }
|
|
1486
|
+
.decklight-review[data-dock="left"] .narr-card { left: 0; box-shadow: 12px 0 40px rgba(0, 0, 0, .5); }
|
|
1487
|
+
/* bottom — a full-width tray */
|
|
1488
|
+
.decklight-review[data-dock="bottom"] .narr-card {
|
|
1489
|
+
box-sizing: border-box;
|
|
1490
|
+
left: 0; right: 0; bottom: 0;
|
|
1491
|
+
width: auto; height: var(--dock-size, 320px);
|
|
1492
|
+
max-height: none; border-radius: 0;
|
|
1493
|
+
box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
/* the dock control lives in the header, which becomes a flex row */
|
|
1497
|
+
.decklight-review .narr-head { display: flex; align-items: center; gap: 8px; opacity: 1; }
|
|
1498
|
+
.decklight-review .rv-heading { flex: 1; opacity: .55; }
|
|
1499
|
+
.decklight-review .rv-dock-ctl { display: flex; gap: 2px; pointer-events: auto; }
|
|
1500
|
+
.decklight-review .rv-dock-btn {
|
|
1501
|
+
font-size: 13px; line-height: 1; padding: 3px 5px;
|
|
1502
|
+
border: 0; border-radius: 5px;
|
|
1503
|
+
background: transparent; color: inherit;
|
|
1504
|
+
opacity: .5; cursor: pointer;
|
|
1505
|
+
}
|
|
1506
|
+
.decklight-review .rv-dock-btn:hover { opacity: .9; background: rgba(255, 255, 255, .12); }
|
|
1507
|
+
.decklight-review .rv-dock-on { opacity: 1; background: rgba(255, 255, 255, .18); }
|
|
1508
|
+
.decklight-review .rv-close { font-size: 16px; margin-left: 2px; }
|
|
1509
|
+
.decklight-review .rv-compose { padding: 4px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
|
|
1510
|
+
.decklight-review .rv-on { font-size: 12px; opacity: .55; margin-bottom: 6px; }
|
|
1511
|
+
.decklight-review .rv-input { width: 100%; resize: vertical; margin-bottom: 6px; }
|
|
1512
|
+
.decklight-review .rv-list { padding: 4px 0; }
|
|
1513
|
+
.decklight-review .rv-none,
|
|
1514
|
+
.decklight-review .rv-skipped { padding: 8px 12px; opacity: .55; font-size: 13px; }
|
|
1515
|
+
.decklight-review .rv-row { padding: 8px 12px; border-radius: 8px; cursor: pointer; }
|
|
1516
|
+
.decklight-review .rv-row.rv-sel { background: rgba(255, 255, 255, .14); }
|
|
1517
|
+
.decklight-review .rv-resolved { opacity: .5; }
|
|
1518
|
+
.decklight-review .rv-head { display: flex; gap: 8px; align-items: baseline; font-size: 12px; opacity: .7; }
|
|
1519
|
+
.decklight-review .rv-slide { color: var(--accent, #6af); }
|
|
1520
|
+
.decklight-review .rv-at { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .8; }
|
|
1521
|
+
.decklight-review .rv-moved::before { content: "("; }
|
|
1522
|
+
.decklight-review .rv-moved::after { content: ")"; }
|
|
1523
|
+
.decklight-review .rv-tick { color: #7cd6a3; margin-left: auto; }
|
|
1524
|
+
.decklight-review .rv-body { margin-top: 3px; white-space: pre-wrap; }
|
|
1525
|
+
.decklight-review .rv-note { margin-top: 4px; font-size: 12px; color: #ffcf8b; }
|
|
1526
|
+
.decklight-review .rv-reply { margin: 4px 0 0 12px; font-size: 13px; opacity: .8; white-space: pre-wrap; }
|
|
1527
|
+
/* Leave a comment (⇧M) — its own card, because writing and reading are
|
|
1528
|
+
different moments. Shares the narration chrome like every other overlay. */
|
|
1529
|
+
.decklight-compose .narr-card { width: min(520px, 88vw); }
|
|
1530
|
+
.decklight-compose .rv-on { padding: 0 12px 6px; font-size: 12px; opacity: .6; }
|
|
1531
|
+
.decklight-compose .rv-input { width: calc(100% - 24px); margin: 0 12px 8px; resize: vertical; }
|
|
1532
|
+
.decklight-compose .rv-send { margin: 0 12px; text-align: center; border-radius: 8px;
|
|
1533
|
+
background: rgba(122, 214, 163, .16); color: #7cd6a3; }
|
|
1534
|
+
.decklight-compose .rv-send:hover { background: rgba(122, 214, 163, .26); }
|
|
1535
|
+
/* what is already said about this slide — context, not a list to work in */
|
|
1536
|
+
.decklight-compose .rv-already { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 6px; }
|
|
1537
|
+
.decklight-compose .rv-said { padding: 4px 12px; font-size: 13px; opacity: .75; white-space: pre-wrap; }
|
|
1538
|
+
|
|
1539
|
+
/* the group heading that names a source — a reviewer's branch, or your own */
|
|
1540
|
+
.decklight-review .rv-src,
|
|
1541
|
+
.decklight-compose .rv-src {
|
|
1542
|
+
padding: 8px 12px 4px;
|
|
1543
|
+
font-size: 11px;
|
|
1544
|
+
text-transform: uppercase;
|
|
1545
|
+
letter-spacing: .06em;
|
|
1546
|
+
opacity: .55;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
/* A review you are finished with. Struck through rather than hidden: the mark
|
|
1550
|
+
is reversible (T again), and its comments stay readable after the fact. */
|
|
1551
|
+
.decklight-review .rv-done { opacity: .45; }
|
|
1552
|
+
.decklight-review .rv-inc-row.rv-done,
|
|
1553
|
+
.decklight-review .rv-row.rv-done .rv-body { text-decoration: line-through; }
|
|
1554
|
+
|
|
1555
|
+
.decklight-review .rv-arm {
|
|
1556
|
+
margin-top: 6px;
|
|
1557
|
+
padding: 6px 8px;
|
|
1558
|
+
border-radius: 6px;
|
|
1559
|
+
background: rgba(255, 207, 139, .12);
|
|
1560
|
+
color: #ffcf8b;
|
|
1561
|
+
font-size: 12px;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1321
1564
|
/* command palette (/) */
|
|
1322
1565
|
.decklight-palette .narr-card { width: min(520px, 86vw); }
|
|
1323
1566
|
.decklight-palette .pal-input {
|