@copilotkit/react-core 1.70.0 → 1.70.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.
Files changed (37) hide show
  1. package/dist/{copilotkit-CbZGwElm.d.mts → copilotkit--Jyzm6hS.d.mts} +50 -20
  2. package/dist/copilotkit--Jyzm6hS.d.mts.map +1 -0
  3. package/dist/{copilotkit-B7aFKfQR.mjs → copilotkit-B1jSvZeb.mjs} +395 -291
  4. package/dist/copilotkit-B1jSvZeb.mjs.map +1 -0
  5. package/dist/{copilotkit-BuzP0VeG.d.cts → copilotkit-BLYaCGcz.d.cts} +50 -20
  6. package/dist/copilotkit-BLYaCGcz.d.cts.map +1 -0
  7. package/dist/{copilotkit-BE76j111.cjs → copilotkit-DcFo270Y.cjs} +395 -291
  8. package/dist/copilotkit-DcFo270Y.cjs.map +1 -0
  9. package/dist/index.cjs +5 -4
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +2 -2
  12. package/dist/index.d.cts.map +1 -1
  13. package/dist/index.d.mts +2 -2
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +5 -4
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/index.umd.js +198 -207
  18. package/dist/index.umd.js.map +1 -1
  19. package/dist/v2/headless.cjs +58 -1
  20. package/dist/v2/headless.cjs.map +1 -1
  21. package/dist/v2/headless.mjs +59 -2
  22. package/dist/v2/headless.mjs.map +1 -1
  23. package/dist/v2/index.cjs +1 -1
  24. package/dist/v2/index.css +1 -1
  25. package/dist/v2/index.d.cts +1 -1
  26. package/dist/v2/index.d.mts +1 -1
  27. package/dist/v2/index.mjs +1 -1
  28. package/dist/v2/index.umd.js +395 -291
  29. package/dist/v2/index.umd.js.map +1 -1
  30. package/package.json +11 -8
  31. package/skills/react-core/SKILL.md +1 -1
  32. package/skills/react-core/references/attachments.md +20 -0
  33. package/skills/react-core/references/threads.md +1 -1
  34. package/dist/copilotkit-B7aFKfQR.mjs.map +0 -1
  35. package/dist/copilotkit-BE76j111.cjs.map +0 -1
  36. package/dist/copilotkit-BuzP0VeG.d.cts.map +0 -1
  37. package/dist/copilotkit-CbZGwElm.d.mts.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_copilotkit = require('./copilotkit-BE76j111.cjs');
4
+ const require_copilotkit = require('./copilotkit-DcFo270Y.cjs');
5
5
  let react = require("react");
6
6
  react = require_copilotkit.__toESM(react);
7
7
  let _copilotkit_core = require("@copilotkit/core");
@@ -372,7 +372,7 @@ function useCopilotChat(options = {}) {
372
372
  * `useCopilotChatHeadless_c` is for building fully custom UI (headless UI) implementations.
373
373
  *
374
374
  * <Callout title="This is a CopilotKit Intelligence feature">
375
- * Read more about <a href="/premium/overview">CopilotKit Intelligence</a>.
375
+ * Read more about <a href="/intelligence/overview">CopilotKit Intelligence</a>.
376
376
  *
377
377
  * Usage is generous and **free** to get started.
378
378
  * </Callout>
@@ -603,7 +603,7 @@ function useCopilotChatHeadless_c(options = {}) {
603
603
  * See https://docs.copilotkit.ai/reference/v2/hooks/useFrontendTool
604
604
  */
605
605
  function useFrontendTool(tool, dependencies) {
606
- const { name, description, parameters, render, followUp, available } = tool;
606
+ const { name, description, parameters, render, followUp, available, webmcp } = tool;
607
607
  const zodParameters = (0, _copilotkit_shared.getZodParameters)(parameters);
608
608
  const renderRef = (0, react.useRef)(render);
609
609
  (0, react.useEffect)(() => {
@@ -634,7 +634,8 @@ function useFrontendTool(tool, dependencies) {
634
634
  handler: tool.handler ? (args) => handlerRef.current?.(args) : void 0,
635
635
  followUp,
636
636
  render: normalizedRender,
637
- available: available === void 0 ? void 0 : available !== "disabled"
637
+ available: available === void 0 ? void 0 : available !== "disabled",
638
+ webmcp
638
639
  });
639
640
  }
640
641