@springbrand/message-panel 0.1.3-alpha.17 → 0.1.3-alpha.19

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,5 +1,5 @@
1
1
  import { Atom, CaretDown, CaretRight, Copy } from "@phosphor-icons/react";
2
- import { memo, useEffect, useId, useState } from "react";
2
+ import { memo, useId, useState } from "react";
3
3
  import { MarkdownMessage } from "./markdown-message";
4
4
  import {
5
5
  getToolCallSummary,
@@ -136,12 +136,10 @@ export const ThinkingTraceRow = memo(function ThinkingTraceRow({
136
136
  reasoning: string;
137
137
  running: boolean;
138
138
  }) {
139
- const [open, setOpen] = useState(running);
139
+ const [open, setOpen] = useState(false);
140
140
  const contentId = useId();
141
141
  const summary = reasoning.replace(/\s+/g, " ").trim();
142
142
 
143
- useEffect(() => setOpen(running), [running]);
144
-
145
143
  return (
146
144
  <div
147
145
  className="flex min-w-0 flex-col items-start gap-2"
@@ -167,7 +165,12 @@ export const ThinkingTraceRow = memo(function ThinkingTraceRow({
167
165
  </span>
168
166
  <span className="flex-shrink-0 text-kumo-subtle">Think</span>
169
167
  <span aria-hidden="true">·</span>
170
- <span className="min-w-0 flex-1 truncate">{summary}</span>
168
+ <span
169
+ className="min-w-0 flex-1 truncate"
170
+ style={running ? { direction: "rtl" } : undefined}
171
+ >
172
+ <bdi dir="auto">{summary}</bdi>
173
+ </span>
171
174
  </button>
172
175
  {open && (
173
176
  <div
@@ -59,7 +59,7 @@ export function WorkshopIconButton({
59
59
  }: WorkshopIconButtonProps) {
60
60
  const toneClassName =
61
61
  tone === "primary"
62
- ? "bg-kumo-contrast text-kumo-inverse enabled:hover:bg-kumo-strong enabled:hover:text-kumo-inverse"
62
+ ? "bg-[var(--primary,var(--color-kumo-brand))] text-[var(--primary-foreground,var(--text-color-kumo-inverse))] enabled:hover:bg-[var(--primary-hover,var(--color-kumo-brand-hover))]"
63
63
  : danger
64
64
  ? "text-kumo-subtle enabled:hover:bg-kumo-danger-tint enabled:hover:text-kumo-danger"
65
65
  : "text-kumo-subtle enabled:hover:bg-kumo-tint enabled:hover:text-kumo-default";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springbrand/message-panel",
3
- "version": "0.1.3-alpha.17",
3
+ "version": "0.1.3-alpha.19",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",