@copilotkit/react-ui 1.72.1-canary.sp-longthread-perf → 1.73.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/react-ui",
3
- "version": "1.72.1-canary.sp-longthread-perf",
3
+ "version": "1.73.1",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -42,16 +42,16 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@copilotkit/react-core": "1.72.1-canary.sp-longthread-perf",
46
- "@copilotkit/runtime-client-gql": "1.72.1-canary.sp-longthread-perf",
47
- "@copilotkit/shared": "1.72.1-canary.sp-longthread-perf",
48
45
  "@headlessui/react": "^2.2.9",
49
46
  "react-markdown": "^10.1.0",
50
47
  "react-syntax-highlighter": "^16.1.1",
51
48
  "rehype-raw": "^7.0.0",
52
49
  "rehype-sanitize": "^6.0.0",
53
50
  "remark-gfm": "^4.0.1",
54
- "remark-math": "^6.0.0"
51
+ "remark-math": "^6.0.0",
52
+ "@copilotkit/react-core": "1.73.1",
53
+ "@copilotkit/shared": "1.73.1",
54
+ "@copilotkit/runtime-client-gql": "1.73.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/react": "^19.1.0",
@@ -106,6 +106,7 @@ import type {
106
106
  ChatSuggestions,
107
107
  } from "@copilotkit/react-core";
108
108
  import {
109
+ createAttachmentContent,
109
110
  CopilotKitError,
110
111
  CopilotKitErrorCode,
111
112
  Severity,
@@ -753,14 +754,7 @@ export function CopilotChat({
753
754
  }
754
755
 
755
756
  for (const attachment of currentAttachments) {
756
- contentParts.push({
757
- type: attachment.type,
758
- source: attachment.source,
759
- metadata: {
760
- ...(attachment.filename ? { filename: attachment.filename } : {}),
761
- ...attachment.metadata,
762
- },
763
- } as InputContent);
757
+ contentParts.push(createAttachmentContent(attachment));
764
758
  }
765
759
 
766
760
  return sendMessage({