@marktiderman/genesis-chat 0.10.0 → 0.10.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.
package/dist/web.js CHANGED
@@ -137,7 +137,7 @@ function InboxRow(row) {
137
137
  /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", "aria-hidden": true, children: [
138
138
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
139
139
  /* @__PURE__ */ jsx("span", { className: cn("min-w-0 flex-1 truncate text-sm", unread ? "font-semibold text-foreground" : "font-medium text-foreground"), children: title }),
140
- /* @__PURE__ */ jsx("span", { className: cn("shrink-0 text-xs tabular-nums", unread && !item.muted ? "font-medium text-primary" : "text-muted-foreground"), children: timeLabel })
140
+ /* @__PURE__ */ jsx("span", { className: cn("shrink-0 text-xs tabular-nums", unread && !item.muted ? "font-medium text-primary-text" : "text-muted-foreground"), children: timeLabel })
141
141
  ] }),
142
142
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
143
143
  /* @__PURE__ */ jsx("span", { className: cn("min-w-0 flex-1 truncate text-sm", unread ? "text-foreground" : "text-muted-foreground"), children: preview || " " }),
@@ -384,7 +384,7 @@ function renderNodes(nodes, opts) {
384
384
  href: n.href,
385
385
  target: "_blank",
386
386
  rel: "noopener noreferrer",
387
- className: cn("underline underline-offset-2", opts.tone === "primary" ? "text-primary-foreground" : "text-primary"),
387
+ className: cn("underline underline-offset-2", opts.tone === "primary" ? "text-primary-foreground" : "text-primary-text"),
388
388
  children: renderNodes(n.children, opts)
389
389
  },
390
390
  i
@@ -398,7 +398,7 @@ function renderNodes(nodes, opts) {
398
398
  "data-mention": n.userId,
399
399
  className: cn(
400
400
  "rounded px-1 font-medium",
401
- opts.tone === "primary" ? "bg-primary-foreground/20 text-primary-foreground" : mine ? "bg-primary/20 text-primary" : "bg-primary/10 text-primary"
401
+ opts.tone === "primary" ? "bg-primary-foreground/20 text-primary-foreground" : mine ? "bg-primary/20 text-primary-text" : "bg-primary/10 text-primary-text"
402
402
  ),
403
403
  children: [
404
404
  "@",
@@ -477,7 +477,7 @@ function ChatAttachmentCard({ title, subtitle, icon: Icon = ClipboardList, actio
477
477
  className: cn("flex w-[min(20rem,100%)] items-center gap-3 rounded-lg p-2.5", primary ? "bg-primary-foreground/15" : "border bg-background", className),
478
478
  "data-testid": "genesis-chat-attachment-card",
479
479
  children: [
480
- /* @__PURE__ */ jsx("span", { className: cn("flex size-10 shrink-0 items-center justify-center rounded-md", primary ? "bg-primary-foreground/20" : "bg-primary/10 text-primary"), children: /* @__PURE__ */ jsx(Icon, { className: "size-5", "aria-hidden": true }) }),
480
+ /* @__PURE__ */ jsx("span", { className: cn("flex size-10 shrink-0 items-center justify-center rounded-md", primary ? "bg-primary-foreground/20" : "bg-primary/10 text-primary-text"), children: /* @__PURE__ */ jsx(Icon, { className: "size-5", "aria-hidden": true }) }),
481
481
  /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
482
482
  /* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-semibold", children: title }),
483
483
  subtitle ? /* @__PURE__ */ jsx("span", { className: cn("block truncate text-xs", primary ? "text-primary-foreground/80" : "text-muted-foreground"), children: subtitle }) : null
@@ -980,7 +980,7 @@ function VoiceNote({ src, durationMs, waveform, transcript, transcriptStatus, to
980
980
  ] }),
981
981
  /* @__PURE__ */ jsx("div", { className: cn("pl-11 text-xs tabular-nums", primary ? "text-primary-foreground/80" : "text-muted-foreground"), children: formatDuration(shown) }),
982
982
  transcriptStatus === "pending" ? /* @__PURE__ */ jsx("div", { className: cn("pl-11 text-xs italic", primary ? "text-primary-foreground/80" : "text-muted-foreground"), children: "Transcribing\u2026" }) : transcript ? /* @__PURE__ */ jsxs(Collapsible, { className: "pl-11", children: [
983
- /* @__PURE__ */ jsx(CollapsibleTrigger, { className: cn("text-xs font-medium underline-offset-2 hover:underline", primary ? "text-primary-foreground" : "text-primary"), children: "Transcript" }),
983
+ /* @__PURE__ */ jsx(CollapsibleTrigger, { className: cn("text-xs font-medium underline-offset-2 hover:underline", primary ? "text-primary-foreground" : "text-primary-text"), children: "Transcript" }),
984
984
  /* @__PURE__ */ jsx(CollapsibleContent, { className: "pt-1 text-sm", children: transcript })
985
985
  ] }) : null,
986
986
  /* @__PURE__ */ jsx("audio", { ref: audio, src: src ?? void 0, preload: "metadata", className: "hidden" })
@@ -1471,7 +1471,7 @@ function MessageRow({ item, startsGroup: startsGroup2, highlighted: highlightedP
1471
1471
  disabled: !ctx.canPost,
1472
1472
  className: cn(
1473
1473
  "inline-flex h-6 items-center gap-1 rounded-full border bg-background px-2 text-xs shadow-sm transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none",
1474
- r.mine && "border-primary bg-primary/10 text-primary"
1474
+ r.mine && "border-primary bg-primary/10 text-primary-text"
1475
1475
  ),
1476
1476
  "data-testid": `genesis-chat-reaction-${r.emoji}`,
1477
1477
  children: [
@@ -2497,7 +2497,7 @@ function ChatComposer({
2497
2497
  ] }) : null,
2498
2498
  replyTo ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b px-3 py-2", "data-testid": "genesis-chat-reply-banner", children: [
2499
2499
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 border-l-4 border-primary pl-2", children: [
2500
- /* @__PURE__ */ jsxs("div", { className: "text-xs font-semibold text-primary", children: [
2500
+ /* @__PURE__ */ jsxs("div", { className: "text-xs font-semibold text-primary-text", children: [
2501
2501
  "Replying to ",
2502
2502
  replyName
2503
2503
  ] }),
@@ -2800,7 +2800,7 @@ function ChatRowSlot(row) {
2800
2800
  row.day ? /* @__PURE__ */ jsx("div", { className: "sticky top-1 z-10 flex justify-center py-2", role: "separator", "aria-label": row.day, children: /* @__PURE__ */ jsx("span", { className: "rounded-full border bg-background/95 px-3 py-0.5 text-xs font-medium text-muted-foreground shadow-sm", children: row.day }) }) : null,
2801
2801
  row.firstUnread ? /* @__PURE__ */ jsxs("div", { className: "my-2 flex items-center gap-2 px-4", role: "separator", "aria-label": "New messages", "data-testid": "genesis-chat-new-line", children: [
2802
2802
  /* @__PURE__ */ jsx("span", { className: "h-px flex-1 bg-primary/40" }),
2803
- /* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-primary", children: "New" }),
2803
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-primary-text", children: "New" }),
2804
2804
  /* @__PURE__ */ jsx("span", { className: "h-px flex-1 bg-primary/40" })
2805
2805
  ] }) : null,
2806
2806
  /* @__PURE__ */ jsx(
@@ -3158,7 +3158,7 @@ function ChatThread({
3158
3158
  className: "flex items-center gap-2 border-b bg-muted/40 px-3 py-1.5 text-left text-xs hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
3159
3159
  "aria-label": `Pinned message: ${previewText(pinnedMessage.body, pinnedMessage.attachments[0]?.kind ?? null, Boolean(pinnedMessage.deletedAt))}. Show it`,
3160
3160
  children: [
3161
- /* @__PURE__ */ jsx(Pin, { className: "size-3.5 shrink-0 text-primary", "aria-hidden": true }),
3161
+ /* @__PURE__ */ jsx(Pin, { className: "size-3.5 shrink-0 text-primary-text", "aria-hidden": true }),
3162
3162
  /* @__PURE__ */ jsx("span", { className: "truncate", children: previewText(pinnedMessage.body, pinnedMessage.attachments[0]?.kind ?? null, Boolean(pinnedMessage.deletedAt)) }),
3163
3163
  pinIds.length > 1 ? /* @__PURE__ */ jsxs("span", { className: "ml-auto shrink-0 text-muted-foreground", children: [
3164
3164
  "+",
@@ -3216,7 +3216,7 @@ function ChatThread({
3216
3216
  className: "h-full"
3217
3217
  }
3218
3218
  ),
3219
- dragging ? /* @__PURE__ */ jsxs("div", { className: "pointer-events-none absolute inset-2 flex flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed border-primary bg-background/90 text-sm font-medium text-primary", children: [
3219
+ dragging ? /* @__PURE__ */ jsxs("div", { className: "pointer-events-none absolute inset-2 flex flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed border-primary bg-background/90 text-sm font-medium text-primary-text", children: [
3220
3220
  /* @__PURE__ */ jsx(ImagePlus, { className: "size-6", "aria-hidden": true }),
3221
3221
  "Drop to attach"
3222
3222
  ] }) : null