@copilotkit/react-core 1.70.1 → 1.70.3
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/{copilotkit-DiUK2Bhq.mjs → copilotkit-Ap_yisA5.mjs} +470 -98
- package/dist/copilotkit-Ap_yisA5.mjs.map +1 -0
- package/dist/{copilotkit-CxLT6zFx.cjs → copilotkit-BU3OvveB.cjs} +468 -96
- package/dist/copilotkit-BU3OvveB.cjs.map +1 -0
- package/dist/{copilotkit-DsWuxPUQ.d.mts → copilotkit-Bs98akp9.d.mts} +32 -2
- package/dist/{copilotkit-DsWuxPUQ.d.mts.map → copilotkit-Bs98akp9.d.mts.map} +1 -1
- package/dist/{copilotkit-CtF2clxZ.d.cts → copilotkit-X2eGbOwf.d.cts} +32 -2
- package/dist/{copilotkit-CtF2clxZ.d.cts.map → copilotkit-X2eGbOwf.d.cts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +273 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/headless.cjs +97 -2
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.d.cts.map +1 -1
- package/dist/v2/headless.d.mts.map +1 -1
- package/dist/v2/headless.mjs +98 -3
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.css +1 -1
- package/dist/v2/index.d.cts +1 -1
- package/dist/v2/index.d.mts +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +468 -96
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +7 -7
- package/skills/react-core/SKILL.md +1 -1
- package/skills/react-core/references/attachments.md +20 -0
- package/dist/copilotkit-CxLT6zFx.cjs.map +0 -1
- package/dist/copilotkit-DiUK2Bhq.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/react-core",
|
|
3
|
-
"version": "1.70.
|
|
3
|
+
"version": "1.70.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"untruncate-json": "^0.0.1",
|
|
81
81
|
"use-stick-to-bottom": "^1.1.1",
|
|
82
82
|
"zod-to-json-schema": "^3.24.5",
|
|
83
|
-
"@copilotkit/a2ui-renderer": "1.70.
|
|
84
|
-
"@copilotkit/runtime-client-gql": "1.70.
|
|
85
|
-
"@copilotkit/
|
|
86
|
-
"@copilotkit/
|
|
87
|
-
"@copilotkit/
|
|
88
|
-
"@copilotkit/web-
|
|
83
|
+
"@copilotkit/a2ui-renderer": "1.70.3",
|
|
84
|
+
"@copilotkit/runtime-client-gql": "1.70.3",
|
|
85
|
+
"@copilotkit/shared": "1.70.3",
|
|
86
|
+
"@copilotkit/web-inspector": "1.70.3",
|
|
87
|
+
"@copilotkit/core": "1.70.3",
|
|
88
|
+
"@copilotkit/web-components": "1.70.3"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@tailwindcss/cli": "^4.1.11",
|
|
@@ -137,6 +137,26 @@ useAttachments({
|
|
|
137
137
|
});
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
+
### Upload concurrency
|
|
141
|
+
|
|
142
|
+
Multi-file selections upload one file at a time by default, and the whole
|
|
143
|
+
selection is queued as `status: "uploading"` right away. Raise
|
|
144
|
+
`maxConcurrentUploads` to run several together — the rest then start as slots
|
|
145
|
+
free up, `Infinity` lifts the limit, and `onUpload` may be called concurrently,
|
|
146
|
+
so above `1` it must not assume the previous file finished. The pool is per hook,
|
|
147
|
+
not per call, so a paste landing mid-upload shares the same slots instead of
|
|
148
|
+
opening its own.
|
|
149
|
+
|
|
150
|
+
```tsx
|
|
151
|
+
useAttachments({
|
|
152
|
+
config: {
|
|
153
|
+
enabled: true,
|
|
154
|
+
maxConcurrentUploads: 6,
|
|
155
|
+
onUpload: async (file) => uploadToStorage(file),
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
```
|
|
159
|
+
|
|
140
160
|
### Feedback on failed uploads
|
|
141
161
|
|
|
142
162
|
```tsx
|