@copilotkit/react-ui 1.3.7 → 1.3.8
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-7YQICPBC.mjs → chunk-3KBQXU44.mjs} +9 -9
- package/dist/{chunk-XSUSSWDS.mjs → chunk-3XAXY2Z3.mjs} +2 -2
- package/dist/{chunk-6VYMULPK.mjs → chunk-47OPG5FM.mjs} +9 -9
- package/dist/{chunk-RWT7WRG2.mjs → chunk-6BL5C56L.mjs} +2 -2
- package/dist/{chunk-DP5YVGNX.mjs → chunk-6INMITFA.mjs} +2 -2
- package/dist/{chunk-BJPGMY3I.mjs → chunk-CBBFRI3Q.mjs} +19 -8
- package/dist/{chunk-BJPGMY3I.mjs.map → chunk-CBBFRI3Q.mjs.map} +1 -1
- package/dist/{chunk-SHTMRY45.mjs → chunk-CPMIEVKK.mjs} +2 -2
- package/dist/{chunk-BNCTYKEP.mjs → chunk-JTINVYPK.mjs} +2 -2
- package/dist/{chunk-TYYJR3LE.mjs → chunk-KCAVDFB6.mjs} +2 -2
- package/dist/{chunk-YOH25I6N.mjs → chunk-RQNJNK2W.mjs} +2 -2
- package/dist/{chunk-JQOSF44H.mjs → chunk-SWADR6EH.mjs} +2 -2
- package/dist/{chunk-FLV3J3VX.mjs → chunk-VEC45H6Q.mjs} +2 -2
- package/dist/{chunk-WHSD7DBC.mjs → chunk-WYMTXCQU.mjs} +2 -2
- package/dist/{chunk-FO7Z5LAL.mjs → chunk-YAGE7RCE.mjs} +2 -2
- package/dist/{chunk-AAY3WWWC.mjs → chunk-ZABXREBH.mjs} +2 -2
- package/dist/components/chat/Button.js.map +1 -1
- package/dist/components/chat/Button.mjs +2 -2
- package/dist/components/chat/Chat.js +17 -6
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +9 -9
- package/dist/components/chat/ChatContext.js +17 -6
- package/dist/components/chat/ChatContext.js.map +1 -1
- package/dist/components/chat/ChatContext.mjs +1 -1
- package/dist/components/chat/Header.js.map +1 -1
- package/dist/components/chat/Header.mjs +2 -2
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +2 -2
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +2 -2
- package/dist/components/chat/Modal.js +17 -6
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +13 -13
- package/dist/components/chat/Popup.js +17 -6
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +14 -14
- package/dist/components/chat/Response.js.map +1 -1
- package/dist/components/chat/Response.mjs +2 -2
- package/dist/components/chat/Sidebar.js +17 -6
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +14 -14
- package/dist/components/chat/Window.js.map +1 -1
- package/dist/components/chat/Window.mjs +2 -2
- package/dist/components/chat/index.js +17 -6
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +15 -15
- package/dist/components/chat/messages/RenderActionExecutionMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderActionExecutionMessage.mjs +2 -2
- package/dist/components/chat/messages/RenderAgentStateMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderAgentStateMessage.mjs +2 -2
- package/dist/components/chat/messages/RenderResultMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderResultMessage.mjs +2 -2
- package/dist/components/chat/messages/RenderTextMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderTextMessage.mjs +2 -2
- package/dist/components/index.js +17 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +15 -15
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/package.json +7 -7
- package/src/components/chat/ChatContext.tsx +21 -8
- /package/dist/{chunk-7YQICPBC.mjs.map → chunk-3KBQXU44.mjs.map} +0 -0
- /package/dist/{chunk-XSUSSWDS.mjs.map → chunk-3XAXY2Z3.mjs.map} +0 -0
- /package/dist/{chunk-6VYMULPK.mjs.map → chunk-47OPG5FM.mjs.map} +0 -0
- /package/dist/{chunk-RWT7WRG2.mjs.map → chunk-6BL5C56L.mjs.map} +0 -0
- /package/dist/{chunk-DP5YVGNX.mjs.map → chunk-6INMITFA.mjs.map} +0 -0
- /package/dist/{chunk-SHTMRY45.mjs.map → chunk-CPMIEVKK.mjs.map} +0 -0
- /package/dist/{chunk-BNCTYKEP.mjs.map → chunk-JTINVYPK.mjs.map} +0 -0
- /package/dist/{chunk-TYYJR3LE.mjs.map → chunk-KCAVDFB6.mjs.map} +0 -0
- /package/dist/{chunk-YOH25I6N.mjs.map → chunk-RQNJNK2W.mjs.map} +0 -0
- /package/dist/{chunk-JQOSF44H.mjs.map → chunk-SWADR6EH.mjs.map} +0 -0
- /package/dist/{chunk-FLV3J3VX.mjs.map → chunk-VEC45H6Q.mjs.map} +0 -0
- /package/dist/{chunk-WHSD7DBC.mjs.map → chunk-WYMTXCQU.mjs.map} +0 -0
- /package/dist/{chunk-FO7Z5LAL.mjs.map → chunk-YAGE7RCE.mjs.map} +0 -0
- /package/dist/{chunk-AAY3WWWC.mjs.map → chunk-ZABXREBH.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -4,35 +4,35 @@ import "./chunk-JD7BAH7U.mjs";
|
|
|
4
4
|
import "./chunk-MRFF7GSQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
CopilotSidebar
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KCAVDFB6.mjs";
|
|
8
8
|
import "./chunk-WB3YULQ4.mjs";
|
|
9
9
|
import {
|
|
10
10
|
CopilotPopup
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-SWADR6EH.mjs";
|
|
12
|
+
import "./chunk-47OPG5FM.mjs";
|
|
13
|
+
import "./chunk-YAGE7RCE.mjs";
|
|
14
|
+
import "./chunk-VEC45H6Q.mjs";
|
|
15
|
+
import "./chunk-RQNJNK2W.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CopilotChat
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3KBQXU44.mjs";
|
|
19
19
|
import "./chunk-V7W6IM2V.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-6BL5C56L.mjs";
|
|
21
|
+
import "./chunk-ZABXREBH.mjs";
|
|
22
|
+
import "./chunk-6INMITFA.mjs";
|
|
23
|
+
import "./chunk-WYMTXCQU.mjs";
|
|
24
24
|
import "./chunk-KFQYJ5R5.mjs";
|
|
25
25
|
import "./chunk-RS6UPR5N.mjs";
|
|
26
26
|
import "./chunk-4FIGRRFS.mjs";
|
|
27
27
|
import "./chunk-OTPAZXVR.mjs";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-JTINVYPK.mjs";
|
|
29
29
|
import "./chunk-YQFVRDNC.mjs";
|
|
30
30
|
import "./chunk-YQ3D5IQV.mjs";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-CPMIEVKK.mjs";
|
|
32
|
+
import "./chunk-3XAXY2Z3.mjs";
|
|
33
33
|
import {
|
|
34
34
|
useChatContext
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CBBFRI3Q.mjs";
|
|
36
36
|
import "./chunk-UPTB2MVO.mjs";
|
|
37
37
|
import "./chunk-FZC7X5PK.mjs";
|
|
38
38
|
import "./chunk-IU3WTXLQ.mjs";
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.3.
|
|
12
|
+
"version": "1.3.8",
|
|
13
13
|
"sideEffects": [
|
|
14
14
|
"**/*.css"
|
|
15
15
|
],
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"ts-jest": "^29.1.1",
|
|
41
41
|
"tsup": "^6.7.0",
|
|
42
42
|
"typescript": "^5.2.3",
|
|
43
|
-
"eslint-config-custom": "1.3.
|
|
44
|
-
"tailwind-config": "1.3.
|
|
45
|
-
"tsconfig": "1.3.
|
|
43
|
+
"eslint-config-custom": "1.3.8",
|
|
44
|
+
"tailwind-config": "1.3.8",
|
|
45
|
+
"tsconfig": "1.3.8"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@headlessui/react": "^2.1.3",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"react-syntax-highlighter": "^15.5.0",
|
|
51
51
|
"remark-gfm": "^3.0.1",
|
|
52
52
|
"remark-math": "^5.1.1",
|
|
53
|
-
"@copilotkit/react-core": "1.3.
|
|
54
|
-
"@copilotkit/runtime-client-gql": "1.3.
|
|
55
|
-
"@copilotkit/shared": "1.3.
|
|
53
|
+
"@copilotkit/react-core": "1.3.8",
|
|
54
|
+
"@copilotkit/runtime-client-gql": "1.3.8",
|
|
55
|
+
"@copilotkit/shared": "1.3.8"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|
|
58
58
|
"copilotkit",
|
|
@@ -141,8 +141,8 @@ export const ChatContextProvider = ({
|
|
|
141
141
|
open,
|
|
142
142
|
setOpen,
|
|
143
143
|
}: ChatContextProps) => {
|
|
144
|
-
const
|
|
145
|
-
|
|
144
|
+
const memoizedLabels = useMemo(
|
|
145
|
+
() => ({
|
|
146
146
|
...{
|
|
147
147
|
initial: "",
|
|
148
148
|
title: "CopilotKit",
|
|
@@ -152,9 +152,12 @@ export const ChatContextProvider = ({
|
|
|
152
152
|
regenerateResponse: "Regenerate response",
|
|
153
153
|
},
|
|
154
154
|
...labels,
|
|
155
|
-
},
|
|
155
|
+
}),
|
|
156
|
+
[labels],
|
|
157
|
+
);
|
|
156
158
|
|
|
157
|
-
|
|
159
|
+
const memoizedIcons = useMemo(
|
|
160
|
+
() => ({
|
|
158
161
|
...{
|
|
159
162
|
openIcon: DefaultIcons.OpenIcon,
|
|
160
163
|
closeIcon: DefaultIcons.CloseIcon,
|
|
@@ -167,9 +170,19 @@ export const ChatContextProvider = ({
|
|
|
167
170
|
pushToTalkIcon: DefaultIcons.PushToTalkIcon,
|
|
168
171
|
},
|
|
169
172
|
...icons,
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
}),
|
|
174
|
+
[icons],
|
|
175
|
+
);
|
|
176
|
+
|
|
177
|
+
const context = useMemo(
|
|
178
|
+
() => ({
|
|
179
|
+
labels: memoizedLabels,
|
|
180
|
+
icons: memoizedIcons,
|
|
181
|
+
open,
|
|
182
|
+
setOpen,
|
|
183
|
+
}),
|
|
184
|
+
[memoizedLabels, memoizedIcons, open, setOpen],
|
|
185
|
+
);
|
|
186
|
+
|
|
174
187
|
return <ChatContext.Provider value={context}>{children}</ChatContext.Provider>;
|
|
175
188
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|