@copilotkit/react-ui 1.73.0 → 1.73.2-canary.1790068297

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.umd.js CHANGED
@@ -2428,14 +2428,7 @@ rehype_sanitize = __toESM(rehype_sanitize);
2428
2428
  type: "text",
2429
2429
  text
2430
2430
  });
2431
- for (const attachment of currentAttachments) contentParts.push({
2432
- type: attachment.type,
2433
- source: attachment.source,
2434
- metadata: {
2435
- ...attachment.filename ? { filename: attachment.filename } : {},
2436
- ...attachment.metadata
2437
- }
2438
- });
2431
+ for (const attachment of currentAttachments) contentParts.push((0, _copilotkit_shared.createAttachmentContent)(attachment));
2439
2432
  return sendMessage({
2440
2433
  id: (0, _copilotkit_shared.randomUUID)(),
2441
2434
  content: contentParts,