@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 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment-preview.d.ts","sourceRoot":"","sources":["../../../../../../src/components/prompt-input/attachment-preview.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,WAAW,EAAE,aAAa,EAAE,CAAC;IAE7B;;OAEG;IACH,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,IAAI,CAAC;IAE9C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAmCF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,QAAQ,EACR,OAAO,EACP,UAAc,EACd,UAAiB,EAClB,EAAE,sBAAsB,sCA+HxB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * PromptInput Components
3
+ */
4
+ export { PromptInput, type PromptInputProps } from './prompt-input';
5
+ export { ProviderSelector, type ProviderSelectorProps } from './provider-selector';
6
+ export { VoiceRecorder, type VoiceRecorderProps } from './voice-recorder';
7
+ export { AttachmentPicker, type AttachmentPickerProps } from './attachment-picker';
8
+ export { AttachmentPreview, type AttachmentPreviewProps } from './attachment-preview';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/prompt-input/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,139 @@
1
+ import { type ReactNode } from 'react';
2
+ import { TextInput, type TextInputProps, type ViewStyle } from 'react-native';
3
+ export type PromptInputProps = {
4
+ /**
5
+ * Input value
6
+ */
7
+ value: string;
8
+ /**
9
+ * On value change callback
10
+ */
11
+ onChangeText: (text: string) => void;
12
+ /**
13
+ * On send/submit callback
14
+ */
15
+ onSend?: () => void;
16
+ /**
17
+ * Placeholder text
18
+ * @default "Message AI..."
19
+ */
20
+ placeholder?: string;
21
+ /**
22
+ * Chat status - controls button icon
23
+ * @default "idle"
24
+ */
25
+ status?: 'idle' | 'streaming' | 'submitted';
26
+ /**
27
+ * On stop callback (when streaming)
28
+ */
29
+ onStop?: () => void;
30
+ /**
31
+ * Maximum input length
32
+ * @default 2000
33
+ */
34
+ maxLength?: number;
35
+ /**
36
+ * Accent color for buttons
37
+ */
38
+ accentColor?: string;
39
+ /**
40
+ * Enable file attachment
41
+ * @default false
42
+ */
43
+ enableAttachment?: boolean;
44
+ /**
45
+ * On attachment press callback
46
+ */
47
+ onAttachmentPress?: () => void;
48
+ /**
49
+ * Attachment count (for badge)
50
+ */
51
+ attachmentCount?: number;
52
+ /**
53
+ * Enable voice input
54
+ * @default false
55
+ */
56
+ enableVoice?: boolean;
57
+ /**
58
+ * On voice press callback
59
+ */
60
+ onVoicePress?: () => void;
61
+ /**
62
+ * Voice recording state
63
+ */
64
+ isRecording?: boolean;
65
+ /**
66
+ * Enable search
67
+ * @default false
68
+ */
69
+ enableSearch?: boolean;
70
+ /**
71
+ * On search press callback
72
+ */
73
+ onSearchPress?: () => void;
74
+ /**
75
+ * Show model selector
76
+ * @default false
77
+ */
78
+ showModelSelector?: boolean;
79
+ /**
80
+ * Selected model name
81
+ */
82
+ selectedModel?: string;
83
+ /**
84
+ * On model select callback
85
+ */
86
+ onModelSelect?: () => void;
87
+ /**
88
+ * Custom container style
89
+ */
90
+ containerStyle?: ViewStyle;
91
+ /**
92
+ * Optional toolbar content rendered between the left tools and right actions.
93
+ */
94
+ centerAccessory?: ReactNode;
95
+ /**
96
+ * Optional toolbar content rendered before built-in left tools.
97
+ */
98
+ leftAccessory?: ReactNode;
99
+ /**
100
+ * Disable send when empty
101
+ * @default true
102
+ */
103
+ disableSendWhenEmpty?: boolean;
104
+ /**
105
+ * Additional TextInput props
106
+ */
107
+ inputProps?: Omit<TextInputProps, 'value' | 'onChangeText' | 'placeholder'>;
108
+ };
109
+ /**
110
+ * PromptInput - AI Chat Input for React Native
111
+ *
112
+ * Full-featured AI chat input inspired by ChatGPT
113
+ * Features:
114
+ * - Auto-growing multiline input
115
+ * - File attachments with count badge
116
+ * - Voice input support
117
+ * - Search functionality
118
+ * - Model selector
119
+ * - Smart send/stop button
120
+ * - Focus border animation
121
+ *
122
+ * @example
123
+ * ```tsx
124
+ * <PromptInput
125
+ * value={input}
126
+ * onChangeText={setInput}
127
+ * onSend={handleSend}
128
+ * status="streaming"
129
+ * onStop={handleStop}
130
+ * enableAttachment
131
+ * enableVoice
132
+ * enableSearch
133
+ * showModelSelector
134
+ * selectedModel="GPT-4"
135
+ * />
136
+ * ```
137
+ */
138
+ export declare const PromptInput: import("react").ForwardRefExoticComponent<PromptInputProps & import("react").RefAttributes<TextInput>>;
139
+ //# sourceMappingURL=prompt-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-input.d.ts","sourceRoot":"","sources":["../../../../../../src/components/prompt-input/prompt-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAEL,SAAS,EAIT,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAatB,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,CAAC;IAE5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE/B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAE5B;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;CAC7E,CAAC;AAQF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,WAAW,wGAoOtB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type AIModel } from '../../types';
2
+ export type ProviderSelectorProps = {
3
+ models: AIModel[];
4
+ selectedModel: AIModel | null;
5
+ onSelect: (model: AIModel) => void;
6
+ disabled?: boolean;
7
+ compact?: boolean;
8
+ variant?: 'chip' | 'toolbar';
9
+ };
10
+ export declare function ProviderSelector({ models, selectedModel, onSelect, disabled, compact, variant }: ProviderSelectorProps): import("react").JSX.Element | null;
11
+ //# sourceMappingURL=provider-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-selector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/prompt-input/provider-selector.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAwCF,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAgB,EAChB,OAAe,EACf,OAAgB,EACjB,EAAE,qBAAqB,sCAoVvB"}
@@ -0,0 +1,35 @@
1
+ import { type AIReasoningLevel } from '../../types';
2
+ export type ReasoningLevelSelectorProps = {
3
+ /**
4
+ * Available reasoning levels
5
+ */
6
+ levels: AIReasoningLevel[];
7
+ /**
8
+ * Currently selected level
9
+ */
10
+ selectedLevel: AIReasoningLevel | null;
11
+ /**
12
+ * Called when a level is selected
13
+ */
14
+ onSelect: (level: AIReasoningLevel) => void;
15
+ /**
16
+ * Disabled state
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Accent color
21
+ */
22
+ accentColor?: string;
23
+ /**
24
+ * Render as compact toolbar icon button.
25
+ */
26
+ compact?: boolean;
27
+ };
28
+ /**
29
+ * ReasoningLevelSelector - Compact reasoning level picker with anchored dropdown
30
+ *
31
+ * Shows a small icon button that opens an ActionSheet to select reasoning level.
32
+ * Only renders if levels are provided.
33
+ */
34
+ export declare function ReasoningLevelSelector({ levels, selectedLevel, onSelect, disabled, compact }: ReasoningLevelSelectorProps): import("react").JSX.Element | null;
35
+ //# sourceMappingURL=reasoning-level-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reasoning-level-selector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/prompt-input/reasoning-level-selector.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAoDF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAgB,EAChB,OAAe,EAChB,EAAE,2BAA2B,sCA2N7B"}
@@ -0,0 +1,48 @@
1
+ export type VoiceRecorderProps = {
2
+ /**
3
+ * Whether currently recording
4
+ */
5
+ isRecording: boolean;
6
+ /**
7
+ * Recording duration in seconds
8
+ */
9
+ duration: number;
10
+ /**
11
+ * Whether transcription is in progress
12
+ */
13
+ isTranscribing?: boolean;
14
+ /**
15
+ * Error message
16
+ */
17
+ error?: string | null;
18
+ /**
19
+ * Called when recording stops
20
+ */
21
+ onStop: () => void;
22
+ /**
23
+ * Called when recording is cancelled
24
+ */
25
+ onCancel?: () => void;
26
+ /**
27
+ * Accent color
28
+ */
29
+ accentColor?: string;
30
+ };
31
+ /**
32
+ * VoiceRecorder - Voice recording UI component
33
+ *
34
+ * Displays recording controls, duration, and visual feedback.
35
+ * Supports recording, stop, and cancel actions.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * <VoiceRecorder
40
+ * isRecording={isRecording}
41
+ * duration={duration}
42
+ * onStop={stopRecording}
43
+ * onCancel={cancelRecording}
44
+ * />
45
+ * ```
46
+ */
47
+ export declare function VoiceRecorder({ isRecording, duration, isTranscribing, error, onStop, onCancel, accentColor }: VoiceRecorderProps): import("react").JSX.Element | null;
48
+ //# sourceMappingURL=voice-recorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-recorder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/prompt-input/voice-recorder.tsx"],"names":[],"mappings":"AAeA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAYF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,QAAQ,EACR,cAAsB,EACtB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,WAAW,EACZ,EAAE,kBAAkB,sCAoKpB"}
@@ -0,0 +1,2 @@
1
+ export * from './sessions-list';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sessions-list/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}