clavarium 0.2.469-next.1 → 0.2.471-next.1

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.469-next.1",
3
+ "version": "0.2.471-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.469-next.1",
9
+ "version": "0.2.471-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -14,7 +14,7 @@
14
14
  "clavarium-binder": "0.1.63-next.1",
15
15
  "clavarium-docket": "0.1.2-next.2",
16
16
  "clavarium-parley": "0.17.95-next.1",
17
- "clavarium-tether": "0.1.0-next.68",
17
+ "clavarium-tether": "0.1.0-next.69",
18
18
  "mammoth": "1.13.0",
19
19
  "mermaid": "11.17.2",
20
20
  "node-pty": "^1.1.0",
@@ -800,9 +800,9 @@
800
800
  }
801
801
  },
802
802
  "node_modules/clavarium-tether": {
803
- "version": "0.1.0-next.68",
804
- "resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.68.tgz",
805
- "integrity": "sha512-SVPlyIGWSRUkS0G7OCca38xru05NMxCgc7XSR7pBDetNhdGKJFlSG3p3ZsjY6p5iCdgfpjSFhAyH/VnDFHdMoQ==",
803
+ "version": "0.1.0-next.69",
804
+ "resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.69.tgz",
805
+ "integrity": "sha512-k4mxaOKn3hTld3ICzD34EKiAweeqDT+QMQ4yye876cav02AkBDo2V6HMgTCk9PwFdUpptTTJIMnBcy9BIfNCSg==",
806
806
  "license": "MIT",
807
807
  "bin": {
808
808
  "tether": "bin/cli.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.469-next.1",
3
+ "version": "0.2.471-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
@@ -48,7 +48,7 @@
48
48
  "clavarium-binder": "0.1.63-next.1",
49
49
  "clavarium-docket": "0.1.2-next.2",
50
50
  "clavarium-parley": "0.17.95-next.1",
51
- "clavarium-tether": "0.1.0-next.68",
51
+ "clavarium-tether": "0.1.0-next.69",
52
52
  "mammoth": "1.13.0",
53
53
  "mermaid": "11.17.2",
54
54
  "node-pty": "^1.1.0",
package/server/agenda.mjs CHANGED
@@ -73,6 +73,9 @@ const timeOf = (v) => {
73
73
  };
74
74
  /* An online meeting's link: a web address, nothing else (never a script's). */
75
75
  const linkOf = (v) => { try { const u = new URL(String(v ?? '')); return u.protocol === 'https:' ? u.href.slice(0, 2000) : null; } catch { return null; } };
76
+ /* An invitation's text, as text: lines kept, control characters dropped, short. The page shows it as text only. */
77
+ export const NOTES_MAX = 2000;
78
+ const notesOf = (v) => String(v ?? '').replace(/[\u0000-\u0008\u000b-\u001f\u007f]/g, '').replace(/\n{3,}/g, '\n\n').trim().slice(0, NOTES_MAX);
76
79
  const SHOW = { busy: 'busy', free: 'free', tentative: 'tentative', oof: 'away', away: 'away', workingelsewhere: 'elsewhere', elsewhere: 'elsewhere' };
77
80
 
78
81
  /* One event Tether handed as data, kept to the fields the page shows. */
@@ -83,7 +86,7 @@ export function eventOf(e) {
83
86
  const n = Number(e.attendees);
84
87
  return {
85
88
  id: line(e.id, 2048), title: line(e.title) || '(no title)', start, end: timeOf(e.end), allDay,
86
- location: line(e.location), organizer: line(e.organizer, 320), online: linkOf(e.online),
89
+ location: line(e.location), organizer: line(e.organizer, 320), online: linkOf(e.online), notes: notesOf(e.notes),
87
90
  attendees: Number.isInteger(n) && n >= 0 ? n : null, show: SHOW[String(e.show ?? '').toLowerCase()] ?? null,
88
91
  };
89
92
  }
@@ -305,7 +305,7 @@ export const SETTINGS_WORDS_FR = {
305
305
  'set-ag-failed': 'Agenda illisible pour le moment.', 'set-ag-none': 'Aucun événement cette semaine', 'set-ag-free-day': 'Rien aujourd\'hui',
306
306
  'set-ag-more': 'Certains événements ne sont pas affichés', 'set-ag-partial': 'Heures de début seules, pour l\'instant',
307
307
  'set-ag-when': 'Quand', 'set-ag-where': 'Où', 'set-ag-link': 'Lien', 'set-ag-join': 'Rejoindre en ligne', 'set-ag-organizer': 'Organisateur',
308
- 'set-ag-guests': 'Invités', 'set-ag-shown': 'Affiché comme', 'set-ag-show-free': 'Libre', 'set-ag-show-tentative': 'Provisoire',
308
+ 'set-ag-guests': 'Invités', 'set-ag-notes': 'Invitation', 'set-ag-shown': 'Affiché comme', 'set-ag-show-free': 'Libre', 'set-ag-show-tentative': 'Provisoire',
309
309
  'set-ag-show-away': 'Absent', 'set-ag-show-elsewhere': 'Ailleurs',
310
310
  'set-ml-short': 'Manque de mémoire', 'set-ml-short-what': 'La plus grosse machine', 'set-ml-force': 'Forcer l’arrêt', 'set-ml-sleep': 'Mettre en veille', 'set-ml-alert': 'Alerter seulement',
311
311
  };
package/web/app.js CHANGED
@@ -6235,6 +6235,15 @@
6235
6235
  if (ev.online) { const a = el('a', '', uiSaid('set-ag-join', 'Join online')); a.href = ev.online; a.target = '_blank'; a.rel = 'noopener noreferrer'; fact(uiSaid('set-ag-link', 'Link'), a); }
6236
6236
  fact(uiSaid('set-ag-organizer', 'Organizer'), ev.organizer ? document.createTextNode(ev.organizer) : null);
6237
6237
  if (Number.isInteger(ev.attendees) && ev.attendees > 0) fact(uiSaid('set-ag-guests', 'Guests'), document.createTextNode(String(ev.attendees)));
6238
+ /* ITS INVITATION'S TEXT (16-11): text nodes only -- never HTML, nothing in it runs; a web address (https) alone is a link. */
6239
+ if (ev.notes) {
6240
+ const text = el('div', 'ag-notes');
6241
+ for (const part of String(ev.notes).split(/(https:\/\/[^\s<>"')\]]+)/)) {
6242
+ if (/^https:\/\//.test(part)) { const a = el('a', '', part.length > 60 ? `${part.slice(0, 57)}…` : part); a.href = part; a.target = '_blank'; a.rel = 'noopener noreferrer'; text.append(a); }
6243
+ else if (part) text.append(document.createTextNode(part));
6244
+ }
6245
+ fact(uiSaid('set-ag-notes', 'Invitation'), text);
6246
+ }
6238
6247
  if (ev.show && ev.show !== 'busy') fact(uiSaid('set-ag-shown', 'Shown as'), document.createTextNode(uiSaid(`set-ag-show-${ev.show}`, { free: 'Free', tentative: 'Tentative', away: 'Away', elsewhere: 'Elsewhere' }[ev.show] ?? ev.show)));
6239
6248
  box.append(head, facts);
6240
6249
  return box;
package/web/style.css CHANGED
@@ -1267,6 +1267,9 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
1267
1267
  .ag-event[open] { background: var(--panel); }
1268
1268
  .ag-row { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 5px 6px; cursor: pointer; list-style: none; border-radius: 6px; }
1269
1269
  .ag-row::-webkit-details-marker { display: none; }
1270
+ /* The panels' own details (#assets, #panel) give a summary a button's look and a "+ ": not an event's row. */
1271
+ #assets .ag-event > summary.ag-row, #panel .ag-event > summary.ag-row, .ag-event > summary.ag-row { display: grid; padding: 5px 6px; border: 0; background: none; font-weight: inherit; align-self: stretch; min-height: 0; }
1272
+ #assets .ag-event > summary.ag-row::before, #panel .ag-event > summary.ag-row::before, .ag-event > summary.ag-row::before { content: none; }
1270
1273
  .ag-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
1271
1274
  .ag-row:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
1272
1275
  .ag-time { font-variant-numeric: tabular-nums; color: var(--ink2); font-size: .8125rem; white-space: nowrap; }
@@ -1279,6 +1282,7 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
1279
1282
  .ag-facts dt { color: var(--ink2); }
1280
1283
  .ag-facts dd { margin: 0; overflow-wrap: anywhere; }
1281
1284
  .ag-facts a { color: var(--brass-ink); }
1285
+ .ag-notes { white-space: pre-wrap; max-height: 16em; overflow: auto; color: var(--ink2); overflow-wrap: anywhere; }
1282
1286
  .ag-now { display: flex; align-items: center; gap: 6px; color: var(--brass-ink); font-size: .6875rem; font-weight: 600; text-transform: uppercase; }
1283
1287
  .ag-now::after { content: ""; flex: 1; border-top: 1.5px solid var(--brass-ink); }
1284
1288
  @media (max-width: 600px) {