@alquimia-ai/ui 1.9.0 → 1.9.2
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/components/organisms/index.js +32 -34
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +32 -34
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/index.js +32 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2790,8 +2790,8 @@ var AssistantMessageArea = React34.forwardRef(
|
|
|
2790
2790
|
{
|
|
2791
2791
|
role: "assistant",
|
|
2792
2792
|
"data-error-code": message.error_code,
|
|
2793
|
-
additionalInfo: showDetailedErrors ? `${message.error_detail}
|
|
2794
|
-
stream id: ${message.stream_id}` : void 0,
|
|
2793
|
+
additionalInfo: showDetailedErrors ? `${message.error_detail}${message.stream_id ? `
|
|
2794
|
+
stream id: ${message.stream_id}` : ""}` : void 0,
|
|
2795
2795
|
toggleAdditionalInfo: true,
|
|
2796
2796
|
children: getErrorMessage(message.error_code)
|
|
2797
2797
|
}
|
|
@@ -2913,44 +2913,42 @@ var AssistantInput = React34.forwardRef(
|
|
|
2913
2913
|
...props,
|
|
2914
2914
|
children: [
|
|
2915
2915
|
attachmentsSlot,
|
|
2916
|
-
/* @__PURE__ */
|
|
2916
|
+
/* @__PURE__ */ jsx43(
|
|
2917
|
+
"textarea",
|
|
2918
|
+
{
|
|
2919
|
+
disabled: isButtonDisabled,
|
|
2920
|
+
value: input,
|
|
2921
|
+
onChange: handleInputChange,
|
|
2922
|
+
placeholder,
|
|
2923
|
+
className: cn(
|
|
2924
|
+
"flex-1 min-w-0 text-sm p-3 focus:outline-none w-full resize-none",
|
|
2925
|
+
"bg-transparent text-foreground",
|
|
2926
|
+
"placeholder:text-muted-foreground",
|
|
2927
|
+
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
2928
|
+
),
|
|
2929
|
+
onKeyDown: (e) => {
|
|
2930
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
2931
|
+
e.preventDefault();
|
|
2932
|
+
sendMessageFunc(e);
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
),
|
|
2937
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex items-center relative alq--assistant-actions", children: [
|
|
2938
|
+
userToolboxComponent,
|
|
2939
|
+
speechToTextComponent,
|
|
2917
2940
|
/* @__PURE__ */ jsx43(
|
|
2918
|
-
"
|
|
2941
|
+
"button",
|
|
2919
2942
|
{
|
|
2943
|
+
type: "submit",
|
|
2920
2944
|
disabled: isButtonDisabled,
|
|
2921
|
-
value: input,
|
|
2922
|
-
onChange: handleInputChange,
|
|
2923
|
-
placeholder,
|
|
2924
2945
|
className: cn(
|
|
2925
|
-
"
|
|
2926
|
-
"bg-
|
|
2927
|
-
"placeholder:text-muted-foreground",
|
|
2928
|
-
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
2946
|
+
"w-10 h-10 rounded-full flex items-center justify-center alq--assistant-button-send",
|
|
2947
|
+
isButtonDisabled ? "bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
2929
2948
|
),
|
|
2930
|
-
|
|
2931
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
2932
|
-
e.preventDefault();
|
|
2933
|
-
sendMessageFunc(e);
|
|
2934
|
-
}
|
|
2935
|
-
}
|
|
2949
|
+
children: /* @__PURE__ */ jsx43(Send, { className: "w-5 h-5" })
|
|
2936
2950
|
}
|
|
2937
|
-
)
|
|
2938
|
-
/* @__PURE__ */ jsxs20("div", { className: "relative alq--assistant-actions", children: [
|
|
2939
|
-
userToolboxComponent && userToolboxComponent,
|
|
2940
|
-
speechToTextComponent && speechToTextComponent,
|
|
2941
|
-
/* @__PURE__ */ jsx43(
|
|
2942
|
-
"button",
|
|
2943
|
-
{
|
|
2944
|
-
type: "submit",
|
|
2945
|
-
disabled: isButtonDisabled,
|
|
2946
|
-
className: cn(
|
|
2947
|
-
"w-10 h-10 rounded-full flex items-center justify-center alq--assistant-button-send",
|
|
2948
|
-
isButtonDisabled ? "bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
2949
|
-
),
|
|
2950
|
-
children: /* @__PURE__ */ jsx43(Send, { className: "w-5 h-5" })
|
|
2951
|
-
}
|
|
2952
|
-
)
|
|
2953
|
-
] })
|
|
2951
|
+
)
|
|
2954
2952
|
] })
|
|
2955
2953
|
]
|
|
2956
2954
|
}
|