@unif/react-native-chat 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +48 -0
  3. package/lib/module/actions/index.js +2 -0
  4. package/lib/module/actions/index.js.map +1 -0
  5. package/lib/module/actions/types.js +4 -0
  6. package/lib/module/actions/types.js.map +1 -0
  7. package/lib/module/components/Attachments/AttachmentItem.js +108 -0
  8. package/lib/module/components/Attachments/AttachmentItem.js.map +1 -0
  9. package/lib/module/components/Attachments/Attachments.js +60 -0
  10. package/lib/module/components/Attachments/Attachments.js.map +1 -0
  11. package/lib/module/components/Attachments/constants.js +18 -0
  12. package/lib/module/components/Attachments/constants.js.map +1 -0
  13. package/lib/module/components/Attachments/index.js +4 -0
  14. package/lib/module/components/Attachments/index.js.map +1 -0
  15. package/lib/module/components/Attachments/styles.js +83 -0
  16. package/lib/module/components/Attachments/styles.js.map +1 -0
  17. package/lib/module/components/Attachments/types.js +4 -0
  18. package/lib/module/components/Attachments/types.js.map +1 -0
  19. package/lib/module/components/Chat/Chat.js +29 -0
  20. package/lib/module/components/Chat/Chat.js.map +1 -0
  21. package/lib/module/components/Chat/index.js +4 -0
  22. package/lib/module/components/Chat/index.js.map +1 -0
  23. package/lib/module/components/Chat/styles.js +17 -0
  24. package/lib/module/components/Chat/styles.js.map +1 -0
  25. package/lib/module/components/Chat/types.js +4 -0
  26. package/lib/module/components/Chat/types.js.map +1 -0
  27. package/lib/module/components/Citation/Citation.js +32 -0
  28. package/lib/module/components/Citation/Citation.js.map +1 -0
  29. package/lib/module/components/Citation/index.js +4 -0
  30. package/lib/module/components/Citation/index.js.map +1 -0
  31. package/lib/module/components/Citation/styles.js +15 -0
  32. package/lib/module/components/Citation/styles.js.map +1 -0
  33. package/lib/module/components/Citation/types.js +2 -0
  34. package/lib/module/components/Citation/types.js.map +1 -0
  35. package/lib/module/components/Composer/Composer.js +149 -0
  36. package/lib/module/components/Composer/Composer.js.map +1 -0
  37. package/lib/module/components/Composer/constants.js +14 -0
  38. package/lib/module/components/Composer/constants.js.map +1 -0
  39. package/lib/module/components/Composer/index.js +4 -0
  40. package/lib/module/components/Composer/index.js.map +1 -0
  41. package/lib/module/components/Composer/styles.js +43 -0
  42. package/lib/module/components/Composer/styles.js.map +1 -0
  43. package/lib/module/components/Composer/types.js +4 -0
  44. package/lib/module/components/Composer/types.js.map +1 -0
  45. package/lib/module/components/Confirmation/Confirmation.js +56 -0
  46. package/lib/module/components/Confirmation/Confirmation.js.map +1 -0
  47. package/lib/module/components/Confirmation/constants.js +10 -0
  48. package/lib/module/components/Confirmation/constants.js.map +1 -0
  49. package/lib/module/components/Confirmation/index.js +4 -0
  50. package/lib/module/components/Confirmation/index.js.map +1 -0
  51. package/lib/module/components/Confirmation/styles.js +34 -0
  52. package/lib/module/components/Confirmation/styles.js.map +1 -0
  53. package/lib/module/components/Confirmation/types.js +4 -0
  54. package/lib/module/components/Confirmation/types.js.map +1 -0
  55. package/lib/module/components/Feedback/Feedback.js +82 -0
  56. package/lib/module/components/Feedback/Feedback.js.map +1 -0
  57. package/lib/module/components/Feedback/constants.js +15 -0
  58. package/lib/module/components/Feedback/constants.js.map +1 -0
  59. package/lib/module/components/Feedback/index.js +4 -0
  60. package/lib/module/components/Feedback/index.js.map +1 -0
  61. package/lib/module/components/Feedback/styles.js +30 -0
  62. package/lib/module/components/Feedback/styles.js.map +1 -0
  63. package/lib/module/components/Feedback/types.js +4 -0
  64. package/lib/module/components/Feedback/types.js.map +1 -0
  65. package/lib/module/components/Message/MarkdownContent/MarkdownContent.js +68 -0
  66. package/lib/module/components/Message/MarkdownContent/MarkdownContent.js.map +1 -0
  67. package/lib/module/components/Message/MarkdownContent/MarkdownImage/MarkdownImage.js +53 -0
  68. package/lib/module/components/Message/MarkdownContent/MarkdownImage/MarkdownImage.js.map +1 -0
  69. package/lib/module/components/Message/MarkdownContent/MarkdownImage/styles.js +10 -0
  70. package/lib/module/components/Message/MarkdownContent/MarkdownImage/styles.js.map +1 -0
  71. package/lib/module/components/Message/MarkdownContent/MarkdownImage/types.js +2 -0
  72. package/lib/module/components/Message/MarkdownContent/MarkdownImage/types.js.map +1 -0
  73. package/lib/module/components/Message/MarkdownContent/styles.js +85 -0
  74. package/lib/module/components/Message/MarkdownContent/styles.js.map +1 -0
  75. package/lib/module/components/Message/MarkdownContent/types.js +2 -0
  76. package/lib/module/components/Message/MarkdownContent/types.js.map +1 -0
  77. package/lib/module/components/Message/Message.js +87 -0
  78. package/lib/module/components/Message/Message.js.map +1 -0
  79. package/lib/module/components/Message/constants.js +4 -0
  80. package/lib/module/components/Message/constants.js.map +1 -0
  81. package/lib/module/components/Message/index.js +4 -0
  82. package/lib/module/components/Message/index.js.map +1 -0
  83. package/lib/module/components/Message/isNestedAction.js +14 -0
  84. package/lib/module/components/Message/isNestedAction.js.map +1 -0
  85. package/lib/module/components/Message/styles.js +73 -0
  86. package/lib/module/components/Message/styles.js.map +1 -0
  87. package/lib/module/components/Message/types.js +4 -0
  88. package/lib/module/components/Message/types.js.map +1 -0
  89. package/lib/module/components/MessageList/MessageList.js +223 -0
  90. package/lib/module/components/MessageList/MessageList.js.map +1 -0
  91. package/lib/module/components/MessageList/constants.js +4 -0
  92. package/lib/module/components/MessageList/constants.js.map +1 -0
  93. package/lib/module/components/MessageList/index.js +4 -0
  94. package/lib/module/components/MessageList/index.js.map +1 -0
  95. package/lib/module/components/MessageList/styles.js +20 -0
  96. package/lib/module/components/MessageList/styles.js.map +1 -0
  97. package/lib/module/components/MessageList/types.js +4 -0
  98. package/lib/module/components/MessageList/types.js.map +1 -0
  99. package/lib/module/components/MessageList/webPrependAnchor/constants.js +4 -0
  100. package/lib/module/components/MessageList/webPrependAnchor/constants.js.map +1 -0
  101. package/lib/module/components/MessageList/webPrependAnchor/index.js +4 -0
  102. package/lib/module/components/MessageList/webPrependAnchor/index.js.map +1 -0
  103. package/lib/module/components/MessageList/webPrependAnchor/types.js +4 -0
  104. package/lib/module/components/MessageList/webPrependAnchor/types.js.map +1 -0
  105. package/lib/module/components/MessageList/webPrependAnchor/useWebPrependAnchor.js +19 -0
  106. package/lib/module/components/MessageList/webPrependAnchor/useWebPrependAnchor.js.map +1 -0
  107. package/lib/module/components/MessageList/webPrependAnchor/useWebPrependAnchor.web.js +208 -0
  108. package/lib/module/components/MessageList/webPrependAnchor/useWebPrependAnchor.web.js.map +1 -0
  109. package/lib/module/components/Process/Process.js +121 -0
  110. package/lib/module/components/Process/Process.js.map +1 -0
  111. package/lib/module/components/Process/constants.js +17 -0
  112. package/lib/module/components/Process/constants.js.map +1 -0
  113. package/lib/module/components/Process/index.js +4 -0
  114. package/lib/module/components/Process/index.js.map +1 -0
  115. package/lib/module/components/Process/styles.js +77 -0
  116. package/lib/module/components/Process/styles.js.map +1 -0
  117. package/lib/module/components/Process/types.js +4 -0
  118. package/lib/module/components/Process/types.js.map +1 -0
  119. package/lib/module/components/Sources/Sources.js +64 -0
  120. package/lib/module/components/Sources/Sources.js.map +1 -0
  121. package/lib/module/components/Sources/constants.js +4 -0
  122. package/lib/module/components/Sources/constants.js.map +1 -0
  123. package/lib/module/components/Sources/index.js +4 -0
  124. package/lib/module/components/Sources/index.js.map +1 -0
  125. package/lib/module/components/Sources/styles.js +52 -0
  126. package/lib/module/components/Sources/styles.js.map +1 -0
  127. package/lib/module/components/Sources/types.js +4 -0
  128. package/lib/module/components/Sources/types.js.map +1 -0
  129. package/lib/module/components/Suggestions/Suggestions.js +31 -0
  130. package/lib/module/components/Suggestions/Suggestions.js.map +1 -0
  131. package/lib/module/components/Suggestions/index.js +4 -0
  132. package/lib/module/components/Suggestions/index.js.map +1 -0
  133. package/lib/module/components/Suggestions/styles.js +18 -0
  134. package/lib/module/components/Suggestions/styles.js.map +1 -0
  135. package/lib/module/components/Suggestions/types.js +4 -0
  136. package/lib/module/components/Suggestions/types.js.map +1 -0
  137. package/lib/module/index.js +14 -0
  138. package/lib/module/index.js.map +1 -0
  139. package/lib/module/package.json +1 -0
  140. package/lib/typescript/package.json +1 -0
  141. package/lib/typescript/src/actions/index.d.ts +2 -0
  142. package/lib/typescript/src/actions/index.d.ts.map +1 -0
  143. package/lib/typescript/src/actions/types.d.ts +11 -0
  144. package/lib/typescript/src/actions/types.d.ts.map +1 -0
  145. package/lib/typescript/src/components/Attachments/AttachmentItem.d.ts +3 -0
  146. package/lib/typescript/src/components/Attachments/AttachmentItem.d.ts.map +1 -0
  147. package/lib/typescript/src/components/Attachments/Attachments.d.ts +3 -0
  148. package/lib/typescript/src/components/Attachments/Attachments.d.ts.map +1 -0
  149. package/lib/typescript/src/components/Attachments/constants.d.ts +13 -0
  150. package/lib/typescript/src/components/Attachments/constants.d.ts.map +1 -0
  151. package/lib/typescript/src/components/Attachments/index.d.ts +3 -0
  152. package/lib/typescript/src/components/Attachments/index.d.ts.map +1 -0
  153. package/lib/typescript/src/components/Attachments/styles.d.ts +80 -0
  154. package/lib/typescript/src/components/Attachments/styles.d.ts.map +1 -0
  155. package/lib/typescript/src/components/Attachments/types.d.ts +34 -0
  156. package/lib/typescript/src/components/Attachments/types.d.ts.map +1 -0
  157. package/lib/typescript/src/components/Chat/Chat.d.ts +3 -0
  158. package/lib/typescript/src/components/Chat/Chat.d.ts.map +1 -0
  159. package/lib/typescript/src/components/Chat/index.d.ts +3 -0
  160. package/lib/typescript/src/components/Chat/index.d.ts.map +1 -0
  161. package/lib/typescript/src/components/Chat/styles.d.ts +15 -0
  162. package/lib/typescript/src/components/Chat/styles.d.ts.map +1 -0
  163. package/lib/typescript/src/components/Chat/types.d.ts +12 -0
  164. package/lib/typescript/src/components/Chat/types.d.ts.map +1 -0
  165. package/lib/typescript/src/components/Citation/Citation.d.ts +3 -0
  166. package/lib/typescript/src/components/Citation/Citation.d.ts.map +1 -0
  167. package/lib/typescript/src/components/Citation/index.d.ts +3 -0
  168. package/lib/typescript/src/components/Citation/index.d.ts.map +1 -0
  169. package/lib/typescript/src/components/Citation/styles.d.ts +12 -0
  170. package/lib/typescript/src/components/Citation/styles.d.ts.map +1 -0
  171. package/lib/typescript/src/components/Citation/types.d.ts +8 -0
  172. package/lib/typescript/src/components/Citation/types.d.ts.map +1 -0
  173. package/lib/typescript/src/components/Composer/Composer.d.ts +4 -0
  174. package/lib/typescript/src/components/Composer/Composer.d.ts.map +1 -0
  175. package/lib/typescript/src/components/Composer/constants.d.ts +12 -0
  176. package/lib/typescript/src/components/Composer/constants.d.ts.map +1 -0
  177. package/lib/typescript/src/components/Composer/index.d.ts +3 -0
  178. package/lib/typescript/src/components/Composer/index.d.ts.map +1 -0
  179. package/lib/typescript/src/components/Composer/styles.d.ts +40 -0
  180. package/lib/typescript/src/components/Composer/styles.d.ts.map +1 -0
  181. package/lib/typescript/src/components/Composer/types.d.ts +53 -0
  182. package/lib/typescript/src/components/Composer/types.d.ts.map +1 -0
  183. package/lib/typescript/src/components/Confirmation/Confirmation.d.ts +3 -0
  184. package/lib/typescript/src/components/Confirmation/Confirmation.d.ts.map +1 -0
  185. package/lib/typescript/src/components/Confirmation/constants.d.ts +5 -0
  186. package/lib/typescript/src/components/Confirmation/constants.d.ts.map +1 -0
  187. package/lib/typescript/src/components/Confirmation/index.d.ts +3 -0
  188. package/lib/typescript/src/components/Confirmation/index.d.ts.map +1 -0
  189. package/lib/typescript/src/components/Confirmation/styles.d.ts +31 -0
  190. package/lib/typescript/src/components/Confirmation/styles.d.ts.map +1 -0
  191. package/lib/typescript/src/components/Confirmation/types.d.ts +19 -0
  192. package/lib/typescript/src/components/Confirmation/types.d.ts.map +1 -0
  193. package/lib/typescript/src/components/Feedback/Feedback.d.ts +3 -0
  194. package/lib/typescript/src/components/Feedback/Feedback.d.ts.map +1 -0
  195. package/lib/typescript/src/components/Feedback/constants.d.ts +5 -0
  196. package/lib/typescript/src/components/Feedback/constants.d.ts.map +1 -0
  197. package/lib/typescript/src/components/Feedback/index.d.ts +3 -0
  198. package/lib/typescript/src/components/Feedback/index.d.ts.map +1 -0
  199. package/lib/typescript/src/components/Feedback/styles.d.ts +27 -0
  200. package/lib/typescript/src/components/Feedback/styles.d.ts.map +1 -0
  201. package/lib/typescript/src/components/Feedback/types.d.ts +12 -0
  202. package/lib/typescript/src/components/Feedback/types.d.ts.map +1 -0
  203. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownContent.d.ts +3 -0
  204. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownContent.d.ts.map +1 -0
  205. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownImage/MarkdownImage.d.ts +3 -0
  206. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownImage/MarkdownImage.d.ts.map +1 -0
  207. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownImage/styles.d.ts +7 -0
  208. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownImage/styles.d.ts.map +1 -0
  209. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownImage/types.d.ts +9 -0
  210. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownImage/types.d.ts.map +1 -0
  211. package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts +92 -0
  212. package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts.map +1 -0
  213. package/lib/typescript/src/components/Message/MarkdownContent/types.d.ts +5 -0
  214. package/lib/typescript/src/components/Message/MarkdownContent/types.d.ts.map +1 -0
  215. package/lib/typescript/src/components/Message/Message.d.ts +3 -0
  216. package/lib/typescript/src/components/Message/Message.d.ts.map +1 -0
  217. package/lib/typescript/src/components/Message/constants.d.ts +2 -0
  218. package/lib/typescript/src/components/Message/constants.d.ts.map +1 -0
  219. package/lib/typescript/src/components/Message/index.d.ts +3 -0
  220. package/lib/typescript/src/components/Message/index.d.ts.map +1 -0
  221. package/lib/typescript/src/components/Message/isNestedAction.d.ts +3 -0
  222. package/lib/typescript/src/components/Message/isNestedAction.d.ts.map +1 -0
  223. package/lib/typescript/src/components/Message/styles.d.ts +70 -0
  224. package/lib/typescript/src/components/Message/styles.d.ts.map +1 -0
  225. package/lib/typescript/src/components/Message/types.d.ts +44 -0
  226. package/lib/typescript/src/components/Message/types.d.ts.map +1 -0
  227. package/lib/typescript/src/components/MessageList/MessageList.d.ts +4 -0
  228. package/lib/typescript/src/components/MessageList/MessageList.d.ts.map +1 -0
  229. package/lib/typescript/src/components/MessageList/constants.d.ts +2 -0
  230. package/lib/typescript/src/components/MessageList/constants.d.ts.map +1 -0
  231. package/lib/typescript/src/components/MessageList/index.d.ts +3 -0
  232. package/lib/typescript/src/components/MessageList/index.d.ts.map +1 -0
  233. package/lib/typescript/src/components/MessageList/styles.d.ts +16 -0
  234. package/lib/typescript/src/components/MessageList/styles.d.ts.map +1 -0
  235. package/lib/typescript/src/components/MessageList/types.d.ts +36 -0
  236. package/lib/typescript/src/components/MessageList/types.d.ts.map +1 -0
  237. package/lib/typescript/src/components/MessageList/webPrependAnchor/constants.d.ts +2 -0
  238. package/lib/typescript/src/components/MessageList/webPrependAnchor/constants.d.ts.map +1 -0
  239. package/lib/typescript/src/components/MessageList/webPrependAnchor/index.d.ts +3 -0
  240. package/lib/typescript/src/components/MessageList/webPrependAnchor/index.d.ts.map +1 -0
  241. package/lib/typescript/src/components/MessageList/webPrependAnchor/types.d.ts +72 -0
  242. package/lib/typescript/src/components/MessageList/webPrependAnchor/types.d.ts.map +1 -0
  243. package/lib/typescript/src/components/MessageList/webPrependAnchor/useWebPrependAnchor.d.ts +3 -0
  244. package/lib/typescript/src/components/MessageList/webPrependAnchor/useWebPrependAnchor.d.ts.map +1 -0
  245. package/lib/typescript/src/components/MessageList/webPrependAnchor/useWebPrependAnchor.web.d.ts +3 -0
  246. package/lib/typescript/src/components/MessageList/webPrependAnchor/useWebPrependAnchor.web.d.ts.map +1 -0
  247. package/lib/typescript/src/components/Process/Process.d.ts +3 -0
  248. package/lib/typescript/src/components/Process/Process.d.ts.map +1 -0
  249. package/lib/typescript/src/components/Process/constants.d.ts +5 -0
  250. package/lib/typescript/src/components/Process/constants.d.ts.map +1 -0
  251. package/lib/typescript/src/components/Process/index.d.ts +3 -0
  252. package/lib/typescript/src/components/Process/index.d.ts.map +1 -0
  253. package/lib/typescript/src/components/Process/styles.d.ts +74 -0
  254. package/lib/typescript/src/components/Process/styles.d.ts.map +1 -0
  255. package/lib/typescript/src/components/Process/types.d.ts +32 -0
  256. package/lib/typescript/src/components/Process/types.d.ts.map +1 -0
  257. package/lib/typescript/src/components/Sources/Sources.d.ts +3 -0
  258. package/lib/typescript/src/components/Sources/Sources.d.ts.map +1 -0
  259. package/lib/typescript/src/components/Sources/constants.d.ts +2 -0
  260. package/lib/typescript/src/components/Sources/constants.d.ts.map +1 -0
  261. package/lib/typescript/src/components/Sources/index.d.ts +3 -0
  262. package/lib/typescript/src/components/Sources/index.d.ts.map +1 -0
  263. package/lib/typescript/src/components/Sources/styles.d.ts +49 -0
  264. package/lib/typescript/src/components/Sources/styles.d.ts.map +1 -0
  265. package/lib/typescript/src/components/Sources/types.d.ts +16 -0
  266. package/lib/typescript/src/components/Sources/types.d.ts.map +1 -0
  267. package/lib/typescript/src/components/Suggestions/Suggestions.d.ts +3 -0
  268. package/lib/typescript/src/components/Suggestions/Suggestions.d.ts.map +1 -0
  269. package/lib/typescript/src/components/Suggestions/index.d.ts +3 -0
  270. package/lib/typescript/src/components/Suggestions/index.d.ts.map +1 -0
  271. package/lib/typescript/src/components/Suggestions/styles.d.ts +14 -0
  272. package/lib/typescript/src/components/Suggestions/styles.d.ts.map +1 -0
  273. package/lib/typescript/src/components/Suggestions/types.d.ts +18 -0
  274. package/lib/typescript/src/components/Suggestions/types.d.ts.map +1 -0
  275. package/lib/typescript/src/index.d.ts +24 -0
  276. package/lib/typescript/src/index.d.ts.map +1 -0
  277. package/package.json +178 -0
  278. package/src/actions/index.ts +1 -0
  279. package/src/actions/types.ts +11 -0
  280. package/src/components/Attachments/AttachmentItem.tsx +139 -0
  281. package/src/components/Attachments/Attachments.tsx +72 -0
  282. package/src/components/Attachments/constants.ts +21 -0
  283. package/src/components/Attachments/index.ts +6 -0
  284. package/src/components/Attachments/styles.ts +54 -0
  285. package/src/components/Attachments/types.ts +38 -0
  286. package/src/components/Chat/Chat.tsx +26 -0
  287. package/src/components/Chat/index.ts +2 -0
  288. package/src/components/Chat/styles.ts +12 -0
  289. package/src/components/Chat/types.ts +11 -0
  290. package/src/components/Citation/Citation.tsx +33 -0
  291. package/src/components/Citation/index.ts +2 -0
  292. package/src/components/Citation/styles.ts +15 -0
  293. package/src/components/Citation/types.ts +7 -0
  294. package/src/components/Composer/Composer.tsx +208 -0
  295. package/src/components/Composer/constants.ts +11 -0
  296. package/src/components/Composer/index.ts +11 -0
  297. package/src/components/Composer/styles.ts +25 -0
  298. package/src/components/Composer/types.ts +61 -0
  299. package/src/components/Confirmation/Confirmation.tsx +63 -0
  300. package/src/components/Confirmation/constants.ts +12 -0
  301. package/src/components/Confirmation/index.ts +2 -0
  302. package/src/components/Confirmation/styles.ts +39 -0
  303. package/src/components/Confirmation/types.ts +21 -0
  304. package/src/components/Feedback/Feedback.tsx +87 -0
  305. package/src/components/Feedback/constants.ts +16 -0
  306. package/src/components/Feedback/index.ts +2 -0
  307. package/src/components/Feedback/styles.ts +30 -0
  308. package/src/components/Feedback/types.ts +13 -0
  309. package/src/components/Message/MarkdownContent/MarkdownContent.tsx +70 -0
  310. package/src/components/Message/MarkdownContent/MarkdownImage/MarkdownImage.tsx +52 -0
  311. package/src/components/Message/MarkdownContent/MarkdownImage/styles.ts +4 -0
  312. package/src/components/Message/MarkdownContent/MarkdownImage/types.ts +8 -0
  313. package/src/components/Message/MarkdownContent/styles.ts +61 -0
  314. package/src/components/Message/MarkdownContent/types.ts +4 -0
  315. package/src/components/Message/Message.tsx +137 -0
  316. package/src/components/Message/constants.ts +2 -0
  317. package/src/components/Message/index.ts +10 -0
  318. package/src/components/Message/isNestedAction.ts +22 -0
  319. package/src/components/Message/styles.ts +42 -0
  320. package/src/components/Message/types.ts +45 -0
  321. package/src/components/MessageList/MessageList.tsx +238 -0
  322. package/src/components/MessageList/constants.ts +1 -0
  323. package/src/components/MessageList/index.ts +6 -0
  324. package/src/components/MessageList/styles.ts +7 -0
  325. package/src/components/MessageList/types.ts +36 -0
  326. package/src/components/MessageList/webPrependAnchor/constants.ts +6 -0
  327. package/src/components/MessageList/webPrependAnchor/index.ts +7 -0
  328. package/src/components/MessageList/webPrependAnchor/types.ts +92 -0
  329. package/src/components/MessageList/webPrependAnchor/useWebPrependAnchor.ts +27 -0
  330. package/src/components/MessageList/webPrependAnchor/useWebPrependAnchor.web.ts +293 -0
  331. package/src/components/Process/Process.tsx +160 -0
  332. package/src/components/Process/constants.ts +22 -0
  333. package/src/components/Process/index.ts +9 -0
  334. package/src/components/Process/styles.ts +77 -0
  335. package/src/components/Process/types.ts +39 -0
  336. package/src/components/Sources/Sources.tsx +70 -0
  337. package/src/components/Sources/constants.ts +1 -0
  338. package/src/components/Sources/index.ts +2 -0
  339. package/src/components/Sources/styles.ts +59 -0
  340. package/src/components/Sources/types.ts +17 -0
  341. package/src/components/Suggestions/Suggestions.tsx +34 -0
  342. package/src/components/Suggestions/index.ts +2 -0
  343. package/src/components/Suggestions/styles.ts +16 -0
  344. package/src/components/Suggestions/types.ts +19 -0
  345. package/src/index.tsx +61 -0
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ import { Pressable, Text, View } from 'react-native';
4
+ import { Icon, useThemedStyles } from '@unif/react-native-design';
5
+ import { DEFAULT_SOURCES_TITLE } from "./constants.js";
6
+ import { createStyles } from "./styles.js";
7
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
+ export function Sources({
9
+ items,
10
+ title = DEFAULT_SOURCES_TITLE,
11
+ onPress,
12
+ style,
13
+ testID
14
+ }) {
15
+ const styles = useThemedStyles(createStyles);
16
+ if (items.length === 0) return null;
17
+ const renderItem = (item, showChevron) => /*#__PURE__*/_jsxs(_Fragment, {
18
+ children: [/*#__PURE__*/_jsx(Text, {
19
+ style: styles.label,
20
+ testID: `source-label-${item.id}`,
21
+ children: item.label
22
+ }), /*#__PURE__*/_jsxs(View, {
23
+ style: styles.content,
24
+ children: [item.title ? /*#__PURE__*/_jsx(Text, {
25
+ style: styles.title,
26
+ children: item.title
27
+ }) : null, item.description ? /*#__PURE__*/_jsx(Text, {
28
+ style: styles.description,
29
+ children: item.description
30
+ }) : null]
31
+ }), showChevron ? /*#__PURE__*/_jsx(Icon, {
32
+ name: "chevron-right"
33
+ }) : null]
34
+ });
35
+ return /*#__PURE__*/_jsxs(View, {
36
+ style: [styles.root, style],
37
+ testID: testID,
38
+ children: [/*#__PURE__*/_jsx(Text, {
39
+ style: styles.heading,
40
+ children: title
41
+ }), /*#__PURE__*/_jsx(View, {
42
+ style: styles.list,
43
+ children: items.map(item => onPress ? /*#__PURE__*/_jsx(Pressable, {
44
+ style: ({
45
+ pressed
46
+ }) => [styles.item, pressed && styles.pressed, item.disabled && styles.disabled],
47
+ onPress: item.disabled ? undefined : () => onPress(item),
48
+ disabled: item.disabled,
49
+ accessibilityRole: "button",
50
+ accessibilityLabel: item.title ? `${item.label} ${item.title}` : item.label,
51
+ accessibilityState: {
52
+ disabled: item.disabled === true
53
+ },
54
+ testID: `source-${item.id}`,
55
+ children: renderItem(item, true)
56
+ }, item.id) : /*#__PURE__*/_jsx(View, {
57
+ style: [styles.item, item.disabled && styles.disabled],
58
+ testID: `source-${item.id}`,
59
+ children: renderItem(item, false)
60
+ }, item.id))
61
+ })]
62
+ });
63
+ }
64
+ //# sourceMappingURL=Sources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Pressable","Text","View","Icon","useThemedStyles","DEFAULT_SOURCES_TITLE","createStyles","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Sources","items","title","onPress","style","testID","styles","length","renderItem","item","showChevron","children","label","id","content","description","name","root","heading","list","map","pressed","disabled","undefined","accessibilityRole","accessibilityLabel","accessibilityState"],"sourceRoot":"../../../../src","sources":["components/Sources/Sources.tsx"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export const DEFAULT_SOURCES_TITLE = '参考来源';
4
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DEFAULT_SOURCES_TITLE"],"sourceRoot":"../../../../src","sources":["components/Sources/constants.ts"],"mappings":";;AAAA,OAAO,MAAMA,qBAAqB,GAAG,MAAM","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { Sources } from "./Sources.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Sources"],"sourceRoot":"../../../../src","sources":["components/Sources/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,cAAW","ignoreList":[]}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import { fixed, fw, pressedOpacity, radius, space, type } from '@unif/react-native-design';
5
+ export const createStyles = colors => StyleSheet.create({
6
+ root: {
7
+ gap: space[3]
8
+ },
9
+ heading: {
10
+ color: colors.foreground,
11
+ fontSize: type.sm,
12
+ fontWeight: fw.semi
13
+ },
14
+ list: {
15
+ gap: space[2]
16
+ },
17
+ item: {
18
+ minHeight: fixed.hitTarget,
19
+ flexDirection: 'row',
20
+ alignItems: 'flex-start',
21
+ gap: space[3],
22
+ padding: space[3],
23
+ borderRadius: radius.md,
24
+ backgroundColor: colors.surfaceContainer
25
+ },
26
+ pressed: {
27
+ opacity: pressedOpacity
28
+ },
29
+ disabled: {
30
+ opacity: 0.5
31
+ },
32
+ label: {
33
+ minWidth: space[7],
34
+ color: colors.primary,
35
+ fontSize: type.sm,
36
+ fontWeight: fw.semi
37
+ },
38
+ content: {
39
+ flex: 1,
40
+ gap: space[1]
41
+ },
42
+ title: {
43
+ color: colors.foreground,
44
+ fontSize: type.sm,
45
+ fontWeight: fw.medium
46
+ },
47
+ description: {
48
+ color: colors.foregroundMuted,
49
+ fontSize: type.xxs
50
+ }
51
+ });
52
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","fixed","fw","pressedOpacity","radius","space","type","createStyles","colors","create","root","gap","heading","color","foreground","fontSize","sm","fontWeight","semi","list","item","minHeight","hitTarget","flexDirection","alignItems","padding","borderRadius","md","backgroundColor","surfaceContainer","pressed","opacity","disabled","label","minWidth","primary","content","flex","title","medium","description","foregroundMuted","xxs"],"sourceRoot":"../../../../src","sources":["components/Sources/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SACEC,KAAK,EACLC,EAAE,EACFC,cAAc,EACdC,MAAM,EACNC,KAAK,EACLC,IAAI,QACC,2BAA2B;AAGlC,OAAO,MAAMC,YAAY,GAAIC,MAAmB,IAC9CR,UAAU,CAACS,MAAM,CAAC;EAChBC,IAAI,EAAE;IACJC,GAAG,EAAEN,KAAK,CAAC,CAAC;EACd,CAAC;EACDO,OAAO,EAAE;IACPC,KAAK,EAAEL,MAAM,CAACM,UAAU;IACxBC,QAAQ,EAAET,IAAI,CAACU,EAAE;IACjBC,UAAU,EAAEf,EAAE,CAACgB;EACjB,CAAC;EACDC,IAAI,EAAE;IACJR,GAAG,EAAEN,KAAK,CAAC,CAAC;EACd,CAAC;EACDe,IAAI,EAAE;IACJC,SAAS,EAAEpB,KAAK,CAACqB,SAAS;IAC1BC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBb,GAAG,EAAEN,KAAK,CAAC,CAAC,CAAC;IACboB,OAAO,EAAEpB,KAAK,CAAC,CAAC,CAAC;IACjBqB,YAAY,EAAEtB,MAAM,CAACuB,EAAE;IACvBC,eAAe,EAAEpB,MAAM,CAACqB;EAC1B,CAAC;EACDC,OAAO,EAAE;IACPC,OAAO,EAAE5B;EACX,CAAC;EACD6B,QAAQ,EAAE;IACRD,OAAO,EAAE;EACX,CAAC;EACDE,KAAK,EAAE;IACLC,QAAQ,EAAE7B,KAAK,CAAC,CAAC,CAAC;IAClBQ,KAAK,EAAEL,MAAM,CAAC2B,OAAO;IACrBpB,QAAQ,EAAET,IAAI,CAACU,EAAE;IACjBC,UAAU,EAAEf,EAAE,CAACgB;EACjB,CAAC;EACDkB,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC;IACP1B,GAAG,EAAEN,KAAK,CAAC,CAAC;EACd,CAAC;EACDiC,KAAK,EAAE;IACLzB,KAAK,EAAEL,MAAM,CAACM,UAAU;IACxBC,QAAQ,EAAET,IAAI,CAACU,EAAE;IACjBC,UAAU,EAAEf,EAAE,CAACqC;EACjB,CAAC;EACDC,WAAW,EAAE;IACX3B,KAAK,EAAEL,MAAM,CAACiC,eAAe;IAC7B1B,QAAQ,EAAET,IAAI,CAACoC;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Sources/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { Chip, Icon } from '@unif/react-native-design';
5
+ import { styles } from "./styles.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export function Suggestions({
8
+ items,
9
+ onSelect,
10
+ align = 'start',
11
+ style,
12
+ testID
13
+ }) {
14
+ if (items.length === 0) return null;
15
+ return /*#__PURE__*/_jsx(View, {
16
+ style: [styles.root, styles[align], style],
17
+ testID: testID,
18
+ accessibilityRole: "list",
19
+ children: items.map(item => /*#__PURE__*/_jsx(Chip, {
20
+ label: item.label,
21
+ selected: item.selected,
22
+ busy: item.loading,
23
+ disabled: item.disabled,
24
+ leading: item.icon ? /*#__PURE__*/_jsx(Icon, {
25
+ name: item.icon
26
+ }) : undefined,
27
+ onPress: onSelect ? () => onSelect(item) : undefined
28
+ }, item.id))
29
+ });
30
+ }
31
+ //# sourceMappingURL=Suggestions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","Chip","Icon","styles","jsx","_jsx","Suggestions","items","onSelect","align","style","testID","length","root","accessibilityRole","children","map","item","label","selected","busy","loading","disabled","leading","icon","name","undefined","onPress","id"],"sourceRoot":"../../../../src","sources":["components/Suggestions/Suggestions.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,IAAI,QAAQ,2BAA2B;AACtD,SAASC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGlC,OAAO,SAASC,WAAWA,CAAC;EAC1BC,KAAK;EACLC,QAAQ;EACRC,KAAK,GAAG,OAAO;EACfC,KAAK;EACLC;AACgB,CAAC,EAA4B;EAC7C,IAAIJ,KAAK,CAACK,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;EAEnC,oBACEP,IAAA,CAACL,IAAI;IACHU,KAAK,EAAE,CAACP,MAAM,CAACU,IAAI,EAAEV,MAAM,CAACM,KAAK,CAAC,EAAEC,KAAK,CAAE;IAC3CC,MAAM,EAAEA,MAAO;IACfG,iBAAiB,EAAC,MAAM;IAAAC,QAAA,EAEvBR,KAAK,CAACS,GAAG,CAAEC,IAAI,iBACdZ,IAAA,CAACJ,IAAI;MAEHiB,KAAK,EAAED,IAAI,CAACC,KAAM;MAClBC,QAAQ,EAAEF,IAAI,CAACE,QAAS;MACxBC,IAAI,EAAEH,IAAI,CAACI,OAAQ;MACnBC,QAAQ,EAAEL,IAAI,CAACK,QAAS;MACxBC,OAAO,EAAEN,IAAI,CAACO,IAAI,gBAAGnB,IAAA,CAACH,IAAI;QAACuB,IAAI,EAAER,IAAI,CAACO;MAAK,CAAE,CAAC,GAAGE,SAAU;MAC3DC,OAAO,EAAEnB,QAAQ,GAAG,MAAMA,QAAQ,CAACS,IAAI,CAAC,GAAGS;IAAU,GANhDT,IAAI,CAACW,EAOX,CACF;EAAC,CACE,CAAC;AAEX","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { Suggestions } from "./Suggestions.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Suggestions"],"sourceRoot":"../../../../src","sources":["components/Suggestions/index.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,kBAAe","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import { space } from '@unif/react-native-design';
5
+ export const styles = StyleSheet.create({
6
+ root: {
7
+ flexDirection: 'row',
8
+ flexWrap: 'wrap',
9
+ gap: space[3]
10
+ },
11
+ start: {
12
+ justifyContent: 'flex-start'
13
+ },
14
+ center: {
15
+ justifyContent: 'center'
16
+ }
17
+ });
18
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","space","styles","create","root","flexDirection","flexWrap","gap","start","justifyContent","center"],"sourceRoot":"../../../../src","sources":["components/Suggestions/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,2BAA2B;AAEjD,OAAO,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EACtCC,IAAI,EAAE;IACJC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,MAAM;IAChBC,GAAG,EAAEN,KAAK,CAAC,CAAC;EACd,CAAC;EACDO,KAAK,EAAE;IACLC,cAAc,EAAE;EAClB,CAAC;EACDC,MAAM,EAAE;IACND,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Suggestions/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ export { Composer } from "./components/Composer/index.js";
4
+ export { Attachments } from "./components/Attachments/index.js";
5
+ export { Message } from "./components/Message/index.js";
6
+ export { MessageList } from "./components/MessageList/index.js";
7
+ export { Chat } from "./components/Chat/index.js";
8
+ export { Suggestions } from "./components/Suggestions/index.js";
9
+ export { Confirmation } from "./components/Confirmation/index.js";
10
+ export { Process } from "./components/Process/index.js";
11
+ export { Feedback } from "./components/Feedback/index.js";
12
+ export { Sources } from "./components/Sources/index.js";
13
+ export { Citation } from "./components/Citation/index.js";
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Composer","Attachments","Message","MessageList","Chat","Suggestions","Confirmation","Process","Feedback","Sources","Citation"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,gCAAuB;AAWhD,SAASC,WAAW,QAAQ,mCAA0B;AAMtD,SAASC,OAAO,QAAQ,+BAAsB;AAU9C,SAASC,WAAW,QAAQ,mCAA0B;AAMtD,SAASC,IAAI,QAAQ,4BAAmB;AAExC,SAASC,WAAW,QAAQ,mCAA0B;AAKtD,SAASC,YAAY,QAAQ,oCAA2B;AAKxD,SAASC,OAAO,QAAQ,+BAAsB;AAS9C,SAASC,QAAQ,QAAQ,gCAAuB;AAEhD,SAASC,OAAO,QAAQ,+BAAsB;AAE9C,SAASC,QAAQ,QAAQ,gCAAuB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,2 @@
1
+ export type { ChatAction } from './types.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,YAAS,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { IconName } from '@unif/react-native-design';
2
+ export interface ChatAction {
3
+ id: string;
4
+ label: string;
5
+ icon?: IconName;
6
+ disabled?: boolean;
7
+ loading?: boolean;
8
+ accessibilityHint?: string;
9
+ onPress(): void;
10
+ }
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ import type { AttachmentItemProps } from './types.js';
2
+ export declare function AttachmentItem({ item, width, imageSize, row, showProgressLabel, onPreview, onRemove, }: AttachmentItemProps): import("react").JSX.Element;
3
+ //# sourceMappingURL=AttachmentItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/AttachmentItem.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAEnD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,EACH,iBAAyB,EACzB,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,+BAkHrB"}
@@ -0,0 +1,3 @@
1
+ import type { AttachmentsProps } from './types.js';
2
+ export declare function Attachments({ items, layout, showProgressLabel, onPreview, onRemove, style, testID, }: AttachmentsProps): import("react").JSX.Element;
3
+ //# sourceMappingURL=Attachments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attachments.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/Attachments.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAEhD,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,MAAe,EACf,iBAAyB,EACzB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,GACP,EAAE,gBAAgB,+BAuDlB"}
@@ -0,0 +1,13 @@
1
+ import type { IconName } from '@unif/react-native-design';
2
+ import type { ChatAttachmentItem } from './types.js';
3
+ export declare const CARD_WIDTH = 144;
4
+ export declare const ROW_IMAGE_SIZE = 56;
5
+ export declare const ATTACHMENT_ICONS: Record<NonNullable<ChatAttachmentItem['kind']>, IconName>;
6
+ export declare const STATUS_LABELS: {
7
+ readonly idle: "";
8
+ readonly uploading: "正在上传";
9
+ readonly processing: "正在处理";
10
+ readonly ready: "";
11
+ readonly failed: "处理失败";
12
+ };
13
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAS,CAAC;AAElD,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,WAAW,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,EACvC,QAAQ,CAMT,CAAC;AACF,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Attachments } from './Attachments.js';
2
+ export type { AttachmentsProps, ChatAttachmentItem, ChatAttachmentStatus, } from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAe,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,YAAS,CAAC"}
@@ -0,0 +1,80 @@
1
+ import type { ColorTokens } from '@unif/react-native-design';
2
+ export declare const createStyles: (colors: ColorTokens) => Readonly<{
3
+ root: {
4
+ minWidth: number;
5
+ };
6
+ collection: {
7
+ flexDirection: "row";
8
+ flexWrap: "wrap";
9
+ alignItems: "flex-start";
10
+ gap: number;
11
+ };
12
+ carousel: {
13
+ gap: number;
14
+ alignItems: "flex-start";
15
+ };
16
+ item: {
17
+ gap: number;
18
+ padding: number;
19
+ borderWidth: number;
20
+ borderColor: string;
21
+ borderRadius: number;
22
+ backgroundColor: string;
23
+ };
24
+ row: {
25
+ width: string;
26
+ flexDirection: "row";
27
+ alignItems: "center";
28
+ };
29
+ content: {
30
+ minWidth: number;
31
+ flexShrink: number;
32
+ gap: number;
33
+ };
34
+ rowContent: {
35
+ flex: number;
36
+ };
37
+ media: {
38
+ alignItems: "center";
39
+ justifyContent: "center";
40
+ alignSelf: "center";
41
+ };
42
+ imageLayer: {
43
+ position: "absolute";
44
+ alignItems: "center";
45
+ justifyContent: "center";
46
+ top: number;
47
+ bottom: number;
48
+ left: number;
49
+ right: number;
50
+ };
51
+ placeholder: {
52
+ backgroundColor: string;
53
+ borderRadius: number;
54
+ };
55
+ progress: {
56
+ padding: number;
57
+ borderRadius: number;
58
+ backgroundColor: string;
59
+ };
60
+ name: {
61
+ color: string;
62
+ fontSize: number;
63
+ };
64
+ meta: {
65
+ color: string;
66
+ fontSize: number;
67
+ };
68
+ failed: {
69
+ color: string;
70
+ };
71
+ action: {
72
+ maxWidth: string;
73
+ };
74
+ actions: {
75
+ flexDirection: "row";
76
+ flexWrap: "wrap";
77
+ gap: number;
78
+ };
79
+ }>;
80
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiD5C,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
2
+ import type { ChatAction } from '../../actions/index.js';
3
+ export type ChatAttachmentStatus = 'idle' | 'uploading' | 'processing' | 'ready' | 'failed';
4
+ export interface ChatAttachmentItem {
5
+ id: string;
6
+ name?: string;
7
+ kind?: 'image' | 'file' | 'audio' | 'video';
8
+ thumbnail?: ImageSourcePropType;
9
+ meta?: string;
10
+ status?: ChatAttachmentStatus;
11
+ statusText?: string;
12
+ progress?: number;
13
+ loadingVisual?: 'center' | 'border' | 'caption';
14
+ previewable?: boolean;
15
+ removable?: boolean;
16
+ removeDisabled?: boolean;
17
+ actions?: readonly ChatAction[];
18
+ }
19
+ export interface AttachmentsProps {
20
+ items: readonly ChatAttachmentItem[];
21
+ layout?: 'grid' | 'mixed' | 'carousel' | 'list';
22
+ showProgressLabel?: boolean;
23
+ onPreview?(item: ChatAttachmentItem): void;
24
+ onRemove?(item: ChatAttachmentItem): void;
25
+ style?: StyleProp<ViewStyle>;
26
+ testID?: string;
27
+ }
28
+ export interface AttachmentItemProps extends Pick<AttachmentsProps, 'showProgressLabel' | 'onPreview' | 'onRemove'> {
29
+ item: ChatAttachmentItem;
30
+ width?: number;
31
+ imageSize: number;
32
+ row: boolean;
33
+ }
34
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAe,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAC9B,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC3D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IAC5C,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;CACjC;AACD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAC/C,gBAAgB,EAChB,mBAAmB,GAAG,WAAW,GAAG,UAAU,CAC/C;IACC,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;CACd"}
@@ -0,0 +1,3 @@
1
+ import type { ChatProps } from './types.js';
2
+ export declare function Chat({ children, composer, header, footer, bottomInset, style, testID, }: ChatProps): import("react").JSX.Element;
3
+ //# sourceMappingURL=Chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAS,CAAC;AACzC,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,WAAe,EACf,KAAK,EACL,MAAM,GACP,EAAE,SAAS,+BAaX"}
@@ -0,0 +1,3 @@
1
+ export { Chat } from './Chat.js';
2
+ export type { ChatProps } from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,YAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ColorTokens } from '@unif/react-native-design';
2
+ export declare const createStyles: (colors: ColorTokens) => Readonly<{
3
+ root: {
4
+ flex: number;
5
+ minHeight: number;
6
+ minWidth: number;
7
+ backgroundColor: string;
8
+ };
9
+ messages: {
10
+ flex: number;
11
+ minHeight: number;
12
+ minWidth: number;
13
+ };
14
+ }>;
15
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;EAS5C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ export interface ChatProps {
4
+ children: ReactNode;
5
+ composer?: ReactNode;
6
+ header?: ReactNode;
7
+ footer?: ReactNode;
8
+ bottomInset?: number;
9
+ style?: StyleProp<ViewStyle>;
10
+ testID?: string;
11
+ }
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ import type { CitationProps } from './types.js';
2
+ export declare function Citation({ label, onPress, disabled, accessibilityLabel, testID, }: CitationProps): React.JSX.Element;
3
+ //# sourceMappingURL=Citation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Citation.d.ts","sourceRoot":"","sources":["../../../../../src/components/Citation/Citation.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7C,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,OAAO,EACP,QAAgB,EAChB,kBAAiC,EACjC,MAAM,GACP,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoBnC"}
@@ -0,0 +1,3 @@
1
+ export { Citation } from './Citation.js';
2
+ export type { CitationProps } from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Citation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAS,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ColorTokens } from '@unif/react-native-design';
2
+ export declare const createStyles: (colors: ColorTokens) => Readonly<{
3
+ citation: {
4
+ color: string;
5
+ fontSize: number;
6
+ fontWeight: "600";
7
+ };
8
+ disabled: {
9
+ color: string;
10
+ };
11
+ }>;
12
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Citation/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;EAU5C,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface CitationProps {
2
+ label: string;
3
+ onPress?(): void;
4
+ disabled?: boolean;
5
+ accessibilityLabel?: string;
6
+ testID?: string;
7
+ }
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Citation/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ import type { TextFieldHandle } from '@unif/react-native-design';
2
+ import type { ComposerProps } from './types.js';
3
+ export declare const Composer: import("react").ForwardRefExoticComponent<ComposerProps & import("react").RefAttributes<TextFieldHandle>>;
4
+ //# sourceMappingURL=Composer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/Composer.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAOjE,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7D,eAAO,MAAM,QAAQ,2GAsLpB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const DEFAULT_MAX_INPUT_HEIGHT = 120;
2
+ export declare const PRIMARY_LABELS: {
3
+ readonly send: "发送";
4
+ readonly stop: "停止回复";
5
+ readonly busy: "正在处理…";
6
+ };
7
+ export declare const VOICE_LABELS: {
8
+ readonly starting: "正在准备语音输入…";
9
+ readonly listening: "正在听取…";
10
+ readonly finishing: "正在完成识别…";
11
+ };
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AACX,eAAO,MAAM,YAAY;;;;CAIf,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Composer } from './Composer.js';
2
+ export type { ComposerBusyAction, ComposerHandle, ComposerPrimaryAction, ComposerProps, ComposerSendAction, ComposerStopAction, ComposerVoiceControl, ComposerVoiceStatus, } from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAY,CAAC;AACtC,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,YAAS,CAAC"}