@hypersocial/decks-cli 0.9.27 → 0.9.29

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/src/importer.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { strFromU8, strToU8, unzipSync } from "fflate";
2
+ import { assetTypeForPath } from "./assetTypes.mjs";
2
3
 
3
4
  const ZIP_MAGIC = [0x50, 0x4b, 0x03, 0x04];
4
5
  const TEXT_TYPES = new Set([
@@ -28,51 +29,11 @@ export function titleFromFilename(filename) {
28
29
  .replace(/\b\w/g, (m) => m.toUpperCase());
29
30
  }
30
31
 
32
+ // A zip's file types: the deck's page, then what every route takes (assetTypes.mjs);
33
+ // anything else is hosted as bytes.
31
34
  export function inferContentType(path) {
32
- const ext = path.toLowerCase().split(".").pop() || "";
33
- switch (ext) {
34
- case "html":
35
- case "htm":
36
- return "text/html; charset=utf-8";
37
- case "css":
38
- return "text/css";
39
- case "js":
40
- case "mjs":
41
- return "application/javascript";
42
- case "json":
43
- return "application/json";
44
- case "png":
45
- return "image/png";
46
- case "jpg":
47
- case "jpeg":
48
- return "image/jpeg";
49
- case "gif":
50
- return "image/gif";
51
- case "webp":
52
- return "image/webp";
53
- case "svg":
54
- return "image/svg+xml";
55
- case "ico":
56
- return "image/x-icon";
57
- case "mp4":
58
- return "video/mp4";
59
- case "webm":
60
- return "video/webm";
61
- case "mp3":
62
- return "audio/mpeg";
63
- case "wav":
64
- return "audio/wav";
65
- case "woff":
66
- return "font/woff";
67
- case "woff2":
68
- return "font/woff2";
69
- case "ttf":
70
- return "font/ttf";
71
- case "otf":
72
- return "font/otf";
73
- default:
74
- return "application/octet-stream";
75
- }
35
+ if (/\.html?$/i.test(path)) return "text/html; charset=utf-8";
36
+ return assetTypeForPath(path) ?? "application/octet-stream";
76
37
  }
77
38
 
78
39
  export function bytesFromText(text) {
package/src/opening.mjs CHANGED
@@ -113,7 +113,7 @@ if(self!==top||/[?&](thumb|export)\\b/.test(location.search))return;
113
113
  function go(){if(d.readyState==="loading")return;d.removeEventListener("readystatechange",go);
114
114
  var b=d.body,p=d.querySelector('script[src*="/player/v"][src*="/player.js"]');
115
115
  if(!b||!p||d.getElementById("hd-open")||b.hasAttribute("data-hd-ready")||d.documentElement.hasAttribute("data-hyperdecks-thumb"))return;
116
- var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")==="hide"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
116
+ var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")!=="show"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
117
117
  var o=d.createElement("div"),img=!mute&&p.getAttribute("data-presenter")!=="none"&&p.getAttribute("data-presenter-image");
118
118
  o.id="hd-open";o.setAttribute("aria-hidden","true");
119
119
  o.innerHTML='<div class="hdo-slide"></div><div class="hdo-card">'+(img?${JSON.stringify(OPENING_BUDDY)}:'')+'<div class="hdo-title"></div><div class="hdo-bar"><i></i></div><div class="hdo-step"></div></div>';
package/src/presenter.mjs CHANGED
@@ -38,7 +38,7 @@ const value = (tag, name) => {
38
38
  // head|static|none, else static when there is a still, else none. head draws
39
39
  // data-avatar (and falls back to the still without one); static draws the
40
40
  // still. Null: the deck plays the voice and captions with no face. A silent
41
- // deck marked data-silent-presenter="hide" shows none whatever this says
41
+ // deck shows none whatever this says, unless data-silent-presenter="show"
42
42
  // (player.js silentFaceless); release skips silent decks, so no caller sees one.
43
43
  function tagFace(tag) {
44
44
  const presenter = value(tag, "data-presenter");
package/src/runtime.mjs CHANGED
@@ -9,7 +9,7 @@ import { ConvexHttpClient } from "convex/browser";
9
9
  import { makeFunctionReference } from "convex/server";
10
10
  import { recordSkillInstall } from "./skillFreshness.mjs";
11
11
 
12
- export const VERSION = "0.9.27";
12
+ export const VERSION = "0.9.29";
13
13
 
14
14
  // Sent on the CLI's calls to our routes and to Convex, so the server can see
15
15
  // which CLI versions are still out there (not used to refuse anything).
package/src/source.mjs CHANGED
@@ -10,8 +10,10 @@ import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync
10
10
  import { tmpdir } from "node:os";
11
11
  import { basename, extname, join, resolve } from "node:path";
12
12
  import { api, client, uploadBytes } from "./runtime.mjs";
13
- import { HOSTED_LAYOUT_WHY, MESSAGES } from "./checkRules.mjs";
13
+ import { HOSTED_LAYOUT_WHY, MESSAGES, deckFiles, deckPath, hostedFileRemedy, scriptFileRefs } from "./checkRules.mjs";
14
+ import { deckFolder } from "./check.mjs";
14
15
  import { withLoadingBlock } from "./loadingBlock.mjs";
16
+ import { ASSET_KINDS, ASSET_TYPES, isScriptType } from "./assetTypes.mjs";
15
17
  import { TRIMS, barsLine, measureBars, trimFile } from "./bars.mjs";
16
18
  import { SOURCE_FILES, getDeckSource, hostedCheck, hostedRelease, uploadDeckAsset, writeDeckSource } from "./hosted.mjs";
17
19
 
@@ -110,10 +112,39 @@ export async function sourcePush(pos, opts = {}, { log = (line) => console.log(l
110
112
  }
111
113
  for (const f of fixed) log(`✓ the draft fixed ${f}; \`hyperdecks source pull ${slug}\` to bring it into the folder`);
112
114
  log(`✓ pushed ${files.join(", ")} to ${slug}: rev ${rev}`);
113
- return { slug, rev, files };
115
+ // Only the source files go up: say which files the deck loads from the folder,
116
+ // so a release that can't play them isn't a surprise.
117
+ // The push already went through, so a folder the walk can't read is a warning, not a failure.
118
+ let notPushed = [];
119
+ try {
120
+ notPushed = filesLeftBehind(readFileSync(join(/*turbopackIgnore: true*/ dir, "index.html"), "utf8"), dir, files);
121
+ } catch (e) {
122
+ log(` ⚠ could not list the files the deck loads from ${dir}: ${e.message}`);
123
+ }
124
+ const byFolder = new Map();
125
+ for (const f of notPushed) {
126
+ const key = `${f.from}\n${f.path.slice(0, f.path.lastIndexOf("/") + 1)}\n${hostedFileRemedy(f.path)}`; // one folder, one remedy
127
+ if (!byFolder.has(key)) byFolder.set(key, []);
128
+ byFolder.get(key).push(f);
129
+ }
130
+ for (const fs of byFolder.values()) {
131
+ const groups = fs.length > 3 ? [fs] : fs.map((f) => [f]);
132
+ for (const g of groups) log(` ⚠ ${MESSAGES.notPushed(g.map((f) => f.path), g[0].from)}`);
133
+ }
134
+ return { slug, rev, files, notPushed: notPushed.map((f) => f.path) };
114
135
  }
115
136
 
116
- const TYPES = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".gif": "image/gif", ".webp": "image/webp", ".avif": "image/avif", ".svg": "image/svg+xml", ".mp4": "video/mp4", ".webm": "video/webm", ".woff2": "font/woff2", ".woff": "font/woff", ".mp3": "audio/mpeg", ".m4a": "audio/mp4", ".json": "application/json" };
137
+ // The files in `dir` the deck loads (not a link's target, not a missing file) that a push of `pushed` left out.
138
+ function filesLeftBehind(html, dir, pushed) {
139
+ const folder = deckFolder(dir);
140
+ const links = new Set([...html.matchAll(/<a\b[^>]*\shref\s*=\s*(?:"([^"]*)"|'([^']*)')/gi)].map((m) => deckPath("", m[1] ?? m[2])).filter(Boolean));
141
+ return deckFiles(html, folder).files
142
+ .filter((f) => !pushed.includes(f.path) && folder.pathExists(f.path) === true && !(f.from === "html" && links.has(f.path)))
143
+ .map((f) => ({ path: f.path, from: f.from === "html" ? "index.html" : f.from }));
144
+ }
145
+
146
+ // asset add takes what every route takes (assetTypes.mjs), keyed here as extname gives it.
147
+ const TYPES = Object.fromEntries(Object.entries(ASSET_TYPES).map(([ext, type]) => [`.${ext}`, type]));
117
148
 
118
149
  // Measured for bars (bars.mjs): pictures ffmpeg reads (not SVG) and clips.
119
150
  const MEASURED = /^(image\/(png|jpeg|gif|webp|avif)|video\/)/;
@@ -163,7 +194,7 @@ export async function assetAdd(pos, opts = {}, { log = (line) => console.log(lin
163
194
  } else {
164
195
  const path = resolve(/*turbopackIgnore: true*/ cwd, from);
165
196
  contentType = TYPES[extname(path).toLowerCase()];
166
- if (!contentType) throw new Error(`${from}: asset add takes images, video, audio, fonts and JSON (${Object.keys(TYPES).join(" ")})`);
197
+ if (!contentType) throw new Error(`${from}: asset add takes ${ASSET_KINDS} (${Object.keys(TYPES).join(" ")})`);
167
198
  bytes = readFileSync(path);
168
199
  if (!name) name = basename(path);
169
200
  }
@@ -202,5 +233,16 @@ export async function assetAdd(pos, opts = {}, { log = (line) => console.log(lin
202
233
  // The file (or URL) it came from beside its new URL, so uploads in a loop stay told apart.
203
234
  out = { ...out, file: from };
204
235
  log(`${from} → ${out.url}`);
236
+ if (isScriptType(out.contentType)) {
237
+ log(` in the deck: import("${out.url}") for a module, <script src="${out.url}"> for a classic script`);
238
+ // Read from disk only: a URL's text stays on the server, which took it as it is.
239
+ if (!isUrl) {
240
+ const refs = scriptFileRefs(readFileSync(resolve(/*turbopackIgnore: true*/ cwd, from), "utf8"));
241
+ if (refs.length) {
242
+ log(` ⚠ ${MESSAGES.assetRefs(basename(from), refs)}`);
243
+ out = { ...out, refs };
244
+ }
245
+ }
246
+ }
205
247
  return out;
206
248
  }
@@ -0,0 +1,113 @@
1
+ /* Decision decks (hyperdecks ask, src/ask.mjs): silent, no presenter, so every slide has the full width.
2
+ fitQuestion (the player; check --layout) steps --q-title down, then --q-text, until all of it is inside the slide. */
3
+ .l-ask .ask { padding-left: 0 !important; }
4
+
5
+ /* Context above the answers: up to ~300 characters, and a picture (a screenshot) beside the answers on a wide screen. */
6
+ .l-ask .context { display: flex; flex-direction: column; gap: calc(16px * var(--q-text, 1)); min-height: 0; }
7
+ .l-ask .why { margin: 0; max-width: 1240px; font-size: max(21px, 27px * var(--q-text, 1)); line-height: 1.32; opacity: .85; overflow-wrap: anywhere; }
8
+ /* The picture at its own shape, as large as its room allows (a tall phone screenshot stays readable), framed itself. */
9
+ .l-ask .pic { position: relative; margin: 0; min-height: 0; }
10
+ .l-ask .pic img { position: absolute; inset: 0; margin: auto; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; box-sizing: border-box; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(16 * var(--round)); background: var(--card); }
11
+ @media not all and (max-width: 650px) {
12
+ /* The picture on the left, the answers and their foot on the right, all under the title and the words. */
13
+ .l-ask.has-context:has(.pic) .ask { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(min-content, 1fr) auto; column-gap: 40px; row-gap: calc(18px * var(--q-text, 1)); align-content: stretch; }
14
+ .l-ask.has-context:has(.pic) .ask > :is(.kicker, .tt) { grid-column: 1 / -1; }
15
+ .l-ask.has-context:has(.pic) .context { display: contents; }
16
+ .l-ask.has-context:has(.pic) .why { grid-column: 1 / -1; grid-row: 3; }
17
+ .l-ask.has-context:has(.pic) .pic { grid-column: 1; grid-row: 4 / span 2; }
18
+ .l-ask.has-context:has(.pic) :is(.options, .box) { grid-column: 2; grid-row: 4; min-height: min-content; }
19
+ .l-ask.has-context:has(.pic) .foot { grid-column: 2; grid-row: 5; }
20
+ .l-ask.has-context:has(.pic) .options { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(min-content, 1fr); gap: calc(18px * var(--q-text, 1)); }
21
+ /* Never shorter than its words: a card that can't hold them makes the slide overflow, and the type steps down. */
22
+ .l-ask.has-context:has(.pic) .opt { min-height: min-content !important; padding-block: calc(14px * var(--q-text, 1)); }
23
+ .l-ask.has-context:has(.pic) .opt { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; align-content: center; gap: 4px 16px; }
24
+ /* Still too much at the smallest type (is-scrolling): the cards scroll beside the picture, Skip stays below them. */
25
+ .l-ask.has-context.is-scrolling:has(.pic) .ask { grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
26
+ .l-ask.has-context.is-scrolling:has(.pic) .options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; grid-auto-rows: min-content; padding: 4px 10px 18px 4px; margin: -4px 0 0 -4px; }
27
+ .l-ask.has-context:has(.pic) .opt kbd { grid-row: span 2; align-self: center; }
28
+ .l-ask.has-context:has(.pic) .opt b { margin: 0; }
29
+ }
30
+ @media (max-width: 650px) {
31
+ /* From the top: the words, the picture, then the answers right after it. */
32
+ .l-ask .why { font-size: max(13px, 14.5px * var(--q-text, 1)); }
33
+ /* The words and the picture take the room the answers leave; the picture gets all of it past the words. Never
34
+ shorter than the words and the picture's least, so nothing goes under the answers: too much makes the slide
35
+ overflow, the type steps down and the picture's least with it (fitQuestion), and at the smallest the slide scrolls. */
36
+ .l-ask .ask > .context:has(.pic) { flex: 1 0 auto; } /* grows; the layout's .ask > * keeps it from shrinking */
37
+ .l-ask .why { flex: none; }
38
+ .l-ask .pic { flex: 1 1 auto; min-height: calc(180px * var(--q-text, 1) * var(--q-text, 1)); }
39
+ /* Still too much at the smallest type (is-scrolling): the answer cards scroll, Skip and the status stay on the slide;
40
+ should even that not do, the whole question scrolls. */
41
+ .l-question-choice.l-ask.is-scrolling .ask > .options { flex: 1 1 0; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; grid-auto-rows: min-content; padding: 4px 10px 18px 4px; margin: -4px 0 0 -4px; }
42
+ /* ...and the picture is at its least before they do: it gives up its room first. */
43
+ .l-ask.is-scrolling .ask > .context:has(.pic) { flex: none; }
44
+ .l-ask.is-scrolling .pic { flex: none; height: calc(180px * var(--q-text, 1) * var(--q-text, 1)); }
45
+ .l-ask.is-scrolling .ask { overflow-y: auto; overscroll-behavior: contain; }
46
+ .l-ask .pic img { border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); }
47
+ .l-ask.has-context .options { flex: none; grid-auto-rows: auto; }
48
+ /* No picture: the answers grow into the room, as on a plain choice. */
49
+ .l-ask.has-context:not(:has(.pic)) .options { flex: 1 0 auto; grid-auto-rows: minmax(min-content, 1fr); }
50
+ }
51
+
52
+ /* The batch slide: up to 8 short items, each with its own two answers (Yes and No), each saved as its own answer. */
53
+ .l-question-batch .ask { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; gap: calc(22px * var(--q-text, 1)); }
54
+ .l-question-batch .ask > * { flex-shrink: 0; }
55
+ .l-question-batch .tt { font-size: max(40px, var(--t-title) * var(--q-title, 1)); text-wrap: balance; }
56
+ .l-question-batch .items { flex: 1 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(min-content, 1fr); gap: calc(18px * var(--q-text, 1)) 28px; }
57
+ .l-question-batch .items:has(> :only-child, > :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); }
58
+ .l-question-batch .item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; padding: calc(12px * var(--q-text, 1)) 14px calc(12px * var(--q-text, 1)) 22px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(18 * var(--round)); background: var(--card); color: var(--ink); box-shadow: calc(6 * var(--drop-x)) calc(6 * var(--drop-y)) calc(6 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
59
+ .l-question-batch .item > b { font-size: max(24px, 32px * var(--q-text, 1)); line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
60
+ .l-question-batch .yn { display: flex; gap: 10px; }
61
+ .l-question-batch .yn button { position: relative; min-width: 104px; min-height: max(56px, 72px * var(--q-text, 1)); padding: 0 18px; border: calc(2.5 * var(--line)) solid var(--ink); border-radius: calc(12 * var(--round)); background: var(--card); color: var(--ink); font: 700 max(22px, 26px * var(--q-text, 1)) var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .16s, color .16s, transform .16s, box-shadow .16s; }
62
+ .l-question-batch .yn button b { font: inherit; }
63
+ /* Saved, and only then: filled. On its way: dashed, with a wash. Not saved: red; its reply lost: amber (the same tap again settles it). */
64
+ .l-question-batch .yn button[aria-pressed="true"] { background: var(--ink); color: var(--accent); cursor: default; } /* a tap on it keeps it */
65
+ .l-question-batch .yn button[data-answer="pending"] { border-style: dashed; background: color-mix(in srgb, var(--accent) 22%, var(--card)); cursor: progress; }
66
+ .l-question-batch .yn button[data-answer="failed"] { background: #b3261e; border-color: #b3261e; color: #fff; }
67
+ .l-question-batch .yn button[data-answer="unsure"] { background: #7a4b00; border-color: #7a4b00; color: #fff; }
68
+ @media (hover: hover) and (pointer: fine) {
69
+ .l-question-batch .yn button:not([aria-pressed="true"]):not([data-answer]):hover { background: color-mix(in srgb, var(--accent) 35%, var(--card)); transform: translateY(-3px); box-shadow: calc(3 * var(--drop-x)) calc(4 * var(--drop-y)) 0 var(--ink); }
70
+ .l-question-batch .yn button:active { transform: none; box-shadow: none; }
71
+ .l-question-batch .foot .send:hover { background: color-mix(in srgb, var(--ink) 80%, var(--card)); }
72
+ .l-question-batch .foot .send.is-empty:hover { background: color-mix(in srgb, var(--ink) 24%, transparent); }
73
+ .l-question-batch .yn button[data-answer]:hover { filter: brightness(1.12); }
74
+ .l-question-batch .skip:hover { text-decoration-thickness: .16em; }
75
+ }
76
+ @media (prefers-reduced-motion: reduce) { .l-question-batch .yn button { transition: none; } .l-question-batch .yn button:hover { transform: none; } }
77
+ .l-question-batch.is-wanting .items { outline: 3px dashed var(--ink); outline-offset: 8px; }
78
+ /* Still too much at the smallest type (is-scrolling, question.js): the items scroll, Continue and Skip stay below them. */
79
+ .l-question-batch.is-scrolling .ask > .items { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; grid-auto-rows: min-content; align-content: start; padding: 4px 10px 18px 4px; margin: -4px 0 0 -4px; }
80
+ .l-question-batch .items.is-cut { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
81
+ .l-question-batch .items.is-cut-top { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
82
+ .l-question-batch .items.is-cut.is-cut-top { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
83
+ .l-question-batch .foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
84
+ .l-question-batch .foot button { font: 700 24px var(--font); color: inherit; cursor: pointer; }
85
+ .l-question-batch .foot .send { min-height: 68px; padding: 12px 34px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(16 * var(--round)); background: var(--ink); color: var(--card); font-size: 26px; }
86
+ .l-question-batch .foot .send.is-empty { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
87
+ .l-question-batch .skip { min-width: 74px; min-height: 68px; padding: 8px 4px; border: 0; background: none; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
88
+ .l-question-batch .status { flex: 1 1 0; min-width: 0; min-height: 2.5em; margin: 0; display: flex; align-items: center; font-size: 22px; line-height: 1.25; }
89
+ .l-question-batch :is(button):focus-visible { outline: thick solid var(--accent-2); outline-offset: 4px; }
90
+ @media (max-width: 650px) {
91
+ .slide.l-question-batch { padding-bottom: 20px; }
92
+ .l-question-batch .tt { font-size: max(22px, var(--t-title) * var(--q-title, 1)); }
93
+ .l-question-batch .ask { justify-content: start; gap: calc(10px * var(--q-text, 1)); }
94
+ /* Five or more items take the slide's height; a few get larger words and roomier rows, capped, the rest left empty below. */
95
+ .l-question-batch .items { flex: 1 0 auto; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(min-content, 1fr); gap: max(5px, 6px * var(--q-text, 1)); }
96
+ .l-question-batch .items:not(:has(> :nth-child(5))) { flex: none; grid-auto-rows: minmax(84px, auto); gap: 12px; }
97
+ .l-question-batch .items:not(:has(> :nth-child(5))) .item > b { font-size: max(17px, 20px * var(--q-text, 1)); }
98
+ .l-question-batch .items:not(:has(> :nth-child(5))) .yn button { min-height: 52px; min-width: 64px; font-size: 16px; }
99
+ /* Answers too wide to leave the words room go under them (long labels on a narrow phone). */
100
+ .l-question-batch .item { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
101
+ .l-question-batch .item > b { flex: 1 1 150px; min-width: 0; }
102
+ .l-question-batch .yn { flex: none; margin-left: auto; }
103
+ .l-question-batch .item { gap: 8px; padding: max(4px, 6px * var(--q-text, 1)) 6px max(4px, 6px * var(--q-text, 1)) 12px; border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); box-shadow: calc(3 * var(--drop-x)) calc(3 * var(--drop-y)) calc(3 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
104
+ .l-question-batch .item > b { font-size: max(13.5px, 15px * var(--q-text, 1)); line-height: 1.18; }
105
+ .l-question-batch .yn { gap: 5px; }
106
+ .l-question-batch .yn button { min-width: 52px; min-height: 44px; padding: 0 8px; border-width: calc(2 * var(--line)); border-radius: calc(9 * var(--round)); font-size: 14px; }
107
+ .l-question-batch .foot { flex-wrap: wrap; gap: 0 12px; }
108
+ .l-question-batch .foot button { font-size: 15px; }
109
+ .l-question-batch .foot .send { min-height: 44px; padding: 8px 18px; font-size: 16px; border-width: calc(2 * var(--line)); }
110
+ .l-question-batch .skip { min-width: 44px; min-height: 44px; }
111
+ .l-question-batch .status { flex: 1 0 100%; min-height: 0; font-size: 13px; } /* its own line, under Continue and Skip */
112
+ .l-question-batch.is-wanting .items { outline-width: 2px; outline-offset: 4px; }
113
+ }
@@ -91,7 +91,7 @@ if(self!==top||/[?&](thumb|export)\b/.test(location.search))return;
91
91
  function go(){if(d.readyState==="loading")return;d.removeEventListener("readystatechange",go);
92
92
  var b=d.body,p=d.querySelector('script[src*="/player/v"][src*="/player.js"]');
93
93
  if(!b||!p||d.getElementById("hd-open")||b.hasAttribute("data-hd-ready")||d.documentElement.hasAttribute("data-hyperdecks-thumb"))return;
94
- var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")==="hide"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
94
+ var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")!=="show"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
95
95
  var o=d.createElement("div"),img=!mute&&p.getAttribute("data-presenter")!=="none"&&p.getAttribute("data-presenter-image");
96
96
  o.id="hd-open";o.setAttribute("aria-hidden","true");
97
97
  o.innerHTML='<div class="hdo-slide"></div><div class="hdo-card">'+(img?"<div class=\"hdo-buddy\"><div class=\"hdo-hop\"><div class=\"hdo-look\"><img src=\"\" alt=\"\"></div></div><div class=\"hdo-shadow\"></div><div class=\"hdo-think\"><i></i><i></i><i></i></div><span class=\"hdo-spark\" style=\"--x:-40px;--y:-30px\"></span><span class=\"hdo-spark\" style=\"--x:42px;--y:-34px\"></span><span class=\"hdo-spark\" style=\"--x:-30px;--y:10px\"></span><span class=\"hdo-spark\" style=\"--x:36px;--y:6px\"></span><span class=\"hdo-spark\" style=\"--x:0px;--y:-46px\"></span></div>":'')+'<div class="hdo-title"></div><div class="hdo-bar"><i></i></div><div class="hdo-step"></div></div>';
@@ -472,8 +472,9 @@ d.addEventListener("readystatechange",go);go()})();</script>
472
472
  static (data-presenter-image) or none (captions only). deck new, deck
473
473
  narrator and narrate write the narrator's face here
474
474
  (data-presenter-from="narrator", so release follows a later narrator).
475
- data-silent-presenter="hide": if this deck is made silent (data-silent),
476
- it shows no presenter; set "show" to keep the face on a silent deck. -->
475
+ data-silent-presenter="hide" (the default, also without it): if this deck
476
+ is made silent (data-silent), it shows no presenter; set "show" to keep
477
+ the face on a silent deck. -->
477
478
  <script type="module" src="https://hyperdecks.ai/player/v1/player.js"
478
479
  data-manifest="" data-silent-presenter="hide" data-stage="1600x900" data-presenter="none" data-presenter-style="__PRESENTER_STYLE__"></script>
479
480
  </body>
@@ -96,7 +96,7 @@ script: It starts when you [go: #__ID__-s1] ask. Your assistant [go: #__ID__-s2]
96
96
  <div class="kicker">How a deck gets made</div>
97
97
  <h2 class="tt" data-title-mobile="Each step builds.">Each step stands on the last.</h2>
98
98
  <ol class="steps">
99
- <li id="__ID__-s1"><span class="n">01</span><b>Ask</b><p>Tell your assistant what the deck is for.</p></li>
99
+ <li id="__ID__-s1"><span class="n">01</span><b>Ask</b><p>Tell your assistant what it's for.</p></li>
100
100
  <li id="__ID__-s2"><span class="n">02</span><b>Draft</b><p>It writes the slides and the script.</p></li>
101
101
  <li id="__ID__-s3"><span class="n">03</span><b>Narrate</b><p>Your avatar reads it in your voice.</p></li>
102
102
  <li id="__ID__-s4"><span class="n">04</span><b>Send</b><p>One link, and you see who watched.</p></li>
@@ -91,7 +91,7 @@ if(self!==top||/[?&](thumb|export)\b/.test(location.search))return;
91
91
  function go(){if(d.readyState==="loading")return;d.removeEventListener("readystatechange",go);
92
92
  var b=d.body,p=d.querySelector('script[src*="/player/v"][src*="/player.js"]');
93
93
  if(!b||!p||d.getElementById("hd-open")||b.hasAttribute("data-hd-ready")||d.documentElement.hasAttribute("data-hyperdecks-thumb"))return;
94
- var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")==="hide"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
94
+ var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")!=="show"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
95
95
  var o=d.createElement("div"),img=!mute&&p.getAttribute("data-presenter")!=="none"&&p.getAttribute("data-presenter-image");
96
96
  o.id="hd-open";o.setAttribute("aria-hidden","true");
97
97
  o.innerHTML='<div class="hdo-slide"></div><div class="hdo-card">'+(img?"<div class=\"hdo-buddy\"><div class=\"hdo-hop\"><div class=\"hdo-look\"><img src=\"\" alt=\"\"></div></div><div class=\"hdo-shadow\"></div><div class=\"hdo-think\"><i></i><i></i><i></i></div><span class=\"hdo-spark\" style=\"--x:-40px;--y:-30px\"></span><span class=\"hdo-spark\" style=\"--x:42px;--y:-34px\"></span><span class=\"hdo-spark\" style=\"--x:-30px;--y:10px\"></span><span class=\"hdo-spark\" style=\"--x:36px;--y:6px\"></span><span class=\"hdo-spark\" style=\"--x:0px;--y:-46px\"></span></div>":'')+'<div class="hdo-title"></div><div class="hdo-bar"><i></i></div><div class="hdo-step"></div></div>';
@@ -134,6 +134,9 @@ d.addEventListener("readystatechange",go);go()})();</script>
134
134
  .narration-slot { position: absolute; right: 56px; bottom: 72px; }
135
135
  .slot-left .narration-slot { right: auto; left: 56px; }
136
136
  .slot-left .content { padding-right: 0; padding-left: 500px; }
137
+ /* No presenter (a silent deck, :root.hd-no-presenter): the text takes its room. */
138
+ :root.hd-no-presenter .content { padding-right: 0; }
139
+ :root.hd-no-presenter .slot-left .content { padding-left: 0; }
137
140
  .reveal { opacity: 0; transition: opacity .4s; }
138
141
  .reveal.is-revealed { opacity: 1; }
139
142
  @media (max-width: 650px) {
@@ -230,8 +233,9 @@ d.addEventListener("readystatechange",go);go()})();</script>
230
233
  data-avatar), static (data-presenter-image) or none (captions only).
231
234
  deck new, deck narrator and narrate write the narrator's face here
232
235
  (data-presenter-from="narrator", so release follows a later narrator).
233
- data-silent-presenter="hide": if this deck is made silent (data-silent),
234
- it shows no presenter; set "show" to keep the face on a silent deck.
236
+ data-silent-presenter="hide" (the default, also without it): if this deck
237
+ is made silent (data-silent), it shows no presenter; set "show" to keep
238
+ the face on a silent deck.
235
239
  data-presenter-style: stage (large head, lower-third captions), bubble,
236
240
  glass (frosted panel) or corner (small head, subtitles). -->
237
241
  <script type="module" src="https://hyperdecks.ai/player/v1/player.js"