@copilotkit/react-ui 0.15.0-alpha.1 → 0.15.0-alpha.3

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 (315) hide show
  1. package/.turbo/turbo-build.log +192 -288
  2. package/CHANGELOG.md +28 -1
  3. package/dist/{chunk-ZVAH2Z2W.mjs → chunk-3M4HWSE7.mjs} +3 -3
  4. package/dist/chunk-3M4HWSE7.mjs.map +1 -0
  5. package/dist/{chunk-Y2RUG4B3.mjs → chunk-5O2MCJZ2.mjs} +2 -2
  6. package/dist/chunk-5O2MCJZ2.mjs.map +1 -0
  7. package/dist/{chunk-X3Z2EVFV.mjs → chunk-CKJXXQ2W.mjs} +5 -5
  8. package/dist/chunk-CKJXXQ2W.mjs.map +1 -0
  9. package/dist/{chunk-NXWVWC33.mjs → chunk-DPRH4HX3.mjs} +11 -24
  10. package/dist/chunk-DPRH4HX3.mjs.map +1 -0
  11. package/dist/{chunk-UIRFLYXI.mjs → chunk-GWGHQNRI.mjs} +14 -13
  12. package/dist/chunk-GWGHQNRI.mjs.map +1 -0
  13. package/dist/chunk-JD7BAH7U.mjs +3 -0
  14. package/dist/{chunk-X4T6ZUVM.mjs → chunk-KBGIPFXA.mjs} +5 -5
  15. package/dist/chunk-KBGIPFXA.mjs.map +1 -0
  16. package/dist/{chunk-DN3OI5WF.mjs → chunk-NNVWLSYK.mjs} +9 -9
  17. package/dist/chunk-NNVWLSYK.mjs.map +1 -0
  18. package/dist/{chunk-QFASQEFJ.mjs → chunk-NYLOXKYT.mjs} +2 -2
  19. package/dist/chunk-NYLOXKYT.mjs.map +1 -0
  20. package/dist/{chunk-6H3Y2XEI.mjs → chunk-OF66AL5Z.mjs} +1 -1
  21. package/dist/chunk-OF66AL5Z.mjs.map +1 -0
  22. package/dist/{chunk-DPUPEOGG.mjs → chunk-UWPFPWAW.mjs} +2 -2
  23. package/dist/chunk-UWPFPWAW.mjs.map +1 -0
  24. package/dist/{chunk-GPEJCUWA.mjs → chunk-Z34F3WLK.mjs} +2 -2
  25. package/dist/chunk-Z34F3WLK.mjs.map +1 -0
  26. package/dist/components/chat/Button.d.ts +2 -3
  27. package/dist/components/chat/Button.js +38 -0
  28. package/dist/components/chat/Button.js.map +1 -0
  29. package/dist/components/chat/Button.mjs +2 -2
  30. package/dist/components/chat/Chat.d.ts +15 -14
  31. package/dist/components/chat/Chat.js +800 -0
  32. package/dist/components/chat/Chat.js.map +1 -0
  33. package/dist/components/chat/Chat.mjs +9 -9
  34. package/dist/components/chat/ChatContext.d.ts +21 -21
  35. package/dist/components/chat/ChatContext.js +220 -0
  36. package/dist/components/chat/ChatContext.js.map +1 -0
  37. package/dist/components/chat/ChatContext.mjs +1 -1
  38. package/dist/components/chat/CodeBlock.js +221 -0
  39. package/dist/components/chat/CodeBlock.js.map +1 -0
  40. package/dist/components/chat/CodeBlock.mjs +1 -1
  41. package/dist/components/chat/Header.d.ts +2 -3
  42. package/dist/components/chat/Header.js +31 -0
  43. package/dist/components/chat/Header.js.map +1 -0
  44. package/dist/components/chat/Header.mjs +2 -2
  45. package/dist/components/chat/Icons.d.ts +4 -4
  46. package/dist/components/chat/Icons.js +233 -0
  47. package/dist/components/chat/Icons.js.map +1 -0
  48. package/dist/components/chat/Input.d.ts +2 -3
  49. package/dist/components/chat/Input.js +111 -0
  50. package/dist/components/chat/Input.js.map +1 -0
  51. package/dist/components/chat/Input.mjs +2 -2
  52. package/dist/components/chat/Markdown.d.ts +1 -3
  53. package/dist/components/chat/Markdown.js +269 -0
  54. package/dist/components/chat/Markdown.js.map +1 -0
  55. package/dist/components/chat/Markdown.mjs +2 -2
  56. package/dist/components/chat/Messages.d.ts +2 -3
  57. package/dist/components/chat/Messages.js +331 -0
  58. package/dist/components/chat/Messages.js.map +1 -0
  59. package/dist/components/chat/Messages.mjs +4 -4
  60. package/dist/components/chat/Popup.d.ts +5 -4
  61. package/dist/components/chat/Popup.js +806 -0
  62. package/dist/components/chat/Popup.js.map +1 -0
  63. package/dist/components/chat/Popup.mjs +10 -10
  64. package/dist/components/chat/Response.d.ts +2 -3
  65. package/dist/components/chat/Response.js +31 -0
  66. package/dist/components/chat/Response.js.map +1 -0
  67. package/dist/components/chat/Response.mjs +2 -2
  68. package/dist/components/chat/Sidebar.d.ts +7 -6
  69. package/dist/components/chat/Sidebar.js +817 -0
  70. package/dist/components/chat/Sidebar.js.map +1 -0
  71. package/dist/components/chat/Sidebar.mjs +10 -10
  72. package/dist/components/chat/Textarea.d.ts +4 -4
  73. package/dist/components/chat/Textarea.js +55 -0
  74. package/dist/components/chat/Textarea.js.map +1 -0
  75. package/dist/components/chat/Window.d.ts +1 -1
  76. package/dist/components/chat/Window.js +116 -0
  77. package/dist/components/chat/Window.js.map +1 -0
  78. package/dist/components/chat/index.d.ts +5 -4
  79. package/dist/components/chat/index.js +824 -0
  80. package/dist/components/chat/index.js.map +1 -0
  81. package/dist/components/chat/index.mjs +11 -11
  82. package/dist/components/chat/props.d.ts +1 -1
  83. package/dist/components/chat/props.js +4 -0
  84. package/dist/components/index.d.ts +5 -11
  85. package/dist/components/index.js +824 -0
  86. package/dist/components/index.js.map +1 -0
  87. package/dist/components/index.mjs +12 -33
  88. package/dist/context/index.js +4 -0
  89. package/dist/hooks/index.js +4 -0
  90. package/dist/hooks/use-copy-to-clipboard.js +47 -0
  91. package/dist/hooks/use-copy-to-clipboard.js.map +1 -0
  92. package/dist/index.css +112 -916
  93. package/dist/index.css.map +1 -1
  94. package/dist/index.d.ts +5 -11
  95. package/dist/index.js +824 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/index.mjs +13 -34
  98. package/dist/lib/utils.js +64 -0
  99. package/dist/lib/utils.js.map +1 -0
  100. package/dist/lib/utils.mjs +38 -2
  101. package/dist/lib/utils.mjs.map +1 -1
  102. package/dist/lib/utils.test.js +10 -0
  103. package/dist/lib/utils.test.js.map +1 -0
  104. package/dist/types/index.js +4 -0
  105. package/dist/types/types.d.ts +1 -1
  106. package/dist/types/types.js +4 -0
  107. package/package.json +10 -9
  108. package/src/components/chat/Button.tsx +1 -2
  109. package/src/components/chat/Chat.tsx +7 -7
  110. package/src/components/chat/ChatContext.tsx +10 -10
  111. package/src/components/chat/CodeBlock.tsx +12 -36
  112. package/src/components/chat/Header.tsx +1 -2
  113. package/src/components/chat/Input.tsx +1 -1
  114. package/src/components/chat/Markdown.tsx +17 -11
  115. package/src/components/chat/Messages.tsx +2 -2
  116. package/src/components/chat/Popup.tsx +3 -4
  117. package/src/components/chat/Response.tsx +1 -2
  118. package/src/components/chat/Sidebar.tsx +4 -4
  119. package/src/components/chat/index.tsx +2 -2
  120. package/src/components/chat/props.ts +1 -1
  121. package/src/components/index.ts +0 -8
  122. package/src/css/animations.css +6 -0
  123. package/src/css/markdown.css +123 -0
  124. package/src/styles.css +1 -0
  125. package/src/types/types.ts +1 -1
  126. package/tsup.config.ts +1 -2
  127. package/dist/chunk-2KAF7NKC.mjs +0 -484
  128. package/dist/chunk-2KAF7NKC.mjs.map +0 -1
  129. package/dist/chunk-5KEDV5VC.mjs +0 -27
  130. package/dist/chunk-5KEDV5VC.mjs.map +0 -1
  131. package/dist/chunk-6H3Y2XEI.mjs.map +0 -1
  132. package/dist/chunk-6LAZQHEB.mjs +0 -129
  133. package/dist/chunk-6LAZQHEB.mjs.map +0 -1
  134. package/dist/chunk-C34L4AWW.mjs +0 -39
  135. package/dist/chunk-C34L4AWW.mjs.map +0 -1
  136. package/dist/chunk-CF3BK4OX.mjs +0 -53
  137. package/dist/chunk-CF3BK4OX.mjs.map +0 -1
  138. package/dist/chunk-CNQX2VY3.mjs +0 -66
  139. package/dist/chunk-CNQX2VY3.mjs.map +0 -1
  140. package/dist/chunk-DN3OI5WF.mjs.map +0 -1
  141. package/dist/chunk-DPUPEOGG.mjs.map +0 -1
  142. package/dist/chunk-FZRTAML3.mjs +0 -3
  143. package/dist/chunk-GCOPYGHH.mjs +0 -27
  144. package/dist/chunk-GCOPYGHH.mjs.map +0 -1
  145. package/dist/chunk-GPEJCUWA.mjs.map +0 -1
  146. package/dist/chunk-IJLMKBSZ.mjs +0 -25
  147. package/dist/chunk-IJLMKBSZ.mjs.map +0 -1
  148. package/dist/chunk-INCNMGJ7.mjs +0 -72
  149. package/dist/chunk-INCNMGJ7.mjs.map +0 -1
  150. package/dist/chunk-M3CZWJI3.mjs +0 -44
  151. package/dist/chunk-M3CZWJI3.mjs.map +0 -1
  152. package/dist/chunk-MC6KTH4X.mjs +0 -12
  153. package/dist/chunk-MC6KTH4X.mjs.map +0 -1
  154. package/dist/chunk-NXWVWC33.mjs.map +0 -1
  155. package/dist/chunk-OHWEJUCS.mjs +0 -18
  156. package/dist/chunk-OHWEJUCS.mjs.map +0 -1
  157. package/dist/chunk-OOBQC5H6.mjs +0 -34
  158. package/dist/chunk-OOBQC5H6.mjs.map +0 -1
  159. package/dist/chunk-Q6YO7LDK.mjs +0 -40
  160. package/dist/chunk-Q6YO7LDK.mjs.map +0 -1
  161. package/dist/chunk-QFASQEFJ.mjs.map +0 -1
  162. package/dist/chunk-RPTRCFSO.mjs +0 -42
  163. package/dist/chunk-RPTRCFSO.mjs.map +0 -1
  164. package/dist/chunk-SEH5PQVW.mjs +0 -52
  165. package/dist/chunk-SEH5PQVW.mjs.map +0 -1
  166. package/dist/chunk-SHOTWRKC.mjs +0 -18
  167. package/dist/chunk-SHOTWRKC.mjs.map +0 -1
  168. package/dist/chunk-SRBUGQTM.mjs +0 -109
  169. package/dist/chunk-SRBUGQTM.mjs.map +0 -1
  170. package/dist/chunk-TEYIQHMK.mjs +0 -12
  171. package/dist/chunk-TEYIQHMK.mjs.map +0 -1
  172. package/dist/chunk-UIRFLYXI.mjs.map +0 -1
  173. package/dist/chunk-VGX2W5ZB.mjs +0 -28
  174. package/dist/chunk-VGX2W5ZB.mjs.map +0 -1
  175. package/dist/chunk-X3Z2EVFV.mjs.map +0 -1
  176. package/dist/chunk-X4T6ZUVM.mjs.map +0 -1
  177. package/dist/chunk-XGUBRIUV.mjs +0 -72
  178. package/dist/chunk-XGUBRIUV.mjs.map +0 -1
  179. package/dist/chunk-Y2RUG4B3.mjs.map +0 -1
  180. package/dist/chunk-ZVAH2Z2W.mjs.map +0 -1
  181. package/dist/chunk-ZYC5YVDO.mjs +0 -21
  182. package/dist/chunk-ZYC5YVDO.mjs.map +0 -1
  183. package/dist/components/chat-components/chat-list.d.ts +0 -8
  184. package/dist/components/chat-components/chat-list.mjs +0 -13
  185. package/dist/components/chat-components/chat-message-actions.d.ts +0 -8
  186. package/dist/components/chat-components/chat-message-actions.mjs +0 -8
  187. package/dist/components/chat-components/chat-message.d.ts +0 -8
  188. package/dist/components/chat-components/chat-message.mjs +0 -11
  189. package/dist/components/chat-components/chat-panel.d.ts +0 -8
  190. package/dist/components/chat-components/chat-panel.mjs +0 -10
  191. package/dist/components/chat-components/chat-scroll-anchor.d.ts +0 -6
  192. package/dist/components/chat-components/chat-scroll-anchor.mjs +0 -5
  193. package/dist/components/chat-components/clear-history.d.ts +0 -9
  194. package/dist/components/chat-components/clear-history.mjs +0 -56
  195. package/dist/components/chat-components/clear-history.mjs.map +0 -1
  196. package/dist/components/chat-components/copilot-chat.d.ts +0 -12
  197. package/dist/components/chat-components/copilot-chat.mjs +0 -22
  198. package/dist/components/chat-components/copilot-chat.mjs.map +0 -1
  199. package/dist/components/chat-components/default-empty-screen.d.ts +0 -8
  200. package/dist/components/chat-components/default-empty-screen.mjs +0 -8
  201. package/dist/components/chat-components/default-empty-screen.mjs.map +0 -1
  202. package/dist/components/chat-components/external-link.d.ts +0 -6
  203. package/dist/components/chat-components/external-link.mjs +0 -4
  204. package/dist/components/chat-components/external-link.mjs.map +0 -1
  205. package/dist/components/chat-components/markdown.d.ts +0 -6
  206. package/dist/components/chat-components/markdown.mjs +0 -4
  207. package/dist/components/chat-components/markdown.mjs.map +0 -1
  208. package/dist/components/chat-components/prompt-form.d.ts +0 -9
  209. package/dist/components/chat-components/prompt-form.mjs +0 -9
  210. package/dist/components/chat-components/prompt-form.mjs.map +0 -1
  211. package/dist/components/chat-components/theme-toggle.d.ts +0 -3
  212. package/dist/components/chat-components/theme-toggle.mjs +0 -32
  213. package/dist/components/chat-components/theme-toggle.mjs.map +0 -1
  214. package/dist/components/chat-components/toaster.d.ts +0 -1
  215. package/dist/components/chat-components/toaster.mjs +0 -4
  216. package/dist/components/chat-components/toaster.mjs.map +0 -1
  217. package/dist/components/chat-components/ui/alert-dialog.d.ts +0 -20
  218. package/dist/components/chat-components/ui/alert-dialog.mjs +0 -6
  219. package/dist/components/chat-components/ui/alert-dialog.mjs.map +0 -1
  220. package/dist/components/chat-components/ui/badge.d.ts +0 -12
  221. package/dist/components/chat-components/ui/badge.mjs +0 -29
  222. package/dist/components/chat-components/ui/badge.mjs.map +0 -1
  223. package/dist/components/chat-components/ui/button.d.ts +0 -14
  224. package/dist/components/chat-components/ui/button.mjs +0 -5
  225. package/dist/components/chat-components/ui/button.mjs.map +0 -1
  226. package/dist/components/chat-components/ui/codeblock.d.ts +0 -14
  227. package/dist/components/chat-components/ui/codeblock.mjs +0 -8
  228. package/dist/components/chat-components/ui/codeblock.mjs.map +0 -1
  229. package/dist/components/chat-components/ui/dialog.d.ts +0 -18
  230. package/dist/components/chat-components/ui/dialog.mjs +0 -94
  231. package/dist/components/chat-components/ui/dialog.mjs.map +0 -1
  232. package/dist/components/chat-components/ui/dropdown-menu.d.ts +0 -24
  233. package/dist/components/chat-components/ui/dropdown-menu.mjs +0 -87
  234. package/dist/components/chat-components/ui/dropdown-menu.mjs.map +0 -1
  235. package/dist/components/chat-components/ui/icons.d.ts +0 -33
  236. package/dist/components/chat-components/ui/icons.mjs +0 -5
  237. package/dist/components/chat-components/ui/icons.mjs.map +0 -1
  238. package/dist/components/chat-components/ui/input.d.ts +0 -7
  239. package/dist/components/chat-components/ui/input.mjs +0 -26
  240. package/dist/components/chat-components/ui/input.mjs.map +0 -1
  241. package/dist/components/chat-components/ui/label.d.ts +0 -8
  242. package/dist/components/chat-components/ui/label.mjs +0 -19
  243. package/dist/components/chat-components/ui/label.mjs.map +0 -1
  244. package/dist/components/chat-components/ui/select.d.ts +0 -13
  245. package/dist/components/chat-components/ui/select.mjs +0 -101
  246. package/dist/components/chat-components/ui/select.mjs.map +0 -1
  247. package/dist/components/chat-components/ui/separator.d.ts +0 -6
  248. package/dist/components/chat-components/ui/separator.mjs +0 -5
  249. package/dist/components/chat-components/ui/separator.mjs.map +0 -1
  250. package/dist/components/chat-components/ui/sheet.d.ts +0 -19
  251. package/dist/components/chat-components/ui/sheet.mjs +0 -93
  252. package/dist/components/chat-components/ui/sheet.mjs.map +0 -1
  253. package/dist/components/chat-components/ui/switch.d.ts +0 -6
  254. package/dist/components/chat-components/ui/switch.mjs +0 -33
  255. package/dist/components/chat-components/ui/switch.mjs.map +0 -1
  256. package/dist/components/chat-components/ui/textarea.d.ts +0 -7
  257. package/dist/components/chat-components/ui/textarea.mjs +0 -25
  258. package/dist/components/chat-components/ui/textarea.mjs.map +0 -1
  259. package/dist/components/chat-components/ui/tooltip.d.ts +0 -9
  260. package/dist/components/chat-components/ui/tooltip.mjs +0 -5
  261. package/dist/components/chat-components/ui/tooltip.mjs.map +0 -1
  262. package/dist/components/sidebar/copilot-sidebar-ui-provider.d.ts +0 -8
  263. package/dist/components/sidebar/copilot-sidebar-ui-provider.mjs +0 -25
  264. package/dist/components/sidebar/copilot-sidebar-ui-provider.mjs.map +0 -1
  265. package/dist/components/sidebar/copilot-sidebar.d.ts +0 -6
  266. package/dist/components/sidebar/copilot-sidebar.mjs +0 -23
  267. package/dist/components/sidebar/copilot-sidebar.mjs.map +0 -1
  268. package/dist/components/sidebar/sidebar-context.d.ts +0 -9
  269. package/dist/components/sidebar/sidebar-context.mjs +0 -4
  270. package/dist/components/sidebar/sidebar-context.mjs.map +0 -1
  271. package/dist/hooks/use-at-bottom.d.ts +0 -3
  272. package/dist/hooks/use-at-bottom.mjs +0 -4
  273. package/dist/hooks/use-at-bottom.mjs.map +0 -1
  274. package/dist/hooks/use-enter-submit.d.ts +0 -8
  275. package/dist/hooks/use-enter-submit.mjs +0 -4
  276. package/dist/hooks/use-enter-submit.mjs.map +0 -1
  277. package/src/components/chat-components/chat-list.tsx +0 -28
  278. package/src/components/chat-components/chat-message-actions.tsx +0 -36
  279. package/src/components/chat-components/chat-message.tsx +0 -70
  280. package/src/components/chat-components/chat-panel.tsx +0 -64
  281. package/src/components/chat-components/chat-scroll-anchor.tsx +0 -29
  282. package/src/components/chat-components/clear-history.tsx +0 -72
  283. package/src/components/chat-components/copilot-chat.tsx +0 -57
  284. package/src/components/chat-components/default-empty-screen.tsx +0 -57
  285. package/src/components/chat-components/external-link.tsx +0 -17
  286. package/src/components/chat-components/markdown.tsx +0 -8
  287. package/src/components/chat-components/prompt-form.tsx +0 -85
  288. package/src/components/chat-components/theme-toggle.tsx +0 -31
  289. package/src/components/chat-components/toaster.tsx +0 -3
  290. package/src/components/chat-components/ui/alert-dialog.tsx +0 -126
  291. package/src/components/chat-components/ui/badge.tsx +0 -33
  292. package/src/components/chat-components/ui/button.tsx +0 -49
  293. package/src/components/chat-components/ui/codeblock.tsx +0 -137
  294. package/src/components/chat-components/ui/dialog.tsx +0 -106
  295. package/src/components/chat-components/ui/dropdown-menu.tsx +0 -117
  296. package/src/components/chat-components/ui/icons.tsx +0 -484
  297. package/src/components/chat-components/ui/input.tsx +0 -24
  298. package/src/components/chat-components/ui/label.tsx +0 -21
  299. package/src/components/chat-components/ui/select.tsx +0 -119
  300. package/src/components/chat-components/ui/separator.tsx +0 -26
  301. package/src/components/chat-components/ui/sheet.tsx +0 -106
  302. package/src/components/chat-components/ui/switch.tsx +0 -29
  303. package/src/components/chat-components/ui/textarea.tsx +0 -23
  304. package/src/components/chat-components/ui/tooltip.tsx +0 -30
  305. package/src/components/sidebar/copilot-sidebar-ui-provider.tsx +0 -73
  306. package/src/components/sidebar/copilot-sidebar.tsx +0 -38
  307. package/src/components/sidebar/sidebar-context.tsx +0 -11
  308. package/src/hooks/use-at-bottom.tsx +0 -20
  309. package/src/hooks/use-enter-submit.tsx +0 -17
  310. /package/dist/{chunk-FZRTAML3.mjs.map → chunk-JD7BAH7U.mjs.map} +0 -0
  311. /package/dist/components/{chat-components/chat-list.mjs.map → chat/props.js.map} +0 -0
  312. /package/dist/{components/chat-components/chat-message-actions.mjs.map → context/index.js.map} +0 -0
  313. /package/dist/{components/chat-components/chat-message.mjs.map → hooks/index.js.map} +0 -0
  314. /package/dist/{components/chat-components/chat-panel.mjs.map → types/index.js.map} +0 -0
  315. /package/dist/{components/chat-components/chat-scroll-anchor.mjs.map → types/types.js.map} +0 -0
@@ -1,11 +0,0 @@
1
- export { ChatMessage } from '../../chunk-CNQX2VY3.mjs';
2
- import '../../chunk-6LAZQHEB.mjs';
3
- import '../../chunk-TEYIQHMK.mjs';
4
- import '../../chunk-OOBQC5H6.mjs';
5
- import '../../chunk-M3CZWJI3.mjs';
6
- import '../../chunk-2KAF7NKC.mjs';
7
- import '../../chunk-Q6YO7LDK.mjs';
8
- import '../../chunk-POVINPXX.mjs';
9
- import '../../chunk-MRXNTQOX.mjs';
10
- //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=chat-message.mjs.map
@@ -1,8 +0,0 @@
1
- import { UseChatHelpers } from '@copilotkit/react-core';
2
-
3
- interface ChatPanelProps extends Pick<UseChatHelpers, "append" | "isLoading" | "reload" | "messages" | "stop" | "input" | "setInput"> {
4
- id?: string;
5
- }
6
- declare function ChatPanel({ id, isLoading, stop, append, reload, input, setInput, messages, }: ChatPanelProps): JSX.Element;
7
-
8
- export { ChatPanel, ChatPanelProps };
@@ -1,10 +0,0 @@
1
- export { ChatPanel } from '../../chunk-CF3BK4OX.mjs';
2
- import '../../chunk-INCNMGJ7.mjs';
3
- import '../../chunk-VGX2W5ZB.mjs';
4
- import '../../chunk-M3CZWJI3.mjs';
5
- import '../../chunk-2KAF7NKC.mjs';
6
- import '../../chunk-Q6YO7LDK.mjs';
7
- import '../../chunk-OHWEJUCS.mjs';
8
- import '../../chunk-MRXNTQOX.mjs';
9
- //# sourceMappingURL=out.js.map
10
- //# sourceMappingURL=chat-panel.mjs.map
@@ -1,6 +0,0 @@
1
- interface ChatScrollAnchorProps {
2
- trackVisibility?: boolean;
3
- }
4
- declare function ChatScrollAnchor({ trackVisibility }: ChatScrollAnchorProps): JSX.Element;
5
-
6
- export { ChatScrollAnchor };
@@ -1,5 +0,0 @@
1
- export { ChatScrollAnchor } from '../../chunk-IJLMKBSZ.mjs';
2
- import '../../chunk-ZYC5YVDO.mjs';
3
- import '../../chunk-MRXNTQOX.mjs';
4
- //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chat-scroll-anchor.mjs.map
@@ -1,9 +0,0 @@
1
- import { ServerActionResult } from '../../types/types.js';
2
- import '@copilotkit/react-core';
3
-
4
- interface ClearHistoryProps {
5
- clearChats: () => ServerActionResult<void>;
6
- }
7
- declare function ClearHistory({ clearChats }: ClearHistoryProps): JSX.Element;
8
-
9
- export { ClearHistory };
@@ -1,56 +0,0 @@
1
- import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction } from '../../chunk-SRBUGQTM.mjs';
2
- import { Button } from '../../chunk-M3CZWJI3.mjs';
3
- import { IconSpinner } from '../../chunk-2KAF7NKC.mjs';
4
- import '../../chunk-Q6YO7LDK.mjs';
5
- import { __async } from '../../chunk-MRXNTQOX.mjs';
6
- import * as React from 'react';
7
- import { useRouter } from 'next/navigation';
8
- import { toast } from 'react-hot-toast';
9
- import { jsxs, jsx } from 'react/jsx-runtime';
10
-
11
- function ClearHistory({ clearChats }) {
12
- const [open, setOpen] = React.useState(false);
13
- const [isPending, startTransition] = React.useTransition();
14
- const router = useRouter();
15
- return /* @__PURE__ */ jsxs(AlertDialog, { open, onOpenChange: setOpen, children: [
16
- /* @__PURE__ */ jsx(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "ghost", disabled: isPending, children: [
17
- isPending && /* @__PURE__ */ jsx(IconSpinner, { className: "mr-2" }),
18
- "Clear history"
19
- ] }) }),
20
- /* @__PURE__ */ jsxs(AlertDialogContent, { children: [
21
- /* @__PURE__ */ jsxs(AlertDialogHeader, { children: [
22
- /* @__PURE__ */ jsx(AlertDialogTitle, { children: "Are you absolutely sure?" }),
23
- /* @__PURE__ */ jsx(AlertDialogDescription, { children: "This will permanently delete your chat history and remove your data from our servers." })
24
- ] }),
25
- /* @__PURE__ */ jsxs(AlertDialogFooter, { children: [
26
- /* @__PURE__ */ jsx(AlertDialogCancel, { disabled: isPending, children: "Cancel" }),
27
- /* @__PURE__ */ jsxs(
28
- AlertDialogAction,
29
- {
30
- disabled: isPending,
31
- onClick: (event) => {
32
- event.preventDefault();
33
- startTransition(() => __async(this, null, function* () {
34
- const result = yield clearChats();
35
- if (result && "error" in result) {
36
- toast.error(result.error);
37
- return;
38
- }
39
- setOpen(false);
40
- router.push("/");
41
- }));
42
- },
43
- children: [
44
- isPending && /* @__PURE__ */ jsx(IconSpinner, { className: "mr-2 animate-spin" }),
45
- "Delete"
46
- ]
47
- }
48
- )
49
- ] })
50
- ] })
51
- ] });
52
- }
53
-
54
- export { ClearHistory };
55
- //# sourceMappingURL=out.js.map
56
- //# sourceMappingURL=clear-history.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/chat-components/clear-history.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,iBAAiB;AAC1B,SAAS,aAAa;AA6Bd,SACgB,KADhB;AARD,SAAS,aAAa,EAAE,WAAW,GAAsB;AAC9D,QAAM,CAAC,MAAM,OAAO,IAAU,eAAS,KAAK;AAC5C,QAAM,CAAC,WAAW,eAAe,IAAU,oBAAc;AACzD,QAAM,SAAS,UAAU;AAEzB,SACE,qBAAC,eAAY,MAAY,cAAc,SACrC;AAAA,wBAAC,sBAAmB,SAAO,MACzB,+BAAC,UAAO,SAAQ,SAAQ,UAAU,WAC/B;AAAA,mBAAa,oBAAC,eAAY,WAAU,QAAO;AAAA,MAAG;AAAA,OAEjD,GACF;AAAA,IACA,qBAAC,sBACC;AAAA,2BAAC,qBACC;AAAA,4BAAC,oBAAiB,sCAAwB;AAAA,QAC1C,oBAAC,0BAAuB,mGAExB;AAAA,SACF;AAAA,MACA,qBAAC,qBACC;AAAA,4BAAC,qBAAkB,UAAU,WAAW,oBAAM;AAAA,QAC9C;AAAA,UAAC;AAAA;AAAA,YACC,UAAU;AAAA,YACV,SAAS,CAAC,UAAe;AACvB,oBAAM,eAAe;AACrB,8BAAgB,MAAY;AAC1B,sBAAM,SAAS,MAAM,WAAW;AAEhC,oBAAI,UAAU,WAAW,QAAQ;AAC/B,wBAAM,MAAM,OAAO,KAAK;AACxB;AAAA,gBACF;AAEA,wBAAQ,KAAK;AACb,uBAAO,KAAK,GAAG;AAAA,cACjB,EAAC;AAAA,YACH;AAAA,YAEC;AAAA,2BAAa,oBAAC,eAAY,WAAU,qBAAoB;AAAA,cAAG;AAAA;AAAA;AAAA,QAE9D;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAEJ","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { useRouter } from \"next/navigation\";\nimport { toast } from \"react-hot-toast\";\n\nimport { ServerActionResult } from \"../../types/types\";\nimport { Button } from \"./ui/button\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n} from \"./ui/alert-dialog\";\nimport { IconSpinner } from \"./ui/icons\";\n\ninterface ClearHistoryProps {\n clearChats: () => ServerActionResult<void>;\n}\n\nexport function ClearHistory({ clearChats }: ClearHistoryProps) {\n const [open, setOpen] = React.useState(false);\n const [isPending, startTransition] = React.useTransition();\n const router = useRouter();\n\n return (\n <AlertDialog open={open} onOpenChange={setOpen}>\n <AlertDialogTrigger asChild>\n <Button variant=\"ghost\" disabled={isPending}>\n {isPending && <IconSpinner className=\"mr-2\" />}\n Clear history\n </Button>\n </AlertDialogTrigger>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>\n <AlertDialogDescription>\n This will permanently delete your chat history and remove your data from our servers.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={isPending}>Cancel</AlertDialogCancel>\n <AlertDialogAction\n disabled={isPending}\n onClick={(event: any) => {\n event.preventDefault();\n startTransition(async () => {\n const result = await clearChats();\n\n if (result && \"error\" in result) {\n toast.error(result.error);\n return;\n }\n\n setOpen(false);\n router.push(\"/\");\n });\n }}\n >\n {isPending && <IconSpinner className=\"mr-2 animate-spin\" />}\n Delete\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n );\n}\n"]}
@@ -1,12 +0,0 @@
1
- import React__default from 'react';
2
- import { EmptyScreenProps } from './default-empty-screen.js';
3
- import { UseCopilotChatOptions } from '@copilotkit/react-core';
4
-
5
- interface ChatComponentInjectionsProps {
6
- EmptyScreen?: React__default.FC<EmptyScreenProps>;
7
- }
8
- interface CopilotChatProps extends UseCopilotChatOptions, ChatComponentInjectionsProps {
9
- }
10
- declare function CopilotChat({ id, initialMessages, makeSystemMessage, EmptyScreen, }: CopilotChatProps): JSX.Element;
11
-
12
- export { CopilotChat };
@@ -1,22 +0,0 @@
1
- export { CopilotChat } from '../../chunk-RPTRCFSO.mjs';
2
- import '../../chunk-SEH5PQVW.mjs';
3
- import '../../chunk-5KEDV5VC.mjs';
4
- import '../../chunk-SHOTWRKC.mjs';
5
- import '../../chunk-GCOPYGHH.mjs';
6
- import '../../chunk-CNQX2VY3.mjs';
7
- import '../../chunk-6LAZQHEB.mjs';
8
- import '../../chunk-TEYIQHMK.mjs';
9
- import '../../chunk-OOBQC5H6.mjs';
10
- import '../../chunk-CF3BK4OX.mjs';
11
- import '../../chunk-INCNMGJ7.mjs';
12
- import '../../chunk-VGX2W5ZB.mjs';
13
- import '../../chunk-M3CZWJI3.mjs';
14
- import '../../chunk-2KAF7NKC.mjs';
15
- import '../../chunk-IJLMKBSZ.mjs';
16
- import '../../chunk-Q6YO7LDK.mjs';
17
- import '../../chunk-ZYC5YVDO.mjs';
18
- import '../../chunk-POVINPXX.mjs';
19
- import '../../chunk-OHWEJUCS.mjs';
20
- import '../../chunk-MRXNTQOX.mjs';
21
- //# sourceMappingURL=out.js.map
22
- //# sourceMappingURL=copilot-chat.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import React__default from 'react';
2
-
3
- interface EmptyScreenProps {
4
- setInput: React__default.Dispatch<React__default.SetStateAction<string>>;
5
- }
6
- declare const DefaultEmptyScreen: React__default.FC<EmptyScreenProps>;
7
-
8
- export { DefaultEmptyScreen, EmptyScreenProps };
@@ -1,8 +0,0 @@
1
- export { DefaultEmptyScreen } from '../../chunk-SEH5PQVW.mjs';
2
- import '../../chunk-5KEDV5VC.mjs';
3
- import '../../chunk-M3CZWJI3.mjs';
4
- import '../../chunk-2KAF7NKC.mjs';
5
- import '../../chunk-Q6YO7LDK.mjs';
6
- import '../../chunk-MRXNTQOX.mjs';
7
- //# sourceMappingURL=out.js.map
8
- //# sourceMappingURL=default-empty-screen.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- declare function ExternalLink({ href, children }: {
2
- href: string;
3
- children: React.ReactNode;
4
- }): JSX.Element;
5
-
6
- export { ExternalLink };
@@ -1,4 +0,0 @@
1
- export { ExternalLink } from '../../chunk-5KEDV5VC.mjs';
2
- import '../../chunk-MRXNTQOX.mjs';
3
- //# sourceMappingURL=out.js.map
4
- //# sourceMappingURL=external-link.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { Options } from 'react-markdown';
3
-
4
- declare const MemoizedReactMarkdown: FC<Options>;
5
-
6
- export { MemoizedReactMarkdown };
@@ -1,4 +0,0 @@
1
- export { MemoizedReactMarkdown } from '../../chunk-TEYIQHMK.mjs';
2
- import '../../chunk-MRXNTQOX.mjs';
3
- //# sourceMappingURL=out.js.map
4
- //# sourceMappingURL=markdown.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { UseChatHelpers } from '@copilotkit/react-core';
2
-
3
- interface PromptProps extends Pick<UseChatHelpers, "input" | "setInput"> {
4
- onSubmit: (value: string) => Promise<void>;
5
- isLoading: boolean;
6
- }
7
- declare function PromptForm({ onSubmit, input, setInput, isLoading }: PromptProps): JSX.Element;
8
-
9
- export { PromptForm, PromptProps };
@@ -1,9 +0,0 @@
1
- export { PromptForm } from '../../chunk-INCNMGJ7.mjs';
2
- import '../../chunk-VGX2W5ZB.mjs';
3
- import '../../chunk-M3CZWJI3.mjs';
4
- import '../../chunk-2KAF7NKC.mjs';
5
- import '../../chunk-Q6YO7LDK.mjs';
6
- import '../../chunk-OHWEJUCS.mjs';
7
- import '../../chunk-MRXNTQOX.mjs';
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=prompt-form.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- declare function ThemeToggle(): JSX.Element;
2
-
3
- export { ThemeToggle };
@@ -1,32 +0,0 @@
1
- import { Button } from '../../chunk-M3CZWJI3.mjs';
2
- import { IconMoon, IconSun } from '../../chunk-2KAF7NKC.mjs';
3
- import '../../chunk-Q6YO7LDK.mjs';
4
- import '../../chunk-MRXNTQOX.mjs';
5
- import * as React from 'react';
6
- import { useTheme } from 'next-themes';
7
- import { jsxs, jsx } from 'react/jsx-runtime';
8
-
9
- function ThemeToggle() {
10
- const { setTheme, theme } = useTheme();
11
- const [_, startTransition] = React.useTransition();
12
- return /* @__PURE__ */ jsxs(
13
- Button,
14
- {
15
- variant: "ghost",
16
- size: "icon",
17
- onClick: () => {
18
- startTransition(() => {
19
- setTheme(theme === "light" ? "dark" : "light");
20
- });
21
- },
22
- children: [
23
- !theme ? null : theme === "dark" ? /* @__PURE__ */ jsx(IconMoon, { className: "transition-all" }) : /* @__PURE__ */ jsx(IconSun, { className: "transition-all" }),
24
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle theme" })
25
- ]
26
- }
27
- );
28
- }
29
-
30
- export { ThemeToggle };
31
- //# sourceMappingURL=out.js.map
32
- //# sourceMappingURL=theme-toggle.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/chat-components/theme-toggle.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,gBAAgB;AAUrB,SAUI,KAVJ;AALG,SAAS,cAAc;AAC5B,QAAM,EAAE,UAAU,MAAM,IAAI,SAAS;AACrC,QAAM,CAAC,GAAG,eAAe,IAAU,oBAAc;AAEjD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,SAAS,MAAM;AACb,wBAAgB,MAAM;AACpB,mBAAS,UAAU,UAAU,SAAS,OAAO;AAAA,QAC/C,CAAC;AAAA,MACH;AAAA,MAEC;AAAA,SAAC,QAAQ,OAAO,UAAU,SACzB,oBAAC,YAAS,WAAU,kBAAiB,IAErC,oBAAC,WAAQ,WAAU,kBAAiB;AAAA,QAEtC,oBAAC,UAAK,WAAU,WAAU,0BAAY;AAAA;AAAA;AAAA,EACxC;AAEJ","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { useTheme } from \"next-themes\";\n\nimport { Button } from \"./ui/button\";\nimport { IconMoon, IconSun } from \"./ui/icons\";\n\nexport function ThemeToggle() {\n const { setTheme, theme } = useTheme();\n const [_, startTransition] = React.useTransition();\n\n return (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => {\n startTransition(() => {\n setTheme(theme === \"light\" ? \"dark\" : \"light\");\n });\n }}\n >\n {!theme ? null : theme === \"dark\" ? (\n <IconMoon className=\"transition-all\" />\n ) : (\n <IconSun className=\"transition-all\" />\n )}\n <span className=\"sr-only\">Toggle theme</span>\n </Button>\n );\n}\n"]}
@@ -1 +0,0 @@
1
- export { Toaster } from 'react-hot-toast';
@@ -1,4 +0,0 @@
1
- import '../../chunk-MRXNTQOX.mjs';
2
- export { Toaster } from 'react-hot-toast';
3
- //# sourceMappingURL=out.js.map
4
- //# sourceMappingURL=toaster.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/chat-components/toaster.tsx"],"names":[],"mappings":";;;;AAEA,SAAS,eAAe","sourcesContent":["\"use client\";\n\nexport { Toaster } from \"react-hot-toast\";\n"]}
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
-
4
- declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
5
- declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- declare const AlertDialogHeader: {
8
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
9
- displayName: string;
10
- };
11
- declare const AlertDialogFooter: {
12
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
13
- displayName: string;
14
- };
15
- declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
16
- declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
17
- declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
- declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
-
20
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger };
@@ -1,6 +0,0 @@
1
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '../../../chunk-SRBUGQTM.mjs';
2
- import '../../../chunk-M3CZWJI3.mjs';
3
- import '../../../chunk-Q6YO7LDK.mjs';
4
- import '../../../chunk-MRXNTQOX.mjs';
5
- //# sourceMappingURL=out.js.map
6
- //# sourceMappingURL=alert-dialog.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const badgeVariants: (props?: ({
6
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
7
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
8
- interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
9
- }
10
- declare function Badge({ className, variant, ...props }: BadgeProps): JSX.Element;
11
-
12
- export { Badge, BadgeProps, badgeVariants };
@@ -1,29 +0,0 @@
1
- import { cn } from '../../../chunk-Q6YO7LDK.mjs';
2
- import { __objRest, __spreadValues } from '../../../chunk-MRXNTQOX.mjs';
3
- import { cva } from 'class-variance-authority';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var badgeVariants = cva(
7
- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8
- {
9
- variants: {
10
- variant: {
11
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
12
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
13
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
14
- outline: "text-foreground"
15
- }
16
- },
17
- defaultVariants: {
18
- variant: "default"
19
- }
20
- }
21
- );
22
- function Badge(_a) {
23
- var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
24
- return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn(badgeVariants({ variant }), className) }, props));
25
- }
26
-
27
- export { Badge, badgeVariants };
28
- //# sourceMappingURL=out.js.map
29
- //# sourceMappingURL=badge.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/chat-components/ui/badge.tsx"],"names":[],"mappings":";;;;;;;;;AACA,SAAS,WAA8B;AA4B9B;AAxBT,IAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,WACE;AAAA,QACF,aACE;AAAA,QACF,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAMA,SAAS,MAAM,IAA8C;AAA9C,eAAE,aAAW,QA5B5B,IA4Be,IAAyB,kBAAzB,IAAyB,CAAvB,aAAW;AAC1B,SAAO,oBAAC,wBAAI,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS,KAAO,MAAO;AAC/E","sourcesContent":["import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst badgeVariants = cva(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default: \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n outline: \"text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return <div className={cn(badgeVariants({ variant }), className)} {...props} />;\n}\n\nexport { Badge, badgeVariants };\n"]}
@@ -1,14 +0,0 @@
1
- import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const buttonVariants: (props?: ({
6
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
7
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
8
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
9
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
- asChild?: boolean;
11
- }
12
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
-
14
- export { Button, ButtonProps, buttonVariants };
@@ -1,5 +0,0 @@
1
- export { Button, buttonVariants } from '../../../chunk-M3CZWJI3.mjs';
2
- import '../../../chunk-Q6YO7LDK.mjs';
3
- import '../../../chunk-MRXNTQOX.mjs';
4
- //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=button.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
-
3
- interface Props {
4
- language: string;
5
- value: string;
6
- }
7
- interface languageMap {
8
- [key: string]: string | undefined;
9
- }
10
- declare const programmingLanguages: languageMap;
11
- declare const generateRandomString: (length: number, lowercase?: boolean) => string;
12
- declare const CodeBlock: FC<Props>;
13
-
14
- export { CodeBlock, generateRandomString, programmingLanguages };
@@ -1,8 +0,0 @@
1
- export { CodeBlock, generateRandomString, programmingLanguages } from '../../../chunk-6LAZQHEB.mjs';
2
- import '../../../chunk-M3CZWJI3.mjs';
3
- import '../../../chunk-2KAF7NKC.mjs';
4
- import '../../../chunk-Q6YO7LDK.mjs';
5
- import '../../../chunk-POVINPXX.mjs';
6
- import '../../../chunk-MRXNTQOX.mjs';
7
- //# sourceMappingURL=out.js.map
8
- //# sourceMappingURL=codeblock.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import * as SheetPrimitive from '@radix-ui/react-dialog';
3
-
4
- declare const Dialog: React.FC<SheetPrimitive.DialogProps>;
5
- declare const DialogTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- declare const DialogHeader: {
8
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
9
- displayName: string;
10
- };
11
- declare const DialogFooter: {
12
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
13
- displayName: string;
14
- };
15
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
16
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
17
-
18
- export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger };
@@ -1,94 +0,0 @@
1
- import { IconClose } from '../../../chunk-2KAF7NKC.mjs';
2
- import { cn } from '../../../chunk-Q6YO7LDK.mjs';
3
- import { __objRest, __spreadValues, __spreadProps } from '../../../chunk-MRXNTQOX.mjs';
4
- import * as React from 'react';
5
- import * as DialogPrimitive from '@radix-ui/react-dialog';
6
- import { jsx, jsxs } from 'react/jsx-runtime';
7
-
8
- var Dialog = DialogPrimitive.Root;
9
- var DialogTrigger = DialogPrimitive.Trigger;
10
- var DialogPortal = (_a) => {
11
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
12
- return /* @__PURE__ */ jsx(DialogPrimitive.Portal, __spreadProps(__spreadValues({ className: cn(className) }, props), { children: /* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-50 flex items-start justify-center sm:items-center", children }) }));
13
- };
14
- DialogPortal.displayName = DialogPrimitive.Portal.displayName;
15
- var DialogOverlay = React.forwardRef((_a, ref) => {
16
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
17
- return /* @__PURE__ */ jsx(
18
- DialogPrimitive.Overlay,
19
- __spreadValues({
20
- ref,
21
- className: cn(
22
- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",
23
- className
24
- )
25
- }, props)
26
- );
27
- });
28
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
29
- var DialogContent = React.forwardRef((_a, ref) => {
30
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
31
- return /* @__PURE__ */ jsxs(DialogPortal, { children: [
32
- /* @__PURE__ */ jsx(DialogOverlay, {}),
33
- /* @__PURE__ */ jsxs(
34
- DialogPrimitive.Content,
35
- __spreadProps(__spreadValues({
36
- ref,
37
- className: cn(
38
- "fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-sm animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
39
- className
40
- )
41
- }, props), {
42
- children: [
43
- children,
44
- /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
45
- /* @__PURE__ */ jsx(IconClose, {}),
46
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
47
- ] })
48
- ]
49
- })
50
- )
51
- ] });
52
- });
53
- DialogContent.displayName = DialogPrimitive.Content.displayName;
54
- var DialogHeader = (_a) => {
55
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
56
- return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className) }, props));
57
- };
58
- DialogHeader.displayName = "DialogHeader";
59
- var DialogFooter = (_a) => {
60
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
61
- return /* @__PURE__ */ jsx(
62
- "div",
63
- __spreadValues({
64
- className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
65
- }, props)
66
- );
67
- };
68
- DialogFooter.displayName = "DialogFooter";
69
- var DialogTitle = React.forwardRef((_a, ref) => {
70
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
71
- return /* @__PURE__ */ jsx(
72
- DialogPrimitive.Title,
73
- __spreadValues({
74
- ref,
75
- className: cn("text-lg font-semibold leading-none tracking-tight", className)
76
- }, props)
77
- );
78
- });
79
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
80
- var DialogDescription = React.forwardRef((_a, ref) => {
81
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
82
- return /* @__PURE__ */ jsx(
83
- DialogPrimitive.Description,
84
- __spreadValues({
85
- ref,
86
- className: cn("text-sm text-muted-foreground", className)
87
- }, props)
88
- );
89
- });
90
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
91
-
92
- export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger };
93
- //# sourceMappingURL=out.js.map
94
- //# sourceMappingURL=dialog.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/chat-components/ui/dialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,YAAY,WAAW;AACvB,YAAY,qBAAqB;AAW7B,cAqCE,YArCF;AANJ,IAAM,SAAyB;AAE/B,IAAM,gBAAgC;AAEtC,IAAM,eAAe,CAAC,OAAsE;AAAtE,eAAE,aAAW,SAZnC,IAYsB,IAA0B,kBAA1B,IAA0B,CAAxB,aAAW;AACjC,6BAAiB,wBAAhB,+BAAuB,WAAW,GAAG,SAAS,KAAO,QAArD,EACC,8BAAC,SAAI,WAAU,sEACZ,UACH,IACF;AAAA;AAEF,aAAa,cAA8B,uBAAO;AAElD,IAAM,gBAAsB,iBAG1B,CAAC,IAAyB,QAAK;AAA9B,eAAE,YAxBL,IAwBG,IAAgB,kBAAhB,IAAgB,CAAd;AACH;AAAA,IAAiB;AAAA,IAAhB;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAAA,CACD;AACD,cAAc,cAA8B,wBAAQ;AAEpD,IAAM,gBAAsB,iBAG1B,CAAC,IAAmC,QAAK;AAAxC,eAAE,aAAW,SAvChB,IAuCG,IAA0B,kBAA1B,IAA0B,CAAxB,aAAW;AACd,8BAAC,gBACC;AAAA,wBAAC,iBAAc;AAAA,IACf;AAAA,MAAiB;AAAA,MAAhB;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA,SACI,QANL;AAAA,QAQE;AAAA;AAAA,UACD,qBAAiB,uBAAhB,EAAsB,WAAU,iRAC/B;AAAA,gCAAC,aAAU;AAAA,YACX,oBAAC,UAAK,WAAU,WAAU,mBAAK;AAAA,aACjC;AAAA;AAAA;AAAA,IACF;AAAA,KACF;AAAA,CACD;AACD,cAAc,cAA8B,wBAAQ;AAEpD,IAAM,eAAe,CAAC,OAA+D;AAA/D,eAAE,YA5DxB,IA4DsB,IAAgB,kBAAhB,IAAgB,CAAd;AACtB,6BAAC,wBAAI,WAAW,GAAG,sDAAsD,SAAS,KAAO,MAAO;AAAA;AAElG,aAAa,cAAc;AAE3B,IAAM,eAAe,CAAC,OAA+D;AAA/D,eAAE,YAjExB,IAiEsB,IAAgB,kBAAhB,IAAgB,CAAd;AACtB;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,iEAAiE,SAAS;AAAA,OACpF;AAAA,EACN;AAAA;AAEF,aAAa,cAAc;AAE3B,IAAM,cAAoB,iBAGxB,CAAC,IAAyB,QAAK;AAA9B,eAAE,YA5EL,IA4EG,IAAgB,kBAAhB,IAAgB,CAAd;AACH;AAAA,IAAiB;AAAA,IAAhB;AAAA,MACC;AAAA,MACA,WAAW,GAAG,qDAAqD,SAAS;AAAA,OACxE;AAAA,EACN;AAAA,CACD;AACD,YAAY,cAA8B,sBAAM;AAEhD,IAAM,oBAA0B,iBAG9B,CAAC,IAAyB,QAAK;AAA9B,eAAE,YAxFL,IAwFG,IAAgB,kBAAhB,IAAgB,CAAd;AACH;AAAA,IAAiB;AAAA,IAAhB;AAAA,MACC;AAAA,MACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,OACpD;AAAA,EACN;AAAA,CACD;AACD,kBAAkB,cAA8B,4BAAY","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\n\nimport { cn } from \"../../../lib/utils\";\nimport { IconClose } from \"./icons\";\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = ({ className, children, ...props }: DialogPrimitive.DialogPortalProps) => (\n <DialogPrimitive.Portal className={cn(className)} {...props}>\n <div className=\"fixed inset-0 z-50 flex items-start justify-center sm:items-center\">\n {children}\n </div>\n </DialogPrimitive.Portal>\n);\nDialogPortal.displayName = DialogPrimitive.Portal.displayName;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in\",\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-sm animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0\",\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <IconClose />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"flex flex-col space-y-1.5 text-center sm:text-left\", className)} {...props} />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\", className)}\n {...props}\n />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n"]}
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
-
4
- declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
5
- declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
7
- declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
8
- declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
9
- declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
10
- declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
13
- inset?: boolean | undefined;
14
- } & React.RefAttributes<HTMLDivElement>>;
15
- declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
16
- inset?: boolean | undefined;
17
- } & React.RefAttributes<HTMLDivElement>>;
18
- declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- declare const DropdownMenuShortcut: {
20
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
21
- displayName: string;
22
- };
23
-
24
- export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuTrigger };