@agents24/chat-react 0.5.17 → 0.5.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.
- package/dist/index.cjs +15 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/latest-thread-scroller.d.ts +5 -2
- package/dist/ui/agent-response-timeline.d.ts +4 -2
- package/dist/ui/index.cjs +7 -1
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +7 -1
- package/dist/ui/index.js.map +1 -1
- package/package.json +3 -3
package/dist/ui/index.js
CHANGED
|
@@ -2506,7 +2506,9 @@ function AgentResponseTimeline({
|
|
|
2506
2506
|
message,
|
|
2507
2507
|
nodeActivityMode = "default",
|
|
2508
2508
|
onHitlAction,
|
|
2509
|
+
onNodeSelect,
|
|
2509
2510
|
parts: displayParts,
|
|
2511
|
+
renderUiBlocks,
|
|
2510
2512
|
responseProps,
|
|
2511
2513
|
toolSlots,
|
|
2512
2514
|
toolViewMode = "closed"
|
|
@@ -2547,10 +2549,14 @@ function AgentResponseTimeline({
|
|
|
2547
2549
|
const key = activeActivityClaimed ? part.id : `${message.id}-active-activity`;
|
|
2548
2550
|
if (part.status === "running") activeActivityClaimed = true;
|
|
2549
2551
|
rendered.push(
|
|
2550
|
-
part.status === "running" ? /* @__PURE__ */ jsx10(AgentChatActivityRow, { label: part.label }, key) : /* @__PURE__ */ jsx10(AgentChatNodeActivityRow, { part }, part.id)
|
|
2552
|
+
part.status === "running" ? /* @__PURE__ */ jsx10(AgentChatActivityRow, { label: part.label, onSelect: onNodeSelect ? () => onNodeSelect(part) : void 0 }, key) : /* @__PURE__ */ jsx10(AgentChatNodeActivityRow, { onSelect: onNodeSelect, part }, part.id)
|
|
2551
2553
|
);
|
|
2552
2554
|
continue;
|
|
2553
2555
|
}
|
|
2556
|
+
if (part.kind === "ui-blocks" && renderUiBlocks) {
|
|
2557
|
+
rendered.push(/* @__PURE__ */ jsx10(React9.Fragment, { children: renderUiBlocks(part) }, part.id));
|
|
2558
|
+
continue;
|
|
2559
|
+
}
|
|
2554
2560
|
rendered.push(
|
|
2555
2561
|
/* @__PURE__ */ jsx10(React9.Fragment, { children: /* @__PURE__ */ jsx10(
|
|
2556
2562
|
AgentChatPart,
|