@copilotz/chat-ui 0.6.2 → 0.6.3
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -541,7 +541,7 @@ var getStatusIcon = (toolCall) => {
|
|
|
541
541
|
return /* @__PURE__ */ jsx7(Badge, { variant: "secondary", children: "pending" });
|
|
542
542
|
};
|
|
543
543
|
var AssistantActivitySkeleton = memo(function AssistantActivitySkeleton2() {
|
|
544
|
-
return /* @__PURE__ */ jsxs2("div", { className: "mb-
|
|
544
|
+
return /* @__PURE__ */ jsxs2("div", { className: "mb-4 flex items-center gap-3 rounded-lg border border-border/50 bg-muted/20 px-3 py-2", children: [
|
|
545
545
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-1.5", children: [
|
|
546
546
|
/* @__PURE__ */ jsx7("span", { className: "inline-block h-2 w-2 rounded-full bg-primary/80 animate-pulse" }),
|
|
547
547
|
/* @__PURE__ */ jsx7("span", { className: "inline-block h-2 w-2 rounded-full bg-primary/60 animate-pulse [animation-delay:120ms]" }),
|
|
@@ -606,7 +606,7 @@ var AssistantActivity = memo(function AssistantActivity2({
|
|
|
606
606
|
}
|
|
607
607
|
if (displayMode === "summary") {
|
|
608
608
|
if (!activity.isActive && activity.isComplete) return null;
|
|
609
|
-
return /* @__PURE__ */ jsx7("div", { className: "mb-
|
|
609
|
+
return /* @__PURE__ */ jsx7("div", { className: "mb-4 w-full", children: /* @__PURE__ */ jsx7(AssistantActivitySummary, { activity, labels }) });
|
|
610
610
|
}
|
|
611
611
|
const hasDetails = Boolean(activity.reasoning) || Boolean(activity.toolCalls?.length);
|
|
612
612
|
const defaultOpen = activity.isActive && hasDetails;
|
|
@@ -616,9 +616,9 @@ var AssistantActivity = memo(function AssistantActivity2({
|
|
|
616
616
|
setOpen(true);
|
|
617
617
|
}
|
|
618
618
|
}, [activity.isActive, hasDetails]);
|
|
619
|
-
return /* @__PURE__ */ jsx7("div", { className: "mb-
|
|
620
|
-
/* @__PURE__ */ jsxs2("div", { className: "
|
|
621
|
-
/* @__PURE__ */ jsx7("div", { className: "min-w-0
|
|
619
|
+
return /* @__PURE__ */ jsx7("div", { className: "mb-4 w-full", children: /* @__PURE__ */ jsx7(Collapsible, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs2("div", { className: "space-y-2", children: [
|
|
620
|
+
/* @__PURE__ */ jsxs2("div", { className: "grid w-full grid-cols-[minmax(0,1fr)_auto] items-center gap-2", children: [
|
|
621
|
+
/* @__PURE__ */ jsx7("div", { className: "min-w-0 w-full", children: /* @__PURE__ */ jsx7(AssistantActivitySummary, { activity, labels }) }),
|
|
622
622
|
hasDetails && /* @__PURE__ */ jsx7(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs2(Button, { variant: "ghost", size: "sm", className: "h-9 shrink-0 px-2 text-xs text-muted-foreground", children: [
|
|
623
623
|
open ? labels?.activityHideDetails || "Hide details" : labels?.activityShowDetails || "Show details",
|
|
624
624
|
open ? /* @__PURE__ */ jsx7(ChevronDown, { className: "ml-1 h-3.5 w-3.5" }) : /* @__PURE__ */ jsx7(ChevronRight, { className: "ml-1 h-3.5 w-3.5" })
|