@docyrus/ui-pro-ai-assistant 0.3.6 → 0.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.js CHANGED
@@ -2548,7 +2548,7 @@ function toAgentTriggerData(id, data) {
2548
2548
  id,
2549
2549
  name: agent.agent_name || agent.name || "",
2550
2550
  avatar: resolveAvatar(agent),
2551
- welcomeMessage: agent.welcomeMessage || agent.welcome_message || null,
2551
+ welcomeMessage: data.welcomeMessage || data.welcome_message || agent.welcomeMessage || agent.welcome_message || null,
2552
2552
  description: agent.description ?? null,
2553
2553
  capabilities: extractCapabilities(agent),
2554
2554
  models: agent.models ?? [],
@@ -26442,17 +26442,14 @@ function AgentTriggerWidget({
26442
26442
  );
26443
26443
  const welcomeText = currentAgent?.welcomeMessage ?? "";
26444
26444
  if (isLoading) {
26445
- return /* @__PURE__ */ jsxs(
26445
+ return /* @__PURE__ */ jsx(
26446
26446
  "div",
26447
26447
  {
26448
26448
  className: cn(
26449
- "flex flex-1 flex-col items-center justify-center gap-3",
26449
+ "flex h-full flex-1 flex-col items-center justify-center gap-3",
26450
26450
  className
26451
26451
  ),
26452
- children: [
26453
- /* @__PURE__ */ jsx(Loader2, { className: "size-8 animate-spin text-muted-foreground" }),
26454
- /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: t("common.loading") || "Loading..." })
26455
- ]
26452
+ children: /* @__PURE__ */ jsx(Loader2, { className: "size-8 animate-spin text-muted-foreground" })
26456
26453
  }
26457
26454
  );
26458
26455
  }
@@ -26461,7 +26458,7 @@ function AgentTriggerWidget({
26461
26458
  "div",
26462
26459
  {
26463
26460
  className: cn(
26464
- "flex flex-1 flex-col items-center justify-center gap-3",
26461
+ "flex h-full flex-1 flex-col items-center justify-center gap-3",
26465
26462
  className
26466
26463
  ),
26467
26464
  children: [
@@ -26484,7 +26481,7 @@ function AgentTriggerWidget({
26484
26481
  "div",
26485
26482
  {
26486
26483
  className: cn(
26487
- "flex flex-1 flex-col items-center justify-center",
26484
+ "flex h-full flex-1 flex-col items-center justify-center",
26488
26485
  className
26489
26486
  ),
26490
26487
  children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("messages.no_agents") || "No agents available" })
@@ -26512,7 +26509,7 @@ function AgentTriggerWidget({
26512
26509
  onNavigate: navigateCarousel
26513
26510
  }
26514
26511
  ),
26515
- /* @__PURE__ */ jsx("div", { className: "mt-2 text-center", children: welcomeText ? /* @__PURE__ */ jsx("p", { className: "line-clamp-2 min-h-10 max-w-lg text-sm text-muted-foreground", children: welcomeText }) : /* @__PURE__ */ jsx("div", { className: "min-h-10" }) })
26512
+ /* @__PURE__ */ jsx("div", { className: "mt-2 text-center", children: welcomeText ? /* @__PURE__ */ jsx("div", { className: "line-clamp-2 min-h-10 max-w-lg text-sm text-muted-foreground [&_p]:m-0", children: /* @__PURE__ */ jsx(MessageResponse, { children: welcomeText }) }) : /* @__PURE__ */ jsx("div", { className: "min-h-10" }) })
26516
26513
  ] }),
26517
26514
  /* @__PURE__ */ jsx("div", { className: "flex h-fit w-full grow items-end justify-center px-6 pb-6", children: /* @__PURE__ */ jsx(
26518
26515
  AgentTriggerPrompt,