@startsimpli/ui 0.4.29 → 0.4.30

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": "@startsimpli/ui",
3
- "version": "0.4.29",
3
+ "version": "0.4.30",
4
4
  "description": "Shared UI components package for StartSimpli applications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -91,14 +91,14 @@ export function ChatMessage({ message, renderContent, className }: ChatMessagePr
91
91
  data-status={status}
92
92
  aria-busy={isStreaming || undefined}
93
93
  className={cn(
94
- 'mx-auto flex max-w-[90%] items-center gap-2 rounded-md border border-border bg-muted/40 px-3 py-1.5 text-xs text-muted-foreground',
94
+ 'mx-auto flex max-w-[90%] items-start gap-2 rounded-md border border-border bg-muted/40 px-3 py-1.5 text-xs text-muted-foreground',
95
95
  isError && 'border-red-300 bg-red-50 text-red-700',
96
96
  className
97
97
  )}
98
98
  >
99
- {kind === 'tool' && <Wrench className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />}
100
- {toolName && <span className="font-medium text-foreground">{toolName}</span>}
101
- <span className="truncate">{content}</span>
99
+ {kind === 'tool' && <Wrench className="mt-0.5 h-3.5 w-3.5 shrink-0" aria-hidden="true" />}
100
+ {toolName && <span className="shrink-0 font-medium text-foreground">{toolName}</span>}
101
+ <span className="min-w-0 whitespace-pre-wrap break-words">{content}</span>
102
102
  {isStreaming && <StreamingDots />}
103
103
  </div>
104
104
  )