@copilotkit/react-ui 1.8.10-next.0 → 1.8.10-next.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 (41) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{chunk-BDNHZ3GW.mjs → chunk-B4N2T3V3.mjs} +3 -2
  3. package/dist/chunk-B4N2T3V3.mjs.map +1 -0
  4. package/dist/{chunk-JOL7NS2W.mjs → chunk-DP6QC6LJ.mjs} +2 -2
  5. package/dist/{chunk-O34Z4XM2.mjs → chunk-FHVERB23.mjs} +2 -2
  6. package/dist/{chunk-Y7UO3RPW.mjs → chunk-IJDF7C64.mjs} +3 -3
  7. package/dist/{chunk-T7N77F5Y.mjs → chunk-T4ETOM63.mjs} +2 -2
  8. package/dist/components/chat/Chat.js +2 -1
  9. package/dist/components/chat/Chat.js.map +1 -1
  10. package/dist/components/chat/Chat.mjs +2 -2
  11. package/dist/components/chat/Input.js +2 -1
  12. package/dist/components/chat/Input.js.map +1 -1
  13. package/dist/components/chat/Input.mjs +1 -1
  14. package/dist/components/chat/Modal.js +2 -1
  15. package/dist/components/chat/Modal.js.map +1 -1
  16. package/dist/components/chat/Modal.mjs +3 -3
  17. package/dist/components/chat/Popup.js +2 -1
  18. package/dist/components/chat/Popup.js.map +1 -1
  19. package/dist/components/chat/Popup.mjs +4 -4
  20. package/dist/components/chat/Sidebar.js +2 -1
  21. package/dist/components/chat/Sidebar.js.map +1 -1
  22. package/dist/components/chat/Sidebar.mjs +4 -4
  23. package/dist/components/chat/index.js +2 -1
  24. package/dist/components/chat/index.js.map +1 -1
  25. package/dist/components/chat/index.mjs +5 -5
  26. package/dist/components/index.js +2 -1
  27. package/dist/components/index.js.map +1 -1
  28. package/dist/components/index.mjs +5 -5
  29. package/dist/index.css +18 -3
  30. package/dist/index.css.map +1 -1
  31. package/dist/index.js +2 -1
  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 +3 -1
  36. package/src/css/input.css +23 -3
  37. package/dist/chunk-BDNHZ3GW.mjs.map +0 -1
  38. /package/dist/{chunk-JOL7NS2W.mjs.map → chunk-DP6QC6LJ.mjs.map} +0 -0
  39. /package/dist/{chunk-O34Z4XM2.mjs.map → chunk-FHVERB23.mjs.map} +0 -0
  40. /package/dist/{chunk-Y7UO3RPW.mjs.map → chunk-IJDF7C64.mjs.map} +0 -0
  41. /package/dist/{chunk-T7N77F5Y.mjs.map → chunk-T4ETOM63.mjs.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  import "../../chunk-PXEVB7IK.mjs";
2
2
  import {
3
3
  CopilotPopup
4
- } from "../../chunk-T7N77F5Y.mjs";
4
+ } from "../../chunk-T4ETOM63.mjs";
5
5
  import {
6
6
  CopilotSidebar
7
- } from "../../chunk-JOL7NS2W.mjs";
7
+ } from "../../chunk-DP6QC6LJ.mjs";
8
8
  import "../../chunk-WB3YULQ4.mjs";
9
- import "../../chunk-Y7UO3RPW.mjs";
9
+ import "../../chunk-IJDF7C64.mjs";
10
10
  import "../../chunk-Q2NFQTCQ.mjs";
11
11
  import "../../chunk-UH2UFL5W.mjs";
12
12
  import "../../chunk-V7W6IM2V.mjs";
@@ -19,7 +19,7 @@ import "../../chunk-BH6PCAAL.mjs";
19
19
  import "../../chunk-UFN2VWSR.mjs";
20
20
  import {
21
21
  CopilotChat
22
- } from "../../chunk-O34Z4XM2.mjs";
22
+ } from "../../chunk-FHVERB23.mjs";
23
23
  import "../../chunk-DSQGQJI4.mjs";
24
24
  import "../../chunk-24TDU7MY.mjs";
25
25
  import {
@@ -35,7 +35,7 @@ import {
35
35
  } from "../../chunk-OZXUB3V7.mjs";
36
36
  import "../../chunk-XZNY26GH.mjs";
37
37
  import "../../chunk-PLHTVHUW.mjs";
38
- import "../../chunk-BDNHZ3GW.mjs";
38
+ import "../../chunk-B4N2T3V3.mjs";
39
39
  import "../../chunk-YQFVRDNC.mjs";
40
40
  import {
41
41
  Markdown
@@ -1441,6 +1441,7 @@ var usePushToTalk = ({
1441
1441
  // src/components/chat/Input.tsx
1442
1442
  var import_react_core6 = require("@copilotkit/react-core");
1443
1443
  var import_jsx_runtime12 = require("react/jsx-runtime");
1444
+ var MAX_NEWLINES = 6;
1444
1445
  var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
1445
1446
  const context = useChatContext();
1446
1447
  const copilotContext = (0, import_react_core6.useCopilotContext)();
@@ -1491,7 +1492,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
1491
1492
  ref: textareaRef,
1492
1493
  placeholder: context.labels.placeholder,
1493
1494
  autoFocus: true,
1494
- maxRows: 5,
1495
+ maxRows: MAX_NEWLINES,
1495
1496
  value: text,
1496
1497
  onChange: (event) => setText(event.target.value),
1497
1498
  onKeyDown: (event) => {