@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/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 || "application/octet-stream",
730
+ mediaType: normalizeAttachmentMimeType(file.type, file.name),
730
731
  source: file
731
732
  };
732
733
  }