@docyrus/ui-pro-ai-assistant 0.5.5 → 0.5.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 +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5055,7 +5055,8 @@ async function fetchEnums(apiClient, dataSourceId, baseUrl) {
|
|
|
5055
5055
|
if (!res.success || !Array.isArray(res.data)) return null;
|
|
5056
5056
|
const byFieldId = /* @__PURE__ */ new Map();
|
|
5057
5057
|
for (const opt of res.data) {
|
|
5058
|
-
const
|
|
5058
|
+
const nestedField = opt.field;
|
|
5059
|
+
const fieldId = opt.fieldId || opt.field_id || opt.tenant_field_id || nestedField?.id;
|
|
5059
5060
|
if (!fieldId) continue;
|
|
5060
5061
|
let bucket = byFieldId.get(fieldId);
|
|
5061
5062
|
if (!bucket) {
|
|
@@ -14926,7 +14927,7 @@ function ChatPanel({
|
|
|
14926
14927
|
className: "flex flex-1 flex-col items-center overflow-y-auto p-6 transition-all duration-250 ease-out",
|
|
14927
14928
|
style: { opacity: fadingOut ? 0 : 1, transform: fadingOut ? "translateY(-8px)" : "translateY(0)" },
|
|
14928
14929
|
children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col", children: [
|
|
14929
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3
|
|
14930
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 pb-6", children: isLoadingAgent ? /* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "p-2 bg-muted rounded-md", children: /* @__PURE__ */ jsx(Spinner, { className: "size-10 text-muted-foreground" }) }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14930
14931
|
hasAgentAnimations(tenantAiAgentId) ? /* @__PURE__ */ jsx(AssistantAnimations, { animationType: "opening", agentId: tenantAiAgentId, className: "w-10 h-10" }) : logo ? /* @__PURE__ */ jsx(AIMessageAvatar, { src: logo, name: title || "Assistant", className: "w-10 h-10" }) : /* @__PURE__ */ jsx(AssistantAnimations, { animationType: "opening", className: "w-10 h-10" }),
|
|
14931
14932
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground [&_h4]:text-foreground [&_*]:my-0 [&_*+*]:mt-2", children: welcomeMessage ? /* @__PURE__ */ jsx(MessageResponse, { children: welcomeMessage }) : /* @__PURE__ */ jsx("p", { children: description || "Your AI-powered assistant for all your document needs." }) }),
|
|
14932
14933
|
/* @__PURE__ */ jsx("div", { className: "mt-2", children: renderInputArea(true) })
|