@copilotkit/react-ui 1.7.2-next.0 → 1.7.2-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 (67) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{chunk-AZU4QOV5.mjs → chunk-AELKLZSG.mjs} +5 -5
  3. package/dist/{chunk-3PJA5MFR.mjs → chunk-DLG7BZTA.mjs} +2 -2
  4. package/dist/chunk-EJG6RRSX.mjs +138 -0
  5. package/dist/chunk-EJG6RRSX.mjs.map +1 -0
  6. package/dist/chunk-MCO235PS.mjs +164 -0
  7. package/dist/chunk-MCO235PS.mjs.map +1 -0
  8. package/dist/chunk-MWC5OV7Z.mjs +1 -0
  9. package/dist/chunk-N7LTE54T.mjs +1 -0
  10. package/dist/chunk-N7LTE54T.mjs.map +1 -0
  11. package/dist/{chunk-2C3ANQCY.mjs → chunk-QXQDIFOC.mjs} +9 -9
  12. package/dist/{chunk-ADTTDBLB.mjs → chunk-R2O33F44.mjs} +2 -2
  13. package/dist/chunk-UCVCAGU7.mjs +1 -0
  14. package/dist/chunk-UCVCAGU7.mjs.map +1 -0
  15. package/dist/{chunk-22K5DDPF.mjs → chunk-ZIF5JJCH.mjs} +8 -8
  16. package/dist/components/chat/Chat.mjs +7 -7
  17. package/dist/components/chat/Modal.mjs +8 -8
  18. package/dist/components/chat/Popup.mjs +9 -9
  19. package/dist/components/chat/Sidebar.mjs +9 -9
  20. package/dist/components/chat/index.mjs +12 -12
  21. package/dist/components/crew/DefaultResponseRenderer.d.ts +110 -0
  22. package/dist/components/crew/DefaultResponseRenderer.js +175 -0
  23. package/dist/components/crew/DefaultResponseRenderer.js.map +1 -0
  24. package/dist/components/crew/DefaultResponseRenderer.mjs +10 -0
  25. package/dist/components/crew/DefaultResponseRenderer.mjs.map +1 -0
  26. package/dist/components/crew/DefaultStateRenderer.d.ts +88 -0
  27. package/dist/components/crew/DefaultStateRenderer.js +198 -0
  28. package/dist/components/crew/DefaultStateRenderer.js.map +1 -0
  29. package/dist/components/crew/DefaultStateRenderer.mjs +8 -0
  30. package/dist/components/crew/DefaultStateRenderer.mjs.map +1 -0
  31. package/dist/components/crew/index.d.ts +4 -0
  32. package/dist/components/crew/index.js +335 -0
  33. package/dist/components/crew/index.js.map +1 -0
  34. package/dist/components/crew/index.mjs +16 -0
  35. package/dist/components/crew/index.mjs.map +1 -0
  36. package/dist/components/crew/types.d.ts +340 -0
  37. package/dist/components/crew/types.js +19 -0
  38. package/dist/components/crew/types.js.map +1 -0
  39. package/dist/components/crew/types.mjs +2 -0
  40. package/dist/components/crew/types.mjs.map +1 -0
  41. package/dist/components/dev-console/console.mjs +3 -3
  42. package/dist/components/dev-console/index.mjs +4 -4
  43. package/dist/components/index.d.ts +3 -0
  44. package/dist/components/index.js +290 -0
  45. package/dist/components/index.js.map +1 -1
  46. package/dist/components/index.mjs +26 -14
  47. package/dist/index.css +227 -0
  48. package/dist/index.css.map +1 -1
  49. package/dist/index.d.ts +3 -0
  50. package/dist/index.js +292 -2
  51. package/dist/index.js.map +1 -1
  52. package/dist/index.mjs +26 -14
  53. package/package.json +4 -4
  54. package/src/components/crew/DefaultResponseRenderer.tsx +298 -0
  55. package/src/components/crew/DefaultStateRenderer.tsx +326 -0
  56. package/src/components/crew/index.ts +3 -0
  57. package/src/components/crew/types.ts +398 -0
  58. package/src/components/index.ts +1 -0
  59. package/src/css/crew.css +277 -0
  60. package/src/styles.css +1 -0
  61. package/dist/chunk-MMVDU6DF.mjs +0 -1
  62. /package/dist/{chunk-AZU4QOV5.mjs.map → chunk-AELKLZSG.mjs.map} +0 -0
  63. /package/dist/{chunk-3PJA5MFR.mjs.map → chunk-DLG7BZTA.mjs.map} +0 -0
  64. /package/dist/{chunk-MMVDU6DF.mjs.map → chunk-MWC5OV7Z.mjs.map} +0 -0
  65. /package/dist/{chunk-2C3ANQCY.mjs.map → chunk-QXQDIFOC.mjs.map} +0 -0
  66. /package/dist/{chunk-ADTTDBLB.mjs.map → chunk-R2O33F44.mjs.map} +0 -0
  67. /package/dist/{chunk-22K5DDPF.mjs.map → chunk-ZIF5JJCH.mjs.map} +0 -0
@@ -1,2 +1,3 @@
1
1
  export * from "./chat";
2
2
  export * from "./dev-console";
3
+ export * from "./crew";
@@ -0,0 +1,277 @@
1
+ /* Default styles for the ResponseRenderer component */
2
+
3
+ .copilotkit-response {
4
+ text-align: right;
5
+ }
6
+
7
+ .copilotkit-response-content {
8
+ margin-bottom: 0.5rem;
9
+ font-size: 0.875rem;
10
+ color: #4b5563;
11
+ background-color: #f9fafb;
12
+ padding: 0.5rem;
13
+ border-radius: 0.25rem;
14
+ text-align: left;
15
+ }
16
+
17
+ .copilotkit-response-actions {
18
+ display: inline-flex;
19
+ flex-direction: column;
20
+ align-items: flex-end;
21
+ }
22
+
23
+ .copilotkit-response-label {
24
+ font-size: 0.75rem;
25
+ color: #6b7280;
26
+ margin-bottom: 0.25rem;
27
+ display: flex;
28
+ align-items: center;
29
+ }
30
+
31
+ .copilotkit-toggle-button {
32
+ margin-right: 0.25rem;
33
+ background: none;
34
+ border: none;
35
+ padding: 0;
36
+ cursor: pointer;
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ }
41
+
42
+ .copilotkit-icon {
43
+ height: 0.75rem;
44
+ width: 0.75rem;
45
+ color: #6b7280;
46
+ }
47
+
48
+ .copilotkit-response-buttons {
49
+ display: flex;
50
+ gap: 0.5rem;
51
+ }
52
+
53
+ .copilotkit-response-button {
54
+ padding: 0.25rem 0.5rem;
55
+ font-size: 0.75rem;
56
+ background-color: #f3f4f6;
57
+ color: #4b5563;
58
+ border-radius: 0.25rem;
59
+ border: none;
60
+ cursor: pointer;
61
+ transition: background-color 0.2s;
62
+ }
63
+
64
+ .copilotkit-response-button:hover {
65
+ background-color: #e5e7eb;
66
+ }
67
+
68
+ .copilotkit-response-button:focus {
69
+ outline: none;
70
+ }
71
+
72
+ .copilotkit-response-completed-feedback {
73
+ background-color: #f9fafb;
74
+ padding: 0.5rem;
75
+ border-radius: 0.375rem;
76
+ display: inline-flex;
77
+ align-items: center;
78
+ }
79
+
80
+ .copilotkit-response-completed-feedback span {
81
+ color: #4b5563;
82
+ font-size: 0.75rem;
83
+ font-weight: 500;
84
+ }
85
+
86
+ /* DefaultStateRenderer styles */
87
+
88
+ .copilotkit-state {
89
+ font-size: 0.875rem;
90
+ margin-bottom: 1rem;
91
+ }
92
+
93
+ .copilotkit-state-header {
94
+ display: flex;
95
+ align-items: center;
96
+ gap: 0.25rem;
97
+ cursor: pointer;
98
+ user-select: none;
99
+ margin-bottom: 0.25rem;
100
+ }
101
+
102
+ .copilotkit-state-label {
103
+ color: #4b5563;
104
+ font-size: 0.875rem;
105
+ }
106
+
107
+ .copilotkit-state-label-loading {
108
+ display: inline-flex;
109
+ align-items: center;
110
+ animation: pulse 1.5s infinite;
111
+ }
112
+
113
+ .copilotkit-state-content {
114
+ padding-left: 1rem;
115
+ max-height: 250px;
116
+ overflow: auto;
117
+ padding-top: 0.375rem;
118
+ border-left: 1px solid #e5e7eb;
119
+ margin-left: 0.375rem;
120
+ }
121
+
122
+ .copilotkit-state-item {
123
+ padding: 0.25rem 0;
124
+ margin-bottom: 0.25rem;
125
+ transition: all 0.3s ease;
126
+ }
127
+
128
+ .copilotkit-state-item-newest {
129
+ animation: appear 0.5s ease-out;
130
+ }
131
+
132
+ .copilotkit-state-item-header {
133
+ font-size: 0.75rem;
134
+ opacity: 0.7;
135
+ }
136
+
137
+ .copilotkit-state-item-thought {
138
+ margin-top: 0.125rem;
139
+ font-size: 0.75rem;
140
+ opacity: 0.8;
141
+ }
142
+
143
+ .copilotkit-state-item-result {
144
+ margin-top: 0.125rem;
145
+ font-size: 0.75rem;
146
+ }
147
+
148
+ .copilotkit-state-item-description {
149
+ margin-top: 0.125rem;
150
+ font-size: 0.75rem;
151
+ opacity: 0.8;
152
+ }
153
+
154
+ .copilotkit-state-empty {
155
+ padding: 0.25rem 0;
156
+ font-size: 0.75rem;
157
+ opacity: 0.7;
158
+ }
159
+
160
+ .copilotkit-skeleton {
161
+ padding: 0.125rem 0;
162
+ animation: pulse 1.5s infinite;
163
+ }
164
+
165
+ .copilotkit-skeleton-header {
166
+ display: flex;
167
+ justify-content: space-between;
168
+ }
169
+
170
+ .copilotkit-skeleton-title {
171
+ height: 0.625rem;
172
+ width: 4rem;
173
+ background-color: #e5e7eb;
174
+ border-radius: 0.25rem;
175
+ }
176
+
177
+ .copilotkit-skeleton-subtitle {
178
+ height: 0.5rem;
179
+ width: 2rem;
180
+ background-color: #e5e7eb;
181
+ border-radius: 0.25rem;
182
+ }
183
+
184
+ .copilotkit-skeleton-content {
185
+ margin-top: 0.125rem;
186
+ height: 1.5rem;
187
+ background-color: #e5e7eb;
188
+ border-radius: 0.25rem;
189
+ }
190
+
191
+ .copilotkit-loader {
192
+ animation: spin 1.5s linear infinite;
193
+ }
194
+
195
+ .copilotkit-spinner {
196
+ animation: spin 1.5s linear infinite;
197
+ }
198
+
199
+ /* Animations */
200
+ @keyframes appear {
201
+ 0% {
202
+ opacity: 0;
203
+ transform: translateY(8px);
204
+ }
205
+ 100% {
206
+ opacity: 1;
207
+ transform: translateY(0);
208
+ }
209
+ }
210
+
211
+ @keyframes pulse {
212
+ 0%,
213
+ 100% {
214
+ opacity: 0.4;
215
+ }
216
+ 50% {
217
+ opacity: 1;
218
+ }
219
+ }
220
+
221
+ @keyframes spin {
222
+ 0% {
223
+ transform: rotate(0deg);
224
+ }
225
+ 100% {
226
+ transform: rotate(360deg);
227
+ }
228
+ }
229
+
230
+ /* Dark mode styles */
231
+ @media (prefers-color-scheme: dark) {
232
+ /* DefaultResponseRenderer dark styles */
233
+ .copilotkit-response-content {
234
+ color: #9ca3af;
235
+ background-color: #1f2937;
236
+ }
237
+
238
+ .copilotkit-response-label {
239
+ color: #9ca3af;
240
+ }
241
+
242
+ .copilotkit-icon {
243
+ color: #9ca3af;
244
+ }
245
+
246
+ .copilotkit-response-button {
247
+ background-color: #1f2937;
248
+ color: #d1d5db;
249
+ }
250
+
251
+ .copilotkit-response-button:hover {
252
+ background-color: #374151;
253
+ }
254
+
255
+ .copilotkit-response-completed-feedback {
256
+ background-color: #1f2937;
257
+ }
258
+
259
+ .copilotkit-response-completed-feedback span {
260
+ color: #e5e7eb;
261
+ }
262
+
263
+ /* DefaultStateRenderer dark styles */
264
+ .copilotkit-state-label {
265
+ color: #d1d5db;
266
+ }
267
+
268
+ .copilotkit-state-content {
269
+ border-left-color: #374151;
270
+ }
271
+
272
+ .copilotkit-skeleton-title,
273
+ .copilotkit-skeleton-subtitle,
274
+ .copilotkit-skeleton-content {
275
+ background-color: #374151;
276
+ }
277
+ }
package/src/styles.css CHANGED
@@ -12,3 +12,4 @@
12
12
  @import "./css/suggestions.css";
13
13
  @import "./css/panel.css";
14
14
  @import "./css/console.css";
15
+ @import "./css/crew.css";
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-MMVDU6DF.mjs.map