@optilogic/chat 1.3.5 → 1.3.7
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/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/agent-response/components/ActionBar.tsx +3 -3
- package/src/components/agent-response/components/HITLSection.tsx +1 -1
- package/src/components/agent-response/components/MetadataRow.tsx +1 -1
- package/src/components/agent-response/components/ThinkingSection.tsx +1 -1
- package/src/components/agent-timeline/AgentTimeline.tsx +3 -3
- package/src/components/agent-timeline/TimelineAgentBlock.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optilogic/chat",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Chat UI components for Optilogic - AgentResponse and related components for LLM interactions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@optilogic/core": "1.3.
|
|
28
|
-
"@optilogic/editor": "1.3.
|
|
27
|
+
"@optilogic/core": "1.3.7",
|
|
28
|
+
"@optilogic/editor": "1.3.7"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -111,7 +111,7 @@ const ActionBar = React.forwardRef<HTMLDivElement, ActionBarProps>(
|
|
|
111
111
|
<button
|
|
112
112
|
data-tour={copyAnchor}
|
|
113
113
|
onClick={handleCopy}
|
|
114
|
-
className="p-1.5 rounded hover:bg-
|
|
114
|
+
className="p-1.5 rounded hover:bg-hover transition-colors text-muted-foreground hover:text-foreground"
|
|
115
115
|
title={copied ? "Copied!" : "Copy response"}
|
|
116
116
|
>
|
|
117
117
|
{copied ? (
|
|
@@ -126,7 +126,7 @@ const ActionBar = React.forwardRef<HTMLDivElement, ActionBarProps>(
|
|
|
126
126
|
data-tour={thumbsUpAnchor}
|
|
127
127
|
onClick={handleThumbsUp}
|
|
128
128
|
className={cn(
|
|
129
|
-
"p-1.5 rounded hover:bg-
|
|
129
|
+
"p-1.5 rounded hover:bg-hover transition-colors",
|
|
130
130
|
isThumbsUp
|
|
131
131
|
? "text-green-500"
|
|
132
132
|
: "text-muted-foreground hover:text-foreground"
|
|
@@ -141,7 +141,7 @@ const ActionBar = React.forwardRef<HTMLDivElement, ActionBarProps>(
|
|
|
141
141
|
data-tour={thumbsDownAnchor}
|
|
142
142
|
onClick={handleThumbsDown}
|
|
143
143
|
className={cn(
|
|
144
|
-
"p-1.5 rounded hover:bg-
|
|
144
|
+
"p-1.5 rounded hover:bg-hover transition-colors",
|
|
145
145
|
isThumbsDown
|
|
146
146
|
? "text-red-500"
|
|
147
147
|
: "text-muted-foreground hover:text-foreground"
|
|
@@ -65,7 +65,7 @@ const HITLSection = React.forwardRef<HTMLDivElement, HITLSectionProps>(
|
|
|
65
65
|
{/* Collapsible header */}
|
|
66
66
|
<button
|
|
67
67
|
onClick={toggleExpanded}
|
|
68
|
-
className="w-full flex items-center gap-2 py-2 px-3 hover:bg-
|
|
68
|
+
className="w-full flex items-center gap-2 py-2 px-3 hover:bg-hover transition-colors text-left"
|
|
69
69
|
>
|
|
70
70
|
{isExpanded ? (
|
|
71
71
|
<ChevronDown className="w-3.5 h-3.5 text-muted-foreground flex-shrink-0" />
|
|
@@ -144,7 +144,7 @@ const MetadataRow = React.forwardRef<HTMLDivElement, MetadataRowProps>(
|
|
|
144
144
|
<button
|
|
145
145
|
data-tour={thinkingToggleAnchor}
|
|
146
146
|
onClick={onToggle}
|
|
147
|
-
className="flex items-center gap-1.5 hover:bg-
|
|
147
|
+
className="flex items-center gap-1.5 hover:bg-hover -ml-1.5 pl-1.5 pr-2 py-0.5 rounded transition-colors shrink-0"
|
|
148
148
|
>
|
|
149
149
|
{leftContent}
|
|
150
150
|
</button>
|
|
@@ -45,7 +45,7 @@ const ThinkingStepItem: React.FC<ThinkingStepItemProps> = ({ step, renderMarkdow
|
|
|
45
45
|
<div className="border-b border-border/50 last:border-b-0">
|
|
46
46
|
<button
|
|
47
47
|
onClick={toggleCollapse}
|
|
48
|
-
className="w-full flex items-center gap-1.5 py-1.5 px-2 hover:bg-
|
|
48
|
+
className="w-full flex items-center gap-1.5 py-1.5 px-2 hover:bg-hover transition-colors text-left"
|
|
49
49
|
style={{ paddingLeft: `${indentPadding + 8}px` }}
|
|
50
50
|
>
|
|
51
51
|
{isCollapsed ? (
|
|
@@ -167,7 +167,7 @@ export function AgentTimeline({ entries, renderMarkdown, uiState, maxHeight = "3
|
|
|
167
167
|
className={`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] transition-colors ${
|
|
168
168
|
isActive
|
|
169
169
|
? "bg-accent text-accent-foreground ring-1 ring-accent-foreground/20"
|
|
170
|
-
: "text-muted-foreground/60 hover:text-muted-foreground hover:bg-
|
|
170
|
+
: "text-muted-foreground/60 hover:text-muted-foreground hover:bg-hover"
|
|
171
171
|
}`}
|
|
172
172
|
title={`${isActive ? "Hide" : "Show only"} ${tc.label}`}
|
|
173
173
|
>
|
|
@@ -195,14 +195,14 @@ export function AgentTimeline({ entries, renderMarkdown, uiState, maxHeight = "3
|
|
|
195
195
|
<>
|
|
196
196
|
<button
|
|
197
197
|
onClick={collapseAll}
|
|
198
|
-
className="inline-flex items-center gap-0.5 text-[10px] text-muted-foreground/60 hover:text-muted-foreground px-1 py-0.5 rounded hover:bg-
|
|
198
|
+
className="inline-flex items-center gap-0.5 text-[10px] text-muted-foreground/60 hover:text-muted-foreground px-1 py-0.5 rounded hover:bg-hover transition-colors"
|
|
199
199
|
title="Collapse all"
|
|
200
200
|
>
|
|
201
201
|
<ChevronsDownUp className="w-3 h-3" />
|
|
202
202
|
</button>
|
|
203
203
|
<button
|
|
204
204
|
onClick={expandAll}
|
|
205
|
-
className="inline-flex items-center gap-0.5 text-[10px] text-muted-foreground/60 hover:text-muted-foreground px-1 py-0.5 rounded hover:bg-
|
|
205
|
+
className="inline-flex items-center gap-0.5 text-[10px] text-muted-foreground/60 hover:text-muted-foreground px-1 py-0.5 rounded hover:bg-hover transition-colors"
|
|
206
206
|
title="Expand all"
|
|
207
207
|
>
|
|
208
208
|
<ChevronsUpDown className="w-3 h-3" />
|
|
@@ -50,7 +50,7 @@ export function TimelineAgentBlock({
|
|
|
50
50
|
{/* Agent header */}
|
|
51
51
|
<button
|
|
52
52
|
onClick={onToggleCollapsed}
|
|
53
|
-
className="w-full flex items-center gap-1.5 py-1 hover:bg-
|
|
53
|
+
className="w-full flex items-center gap-1.5 py-1 hover:bg-hover -ml-1 pl-1 pr-2 rounded transition-colors text-left"
|
|
54
54
|
>
|
|
55
55
|
{isCollapsed ? (
|
|
56
56
|
<ChevronRight className="w-3 h-3 text-muted-foreground flex-shrink-0" />
|