@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
package/dist/index.mjs
CHANGED
|
@@ -2999,8 +2999,8 @@ var AssistantMessageArea = React34.forwardRef(
|
|
|
2999
2999
|
{
|
|
3000
3000
|
role: "assistant",
|
|
3001
3001
|
"data-error-code": message.error_code,
|
|
3002
|
-
additionalInfo: showDetailedErrors ? `${message.error_detail}
|
|
3003
|
-
stream id: ${message.stream_id}` : void 0,
|
|
3002
|
+
additionalInfo: showDetailedErrors ? `${message.error_detail}${message.stream_id ? `
|
|
3003
|
+
stream id: ${message.stream_id}` : ""}` : void 0,
|
|
3004
3004
|
toggleAdditionalInfo: true,
|
|
3005
3005
|
children: getErrorMessage(message.error_code)
|
|
3006
3006
|
}
|
|
@@ -3122,44 +3122,42 @@ var AssistantInput = React34.forwardRef(
|
|
|
3122
3122
|
...props,
|
|
3123
3123
|
children: [
|
|
3124
3124
|
attachmentsSlot,
|
|
3125
|
-
/* @__PURE__ */
|
|
3125
|
+
/* @__PURE__ */ jsx48(
|
|
3126
|
+
"textarea",
|
|
3127
|
+
{
|
|
3128
|
+
disabled: isButtonDisabled,
|
|
3129
|
+
value: input,
|
|
3130
|
+
onChange: handleInputChange,
|
|
3131
|
+
placeholder,
|
|
3132
|
+
className: cn(
|
|
3133
|
+
"flex-1 min-w-0 text-sm p-3 focus:outline-none w-full resize-none",
|
|
3134
|
+
"bg-transparent text-foreground",
|
|
3135
|
+
"placeholder:text-muted-foreground",
|
|
3136
|
+
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
3137
|
+
),
|
|
3138
|
+
onKeyDown: (e) => {
|
|
3139
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
3140
|
+
e.preventDefault();
|
|
3141
|
+
sendMessageFunc(e);
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
),
|
|
3146
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center relative alq--assistant-actions", children: [
|
|
3147
|
+
userToolboxComponent,
|
|
3148
|
+
speechToTextComponent,
|
|
3126
3149
|
/* @__PURE__ */ jsx48(
|
|
3127
|
-
"
|
|
3150
|
+
"button",
|
|
3128
3151
|
{
|
|
3152
|
+
type: "submit",
|
|
3129
3153
|
disabled: isButtonDisabled,
|
|
3130
|
-
value: input,
|
|
3131
|
-
onChange: handleInputChange,
|
|
3132
|
-
placeholder,
|
|
3133
3154
|
className: cn(
|
|
3134
|
-
"
|
|
3135
|
-
"bg-
|
|
3136
|
-
"placeholder:text-muted-foreground",
|
|
3137
|
-
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
3155
|
+
"w-10 h-10 rounded-full flex items-center justify-center alq--assistant-button-send",
|
|
3156
|
+
isButtonDisabled ? "bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
3138
3157
|
),
|
|
3139
|
-
|
|
3140
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
3141
|
-
e.preventDefault();
|
|
3142
|
-
sendMessageFunc(e);
|
|
3143
|
-
}
|
|
3144
|
-
}
|
|
3158
|
+
children: /* @__PURE__ */ jsx48(Send, { className: "w-5 h-5" })
|
|
3145
3159
|
}
|
|
3146
|
-
)
|
|
3147
|
-
/* @__PURE__ */ jsxs22("div", { className: "relative alq--assistant-actions", children: [
|
|
3148
|
-
userToolboxComponent && userToolboxComponent,
|
|
3149
|
-
speechToTextComponent && speechToTextComponent,
|
|
3150
|
-
/* @__PURE__ */ jsx48(
|
|
3151
|
-
"button",
|
|
3152
|
-
{
|
|
3153
|
-
type: "submit",
|
|
3154
|
-
disabled: isButtonDisabled,
|
|
3155
|
-
className: cn(
|
|
3156
|
-
"w-10 h-10 rounded-full flex items-center justify-center alq--assistant-button-send",
|
|
3157
|
-
isButtonDisabled ? "bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
3158
|
-
),
|
|
3159
|
-
children: /* @__PURE__ */ jsx48(Send, { className: "w-5 h-5" })
|
|
3160
|
-
}
|
|
3161
|
-
)
|
|
3162
|
-
] })
|
|
3160
|
+
)
|
|
3163
3161
|
] })
|
|
3164
3162
|
]
|
|
3165
3163
|
}
|