dsh-asteme 0.11.0 → 0.12.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.
@@ -309,6 +309,8 @@
309
309
  @media (max-width: 69.99rem) { body.sheet-on:not(.space) main, body.sheet-on:not(.space) form { opacity: .4; } }
310
310
  @media (prefers-reduced-motion: reduce) { #sheet { transition: none; } }
311
311
  @media (min-width: 70rem) { body.sheet-on header, body.sheet-on main, body.sheet-on form { margin-right: 25rem; } }
312
+ /* The conversation makes room at the pace the sheet comes in: one movement, not a sheet sliding over a page that has already jumped aside. */
313
+ @media (min-width: 70rem) and (prefers-reduced-motion: no-preference) { header, main, form { transition: margin-right .28s ease; } }
312
314
  #sheet .sheethead { position: sticky; top: 0; z-index: 3; margin: 0 -1.4rem .5rem; padding: 1.1rem 1.4rem .7rem; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
313
315
  #sheet h2 { font-size: .8rem; font-weight: 600; letter-spacing: .06em; margin: 0; display: flex; align-items: center; }
314
316
  #sheet h2 button { margin-left: auto; font-weight: 400; letter-spacing: 0; }
package/brain/server.mjs CHANGED
@@ -306,6 +306,7 @@ export function serve(mind, { port = 4170, token = randomBytes(18).toString("bas
306
306
  if (req.method === "POST" && url.pathname === "/api/fresh") return json(res, 200, mind.fresh((await body(req)).on !== false));
307
307
  if (req.method === "POST" && url.pathname === "/api/draft") return json(res, 200, mind.draft((await body(req)).text));
308
308
  if (req.method === "POST" && url.pathname === "/api/seen") return json(res, 200, mind.seen((await body(req)).ids));
309
+ if (req.method === "POST" && url.pathname === "/api/here") return json(res, 200, mind.here?.() ?? { here: true });
309
310
  if (req.method === "POST" && url.pathname === "/api/retract") return json(res, 200, await mind.retract((await body(req)).id));
310
311
  json(res, 404, { error: "Not found" });
311
312
  } catch (e) {
package/client/copy.mjs CHANGED
@@ -522,6 +522,7 @@ export const en = {
522
522
  "brainTask_lost": "lost when Asteme stopped",
523
523
  "brainNewest": "Back to the newest",
524
524
  "brainTonePick": "Another colour",
525
+ "brainHeld": "When you are next here",
525
526
  "brainViewOpen": "Open in a new tab",
526
527
  "brainFresh": "Start a new page",
527
528
  "brainFreshLine": "A new page. Nothing was erased, and it still remembers.",
@@ -585,7 +586,6 @@ export const en = {
585
586
  "brainSignMine": "Your sign; press to take it off",
586
587
  "brainReply": "Answer this",
587
588
  "brainReplyingTo": "Answering {who}",
588
- "brainYou": "You",
589
589
  "brainRead": "Read",
590
590
  "brainRetract": "Take back",
591
591
  "brainRetractAsk": "Take this message back? Its words are erased, with anything remembered from them and what Asteme said in answer. This cannot be undone.",