@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.
- package/CHANGELOG.md +17 -0
- package/dist/{chunk-BDNHZ3GW.mjs → chunk-B4N2T3V3.mjs} +3 -2
- package/dist/chunk-B4N2T3V3.mjs.map +1 -0
- package/dist/{chunk-JOL7NS2W.mjs → chunk-DP6QC6LJ.mjs} +2 -2
- package/dist/{chunk-O34Z4XM2.mjs → chunk-FHVERB23.mjs} +2 -2
- package/dist/{chunk-Y7UO3RPW.mjs → chunk-IJDF7C64.mjs} +3 -3
- package/dist/{chunk-T7N77F5Y.mjs → chunk-T4ETOM63.mjs} +2 -2
- package/dist/components/chat/Chat.js +2 -1
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +2 -2
- package/dist/components/chat/Input.js +2 -1
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +1 -1
- package/dist/components/chat/Modal.js +2 -1
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +3 -3
- package/dist/components/chat/Popup.js +2 -1
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +4 -4
- package/dist/components/chat/Sidebar.js +2 -1
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +4 -4
- package/dist/components/chat/index.js +2 -1
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +5 -5
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/index.css +18 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/package.json +4 -4
- package/src/components/chat/Input.tsx +3 -1
- package/src/css/input.css +23 -3
- package/dist/chunk-BDNHZ3GW.mjs.map +0 -1
- /package/dist/{chunk-JOL7NS2W.mjs.map → chunk-DP6QC6LJ.mjs.map} +0 -0
- /package/dist/{chunk-O34Z4XM2.mjs.map → chunk-FHVERB23.mjs.map} +0 -0
- /package/dist/{chunk-Y7UO3RPW.mjs.map → chunk-IJDF7C64.mjs.map} +0 -0
- /package/dist/{chunk-T7N77F5Y.mjs.map → chunk-T4ETOM63.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotPopup
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-T4ETOM63.mjs";
|
|
4
|
+
import "../../chunk-IJDF7C64.mjs";
|
|
5
5
|
import "../../chunk-Q2NFQTCQ.mjs";
|
|
6
6
|
import "../../chunk-UH2UFL5W.mjs";
|
|
7
7
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -12,7 +12,7 @@ import "../../chunk-KXE2JCUH.mjs";
|
|
|
12
12
|
import "../../chunk-NRA3CFEE.mjs";
|
|
13
13
|
import "../../chunk-BH6PCAAL.mjs";
|
|
14
14
|
import "../../chunk-UFN2VWSR.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-FHVERB23.mjs";
|
|
16
16
|
import "../../chunk-DSQGQJI4.mjs";
|
|
17
17
|
import "../../chunk-24TDU7MY.mjs";
|
|
18
18
|
import "../../chunk-SLTG4L62.mjs";
|
|
@@ -22,7 +22,7 @@ import "../../chunk-HWMFMBJC.mjs";
|
|
|
22
22
|
import "../../chunk-OZXUB3V7.mjs";
|
|
23
23
|
import "../../chunk-XZNY26GH.mjs";
|
|
24
24
|
import "../../chunk-PLHTVHUW.mjs";
|
|
25
|
-
import "../../chunk-
|
|
25
|
+
import "../../chunk-B4N2T3V3.mjs";
|
|
26
26
|
import "../../chunk-YQFVRDNC.mjs";
|
|
27
27
|
import "../../chunk-ABHUX6T6.mjs";
|
|
28
28
|
import "../../chunk-KENCH7RN.mjs";
|
|
@@ -1433,6 +1433,7 @@ var usePushToTalk = ({
|
|
|
1433
1433
|
// src/components/chat/Input.tsx
|
|
1434
1434
|
var import_react_core6 = require("@copilotkit/react-core");
|
|
1435
1435
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1436
|
+
var MAX_NEWLINES = 6;
|
|
1436
1437
|
var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
|
|
1437
1438
|
const context = useChatContext();
|
|
1438
1439
|
const copilotContext = (0, import_react_core6.useCopilotContext)();
|
|
@@ -1483,7 +1484,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
|
|
|
1483
1484
|
ref: textareaRef,
|
|
1484
1485
|
placeholder: context.labels.placeholder,
|
|
1485
1486
|
autoFocus: true,
|
|
1486
|
-
maxRows:
|
|
1487
|
+
maxRows: MAX_NEWLINES,
|
|
1487
1488
|
value: text,
|
|
1488
1489
|
onChange: (event) => setText(event.target.value),
|
|
1489
1490
|
onKeyDown: (event) => {
|