@copilotkit/react-core 1.50.0-beta.11 → 1.50.0-beta.12

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 (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{chunk-B5ELMVT7.mjs → chunk-2YI623SR.mjs} +2 -2
  3. package/dist/{chunk-YJGPIN3R.mjs → chunk-4TKK4322.mjs} +2 -2
  4. package/dist/{chunk-7SHWECGN.mjs → chunk-66TKKRF4.mjs} +2 -2
  5. package/dist/{chunk-3775VM7Y.mjs → chunk-VSQWPEYV.mjs} +4 -4
  6. package/dist/{chunk-FYMZKPOL.mjs → chunk-WEKQV2OD.mjs} +14 -6
  7. package/dist/chunk-WEKQV2OD.mjs.map +1 -0
  8. package/dist/components/copilot-provider/copilotkit-props.d.ts +6 -0
  9. package/dist/components/copilot-provider/copilotkit-props.js.map +1 -1
  10. package/dist/components/copilot-provider/copilotkit.js +5 -1
  11. package/dist/components/copilot-provider/copilotkit.js.map +1 -1
  12. package/dist/components/copilot-provider/copilotkit.mjs +4 -4
  13. package/dist/components/copilot-provider/index.js +5 -1
  14. package/dist/components/copilot-provider/index.js.map +1 -1
  15. package/dist/components/copilot-provider/index.mjs +4 -4
  16. package/dist/components/index.js +5 -1
  17. package/dist/components/index.js.map +1 -1
  18. package/dist/components/index.mjs +4 -4
  19. package/dist/hooks/index.mjs +28 -28
  20. package/dist/hooks/use-copilot-chat-headless_c.mjs +3 -3
  21. package/dist/hooks/use-copilot-chat.mjs +3 -3
  22. package/dist/hooks/use-copilot-chat_internal.mjs +2 -2
  23. package/dist/index.js +5 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +36 -36
  26. package/dist/lib/copilot-task.js.map +1 -1
  27. package/dist/lib/copilot-task.mjs +5 -5
  28. package/dist/lib/index.js.map +1 -1
  29. package/dist/lib/index.mjs +5 -5
  30. package/dist/types/index.mjs +1 -1
  31. package/dist/utils/index.mjs +3 -3
  32. package/package.json +5 -5
  33. package/src/components/copilot-provider/copilotkit-props.tsx +7 -0
  34. package/src/components/copilot-provider/copilotkit.tsx +10 -2
  35. package/dist/chunk-FYMZKPOL.mjs.map +0 -1
  36. /package/dist/{chunk-B5ELMVT7.mjs.map → chunk-2YI623SR.mjs.map} +0 -0
  37. /package/dist/{chunk-YJGPIN3R.mjs.map → chunk-4TKK4322.mjs.map} +0 -0
  38. /package/dist/{chunk-7SHWECGN.mjs.map → chunk-66TKKRF4.mjs.map} +0 -0
  39. /package/dist/{chunk-3775VM7Y.mjs.map → chunk-VSQWPEYV.mjs.map} +0 -0
@@ -2,18 +2,18 @@ import {
2
2
  CopilotKit,
3
3
  CopilotKitInternal,
4
4
  defaultCopilotContextCategories
5
- } from "../../chunk-FYMZKPOL.mjs";
5
+ } from "../../chunk-WEKQV2OD.mjs";
6
6
  import "../../chunk-LHERIF3L.mjs";
7
7
  import "../../chunk-HE22TZMF.mjs";
8
8
  import "../../chunk-PMWUKW3Z.mjs";
9
9
  import "../../chunk-YCG6SNAU.mjs";
10
10
  import "../../chunk-PIF5KJYI.mjs";
11
- import "../../chunk-RKTVJRK7.mjs";
12
11
  import "../../chunk-CYDWEPFL.mjs";
13
- import "../../chunk-ICIK2BSB.mjs";
14
12
  import "../../chunk-2IDV5OHF.mjs";
15
- import "../../chunk-YYN33GSG.mjs";
13
+ import "../../chunk-ICIK2BSB.mjs";
14
+ import "../../chunk-RKTVJRK7.mjs";
16
15
  import "../../chunk-PMAFHQ7P.mjs";
16
+ import "../../chunk-YYN33GSG.mjs";
17
17
  import "../../chunk-6PUNP7CD.mjs";
18
18
  import "../../chunk-O7ARI5CV.mjs";
19
19
  import "../../chunk-QNUAXSDP.mjs";
@@ -2504,9 +2504,13 @@ var import_jsx_runtime10 = require("react/jsx-runtime");
2504
2504
  function CopilotKit(_a) {
2505
2505
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2506
2506
  const enabled = shouldShowDevConsole(props.showDevConsole);
2507
+ const showInspector = shouldShowDevConsole(props.enableInspector);
2507
2508
  const publicApiKey = props.publicApiKey || props.publicLicenseKey;
2508
2509
  const renderArr = (0, import_react16.useMemo)(() => [{ render: CoAgentStateRenderBridge }], []);
2509
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastProvider, { enabled, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CopilotErrorBoundary, { publicApiKey, showUsageBanner: enabled, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ThreadsProvider, { threadId: props.threadId, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react17.CopilotKitProvider, __spreadProps(__spreadValues({}, props), { renderCustomMessages: renderArr, useSingleEndpoint: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CopilotKitInternal, __spreadProps(__spreadValues({}, props), { children })) })) }) }) });
2510
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastProvider, { enabled, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CopilotErrorBoundary, { publicApiKey, showUsageBanner: enabled, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ThreadsProvider, { threadId: props.threadId, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react17.CopilotKitProvider, __spreadProps(__spreadValues({}, props), { renderCustomMessages: renderArr, useSingleEndpoint: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(CopilotKitInternal, __spreadProps(__spreadValues({}, props), { children: [
2511
+ children,
2512
+ showInspector ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react17.CopilotKitInspector, {}) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {})
2513
+ ] })) })) }) }) });
2510
2514
  }
2511
2515
  function CopilotKitInternal(cpkProps) {
2512
2516
  var _b;