@copilotkit/react-ui 1.62.0 → 1.62.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/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -6
- package/src/components/chat/Chat.tsx +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/react-ui",
|
|
3
|
-
"version": "1.62.
|
|
3
|
+
"version": "1.62.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"rehype-sanitize": "^6.0.0",
|
|
50
50
|
"remark-gfm": "^4.0.1",
|
|
51
51
|
"remark-math": "^6.0.0",
|
|
52
|
-
"@copilotkit/
|
|
53
|
-
"@copilotkit/
|
|
54
|
-
"@copilotkit/shared": "1.62.
|
|
52
|
+
"@copilotkit/react-core": "1.62.2",
|
|
53
|
+
"@copilotkit/runtime-client-gql": "1.62.2",
|
|
54
|
+
"@copilotkit/shared": "1.62.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.1.0",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"tsdown": "^0.20.3",
|
|
65
65
|
"typescript": "^5.2.3",
|
|
66
66
|
"vitest": "^3.2.4",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
67
|
+
"tailwind-config": "1.4.12",
|
|
68
|
+
"tsconfig": "1.4.12"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": "^18 || ^19 || ^19.0.0-rc"
|
|
@@ -236,16 +236,19 @@ export interface CopilotChatProps {
|
|
|
236
236
|
* Configuration for file attachments in the chat input.
|
|
237
237
|
* Enables users to attach images, audio, video, and documents.
|
|
238
238
|
*
|
|
239
|
+
* Supports images, audio, video, and documents. Omit `accept` to allow all
|
|
240
|
+
* file types (default: `"*\/*"`), or restrict with a MIME filter.
|
|
241
|
+
*
|
|
239
242
|
* @example
|
|
240
243
|
* ```tsx
|
|
241
244
|
* <CopilotChat
|
|
242
245
|
* attachments={{
|
|
243
246
|
* enabled: true,
|
|
244
|
-
* accept: "image/*,application/pdf",
|
|
247
|
+
* accept: "image/*,audio/*,video/*,application/pdf",
|
|
245
248
|
* maxSize: 10 * 1024 * 1024, // 10MB
|
|
246
249
|
* onUpload: async (file) => {
|
|
247
250
|
* const url = await uploadToS3(file);
|
|
248
|
-
* return { url, mimeType: file.type };
|
|
251
|
+
* return { type: "url", value: url, mimeType: file.type };
|
|
249
252
|
* },
|
|
250
253
|
* }}
|
|
251
254
|
* />
|