@copilotkit/react-ui 0.0.0-main-20250908181442 → 0.0.0-max-runner-auth-20251229215815
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 +528 -4
- package/dist/{chunk-DTRPPNSA.mjs → chunk-3W6J75HS.mjs} +14 -11
- package/dist/chunk-3W6J75HS.mjs.map +1 -0
- package/dist/{chunk-YO63WHVQ.mjs → chunk-7OURDQZJ.mjs} +9 -2
- package/dist/chunk-7OURDQZJ.mjs.map +1 -0
- package/dist/{chunk-AUCJZBT5.mjs → chunk-7PR2KJDO.mjs} +6 -6
- package/dist/{chunk-CGEAG65D.mjs → chunk-ELGRNEAO.mjs} +7 -2
- package/dist/chunk-ELGRNEAO.mjs.map +1 -0
- package/dist/{chunk-73V4ZLAN.mjs → chunk-ELUJRANC.mjs} +2 -2
- package/dist/{chunk-EELILZTD.mjs → chunk-HIW7RXCD.mjs} +11 -5
- package/dist/chunk-HIW7RXCD.mjs.map +1 -0
- package/dist/{chunk-X477GDGZ.mjs → chunk-IHFR6PYG.mjs} +9 -6
- package/dist/chunk-IHFR6PYG.mjs.map +1 -0
- package/dist/{chunk-B5IFB5YJ.mjs → chunk-IK2BPURM.mjs} +14 -3
- package/dist/chunk-IK2BPURM.mjs.map +1 -0
- package/dist/{chunk-SNFHUE5S.mjs → chunk-JZ3RFQQ6.mjs} +2 -2
- package/dist/{chunk-53C3S7R3.mjs → chunk-LQEFRHRT.mjs} +2 -2
- package/dist/{chunk-LJAYSRCB.mjs → chunk-NCIAFFQ2.mjs} +9 -3
- package/dist/chunk-NCIAFFQ2.mjs.map +1 -0
- package/dist/{chunk-W26XFBEG.mjs → chunk-NGJ32FAP.mjs} +3 -3
- package/dist/chunk-NGJ32FAP.mjs.map +1 -0
- package/dist/chunk-QB3GUN2N.mjs +31 -0
- package/dist/chunk-QB3GUN2N.mjs.map +1 -0
- package/dist/{chunk-WOYNUDPM.mjs → chunk-QPQRLXN3.mjs} +35 -255
- package/dist/chunk-QPQRLXN3.mjs.map +1 -0
- package/dist/chunk-RYUCX3ZK.mjs +32 -0
- package/dist/chunk-RYUCX3ZK.mjs.map +1 -0
- package/dist/chunk-Y4FKRAKJ.mjs +12 -0
- package/dist/chunk-Y4FKRAKJ.mjs.map +1 -0
- package/dist/components/chat/Chat.d.ts +3 -140
- package/dist/components/chat/Chat.js +140 -295
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +14 -16
- package/dist/components/chat/CodeBlock.js +12 -1
- package/dist/components/chat/CodeBlock.js.map +1 -1
- package/dist/components/chat/CodeBlock.mjs +1 -1
- package/dist/components/chat/Input.d.ts +1 -1
- package/dist/components/chat/Input.js +25 -15
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +2 -2
- package/dist/components/chat/Markdown.js +12 -1
- package/dist/components/chat/Markdown.js.map +1 -1
- package/dist/components/chat/Markdown.mjs +2 -2
- package/dist/components/chat/Messages.d.ts +4 -4
- package/dist/components/chat/Messages.js +58 -9
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +7 -7
- package/dist/components/chat/Modal.d.ts +1 -6
- package/dist/components/chat/Modal.js +153 -306
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +13 -13
- package/dist/components/chat/Popup.d.ts +1 -6
- package/dist/components/chat/Popup.js +153 -306
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +14 -14
- package/dist/components/chat/PoweredByTag.js +6 -1
- package/dist/components/chat/PoweredByTag.js.map +1 -1
- package/dist/components/chat/PoweredByTag.mjs +1 -1
- package/dist/components/chat/Sidebar.d.ts +1 -6
- package/dist/components/chat/Sidebar.js +155 -308
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +14 -14
- package/dist/components/chat/Suggestion.js.map +1 -1
- package/dist/components/chat/Suggestion.mjs +1 -1
- package/dist/components/chat/Suggestions.d.ts +1 -1
- package/dist/components/chat/Suggestions.js +19 -12
- package/dist/components/chat/Suggestions.js.map +1 -1
- package/dist/components/chat/Suggestions.mjs +2 -2
- package/dist/components/chat/index.d.ts +0 -5
- package/dist/components/chat/index.js +155 -308
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +17 -17
- package/dist/components/chat/messages/AssistantMessage.js +19 -5
- package/dist/components/chat/messages/AssistantMessage.js.map +1 -1
- package/dist/components/chat/messages/AssistantMessage.mjs +3 -3
- package/dist/components/chat/messages/ErrorMessage.js +12 -1
- package/dist/components/chat/messages/ErrorMessage.js.map +1 -1
- package/dist/components/chat/messages/ErrorMessage.mjs +2 -2
- package/dist/components/chat/messages/LegacyRenderMessage.js +51 -8
- package/dist/components/chat/messages/LegacyRenderMessage.js.map +1 -1
- package/dist/components/chat/messages/LegacyRenderMessage.mjs +6 -6
- package/dist/components/chat/messages/RenderMessage.d.ts +1 -1
- package/dist/components/chat/messages/RenderMessage.js +44 -8
- package/dist/components/chat/messages/RenderMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderMessage.mjs +5 -5
- package/dist/components/chat/messages/UserMessage.js +19 -3
- package/dist/components/chat/messages/UserMessage.js.map +1 -1
- package/dist/components/chat/messages/UserMessage.mjs +1 -1
- package/dist/components/chat/props.d.ts +16 -0
- package/dist/components/chat/props.js.map +1 -1
- package/dist/components/index.d.ts +0 -5
- package/dist/components/index.js +155 -308
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +17 -17
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +2 -24
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.d.ts +4 -26
- package/dist/hooks/use-copilot-chat-suggestions.js +2 -24
- package/dist/hooks/use-copilot-chat-suggestions.js.map +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.mjs +1 -1
- package/dist/index.css +9 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +158 -333
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/types/suggestions.d.ts +1 -0
- package/dist/types/suggestions.js.map +1 -1
- package/dist/v2/index.css +4 -0
- package/dist/v2/index.css.map +1 -0
- package/dist/v2/index.d.ts +2 -0
- package/dist/v2/index.js +2 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/index.mjs +2 -0
- package/dist/v2/index.mjs.map +1 -0
- package/package.json +8 -7
- package/src/components/chat/Chat.tsx +37 -374
- package/src/components/chat/CodeBlock.tsx +14 -2
- package/src/components/chat/Input.tsx +13 -12
- package/src/components/chat/Messages.tsx +10 -4
- package/src/components/chat/PoweredByTag.tsx +15 -2
- package/src/components/chat/Suggestion.tsx +2 -2
- package/src/components/chat/Suggestions.tsx +6 -2
- package/src/components/chat/messages/AssistantMessage.tsx +14 -4
- package/src/components/chat/messages/LegacyRenderMessage.tsx +7 -0
- package/src/components/chat/messages/RenderMessage.tsx +6 -0
- package/src/components/chat/messages/UserMessage.tsx +32 -6
- package/src/components/chat/props.ts +19 -0
- package/src/css/messages.css +11 -1
- package/src/hooks/use-copilot-chat-suggestions.tsx +6 -57
- package/src/types/suggestions.ts +1 -0
- package/src/v2/index.ts +1 -0
- package/src/v2/styles.css +1 -0
- package/tsup.config.ts +1 -1
- package/dist/chunk-226ZMOE3.mjs +0 -24
- package/dist/chunk-226ZMOE3.mjs.map +0 -1
- package/dist/chunk-B5IFB5YJ.mjs.map +0 -1
- package/dist/chunk-CGEAG65D.mjs.map +0 -1
- package/dist/chunk-DTRPPNSA.mjs.map +0 -1
- package/dist/chunk-EELILZTD.mjs.map +0 -1
- package/dist/chunk-EYRKZDP5.mjs +0 -32
- package/dist/chunk-EYRKZDP5.mjs.map +0 -1
- package/dist/chunk-LJAYSRCB.mjs.map +0 -1
- package/dist/chunk-VVL6JFCJ.mjs +0 -16
- package/dist/chunk-VVL6JFCJ.mjs.map +0 -1
- package/dist/chunk-W26XFBEG.mjs.map +0 -1
- package/dist/chunk-WOYNUDPM.mjs.map +0 -1
- package/dist/chunk-X477GDGZ.mjs.map +0 -1
- package/dist/chunk-YO63WHVQ.mjs.map +0 -1
- /package/dist/{chunk-AUCJZBT5.mjs.map → chunk-7PR2KJDO.mjs.map} +0 -0
- /package/dist/{chunk-73V4ZLAN.mjs.map → chunk-ELUJRANC.mjs.map} +0 -0
- /package/dist/{chunk-SNFHUE5S.mjs.map → chunk-JZ3RFQQ6.mjs.map} +0 -0
- /package/dist/{chunk-53C3S7R3.mjs.map → chunk-LQEFRHRT.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,530 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-max-runner-auth-20251229215815
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ea4238f: Add request as optional param to runtime.run
|
|
8
|
+
- Updated dependencies [ea4238f]
|
|
9
|
+
- @copilotkit/react-core@0.0.0-max-runner-auth-20251229215815
|
|
10
|
+
- @copilotkit/runtime-client-gql@0.0.0-max-runner-auth-20251229215815
|
|
11
|
+
- @copilotkit/shared@0.0.0-max-runner-auth-20251229215815
|
|
12
|
+
|
|
13
|
+
## 1.50.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- bdc7a8f: - fix: restore message callbacks
|
|
18
|
+
- 80dffec: Updated the default model and API version for the Google GenAI adapter
|
|
19
|
+
- Updated dependencies [bdc7a8f]
|
|
20
|
+
- Updated dependencies [80dffec]
|
|
21
|
+
- Updated dependencies [cfa4185]
|
|
22
|
+
- Updated dependencies [eac8b20]
|
|
23
|
+
- @copilotkit/react-core@1.50.1
|
|
24
|
+
- @copilotkit/runtime-client-gql@1.50.1
|
|
25
|
+
- @copilotkit/shared@1.50.1
|
|
26
|
+
|
|
27
|
+
## 1.50.1-next.3
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [eac8b20]
|
|
32
|
+
- @copilotkit/react-core@1.50.1-next.3
|
|
33
|
+
- @copilotkit/runtime-client-gql@1.50.1-next.3
|
|
34
|
+
- @copilotkit/shared@1.50.1-next.3
|
|
35
|
+
|
|
36
|
+
## 1.50.1-next.2
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- bdc7a8f: - fix: restore message callbacks
|
|
41
|
+
- Updated dependencies [bdc7a8f]
|
|
42
|
+
- @copilotkit/react-core@1.50.1-next.2
|
|
43
|
+
- @copilotkit/runtime-client-gql@1.50.1-next.2
|
|
44
|
+
- @copilotkit/shared@1.50.1-next.2
|
|
45
|
+
|
|
46
|
+
## 1.50.1-next.1
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [cfa4185]
|
|
51
|
+
- @copilotkit/react-core@1.50.1-next.1
|
|
52
|
+
- @copilotkit/runtime-client-gql@1.50.1-next.1
|
|
53
|
+
- @copilotkit/shared@1.50.1-next.1
|
|
54
|
+
|
|
55
|
+
## 1.50.1-next.0
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated the default model and API version for the Google GenAI adapter
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
- @copilotkit/runtime-client-gql@1.50.1-next.0
|
|
62
|
+
- @copilotkit/react-core@1.50.1-next.0
|
|
63
|
+
- @copilotkit/shared@1.50.1-next.0
|
|
64
|
+
|
|
65
|
+
## 1.50.0
|
|
66
|
+
|
|
67
|
+
### Minor Changes
|
|
68
|
+
|
|
69
|
+
- 0fc76d7: add new runner with telemetry baked in
|
|
70
|
+
- c942f9c: Minor fixes and stability improvements
|
|
71
|
+
- eed6021: Updating to the latest version of vnext
|
|
72
|
+
- 3b7367e: Improving general stability around LangChain
|
|
73
|
+
- 7ff9ca7: Minor fixes and improvements
|
|
74
|
+
- 974875e: Lint and format code to resolve Prettier errors
|
|
75
|
+
- 3bd484f: Minor fixes and stability improvements
|
|
76
|
+
- 5a534bf: fix telemetry in v1.50 runtime
|
|
77
|
+
- 769a06c: Refactor suggestions to not always run
|
|
78
|
+
- 788292b: Improving langchain dependency resolution
|
|
79
|
+
- eab69a2: Enabling the new inspector
|
|
80
|
+
- 0a7bfe0: Updating dependency versions across all packages
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- 2c93ff1: - fix: re-enable repeatable interrupt renders
|
|
85
|
+
- b0e3652: - chore: Update to latest of vnext
|
|
86
|
+
- c38da1c: - feat: add suggestions support to 1.5
|
|
87
|
+
- fcc52cb: - fix: use `--copilot-kit-primary-color` as default `Messages` font color
|
|
88
|
+
- 5840bab: - fix: adjust dependencies
|
|
89
|
+
- 7808fac: - feat: add spinner indicator to show chat readiness for conversation
|
|
90
|
+
- Updated dependencies [0fc76d7]
|
|
91
|
+
- Updated dependencies [c942f9c]
|
|
92
|
+
- Updated dependencies [bad5f06]
|
|
93
|
+
- Updated dependencies [8ce60af]
|
|
94
|
+
- Updated dependencies [33f47e3]
|
|
95
|
+
- Updated dependencies [04057d5]
|
|
96
|
+
- Updated dependencies [6ce0edc]
|
|
97
|
+
- Updated dependencies [2c93ff1]
|
|
98
|
+
- Updated dependencies [b0e3652]
|
|
99
|
+
- Updated dependencies [7643e71]
|
|
100
|
+
- Updated dependencies [d55a8bd]
|
|
101
|
+
- Updated dependencies [eed6021]
|
|
102
|
+
- Updated dependencies [3b7367e]
|
|
103
|
+
- Updated dependencies [c38da1c]
|
|
104
|
+
- Updated dependencies [7ff9ca7]
|
|
105
|
+
- Updated dependencies [3c60073]
|
|
106
|
+
- Updated dependencies [962546c]
|
|
107
|
+
- Updated dependencies [974875e]
|
|
108
|
+
- Updated dependencies [4942f62]
|
|
109
|
+
- Updated dependencies [3bd484f]
|
|
110
|
+
- Updated dependencies [5a534bf]
|
|
111
|
+
- Updated dependencies [ca8eb39]
|
|
112
|
+
- Updated dependencies [907ae5d]
|
|
113
|
+
- Updated dependencies [769a06c]
|
|
114
|
+
- Updated dependencies [788292b]
|
|
115
|
+
- Updated dependencies [c3d55e5]
|
|
116
|
+
- Updated dependencies [eab69a2]
|
|
117
|
+
- Updated dependencies [5840bab]
|
|
118
|
+
- Updated dependencies [7808fac]
|
|
119
|
+
- Updated dependencies [0a7bfe0]
|
|
120
|
+
- Updated dependencies [c70210e]
|
|
121
|
+
- Updated dependencies [d2c57a1]
|
|
122
|
+
- @copilotkit/runtime-client-gql@1.50.0
|
|
123
|
+
- @copilotkit/react-core@1.50.0
|
|
124
|
+
- @copilotkit/shared@1.50.0
|
|
125
|
+
|
|
126
|
+
## 1.50.0-beta.19
|
|
127
|
+
|
|
128
|
+
### Minor Changes
|
|
129
|
+
|
|
130
|
+
- Improving langchain dependency resolution
|
|
131
|
+
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- Updated dependencies
|
|
135
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.19
|
|
136
|
+
- @copilotkit/react-core@1.50.0-beta.19
|
|
137
|
+
- @copilotkit/shared@1.50.0-beta.19
|
|
138
|
+
|
|
139
|
+
## 1.50.0-beta.18
|
|
140
|
+
|
|
141
|
+
### Minor Changes
|
|
142
|
+
|
|
143
|
+
- Improving general stability around LangChain
|
|
144
|
+
|
|
145
|
+
### Patch Changes
|
|
146
|
+
|
|
147
|
+
- Updated dependencies
|
|
148
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.18
|
|
149
|
+
- @copilotkit/react-core@1.50.0-beta.18
|
|
150
|
+
- @copilotkit/shared@1.50.0-beta.18
|
|
151
|
+
|
|
152
|
+
## 1.50.0-beta.17
|
|
153
|
+
|
|
154
|
+
### Minor Changes
|
|
155
|
+
|
|
156
|
+
- Minor fixes and improvements
|
|
157
|
+
|
|
158
|
+
### Patch Changes
|
|
159
|
+
|
|
160
|
+
- Updated dependencies
|
|
161
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.17
|
|
162
|
+
- @copilotkit/react-core@1.50.0-beta.17
|
|
163
|
+
- @copilotkit/shared@1.50.0-beta.17
|
|
164
|
+
|
|
165
|
+
## 1.50.0-beta.16
|
|
166
|
+
|
|
167
|
+
### Minor Changes
|
|
168
|
+
|
|
169
|
+
- Minor fixes and stability improvements
|
|
170
|
+
|
|
171
|
+
### Patch Changes
|
|
172
|
+
|
|
173
|
+
- Updated dependencies
|
|
174
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.16
|
|
175
|
+
- @copilotkit/react-core@1.50.0-beta.16
|
|
176
|
+
- @copilotkit/shared@1.50.0-beta.16
|
|
177
|
+
|
|
178
|
+
## 1.50.0-beta.15
|
|
179
|
+
|
|
180
|
+
### Minor Changes
|
|
181
|
+
|
|
182
|
+
- Lint and format code to resolve Prettier errors
|
|
183
|
+
|
|
184
|
+
### Patch Changes
|
|
185
|
+
|
|
186
|
+
- Updated dependencies
|
|
187
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.15
|
|
188
|
+
- @copilotkit/react-core@1.50.0-beta.15
|
|
189
|
+
- @copilotkit/shared@1.50.0-beta.15
|
|
190
|
+
|
|
191
|
+
## 1.50.0-beta.14
|
|
192
|
+
|
|
193
|
+
### Minor Changes
|
|
194
|
+
|
|
195
|
+
- Minor fixes and stability improvements
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- Updated dependencies
|
|
200
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.14
|
|
201
|
+
- @copilotkit/react-core@1.50.0-beta.14
|
|
202
|
+
- @copilotkit/shared@1.50.0-beta.14
|
|
203
|
+
|
|
204
|
+
## 1.50.0-beta.13
|
|
205
|
+
|
|
206
|
+
### Minor Changes
|
|
207
|
+
|
|
208
|
+
- Updating to the latest version of vnext
|
|
209
|
+
|
|
210
|
+
### Patch Changes
|
|
211
|
+
|
|
212
|
+
- Updated dependencies
|
|
213
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.13
|
|
214
|
+
- @copilotkit/react-core@1.50.0-beta.13
|
|
215
|
+
- @copilotkit/shared@1.50.0-beta.13
|
|
216
|
+
|
|
217
|
+
## 1.50.0-beta.12
|
|
218
|
+
|
|
219
|
+
### Minor Changes
|
|
220
|
+
|
|
221
|
+
- eab69a2: Enabling the new inspector
|
|
222
|
+
|
|
223
|
+
### Patch Changes
|
|
224
|
+
|
|
225
|
+
- Updated dependencies [eab69a2]
|
|
226
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.12
|
|
227
|
+
- @copilotkit/react-core@1.50.0-beta.12
|
|
228
|
+
- @copilotkit/shared@1.50.0-beta.12
|
|
229
|
+
|
|
230
|
+
## 1.50.0-beta.11
|
|
231
|
+
|
|
232
|
+
### Minor Changes
|
|
233
|
+
|
|
234
|
+
- fix telemetry in v1.50 runtime
|
|
235
|
+
|
|
236
|
+
### Patch Changes
|
|
237
|
+
|
|
238
|
+
- Updated dependencies
|
|
239
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.11
|
|
240
|
+
- @copilotkit/react-core@1.50.0-beta.11
|
|
241
|
+
- @copilotkit/shared@1.50.0-beta.11
|
|
242
|
+
|
|
243
|
+
## 1.50.0-beta.10
|
|
244
|
+
|
|
245
|
+
### Minor Changes
|
|
246
|
+
|
|
247
|
+
- add new runner with telemetry baked in
|
|
248
|
+
|
|
249
|
+
### Patch Changes
|
|
250
|
+
|
|
251
|
+
- Updated dependencies
|
|
252
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.10
|
|
253
|
+
- @copilotkit/react-core@1.50.0-beta.10
|
|
254
|
+
- @copilotkit/shared@1.50.0-beta.10
|
|
255
|
+
|
|
256
|
+
## 1.50.0-beta.9
|
|
257
|
+
|
|
258
|
+
### Minor Changes
|
|
259
|
+
|
|
260
|
+
- Refactor suggestions to not always run
|
|
261
|
+
|
|
262
|
+
### Patch Changes
|
|
263
|
+
|
|
264
|
+
- Updated dependencies
|
|
265
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.9
|
|
266
|
+
- @copilotkit/react-core@1.50.0-beta.9
|
|
267
|
+
- @copilotkit/shared@1.50.0-beta.9
|
|
268
|
+
|
|
269
|
+
## 1.50.0-beta.8
|
|
270
|
+
|
|
271
|
+
### Patch Changes
|
|
272
|
+
|
|
273
|
+
- @copilotkit/react-core@1.50.0-beta.8
|
|
274
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.8
|
|
275
|
+
- @copilotkit/shared@1.50.0-beta.8
|
|
276
|
+
|
|
277
|
+
## 1.50.0-beta.7
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- Updated dependencies [6ce0edc]
|
|
282
|
+
- @copilotkit/react-core@1.50.0-beta.7
|
|
283
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.7
|
|
284
|
+
- @copilotkit/shared@1.50.0-beta.7
|
|
285
|
+
|
|
286
|
+
## 1.50.0-beta.6
|
|
287
|
+
|
|
288
|
+
### Minor Changes
|
|
289
|
+
|
|
290
|
+
- Updating dependency versions across all packages
|
|
291
|
+
|
|
292
|
+
### Patch Changes
|
|
293
|
+
|
|
294
|
+
- Updated dependencies
|
|
295
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.6
|
|
296
|
+
- @copilotkit/react-core@1.50.0-beta.6
|
|
297
|
+
- @copilotkit/shared@1.50.0-beta.6
|
|
298
|
+
|
|
299
|
+
## 1.50.0-beta.4
|
|
300
|
+
|
|
301
|
+
### Patch Changes
|
|
302
|
+
|
|
303
|
+
- 2c93ff1: - fix: re-enable repeatable interrupt renders
|
|
304
|
+
- b0e3652: - chore: Update to latest of vnext
|
|
305
|
+
- c38da1c: - feat: add suggestions support to 1.5
|
|
306
|
+
- 5840bab: - fix: adjust dependencies
|
|
307
|
+
- 7808fac: - feat: add spinner indicator to show chat readiness for conversation
|
|
308
|
+
- Updated dependencies [bad5f06]
|
|
309
|
+
- Updated dependencies [8ce60af]
|
|
310
|
+
- Updated dependencies [33f47e3]
|
|
311
|
+
- Updated dependencies [04057d5]
|
|
312
|
+
- Updated dependencies [2c93ff1]
|
|
313
|
+
- Updated dependencies [b0e3652]
|
|
314
|
+
- Updated dependencies [7643e71]
|
|
315
|
+
- Updated dependencies [d55a8bd]
|
|
316
|
+
- Updated dependencies [c38da1c]
|
|
317
|
+
- Updated dependencies [3c60073]
|
|
318
|
+
- Updated dependencies [962546c]
|
|
319
|
+
- Updated dependencies [4942f62]
|
|
320
|
+
- Updated dependencies [ca8eb39]
|
|
321
|
+
- Updated dependencies [907ae5d]
|
|
322
|
+
- Updated dependencies [c3d55e5]
|
|
323
|
+
- Updated dependencies [5840bab]
|
|
324
|
+
- Updated dependencies [7808fac]
|
|
325
|
+
- Updated dependencies [c70210e]
|
|
326
|
+
- Updated dependencies [d2c57a1]
|
|
327
|
+
- @copilotkit/react-core@1.50.0-beta.4
|
|
328
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.4
|
|
329
|
+
- @copilotkit/shared@1.50.0-beta.4
|
|
330
|
+
|
|
331
|
+
## 1.10.7-next.0
|
|
332
|
+
|
|
333
|
+
### Patch Changes
|
|
334
|
+
|
|
335
|
+
- fcc52cb: - fix: use `--copilot-kit-primary-color` as default `Messages` font color
|
|
336
|
+
- @copilotkit/react-core@1.10.7-next.0
|
|
337
|
+
- @copilotkit/runtime-client-gql@1.10.7-next.0
|
|
338
|
+
- @copilotkit/shared@1.10.7-next.0
|
|
339
|
+
|
|
340
|
+
## 1.10.6
|
|
341
|
+
|
|
342
|
+
### Patch Changes
|
|
343
|
+
|
|
344
|
+
- 0cc9ec2: - fix(react-ui): address hydration issue
|
|
345
|
+
|
|
346
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
347
|
+
|
|
348
|
+
- Updated dependencies [3ac64bf]
|
|
349
|
+
- Updated dependencies [c9e499f]
|
|
350
|
+
- Updated dependencies [8626c5a]
|
|
351
|
+
- Updated dependencies [e0dd5d5]
|
|
352
|
+
- @copilotkit/react-core@1.10.6
|
|
353
|
+
- @copilotkit/runtime-client-gql@1.10.6
|
|
354
|
+
- @copilotkit/shared@1.10.6
|
|
355
|
+
|
|
356
|
+
## 1.10.6-next.6
|
|
357
|
+
|
|
358
|
+
### Patch Changes
|
|
359
|
+
|
|
360
|
+
- @copilotkit/runtime-client-gql@1.10.6-next.6
|
|
361
|
+
- @copilotkit/react-core@1.10.6-next.6
|
|
362
|
+
- @copilotkit/shared@1.10.6-next.6
|
|
363
|
+
|
|
364
|
+
## 1.10.6-next.5
|
|
365
|
+
|
|
366
|
+
### Patch Changes
|
|
367
|
+
|
|
368
|
+
- Updated dependencies [e0dd5d5]
|
|
369
|
+
- @copilotkit/shared@1.10.6-next.5
|
|
370
|
+
- @copilotkit/runtime-client-gql@1.10.6-next.5
|
|
371
|
+
- @copilotkit/react-core@1.10.6-next.5
|
|
372
|
+
|
|
373
|
+
## 1.10.6-next.4
|
|
374
|
+
|
|
375
|
+
### Patch Changes
|
|
376
|
+
|
|
377
|
+
- Updated dependencies [8626c5a]
|
|
378
|
+
- @copilotkit/react-core@1.10.6-next.4
|
|
379
|
+
- @copilotkit/runtime-client-gql@1.10.6-next.4
|
|
380
|
+
- @copilotkit/shared@1.10.6-next.4
|
|
381
|
+
|
|
382
|
+
## 1.10.6-next.3
|
|
383
|
+
|
|
384
|
+
### Patch Changes
|
|
385
|
+
|
|
386
|
+
- @copilotkit/runtime-client-gql@1.10.6-next.3
|
|
387
|
+
- @copilotkit/react-core@1.10.6-next.3
|
|
388
|
+
- @copilotkit/shared@1.10.6-next.3
|
|
389
|
+
|
|
390
|
+
## 1.10.6-next.2
|
|
391
|
+
|
|
392
|
+
### Patch Changes
|
|
393
|
+
|
|
394
|
+
- Updated dependencies [3ac64bf]
|
|
395
|
+
- @copilotkit/react-core@1.10.6-next.2
|
|
396
|
+
- @copilotkit/runtime-client-gql@1.10.6-next.2
|
|
397
|
+
- @copilotkit/shared@1.10.6-next.2
|
|
398
|
+
|
|
399
|
+
## 1.10.6-next.1
|
|
400
|
+
|
|
401
|
+
### Patch Changes
|
|
402
|
+
|
|
403
|
+
- Updated dependencies [c9e499f]
|
|
404
|
+
- @copilotkit/react-core@1.10.6-next.1
|
|
405
|
+
- @copilotkit/runtime-client-gql@1.10.6-next.1
|
|
406
|
+
- @copilotkit/shared@1.10.6-next.1
|
|
407
|
+
|
|
408
|
+
## 1.10.6-next.0
|
|
409
|
+
|
|
410
|
+
### Patch Changes
|
|
411
|
+
|
|
412
|
+
- 0cc9ec2: - fix(react-ui): address hydration issue
|
|
413
|
+
|
|
414
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
415
|
+
|
|
416
|
+
- @copilotkit/react-core@1.10.6-next.0
|
|
417
|
+
- @copilotkit/runtime-client-gql@1.10.6-next.0
|
|
418
|
+
- @copilotkit/shared@1.10.6-next.0
|
|
419
|
+
|
|
420
|
+
## 1.10.5
|
|
421
|
+
|
|
422
|
+
### Patch Changes
|
|
423
|
+
|
|
424
|
+
- c2de25d: - fix: refrain from using prismjs for syntax highlighting on older browsers
|
|
425
|
+
- Updated dependencies [b7bc3a0]
|
|
426
|
+
- Updated dependencies [f3fdd7a]
|
|
427
|
+
- Updated dependencies [32c163e]
|
|
428
|
+
- Updated dependencies [6112a67]
|
|
429
|
+
- @copilotkit/react-core@1.10.5
|
|
430
|
+
- @copilotkit/runtime-client-gql@1.10.5
|
|
431
|
+
- @copilotkit/shared@1.10.5
|
|
432
|
+
|
|
433
|
+
## 1.10.5-next.10
|
|
434
|
+
|
|
435
|
+
### Patch Changes
|
|
436
|
+
|
|
437
|
+
- Updated dependencies [b79ed5c]
|
|
438
|
+
- @copilotkit/react-core@1.10.5-next.10
|
|
439
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.10
|
|
440
|
+
- @copilotkit/shared@1.10.5-next.10
|
|
441
|
+
|
|
442
|
+
## 1.10.5-next.9
|
|
443
|
+
|
|
444
|
+
### Patch Changes
|
|
445
|
+
|
|
446
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.9
|
|
447
|
+
- @copilotkit/react-core@1.10.5-next.9
|
|
448
|
+
- @copilotkit/shared@1.10.5-next.9
|
|
449
|
+
|
|
450
|
+
## 1.10.5-next.8
|
|
451
|
+
|
|
452
|
+
### Patch Changes
|
|
453
|
+
|
|
454
|
+
- c2de25d: - fix: refrain from using prismjs for syntax highlighting on older browsers
|
|
455
|
+
- @copilotkit/react-core@1.10.5-next.8
|
|
456
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.8
|
|
457
|
+
- @copilotkit/shared@1.10.5-next.8
|
|
458
|
+
|
|
459
|
+
## 1.10.5-next.7
|
|
460
|
+
|
|
461
|
+
### Patch Changes
|
|
462
|
+
|
|
463
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.7
|
|
464
|
+
- @copilotkit/react-core@1.10.5-next.7
|
|
465
|
+
- @copilotkit/shared@1.10.5-next.7
|
|
466
|
+
|
|
467
|
+
## 1.10.5-next.6
|
|
468
|
+
|
|
469
|
+
### Patch Changes
|
|
470
|
+
|
|
471
|
+
- Updated dependencies [f3fdd7a]
|
|
472
|
+
- @copilotkit/react-core@1.10.5-next.6
|
|
473
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.6
|
|
474
|
+
- @copilotkit/shared@1.10.5-next.6
|
|
475
|
+
|
|
476
|
+
## 1.10.5-next.5
|
|
477
|
+
|
|
478
|
+
### Patch Changes
|
|
479
|
+
|
|
480
|
+
- Updated dependencies [6112a67]
|
|
481
|
+
- @copilotkit/react-core@1.10.5-next.5
|
|
482
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.5
|
|
483
|
+
- @copilotkit/shared@1.10.5-next.5
|
|
484
|
+
|
|
485
|
+
## 1.10.5-next.4
|
|
486
|
+
|
|
487
|
+
### Patch Changes
|
|
488
|
+
|
|
489
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.4
|
|
490
|
+
- @copilotkit/react-core@1.10.5-next.4
|
|
491
|
+
- @copilotkit/shared@1.10.5-next.4
|
|
492
|
+
|
|
493
|
+
## 1.10.5-next.3
|
|
494
|
+
|
|
495
|
+
### Patch Changes
|
|
496
|
+
|
|
497
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.3
|
|
498
|
+
- @copilotkit/react-core@1.10.5-next.3
|
|
499
|
+
- @copilotkit/shared@1.10.5-next.3
|
|
500
|
+
|
|
501
|
+
## 1.10.5-next.2
|
|
502
|
+
|
|
503
|
+
### Patch Changes
|
|
504
|
+
|
|
505
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.2
|
|
506
|
+
- @copilotkit/react-core@1.10.5-next.2
|
|
507
|
+
- @copilotkit/shared@1.10.5-next.2
|
|
508
|
+
|
|
509
|
+
## 1.10.5-next.1
|
|
510
|
+
|
|
511
|
+
### Patch Changes
|
|
512
|
+
|
|
513
|
+
- Updated dependencies [b7bc3a0]
|
|
514
|
+
- @copilotkit/react-core@1.10.5-next.1
|
|
515
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.1
|
|
516
|
+
- @copilotkit/shared@1.10.5-next.1
|
|
517
|
+
|
|
518
|
+
## 1.10.5-next.0
|
|
519
|
+
|
|
520
|
+
### Patch Changes
|
|
521
|
+
|
|
522
|
+
- Updated dependencies [32c163e]
|
|
523
|
+
- @copilotkit/react-core@1.10.5-next.0
|
|
524
|
+
- @copilotkit/runtime-client-gql@1.10.5-next.0
|
|
525
|
+
- @copilotkit/shared@1.10.5-next.0
|
|
526
|
+
|
|
527
|
+
## 1.10.4
|
|
4
528
|
|
|
5
529
|
### Patch Changes
|
|
6
530
|
|
|
@@ -10,9 +534,9 @@
|
|
|
10
534
|
- Updated dependencies [ef98963]
|
|
11
535
|
- Updated dependencies [a640d8e]
|
|
12
536
|
- Updated dependencies [052d54d]
|
|
13
|
-
- @copilotkit/react-core@
|
|
14
|
-
- @copilotkit/shared@
|
|
15
|
-
- @copilotkit/runtime-client-gql@
|
|
537
|
+
- @copilotkit/react-core@1.10.4
|
|
538
|
+
- @copilotkit/shared@1.10.4
|
|
539
|
+
- @copilotkit/runtime-client-gql@1.10.4
|
|
16
540
|
|
|
17
541
|
## 1.10.4-next.3
|
|
18
542
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PoweredByTag
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ELGRNEAO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Textarea_default
|
|
6
6
|
} from "./chunk-QIOJXTIQ.mjs";
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
|
|
14
14
|
// src/components/chat/Input.tsx
|
|
15
15
|
import { useMemo, useRef, useState } from "react";
|
|
16
|
-
import { useCopilotContext } from "@copilotkit/react-core";
|
|
16
|
+
import { useCopilotContext, useCopilotChatInternal } from "@copilotkit/react-core";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
var MAX_NEWLINES = 6;
|
|
19
19
|
var Input = ({
|
|
20
20
|
inProgress,
|
|
21
21
|
onSend,
|
|
22
|
-
|
|
22
|
+
chatReady = false,
|
|
23
23
|
onStop,
|
|
24
24
|
onUpload,
|
|
25
25
|
hideStopButton = false
|
|
26
26
|
}) => {
|
|
27
|
-
var _a
|
|
27
|
+
var _a;
|
|
28
28
|
const context = useChatContext();
|
|
29
29
|
const copilotContext = useCopilotContext();
|
|
30
30
|
const showPoweredBy = !((_a = copilotContext.copilotApiConfig) == null ? void 0 : _a.publicApiKey);
|
|
@@ -54,14 +54,16 @@ var Input = ({
|
|
|
54
54
|
inProgress
|
|
55
55
|
});
|
|
56
56
|
const isInProgress = inProgress || pushToTalkState === "transcribing";
|
|
57
|
-
const buttonIcon
|
|
57
|
+
const { buttonIcon, buttonAlt } = useMemo(() => {
|
|
58
|
+
if (!chatReady)
|
|
59
|
+
return { buttonIcon: context.icons.spinnerIcon, buttonAlt: "Loading" };
|
|
60
|
+
return isInProgress && !hideStopButton && chatReady ? { buttonIcon: context.icons.stopIcon, buttonAlt: "Stop" } : { buttonIcon: context.icons.sendIcon, buttonAlt: "Send" };
|
|
61
|
+
}, [isInProgress, chatReady, hideStopButton, context.icons.stopIcon, context.icons.sendIcon]);
|
|
58
62
|
const showPushToTalk = pushToTalkConfigured && (pushToTalkState === "idle" || pushToTalkState === "recording") && !inProgress;
|
|
63
|
+
const { interrupt } = useCopilotChatInternal();
|
|
59
64
|
const canSend = useMemo(() => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const interruptInProgress = (interruptEvent == null ? void 0 : interruptEvent.name) === "LangGraphInterruptEvent" && !(interruptEvent == null ? void 0 : interruptEvent.response);
|
|
63
|
-
return !isInProgress && text.trim().length > 0 && pushToTalkState === "idle" && !interruptInProgress;
|
|
64
|
-
}, [(_b = copilotContext.langGraphInterruptAction) == null ? void 0 : _b.event, isInProgress, text, pushToTalkState]);
|
|
65
|
+
return !isInProgress && text.trim().length > 0 && pushToTalkState === "idle" && !interrupt;
|
|
66
|
+
}, [interrupt, isInProgress, text, pushToTalkState]);
|
|
65
67
|
const canStop = useMemo(() => {
|
|
66
68
|
return isInProgress && !hideStopButton;
|
|
67
69
|
}, [isInProgress, hideStopButton]);
|
|
@@ -108,6 +110,7 @@ var Input = ({
|
|
|
108
110
|
"data-copilotkit-in-progress": inProgress,
|
|
109
111
|
"data-test-id": inProgress ? "copilot-chat-request-in-progress" : "copilot-chat-ready",
|
|
110
112
|
className: "copilotKitInputControlButton",
|
|
113
|
+
"aria-label": buttonAlt,
|
|
111
114
|
children: buttonIcon
|
|
112
115
|
}
|
|
113
116
|
)
|
|
@@ -120,4 +123,4 @@ var Input = ({
|
|
|
120
123
|
export {
|
|
121
124
|
Input
|
|
122
125
|
};
|
|
123
|
-
//# sourceMappingURL=chunk-
|
|
126
|
+
//# sourceMappingURL=chunk-3W6J75HS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/Input.tsx"],"sourcesContent":["import React, { useMemo, useRef, useState } from \"react\";\nimport { InputProps } from \"./props\";\nimport { useChatContext } from \"./ChatContext\";\nimport AutoResizingTextarea from \"./Textarea\";\nimport { usePushToTalk } from \"../../hooks/use-push-to-talk\";\nimport { useCopilotContext, useCopilotChatInternal } from \"@copilotkit/react-core\";\nimport { PoweredByTag } from \"./PoweredByTag\";\n\nconst MAX_NEWLINES = 6;\n\nexport const Input = ({\n inProgress,\n onSend,\n chatReady = false,\n onStop,\n onUpload,\n hideStopButton = false,\n}: InputProps) => {\n const context = useChatContext();\n const copilotContext = useCopilotContext();\n\n const showPoweredBy = !copilotContext.copilotApiConfig?.publicApiKey;\n\n const pushToTalkConfigured =\n copilotContext.copilotApiConfig.textToSpeechUrl !== undefined &&\n copilotContext.copilotApiConfig.transcribeAudioUrl !== undefined;\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n const [isComposing, setIsComposing] = useState(false);\n\n const handleDivClick = (event: React.MouseEvent<HTMLDivElement>) => {\n const target = event.target as HTMLElement;\n\n // If the user clicked a button or inside a button, don't focus the textarea\n if (target.closest(\"button\")) return;\n\n // If the user clicked the textarea, do nothing (it's already focused)\n if (target.tagName === \"TEXTAREA\") return;\n\n // Otherwise, focus the textarea\n textareaRef.current?.focus();\n };\n\n const [text, setText] = useState(\"\");\n const send = () => {\n if (inProgress) return;\n onSend(text);\n setText(\"\");\n\n textareaRef.current?.focus();\n };\n\n // tylerslaton:\n //\n // This scrolls CopilotKit into view always. Reading the commit history, it was likely\n // added to fix a bug but it is causing issues now.\n //\n // For the future, if we want this behavior again, we will need to find a way to do it without\n // forcing CopilotKit to always be in view. This code causes this because focusing an element\n // in most browsers will scroll that element into view.\n //\n // useEffect(() => {\n // if (isVisible) {\n // textareaRef.current?.focus();\n // }\n // }, [isVisible]);\n\n const { pushToTalkState, setPushToTalkState } = usePushToTalk({\n sendFunction: onSend,\n inProgress,\n });\n\n const isInProgress = inProgress || pushToTalkState === \"transcribing\";\n const { buttonIcon, buttonAlt } = useMemo(() => {\n if (!chatReady) return { buttonIcon: context.icons.spinnerIcon, buttonAlt: \"Loading\" };\n return isInProgress && !hideStopButton && chatReady\n ? { buttonIcon: context.icons.stopIcon, buttonAlt: \"Stop\" }\n : { buttonIcon: context.icons.sendIcon, buttonAlt: \"Send\" };\n }, [isInProgress, chatReady, hideStopButton, context.icons.stopIcon, context.icons.sendIcon]);\n const showPushToTalk =\n pushToTalkConfigured &&\n (pushToTalkState === \"idle\" || pushToTalkState === \"recording\") &&\n !inProgress;\n\n const { interrupt } = useCopilotChatInternal();\n\n const canSend = useMemo(() => {\n return !isInProgress && text.trim().length > 0 && pushToTalkState === \"idle\" && !interrupt;\n }, [interrupt, isInProgress, text, pushToTalkState]);\n\n const canStop = useMemo(() => {\n return isInProgress && !hideStopButton;\n }, [isInProgress, hideStopButton]);\n\n const sendDisabled = !canSend && !canStop;\n\n return (\n <div className={`copilotKitInputContainer ${showPoweredBy ? \"poweredByContainer\" : \"\"}`}>\n <div className=\"copilotKitInput\" onClick={handleDivClick}>\n <AutoResizingTextarea\n ref={textareaRef}\n placeholder={context.labels.placeholder}\n autoFocus={false}\n maxRows={MAX_NEWLINES}\n value={text}\n onChange={(event) => setText(event.target.value)}\n onCompositionStart={() => setIsComposing(true)}\n onCompositionEnd={() => setIsComposing(false)}\n onKeyDown={(event) => {\n if (event.key === \"Enter\" && !event.shiftKey && !isComposing) {\n event.preventDefault();\n if (canSend) {\n send();\n }\n }\n }}\n />\n <div className=\"copilotKitInputControls\">\n {onUpload && (\n <button onClick={onUpload} className=\"copilotKitInputControlButton\">\n {context.icons.uploadIcon}\n </button>\n )}\n\n <div style={{ flexGrow: 1 }} />\n\n {showPushToTalk && (\n <button\n onClick={() =>\n setPushToTalkState(pushToTalkState === \"idle\" ? \"recording\" : \"transcribing\")\n }\n className={\n pushToTalkState === \"recording\"\n ? \"copilotKitInputControlButton copilotKitPushToTalkRecording\"\n : \"copilotKitInputControlButton\"\n }\n >\n {context.icons.pushToTalkIcon}\n </button>\n )}\n <button\n disabled={sendDisabled}\n onClick={isInProgress && !hideStopButton ? onStop : send}\n data-copilotkit-in-progress={inProgress}\n data-test-id={inProgress ? \"copilot-chat-request-in-progress\" : \"copilot-chat-ready\"}\n className=\"copilotKitInputControlButton\"\n aria-label={buttonAlt}\n >\n {buttonIcon}\n </button>\n </div>\n </div>\n <PoweredByTag showPoweredBy={showPoweredBy} />\n </div>\n );\n};\n"],"mappings":"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","names":["_a"]}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RenderMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NCIAFFQ2.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/chat/messages/LegacyRenderMessage.tsx
|
|
6
6
|
import { aguiToGQL } from "@copilotkit/runtime-client-gql";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
var LegacyRenderMessage = ({
|
|
9
9
|
message,
|
|
10
|
+
messages,
|
|
10
11
|
inProgress,
|
|
11
12
|
index,
|
|
12
13
|
isCurrentMessage,
|
|
@@ -35,6 +36,7 @@ var LegacyRenderMessage = ({
|
|
|
35
36
|
RenderTextMessage,
|
|
36
37
|
{
|
|
37
38
|
message,
|
|
39
|
+
messages,
|
|
38
40
|
inProgress,
|
|
39
41
|
index,
|
|
40
42
|
isCurrentMessage,
|
|
@@ -52,6 +54,7 @@ var LegacyRenderMessage = ({
|
|
|
52
54
|
return /* @__PURE__ */ jsx(
|
|
53
55
|
RenderActionExecutionMessage,
|
|
54
56
|
{
|
|
57
|
+
messages,
|
|
55
58
|
message,
|
|
56
59
|
inProgress,
|
|
57
60
|
index,
|
|
@@ -66,6 +69,7 @@ var LegacyRenderMessage = ({
|
|
|
66
69
|
return /* @__PURE__ */ jsx(
|
|
67
70
|
RenderAgentStateMessage,
|
|
68
71
|
{
|
|
72
|
+
messages,
|
|
69
73
|
message,
|
|
70
74
|
inProgress,
|
|
71
75
|
index,
|
|
@@ -79,6 +83,7 @@ var LegacyRenderMessage = ({
|
|
|
79
83
|
return /* @__PURE__ */ jsx(
|
|
80
84
|
RenderResultMessage,
|
|
81
85
|
{
|
|
86
|
+
messages,
|
|
82
87
|
message,
|
|
83
88
|
inProgress,
|
|
84
89
|
index,
|
|
@@ -92,6 +97,7 @@ var LegacyRenderMessage = ({
|
|
|
92
97
|
return /* @__PURE__ */ jsx(
|
|
93
98
|
RenderImageMessage,
|
|
94
99
|
{
|
|
100
|
+
messages,
|
|
95
101
|
message,
|
|
96
102
|
inProgress,
|
|
97
103
|
index,
|
|
@@ -104,6 +110,7 @@ var LegacyRenderMessage = ({
|
|
|
104
110
|
return /* @__PURE__ */ jsx(
|
|
105
111
|
RenderMessage,
|
|
106
112
|
{
|
|
113
|
+
messages,
|
|
107
114
|
message,
|
|
108
115
|
inProgress,
|
|
109
116
|
index,
|
|
@@ -123,4 +130,4 @@ var LegacyRenderMessage = ({
|
|
|
123
130
|
export {
|
|
124
131
|
LegacyRenderMessage
|
|
125
132
|
};
|
|
126
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-7OURDQZJ.mjs.map
|