@copilotkit/react-ui 1.8.4-next.1 → 1.8.4-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 (41) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{chunk-OG2LUNMO.mjs → chunk-6F2ZAK7T.mjs} +12 -4
  3. package/dist/chunk-6F2ZAK7T.mjs.map +1 -0
  4. package/dist/{chunk-HGA4N4ME.mjs → chunk-7EDMOLGH.mjs} +2 -2
  5. package/dist/{chunk-2D24Q2YO.mjs → chunk-LGMQR7XG.mjs} +2 -2
  6. package/dist/{chunk-SNLHKLW3.mjs → chunk-QJKMOGWN.mjs} +5 -2
  7. package/dist/chunk-QJKMOGWN.mjs.map +1 -0
  8. package/dist/{chunk-X7HMY3S6.mjs → chunk-QTD2KREC.mjs} +2 -2
  9. package/dist/components/chat/Chat.js +4 -1
  10. package/dist/components/chat/Chat.js.map +1 -1
  11. package/dist/components/chat/Chat.mjs +2 -2
  12. package/dist/components/chat/Input.js +4 -1
  13. package/dist/components/chat/Input.js.map +1 -1
  14. package/dist/components/chat/Input.mjs +1 -1
  15. package/dist/components/chat/Modal.d.ts +1 -1
  16. package/dist/components/chat/Modal.js +13 -2
  17. package/dist/components/chat/Modal.js.map +1 -1
  18. package/dist/components/chat/Modal.mjs +3 -3
  19. package/dist/components/chat/Popup.js +13 -2
  20. package/dist/components/chat/Popup.js.map +1 -1
  21. package/dist/components/chat/Popup.mjs +4 -4
  22. package/dist/components/chat/Sidebar.js +13 -2
  23. package/dist/components/chat/Sidebar.js.map +1 -1
  24. package/dist/components/chat/Sidebar.mjs +4 -4
  25. package/dist/components/chat/index.js +13 -2
  26. package/dist/components/chat/index.js.map +1 -1
  27. package/dist/components/chat/index.mjs +5 -5
  28. package/dist/components/index.js +13 -2
  29. package/dist/components/index.js.map +1 -1
  30. package/dist/components/index.mjs +5 -5
  31. package/dist/index.js +13 -2
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +5 -5
  34. package/package.json +4 -4
  35. package/src/components/chat/Input.tsx +8 -2
  36. package/src/components/chat/Modal.tsx +8 -0
  37. package/dist/chunk-OG2LUNMO.mjs.map +0 -1
  38. package/dist/chunk-SNLHKLW3.mjs.map +0 -1
  39. /package/dist/{chunk-HGA4N4ME.mjs.map → chunk-7EDMOLGH.mjs.map} +0 -0
  40. /package/dist/{chunk-2D24Q2YO.mjs.map → chunk-LGMQR7XG.mjs.map} +0 -0
  41. /package/dist/{chunk-X7HMY3S6.mjs.map → chunk-QTD2KREC.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CopilotSidebar
3
- } from "../../chunk-X7HMY3S6.mjs";
4
- import "../../chunk-OG2LUNMO.mjs";
3
+ } from "../../chunk-QTD2KREC.mjs";
4
+ import "../../chunk-6F2ZAK7T.mjs";
5
5
  import "../../chunk-P7S3E5UW.mjs";
6
6
  import "../../chunk-2OTVZXDX.mjs";
7
7
  import "../../chunk-V7W6IM2V.mjs";
@@ -12,7 +12,7 @@ import "../../chunk-NRA3CFEE.mjs";
12
12
  import "../../chunk-BH6PCAAL.mjs";
13
13
  import "../../chunk-Q5V6S67N.mjs";
14
14
  import "../../chunk-YOEL33HG.mjs";
15
- import "../../chunk-HGA4N4ME.mjs";
15
+ import "../../chunk-7EDMOLGH.mjs";
16
16
  import "../../chunk-WEYDZBT7.mjs";
17
17
  import "../../chunk-7RIBDD4K.mjs";
18
18
  import "../../chunk-HEIDCT7I.mjs";
@@ -20,7 +20,7 @@ import "../../chunk-5M7ODWKH.mjs";
20
20
  import "../../chunk-XB6QCUPB.mjs";
21
21
  import "../../chunk-UWWMAJ7R.mjs";
22
22
  import "../../chunk-TOQ7P4DO.mjs";
23
- import "../../chunk-SNLHKLW3.mjs";
23
+ import "../../chunk-QJKMOGWN.mjs";
24
24
  import "../../chunk-YQFVRDNC.mjs";
25
25
  import "../../chunk-XNQO5AZZ.mjs";
26
26
  import "../../chunk-ZY25LVYR.mjs";
@@ -1379,7 +1379,10 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
1379
1379
  const textareaRef = (0, import_react9.useRef)(null);
1380
1380
  const handleDivClick = (event) => {
1381
1381
  var _a;
1382
- if (event.target !== event.currentTarget)
1382
+ const target = event.target;
1383
+ if (target.closest("button"))
1384
+ return;
1385
+ if (target.tagName === "TEXTAREA")
1383
1386
  return;
1384
1387
  (_a = textareaRef.current) == null ? void 0 : _a.focus();
1385
1388
  };
@@ -2689,6 +2692,10 @@ var CopilotModal = ({
2689
2692
  Input: Input2 = Input,
2690
2693
  AssistantMessage: AssistantMessage2 = AssistantMessage,
2691
2694
  UserMessage: UserMessage2 = UserMessage,
2695
+ onThumbsUp,
2696
+ onThumbsDown,
2697
+ onCopy,
2698
+ onRegenerate,
2692
2699
  className,
2693
2700
  children
2694
2701
  }) => {
@@ -2721,7 +2728,11 @@ var CopilotModal = ({
2721
2728
  Messages: Messages2,
2722
2729
  Input: Input2,
2723
2730
  AssistantMessage: AssistantMessage2,
2724
- UserMessage: UserMessage2
2731
+ UserMessage: UserMessage2,
2732
+ onThumbsUp,
2733
+ onThumbsDown,
2734
+ onCopy,
2735
+ onRegenerate
2725
2736
  }
2726
2737
  )
2727
2738
  ]