@copilotkit/react-ui 1.51.0-next.2 → 1.51.0-next.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 (43) hide show
  1. package/CHANGELOG.md +12 -3
  2. package/dist/{chunk-NGJ32FAP.mjs → chunk-6TWQUA2Q.mjs} +4 -3
  3. package/dist/chunk-6TWQUA2Q.mjs.map +1 -0
  4. package/dist/{chunk-7PR2KJDO.mjs → chunk-BVKKSSB2.mjs} +2 -2
  5. package/dist/{chunk-LQEFRHRT.mjs → chunk-DI7DDMRS.mjs} +2 -2
  6. package/dist/{chunk-QPQRLXN3.mjs → chunk-NSJWSIPR.mjs} +2 -2
  7. package/dist/{chunk-QB3GUN2N.mjs → chunk-VHKHX7GV.mjs} +2 -2
  8. package/dist/{chunk-ELUJRANC.mjs → chunk-VVCCMYGT.mjs} +2 -2
  9. package/dist/components/chat/Chat.js +3 -2
  10. package/dist/components/chat/Chat.js.map +1 -1
  11. package/dist/components/chat/Chat.mjs +3 -3
  12. package/dist/components/chat/Modal.js +3 -2
  13. package/dist/components/chat/Modal.js.map +1 -1
  14. package/dist/components/chat/Modal.mjs +4 -4
  15. package/dist/components/chat/Popup.js +3 -2
  16. package/dist/components/chat/Popup.js.map +1 -1
  17. package/dist/components/chat/Popup.mjs +5 -5
  18. package/dist/components/chat/Sidebar.js +3 -2
  19. package/dist/components/chat/Sidebar.js.map +1 -1
  20. package/dist/components/chat/Sidebar.mjs +5 -5
  21. package/dist/components/chat/Suggestion.js +3 -2
  22. package/dist/components/chat/Suggestion.js.map +1 -1
  23. package/dist/components/chat/Suggestion.mjs +1 -1
  24. package/dist/components/chat/Suggestions.js +3 -2
  25. package/dist/components/chat/Suggestions.js.map +1 -1
  26. package/dist/components/chat/Suggestions.mjs +2 -2
  27. package/dist/components/chat/index.js +3 -2
  28. package/dist/components/chat/index.js.map +1 -1
  29. package/dist/components/chat/index.mjs +6 -6
  30. package/dist/components/index.js +3 -2
  31. package/dist/components/index.js.map +1 -1
  32. package/dist/components/index.mjs +6 -6
  33. package/dist/index.js +3 -2
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +6 -6
  36. package/package.json +7 -7
  37. package/src/components/chat/Suggestion.tsx +3 -2
  38. package/dist/chunk-NGJ32FAP.mjs.map +0 -1
  39. /package/dist/{chunk-7PR2KJDO.mjs.map → chunk-BVKKSSB2.mjs.map} +0 -0
  40. /package/dist/{chunk-LQEFRHRT.mjs.map → chunk-DI7DDMRS.mjs.map} +0 -0
  41. /package/dist/{chunk-QPQRLXN3.mjs.map → chunk-NSJWSIPR.mjs.map} +0 -0
  42. /package/dist/{chunk-QB3GUN2N.mjs.map → chunk-VHKHX7GV.mjs.map} +0 -0
  43. /package/dist/{chunk-ELUJRANC.mjs.map → chunk-VVCCMYGT.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CopilotModal
3
- } from "../../chunk-7PR2KJDO.mjs";
3
+ } from "../../chunk-BVKKSSB2.mjs";
4
4
  import "../../chunk-C3GSYRC3.mjs";
5
5
  import "../../chunk-GDSZGYCE.mjs";
6
6
  import "../../chunk-V7W6IM2V.mjs";
@@ -11,9 +11,9 @@ import "../../chunk-KXE2JCUH.mjs";
11
11
  import "../../chunk-NRA3CFEE.mjs";
12
12
  import "../../chunk-BH6PCAAL.mjs";
13
13
  import "../../chunk-UFN2VWSR.mjs";
14
- import "../../chunk-QPQRLXN3.mjs";
15
- import "../../chunk-QB3GUN2N.mjs";
16
- import "../../chunk-NGJ32FAP.mjs";
14
+ import "../../chunk-NSJWSIPR.mjs";
15
+ import "../../chunk-VHKHX7GV.mjs";
16
+ import "../../chunk-6TWQUA2Q.mjs";
17
17
  import "../../chunk-PLHTVHUW.mjs";
18
18
  import "../../chunk-3W6J75HS.mjs";
19
19
  import "../../chunk-ELGRNEAO.mjs";
@@ -2470,9 +2470,9 @@ var ImageUploadQueue = ({
2470
2470
  var import_react_core8 = require("@copilotkit/react-core");
2471
2471
  var import_jsx_runtime22 = require("react/jsx-runtime");
2472
2472
  function Suggestion({ title, onClick, partial, className }) {
2473
+ const { isLoading } = (0, import_react_core8.useCopilotChatInternal)();
2473
2474
  if (!title)
2474
2475
  return null;
2475
- const { isLoading } = (0, import_react_core8.useCopilotChatInternal)();
2476
2476
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2477
2477
  "button",
2478
2478
  {
@@ -2481,8 +2481,9 @@ function Suggestion({ title, onClick, partial, className }) {
2481
2481
  e.preventDefault();
2482
2482
  onClick();
2483
2483
  },
2484
- className: className || (partial ? "suggestion loading" : "suggestion"),
2484
+ className: `suggestion ${className != null ? className : ""} ${partial ? "loading" : ""}`,
2485
2485
  "data-test-id": "suggestion",
2486
+ type: "button",
2486
2487
  children: partial ? SmallSpinnerIcon : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: title })
2487
2488
  }
2488
2489
  );