@optilogic/chat 1.0.0-beta.12 → 1.0.0-beta.13
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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/agent-response/AgentResponse.tsx +9 -1
- package/src/components/agent-response/components/ThinkingSection.tsx +1 -1
- package/src/components/agent-timeline/AgentTimeline.tsx +1 -1
package/dist/index.cjs
CHANGED
|
@@ -255,7 +255,7 @@ var ThinkingSection = React11__namespace.forwardRef(
|
|
|
255
255
|
ref,
|
|
256
256
|
className: core.cn("px-3 pb-3 border-t border-border", className),
|
|
257
257
|
...props,
|
|
258
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 max-h-[200px] overflow-y-auto
|
|
258
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 max-h-[200px] overflow-y-auto", children: isStructured ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-0", children: content.map((step) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
259
|
ThinkingStepItem,
|
|
260
260
|
{
|
|
261
261
|
step,
|
|
@@ -1245,7 +1245,7 @@ function AgentTimeline({ entries, renderMarkdown, uiState, maxHeight = "300px" }
|
|
|
1245
1245
|
"div",
|
|
1246
1246
|
{
|
|
1247
1247
|
ref: containerRef,
|
|
1248
|
-
className:
|
|
1248
|
+
className: maxHeight !== "none" ? "overflow-y-auto" : "",
|
|
1249
1249
|
style: scrollStyle,
|
|
1250
1250
|
children: [
|
|
1251
1251
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sticky top-0 z-10 bg-background flex items-center gap-1 py-1.5 mb-1 border-b border-border/50 flex-wrap", children: [
|
|
@@ -1344,6 +1344,7 @@ var AgentResponse = React11__namespace.forwardRef(
|
|
|
1344
1344
|
statusContent,
|
|
1345
1345
|
renderMarkdown,
|
|
1346
1346
|
renderThinkingMarkdown,
|
|
1347
|
+
timelineMaxHeight,
|
|
1347
1348
|
className,
|
|
1348
1349
|
...props
|
|
1349
1350
|
}, ref) => {
|
|
@@ -1405,12 +1406,13 @@ var AgentResponse = React11__namespace.forwardRef(
|
|
|
1405
1406
|
elapsedTime
|
|
1406
1407
|
}
|
|
1407
1408
|
),
|
|
1408
|
-
hasTimelineEntries ? thinkingExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
1409
|
+
hasTimelineEntries ? thinkingExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pl-3 pb-3 border-t border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1409
1410
|
AgentTimeline,
|
|
1410
1411
|
{
|
|
1411
1412
|
entries: state.timelineEntries,
|
|
1412
1413
|
renderMarkdown: renderThinkingMarkdown,
|
|
1413
|
-
uiState: timelineUIStateRef.current
|
|
1414
|
+
uiState: timelineUIStateRef.current,
|
|
1415
|
+
maxHeight: timelineMaxHeight
|
|
1414
1416
|
}
|
|
1415
1417
|
) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1416
1418
|
ThinkingSection,
|