@copilotkit/react-ui 1.3.0 → 1.3.1

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 (203) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/chunk-54JAUBUJ.mjs +26 -0
  3. package/dist/chunk-54JAUBUJ.mjs.map +1 -0
  4. package/dist/chunk-5HHVL5WK.mjs +29 -0
  5. package/dist/chunk-5HHVL5WK.mjs.map +1 -0
  6. package/dist/chunk-B2KQEX2R.mjs +91 -0
  7. package/dist/chunk-B2KQEX2R.mjs.map +1 -0
  8. package/dist/chunk-BJPGMY3I.mjs +70 -0
  9. package/dist/chunk-BJPGMY3I.mjs.map +1 -0
  10. package/dist/chunk-EFZPSZWO.mjs +1 -0
  11. package/dist/chunk-EFZPSZWO.mjs.map +1 -0
  12. package/dist/chunk-FL4ETWFB.mjs +21 -0
  13. package/dist/chunk-FL4ETWFB.mjs.map +1 -0
  14. package/dist/chunk-FLV3J3VX.mjs +18 -0
  15. package/dist/chunk-FLV3J3VX.mjs.map +1 -0
  16. package/dist/chunk-FO7Z5LAL.mjs +118 -0
  17. package/dist/chunk-FO7Z5LAL.mjs.map +1 -0
  18. package/dist/chunk-FOZVHL73.mjs +171 -0
  19. package/dist/chunk-FOZVHL73.mjs.map +1 -0
  20. package/dist/chunk-FZC7X5PK.mjs +262 -0
  21. package/dist/chunk-FZC7X5PK.mjs.map +1 -0
  22. package/dist/chunk-H7TM5JE6.mjs +146 -0
  23. package/dist/chunk-H7TM5JE6.mjs.map +1 -0
  24. package/dist/chunk-HR36Y2FQ.mjs +167 -0
  25. package/dist/chunk-HR36Y2FQ.mjs.map +1 -0
  26. package/dist/chunk-I4QG2ZZU.mjs +220 -0
  27. package/dist/chunk-I4QG2ZZU.mjs.map +1 -0
  28. package/dist/chunk-IU3WTXLQ.mjs +1 -0
  29. package/dist/chunk-IU3WTXLQ.mjs.map +1 -0
  30. package/dist/chunk-JD7BAH7U.mjs +1 -0
  31. package/dist/chunk-JD7BAH7U.mjs.map +1 -0
  32. package/dist/chunk-MRFF7GSQ.mjs +1 -0
  33. package/dist/chunk-MRFF7GSQ.mjs.map +1 -0
  34. package/dist/chunk-MRXNTQOX.mjs +59 -0
  35. package/dist/chunk-MRXNTQOX.mjs.map +1 -0
  36. package/dist/chunk-OTPAZXVR.mjs +92 -0
  37. package/dist/chunk-OTPAZXVR.mjs.map +1 -0
  38. package/dist/chunk-QOEAEMUQ.mjs +30 -0
  39. package/dist/chunk-QOEAEMUQ.mjs.map +1 -0
  40. package/dist/chunk-T26KLXLH.mjs +1 -0
  41. package/dist/chunk-T26KLXLH.mjs.map +1 -0
  42. package/dist/chunk-U6J5DGOE.mjs +83 -0
  43. package/dist/chunk-U6J5DGOE.mjs.map +1 -0
  44. package/dist/chunk-UPTB2MVO.mjs +395 -0
  45. package/dist/chunk-UPTB2MVO.mjs.map +1 -0
  46. package/dist/chunk-V7W6IM2V.mjs +1 -0
  47. package/dist/chunk-V7W6IM2V.mjs.map +1 -0
  48. package/dist/chunk-VOBX4JOA.mjs +138 -0
  49. package/dist/chunk-VOBX4JOA.mjs.map +1 -0
  50. package/dist/chunk-WB3YULQ4.mjs +1 -0
  51. package/dist/chunk-WB3YULQ4.mjs.map +1 -0
  52. package/dist/chunk-WCPLXRZX.mjs +106 -0
  53. package/dist/chunk-WCPLXRZX.mjs.map +1 -0
  54. package/dist/chunk-XSUSSWDS.mjs +18 -0
  55. package/dist/chunk-XSUSSWDS.mjs.map +1 -0
  56. package/dist/chunk-YOH25I6N.mjs +25 -0
  57. package/dist/chunk-YOH25I6N.mjs.map +1 -0
  58. package/dist/chunk-YQ3D5IQV.mjs +75 -0
  59. package/dist/chunk-YQ3D5IQV.mjs.map +1 -0
  60. package/dist/chunk-YQFVRDNC.mjs +53 -0
  61. package/dist/chunk-YQFVRDNC.mjs.map +1 -0
  62. package/dist/components/chat/Button.js.map +1 -1
  63. package/dist/components/chat/Button.mjs +6 -30
  64. package/dist/components/chat/Button.mjs.map +1 -1
  65. package/dist/components/chat/Chat.d.ts +1 -1
  66. package/dist/components/chat/Chat.js +6 -3
  67. package/dist/components/chat/Chat.js.map +1 -1
  68. package/dist/components/chat/Chat.mjs +20 -1851
  69. package/dist/components/chat/Chat.mjs.map +1 -1
  70. package/dist/components/chat/ChatContext.d.ts +1 -1
  71. package/dist/components/chat/ChatContext.mjs +7 -228
  72. package/dist/components/chat/ChatContext.mjs.map +1 -1
  73. package/dist/components/chat/CodeBlock.js +2 -1
  74. package/dist/components/chat/CodeBlock.js.map +1 -1
  75. package/dist/components/chat/CodeBlock.mjs +8 -482
  76. package/dist/components/chat/CodeBlock.mjs.map +1 -1
  77. package/dist/components/chat/Header.mjs +6 -23
  78. package/dist/components/chat/Header.mjs.map +1 -1
  79. package/dist/components/chat/Icons.mjs +16 -271
  80. package/dist/components/chat/Icons.mjs.map +1 -1
  81. package/dist/components/chat/Input.js +4 -2
  82. package/dist/components/chat/Input.js.map +1 -1
  83. package/dist/components/chat/Input.mjs +8 -255
  84. package/dist/components/chat/Input.mjs.map +1 -1
  85. package/dist/components/chat/Markdown.js +2 -1
  86. package/dist/components/chat/Markdown.js.map +1 -1
  87. package/dist/components/chat/Markdown.mjs +7 -546
  88. package/dist/components/chat/Markdown.mjs.map +1 -1
  89. package/dist/components/chat/Messages.js +2 -1
  90. package/dist/components/chat/Messages.js.map +1 -1
  91. package/dist/components/chat/Messages.mjs +8 -723
  92. package/dist/components/chat/Messages.mjs.map +1 -1
  93. package/dist/components/chat/Modal.d.ts +1 -1
  94. package/dist/components/chat/Modal.js +6 -3
  95. package/dist/components/chat/Modal.js.map +1 -1
  96. package/dist/components/chat/Modal.mjs +22 -2052
  97. package/dist/components/chat/Modal.mjs.map +1 -1
  98. package/dist/components/chat/Popup.js +6 -3
  99. package/dist/components/chat/Popup.js.map +1 -1
  100. package/dist/components/chat/Popup.mjs +23 -2061
  101. package/dist/components/chat/Popup.mjs.map +1 -1
  102. package/dist/components/chat/Response.mjs +6 -23
  103. package/dist/components/chat/Response.mjs.map +1 -1
  104. package/dist/components/chat/Sidebar.js +6 -3
  105. package/dist/components/chat/Sidebar.js.map +1 -1
  106. package/dist/components/chat/Sidebar.mjs +23 -2072
  107. package/dist/components/chat/Sidebar.mjs.map +1 -1
  108. package/dist/components/chat/Suggestion.js.map +1 -1
  109. package/dist/components/chat/Suggestion.mjs +5 -152
  110. package/dist/components/chat/Suggestion.mjs.map +1 -1
  111. package/dist/components/chat/Textarea.js.map +1 -1
  112. package/dist/components/chat/Textarea.mjs +4 -48
  113. package/dist/components/chat/Textarea.mjs.map +1 -1
  114. package/dist/components/chat/Window.js.map +1 -1
  115. package/dist/components/chat/Window.mjs +6 -125
  116. package/dist/components/chat/Window.mjs.map +1 -1
  117. package/dist/components/chat/index.js +6 -3
  118. package/dist/components/chat/index.js.map +1 -1
  119. package/dist/components/chat/index.mjs +31 -2078
  120. package/dist/components/chat/index.mjs.map +1 -1
  121. package/dist/components/chat/props.d.ts +1 -1
  122. package/dist/components/chat/props.mjs +1 -0
  123. package/dist/components/dev-console/console.js.map +1 -1
  124. package/dist/components/dev-console/console.mjs +8 -478
  125. package/dist/components/dev-console/console.mjs.map +1 -1
  126. package/dist/components/dev-console/icons.mjs +8 -83
  127. package/dist/components/dev-console/icons.mjs.map +1 -1
  128. package/dist/components/dev-console/index.js.map +1 -1
  129. package/dist/components/dev-console/index.mjs +10 -476
  130. package/dist/components/dev-console/index.mjs.map +1 -1
  131. package/dist/components/dev-console/types.d.ts +1 -1
  132. package/dist/components/dev-console/utils.js.map +1 -1
  133. package/dist/components/dev-console/utils.mjs +8 -154
  134. package/dist/components/dev-console/utils.mjs.map +1 -1
  135. package/dist/components/index.js +6 -3
  136. package/dist/components/index.js.map +1 -1
  137. package/dist/components/index.mjs +32 -2078
  138. package/dist/components/index.mjs.map +1 -1
  139. package/dist/context/index.d.ts +1 -1
  140. package/dist/context/index.mjs +1 -0
  141. package/dist/hooks/index.mjs +5 -24
  142. package/dist/hooks/index.mjs.map +1 -1
  143. package/dist/hooks/use-copilot-chat-suggestions.mjs +4 -24
  144. package/dist/hooks/use-copilot-chat-suggestions.mjs.map +1 -1
  145. package/dist/hooks/use-copy-to-clipboard.d.ts +1 -1
  146. package/dist/hooks/use-copy-to-clipboard.mjs +4 -21
  147. package/dist/hooks/use-copy-to-clipboard.mjs.map +1 -1
  148. package/dist/hooks/use-push-to-talk.d.ts +1 -1
  149. package/dist/hooks/use-push-to-talk.js.map +1 -1
  150. package/dist/hooks/use-push-to-talk.mjs +6 -148
  151. package/dist/hooks/use-push-to-talk.mjs.map +1 -1
  152. package/dist/index.css +747 -1
  153. package/dist/index.css.map +1 -0
  154. package/dist/index.js +6 -10
  155. package/dist/index.js.map +1 -1
  156. package/dist/index.mjs +38 -2110
  157. package/dist/index.mjs.map +1 -1
  158. package/dist/lib/utils.mjs +3 -20
  159. package/dist/lib/utils.mjs.map +1 -1
  160. package/dist/lib/utils.test.d.ts +1 -1
  161. package/dist/types/css.d.ts +1 -1
  162. package/dist/types/index.mjs +1 -0
  163. package/dist/types/suggestions.d.ts +1 -1
  164. package/package.json +11 -19
  165. package/src/components/chat/Chat.tsx +4 -1
  166. package/src/components/chat/Popup.tsx +4 -1
  167. package/src/components/chat/Sidebar.tsx +3 -1
  168. package/tsup.config.ts +15 -59
  169. package/dist/components/chat/Button.d.mts +0 -7
  170. package/dist/components/chat/Chat.d.mts +0 -87
  171. package/dist/components/chat/ChatContext.d.mts +0 -105
  172. package/dist/components/chat/CodeBlock.d.mts +0 -14
  173. package/dist/components/chat/Header.d.mts +0 -7
  174. package/dist/components/chat/Icons.d.mts +0 -18
  175. package/dist/components/chat/Input.d.mts +0 -7
  176. package/dist/components/chat/Markdown.d.mts +0 -8
  177. package/dist/components/chat/Messages.d.mts +0 -7
  178. package/dist/components/chat/Modal.d.mts +0 -51
  179. package/dist/components/chat/Popup.d.mts +0 -13
  180. package/dist/components/chat/Response.d.mts +0 -7
  181. package/dist/components/chat/Sidebar.d.mts +0 -13
  182. package/dist/components/chat/Suggestion.d.mts +0 -14
  183. package/dist/components/chat/Textarea.d.mts +0 -13
  184. package/dist/components/chat/Window.d.mts +0 -7
  185. package/dist/components/chat/index.d.mts +0 -11
  186. package/dist/components/chat/props.d.mts +0 -35
  187. package/dist/components/dev-console/console.d.mts +0 -10
  188. package/dist/components/dev-console/icons.d.mts +0 -9
  189. package/dist/components/dev-console/index.d.mts +0 -5
  190. package/dist/components/dev-console/types.d.mts +0 -9
  191. package/dist/components/dev-console/utils.d.mts +0 -10
  192. package/dist/components/index.d.mts +0 -11
  193. package/dist/context/index.d.mts +0 -2
  194. package/dist/hooks/index.d.mts +0 -1
  195. package/dist/hooks/use-copilot-chat-suggestions.d.mts +0 -83
  196. package/dist/hooks/use-copy-to-clipboard.d.mts +0 -9
  197. package/dist/hooks/use-push-to-talk.d.mts +0 -19
  198. package/dist/index.d.mts +0 -13
  199. package/dist/lib/utils.d.mts +0 -4
  200. package/dist/lib/utils.test.d.mts +0 -2
  201. package/dist/types/css.d.mts +0 -16
  202. package/dist/types/index.d.mts +0 -2
  203. package/dist/types/suggestions.d.mts +0 -8
package/dist/index.css CHANGED
@@ -1 +1,747 @@
1
- /* This is here for backwards compatibility */
1
+ /* src/css/colors.css */
2
+ html {
3
+ --copilot-kit-primary-color: rgb(59 130 246);
4
+ --copilot-kit-contrast-color: rgb(255 255 255);
5
+ --copilot-kit-secondary-color: rgb(243 244 246);
6
+ --copilot-kit-secondary-contrast-color: rgb(0 0 0);
7
+ --copilot-kit-background-color: rgb(255 255 255);
8
+ --copilot-kit-muted-color: rgb(106 106 106);
9
+ --copilot-kit-separator-color: rgba(0, 0, 0, 0.08);
10
+ --copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
11
+ --copilot-kit-response-button-color: #333;
12
+ --copilot-kit-response-button-background-color: #fff;
13
+ }
14
+
15
+ /* src/css/popup.css */
16
+ .copilotKitPopup {
17
+ position: fixed;
18
+ bottom: 1rem;
19
+ right: 1rem;
20
+ z-index: 30;
21
+ line-height: 1.5;
22
+ -webkit-text-size-adjust: 100%;
23
+ -moz-tab-size: 4;
24
+ -o-tab-size: 4;
25
+ tab-size: 4;
26
+ font-family:
27
+ ui-sans-serif,
28
+ system-ui,
29
+ -apple-system,
30
+ BlinkMacSystemFont,
31
+ "Segoe UI",
32
+ Roboto,
33
+ "Helvetica Neue",
34
+ Arial,
35
+ "Noto Sans",
36
+ sans-serif,
37
+ "Apple Color Emoji",
38
+ "Segoe UI Emoji",
39
+ "Segoe UI Symbol",
40
+ "Noto Color Emoji";
41
+ font-feature-settings: normal;
42
+ font-variation-settings: normal;
43
+ touch-action: manipulation;
44
+ }
45
+ .copilotKitPopup svg {
46
+ display: inline-block;
47
+ vertical-align: middle;
48
+ }
49
+
50
+ /* src/css/sidebar.css */
51
+ .copilotKitSidebar {
52
+ position: fixed;
53
+ bottom: 1rem;
54
+ right: 1rem;
55
+ z-index: 30;
56
+ line-height: 1.5;
57
+ -webkit-text-size-adjust: 100%;
58
+ -moz-tab-size: 4;
59
+ -o-tab-size: 4;
60
+ tab-size: 4;
61
+ font-family:
62
+ ui-sans-serif,
63
+ system-ui,
64
+ -apple-system,
65
+ BlinkMacSystemFont,
66
+ "Segoe UI",
67
+ Roboto,
68
+ "Helvetica Neue",
69
+ Arial,
70
+ "Noto Sans",
71
+ sans-serif,
72
+ "Apple Color Emoji",
73
+ "Segoe UI Emoji",
74
+ "Segoe UI Symbol",
75
+ "Noto Color Emoji";
76
+ font-feature-settings: normal;
77
+ font-variation-settings: normal;
78
+ touch-action: manipulation;
79
+ }
80
+ .copilotKitSidebar svg {
81
+ display: inline-block;
82
+ vertical-align: middle;
83
+ }
84
+ .copilotKitSidebarContentWrapper {
85
+ overflow: visible;
86
+ margin-right: 0px;
87
+ transition: margin-right 0.3s ease;
88
+ }
89
+ @media (min-width: 640px) {
90
+ .copilotKitSidebarContentWrapper.sidebarExpanded {
91
+ margin-right: 28rem;
92
+ }
93
+ }
94
+
95
+ /* src/css/button.css */
96
+ .copilotKitButton {
97
+ width: 3.5rem;
98
+ height: 3.5rem;
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ border-radius: 50%;
103
+ border: 1px solid rgba(255, 255, 255, 0.2);
104
+ outline: none;
105
+ position: relative;
106
+ transform: scale(1);
107
+ transition: transform 200ms;
108
+ background-color: var(--copilot-kit-primary-color);
109
+ color: var(--copilot-kit-contrast-color);
110
+ cursor: pointer;
111
+ }
112
+ .copilotKitButton:hover {
113
+ transform: scale(1.1);
114
+ }
115
+ .copilotKitButton:active {
116
+ transform: scale(0.75);
117
+ }
118
+ .copilotKitButtonIcon {
119
+ transition: opacity 100ms, transform 300ms;
120
+ position: absolute;
121
+ top: 50%;
122
+ left: 50%;
123
+ transform: translate(-50%, -50%);
124
+ }
125
+ .copilotKitButton.open .copilotKitButtonIconOpen {
126
+ transform: translate(-50%, -50%) scale(0) rotate(90deg);
127
+ opacity: 0;
128
+ }
129
+ .copilotKitButton.open .copilotKitButtonIconClose {
130
+ transform: translate(-50%, -50%) scale(1) rotate(0deg);
131
+ opacity: 1;
132
+ }
133
+ .copilotKitButton:not(.open) .copilotKitButtonIconOpen {
134
+ transform: translate(-50%, -50%) scale(1) rotate(0deg);
135
+ opacity: 1;
136
+ }
137
+ .copilotKitButton:not(.open) .copilotKitButtonIconClose {
138
+ transform: translate(-50%, -50%) scale(0) rotate(-90deg);
139
+ opacity: 0;
140
+ }
141
+
142
+ /* src/css/header.css */
143
+ .copilotKitHeader {
144
+ height: 56px;
145
+ font-weight: 500;
146
+ display: flex;
147
+ justify-content: center;
148
+ align-items: center;
149
+ position: relative;
150
+ background-color: var(--copilot-kit-primary-color);
151
+ color: var(--copilot-kit-contrast-color);
152
+ border-top-left-radius: 0;
153
+ border-top-right-radius: 0;
154
+ border-bottom: 1px solid var(--copilot-kit-separator-color);
155
+ }
156
+ .copilotKitSidebar .copilotKitHeader {
157
+ border-radius: 0;
158
+ }
159
+ @media (min-width: 640px) {
160
+ .copilotKitHeader {
161
+ padding-left: 24px;
162
+ padding-right: 24px;
163
+ border-top-left-radius: 8px;
164
+ border-top-right-radius: 8px;
165
+ }
166
+ }
167
+ .copilotKitHeader > button {
168
+ border: 0;
169
+ padding: 0px;
170
+ position: absolute;
171
+ top: 50%;
172
+ right: 16px;
173
+ transform: translateY(-50%);
174
+ outline: none;
175
+ color: var(--copilot-kit-contrast-color);
176
+ background-color: transparent;
177
+ cursor: pointer;
178
+ }
179
+ .copilotKitHeader > button:focus {
180
+ outline: none;
181
+ }
182
+
183
+ /* src/css/input.css */
184
+ .copilotKitInput {
185
+ border-top: 1px solid var(--copilot-kit-separator-color);
186
+ padding-left: 2rem;
187
+ padding-right: 1rem;
188
+ padding-top: 1rem;
189
+ padding-bottom: 1rem;
190
+ display: flex;
191
+ align-items: center;
192
+ cursor: text;
193
+ position: relative;
194
+ border-bottom-left-radius: 0.75rem;
195
+ border-bottom-right-radius: 0.75rem;
196
+ background-color: var(--copilot-kit-background-color);
197
+ }
198
+ .copilotKitInput > .copilotKitInputControls > button {
199
+ padding: 0.25rem;
200
+ cursor: pointer;
201
+ transition-property: transform;
202
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
203
+ transition-duration: 200ms;
204
+ transform: scale(1);
205
+ color: rgba(0, 0, 0, 0.25);
206
+ -webkit-appearance: button;
207
+ appearance: button;
208
+ background-color: transparent;
209
+ background-image: none;
210
+ text-transform: none;
211
+ font-family: inherit;
212
+ font-size: 100%;
213
+ font-weight: inherit;
214
+ line-height: inherit;
215
+ border: 0;
216
+ margin: 0;
217
+ text-indent: 0px;
218
+ text-shadow: none;
219
+ display: inline-block;
220
+ text-align: center;
221
+ margin-left: 0.5rem;
222
+ }
223
+ .copilotKitInput > .copilotKitInputControls > button:not([disabled]) {
224
+ color: var(--copilot-kit-primary-color);
225
+ }
226
+ .copilotKitInput > .copilotKitInputControls > button:not([disabled]):hover {
227
+ transform: scale(1.1);
228
+ }
229
+ .copilotKitInput > .copilotKitInputControls > button[disabled] {
230
+ color: var(--copilot-kit-muted-color);
231
+ }
232
+ .copilotKitInputControls {
233
+ display: flex;
234
+ }
235
+ .copilotKitInput > textarea {
236
+ flex: 1;
237
+ outline: 2px solid transparent;
238
+ outline-offset: 2px;
239
+ resize: none;
240
+ white-space: pre-wrap;
241
+ overflow-wrap: break-word;
242
+ -webkit-font-smoothing: antialiased;
243
+ -moz-osx-font-smoothing: grayscale;
244
+ cursor: text;
245
+ font-size: 0.875rem;
246
+ line-height: 1.25rem;
247
+ margin: 0;
248
+ padding: 0;
249
+ font-family: inherit;
250
+ font-weight: inherit;
251
+ color: var(--copilot-kit-secondary-contrast-color);
252
+ border: 0px;
253
+ background-color: var(--copilot-kit-background-color);
254
+ }
255
+ .copilotKitInput > textarea::placeholder {
256
+ color: var(--copilot-kit-muted-color);
257
+ opacity: 1;
258
+ }
259
+ .copilotKitInput > .copilotKitInputControls > button.copilotKitPushToTalkRecording {
260
+ background-color: red;
261
+ color: white;
262
+ border-radius: 50%;
263
+ animation: copilotKitPulseAnimation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
264
+ }
265
+
266
+ /* src/css/messages.css */
267
+ .copilotKitMessages {
268
+ overflow-y: scroll;
269
+ flex: 1;
270
+ padding: 1rem 2rem;
271
+ display: flex;
272
+ flex-direction: column;
273
+ background-color: var(--copilot-kit-background-color);
274
+ }
275
+ .copilotKitMessages::-webkit-scrollbar {
276
+ width: 9px;
277
+ }
278
+ .copilotKitMessages::-webkit-scrollbar-thumb {
279
+ background-color: var(--copilot-kit-scrollbar-color);
280
+ border-radius: 10rem;
281
+ border: 2px solid var(--copilot-kit-background-color);
282
+ }
283
+ .copilotKitMessages::-webkit-scrollbar-track-piece:start {
284
+ background: transparent;
285
+ }
286
+ .copilotKitMessages::-webkit-scrollbar-track-piece:end {
287
+ background: transparent;
288
+ }
289
+ .copilotKitMessage {
290
+ border-radius: 0.5rem;
291
+ padding: 1rem;
292
+ font-size: 0.875rem;
293
+ line-height: 1.25rem;
294
+ overflow-wrap: break-word;
295
+ max-width: 80%;
296
+ margin-bottom: 0.5rem;
297
+ }
298
+ .copilotKitMessage.copilotKitUserMessage {
299
+ background: var(--copilot-kit-primary-color);
300
+ color: var(--copilot-kit-contrast-color);
301
+ margin-left: auto;
302
+ white-space: pre-wrap;
303
+ }
304
+ .copilotKitMessage.copilotKitAssistantMessage {
305
+ background: var(--copilot-kit-secondary-color);
306
+ color: var(--copilot-kit-secondary-contrast-color);
307
+ margin-right: auto;
308
+ }
309
+ .copilotKitMessage.copilotKitUserMessage + .copilotKitMessage.copilotKitAssistantMessage {
310
+ margin-top: 1.5rem;
311
+ }
312
+ .copilotKitMessage.copilotKitAssistantMessage + .copilotKitMessage.copilotKitUserMessage {
313
+ margin-top: 1.5rem;
314
+ }
315
+ .copilotKitCustomAssistantMessage {
316
+ margin-top: 1.5rem;
317
+ margin-bottom: 1.5rem;
318
+ }
319
+ .copilotKitMessage .inProgressLabel {
320
+ margin-left: 10px;
321
+ }
322
+ .copilotKitMessages footer {
323
+ flex-grow: 1;
324
+ display: flex;
325
+ flex-direction: column;
326
+ justify-content: flex-end;
327
+ }
328
+
329
+ /* src/css/window.css */
330
+ .copilotKitWindow {
331
+ position: fixed;
332
+ inset: 0px;
333
+ transform-origin: bottom;
334
+ border-color: rgb(229 231 235);
335
+ background-color: rgb(255 255 255);
336
+ border-radius: 0.75rem;
337
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
338
+ flex-direction: column;
339
+ transition: opacity 100ms ease-out, transform 200ms ease-out;
340
+ opacity: 0;
341
+ transform: scale(0.95) translateY(20px);
342
+ display: flex;
343
+ pointer-events: none;
344
+ }
345
+ .copilotKitSidebar .copilotKitWindow {
346
+ border-radius: 0;
347
+ opacity: 1;
348
+ transform: translateX(100%);
349
+ }
350
+ .copilotKitWindow.open {
351
+ opacity: 1;
352
+ transform: scale(1) translateY(0);
353
+ pointer-events: auto;
354
+ }
355
+ .copilotKitSidebar .copilotKitWindow.open {
356
+ transform: translateX(0);
357
+ }
358
+ @media (min-width: 640px) {
359
+ .copilotKitWindow {
360
+ transform-origin: bottom right;
361
+ bottom: 5rem;
362
+ right: 1rem;
363
+ top: auto;
364
+ left: auto;
365
+ border-width: 0px;
366
+ margin-bottom: 1rem;
367
+ width: 24rem;
368
+ height: 600px;
369
+ min-height: 200px;
370
+ max-height: calc(100% - 6rem);
371
+ }
372
+ .copilotKitSidebar .copilotKitWindow {
373
+ bottom: 0;
374
+ right: 0;
375
+ top: auto;
376
+ left: auto;
377
+ width: 28rem;
378
+ min-height: 100%;
379
+ margin-bottom: 0;
380
+ max-height: none;
381
+ }
382
+ }
383
+
384
+ /* src/css/animations.css */
385
+ .copilotKitActivityDot1 {
386
+ animation: copilotKitActivityDotsAnimation 1.05s infinite;
387
+ }
388
+ .copilotKitActivityDot2 {
389
+ animation-delay: 0.1s;
390
+ }
391
+ .copilotKitActivityDot3 {
392
+ animation-delay: 0.2s;
393
+ }
394
+ @keyframes copilotKitActivityDotsAnimation {
395
+ 0%, 57.14% {
396
+ animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
397
+ transform: translate(0);
398
+ }
399
+ 28.57% {
400
+ animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
401
+ transform: translateY(-6px);
402
+ }
403
+ 100% {
404
+ transform: translate(0);
405
+ }
406
+ }
407
+ @keyframes copilotKitSpinAnimation {
408
+ to {
409
+ transform: rotate(360deg);
410
+ }
411
+ }
412
+ @keyframes copilotKitPulseAnimation {
413
+ 50% {
414
+ opacity: 0.5;
415
+ }
416
+ }
417
+
418
+ /* src/css/response.css */
419
+ .copilotKitResponseButton {
420
+ background-color: var(--copilot-kit-response-button-background-color);
421
+ border: 1px solid var(--copilot-kit-separator-color);
422
+ border-radius: 4px;
423
+ color: var(--copilot-kit-response-button-color);
424
+ cursor: pointer;
425
+ font-size: 14px;
426
+ font-weight: 500;
427
+ height: 32px;
428
+ line-height: 30px;
429
+ margin: 0;
430
+ padding: 0 16px;
431
+ text-align: center;
432
+ text-decoration: none;
433
+ text-transform: none;
434
+ white-space: nowrap;
435
+ margin-top: 15px;
436
+ }
437
+ .copilotKitResponseButton:hover {
438
+ filter: brightness(95%);
439
+ }
440
+ .copilotKitResponseButton > span {
441
+ margin-right: 0.5rem;
442
+ }
443
+
444
+ /* src/css/markdown.css */
445
+ .copilotKitMarkdown h1,
446
+ .copilotKitMarkdown h2,
447
+ .copilotKitMarkdown h3,
448
+ .copilotKitMarkdown h4,
449
+ .copilotKitMarkdown h5,
450
+ .copilotKitMarkdown h6 {
451
+ font-weight: bold;
452
+ line-height: 1.2;
453
+ }
454
+ .copilotKitMarkdown h1:not(:last-child),
455
+ .copilotKitMarkdown h2:not(:last-child),
456
+ .copilotKitMarkdown h3:not(:last-child),
457
+ .copilotKitMarkdown h4:not(:last-child),
458
+ .copilotKitMarkdown h5:not(:last-child),
459
+ .copilotKitMarkdown h6:not(:last-child) {
460
+ margin-bottom: 1rem;
461
+ }
462
+ .copilotKitMarkdown h1 {
463
+ font-size: 1.5em;
464
+ }
465
+ .copilotKitMarkdown h2 {
466
+ font-size: 1.25em;
467
+ font-weight: 600;
468
+ }
469
+ .copilotKitMarkdown h3 {
470
+ font-size: 1.1em;
471
+ }
472
+ .copilotKitMarkdown h4 {
473
+ font-size: 1em;
474
+ }
475
+ .copilotKitMarkdown h5 {
476
+ font-size: 0.9em;
477
+ }
478
+ .copilotKitMarkdown h6 {
479
+ font-size: 0.8em;
480
+ }
481
+ .copilotKitMarkdown p:not(:last-child),
482
+ .copilotKitMarkdown pre:not(:last-child),
483
+ .copilotKitMarkdown ol:not(:last-child),
484
+ .copilotKitMarkdown ul:not(:last-child),
485
+ .copilotKitMarkdown blockquote:not(:last-child) {
486
+ margin-bottom: 1.25em;
487
+ }
488
+ .copilotKitMarkdown blockquote {
489
+ border-color: rgb(142, 142, 160);
490
+ border-left-width: 2px;
491
+ border-left-style: solid;
492
+ line-height: 1.2;
493
+ padding-left: 10px;
494
+ }
495
+ .copilotKitMarkdown blockquote p {
496
+ padding: 0.7em 0;
497
+ }
498
+ .copilotKitMarkdown ul {
499
+ list-style-type: disc;
500
+ padding-left: 20px;
501
+ overflow: visible;
502
+ }
503
+ .copilotKitMarkdown li {
504
+ list-style-type: inherit;
505
+ list-style-position: outside;
506
+ margin-left: 0;
507
+ padding-left: 0;
508
+ position: relative;
509
+ overflow: visible;
510
+ }
511
+ .copilotKitCodeBlock {
512
+ position: relative;
513
+ width: 100%;
514
+ background-color: rgb(9 9 11);
515
+ border-radius: 0.375rem;
516
+ }
517
+ .copilotKitCodeBlockToolbar {
518
+ display: flex;
519
+ width: 100%;
520
+ align-items: center;
521
+ justify-content: space-between;
522
+ background-color: rgb(39 39 42);
523
+ padding-left: 1rem;
524
+ padding-top: 0.09rem;
525
+ padding-bottom: 0.09rem;
526
+ color: rgb(228, 228, 228);
527
+ border-top-left-radius: 0.375rem;
528
+ border-top-right-radius: 0.375rem;
529
+ font-family: sans-serif;
530
+ }
531
+ .copilotKitCodeBlockToolbarLanguage {
532
+ font-size: 0.75rem;
533
+ line-height: 1rem;
534
+ text-transform: lowercase;
535
+ }
536
+ .copilotKitCodeBlockToolbarButtons {
537
+ display: flex;
538
+ align-items: center;
539
+ margin-right: 0.25rem;
540
+ margin-left: 0.25rem;
541
+ }
542
+ .copilotKitCodeBlockToolbarButton {
543
+ display: inline-flex;
544
+ align-items: center;
545
+ justify-content: center;
546
+ border-radius: 0.375rem;
547
+ font-size: 0.875rem;
548
+ line-height: 1.25rem;
549
+ font-weight: 500;
550
+ height: 2.5rem;
551
+ width: 2.5rem;
552
+ padding: 3px;
553
+ margin: 2px;
554
+ }
555
+ .copilotKitCodeBlockToolbarButton:hover {
556
+ background-color: rgb(55, 55, 58);
557
+ }
558
+
559
+ /* src/css/suggestions.css */
560
+ .copilotKitMessages footer .suggestions {
561
+ display: flex;
562
+ flex-wrap: wrap;
563
+ gap: 8px;
564
+ }
565
+ .copilotKitMessages footer h6 {
566
+ font-weight: 500;
567
+ font-size: 0.7rem;
568
+ margin-bottom: 8px;
569
+ }
570
+ .copilotKitMessages footer .suggestions .suggestion {
571
+ padding: 8px 12px;
572
+ font-size: 0.7rem;
573
+ border-radius: 0.5rem;
574
+ background: var(--copilot-kit-primary-color);
575
+ color: var(--copilot-kit-contrast-color);
576
+ }
577
+ .copilotKitMessages footer .suggestions button {
578
+ transition: transform 0.3s ease;
579
+ }
580
+ .copilotKitMessages footer .suggestions button:not(:disabled):hover {
581
+ transform: scale(1.05);
582
+ }
583
+ .copilotKitMessages footer .suggestions button:disabled {
584
+ cursor: wait;
585
+ }
586
+ .copilotKitMessages footer .suggestions button svg {
587
+ margin-right: 6px;
588
+ }
589
+
590
+ /* src/css/panel.css */
591
+ .copilotKitChat {
592
+ z-index: 30;
593
+ line-height: 1.5;
594
+ -webkit-text-size-adjust: 100%;
595
+ -moz-tab-size: 4;
596
+ -o-tab-size: 4;
597
+ tab-size: 4;
598
+ font-family:
599
+ ui-sans-serif,
600
+ system-ui,
601
+ -apple-system,
602
+ BlinkMacSystemFont,
603
+ "Segoe UI",
604
+ Roboto,
605
+ "Helvetica Neue",
606
+ Arial,
607
+ "Noto Sans",
608
+ sans-serif,
609
+ "Apple Color Emoji",
610
+ "Segoe UI Emoji",
611
+ "Segoe UI Symbol",
612
+ "Noto Color Emoji";
613
+ font-feature-settings: normal;
614
+ font-variation-settings: normal;
615
+ touch-action: manipulation;
616
+ display: flex;
617
+ flex-direction: column;
618
+ }
619
+ .copilotKitChat svg {
620
+ display: inline-block;
621
+ vertical-align: middle;
622
+ }
623
+ .copilotKitChat .copilotKitMessages {
624
+ flex-grow: 1;
625
+ }
626
+
627
+ /* src/css/console.css */
628
+ .copilotKitDevConsole {
629
+ background-color: #f3f4f6;
630
+ padding-left: 10px;
631
+ padding-right: 10px;
632
+ display: flex;
633
+ align-items: center;
634
+ border-bottom: 1px solid #cecece;
635
+ padding-top: 10px;
636
+ padding-bottom: 10px;
637
+ }
638
+ .copilotKitDevConsole.copilotKitDevConsoleWarnOutdated {
639
+ background-color: #f9caca;
640
+ }
641
+ .copilotKitDevConsole .copilotKitVersionInfo {
642
+ flex: 1;
643
+ margin-left: 18px;
644
+ display: flex;
645
+ flex-direction: column;
646
+ gap: 2px;
647
+ }
648
+ .copilotKitDevConsole .copilotKitVersionInfo header {
649
+ font-size: 11px;
650
+ font-weight: bold;
651
+ }
652
+ .copilotKitDevConsole .copilotKitVersionInfo footer {
653
+ margin-top: 10px;
654
+ }
655
+ .copilotKitDevConsole .copilotKitVersionInfo footer button {
656
+ font-size: 11px;
657
+ font-weight: normal;
658
+ font-family: monospace;
659
+ background-color: white;
660
+ border: 1px solid #979797;
661
+ padding: 1px 12px;
662
+ padding-left: 5px;
663
+ border-radius: 4px;
664
+ display: inline-block;
665
+ text-align: left;
666
+ overflow: hidden;
667
+ white-space: nowrap;
668
+ width: 260px;
669
+ text-overflow: ellipsis;
670
+ }
671
+ .copilotKitDevConsole .copilotKitVersionInfo header aside {
672
+ display: inline;
673
+ font-weight: normal;
674
+ color: #7f7a7a;
675
+ margin-left: 5px;
676
+ }
677
+ .copilotKitDevConsole .copilotKitVersionInfo section {
678
+ font-size: 11px;
679
+ }
680
+ .copilotKitDevConsole .copilotKitVersionInfo section svg {
681
+ margin-left: 3px;
682
+ margin-top: -3px;
683
+ }
684
+ .copilotKitDevConsole .copilotKitDebugMenuButton {
685
+ font-size: 11px;
686
+ font-weight: bold;
687
+ display: flex;
688
+ width: 90px;
689
+ height: 30px;
690
+ background-color: #d8d8d8;
691
+ border: 1px solid #979797;
692
+ border-radius: 6px;
693
+ align-items: center;
694
+ justify-content: center;
695
+ outline: none;
696
+ }
697
+ .copilotKitDebugMenuButton.compact {
698
+ width: 35px;
699
+ color: black;
700
+ justify-content: center;
701
+ outline: none;
702
+ font-size: 8px;
703
+ }
704
+ .copilotKitDevConsole .copilotKitDebugMenuButton:hover {
705
+ background-color: #c7c7c7;
706
+ }
707
+ .copilotKitDevConsole .copilotKitDebugMenuButton > svg {
708
+ margin-left: 10px;
709
+ }
710
+ .copilotKitDebugMenu {
711
+ background-color: #d8d8d8;
712
+ margin-top: 2px;
713
+ border-radius: 6px;
714
+ border: 1px solid #979797;
715
+ padding: 0.25rem;
716
+ outline: none;
717
+ font-size: 13px;
718
+ }
719
+ .copilotKitDebugMenuItem {
720
+ padding-top: 3px;
721
+ padding-bottom: 3px;
722
+ padding-left: 10px;
723
+ padding-right: 10px;
724
+ display: block;
725
+ width: 100%;
726
+ text-align: left;
727
+ background: none;
728
+ border: none;
729
+ cursor: pointer;
730
+ }
731
+ .copilotKitDebugMenuItem:hover {
732
+ background-color: #c7c7c7;
733
+ border-radius: 4px;
734
+ }
735
+ .copilotKitDebugMenu[data-closed] {
736
+ transform: scale(0.95);
737
+ opacity: 0;
738
+ }
739
+ .copilotKitDebugMenu hr {
740
+ height: 1px;
741
+ border: none;
742
+ background-color: #979797;
743
+ margin: 0.25rem;
744
+ }
745
+
746
+ /* src/styles.css */
747
+ /*# sourceMappingURL=index.css.map */