@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/dist/index.js
CHANGED
|
@@ -194,7 +194,7 @@ var MetadataRow = React11.forwardRef(
|
|
|
194
194
|
{
|
|
195
195
|
"data-tour": thinkingToggleAnchor,
|
|
196
196
|
onClick: onToggle,
|
|
197
|
-
className: "flex items-center gap-1.5 hover:bg-
|
|
197
|
+
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",
|
|
198
198
|
children: leftContent
|
|
199
199
|
}
|
|
200
200
|
) : /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5 shrink-0", children: leftContent }),
|
|
@@ -229,7 +229,7 @@ var ThinkingStepItem = ({ step, renderMarkdown }) => {
|
|
|
229
229
|
"button",
|
|
230
230
|
{
|
|
231
231
|
onClick: toggleCollapse,
|
|
232
|
-
className: "w-full flex items-center gap-1.5 py-1.5 px-2 hover:bg-
|
|
232
|
+
className: "w-full flex items-center gap-1.5 py-1.5 px-2 hover:bg-hover transition-colors text-left",
|
|
233
233
|
style: { paddingLeft: `${indentPadding + 8}px` },
|
|
234
234
|
children: [
|
|
235
235
|
isCollapsed ? /* @__PURE__ */ jsx(ChevronRight, { className: "w-3 h-3 text-muted-foreground flex-shrink-0" }) : /* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3 text-muted-foreground flex-shrink-0" }),
|
|
@@ -325,7 +325,7 @@ var ActionBar = React11.forwardRef(
|
|
|
325
325
|
{
|
|
326
326
|
"data-tour": copyAnchor,
|
|
327
327
|
onClick: handleCopy,
|
|
328
|
-
className: "p-1.5 rounded hover:bg-
|
|
328
|
+
className: "p-1.5 rounded hover:bg-hover transition-colors text-muted-foreground hover:text-foreground",
|
|
329
329
|
title: copied ? "Copied!" : "Copy response",
|
|
330
330
|
children: copied ? /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ jsx(Copy, { className: "w-4 h-4" })
|
|
331
331
|
}
|
|
@@ -336,7 +336,7 @@ var ActionBar = React11.forwardRef(
|
|
|
336
336
|
"data-tour": thumbsUpAnchor,
|
|
337
337
|
onClick: handleThumbsUp,
|
|
338
338
|
className: cn(
|
|
339
|
-
"p-1.5 rounded hover:bg-
|
|
339
|
+
"p-1.5 rounded hover:bg-hover transition-colors",
|
|
340
340
|
isThumbsUp ? "text-green-500" : "text-muted-foreground hover:text-foreground"
|
|
341
341
|
),
|
|
342
342
|
title: "Good response",
|
|
@@ -349,7 +349,7 @@ var ActionBar = React11.forwardRef(
|
|
|
349
349
|
"data-tour": thumbsDownAnchor,
|
|
350
350
|
onClick: handleThumbsDown,
|
|
351
351
|
className: cn(
|
|
352
|
-
"p-1.5 rounded hover:bg-
|
|
352
|
+
"p-1.5 rounded hover:bg-hover transition-colors",
|
|
353
353
|
isThumbsDown ? "text-red-500" : "text-muted-foreground hover:text-foreground"
|
|
354
354
|
),
|
|
355
355
|
title: "Poor response",
|
|
@@ -637,7 +637,7 @@ var HITLSection = React11.forwardRef(
|
|
|
637
637
|
"button",
|
|
638
638
|
{
|
|
639
639
|
onClick: toggleExpanded,
|
|
640
|
-
className: "w-full flex items-center gap-2 py-2 px-3 hover:bg-
|
|
640
|
+
className: "w-full flex items-center gap-2 py-2 px-3 hover:bg-hover transition-colors text-left",
|
|
641
641
|
children: [
|
|
642
642
|
isExpanded ? /* @__PURE__ */ jsx(ChevronDown, { className: "w-3.5 h-3.5 text-muted-foreground flex-shrink-0" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "w-3.5 h-3.5 text-muted-foreground flex-shrink-0" }),
|
|
643
643
|
/* @__PURE__ */ jsx(MessageCircleQuestion, { className: "w-3.5 h-3.5 text-muted-foreground flex-shrink-0" }),
|
|
@@ -1154,7 +1154,7 @@ function TimelineAgentBlock({
|
|
|
1154
1154
|
"button",
|
|
1155
1155
|
{
|
|
1156
1156
|
onClick: onToggleCollapsed,
|
|
1157
|
-
className: "w-full flex items-center gap-1.5 py-1 hover:bg-
|
|
1157
|
+
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",
|
|
1158
1158
|
children: [
|
|
1159
1159
|
isCollapsed ? /* @__PURE__ */ jsx(ChevronRight, { className: "w-3 h-3 text-muted-foreground flex-shrink-0" }) : /* @__PURE__ */ jsx(ChevronDown, { className: "w-3 h-3 text-muted-foreground flex-shrink-0" }),
|
|
1160
1160
|
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-foreground/80", children: block.agentName }),
|
|
@@ -1270,7 +1270,7 @@ function AgentTimeline({ entries, renderMarkdown, uiState, maxHeight = "300px" }
|
|
|
1270
1270
|
"button",
|
|
1271
1271
|
{
|
|
1272
1272
|
onClick: () => toggleFilter(tc.type),
|
|
1273
|
-
className: `inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] transition-colors ${isActive ? "bg-accent text-accent-foreground ring-1 ring-accent-foreground/20" : "text-muted-foreground/60 hover:text-muted-foreground hover:bg-
|
|
1273
|
+
className: `inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] transition-colors ${isActive ? "bg-accent text-accent-foreground ring-1 ring-accent-foreground/20" : "text-muted-foreground/60 hover:text-muted-foreground hover:bg-hover"}`,
|
|
1274
1274
|
title: `${isActive ? "Hide" : "Show only"} ${tc.label}`,
|
|
1275
1275
|
children: [
|
|
1276
1276
|
/* @__PURE__ */ jsx(tc.icon, { className: "w-3 h-3" }),
|
|
@@ -1294,7 +1294,7 @@ function AgentTimeline({ entries, renderMarkdown, uiState, maxHeight = "300px" }
|
|
|
1294
1294
|
"button",
|
|
1295
1295
|
{
|
|
1296
1296
|
onClick: collapseAll,
|
|
1297
|
-
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-
|
|
1297
|
+
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",
|
|
1298
1298
|
title: "Collapse all",
|
|
1299
1299
|
children: /* @__PURE__ */ jsx(ChevronsDownUp, { className: "w-3 h-3" })
|
|
1300
1300
|
}
|
|
@@ -1303,7 +1303,7 @@ function AgentTimeline({ entries, renderMarkdown, uiState, maxHeight = "300px" }
|
|
|
1303
1303
|
"button",
|
|
1304
1304
|
{
|
|
1305
1305
|
onClick: expandAll,
|
|
1306
|
-
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-
|
|
1306
|
+
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",
|
|
1307
1307
|
title: "Expand all",
|
|
1308
1308
|
children: /* @__PURE__ */ jsx(ChevronsUpDown, { className: "w-3 h-3" })
|
|
1309
1309
|
}
|