@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-chat",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -177,8 +177,8 @@
177
177
  "@marktiderman/genesis-ai": "^0.3.0",
178
178
  "@marktiderman/genesis-core": "^2.13.0",
179
179
  "@marktiderman/genesis-notifications": "^0.4.2",
180
- "@marktiderman/genesis-ui": "^2.32.0",
181
- "@marktiderman/genesis-ui-native": "^3.9.0",
180
+ "@marktiderman/genesis-ui": "^2.32.1",
181
+ "@marktiderman/genesis-ui-native": "^3.9.1",
182
182
  "@supabase/supabase-js": "^2.118.0",
183
183
  "@tanstack/react-query": "^5.105.0",
184
184
  "@testing-library/react": "^16.3.2",
@@ -285,7 +285,7 @@ export function MessageRow({ item, startsGroup, highlighted: highlightedProp, cl
285
285
  disabled={!ctx.canPost}
286
286
  className={cn(
287
287
  "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",
288
- r.mine && "border-primary bg-primary/10 text-primary",
288
+ r.mine && "border-primary bg-primary/10 text-primary-text",
289
289
  )}
290
290
  data-testid={`genesis-chat-reaction-${r.emoji}`}
291
291
  >
package/src/web/cards.tsx CHANGED
@@ -110,7 +110,7 @@ export function ChatAttachmentCard({ title, subtitle, icon: Icon = ClipboardList
110
110
  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)}
111
111
  data-testid="genesis-chat-attachment-card"
112
112
  >
113
- <span className={cn("flex size-10 shrink-0 items-center justify-center rounded-md", primary ? "bg-primary-foreground/20" : "bg-primary/10 text-primary")}>
113
+ <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")}>
114
114
  <Icon className="size-5" aria-hidden />
115
115
  </span>
116
116
  <span className="min-w-0 flex-1">
@@ -370,7 +370,7 @@ export function ChatComposer({
370
370
  {replyTo ? (
371
371
  <div className="flex items-center gap-2 border-b px-3 py-2" data-testid="genesis-chat-reply-banner">
372
372
  <div className="min-w-0 flex-1 border-l-4 border-primary pl-2">
373
- <div className="text-xs font-semibold text-primary">Replying to {replyName}</div>
373
+ <div className="text-xs font-semibold text-primary-text">Replying to {replyName}</div>
374
374
  <div className="truncate text-xs text-muted-foreground">{previewText(replyTo.body, replyTo.attachments[0]?.kind ?? null, Boolean(replyTo.deletedAt))}</div>
375
375
  </div>
376
376
  <Button type="button" variant="ghost" size="icon" className="size-7 shrink-0" onClick={onCancelReply} aria-label="Cancel reply">
package/src/web/inbox.tsx CHANGED
@@ -166,7 +166,7 @@ function InboxRow(row: InboxPageSlotMap["row"] & ChatInboxRow) {
166
166
  <span className="flex min-w-0 flex-1 flex-col gap-0.5" aria-hidden>
167
167
  <span className="flex items-center gap-2">
168
168
  <span className={cn("min-w-0 flex-1 truncate text-sm", unread ? "font-semibold text-foreground" : "font-medium text-foreground")}>{title}</span>
169
- <span className={cn("shrink-0 text-xs tabular-nums", unread && !item.muted ? "font-medium text-primary" : "text-muted-foreground")}>{timeLabel}</span>
169
+ <span className={cn("shrink-0 text-xs tabular-nums", unread && !item.muted ? "font-medium text-primary-text" : "text-muted-foreground")}>{timeLabel}</span>
170
170
  </span>
171
171
  <span className="flex items-center gap-1.5">
172
172
  <span className={cn("min-w-0 flex-1 truncate text-sm", unread ? "text-foreground" : "text-muted-foreground")}>{preview || " "}</span>
@@ -215,7 +215,7 @@ function renderNodes(nodes: MarkdownNode[], opts: RenderOptions): ReactNode[] {
215
215
  href={n.href}
216
216
  target="_blank"
217
217
  rel="noopener noreferrer"
218
- className={cn("underline underline-offset-2", opts.tone === "primary" ? "text-primary-foreground" : "text-primary")}
218
+ className={cn("underline underline-offset-2", opts.tone === "primary" ? "text-primary-foreground" : "text-primary-text")}
219
219
  >
220
220
  {renderNodes(n.children, opts)}
221
221
  </a>
@@ -232,8 +232,8 @@ function renderNodes(nodes: MarkdownNode[], opts: RenderOptions): ReactNode[] {
232
232
  opts.tone === "primary"
233
233
  ? "bg-primary-foreground/20 text-primary-foreground"
234
234
  : mine
235
- ? "bg-primary/20 text-primary"
236
- : "bg-primary/10 text-primary",
235
+ ? "bg-primary/20 text-primary-text"
236
+ : "bg-primary/10 text-primary-text",
237
237
  )}
238
238
  >
239
239
  @{n.name}
@@ -239,7 +239,7 @@ function ChatRowSlot(row: ChatThreadRow & { highlighted?: boolean }) {
239
239
  {row.firstUnread ? (
240
240
  <div className="my-2 flex items-center gap-2 px-4" role="separator" aria-label="New messages" data-testid="genesis-chat-new-line">
241
241
  <span className="h-px flex-1 bg-primary/40" />
242
- <span className="text-xs font-semibold text-primary">New</span>
242
+ <span className="text-xs font-semibold text-primary-text">New</span>
243
243
  <span className="h-px flex-1 bg-primary/40" />
244
244
  </div>
245
245
  ) : null}
@@ -679,7 +679,7 @@ export function ChatThread({
679
679
  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"
680
680
  aria-label={`Pinned message: ${previewText(pinnedMessage.body, pinnedMessage.attachments[0]?.kind ?? null, Boolean(pinnedMessage.deletedAt))}. Show it`}
681
681
  >
682
- <Pin className="size-3.5 shrink-0 text-primary" aria-hidden />
682
+ <Pin className="size-3.5 shrink-0 text-primary-text" aria-hidden />
683
683
  <span className="truncate">{previewText(pinnedMessage.body, pinnedMessage.attachments[0]?.kind ?? null, Boolean(pinnedMessage.deletedAt))}</span>
684
684
  {pinIds.length > 1 ? <span className="ml-auto shrink-0 text-muted-foreground">+{pinIds.length - 1}</span> : null}
685
685
  </button>
@@ -736,7 +736,7 @@ export function ChatThread({
736
736
  className="h-full"
737
737
  />
738
738
  {dragging ? (
739
- <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">
739
+ <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">
740
740
  <ImagePlus className="size-6" aria-hidden />
741
741
  Drop to attach
742
742
  </div>
@@ -184,7 +184,7 @@ export function VoiceNote({ src, durationMs, waveform, transcript, transcriptSta
184
184
  <div className={cn("pl-11 text-xs italic", primary ? "text-primary-foreground/80" : "text-muted-foreground")}>Transcribing…</div>
185
185
  ) : transcript ? (
186
186
  <Collapsible className="pl-11">
187
- <CollapsibleTrigger className={cn("text-xs font-medium underline-offset-2 hover:underline", primary ? "text-primary-foreground" : "text-primary")}>
187
+ <CollapsibleTrigger className={cn("text-xs font-medium underline-offset-2 hover:underline", primary ? "text-primary-foreground" : "text-primary-text")}>
188
188
  Transcript
189
189
  </CollapsibleTrigger>
190
190
  <CollapsibleContent className="pt-1 text-sm">{transcript}</CollapsibleContent>