@copilotkit/react-ui 1.0.8 → 1.0.9-pre-async-submit-message.0
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 +10 -0
- package/dist/{chunk-I3WXFPLM.mjs → chunk-6TWACO5V.mjs} +2 -2
- package/dist/{chunk-CTQJBYFS.mjs → chunk-IN42MBI2.mjs} +2 -2
- package/dist/{chunk-I2SHVGZG.mjs → chunk-NS5XXT5G.mjs} +2 -2
- package/dist/{chunk-MGUNADV2.mjs → chunk-VPUIM2ZY.mjs} +8 -2
- package/dist/chunk-VPUIM2ZY.mjs.map +1 -0
- package/dist/components/chat/Chat.d.ts +1 -1
- package/dist/components/chat/Chat.js +7 -1
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +1 -1
- package/dist/components/chat/Modal.js +7 -1
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +2 -2
- package/dist/components/chat/Popup.js +7 -1
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +3 -3
- package/dist/components/chat/Sidebar.js +7 -1
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +3 -3
- package/dist/components/chat/index.js +7 -1
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +4 -4
- package/dist/components/index.js +7 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +7 -7
- package/src/components/chat/Chat.tsx +8 -2
- package/dist/chunk-MGUNADV2.mjs.map +0 -1
- /package/dist/{chunk-I3WXFPLM.mjs.map → chunk-6TWACO5V.mjs.map} +0 -0
- /package/dist/{chunk-CTQJBYFS.mjs.map → chunk-IN42MBI2.mjs.map} +0 -0
- /package/dist/{chunk-I2SHVGZG.mjs.map → chunk-NS5XXT5G.mjs.map} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../../chunk-MRFF7GSQ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotSidebar
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-IN42MBI2.mjs";
|
|
5
5
|
import "../../chunk-WB3YULQ4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
CopilotPopup
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-NS5XXT5G.mjs";
|
|
9
|
+
import "../../chunk-6TWACO5V.mjs";
|
|
10
10
|
import "../../chunk-B7DNOYVQ.mjs";
|
|
11
11
|
import "../../chunk-SE6DAYSX.mjs";
|
|
12
12
|
import "../../chunk-UC3Y7MWX.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotChat
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-VPUIM2ZY.mjs";
|
|
16
16
|
import "../../chunk-V7W6IM2V.mjs";
|
|
17
17
|
import "../../chunk-KSCXPA74.mjs";
|
|
18
18
|
import "../../chunk-M5A56FBF.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -1882,7 +1882,13 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage) =>
|
|
|
1882
1882
|
const sendMessage = (messageContent) => __async(void 0, null, function* () {
|
|
1883
1883
|
abortSuggestions();
|
|
1884
1884
|
setCurrentSuggestions([]);
|
|
1885
|
-
|
|
1885
|
+
if (onSubmitMessage) {
|
|
1886
|
+
try {
|
|
1887
|
+
yield onSubmitMessage(messageContent);
|
|
1888
|
+
} catch (error) {
|
|
1889
|
+
console.error("Error in onSubmitMessage:", error);
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1886
1892
|
const message = new import_runtime_client_gql4.TextMessage({
|
|
1887
1893
|
content: messageContent,
|
|
1888
1894
|
role: import_runtime_client_gql4.Role.User
|