@agents24/chat-react 0.5.27 → 0.5.29
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/runtime/index.cjs +9 -13
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.js +7 -13
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/input-contract.d.ts +4 -3
- package/dist/scaffold/index.cjs +3 -7
- package/dist/scaffold/index.cjs.map +1 -1
- package/dist/scaffold/index.js +4 -8
- package/dist/scaffold/index.js.map +1 -1
- package/dist/ui/composer-attachments.d.ts +1 -1
- package/dist/ui/index.cjs +2 -1
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +2 -1
- package/dist/ui/index.js.map +1 -1
- package/package.json +3 -3
- package/scaffold/src/components/chat/chat-composer.tsx +4 -12
package/dist/ui/index.js
CHANGED
|
@@ -719,6 +719,7 @@ function ChatAttachmentRows({
|
|
|
719
719
|
}
|
|
720
720
|
|
|
721
721
|
// src/ui/composer-attachments.ts
|
|
722
|
+
import { normalizeAttachmentMimeType } from "@agents24/client";
|
|
722
723
|
var createId = () => typeof crypto !== "undefined" && "randomUUID" in crypto ? crypto.randomUUID() : `file-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
723
724
|
function createAgentChatComposerFile(file) {
|
|
724
725
|
return {
|
|
@@ -726,7 +727,7 @@ function createAgentChatComposerFile(file) {
|
|
|
726
727
|
type: "file",
|
|
727
728
|
url: URL.createObjectURL(file),
|
|
728
729
|
filename: file.name || "attachment",
|
|
729
|
-
mediaType: file.type
|
|
730
|
+
mediaType: normalizeAttachmentMimeType(file.type, file.name),
|
|
730
731
|
source: file
|
|
731
732
|
};
|
|
732
733
|
}
|