@copilotkit/react-ui 0.2.0 → 0.4.0

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 (238) hide show
  1. package/.turbo/turbo-build.log +193 -16
  2. package/CHANGELOG.md +24 -0
  3. package/LICENSE +21 -0
  4. package/dist/chunk-46XC7ODX.mjs +72 -0
  5. package/dist/chunk-46XC7ODX.mjs.map +1 -0
  6. package/dist/chunk-4HK6C362.mjs +106 -0
  7. package/dist/chunk-4HK6C362.mjs.map +1 -0
  8. package/dist/chunk-6LAC5RA2.mjs +28 -0
  9. package/dist/chunk-6LAC5RA2.mjs.map +1 -0
  10. package/dist/chunk-6LRNF2VU.mjs +12 -0
  11. package/dist/chunk-6LRNF2VU.mjs.map +1 -0
  12. package/dist/chunk-7NSRDJ5C.mjs +3 -0
  13. package/dist/chunk-7NSRDJ5C.mjs.map +1 -0
  14. package/dist/chunk-BB6IP63P.mjs +29 -0
  15. package/dist/chunk-BB6IP63P.mjs.map +1 -0
  16. package/dist/chunk-BIPCPNHG.mjs +18 -0
  17. package/dist/chunk-BIPCPNHG.mjs.map +1 -0
  18. package/dist/chunk-BS6RR2DJ.mjs +25 -0
  19. package/dist/chunk-BS6RR2DJ.mjs.map +1 -0
  20. package/dist/chunk-DOMJCSI6.mjs +26 -0
  21. package/dist/chunk-DOMJCSI6.mjs.map +1 -0
  22. package/dist/chunk-E2YBQYWM.mjs +69 -0
  23. package/dist/chunk-E2YBQYWM.mjs.map +1 -0
  24. package/dist/chunk-E5BOIXYO.mjs +45 -0
  25. package/dist/chunk-E5BOIXYO.mjs.map +1 -0
  26. package/dist/chunk-H4VKQGVU.mjs +3 -0
  27. package/dist/chunk-H4VKQGVU.mjs.map +1 -0
  28. package/dist/chunk-I2AB5FK4.mjs +123 -0
  29. package/dist/chunk-I2AB5FK4.mjs.map +1 -0
  30. package/dist/chunk-IU3WTXLQ.mjs +3 -0
  31. package/dist/chunk-IU3WTXLQ.mjs.map +1 -0
  32. package/dist/chunk-KR7MH7XO.mjs +481 -0
  33. package/dist/chunk-KR7MH7XO.mjs.map +1 -0
  34. package/dist/chunk-KXJV37FS.mjs +33 -0
  35. package/dist/chunk-KXJV37FS.mjs.map +1 -0
  36. package/dist/chunk-MC6KTH4X.mjs +12 -0
  37. package/dist/chunk-MC6KTH4X.mjs.map +1 -0
  38. package/dist/chunk-MRXNTQOX.mjs +55 -0
  39. package/dist/chunk-MRXNTQOX.mjs.map +1 -0
  40. package/dist/chunk-N7KB3Z57.mjs +23 -0
  41. package/dist/chunk-N7KB3Z57.mjs.map +1 -0
  42. package/dist/chunk-QEXWZWJL.mjs +75 -0
  43. package/dist/chunk-QEXWZWJL.mjs.map +1 -0
  44. package/dist/chunk-RSONJDLO.mjs +28 -0
  45. package/dist/chunk-RSONJDLO.mjs.map +1 -0
  46. package/dist/chunk-SF56HSZW.mjs +48 -0
  47. package/dist/chunk-SF56HSZW.mjs.map +1 -0
  48. package/dist/chunk-TVTG3V4F.mjs +40 -0
  49. package/dist/chunk-TVTG3V4F.mjs.map +1 -0
  50. package/dist/chunk-U6NJWGTV.mjs +3 -0
  51. package/dist/chunk-U6NJWGTV.mjs.map +1 -0
  52. package/dist/chunk-V6QYUEJR.mjs +47 -0
  53. package/dist/chunk-V6QYUEJR.mjs.map +1 -0
  54. package/dist/chunk-VQNV2DHJ.mjs +142 -0
  55. package/dist/chunk-VQNV2DHJ.mjs.map +1 -0
  56. package/dist/chunk-VSNDSL6W.mjs +74 -0
  57. package/dist/chunk-VSNDSL6W.mjs.map +1 -0
  58. package/dist/chunk-XZFO2YEG.mjs +53 -0
  59. package/dist/chunk-XZFO2YEG.mjs.map +1 -0
  60. package/dist/components/chat-components/chat-list.d.ts +8 -0
  61. package/dist/components/chat-components/chat-list.mjs +13 -0
  62. package/dist/components/chat-components/chat-list.mjs.map +1 -0
  63. package/dist/components/chat-components/chat-message-actions.d.ts +8 -0
  64. package/dist/components/chat-components/chat-message-actions.mjs +8 -0
  65. package/dist/components/chat-components/chat-message-actions.mjs.map +1 -0
  66. package/dist/components/chat-components/chat-message.d.ts +8 -0
  67. package/dist/components/chat-components/chat-message.mjs +11 -0
  68. package/dist/components/chat-components/chat-message.mjs.map +1 -0
  69. package/dist/components/chat-components/chat-panel.d.ts +8 -0
  70. package/dist/components/chat-components/chat-panel.mjs +10 -0
  71. package/dist/components/chat-components/chat-panel.mjs.map +1 -0
  72. package/dist/components/chat-components/chat-scroll-anchor.d.ts +6 -0
  73. package/dist/components/chat-components/chat-scroll-anchor.mjs +5 -0
  74. package/dist/components/chat-components/chat-scroll-anchor.mjs.map +1 -0
  75. package/dist/components/chat-components/clear-history.d.ts +9 -0
  76. package/dist/components/chat-components/clear-history.mjs +81 -0
  77. package/dist/components/chat-components/clear-history.mjs.map +1 -0
  78. package/dist/components/chat-components/copilot-chat.d.ts +12 -0
  79. package/dist/components/chat-components/copilot-chat.mjs +22 -0
  80. package/dist/components/chat-components/copilot-chat.mjs.map +1 -0
  81. package/dist/components/chat-components/default-empty-screen.d.ts +8 -0
  82. package/dist/components/chat-components/default-empty-screen.mjs +8 -0
  83. package/dist/components/chat-components/default-empty-screen.mjs.map +1 -0
  84. package/dist/components/chat-components/external-link.d.ts +6 -0
  85. package/dist/components/chat-components/external-link.mjs +4 -0
  86. package/dist/components/chat-components/external-link.mjs.map +1 -0
  87. package/dist/components/chat-components/markdown.d.ts +6 -0
  88. package/dist/components/chat-components/markdown.mjs +4 -0
  89. package/dist/components/chat-components/markdown.mjs.map +1 -0
  90. package/dist/components/chat-components/prompt-form.d.ts +9 -0
  91. package/dist/components/chat-components/prompt-form.mjs +9 -0
  92. package/dist/components/chat-components/prompt-form.mjs.map +1 -0
  93. package/dist/components/chat-components/theme-toggle.d.ts +3 -0
  94. package/dist/components/chat-components/theme-toggle.mjs +36 -0
  95. package/dist/components/chat-components/theme-toggle.mjs.map +1 -0
  96. package/dist/components/chat-components/toaster.d.ts +1 -0
  97. package/dist/components/chat-components/toaster.mjs +4 -0
  98. package/dist/components/chat-components/toaster.mjs.map +1 -0
  99. package/dist/components/chat-components/ui/alert-dialog.d.ts +20 -0
  100. package/dist/components/chat-components/ui/alert-dialog.mjs +6 -0
  101. package/dist/components/chat-components/ui/alert-dialog.mjs.map +1 -0
  102. package/dist/components/chat-components/ui/badge.d.ts +12 -0
  103. package/dist/components/chat-components/ui/badge.mjs +31 -0
  104. package/dist/components/chat-components/ui/badge.mjs.map +1 -0
  105. package/dist/components/chat-components/ui/button.d.ts +14 -0
  106. package/dist/components/chat-components/ui/button.mjs +5 -0
  107. package/dist/components/chat-components/ui/button.mjs.map +1 -0
  108. package/dist/components/chat-components/ui/codeblock.d.ts +14 -0
  109. package/dist/components/chat-components/ui/codeblock.mjs +8 -0
  110. package/dist/components/chat-components/ui/codeblock.mjs.map +1 -0
  111. package/dist/components/chat-components/ui/dialog.d.ts +18 -0
  112. package/dist/components/chat-components/ui/dialog.mjs +119 -0
  113. package/dist/components/chat-components/ui/dialog.mjs.map +1 -0
  114. package/dist/components/chat-components/ui/dropdown-menu.d.ts +24 -0
  115. package/dist/components/chat-components/ui/dropdown-menu.mjs +84 -0
  116. package/dist/components/chat-components/ui/dropdown-menu.mjs.map +1 -0
  117. package/dist/components/chat-components/ui/icons.d.ts +33 -0
  118. package/dist/components/chat-components/ui/icons.mjs +5 -0
  119. package/dist/components/chat-components/ui/icons.mjs.map +1 -0
  120. package/dist/components/chat-components/ui/input.d.ts +7 -0
  121. package/dist/components/chat-components/ui/input.mjs +23 -0
  122. package/dist/components/chat-components/ui/input.mjs.map +1 -0
  123. package/dist/components/chat-components/ui/label.d.ts +8 -0
  124. package/dist/components/chat-components/ui/label.mjs +22 -0
  125. package/dist/components/chat-components/ui/label.mjs.map +1 -0
  126. package/dist/components/chat-components/ui/select.d.ts +13 -0
  127. package/dist/components/chat-components/ui/select.mjs +99 -0
  128. package/dist/components/chat-components/ui/select.mjs.map +1 -0
  129. package/dist/components/chat-components/ui/separator.d.ts +6 -0
  130. package/dist/components/chat-components/ui/separator.mjs +5 -0
  131. package/dist/components/chat-components/ui/separator.mjs.map +1 -0
  132. package/dist/components/chat-components/ui/sheet.d.ts +19 -0
  133. package/dist/components/chat-components/ui/sheet.mjs +109 -0
  134. package/dist/components/chat-components/ui/sheet.mjs.map +1 -0
  135. package/dist/components/chat-components/ui/switch.d.ts +6 -0
  136. package/dist/components/chat-components/ui/switch.mjs +27 -0
  137. package/dist/components/chat-components/ui/switch.mjs.map +1 -0
  138. package/dist/components/chat-components/ui/textarea.d.ts +7 -0
  139. package/dist/components/chat-components/ui/textarea.mjs +22 -0
  140. package/dist/components/chat-components/ui/textarea.mjs.map +1 -0
  141. package/dist/components/chat-components/ui/tooltip.d.ts +9 -0
  142. package/dist/components/chat-components/ui/tooltip.mjs +5 -0
  143. package/dist/components/chat-components/ui/tooltip.mjs.map +1 -0
  144. package/dist/components/index.d.ts +9 -0
  145. package/dist/components/index.mjs +26 -0
  146. package/dist/components/index.mjs.map +1 -0
  147. package/dist/components/sidebar/copilot-sidebar-ui-provider.d.ts +8 -0
  148. package/dist/components/sidebar/copilot-sidebar-ui-provider.mjs +25 -0
  149. package/dist/components/sidebar/copilot-sidebar-ui-provider.mjs.map +1 -0
  150. package/dist/components/sidebar/copilot-sidebar.d.ts +6 -0
  151. package/dist/components/sidebar/copilot-sidebar.mjs +23 -0
  152. package/dist/components/sidebar/copilot-sidebar.mjs.map +1 -0
  153. package/dist/components/sidebar/sidebar-context.d.ts +9 -0
  154. package/dist/components/sidebar/sidebar-context.mjs +4 -0
  155. package/dist/components/sidebar/sidebar-context.mjs.map +1 -0
  156. package/dist/context/index.d.ts +1 -0
  157. package/dist/context/index.mjs +3 -0
  158. package/dist/context/index.mjs.map +1 -0
  159. package/dist/hooks/index.d.ts +1 -0
  160. package/dist/hooks/index.mjs +3 -0
  161. package/dist/hooks/index.mjs.map +1 -0
  162. package/dist/hooks/use-at-bottom.d.ts +3 -0
  163. package/dist/hooks/use-at-bottom.mjs +4 -0
  164. package/dist/hooks/use-at-bottom.mjs.map +1 -0
  165. package/dist/hooks/use-copy-to-clipboard.d.ts +9 -0
  166. package/dist/hooks/use-copy-to-clipboard.mjs +4 -0
  167. package/dist/hooks/use-copy-to-clipboard.mjs.map +1 -0
  168. package/dist/hooks/use-enter-submit.d.ts +8 -0
  169. package/dist/hooks/use-enter-submit.mjs +4 -0
  170. package/dist/hooks/use-enter-submit.mjs.map +1 -0
  171. package/dist/index.css +1249 -1
  172. package/dist/index.css.map +1 -0
  173. package/dist/index.d.ts +9 -2
  174. package/dist/index.mjs +29 -0
  175. package/dist/index.mjs.map +1 -0
  176. package/dist/lib/utils.d.ts +8 -0
  177. package/dist/lib/utils.mjs +4 -0
  178. package/dist/lib/utils.mjs.map +1 -0
  179. package/dist/types/index.d.ts +1 -0
  180. package/dist/types/index.mjs +3 -0
  181. package/dist/types/index.mjs.map +1 -0
  182. package/dist/types/types.d.ts +16 -0
  183. package/dist/types/types.mjs +3 -0
  184. package/dist/types/types.mjs.map +1 -0
  185. package/package.json +39 -8
  186. package/src/components/chat-components/chat-list.tsx +32 -0
  187. package/src/components/chat-components/chat-message-actions.tsx +40 -0
  188. package/src/components/chat-components/chat-message.tsx +74 -0
  189. package/src/components/chat-components/chat-panel.tsx +77 -0
  190. package/src/components/chat-components/chat-scroll-anchor.tsx +29 -0
  191. package/src/components/chat-components/clear-history.tsx +73 -0
  192. package/src/components/chat-components/copilot-chat.tsx +56 -0
  193. package/src/components/chat-components/default-empty-screen.tsx +64 -0
  194. package/src/components/chat-components/external-link.tsx +29 -0
  195. package/src/components/chat-components/markdown.tsx +9 -0
  196. package/src/components/chat-components/prompt-form.tsx +91 -0
  197. package/src/components/chat-components/theme-toggle.tsx +31 -0
  198. package/src/components/chat-components/toaster.tsx +3 -0
  199. package/src/components/chat-components/ui/alert-dialog.tsx +150 -0
  200. package/src/components/chat-components/ui/badge.tsx +36 -0
  201. package/src/components/chat-components/ui/button.tsx +57 -0
  202. package/src/components/chat-components/ui/codeblock.tsx +142 -0
  203. package/src/components/chat-components/ui/dialog.tsx +128 -0
  204. package/src/components/chat-components/ui/dropdown-menu.tsx +128 -0
  205. package/src/components/chat-components/ui/icons.tsx +507 -0
  206. package/src/components/chat-components/ui/input.tsx +25 -0
  207. package/src/components/chat-components/ui/label.tsx +26 -0
  208. package/src/components/chat-components/ui/select.tsx +119 -0
  209. package/src/components/chat-components/ui/separator.tsx +31 -0
  210. package/src/components/chat-components/ui/sheet.tsx +122 -0
  211. package/src/components/chat-components/ui/switch.tsx +29 -0
  212. package/src/components/chat-components/ui/textarea.tsx +24 -0
  213. package/src/components/chat-components/ui/tooltip.tsx +30 -0
  214. package/src/components/index.ts +7 -0
  215. package/src/components/sidebar/copilot-sidebar-ui-provider.tsx +77 -0
  216. package/src/components/sidebar/copilot-sidebar.tsx +40 -0
  217. package/src/components/sidebar/sidebar-context.tsx +11 -0
  218. package/src/context/index.ts +1 -0
  219. package/src/hooks/index.ts +1 -0
  220. package/src/hooks/use-at-bottom.tsx +23 -0
  221. package/src/hooks/use-copy-to-clipboard.tsx +33 -0
  222. package/src/hooks/use-enter-submit.tsx +23 -0
  223. package/src/index.tsx +4 -3
  224. package/src/lib/utils.ts +43 -0
  225. package/src/types/index.ts +1 -0
  226. package/src/types/types.ts +18 -0
  227. package/tailwind.config.js +1 -1
  228. package/tsconfig.json +1 -1
  229. package/tsup.config.ts +3 -4
  230. package/dist/Button.d.ts +0 -3
  231. package/dist/Button.js +0 -10
  232. package/dist/Card.d.ts +0 -7
  233. package/dist/Card.js +0 -10
  234. package/dist/chunk-6OZR7L23.js +0 -7
  235. package/dist/chunk-FGO3LSHH.js +0 -7
  236. package/dist/index.js +0 -15
  237. package/src/Button.tsx +0 -16
  238. package/src/Card.tsx +0 -27
@@ -0,0 +1,53 @@
1
+ import { DefaultEmptyScreen } from './chunk-VSNDSL6W.mjs';
2
+ import { ChatList } from './chunk-BB6IP63P.mjs';
3
+ import { ChatPanel } from './chunk-E2YBQYWM.mjs';
4
+ import { ChatScrollAnchor } from './chunk-RSONJDLO.mjs';
5
+ import { useCopilotChat } from '@copilotkit/react-core';
6
+ import { jsxs, jsx } from 'react/jsx-runtime';
7
+
8
+ function CopilotChat({
9
+ id,
10
+ initialMessages,
11
+ makeSystemMessage,
12
+ EmptyScreen = DefaultEmptyScreen
13
+ }) {
14
+ const { visibleMessages, append, reload, stop, isLoading, input, setInput } = useCopilotChat({ id, initialMessages, makeSystemMessage });
15
+ return /* @__PURE__ */ jsxs("div", {
16
+ className: "w-full h-full flex flex-col overflow-hidden box-border items-start",
17
+ children: [
18
+ /* @__PURE__ */ jsx("div", {
19
+ className: "pt-5 px-5 overflow-y-auto overflow-x-hidden w-full flex-grow",
20
+ children: visibleMessages.length ? /* @__PURE__ */ jsxs("div", {
21
+ className: "pl-0 pr-6",
22
+ children: [
23
+ /* @__PURE__ */ jsx(ChatList, {
24
+ messages: visibleMessages
25
+ }),
26
+ /* @__PURE__ */ jsx(ChatScrollAnchor, {
27
+ trackVisibility: isLoading
28
+ })
29
+ ]
30
+ }) : /* @__PURE__ */ jsx(EmptyScreen, {
31
+ setInput
32
+ })
33
+ }),
34
+ /* @__PURE__ */ jsx("div", {
35
+ className: "flex-shrink-0 w-full",
36
+ children: /* @__PURE__ */ jsx(ChatPanel, {
37
+ id,
38
+ isLoading,
39
+ stop,
40
+ append,
41
+ reload,
42
+ messages: visibleMessages,
43
+ input,
44
+ setInput
45
+ })
46
+ })
47
+ ]
48
+ });
49
+ }
50
+
51
+ export { CopilotChat };
52
+ //# sourceMappingURL=out.js.map
53
+ //# sourceMappingURL=chunk-XZFO2YEG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/chat-components/copilot-chat.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,SAAS,sBAAsB;AAuBrB,SACE,KADF;AAhCV;AAmBO,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAChB,GAAqB;AACnB,QAAM,EAAE,iBAAiB,QAAQ,QAAQ,MAAM,WAAW,OAAO,SAAS,IACxE,eAAe,EAAE,IAAI,iBAAiB,kBAAkB,CAAC;AAE3D,SACE,qBAAC;AAAA,IAAI,WAAU;AAAA,IACb;AAAA,0BAAC;AAAA,QAAI,WAAU;AAAA,QACZ,0BAAgB,SACf,qBAAC;AAAA,UAAI,WAAU;AAAA,UACb;AAAA,gCAAC;AAAA,cAAS,UAAU;AAAA,aAAiB;AAAA,YACrC,oBAAC;AAAA,cAAiB,iBAAiB;AAAA,aAAW;AAAA;AAAA,SAChD,IAEA,oBAAC;AAAA,UAAY;AAAA,SAAoB;AAAA,OAErC;AAAA,MAEA,oBAAC;AAAA,QAAI,WAAU;AAAA,QACb,8BAAC;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,UAAU;AAAA,UACV;AAAA,UACA;AAAA,SACF;AAAA,OACF;AAAA;AAAA,GACF;AAEJ","sourcesContent":["\"use client\";\n\nimport React from \"react\";\n\nimport { ChatList } from \"./chat-list\";\nimport { ChatPanel } from \"./chat-panel\";\nimport { DefaultEmptyScreen, EmptyScreenProps } from \"./default-empty-screen\";\nimport { ChatScrollAnchor } from \"./chat-scroll-anchor\";\nimport { UseCopilotChatOptions } from \"@copilotkit/react-core\";\nimport { useCopilotChat } from \"@copilotkit/react-core\";\n\ninterface ChatComponentInjectionsProps {\n EmptyScreen?: React.FC<EmptyScreenProps>;\n}\n\ninterface CopilotChatProps\n extends UseCopilotChatOptions,\n ChatComponentInjectionsProps {}\n\nexport function CopilotChat({\n id,\n initialMessages,\n makeSystemMessage,\n EmptyScreen = DefaultEmptyScreen,\n}: CopilotChatProps) {\n const { visibleMessages, append, reload, stop, isLoading, input, setInput } =\n useCopilotChat({ id, initialMessages, makeSystemMessage });\n\n return (\n <div className=\"w-full h-full flex flex-col overflow-hidden box-border items-start\">\n <div className=\"pt-5 px-5 overflow-y-auto overflow-x-hidden w-full flex-grow\">\n {visibleMessages.length ? (\n <div className=\"pl-0 pr-6\">\n <ChatList messages={visibleMessages} />\n <ChatScrollAnchor trackVisibility={isLoading} />\n </div>\n ) : (\n <EmptyScreen setInput={setInput} />\n )}\n </div>\n\n <div className=\"flex-shrink-0 w-full\">\n <ChatPanel\n id={id}\n isLoading={isLoading}\n stop={stop}\n append={append}\n reload={reload}\n messages={visibleMessages}\n input={input}\n setInput={setInput}\n />\n </div>\n </div>\n );\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Message } from 'ai';
2
+
3
+ interface ChatList {
4
+ messages: Message[];
5
+ }
6
+ declare function ChatList({ messages }: ChatList): JSX.Element | null;
7
+
8
+ export { ChatList };
@@ -0,0 +1,13 @@
1
+ export { ChatList } from '../../chunk-BB6IP63P.mjs';
2
+ import '../../chunk-DOMJCSI6.mjs';
3
+ import '../../chunk-QEXWZWJL.mjs';
4
+ import '../../chunk-VQNV2DHJ.mjs';
5
+ import '../../chunk-6LRNF2VU.mjs';
6
+ import '../../chunk-E5BOIXYO.mjs';
7
+ import '../../chunk-V6QYUEJR.mjs';
8
+ import '../../chunk-KR7MH7XO.mjs';
9
+ import '../../chunk-6LAC5RA2.mjs';
10
+ import '../../chunk-TVTG3V4F.mjs';
11
+ import '../../chunk-MRXNTQOX.mjs';
12
+ //# sourceMappingURL=out.js.map
13
+ //# sourceMappingURL=chat-list.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Message } from 'ai';
2
+
3
+ interface ChatMessageActionsProps extends React.ComponentProps<"div"> {
4
+ message: Message;
5
+ }
6
+ declare function ChatMessageActions({ message, className, ...props }: ChatMessageActionsProps): JSX.Element;
7
+
8
+ export { ChatMessageActions };
@@ -0,0 +1,8 @@
1
+ export { ChatMessageActions } from '../../chunk-E5BOIXYO.mjs';
2
+ import '../../chunk-V6QYUEJR.mjs';
3
+ import '../../chunk-KR7MH7XO.mjs';
4
+ import '../../chunk-6LAC5RA2.mjs';
5
+ import '../../chunk-TVTG3V4F.mjs';
6
+ import '../../chunk-MRXNTQOX.mjs';
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=chat-message-actions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Message } from 'ai';
2
+
3
+ interface ChatMessageProps {
4
+ message: Message;
5
+ }
6
+ declare function ChatMessage({ message, ...props }: ChatMessageProps): JSX.Element;
7
+
8
+ export { ChatMessage, ChatMessageProps };
@@ -0,0 +1,11 @@
1
+ export { ChatMessage } from '../../chunk-QEXWZWJL.mjs';
2
+ import '../../chunk-VQNV2DHJ.mjs';
3
+ import '../../chunk-6LRNF2VU.mjs';
4
+ import '../../chunk-E5BOIXYO.mjs';
5
+ import '../../chunk-V6QYUEJR.mjs';
6
+ import '../../chunk-KR7MH7XO.mjs';
7
+ import '../../chunk-6LAC5RA2.mjs';
8
+ import '../../chunk-TVTG3V4F.mjs';
9
+ import '../../chunk-MRXNTQOX.mjs';
10
+ //# sourceMappingURL=out.js.map
11
+ //# sourceMappingURL=chat-message.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { UseChatHelpers } from 'ai/react';
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 };
@@ -0,0 +1,10 @@
1
+ export { ChatPanel } from '../../chunk-E2YBQYWM.mjs';
2
+ import '../../chunk-4HK6C362.mjs';
3
+ import '../../chunk-BS6RR2DJ.mjs';
4
+ import '../../chunk-V6QYUEJR.mjs';
5
+ import '../../chunk-KR7MH7XO.mjs';
6
+ import '../../chunk-BIPCPNHG.mjs';
7
+ import '../../chunk-TVTG3V4F.mjs';
8
+ import '../../chunk-MRXNTQOX.mjs';
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=chat-panel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ interface ChatScrollAnchorProps {
2
+ trackVisibility?: boolean;
3
+ }
4
+ declare function ChatScrollAnchor({ trackVisibility }: ChatScrollAnchorProps): JSX.Element;
5
+
6
+ export { ChatScrollAnchor };
@@ -0,0 +1,5 @@
1
+ export { ChatScrollAnchor } from '../../chunk-RSONJDLO.mjs';
2
+ import '../../chunk-N7KB3Z57.mjs';
3
+ import '../../chunk-MRXNTQOX.mjs';
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=chat-scroll-anchor.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { ServerActionResult } from '../../types/types.js';
2
+ import 'ai';
3
+
4
+ interface ClearHistoryProps {
5
+ clearChats: () => ServerActionResult<void>;
6
+ }
7
+ declare function ClearHistory({ clearChats }: ClearHistoryProps): JSX.Element;
8
+
9
+ export { ClearHistory };
@@ -0,0 +1,81 @@
1
+ import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction } from '../../chunk-I2AB5FK4.mjs';
2
+ import { Button } from '../../chunk-V6QYUEJR.mjs';
3
+ import { IconSpinner } from '../../chunk-KR7MH7XO.mjs';
4
+ import '../../chunk-TVTG3V4F.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, {
16
+ open,
17
+ onOpenChange: setOpen,
18
+ children: [
19
+ /* @__PURE__ */ jsx(AlertDialogTrigger, {
20
+ asChild: true,
21
+ children: /* @__PURE__ */ jsxs(Button, {
22
+ variant: "ghost",
23
+ disabled: isPending,
24
+ children: [
25
+ isPending && /* @__PURE__ */ jsx(IconSpinner, {
26
+ className: "mr-2"
27
+ }),
28
+ "Clear history"
29
+ ]
30
+ })
31
+ }),
32
+ /* @__PURE__ */ jsxs(AlertDialogContent, {
33
+ children: [
34
+ /* @__PURE__ */ jsxs(AlertDialogHeader, {
35
+ children: [
36
+ /* @__PURE__ */ jsx(AlertDialogTitle, {
37
+ children: "Are you absolutely sure?"
38
+ }),
39
+ /* @__PURE__ */ jsx(AlertDialogDescription, {
40
+ children: "This will permanently delete your chat history and remove your data from our servers."
41
+ })
42
+ ]
43
+ }),
44
+ /* @__PURE__ */ jsxs(AlertDialogFooter, {
45
+ children: [
46
+ /* @__PURE__ */ jsx(AlertDialogCancel, {
47
+ disabled: isPending,
48
+ children: "Cancel"
49
+ }),
50
+ /* @__PURE__ */ jsxs(AlertDialogAction, {
51
+ disabled: isPending,
52
+ onClick: (event) => {
53
+ event.preventDefault();
54
+ startTransition(() => __async(this, null, function* () {
55
+ const result = yield clearChats();
56
+ if (result && "error" in result) {
57
+ toast.error(result.error);
58
+ return;
59
+ }
60
+ setOpen(false);
61
+ router.push("/");
62
+ }));
63
+ },
64
+ children: [
65
+ isPending && /* @__PURE__ */ jsx(IconSpinner, {
66
+ className: "mr-2 animate-spin"
67
+ }),
68
+ "Delete"
69
+ ]
70
+ })
71
+ ]
72
+ })
73
+ ]
74
+ })
75
+ ]
76
+ });
77
+ }
78
+
79
+ export { ClearHistory };
80
+ //# sourceMappingURL=out.js.map
81
+ //# sourceMappingURL=clear-history.mjs.map
@@ -0,0 +1 @@
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;AAjCR;AAyBO,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;AAAA,IAAY;AAAA,IAAY,cAAc;AAAA,IACrC;AAAA,0BAAC;AAAA,QAAmB,SAAO;AAAA,QACzB,+BAAC;AAAA,UAAO,SAAQ;AAAA,UAAQ,UAAU;AAAA,UAC/B;AAAA,yBAAa,oBAAC;AAAA,cAAY,WAAU;AAAA,aAAO;AAAA,YAAG;AAAA;AAAA,SAEjD;AAAA,OACF;AAAA,MACA,qBAAC;AAAA,QACC;AAAA,+BAAC;AAAA,YACC;AAAA,kCAAC;AAAA,gBAAiB;AAAA,eAAwB;AAAA,cAC1C,oBAAC;AAAA,gBAAuB;AAAA,eAGxB;AAAA;AAAA,WACF;AAAA,UACA,qBAAC;AAAA,YACC;AAAA,kCAAC;AAAA,gBAAkB,UAAU;AAAA,gBAAW;AAAA,eAAM;AAAA,cAC9C,qBAAC;AAAA,gBACC,UAAU;AAAA,gBACV,SAAS,CAAC,UAAe;AACvB,wBAAM,eAAe;AACrB,kCAAgB,MAAY;AAC1B,0BAAM,SAAS,MAAM,WAAW;AAEhC,wBAAI,UAAU,WAAW,QAAQ;AAC/B,4BAAM,MAAM,OAAO,KAAK;AACxB;AAAA,oBACF;AAEA,4BAAQ,KAAK;AACb,2BAAO,KAAK,GAAG;AAAA,kBACjB,EAAC;AAAA,gBACH;AAAA,gBAEC;AAAA,+BAAa,oBAAC;AAAA,oBAAY,WAAU;AAAA,mBAAoB;AAAA,kBAAG;AAAA;AAAA,eAE9D;AAAA;AAAA,WACF;AAAA;AAAA,OACF;AAAA;AAAA,GACF;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\n 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"]}
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,22 @@
1
+ export { CopilotChat } from '../../chunk-XZFO2YEG.mjs';
2
+ import '../../chunk-VSNDSL6W.mjs';
3
+ import '../../chunk-KXJV37FS.mjs';
4
+ import '../../chunk-BB6IP63P.mjs';
5
+ import '../../chunk-DOMJCSI6.mjs';
6
+ import '../../chunk-QEXWZWJL.mjs';
7
+ import '../../chunk-VQNV2DHJ.mjs';
8
+ import '../../chunk-6LRNF2VU.mjs';
9
+ import '../../chunk-E5BOIXYO.mjs';
10
+ import '../../chunk-E2YBQYWM.mjs';
11
+ import '../../chunk-4HK6C362.mjs';
12
+ import '../../chunk-BS6RR2DJ.mjs';
13
+ import '../../chunk-RSONJDLO.mjs';
14
+ import '../../chunk-V6QYUEJR.mjs';
15
+ import '../../chunk-KR7MH7XO.mjs';
16
+ import '../../chunk-N7KB3Z57.mjs';
17
+ import '../../chunk-6LAC5RA2.mjs';
18
+ import '../../chunk-BIPCPNHG.mjs';
19
+ import '../../chunk-TVTG3V4F.mjs';
20
+ import '../../chunk-MRXNTQOX.mjs';
21
+ //# sourceMappingURL=out.js.map
22
+ //# sourceMappingURL=copilot-chat.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,8 @@
1
+ export { DefaultEmptyScreen } from '../../chunk-VSNDSL6W.mjs';
2
+ import '../../chunk-KXJV37FS.mjs';
3
+ import '../../chunk-V6QYUEJR.mjs';
4
+ import '../../chunk-KR7MH7XO.mjs';
5
+ import '../../chunk-TVTG3V4F.mjs';
6
+ import '../../chunk-MRXNTQOX.mjs';
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=default-empty-screen.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ declare function ExternalLink({ href, children, }: {
2
+ href: string;
3
+ children: React.ReactNode;
4
+ }): JSX.Element;
5
+
6
+ export { ExternalLink };
@@ -0,0 +1,4 @@
1
+ export { ExternalLink } from '../../chunk-KXJV37FS.mjs';
2
+ import '../../chunk-MRXNTQOX.mjs';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=external-link.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { Options } from 'react-markdown';
3
+
4
+ declare const MemoizedReactMarkdown: FC<Options>;
5
+
6
+ export { MemoizedReactMarkdown };
@@ -0,0 +1,4 @@
1
+ export { MemoizedReactMarkdown } from '../../chunk-6LRNF2VU.mjs';
2
+ import '../../chunk-MRXNTQOX.mjs';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=markdown.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { UseChatHelpers } from 'ai/react';
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 };
@@ -0,0 +1,9 @@
1
+ export { PromptForm } from '../../chunk-4HK6C362.mjs';
2
+ import '../../chunk-BS6RR2DJ.mjs';
3
+ import '../../chunk-V6QYUEJR.mjs';
4
+ import '../../chunk-KR7MH7XO.mjs';
5
+ import '../../chunk-BIPCPNHG.mjs';
6
+ import '../../chunk-TVTG3V4F.mjs';
7
+ import '../../chunk-MRXNTQOX.mjs';
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=prompt-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare function ThemeToggle(): JSX.Element;
2
+
3
+ export { ThemeToggle };
@@ -0,0 +1,36 @@
1
+ import { Button } from '../../chunk-V6QYUEJR.mjs';
2
+ import { IconMoon, IconSun } from '../../chunk-KR7MH7XO.mjs';
3
+ import '../../chunk-TVTG3V4F.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(Button, {
13
+ variant: "ghost",
14
+ size: "icon",
15
+ onClick: () => {
16
+ startTransition(() => {
17
+ setTheme(theme === "light" ? "dark" : "light");
18
+ });
19
+ },
20
+ children: [
21
+ !theme ? null : theme === "dark" ? /* @__PURE__ */ jsx(IconMoon, {
22
+ className: "transition-all"
23
+ }) : /* @__PURE__ */ jsx(IconSun, {
24
+ className: "transition-all"
25
+ }),
26
+ /* @__PURE__ */ jsx("span", {
27
+ className: "sr-only",
28
+ children: "Toggle theme"
29
+ })
30
+ ]
31
+ });
32
+ }
33
+
34
+ export { ThemeToggle };
35
+ //# sourceMappingURL=out.js.map
36
+ //# sourceMappingURL=theme-toggle.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/chat-components/theme-toggle.tsx"],"names":[],"mappings":";;;;;;;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,gBAAgB;AAUrB,SAUI,KAVJ;AAbJ;AAQO,SAAS,cAAc;AAC5B,QAAM,EAAE,UAAU,MAAM,IAAI,SAAS;AACrC,QAAM,CAAC,GAAG,eAAe,IAAU,oBAAc;AAEjD,SACE,qBAAC;AAAA,IACC,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,SAAS,MAAM;AACb,sBAAgB,MAAM;AACpB,iBAAS,UAAU,UAAU,SAAS,OAAO;AAAA,MAC/C,CAAC;AAAA,IACH;AAAA,IAEC;AAAA,OAAC,QAAQ,OAAO,UAAU,SACzB,oBAAC;AAAA,QAAS,WAAU;AAAA,OAAiB,IAErC,oBAAC;AAAA,QAAQ,WAAU;AAAA,OAAiB;AAAA,MAEtC,oBAAC;AAAA,QAAK,WAAU;AAAA,QAAU;AAAA,OAAY;AAAA;AAAA,GACxC;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"]}
@@ -0,0 +1 @@
1
+ export { Toaster } from 'react-hot-toast';
@@ -0,0 +1,4 @@
1
+ import '../../chunk-MRXNTQOX.mjs';
2
+ export { Toaster } from 'react-hot-toast';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=toaster.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/chat-components/toaster.tsx"],"names":[],"mappings":";;;AAEA,SAAS,eAAe;AAFxB","sourcesContent":["\"use client\";\n\nexport { Toaster } from \"react-hot-toast\";\n"]}
@@ -0,0 +1,20 @@
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 };
@@ -0,0 +1,6 @@
1
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '../../../chunk-I2AB5FK4.mjs';
2
+ import '../../../chunk-V6QYUEJR.mjs';
3
+ import '../../../chunk-TVTG3V4F.mjs';
4
+ import '../../../chunk-MRXNTQOX.mjs';
5
+ //# sourceMappingURL=out.js.map
6
+ //# sourceMappingURL=alert-dialog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,31 @@
1
+ import { cn } from '../../../chunk-TVTG3V4F.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({
25
+ className: cn(badgeVariants({ variant }), className)
26
+ }, props));
27
+ }
28
+
29
+ export { Badge, badgeVariants };
30
+ //# sourceMappingURL=out.js.map
31
+ //# sourceMappingURL=badge.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/chat-components/ui/badge.tsx"],"names":[],"mappings":";;;;;;;;;AACA,SAAS,WAA8B;AA8BnC;AA1BJ,IAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,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,QA7B5B,IA6Be,IAAyB,kBAAzB,IAAyB,CAAvB,aAAW;AAC1B,SACE,oBAAC;AAAA,IAAI,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;AAAA,KAAO,MAAO;AAE1E","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:\n \"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 (\n <div className={cn(badgeVariants({ variant }), className)} {...props} />\n );\n}\n\nexport { Badge, badgeVariants };\n"]}
@@ -0,0 +1,14 @@
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 };
@@ -0,0 +1,5 @@
1
+ export { Button, buttonVariants } from '../../../chunk-V6QYUEJR.mjs';
2
+ import '../../../chunk-TVTG3V4F.mjs';
3
+ import '../../../chunk-MRXNTQOX.mjs';
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=button.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
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 };
@@ -0,0 +1,8 @@
1
+ export { CodeBlock, generateRandomString, programmingLanguages } from '../../../chunk-VQNV2DHJ.mjs';
2
+ import '../../../chunk-V6QYUEJR.mjs';
3
+ import '../../../chunk-KR7MH7XO.mjs';
4
+ import '../../../chunk-6LAC5RA2.mjs';
5
+ import '../../../chunk-TVTG3V4F.mjs';
6
+ import '../../../chunk-MRXNTQOX.mjs';
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=codeblock.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}