@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.
Files changed (36) hide show
  1. package/dist/{copilotkit-DiUK2Bhq.mjs → copilotkit-Ap_yisA5.mjs} +470 -98
  2. package/dist/copilotkit-Ap_yisA5.mjs.map +1 -0
  3. package/dist/{copilotkit-CxLT6zFx.cjs → copilotkit-BU3OvveB.cjs} +468 -96
  4. package/dist/copilotkit-BU3OvveB.cjs.map +1 -0
  5. package/dist/{copilotkit-DsWuxPUQ.d.mts → copilotkit-Bs98akp9.d.mts} +32 -2
  6. package/dist/{copilotkit-DsWuxPUQ.d.mts.map → copilotkit-Bs98akp9.d.mts.map} +1 -1
  7. package/dist/{copilotkit-CtF2clxZ.d.cts → copilotkit-X2eGbOwf.d.cts} +32 -2
  8. package/dist/{copilotkit-CtF2clxZ.d.cts.map → copilotkit-X2eGbOwf.d.cts.map} +1 -1
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +1 -1
  12. package/dist/index.d.cts.map +1 -1
  13. package/dist/index.d.mts +1 -1
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +1 -1
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/index.umd.js +273 -15
  18. package/dist/index.umd.js.map +1 -1
  19. package/dist/v2/headless.cjs +97 -2
  20. package/dist/v2/headless.cjs.map +1 -1
  21. package/dist/v2/headless.d.cts.map +1 -1
  22. package/dist/v2/headless.d.mts.map +1 -1
  23. package/dist/v2/headless.mjs +98 -3
  24. package/dist/v2/headless.mjs.map +1 -1
  25. package/dist/v2/index.cjs +1 -1
  26. package/dist/v2/index.css +1 -1
  27. package/dist/v2/index.d.cts +1 -1
  28. package/dist/v2/index.d.mts +1 -1
  29. package/dist/v2/index.mjs +1 -1
  30. package/dist/v2/index.umd.js +468 -96
  31. package/dist/v2/index.umd.js.map +1 -1
  32. package/package.json +7 -7
  33. package/skills/react-core/SKILL.md +1 -1
  34. package/skills/react-core/references/attachments.md +20 -0
  35. package/dist/copilotkit-CxLT6zFx.cjs.map +0 -1
  36. 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.1",
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.1",
84
- "@copilotkit/runtime-client-gql": "1.70.1",
85
- "@copilotkit/core": "1.70.1",
86
- "@copilotkit/shared": "1.70.1",
87
- "@copilotkit/web-components": "1.70.1",
88
- "@copilotkit/web-inspector": "1.70.1"
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",
@@ -13,7 +13,7 @@ description: >
13
13
  alias). Load the reference under references/ that matches your task.
14
14
  type: framework
15
15
  library: copilotkit
16
- library_version: "1.70.1"
16
+ library_version: "1.70.3"
17
17
  requires:
18
18
  - copilotkit/runtime
19
19
  sources:
@@ -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