@docyrus/rn-assistant 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/README.md +477 -0
  2. package/dist/commonjs/components/agent-selector/agent-selector.js +300 -0
  3. package/dist/commonjs/components/agent-selector/agent-selector.js.map +1 -0
  4. package/dist/commonjs/components/agent-selector/index.js +17 -0
  5. package/dist/commonjs/components/agent-selector/index.js.map +1 -0
  6. package/dist/commonjs/components/assistant-animations/assistant-animations.js +169 -0
  7. package/dist/commonjs/components/assistant-animations/assistant-animations.js.map +1 -0
  8. package/dist/commonjs/components/assistant-animations/index.js +17 -0
  9. package/dist/commonjs/components/assistant-animations/index.js.map +1 -0
  10. package/dist/commonjs/components/assistant-screen/assistant-screen.js +809 -0
  11. package/dist/commonjs/components/assistant-screen/assistant-screen.js.map +1 -0
  12. package/dist/commonjs/components/assistant-screen/index.js +17 -0
  13. package/dist/commonjs/components/assistant-screen/index.js.map +1 -0
  14. package/dist/commonjs/components/index.js +116 -0
  15. package/dist/commonjs/components/index.js.map +1 -0
  16. package/dist/commonjs/components/message-parts/index.js +13 -0
  17. package/dist/commonjs/components/message-parts/index.js.map +1 -0
  18. package/dist/commonjs/components/message-parts/message-parts.js +209 -0
  19. package/dist/commonjs/components/message-parts/message-parts.js.map +1 -0
  20. package/dist/commonjs/components/new-chat/index.js +17 -0
  21. package/dist/commonjs/components/new-chat/index.js.map +1 -0
  22. package/dist/commonjs/components/new-chat/new-chat.js +100 -0
  23. package/dist/commonjs/components/new-chat/new-chat.js.map +1 -0
  24. package/dist/commonjs/components/prompt-input/attachment-picker.js +341 -0
  25. package/dist/commonjs/components/prompt-input/attachment-picker.js.map +1 -0
  26. package/dist/commonjs/components/prompt-input/attachment-preview.js +229 -0
  27. package/dist/commonjs/components/prompt-input/attachment-preview.js.map +1 -0
  28. package/dist/commonjs/components/prompt-input/index.js +41 -0
  29. package/dist/commonjs/components/prompt-input/index.js.map +1 -0
  30. package/dist/commonjs/components/prompt-input/prompt-input.js +288 -0
  31. package/dist/commonjs/components/prompt-input/prompt-input.js.map +1 -0
  32. package/dist/commonjs/components/prompt-input/provider-selector.js +542 -0
  33. package/dist/commonjs/components/prompt-input/provider-selector.js.map +1 -0
  34. package/dist/commonjs/components/prompt-input/reasoning-level-selector.js +350 -0
  35. package/dist/commonjs/components/prompt-input/reasoning-level-selector.js.map +1 -0
  36. package/dist/commonjs/components/prompt-input/voice-recorder.js +260 -0
  37. package/dist/commonjs/components/prompt-input/voice-recorder.js.map +1 -0
  38. package/dist/commonjs/components/sessions-list/index.js +17 -0
  39. package/dist/commonjs/components/sessions-list/index.js.map +1 -0
  40. package/dist/commonjs/components/sessions-list/sessions-list.js +820 -0
  41. package/dist/commonjs/components/sessions-list/sessions-list.js.map +1 -0
  42. package/dist/commonjs/hooks/index.js +34 -0
  43. package/dist/commonjs/hooks/index.js.map +1 -0
  44. package/dist/commonjs/hooks/use-agent-models.js +104 -0
  45. package/dist/commonjs/hooks/use-agent-models.js.map +1 -0
  46. package/dist/commonjs/hooks/use-assistant.js +402 -0
  47. package/dist/commonjs/hooks/use-assistant.js.map +1 -0
  48. package/dist/commonjs/hooks/use-attachment-picker.js +308 -0
  49. package/dist/commonjs/hooks/use-attachment-picker.js.map +1 -0
  50. package/dist/commonjs/hooks/use-voice-recorder.js +217 -0
  51. package/dist/commonjs/hooks/use-voice-recorder.js.map +1 -0
  52. package/dist/commonjs/index.js +112 -0
  53. package/dist/commonjs/index.js.map +1 -0
  54. package/dist/commonjs/package.json +1 -0
  55. package/dist/commonjs/theme/assistant-theme.js +105 -0
  56. package/dist/commonjs/theme/assistant-theme.js.map +1 -0
  57. package/dist/commonjs/theme/index.js +19 -0
  58. package/dist/commonjs/theme/index.js.map +1 -0
  59. package/dist/commonjs/types/index.js +2 -0
  60. package/dist/commonjs/types/index.js.map +1 -0
  61. package/dist/commonjs/ui/action-sheet.js +348 -0
  62. package/dist/commonjs/ui/action-sheet.js.map +1 -0
  63. package/dist/commonjs/ui/alert-dialog.js +134 -0
  64. package/dist/commonjs/ui/alert-dialog.js.map +1 -0
  65. package/dist/commonjs/ui/docyrus-brand-mark.js +52 -0
  66. package/dist/commonjs/ui/docyrus-brand-mark.js.map +1 -0
  67. package/dist/commonjs/ui/docyrus-icon.js +298 -0
  68. package/dist/commonjs/ui/docyrus-icon.js.map +1 -0
  69. package/dist/commonjs/ui/index.js +34 -0
  70. package/dist/commonjs/ui/index.js.map +1 -0
  71. package/dist/commonjs/utils/api-client.js +99 -0
  72. package/dist/commonjs/utils/api-client.js.map +1 -0
  73. package/dist/commonjs/utils/default-api-config.js +195 -0
  74. package/dist/commonjs/utils/default-api-config.js.map +1 -0
  75. package/dist/commonjs/utils/index.js +39 -0
  76. package/dist/commonjs/utils/index.js.map +1 -0
  77. package/dist/commonjs/utils/resolve-api-headers.js +16 -0
  78. package/dist/commonjs/utils/resolve-api-headers.js.map +1 -0
  79. package/dist/module/components/agent-selector/agent-selector.js +296 -0
  80. package/dist/module/components/agent-selector/agent-selector.js.map +1 -0
  81. package/dist/module/components/agent-selector/index.js +4 -0
  82. package/dist/module/components/agent-selector/index.js.map +1 -0
  83. package/dist/module/components/assistant-animations/assistant-animations.js +164 -0
  84. package/dist/module/components/assistant-animations/assistant-animations.js.map +1 -0
  85. package/dist/module/components/assistant-animations/index.js +4 -0
  86. package/dist/module/components/assistant-animations/index.js.map +1 -0
  87. package/dist/module/components/assistant-screen/assistant-screen.js +801 -0
  88. package/dist/module/components/assistant-screen/assistant-screen.js.map +1 -0
  89. package/dist/module/components/assistant-screen/index.js +4 -0
  90. package/dist/module/components/assistant-screen/index.js.map +1 -0
  91. package/dist/module/components/index.js +23 -0
  92. package/dist/module/components/index.js.map +1 -0
  93. package/dist/module/components/message-parts/index.js +4 -0
  94. package/dist/module/components/message-parts/index.js.map +1 -0
  95. package/dist/module/components/message-parts/message-parts.js +205 -0
  96. package/dist/module/components/message-parts/message-parts.js.map +1 -0
  97. package/dist/module/components/new-chat/index.js +4 -0
  98. package/dist/module/components/new-chat/index.js.map +1 -0
  99. package/dist/module/components/new-chat/new-chat.js +96 -0
  100. package/dist/module/components/new-chat/new-chat.js.map +1 -0
  101. package/dist/module/components/prompt-input/attachment-picker.js +337 -0
  102. package/dist/module/components/prompt-input/attachment-picker.js.map +1 -0
  103. package/dist/module/components/prompt-input/attachment-preview.js +225 -0
  104. package/dist/module/components/prompt-input/attachment-preview.js.map +1 -0
  105. package/dist/module/components/prompt-input/index.js +15 -0
  106. package/dist/module/components/prompt-input/index.js.map +1 -0
  107. package/dist/module/components/prompt-input/prompt-input.js +284 -0
  108. package/dist/module/components/prompt-input/prompt-input.js.map +1 -0
  109. package/dist/module/components/prompt-input/provider-selector.js +538 -0
  110. package/dist/module/components/prompt-input/provider-selector.js.map +1 -0
  111. package/dist/module/components/prompt-input/reasoning-level-selector.js +346 -0
  112. package/dist/module/components/prompt-input/reasoning-level-selector.js.map +1 -0
  113. package/dist/module/components/prompt-input/voice-recorder.js +256 -0
  114. package/dist/module/components/prompt-input/voice-recorder.js.map +1 -0
  115. package/dist/module/components/sessions-list/index.js +4 -0
  116. package/dist/module/components/sessions-list/index.js.map +1 -0
  117. package/dist/module/components/sessions-list/sessions-list.js +816 -0
  118. package/dist/module/components/sessions-list/sessions-list.js.map +1 -0
  119. package/dist/module/hooks/index.js +18 -0
  120. package/dist/module/hooks/index.js.map +1 -0
  121. package/dist/module/hooks/use-agent-models.js +100 -0
  122. package/dist/module/hooks/use-agent-models.js.map +1 -0
  123. package/dist/module/hooks/use-assistant.js +398 -0
  124. package/dist/module/hooks/use-assistant.js.map +1 -0
  125. package/dist/module/hooks/use-attachment-picker.js +303 -0
  126. package/dist/module/hooks/use-attachment-picker.js.map +1 -0
  127. package/dist/module/hooks/use-voice-recorder.js +214 -0
  128. package/dist/module/hooks/use-voice-recorder.js.map +1 -0
  129. package/dist/module/index.js +59 -0
  130. package/dist/module/index.js.map +1 -0
  131. package/dist/module/package.json +1 -0
  132. package/dist/module/theme/assistant-theme.js +100 -0
  133. package/dist/module/theme/assistant-theme.js.map +1 -0
  134. package/dist/module/theme/index.js +4 -0
  135. package/dist/module/theme/index.js.map +1 -0
  136. package/dist/module/types/index.js +2 -0
  137. package/dist/module/types/index.js.map +1 -0
  138. package/dist/module/ui/action-sheet.js +344 -0
  139. package/dist/module/ui/action-sheet.js.map +1 -0
  140. package/dist/module/ui/alert-dialog.js +130 -0
  141. package/dist/module/ui/alert-dialog.js.map +1 -0
  142. package/dist/module/ui/docyrus-brand-mark.js +48 -0
  143. package/dist/module/ui/docyrus-brand-mark.js.map +1 -0
  144. package/dist/module/ui/docyrus-icon.js +294 -0
  145. package/dist/module/ui/docyrus-icon.js.map +1 -0
  146. package/dist/module/ui/index.js +7 -0
  147. package/dist/module/ui/index.js.map +1 -0
  148. package/dist/module/utils/api-client.js +95 -0
  149. package/dist/module/utils/api-client.js.map +1 -0
  150. package/dist/module/utils/default-api-config.js +190 -0
  151. package/dist/module/utils/default-api-config.js.map +1 -0
  152. package/dist/module/utils/index.js +12 -0
  153. package/dist/module/utils/index.js.map +1 -0
  154. package/dist/module/utils/resolve-api-headers.js +12 -0
  155. package/dist/module/utils/resolve-api-headers.js.map +1 -0
  156. package/dist/typescript/commonjs/eslint.config.d.mts +4 -0
  157. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  158. package/dist/typescript/commonjs/package.json +1 -0
  159. package/dist/typescript/commonjs/src/components/agent-selector/agent-selector.d.ts +49 -0
  160. package/dist/typescript/commonjs/src/components/agent-selector/agent-selector.d.ts.map +1 -0
  161. package/dist/typescript/commonjs/src/components/agent-selector/index.d.ts +2 -0
  162. package/dist/typescript/commonjs/src/components/agent-selector/index.d.ts.map +1 -0
  163. package/dist/typescript/commonjs/src/components/assistant-animations/assistant-animations.d.ts +8 -0
  164. package/dist/typescript/commonjs/src/components/assistant-animations/assistant-animations.d.ts.map +1 -0
  165. package/dist/typescript/commonjs/src/components/assistant-animations/index.d.ts +2 -0
  166. package/dist/typescript/commonjs/src/components/assistant-animations/index.d.ts.map +1 -0
  167. package/dist/typescript/commonjs/src/components/assistant-screen/assistant-screen.d.ts +122 -0
  168. package/dist/typescript/commonjs/src/components/assistant-screen/assistant-screen.d.ts.map +1 -0
  169. package/dist/typescript/commonjs/src/components/assistant-screen/index.d.ts +2 -0
  170. package/dist/typescript/commonjs/src/components/assistant-screen/index.d.ts.map +1 -0
  171. package/dist/typescript/commonjs/src/components/index.d.ts +11 -0
  172. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  173. package/dist/typescript/commonjs/src/components/message-parts/index.d.ts +2 -0
  174. package/dist/typescript/commonjs/src/components/message-parts/index.d.ts.map +1 -0
  175. package/dist/typescript/commonjs/src/components/message-parts/message-parts.d.ts +22 -0
  176. package/dist/typescript/commonjs/src/components/message-parts/message-parts.d.ts.map +1 -0
  177. package/dist/typescript/commonjs/src/components/new-chat/index.d.ts +2 -0
  178. package/dist/typescript/commonjs/src/components/new-chat/index.d.ts.map +1 -0
  179. package/dist/typescript/commonjs/src/components/new-chat/new-chat.d.ts +34 -0
  180. package/dist/typescript/commonjs/src/components/new-chat/new-chat.d.ts.map +1 -0
  181. package/dist/typescript/commonjs/src/components/prompt-input/attachment-picker.d.ts +53 -0
  182. package/dist/typescript/commonjs/src/components/prompt-input/attachment-picker.d.ts.map +1 -0
  183. package/dist/typescript/commonjs/src/components/prompt-input/attachment-preview.d.ts +42 -0
  184. package/dist/typescript/commonjs/src/components/prompt-input/attachment-preview.d.ts.map +1 -0
  185. package/dist/typescript/commonjs/src/components/prompt-input/index.d.ts +9 -0
  186. package/dist/typescript/commonjs/src/components/prompt-input/index.d.ts.map +1 -0
  187. package/dist/typescript/commonjs/src/components/prompt-input/prompt-input.d.ts +139 -0
  188. package/dist/typescript/commonjs/src/components/prompt-input/prompt-input.d.ts.map +1 -0
  189. package/dist/typescript/commonjs/src/components/prompt-input/provider-selector.d.ts +11 -0
  190. package/dist/typescript/commonjs/src/components/prompt-input/provider-selector.d.ts.map +1 -0
  191. package/dist/typescript/commonjs/src/components/prompt-input/reasoning-level-selector.d.ts +35 -0
  192. package/dist/typescript/commonjs/src/components/prompt-input/reasoning-level-selector.d.ts.map +1 -0
  193. package/dist/typescript/commonjs/src/components/prompt-input/voice-recorder.d.ts +48 -0
  194. package/dist/typescript/commonjs/src/components/prompt-input/voice-recorder.d.ts.map +1 -0
  195. package/dist/typescript/commonjs/src/components/sessions-list/index.d.ts +2 -0
  196. package/dist/typescript/commonjs/src/components/sessions-list/index.d.ts.map +1 -0
  197. package/dist/typescript/commonjs/src/components/sessions-list/sessions-list.d.ts +59 -0
  198. package/dist/typescript/commonjs/src/components/sessions-list/sessions-list.d.ts.map +1 -0
  199. package/dist/typescript/commonjs/src/hooks/index.d.ts +8 -0
  200. package/dist/typescript/commonjs/src/hooks/index.d.ts.map +1 -0
  201. package/dist/typescript/commonjs/src/hooks/use-agent-models.d.ts +68 -0
  202. package/dist/typescript/commonjs/src/hooks/use-agent-models.d.ts.map +1 -0
  203. package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts +55 -0
  204. package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts.map +1 -0
  205. package/dist/typescript/commonjs/src/hooks/use-attachment-picker.d.ts +99 -0
  206. package/dist/typescript/commonjs/src/hooks/use-attachment-picker.d.ts.map +1 -0
  207. package/dist/typescript/commonjs/src/hooks/use-voice-recorder.d.ts +101 -0
  208. package/dist/typescript/commonjs/src/hooks/use-voice-recorder.d.ts.map +1 -0
  209. package/dist/typescript/commonjs/src/index.d.ts +47 -0
  210. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  211. package/dist/typescript/commonjs/src/theme/assistant-theme.d.ts +51 -0
  212. package/dist/typescript/commonjs/src/theme/assistant-theme.d.ts.map +1 -0
  213. package/dist/typescript/commonjs/src/theme/index.d.ts +2 -0
  214. package/dist/typescript/commonjs/src/theme/index.d.ts.map +1 -0
  215. package/dist/typescript/commonjs/src/types/index.d.ts +167 -0
  216. package/dist/typescript/commonjs/src/types/index.d.ts.map +1 -0
  217. package/dist/typescript/commonjs/src/ui/action-sheet.d.ts +29 -0
  218. package/dist/typescript/commonjs/src/ui/action-sheet.d.ts.map +1 -0
  219. package/dist/typescript/commonjs/src/ui/alert-dialog.d.ts +12 -0
  220. package/dist/typescript/commonjs/src/ui/alert-dialog.d.ts.map +1 -0
  221. package/dist/typescript/commonjs/src/ui/docyrus-brand-mark.d.ts +5 -0
  222. package/dist/typescript/commonjs/src/ui/docyrus-brand-mark.d.ts.map +1 -0
  223. package/dist/typescript/commonjs/src/ui/docyrus-icon.d.ts +11 -0
  224. package/dist/typescript/commonjs/src/ui/docyrus-icon.d.ts.map +1 -0
  225. package/dist/typescript/commonjs/src/ui/index.d.ts +5 -0
  226. package/dist/typescript/commonjs/src/ui/index.d.ts.map +1 -0
  227. package/dist/typescript/commonjs/src/utils/api-client.d.ts +35 -0
  228. package/dist/typescript/commonjs/src/utils/api-client.d.ts.map +1 -0
  229. package/dist/typescript/commonjs/src/utils/default-api-config.d.ts +38 -0
  230. package/dist/typescript/commonjs/src/utils/default-api-config.d.ts.map +1 -0
  231. package/dist/typescript/commonjs/src/utils/index.d.ts +9 -0
  232. package/dist/typescript/commonjs/src/utils/index.d.ts.map +1 -0
  233. package/dist/typescript/commonjs/src/utils/resolve-api-headers.d.ts +3 -0
  234. package/dist/typescript/commonjs/src/utils/resolve-api-headers.d.ts.map +1 -0
  235. package/dist/typescript/module/eslint.config.d.mts +4 -0
  236. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  237. package/dist/typescript/module/package.json +1 -0
  238. package/dist/typescript/module/src/components/agent-selector/agent-selector.d.ts +49 -0
  239. package/dist/typescript/module/src/components/agent-selector/agent-selector.d.ts.map +1 -0
  240. package/dist/typescript/module/src/components/agent-selector/index.d.ts +2 -0
  241. package/dist/typescript/module/src/components/agent-selector/index.d.ts.map +1 -0
  242. package/dist/typescript/module/src/components/assistant-animations/assistant-animations.d.ts +8 -0
  243. package/dist/typescript/module/src/components/assistant-animations/assistant-animations.d.ts.map +1 -0
  244. package/dist/typescript/module/src/components/assistant-animations/index.d.ts +2 -0
  245. package/dist/typescript/module/src/components/assistant-animations/index.d.ts.map +1 -0
  246. package/dist/typescript/module/src/components/assistant-screen/assistant-screen.d.ts +122 -0
  247. package/dist/typescript/module/src/components/assistant-screen/assistant-screen.d.ts.map +1 -0
  248. package/dist/typescript/module/src/components/assistant-screen/index.d.ts +2 -0
  249. package/dist/typescript/module/src/components/assistant-screen/index.d.ts.map +1 -0
  250. package/dist/typescript/module/src/components/index.d.ts +11 -0
  251. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  252. package/dist/typescript/module/src/components/message-parts/index.d.ts +2 -0
  253. package/dist/typescript/module/src/components/message-parts/index.d.ts.map +1 -0
  254. package/dist/typescript/module/src/components/message-parts/message-parts.d.ts +22 -0
  255. package/dist/typescript/module/src/components/message-parts/message-parts.d.ts.map +1 -0
  256. package/dist/typescript/module/src/components/new-chat/index.d.ts +2 -0
  257. package/dist/typescript/module/src/components/new-chat/index.d.ts.map +1 -0
  258. package/dist/typescript/module/src/components/new-chat/new-chat.d.ts +34 -0
  259. package/dist/typescript/module/src/components/new-chat/new-chat.d.ts.map +1 -0
  260. package/dist/typescript/module/src/components/prompt-input/attachment-picker.d.ts +53 -0
  261. package/dist/typescript/module/src/components/prompt-input/attachment-picker.d.ts.map +1 -0
  262. package/dist/typescript/module/src/components/prompt-input/attachment-preview.d.ts +42 -0
  263. package/dist/typescript/module/src/components/prompt-input/attachment-preview.d.ts.map +1 -0
  264. package/dist/typescript/module/src/components/prompt-input/index.d.ts +9 -0
  265. package/dist/typescript/module/src/components/prompt-input/index.d.ts.map +1 -0
  266. package/dist/typescript/module/src/components/prompt-input/prompt-input.d.ts +139 -0
  267. package/dist/typescript/module/src/components/prompt-input/prompt-input.d.ts.map +1 -0
  268. package/dist/typescript/module/src/components/prompt-input/provider-selector.d.ts +11 -0
  269. package/dist/typescript/module/src/components/prompt-input/provider-selector.d.ts.map +1 -0
  270. package/dist/typescript/module/src/components/prompt-input/reasoning-level-selector.d.ts +35 -0
  271. package/dist/typescript/module/src/components/prompt-input/reasoning-level-selector.d.ts.map +1 -0
  272. package/dist/typescript/module/src/components/prompt-input/voice-recorder.d.ts +48 -0
  273. package/dist/typescript/module/src/components/prompt-input/voice-recorder.d.ts.map +1 -0
  274. package/dist/typescript/module/src/components/sessions-list/index.d.ts +2 -0
  275. package/dist/typescript/module/src/components/sessions-list/index.d.ts.map +1 -0
  276. package/dist/typescript/module/src/components/sessions-list/sessions-list.d.ts +59 -0
  277. package/dist/typescript/module/src/components/sessions-list/sessions-list.d.ts.map +1 -0
  278. package/dist/typescript/module/src/hooks/index.d.ts +8 -0
  279. package/dist/typescript/module/src/hooks/index.d.ts.map +1 -0
  280. package/dist/typescript/module/src/hooks/use-agent-models.d.ts +68 -0
  281. package/dist/typescript/module/src/hooks/use-agent-models.d.ts.map +1 -0
  282. package/dist/typescript/module/src/hooks/use-assistant.d.ts +55 -0
  283. package/dist/typescript/module/src/hooks/use-assistant.d.ts.map +1 -0
  284. package/dist/typescript/module/src/hooks/use-attachment-picker.d.ts +99 -0
  285. package/dist/typescript/module/src/hooks/use-attachment-picker.d.ts.map +1 -0
  286. package/dist/typescript/module/src/hooks/use-voice-recorder.d.ts +101 -0
  287. package/dist/typescript/module/src/hooks/use-voice-recorder.d.ts.map +1 -0
  288. package/dist/typescript/module/src/index.d.ts +47 -0
  289. package/dist/typescript/module/src/index.d.ts.map +1 -0
  290. package/dist/typescript/module/src/theme/assistant-theme.d.ts +51 -0
  291. package/dist/typescript/module/src/theme/assistant-theme.d.ts.map +1 -0
  292. package/dist/typescript/module/src/theme/index.d.ts +2 -0
  293. package/dist/typescript/module/src/theme/index.d.ts.map +1 -0
  294. package/dist/typescript/module/src/types/index.d.ts +167 -0
  295. package/dist/typescript/module/src/types/index.d.ts.map +1 -0
  296. package/dist/typescript/module/src/ui/action-sheet.d.ts +29 -0
  297. package/dist/typescript/module/src/ui/action-sheet.d.ts.map +1 -0
  298. package/dist/typescript/module/src/ui/alert-dialog.d.ts +12 -0
  299. package/dist/typescript/module/src/ui/alert-dialog.d.ts.map +1 -0
  300. package/dist/typescript/module/src/ui/docyrus-brand-mark.d.ts +5 -0
  301. package/dist/typescript/module/src/ui/docyrus-brand-mark.d.ts.map +1 -0
  302. package/dist/typescript/module/src/ui/docyrus-icon.d.ts +11 -0
  303. package/dist/typescript/module/src/ui/docyrus-icon.d.ts.map +1 -0
  304. package/dist/typescript/module/src/ui/index.d.ts +5 -0
  305. package/dist/typescript/module/src/ui/index.d.ts.map +1 -0
  306. package/dist/typescript/module/src/utils/api-client.d.ts +35 -0
  307. package/dist/typescript/module/src/utils/api-client.d.ts.map +1 -0
  308. package/dist/typescript/module/src/utils/default-api-config.d.ts +38 -0
  309. package/dist/typescript/module/src/utils/default-api-config.d.ts.map +1 -0
  310. package/dist/typescript/module/src/utils/index.d.ts +9 -0
  311. package/dist/typescript/module/src/utils/index.d.ts.map +1 -0
  312. package/dist/typescript/module/src/utils/resolve-api-headers.d.ts +3 -0
  313. package/dist/typescript/module/src/utils/resolve-api-headers.d.ts.map +1 -0
  314. package/package.json +176 -0
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Default API configuration for Docyrus AI API
5
+ *
6
+ * This configuration handles the Docyrus API format:
7
+ * - Response wrapper: { success: boolean, data: T }
8
+ * - Endpoints follow the pattern: /ai/... or /apps/base/...
9
+ * - Authentication via Bearer token
10
+ *
11
+ * ## API Endpoints Overview:
12
+ *
13
+ * ### AI Agent APIs
14
+ * 1. **deployment**: Fetches agent deployment info and available models
15
+ * 2. **chat**: Streams chat messages with AI using Vercel AI SDK
16
+ *
17
+ * ### Data Source APIs (Thread & Message Management)
18
+ * 3. **sessions**: Lists all chat threads/sessions for an agent
19
+ * 4. **messages**: Retrieves messages for a specific thread
20
+ * 5. **createThread**: Creates a new chat thread/session
21
+ * 6. **deleteSession**: Deletes a chat thread/session
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * import { createDocyrusRNAssistantConfig } from '@docyrus/rn-assistant';
26
+ *
27
+ * const apiConfig = createDocyrusRNAssistantConfig({
28
+ * baseUrl: 'https://api.docyrus.com',
29
+ * token: userToken
30
+ * });
31
+ * ```
32
+ */
33
+ export function createDocyrusAPIConfig(options) {
34
+ const {
35
+ baseUrl,
36
+ token,
37
+ getToken
38
+ } = options;
39
+ return {
40
+ baseUrl,
41
+ transformResponse(response) {
42
+ const typedResponse = response;
43
+ return typedResponse.data || response;
44
+ },
45
+ endpoints: {
46
+ /**
47
+ * GET /ai/agent-deployments/base/:agentId
48
+ *
49
+ * Fetches agent deployment configuration including:
50
+ * - Agent metadata and settings
51
+ * - Available AI models (GPT-4, Claude, Gemini, etc.)
52
+ * - Default model selection
53
+ * - Provider configurations
54
+ *
55
+ * Used by: useAgentModels hook
56
+ * Response: AgentDeployment object
57
+ */
58
+ deployment: '/ai/agent-deployments/base/:agentId',
59
+ /**
60
+ * POST /ai/agents/:agentId/chat
61
+ *
62
+ * Streams chat responses from AI agent using Vercel AI SDK.
63
+ * Supports:
64
+ * - Real-time streaming responses
65
+ * - Tool/function calling
66
+ * - Multi-turn conversations
67
+ * - File attachments
68
+ * - Custom model selection
69
+ *
70
+ * Request Body:
71
+ * {
72
+ * modelId: string, // AI model ID to use
73
+ * messages: Message[], // Conversation history (last 5)
74
+ * threadId: string, // Chat thread/session ID
75
+ * projectId: string, // Optional project context
76
+ * files: File[], // Optional file attachments
77
+ * credentials: { // User authentication
78
+ * token: string,
79
+ * userId: string
80
+ * }
81
+ * }
82
+ *
83
+ * Used by: useAIChat hook with Vercel AI SDK transport
84
+ * Response: Server-Sent Events (SSE) stream
85
+ */
86
+ chat: '/ai/agents/:agentId/chat',
87
+ /**
88
+ * GET /apps/base/data-sources/thread/items
89
+ *
90
+ * Retrieves list of chat threads/sessions for an agent.
91
+ * Supports filtering, pagination, and sorting.
92
+ *
93
+ * Query Parameters:
94
+ * - columns: JSON array of fields to return
95
+ * - limit: Number of results (default: 100)
96
+ * - orderBy: JSON sort specification
97
+ * - dataSourceId: Thread data source UUID
98
+ * - filters: JSON filter rules (agent_id, user_id, etc.)
99
+ * - fullCount: Include total count
100
+ * - expand: Related fields to include
101
+ *
102
+ * Used by: SessionsList component
103
+ * Response: { data: AISession[], count: number }
104
+ */
105
+ sessions: '/apps/base/data-sources/thread/items',
106
+ /**
107
+ * GET /apps/base/data-sources/message/items
108
+ *
109
+ * Fetches all messages for a specific thread/session.
110
+ * Returns conversation history with metadata.
111
+ *
112
+ * Query Parameters:
113
+ * - threadId: Thread UUID to get messages for
114
+ * - orderBy: Sort by created_on
115
+ * - expand: Include related data
116
+ *
117
+ * Used by: Chat history loading
118
+ * Response: { data: AIMessage[] }
119
+ */
120
+ messages: '/apps/base/data-sources/message/items',
121
+ /**
122
+ * GET /apps/base/data-sources/message/items/:threadId
123
+ *
124
+ * Fetches a specific thread record with child messages.
125
+ * Returns thread details and all associated messages.
126
+ *
127
+ * Path Parameters:
128
+ * - threadId: Thread UUID to get
129
+ *
130
+ * Query Parameters:
131
+ * - expand: child_records (to include messages)
132
+ * - columns: Fields to return
133
+ *
134
+ * Used by: Chat history loading (loadMessages)
135
+ * Response: { data: { id, subject, child_records: AIMessage[] } }
136
+ */
137
+ threadDetail: '/apps/base/data-sources/message/items/:threadId',
138
+ /**
139
+ * POST /apps/base/data-sources/thread/items
140
+ *
141
+ * Creates a new chat thread/session.
142
+ *
143
+ * Request Body:
144
+ * {
145
+ * subject: string, // Thread title/subject
146
+ * tenant_ai_agent_id: string, // Agent UUID
147
+ * created_by: string, // User UUID
148
+ * thread_type: string, // Thread type
149
+ * tenant_data_source_id: string // Data source UUID
150
+ * }
151
+ *
152
+ * Used by: New chat creation
153
+ * Response: { data: AISession }
154
+ */
155
+ createThread: '/apps/base/data-sources/thread/items',
156
+ /**
157
+ * DELETE /apps/base/data-sources/thread/items/:sessionId
158
+ *
159
+ * Deletes a chat thread/session and all its messages.
160
+ *
161
+ * Path Parameters:
162
+ * - sessionId: Thread UUID to delete
163
+ *
164
+ * Used by: SessionsList delete functionality
165
+ * Response: { success: boolean }
166
+ */
167
+ deleteSession: '/apps/base/data-sources/thread/items/:sessionId',
168
+ /**
169
+ * POST /ai/transcribe
170
+ *
171
+ * Transcribes audio file to text using speech-to-text API.
172
+ *
173
+ * Request Body: FormData with audio file
174
+ * - file: Audio file (WAV, MP3, etc.)
175
+ *
176
+ * Used by: useVoiceRecorder hook
177
+ * Response: { data: { transcription: { text: string } } }
178
+ */
179
+ transcribe: '/ai/transcribe'
180
+ },
181
+ headers: token || getToken ? async () => {
182
+ const resolvedToken = token || (await getToken?.());
183
+ return resolvedToken ? {
184
+ Authorization: `Bearer ${resolvedToken}`
185
+ } : undefined;
186
+ } : undefined
187
+ };
188
+ }
189
+ export const createDocyrusRNAssistantConfig = createDocyrusAPIConfig;
190
+ //# sourceMappingURL=default-api-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createDocyrusAPIConfig","options","baseUrl","token","getToken","transformResponse","response","typedResponse","data","endpoints","deployment","chat","sessions","messages","threadDetail","createThread","deleteSession","transcribe","headers","resolvedToken","Authorization","undefined","createDocyrusRNAssistantConfig"],"sourceRoot":"../../../src","sources":["utils/default-api-config.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,sBAAsBA,CAACC,OAItC,EAAe;EACd,MAAM;IAAEC,OAAO;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGH,OAAO;EAE5C,OAAO;IACLC,OAAO;IACPG,iBAAiBA,CAAUC,QAAa,EAAK;MAC3C,MAAMC,aAAa,GAAGD,QAAwB;MAE9C,OAAQC,aAAa,CAACC,IAAI,IAAIF,QAAQ;IACxC,CAAC;IACDG,SAAS,EAAE;MACT;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,UAAU,EAAE,qCAAqC;MAEjD;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,IAAI,EAAE,0BAA0B;MAEhC;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,QAAQ,EAAE,sCAAsC;MAEhD;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,QAAQ,EAAE,uCAAuC;MAEjD;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,YAAY,EAAE,iDAAiD;MAE/D;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,YAAY,EAAE,sCAAsC;MAEpD;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,aAAa,EAAE,iDAAiD;MAEhE;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACMC,UAAU,EAAE;IACd,CAAC;IACDC,OAAO,EAAEf,KAAK,IAAIC,QAAQ,GAAG,YAAY;MACvC,MAAMe,aAAa,GAAGhB,KAAK,KAAI,MAAMC,QAAQ,GAAG,CAAC;MAEjD,OAAOe,aAAa,GAAG;QACrBC,aAAa,EAAE,UAAUD,aAAa;MACxC,CAAC,GAAGE,SAAS;IACf,CAAC,GAAGA;EACN,CAAC;AACH;AAEA,OAAO,MAAMC,8BAA8B,GAAGtB,sBAAsB","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Docy Assistant - Utilities
5
+ *
6
+ * @module @docyrus/rn-assistant/utils
7
+ */
8
+
9
+ export * from "./default-api-config.js";
10
+ export * from "./api-client.js";
11
+ export * from "./resolve-api-headers.js";
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,cAAc,yBAAsB;AACpC,cAAc,iBAAc;AAC5B,cAAc,0BAAuB","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ export async function resolveAPIHeaders(headers) {
4
+ if (!headers) {
5
+ return {};
6
+ }
7
+ if (typeof headers === 'function') {
8
+ return (await headers()) || {};
9
+ }
10
+ return headers;
11
+ }
12
+ //# sourceMappingURL=resolve-api-headers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["resolveAPIHeaders","headers"],"sourceRoot":"../../../src","sources":["utils/resolve-api-headers.ts"],"mappings":";;AAEA,OAAO,eAAeA,iBAAiBA,CACrCC,OAAgC,EACC;EACjC,IAAI,CAACA,OAAO,EAAE;IACZ,OAAO,CAAC,CAAC;EACX;EAEA,IAAI,OAAOA,OAAO,KAAK,UAAU,EAAE;IACjC,OAAO,CAAC,MAAMA,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC;EAChC;EAEA,OAAOA,OAAO;AAChB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ export default config;
2
+ /** @type {import('eslint').Linter.Config[]} */
3
+ declare const config: import("eslint").Linter.Config[];
4
+ //# sourceMappingURL=eslint.config.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.mts","sourceRoot":"","sources":["../../../eslint.config.mjs"],"names":[],"mappings":";AAGA,+CAA+C;AAC/C,sBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,49 @@
1
+ import { type AIModel } from '../../types';
2
+ export type AgentSelectorProps = {
3
+ /**
4
+ * Available models
5
+ */
6
+ models: AIModel[];
7
+ /**
8
+ * Selected model
9
+ */
10
+ selectedModel: AIModel | null;
11
+ /**
12
+ * On model select
13
+ */
14
+ onSelectModel: (model: AIModel) => void;
15
+ /**
16
+ * Loading state
17
+ */
18
+ loading?: boolean;
19
+ /**
20
+ * Show header
21
+ * @default true
22
+ */
23
+ showHeader?: boolean;
24
+ /**
25
+ * On close callback
26
+ */
27
+ onClose?: () => void;
28
+ };
29
+ /**
30
+ * Agent Model Selector Component
31
+ *
32
+ * Displays available AI models grouped by provider.
33
+ * Users can select a model to use for chat.
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * <AgentSelector
38
+ * models={models}
39
+ * selectedModel={selectedModel}
40
+ * onSelectModel={setSelectedModel}
41
+ * onClose={() => setOpen(false)}
42
+ * />
43
+ * ```
44
+ */
45
+ export declare function AgentSelector({ models, selectedModel, onSelectModel, loading, showHeader, onClose }: AgentSelectorProps): import("react").JSX.Element;
46
+ export declare namespace AgentSelector {
47
+ var displayName: string;
48
+ }
49
+ //# sourceMappingURL=agent-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-selector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/agent-selector/agent-selector.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAI3C,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAC;IAElB;;OAEG;IACH,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAe,EACf,UAAiB,EACjB,OAAO,EACR,EAAE,kBAAkB,+BAgPpB;yBAvPe,aAAa"}
@@ -0,0 +1,2 @@
1
+ export * from './agent-selector';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/agent-selector/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ export type AssistantAnimationType = 'opening' | 'thinking' | 'working';
3
+ export type AssistantAnimationsProps = {
4
+ animationType?: AssistantAnimationType;
5
+ size?: number;
6
+ };
7
+ export declare const AssistantAnimations: FC<AssistantAnimationsProps>;
8
+ //# sourceMappingURL=assistant-animations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant-animations.d.ts","sourceRoot":"","sources":["../../../../../../src/components/assistant-animations/assistant-animations.tsx"],"names":[],"mappings":"AAAA,OAAO,EACuB,KAAK,EAAE,EACpC,MAAM,OAAO,CAAC;AAQf,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAExE,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAuI5D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './assistant-animations';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/assistant-animations/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,122 @@
1
+ import { type ViewStyle } from 'react-native';
2
+ import { type DocyAssistantMode, type AIAPIConfig } from '../../types';
3
+ import { type DocyrusRNAssistantThemeOverrides } from '../../theme';
4
+ import { type ActionSheetDetent } from '../../ui';
5
+ export type DocyrusRNAssistantProps = {
6
+ /**
7
+ * API Configuration
8
+ */
9
+ apiConfig: AIAPIConfig;
10
+ /**
11
+ * Agent ID
12
+ */
13
+ agentId: string;
14
+ /**
15
+ * Deployment ID (optional)
16
+ */
17
+ deploymentId?: string;
18
+ /**
19
+ * Data Source ID for thread creation (optional)
20
+ */
21
+ dataSourceId?: string;
22
+ /**
23
+ * User credentials
24
+ */
25
+ credentials?: {
26
+ token?: string;
27
+ userId?: string;
28
+ [key: string]: any;
29
+ };
30
+ /**
31
+ * User ID (for filtering sessions)
32
+ */
33
+ userId?: string;
34
+ /**
35
+ * Custom headers (will be merged with apiConfig.headers)
36
+ */
37
+ headers?: Record<string, string>;
38
+ /**
39
+ * Initial mode
40
+ * @default 'chat'
41
+ */
42
+ initialMode?: DocyAssistantMode;
43
+ /**
44
+ * Error handler
45
+ */
46
+ onError?: (error: Error) => void;
47
+ /**
48
+ * Show header
49
+ * @default true
50
+ */
51
+ showHeader?: boolean;
52
+ /**
53
+ * On close (for modal mode)
54
+ */
55
+ onClose?: () => void;
56
+ /**
57
+ * Enable voice recording
58
+ * @default true
59
+ */
60
+ enableVoice?: boolean;
61
+ /**
62
+ * Enable file attachments
63
+ * @default true
64
+ */
65
+ enableAttachment?: boolean;
66
+ /**
67
+ * Allowed attachment MIME types
68
+ * @default ['*\/*']
69
+ */
70
+ allowedAttachmentTypes?: string[];
71
+ /**
72
+ * Maximum attachment file size in bytes
73
+ * @default 10485760 (10MB)
74
+ */
75
+ maxAttachmentSize?: number;
76
+ /**
77
+ * Maximum number of attachments
78
+ * @default 10
79
+ */
80
+ maxAttachments?: number;
81
+ /**
82
+ * Show model selector in input area
83
+ * @default true
84
+ */
85
+ showModelSelectorInInput?: boolean;
86
+ /**
87
+ * Optional theme overrides for standalone package usage
88
+ */
89
+ theme?: DocyrusRNAssistantThemeOverrides;
90
+ /**
91
+ * Presentation mode for assistant container
92
+ * @default 'embedded'
93
+ */
94
+ presentation?: 'embedded' | 'modal' | 'sheet';
95
+ /**
96
+ * Modal visibility when presentation is modal
97
+ * @default false for modal mode
98
+ */
99
+ visible?: boolean;
100
+ /**
101
+ * Animation type when presentation is modal
102
+ * @default 'slide'
103
+ */
104
+ modalAnimationType?: 'none' | 'slide' | 'fade';
105
+ /**
106
+ * Sheet detent when presentation is sheet
107
+ * @default 'large'
108
+ */
109
+ sheetDetent?: ActionSheetDetent;
110
+ /**
111
+ * Optional outer container style. The assistant always tries to fill
112
+ * the full height of its host container.
113
+ */
114
+ containerStyle?: ViewStyle;
115
+ };
116
+ export declare function DocyrusRNAssistant({ theme, ...props }: DocyrusRNAssistantProps): import("react").JSX.Element;
117
+ export declare function DocyrusRNAssistantEmbedded(props: Omit<DocyrusRNAssistantProps, 'presentation' | 'visible' | 'modalAnimationType'>): import("react").JSX.Element;
118
+ export declare function DocyrusRNAssistantModal(props: Omit<DocyrusRNAssistantProps, 'presentation'>): import("react").JSX.Element;
119
+ export declare function DocyrusRNAssistantSheet(props: Omit<DocyrusRNAssistantProps, 'presentation' | 'modalAnimationType'>): import("react").JSX.Element;
120
+ export declare const DocyAssistant: typeof DocyrusRNAssistant;
121
+ export type DocyAssistantProps = DocyrusRNAssistantProps;
122
+ //# sourceMappingURL=assistant-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant-screen.d.ts","sourceRoot":"","sources":["../../../../../../src/components/assistant-screen/assistant-screen.tsx"],"names":[],"mappings":"AAEA,OAAO,EACwD,KAAK,SAAS,EAC5E,MAAM,cAAc,CAAC;AA2BtB,OAAO,EACL,KAAK,iBAAiB,EAAkB,KAAK,WAAW,EACzD,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,gCAAgC,EAGtC,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;;OAGG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAElC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,gCAAgC,CAAC;IAEzC;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;IAE9C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAE/C;;;OAGG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AA0qBF,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,GAAG,KAAK,EACT,EAAE,uBAAuB,+BAMzB;AAgED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAG,SAAS,GAAG,oBAAoB,CAAC,+BAMjI;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,cAAc,CAAC,+BAM3F;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAG,oBAAoB,CAAC,+BAMlH;AAED,eAAO,MAAM,aAAa,2BAAqB,CAAC;AAChD,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './assistant-screen';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/assistant-screen/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * AI Assistant Components
3
+ */
4
+ export * from './assistant-screen';
5
+ export * from './assistant-animations';
6
+ export { PromptInput, type PromptInputProps, ProviderSelector, type ProviderSelectorProps, VoiceRecorder, type VoiceRecorderProps, AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps } from './prompt-input';
7
+ export * from './message-parts';
8
+ export * from './sessions-list';
9
+ export * from './new-chat';
10
+ export * from './agent-selector';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,aAAa,EACb,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AAExB,cAAc,iBAAiB,CAAC;AAGhC,cAAc,iBAAiB,CAAC;AAGhC,cAAc,YAAY,CAAC;AAG3B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { MessageParts, type MessagePartsProps, type MessagePart } from './message-parts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/message-parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,22 @@
1
+ export type MessagePart = {
2
+ type: string;
3
+ text?: string;
4
+ toolCallId?: string;
5
+ toolName?: string;
6
+ args?: any;
7
+ result?: any;
8
+ isError?: boolean;
9
+ [key: string]: any;
10
+ };
11
+ export type MessagePartsProps = {
12
+ parts: MessagePart[];
13
+ };
14
+ /**
15
+ * Render message parts from AI SDK
16
+ * Supports: text, tool-call, tool-result, reasoning, etc.
17
+ */
18
+ export declare function MessageParts({ parts }: MessagePartsProps): import("react").JSX.Element | null;
19
+ export declare namespace MessageParts {
20
+ var displayName: string;
21
+ }
22
+ //# sourceMappingURL=message-parts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-parts.d.ts","sourceRoot":"","sources":["../../../../../../src/components/message-parts/message-parts.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB,sCA+LxD;yBA/Le,YAAY"}
@@ -0,0 +1,2 @@
1
+ export * from './new-chat';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/new-chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { type AgentDeployment } from '../../types';
2
+ export type NewChatProps = {
3
+ /**
4
+ * Agent deployment
5
+ */
6
+ deployment?: AgentDeployment | null;
7
+ /**
8
+ * On start chat
9
+ */
10
+ onStartChat: () => void;
11
+ /**
12
+ * Show welcome message
13
+ * @default true
14
+ */
15
+ showWelcome?: boolean;
16
+ };
17
+ /**
18
+ * New Chat Screen Component
19
+ *
20
+ * Displays agent welcome message.
21
+ *
22
+ * @example
23
+ * ```tsx
24
+ * <NewChat
25
+ * deployment={deployment}
26
+ * onStartChat={() => navigate('Chat')}
27
+ * />
28
+ * ```
29
+ */
30
+ export declare function NewChat({ deployment, showWelcome }: NewChatProps): import("react").JSX.Element;
31
+ export declare namespace NewChat {
32
+ var displayName: string;
33
+ }
34
+ //# sourceMappingURL=new-chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-chat.d.ts","sourceRoot":"","sources":["../../../../../../src/components/new-chat/new-chat.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,OAAO,CAAC,EACtB,UAAU,EACV,WAAkB,EACnB,EAAE,YAAY,+BAsEd;yBAzEe,OAAO"}
@@ -0,0 +1,53 @@
1
+ export type AttachmentPickerProps = {
2
+ /**
3
+ * Called when user picks documents
4
+ */
5
+ onPickDocuments: () => void;
6
+ /**
7
+ * Called when user picks images
8
+ */
9
+ onPickImages: () => void;
10
+ /**
11
+ * Called when user wants to take a photo
12
+ */
13
+ onTakePhoto?: () => void;
14
+ /**
15
+ * Whether picker is loading
16
+ */
17
+ isLoading?: boolean;
18
+ /**
19
+ * Disabled state
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * Current attachment count (for badge)
24
+ */
25
+ attachmentCount?: number;
26
+ /**
27
+ * Show as action sheet modal
28
+ * @default true
29
+ */
30
+ showAsModal?: boolean;
31
+ /**
32
+ * Accent color
33
+ */
34
+ accentColor?: string;
35
+ };
36
+ /**
37
+ * AttachmentPicker - Attachment selection component using anchored dropdown
38
+ *
39
+ * Provides UI for picking documents, images, or taking photos.
40
+ * Uses native action sheet pattern for better UX.
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * <AttachmentPicker
45
+ * onPickDocuments={pickDocuments}
46
+ * onPickImages={pickImages}
47
+ * onTakePhoto={takePhoto}
48
+ * attachmentCount={3}
49
+ * />
50
+ * ```
51
+ */
52
+ export declare function AttachmentPicker({ onPickDocuments, onPickImages, onTakePhoto, isLoading, disabled, attachmentCount, showAsModal, accentColor }: AttachmentPickerProps): import("react").JSX.Element;
53
+ //# sourceMappingURL=attachment-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment-picker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/prompt-input/attachment-picker.tsx"],"names":[],"mappings":"AA0BA,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,YAAY,EAAE,MAAM,IAAI,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAQF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,eAAe,EACf,YAAY,EACZ,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,eAAmB,EACnB,WAAkB,EAClB,WAAW,EACZ,EAAE,qBAAqB,+BAiRvB"}
@@ -0,0 +1,42 @@
1
+ import { type AIMessageFile } from '../../types';
2
+ export type AttachmentPreviewProps = {
3
+ /**
4
+ * Attachments to preview
5
+ */
6
+ attachments: AIMessageFile[];
7
+ /**
8
+ * Called when attachment is removed
9
+ */
10
+ onRemove: (id: string) => void;
11
+ /**
12
+ * Called when attachment is pressed (for preview)
13
+ */
14
+ onPress?: (attachment: AIMessageFile) => void;
15
+ /**
16
+ * Maximum visible items before showing "+X more"
17
+ * @default 4
18
+ */
19
+ maxVisible?: number;
20
+ /**
21
+ * Horizontal scrollable mode
22
+ * @default true
23
+ */
24
+ horizontal?: boolean;
25
+ };
26
+ /**
27
+ * AttachmentPreview - Preview attached files
28
+ *
29
+ * Displays attached files as removable chips/cards.
30
+ * Supports image thumbnails and file type icons.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * <AttachmentPreview
35
+ * attachments={attachments}
36
+ * onRemove={(id) => removeAttachment(id)}
37
+ * onPress={(file) => previewFile(file)}
38
+ * />
39
+ * ```
40
+ */
41
+ export declare function AttachmentPreview({ attachments, onRemove, onPress, maxVisible, horizontal }: AttachmentPreviewProps): import("react").JSX.Element | null;
42
+ //# sourceMappingURL=attachment-preview.d.ts.map