stream-chat-react-native-core 5.28.1 → 5.29.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 (381) hide show
  1. package/lib/commonjs/components/Attachment/Attachment.js +2 -2
  2. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/AudioAttachment.js +247 -115
  4. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +30 -50
  6. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  7. package/lib/commonjs/components/Attachment/VideoThumbnail.js +3 -3
  8. package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
  9. package/lib/commonjs/components/Channel/Channel.js +43 -1
  10. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  11. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +24 -0
  12. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  13. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -6
  14. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  15. package/lib/commonjs/components/Message/Message.js +1 -1
  16. package/lib/commonjs/components/Message/Message.js.map +1 -1
  17. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +1 -1
  18. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  19. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +1 -1
  20. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  21. package/lib/commonjs/components/Message/hooks/useMessageActions.js +4 -2
  22. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  23. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +55 -74
  24. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  25. package/lib/commonjs/components/MessageInput/InputButtons.js +1 -1
  26. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  27. package/lib/commonjs/components/MessageInput/MessageInput.js +250 -43
  28. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  29. package/lib/commonjs/components/MessageInput/SendButton.js +9 -7
  30. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  31. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +221 -0
  32. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -0
  33. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +121 -0
  34. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -0
  35. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +68 -0
  36. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -0
  37. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +75 -0
  38. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -0
  39. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +87 -0
  40. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -0
  41. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js +47 -0
  42. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js.map +1 -0
  43. package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +452 -0
  44. package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -0
  45. package/lib/commonjs/components/MessageInput/utils/audioSampling.js +91 -0
  46. package/lib/commonjs/components/MessageInput/utils/audioSampling.js.map +1 -0
  47. package/lib/commonjs/components/MessageInput/utils/normalizeAudioLevel.js +18 -0
  48. package/lib/commonjs/components/MessageInput/utils/normalizeAudioLevel.js.map +1 -0
  49. package/lib/commonjs/components/ProgressControl/ProgressControl.js +57 -40
  50. package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
  51. package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +162 -0
  52. package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -0
  53. package/lib/commonjs/components/Reply/Reply.js +45 -20
  54. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  55. package/lib/commonjs/components/index.js +66 -0
  56. package/lib/commonjs/components/index.js.map +1 -1
  57. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +23 -12
  58. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  59. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +24 -0
  60. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  61. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +76 -28
  62. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  63. package/lib/commonjs/contexts/themeContext/utils/theme.js +62 -7
  64. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  65. package/lib/commonjs/i18n/en.json +2 -0
  66. package/lib/commonjs/i18n/es.json +2 -0
  67. package/lib/commonjs/i18n/fr.json +2 -0
  68. package/lib/commonjs/i18n/he.json +2 -0
  69. package/lib/commonjs/i18n/hi.json +2 -0
  70. package/lib/commonjs/i18n/it.json +2 -0
  71. package/lib/commonjs/i18n/ja.json +2 -0
  72. package/lib/commonjs/i18n/ko.json +2 -0
  73. package/lib/commonjs/i18n/nl.json +2 -0
  74. package/lib/commonjs/i18n/pt-BR.json +2 -0
  75. package/lib/commonjs/i18n/ru.json +2 -0
  76. package/lib/commonjs/i18n/tr.json +2 -0
  77. package/lib/commonjs/icons/ArrowLeft.js +27 -0
  78. package/lib/commonjs/icons/ArrowLeft.js.map +1 -0
  79. package/lib/commonjs/icons/ArrowUp.js +26 -0
  80. package/lib/commonjs/icons/ArrowUp.js.map +1 -0
  81. package/lib/commonjs/icons/Audio.js +24 -24
  82. package/lib/commonjs/icons/Audio.js.map +1 -1
  83. package/lib/commonjs/icons/CircleStop.js +27 -0
  84. package/lib/commonjs/icons/CircleStop.js.map +1 -0
  85. package/lib/commonjs/icons/Delete.js +17 -6
  86. package/lib/commonjs/icons/Delete.js.map +1 -1
  87. package/lib/commonjs/icons/Lock.js +30 -0
  88. package/lib/commonjs/icons/Lock.js.map +1 -0
  89. package/lib/commonjs/icons/Mic.js +30 -0
  90. package/lib/commonjs/icons/Mic.js.map +1 -0
  91. package/lib/commonjs/icons/Pause.js +15 -20
  92. package/lib/commonjs/icons/Pause.js.map +1 -1
  93. package/lib/commonjs/icons/Play.js +18 -10
  94. package/lib/commonjs/icons/Play.js.map +1 -1
  95. package/lib/commonjs/icons/SendCheck.js +30 -0
  96. package/lib/commonjs/icons/SendCheck.js.map +1 -0
  97. package/lib/commonjs/icons/SendRight.js +24 -6
  98. package/lib/commonjs/icons/SendRight.js.map +1 -1
  99. package/lib/commonjs/icons/SendUp.js +24 -6
  100. package/lib/commonjs/icons/SendUp.js.map +1 -1
  101. package/lib/commonjs/icons/Stop.js +19 -0
  102. package/lib/commonjs/icons/Stop.js.map +1 -0
  103. package/lib/commonjs/icons/index.js +77 -0
  104. package/lib/commonjs/icons/index.js.map +1 -1
  105. package/lib/commonjs/native.js +10 -1
  106. package/lib/commonjs/native.js.map +1 -1
  107. package/lib/commonjs/utils/getTrimmedAttachmentTitle.js +11 -0
  108. package/lib/commonjs/utils/getTrimmedAttachmentTitle.js.map +1 -0
  109. package/lib/commonjs/version.json +1 -1
  110. package/lib/module/components/Attachment/Attachment.js +2 -2
  111. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  112. package/lib/module/components/Attachment/AudioAttachment.js +247 -115
  113. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  114. package/lib/module/components/Attachment/FileAttachmentGroup.js +30 -50
  115. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  116. package/lib/module/components/Attachment/VideoThumbnail.js +3 -3
  117. package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
  118. package/lib/module/components/Channel/Channel.js +43 -1
  119. package/lib/module/components/Channel/Channel.js.map +1 -1
  120. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +24 -0
  121. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  122. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -6
  123. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  124. package/lib/module/components/Message/Message.js +1 -1
  125. package/lib/module/components/Message/Message.js.map +1 -1
  126. package/lib/module/components/Message/MessageSimple/MessageContent.js +1 -1
  127. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  128. package/lib/module/components/Message/MessageSimple/MessageSimple.js +1 -1
  129. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  130. package/lib/module/components/Message/hooks/useMessageActions.js +4 -2
  131. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  132. package/lib/module/components/MessageInput/FileUploadPreview.js +55 -74
  133. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  134. package/lib/module/components/MessageInput/InputButtons.js +1 -1
  135. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  136. package/lib/module/components/MessageInput/MessageInput.js +250 -43
  137. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  138. package/lib/module/components/MessageInput/SendButton.js +9 -7
  139. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  140. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +221 -0
  141. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -0
  142. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +121 -0
  143. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -0
  144. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +68 -0
  145. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -0
  146. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +75 -0
  147. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -0
  148. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +87 -0
  149. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -0
  150. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js +47 -0
  151. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js.map +1 -0
  152. package/lib/module/components/MessageInput/hooks/useAudioController.js +452 -0
  153. package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -0
  154. package/lib/module/components/MessageInput/utils/audioSampling.js +91 -0
  155. package/lib/module/components/MessageInput/utils/audioSampling.js.map +1 -0
  156. package/lib/module/components/MessageInput/utils/normalizeAudioLevel.js +18 -0
  157. package/lib/module/components/MessageInput/utils/normalizeAudioLevel.js.map +1 -0
  158. package/lib/module/components/ProgressControl/ProgressControl.js +57 -40
  159. package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
  160. package/lib/module/components/ProgressControl/WaveProgressBar.js +162 -0
  161. package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -0
  162. package/lib/module/components/Reply/Reply.js +45 -20
  163. package/lib/module/components/Reply/Reply.js.map +1 -1
  164. package/lib/module/components/index.js +66 -0
  165. package/lib/module/components/index.js.map +1 -1
  166. package/lib/module/contexts/messageInputContext/MessageInputContext.js +23 -12
  167. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  168. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +24 -0
  169. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  170. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +76 -28
  171. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  172. package/lib/module/contexts/themeContext/utils/theme.js +62 -7
  173. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  174. package/lib/module/i18n/en.json +2 -0
  175. package/lib/module/i18n/es.json +2 -0
  176. package/lib/module/i18n/fr.json +2 -0
  177. package/lib/module/i18n/he.json +2 -0
  178. package/lib/module/i18n/hi.json +2 -0
  179. package/lib/module/i18n/it.json +2 -0
  180. package/lib/module/i18n/ja.json +2 -0
  181. package/lib/module/i18n/ko.json +2 -0
  182. package/lib/module/i18n/nl.json +2 -0
  183. package/lib/module/i18n/pt-BR.json +2 -0
  184. package/lib/module/i18n/ru.json +2 -0
  185. package/lib/module/i18n/tr.json +2 -0
  186. package/lib/module/icons/ArrowLeft.js +27 -0
  187. package/lib/module/icons/ArrowLeft.js.map +1 -0
  188. package/lib/module/icons/ArrowUp.js +26 -0
  189. package/lib/module/icons/ArrowUp.js.map +1 -0
  190. package/lib/module/icons/Audio.js +24 -24
  191. package/lib/module/icons/Audio.js.map +1 -1
  192. package/lib/module/icons/CircleStop.js +27 -0
  193. package/lib/module/icons/CircleStop.js.map +1 -0
  194. package/lib/module/icons/Delete.js +17 -6
  195. package/lib/module/icons/Delete.js.map +1 -1
  196. package/lib/module/icons/Lock.js +30 -0
  197. package/lib/module/icons/Lock.js.map +1 -0
  198. package/lib/module/icons/Mic.js +30 -0
  199. package/lib/module/icons/Mic.js.map +1 -0
  200. package/lib/module/icons/Pause.js +15 -20
  201. package/lib/module/icons/Pause.js.map +1 -1
  202. package/lib/module/icons/Play.js +18 -10
  203. package/lib/module/icons/Play.js.map +1 -1
  204. package/lib/module/icons/SendCheck.js +30 -0
  205. package/lib/module/icons/SendCheck.js.map +1 -0
  206. package/lib/module/icons/SendRight.js +24 -6
  207. package/lib/module/icons/SendRight.js.map +1 -1
  208. package/lib/module/icons/SendUp.js +24 -6
  209. package/lib/module/icons/SendUp.js.map +1 -1
  210. package/lib/module/icons/Stop.js +19 -0
  211. package/lib/module/icons/Stop.js.map +1 -0
  212. package/lib/module/icons/index.js +77 -0
  213. package/lib/module/icons/index.js.map +1 -1
  214. package/lib/module/native.js +10 -1
  215. package/lib/module/native.js.map +1 -1
  216. package/lib/module/utils/getTrimmedAttachmentTitle.js +11 -0
  217. package/lib/module/utils/getTrimmedAttachmentTitle.js.map +1 -0
  218. package/lib/module/version.json +1 -1
  219. package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
  220. package/lib/typescript/components/Attachment/AudioAttachment.d.ts +3 -8
  221. package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
  222. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -1
  223. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  224. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +15 -3
  225. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
  226. package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -1
  227. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
  228. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
  229. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +1 -1
  230. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -1
  231. package/lib/typescript/components/MessageInput/InputButtons.d.ts.map +1 -1
  232. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
  233. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
  234. package/lib/typescript/components/MessageInput/SendButton.d.ts.map +1 -1
  235. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts +51 -0
  236. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -0
  237. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts +43 -0
  238. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -0
  239. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts +29 -0
  240. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -0
  241. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts +22 -0
  242. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts.map +1 -0
  243. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts +31 -0
  244. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts.map +1 -0
  245. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.d.ts +19 -0
  246. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.d.ts.map +1 -0
  247. package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts +28 -0
  248. package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -0
  249. package/lib/typescript/components/MessageInput/utils/audioSampling.d.ts +11 -0
  250. package/lib/typescript/components/MessageInput/utils/audioSampling.d.ts.map +1 -0
  251. package/lib/typescript/components/MessageInput/utils/normalizeAudioLevel.d.ts +5 -0
  252. package/lib/typescript/components/MessageInput/utils/normalizeAudioLevel.d.ts.map +1 -0
  253. package/lib/typescript/components/ProgressControl/ProgressControl.d.ts +2 -2
  254. package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
  255. package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts +11 -0
  256. package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -0
  257. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  258. package/lib/typescript/components/index.d.ts +6 -0
  259. package/lib/typescript/components/index.d.ts.map +1 -1
  260. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +70 -4
  261. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  262. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  263. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  264. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -1
  265. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +62 -7
  266. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  267. package/lib/typescript/i18n/en.json +2 -0
  268. package/lib/typescript/i18n/es.json +2 -0
  269. package/lib/typescript/i18n/fr.json +2 -0
  270. package/lib/typescript/i18n/he.json +2 -0
  271. package/lib/typescript/i18n/hi.json +2 -0
  272. package/lib/typescript/i18n/it.json +2 -0
  273. package/lib/typescript/i18n/ja.json +2 -0
  274. package/lib/typescript/i18n/ko.json +2 -0
  275. package/lib/typescript/i18n/nl.json +2 -0
  276. package/lib/typescript/i18n/pt-BR.json +2 -0
  277. package/lib/typescript/i18n/ru.json +2 -0
  278. package/lib/typescript/i18n/tr.json +2 -0
  279. package/lib/typescript/icons/ArrowLeft.d.ts +8 -0
  280. package/lib/typescript/icons/ArrowLeft.d.ts.map +1 -0
  281. package/lib/typescript/icons/ArrowUp.d.ts +9 -0
  282. package/lib/typescript/icons/ArrowUp.d.ts.map +1 -0
  283. package/lib/typescript/icons/Audio.d.ts.map +1 -1
  284. package/lib/typescript/icons/CircleStop.d.ts +8 -0
  285. package/lib/typescript/icons/CircleStop.d.ts.map +1 -0
  286. package/lib/typescript/icons/Delete.d.ts +5 -1
  287. package/lib/typescript/icons/Delete.d.ts.map +1 -1
  288. package/lib/typescript/icons/Lock.d.ts +9 -0
  289. package/lib/typescript/icons/Lock.d.ts.map +1 -0
  290. package/lib/typescript/icons/Mic.d.ts +8 -0
  291. package/lib/typescript/icons/Mic.d.ts.map +1 -0
  292. package/lib/typescript/icons/Pause.d.ts +3 -1
  293. package/lib/typescript/icons/Pause.d.ts.map +1 -1
  294. package/lib/typescript/icons/Play.d.ts +3 -1
  295. package/lib/typescript/icons/Play.d.ts.map +1 -1
  296. package/lib/typescript/icons/SendCheck.d.ts +8 -0
  297. package/lib/typescript/icons/SendCheck.d.ts.map +1 -0
  298. package/lib/typescript/icons/SendRight.d.ts +5 -1
  299. package/lib/typescript/icons/SendRight.d.ts.map +1 -1
  300. package/lib/typescript/icons/SendUp.d.ts +5 -1
  301. package/lib/typescript/icons/SendUp.d.ts.map +1 -1
  302. package/lib/typescript/icons/Stop.d.ts +4 -0
  303. package/lib/typescript/icons/Stop.d.ts.map +1 -0
  304. package/lib/typescript/icons/index.d.ts +7 -0
  305. package/lib/typescript/icons/index.d.ts.map +1 -1
  306. package/lib/typescript/native.d.ts +49 -0
  307. package/lib/typescript/native.d.ts.map +1 -1
  308. package/lib/typescript/types/types.d.ts +6 -0
  309. package/lib/typescript/types/types.d.ts.map +1 -1
  310. package/lib/typescript/utils/Streami18n.d.ts +2 -0
  311. package/lib/typescript/utils/Streami18n.d.ts.map +1 -1
  312. package/lib/typescript/utils/getTrimmedAttachmentTitle.d.ts +2 -0
  313. package/lib/typescript/utils/getTrimmedAttachmentTitle.d.ts.map +1 -0
  314. package/package.json +1 -1
  315. package/src/components/Attachment/Attachment.tsx +7 -2
  316. package/src/components/Attachment/AudioAttachment.tsx +223 -119
  317. package/src/components/Attachment/FileAttachmentGroup.tsx +35 -55
  318. package/src/components/Attachment/VideoThumbnail.tsx +1 -1
  319. package/src/components/Channel/Channel.tsx +32 -0
  320. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +24 -0
  321. package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +1 -1
  322. package/src/components/ImageGallery/__tests__/ImageGalleryVideoControl.test.tsx +2 -2
  323. package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +2 -7
  324. package/src/components/Message/Message.tsx +1 -1
  325. package/src/components/Message/MessageSimple/MessageContent.tsx +2 -1
  326. package/src/components/Message/MessageSimple/MessageSimple.tsx +2 -1
  327. package/src/components/Message/hooks/useMessageActions.tsx +2 -2
  328. package/src/components/MessageInput/FileUploadPreview.tsx +67 -98
  329. package/src/components/MessageInput/InputButtons.tsx +2 -1
  330. package/src/components/MessageInput/MessageInput.tsx +320 -49
  331. package/src/components/MessageInput/SendButton.tsx +7 -3
  332. package/src/components/MessageInput/__tests__/MessageInput.test.js +0 -1
  333. package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +132 -48
  334. package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +313 -0
  335. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +192 -0
  336. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +114 -0
  337. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +85 -0
  338. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx +102 -0
  339. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.tsx +62 -0
  340. package/src/components/MessageInput/hooks/useAudioController.tsx +288 -0
  341. package/src/components/MessageInput/utils/audioSampling.ts +108 -0
  342. package/src/components/MessageInput/utils/normalizeAudioLevel.ts +20 -0
  343. package/src/components/ProgressControl/ProgressControl.tsx +69 -40
  344. package/src/components/ProgressControl/WaveProgressBar.tsx +180 -0
  345. package/src/components/Reply/Reply.tsx +89 -56
  346. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +38 -20
  347. package/src/components/index.ts +6 -0
  348. package/src/contexts/messageInputContext/MessageInputContext.tsx +95 -10
  349. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +25 -0
  350. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +80 -27
  351. package/src/contexts/themeContext/utils/theme.ts +111 -14
  352. package/src/i18n/en.json +2 -0
  353. package/src/i18n/es.json +2 -0
  354. package/src/i18n/fr.json +2 -0
  355. package/src/i18n/he.json +2 -0
  356. package/src/i18n/hi.json +2 -0
  357. package/src/i18n/it.json +2 -0
  358. package/src/i18n/ja.json +2 -0
  359. package/src/i18n/ko.json +2 -0
  360. package/src/i18n/nl.json +2 -0
  361. package/src/i18n/pt-BR.json +2 -0
  362. package/src/i18n/ru.json +2 -0
  363. package/src/i18n/tr.json +2 -0
  364. package/src/icons/ArrowLeft.tsx +18 -0
  365. package/src/icons/ArrowUp.tsx +19 -0
  366. package/src/icons/Audio.tsx +24 -24
  367. package/src/icons/CircleStop.tsx +18 -0
  368. package/src/icons/Delete.tsx +14 -8
  369. package/src/icons/Lock.tsx +22 -0
  370. package/src/icons/Mic.tsx +20 -0
  371. package/src/icons/Pause.tsx +12 -11
  372. package/src/icons/Play.tsx +9 -13
  373. package/src/icons/SendCheck.tsx +18 -0
  374. package/src/icons/SendRight.tsx +16 -7
  375. package/src/icons/SendUp.tsx +16 -7
  376. package/src/icons/Stop.tsx +12 -0
  377. package/src/icons/index.ts +7 -0
  378. package/src/native.ts +69 -0
  379. package/src/types/types.ts +6 -0
  380. package/src/utils/getTrimmedAttachmentTitle.ts +5 -0
  381. package/src/version.json +1 -1
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { MessageInputContextValue } from '../../../../contexts/messageInputContext/MessageInputContext';
3
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
4
+ type AudioRecordingInProgressPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'AudioRecordingWaveform'> & {
5
+ /**
6
+ * The waveform data to be presented to show the audio levels.
7
+ */
8
+ waveformData: number[];
9
+ /**
10
+ * Maximum number of waveform lines that should be rendered in the UI.
11
+ */
12
+ maxDataPointsDrawn?: number;
13
+ /**
14
+ * The duration of the voice recording.
15
+ */
16
+ recordingDuration?: number;
17
+ };
18
+ export type AudioRecordingInProgressProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AudioRecordingInProgressPropsWithContext<StreamChatGenerics>> & {
19
+ waveformData: number[];
20
+ };
21
+ /**
22
+ * Component displayed when the audio is in the recording state.
23
+ */
24
+ export declare const AudioRecordingInProgress: {
25
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AudioRecordingInProgressProps<StreamChatGenerics>): React.JSX.Element;
26
+ displayName: string;
27
+ };
28
+ export {};
29
+ //# sourceMappingURL=AudioRecordingInProgress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioRecordingInProgress.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,8DAA8D,CAAC;AAGtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,KAAK,wCAAwC,CAC3C,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,GAAG;IACjF;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAqDF,MAAM,MAAM,6BAA6B,CACvC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,wCAAwC,CAAC,kBAAkB,CAAC,CAAC,GAAG;IAC1E,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;CAQpC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ export type AudioRecordingLockIndicatorProps = {
4
+ /**
5
+ * Boolean used to show if the voice recording state is locked. This makes sure the mic button shouldn't be pressed any longer.
6
+ * When the mic is locked the `AudioRecordingInProgress` component shows up.
7
+ */
8
+ micLocked: boolean;
9
+ /**
10
+ * Height of the message input, to apply necessary position adjustments to this component.
11
+ */
12
+ messageInputHeight?: number;
13
+ /**
14
+ * Styles of the lock indicator.
15
+ */
16
+ style?: StyleProp<ViewStyle>;
17
+ };
18
+ /**
19
+ * Component displayed to show the lock state of the recording when the button is slided up.
20
+ */
21
+ export declare const AudioRecordingLockIndicator: ({ messageInputHeight, micLocked, style, }: AudioRecordingLockIndicatorProps) => React.JSX.Element | null;
22
+ //# sourceMappingURL=AudioRecordingLockIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioRecordingLockIndicator.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAOhE,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,8CAIrC,gCAAgC,6BA0ClC,CAAC"}
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ export type AudioRecordingPreviewProps = {
3
+ /**
4
+ * Boolean used to show the paused state of the player.
5
+ */
6
+ paused: boolean;
7
+ /**
8
+ * Number used to show the current position of the audio being played.
9
+ */
10
+ position: number;
11
+ /**
12
+ * Number used to show the percentage of progress of the audio being played. It should be in 0-1 range.
13
+ */
14
+ progress: number;
15
+ /**
16
+ * The waveform data to be presented to show the audio levels.
17
+ */
18
+ waveformData: number[];
19
+ /**
20
+ * Function to play or pause the audio player.
21
+ */
22
+ onVoicePlayerPlayPause?: () => Promise<void>;
23
+ };
24
+ /**
25
+ * Component displayed when the audio is recorded and can be previewed.
26
+ */
27
+ export declare const AudioRecordingPreview: {
28
+ (props: AudioRecordingPreviewProps): React.JSX.Element;
29
+ displayName: string;
30
+ };
31
+ //# sourceMappingURL=AudioRecordingPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioRecordingPreview.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;YAAW,0BAA0B;;CAwCtE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export type AudioRecordingWaveformProps = {
3
+ /**
4
+ * Maximum number of waveform lines that should be rendered in the UI.
5
+ */
6
+ maxDataPointsDrawn: number;
7
+ /**
8
+ * The waveform data to be presented to show the audio levels.
9
+ */
10
+ waveformData: number[];
11
+ };
12
+ /**
13
+ * Waveform Component displayed when the audio is in the recording state.
14
+ */
15
+ export declare const AudioRecordingWaveform: {
16
+ (props: AudioRecordingWaveformProps): React.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ //# sourceMappingURL=AudioRecordingWaveform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioRecordingWaveform.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;YAAW,2BAA2B;;CA2BxE,CAAC"}
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { AudioRecordingReturnType } from '../../../native';
3
+ export type RecordingStatusStates = 'idle' | 'recording' | 'stopped';
4
+ /**
5
+ * The hook that controls all the async audio core features including start/stop or recording, player, upload/delete of the recorded audio.
6
+ */
7
+ export declare const useAudioController: () => {
8
+ deleteVoiceRecording: () => Promise<void>;
9
+ micLocked: boolean;
10
+ onVoicePlayerPlayPause: () => Promise<void>;
11
+ paused: boolean;
12
+ permissionsGranted: boolean;
13
+ position: number;
14
+ progress: number;
15
+ recording: AudioRecordingReturnType;
16
+ recordingDuration: number;
17
+ recordingStatus: RecordingStatusStates;
18
+ setMicLocked: import("react").Dispatch<import("react").SetStateAction<boolean>>;
19
+ setRecording: import("react").Dispatch<import("react").SetStateAction<AudioRecordingReturnType>>;
20
+ setRecordingDuration: import("react").Dispatch<import("react").SetStateAction<number>>;
21
+ setRecordingStatus: import("react").Dispatch<import("react").SetStateAction<RecordingStatusStates>>;
22
+ setWaveformData: import("react").Dispatch<import("react").SetStateAction<number[]>>;
23
+ startVoiceRecording: () => Promise<void>;
24
+ stopVoiceRecording: () => Promise<void>;
25
+ uploadVoiceRecording: (multiSendEnabled: boolean) => Promise<void>;
26
+ waveformData: number[];
27
+ };
28
+ //# sourceMappingURL=useAudioController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAudioController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/hooks/useAudioController.tsx"],"names":[],"mappings":";AAKA,OAAO,EAEL,wBAAwB,EAMzB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;6CAoNyB,OAAO;;CAoD9D,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const resampleWaveformData: (waveformData: number[], amplitudesCount: number) => number[];
2
+ /**
3
+ * The downSample function uses the Largest-Triangle-Three-Buckets (LTTB) algorithm.
4
+ * See the thesis Downsampling Time Series for Visual Representation by Sveinn Steinarsson for more (https://skemman.is/bitstream/1946/15343/3/SS_MSthesis.pdf)
5
+ * @param data
6
+ * @param targetOutputSize
7
+ */
8
+ export declare function downSample(data: number[], targetOutputSize: number): number[];
9
+ export declare const divMod: (num: number, divisor: number) => number[];
10
+ export declare const upSample: (values: number[], targetSize: number) => number[];
11
+ //# sourceMappingURL=audioSampling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audioSampling.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/utils/audioSampling.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,iBAAkB,MAAM,EAAE,mBAAmB,MAAM,aAKvC,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAoD7E;AASD,eAAO,MAAM,MAAM,QAAS,MAAM,WAAW,MAAM,aAA+C,CAAC;AAWnG,eAAO,MAAM,QAAQ,WAAY,MAAM,EAAE,cAAc,MAAM,aAsB5D,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Utility function to normalize the audio level.
3
+ */
4
+ export declare const normalizeAudioLevel: (value: number, lowerBound: number) => number;
5
+ //# sourceMappingURL=normalizeAudioLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeAudioLevel.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/utils/normalizeAudioLevel.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAAW,MAAM,cAAc,MAAM,WAgBpE,CAAC"}
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  export type ProgressControlProps = {
3
3
  duration: number;
4
4
  filledColor: string;
5
- onPlayPause: (status?: boolean) => void;
6
5
  progress: number;
7
6
  testID: string;
8
- width: number;
7
+ width: number | string;
8
+ onPlayPause?: (status?: boolean) => void;
9
9
  onProgressDrag?: (progress: number) => void;
10
10
  };
11
11
  export declare const ProgressControl: React.MemoExoticComponent<(props: ProgressControlProps) => React.JSX.Element>;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressControl.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/ProgressControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAazC,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAuCF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBAmE7B,CAAC"}
1
+ {"version":3,"file":"ProgressControl.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/ProgressControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAazC,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAoBF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBA4F7B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export type WaveProgressBarProps = {
3
+ progress: number;
4
+ waveformData: number[];
5
+ amplitudesCount?: number;
6
+ filledColor?: string;
7
+ onPlayPause?: (status?: boolean) => void;
8
+ onProgressDrag?: (progress: number) => void;
9
+ };
10
+ export declare const WaveProgressBar: React.MemoExoticComponent<(props: WaveProgressBarProps) => React.JSX.Element>;
11
+ //# sourceMappingURL=WaveProgressBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WaveProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/WaveProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AA2BF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBAqG7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Reply.d.ts","sourceRoot":"","sources":["../../../../src/components/Reply/Reply.ts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AAO,EAEL,wBAAwB,EACzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAkDnE,KAAK,qBAAqB,CACxB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,GACrE,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,oBAAoB,GAAG,eAAe,CAAC,GACtF,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAAG;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,SAAS,CAAC;QACrB,uBAAuB,EAAE,SAAS,CAAC;QACnC,eAAe,EAAE,UAAU,CAAC;QAC5B,gBAAgB,EAAE,SAAS,CAAC;QAC5B,aAAa,EAAE,SAAS,CAAC;KAC1B,CAAC,CAAC;CACJ,CAAC;AAmRJ,MAAM,MAAM,UAAU,CACpB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,KAAK;;;CA+BjB,CAAC"}
@@ -102,6 +102,12 @@ export * from './Message/utils/messageActions';
102
102
  export * from '../utils/removeReservedFields';
103
103
  export * from './MessageInput/AttachButton';
104
104
  export * from './MessageInput/CommandsButton';
105
+ export * from './MessageInput/components/AudioRecorder/AudioRecorder';
106
+ export * from './MessageInput/components/AudioRecorder/AudioRecordingButton';
107
+ export * from './MessageInput/components/AudioRecorder/AudioRecordingInProgress';
108
+ export * from './MessageInput/components/AudioRecorder/AudioRecordingLockIndicator';
109
+ export * from './MessageInput/components/AudioRecorder/AudioRecordingPreview';
110
+ export * from './MessageInput/components/AudioRecorder/AudioRecordingWaveform';
105
111
  export * from './MessageInput/CooldownTimer';
106
112
  export * from './MessageInput/FileUploadPreview';
107
113
  export * from './MessageInput/ImageUploadPreview';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8CAA8C,CAAC;AAE7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,iEAAiE,CAAC;AAChF,cAAc,qDAAqD,CAAC;AACpE,cAAc,0DAA0D,CAAC;AACzE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAEhE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAE/D,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AAErC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yCAAyC,CAAC;AACxD,cAAc,mDAAmD,CAAC;AAClE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAA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AAEvD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAElD,cAAc,kDAAkD,CAAC;AACjE,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AAErD,cAAc,mCAAmC,CAAC;AAElD,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2CAA2C,CAAC"}
@@ -2,8 +2,15 @@ import type { LegacyRef } from 'react';
2
2
  import React, { PropsWithChildren } from 'react';
3
3
  import type { TextInput, TextInputProps } from 'react-native';
4
4
  import { Attachment, Message, SendFileAPIResponse, StreamChat, Message as StreamMessage, UserFilters, UserOptions, UserResponse, UserSort } from 'stream-chat';
5
+ import { AudioAttachmentProps } from '../../components/Attachment/AudioAttachment';
5
6
  import type { AttachButtonProps } from '../../components/MessageInput/AttachButton';
6
7
  import type { CommandsButtonProps } from '../../components/MessageInput/CommandsButton';
8
+ import type { AudioRecorderProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecorder';
9
+ import type { AudioRecordingButtonProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingButton';
10
+ import type { AudioRecordingInProgressProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingInProgress';
11
+ import type { AudioRecordingLockIndicatorProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator';
12
+ import type { AudioRecordingPreviewProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingPreview';
13
+ import type { AudioRecordingWaveformProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingWaveform';
7
14
  import type { InputEditingStateHeaderProps } from '../../components/MessageInput/components/InputEditingStateHeader';
8
15
  import type { InputGiphySearchProps } from '../../components/MessageInput/components/InputGiphySearch';
9
16
  import type { InputReplyStateHeaderProps } from '../../components/MessageInput/components/InputReplyStateHeader';
@@ -134,9 +141,6 @@ export type LocalMessageInputContext<StreamChatGenerics extends DefaultStreamCha
134
141
  setShowMoreOptions: React.Dispatch<React.SetStateAction<boolean>>;
135
142
  setText: React.Dispatch<React.SetStateAction<string>>;
136
143
  showMoreOptions: boolean;
137
- /**
138
- * Text value of the TextInput
139
- */
140
144
  text: string;
141
145
  toggleAttachmentPicker: () => void;
142
146
  /**
@@ -156,12 +160,68 @@ export type LocalMessageInputContext<StreamChatGenerics extends DefaultStreamCha
156
160
  uploadNewImage: (image: Partial<Asset>) => Promise<void>;
157
161
  };
158
162
  export type InputMessageInputContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'> & {
163
+ /**
164
+ * Controls how many pixels to the top side the user has to scroll in order to lock the recording view and allow the user to lift their finger from the screen without stopping the recording.
165
+ */
166
+ asyncMessagesLockDistance: number;
167
+ /**
168
+ * Controls the minimum duration that the user has to press on the record button in the composer, in order to start recording a new voice message.
169
+ */
170
+ asyncMessagesMinimumPressDuration: number;
171
+ /**
172
+ * When it’s enabled, recorded messages won’t be sent immediately. Instead they will “stack up” in the composer allowing the user to send multiple voice recording as part of the same message.
173
+ */
174
+ asyncMessagesMultiSendEnabled: boolean;
175
+ /**
176
+ * Controls how many pixels to the leading side the user has to scroll in order to cancel the recording of a voice message.
177
+ */
178
+ asyncMessagesSlideToCancelDistance: number;
159
179
  /**
160
180
  * Custom UI component for attach button.
161
181
  *
162
182
  * Defaults to and accepts same props as: [AttachButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/attach-button/)
163
183
  */
164
184
  AttachButton: React.ComponentType<AttachButtonProps<StreamChatGenerics>>;
185
+ /**
186
+ * Custom UI component for audio attachment upload preview.
187
+ *
188
+ * Defaults to and accepts same props as: [AudioAttachmentUploadPreview](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/AudioAttachment.tsx)
189
+ */
190
+ AudioAttachmentUploadPreview: React.ComponentType<AudioAttachmentProps>;
191
+ /**
192
+ * Custom UI component for audio recorder UI.
193
+ *
194
+ * Defaults to and accepts same props as: [AudioRecorder](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/AudioRecorder.tsx)
195
+ */
196
+ AudioRecorder: React.ComponentType<AudioRecorderProps<StreamChatGenerics>>;
197
+ /**
198
+ * Controls whether the async audio feature is enabled.
199
+ */
200
+ audioRecordingEnabled: boolean;
201
+ /**
202
+ * Custom UI component to render audio recording in progress.
203
+ *
204
+ * **Default** [AudioRecordingInProgress](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx)
205
+ */
206
+ AudioRecordingInProgress: React.ComponentType<AudioRecordingInProgressProps>;
207
+ /**
208
+ * Custom UI component for audio recording lock indicator.
209
+ *
210
+ * Defaults to and accepts same props as: [AudioRecordingLockIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx)
211
+ */
212
+ AudioRecordingLockIndicator: React.ComponentType<AudioRecordingLockIndicatorProps>;
213
+ /**
214
+ * Custom UI component to render audio recording preview.
215
+ *
216
+ * **Default** [AudioRecordingPreview](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx)
217
+ */
218
+ AudioRecordingPreview: React.ComponentType<AudioRecordingPreviewProps>;
219
+ /**
220
+ * Custom UI component to render audio recording waveform.
221
+ *
222
+ * **Default** [AudioRecordingWaveform](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.tsx)
223
+ */
224
+ AudioRecordingWaveform: React.ComponentType<AudioRecordingWaveformProps>;
165
225
  clearEditingState: () => void;
166
226
  clearQuotedMessageState: () => void;
167
227
  /**
@@ -225,6 +285,12 @@ export type InputMessageInputContextValue<StreamChatGenerics extends DefaultStre
225
285
  ShowThreadMessageInChannelButton: React.ComponentType<{
226
286
  threadList?: boolean;
227
287
  }>;
288
+ /**
289
+ * Custom UI component for audio recording mic button.
290
+ *
291
+ * Defaults to and accepts same props as: [AudioRecordingButton](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx)
292
+ */
293
+ StartAudioRecordingButton: React.ComponentType<AudioRecordingButtonProps<StreamChatGenerics>>;
228
294
  /**
229
295
  * Custom UI component to render upload progress indicator on attachment preview.
230
296
  *
@@ -338,5 +404,5 @@ export declare const useMessageInputContext: <StreamChatGenerics extends Default
338
404
  * typing is desired while using the HOC withMessageInputContext the Props for the
339
405
  * wrapped component must be provided as the first generic.
340
406
  */
341
- export declare const withMessageInputContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, "disabled" | "numberOfLines" | "maxNumberOfFiles" | "compressImageQuality" | "setQuotedMessageState" | "AttachButton" | "clearEditingState" | "clearQuotedMessageState" | "CommandsButton" | "CooldownTimer" | "editMessage" | "FileUploadPreview" | "hasCommands" | "hasFilePicker" | "hasImagePicker" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "MoreOptionsButton" | "quotedMessage" | "SendButton" | "sendImageAsync" | "ShowThreadMessageInChannelButton" | "UploadProgressIndicator" | "additionalTextInputProps" | "autoCompleteSuggestionsLimit" | "autoCompleteTriggerSettings" | "doDocUploadRequest" | "doImageUploadRequest" | "editing" | "emojiSearchIndex" | "initialValue" | "Input" | "InputButtons" | "maxMessageLength" | "mentionAllAppUsersEnabled" | "mentionAllAppUsersQuery" | "onChangeText" | "SendMessageDisallowedIndicator" | "setInputRef" | keyof LocalMessageInputContext<StreamChatGenerics>>>;
407
+ export declare const withMessageInputContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, "disabled" | "numberOfLines" | "maxNumberOfFiles" | "compressImageQuality" | "setQuotedMessageState" | "asyncMessagesLockDistance" | "asyncMessagesMinimumPressDuration" | "asyncMessagesMultiSendEnabled" | "asyncMessagesSlideToCancelDistance" | "AttachButton" | "AudioAttachmentUploadPreview" | "AudioRecorder" | "audioRecordingEnabled" | "AudioRecordingInProgress" | "AudioRecordingLockIndicator" | "AudioRecordingPreview" | "AudioRecordingWaveform" | "clearEditingState" | "clearQuotedMessageState" | "CommandsButton" | "CooldownTimer" | "editMessage" | "FileUploadPreview" | "hasCommands" | "hasFilePicker" | "hasImagePicker" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "MoreOptionsButton" | "quotedMessage" | "SendButton" | "sendImageAsync" | "ShowThreadMessageInChannelButton" | "StartAudioRecordingButton" | "UploadProgressIndicator" | "additionalTextInputProps" | "autoCompleteSuggestionsLimit" | "autoCompleteTriggerSettings" | "doDocUploadRequest" | "doImageUploadRequest" | "editing" | "emojiSearchIndex" | "initialValue" | "Input" | "InputButtons" | "maxMessageLength" | "mentionAllAppUsersEnabled" | "mentionAllAppUsersQuery" | "onChangeText" | "SendMessageDisallowedIndicator" | "setInputRef" | keyof LocalMessageInputContext<StreamChatGenerics>>>;
342
408
  //# sourceMappingURL=MessageInputContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageInputContext/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAA2C,MAAM,OAAO,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9D,OAAO,EACL,UAAU,EAEV,OAAO,EACP,mBAAmB,EACnB,UAAU,EACV,OAAO,IAAI,aAAa,EACxB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACT,MAAM,aAAa,CAAC;AAMrB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AACrH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAE9F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,KAAK,EAAE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kBAAkB,CAAC,EAAE,CAAC;KACpD,CACJ,CAAC;IACF;;;;;;;;;;;;;;OAcG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,kFAAkF;IAClF,uBAAuB,CAAC,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;IACtE;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,8BAA8B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,wBAAwB,CAAC,kBAAkB,CAAC,GAC9C,IAAI,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,oEAE/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;wBA2zBhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,sIAclC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,umCAiBnC,CAAC"}
1
+ {"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageInputContext/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAA2C,MAAM,OAAO,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9D,OAAO,EACL,UAAU,EAEV,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AC;IACrD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,wBAAwB,CAAC,kBAAkB,CAAC,GAC9C,IAAI,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,oEAE/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;wBA40BhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,sIAclC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,i9CAiBnC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { DefaultStreamChatGenerics } from '../../../types/types';
2
2
  import type { ThreadContextValue } from '../../threadContext/ThreadContext';
3
3
  import type { MessageInputContextValue } from '../MessageInputContext';
4
- export declare const useCreateMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, appendText, asyncIds, asyncUploads, AttachButton, autoCompleteSuggestionsLimit, clearEditingState, clearQuotedMessageState, closeAttachmentPicker, CommandsButton, compressImageQuality, cooldownEndsAt, CooldownTimer, disabled, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, fileUploads, giphyActive, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, imageUploads, initialValue, Input, inputBoxRef, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, isValidMessage, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, mentionedUsers, MoreOptionsButton, numberOfLines, numberOfUploads, onChange, onChangeText, onSelectItem, openAttachmentPicker, openCommandsPicker, openFilePicker, openMentionsPicker, pickFile, quotedMessage, removeFile, removeImage, resetInput, selectedPicker, SendButton, sendImageAsync, sending, sendMessage, sendMessageAsync, SendMessageDisallowedIndicator, sendThreadMessageInChannel, setAsyncIds, setAsyncUploads, setFileUploads, setGiphyActive, setImageUploads, setInputBoxRef, setInputRef, setMentionedUsers, setNumberOfUploads, setQuotedMessageState, setSendThreadMessageInChannel, setShowMoreOptions, setText, showMoreOptions, ShowThreadMessageInChannelButton, text, thread, toggleAttachmentPicker, triggerSettings, updateMessage, uploadFile, uploadImage, uploadNewFile, uploadNewImage, UploadProgressIndicator, }: import("../MessageInputContext").LocalMessageInputContext<StreamChatGenerics> & Omit<import("../MessageInputContext").InputMessageInputContextValue<StreamChatGenerics>, "sendMessage"> & Pick<ThreadContextValue<StreamChatGenerics>, "thread">) => MessageInputContextValue<StreamChatGenerics>;
4
+ export declare const useCreateMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, appendText, asyncIds, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, asyncUploads, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, clearEditingState, clearQuotedMessageState, closeAttachmentPicker, CommandsButton, compressImageQuality, cooldownEndsAt, CooldownTimer, disabled, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, fileUploads, giphyActive, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, imageUploads, initialValue, Input, inputBoxRef, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, isValidMessage, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, mentionedUsers, MoreOptionsButton, numberOfLines, numberOfUploads, onChange, onChangeText, onSelectItem, openAttachmentPicker, openCommandsPicker, openFilePicker, openMentionsPicker, pickFile, quotedMessage, removeFile, removeImage, resetInput, selectedPicker, SendButton, sendImageAsync, sending, sendMessage, sendMessageAsync, SendMessageDisallowedIndicator, sendThreadMessageInChannel, setAsyncIds, setAsyncUploads, setFileUploads, setGiphyActive, setImageUploads, setInputBoxRef, setInputRef, setMentionedUsers, setNumberOfUploads, setQuotedMessageState, setSendThreadMessageInChannel, setShowMoreOptions, setText, showMoreOptions, ShowThreadMessageInChannelButton, StartAudioRecordingButton, text, thread, toggleAttachmentPicker, triggerSettings, updateMessage, uploadFile, uploadImage, uploadNewFile, uploadNewImage, UploadProgressIndicator, }: import("../MessageInputContext").LocalMessageInputContext<StreamChatGenerics> & Omit<import("../MessageInputContext").InputMessageInputContextValue<StreamChatGenerics>, "sendMessage"> & Pick<ThreadContextValue<StreamChatGenerics>, "thread">) => MessageInputContextValue<StreamChatGenerics>;
5
5
  //# sourceMappingURL=useCreateMessageInputContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,m1DA2NxC,CAAC"}
1
+ {"version":3,"file":"useCreateMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,ypEAoPxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageDetailsForState.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG/F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,yBAAyB,6KAIrB,MAAM;;;;;;;;;;;;;CAiGtB,CAAC"}
1
+ {"version":3,"file":"useMessageDetailsForState.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG/F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,yBAAyB,6KAIrB,MAAM;;;;;;;;;;;;;CAoJtB,CAAC"}
@@ -91,6 +91,16 @@ export type Theme = {
91
91
  container: ViewStyle;
92
92
  icon: ViewStyle;
93
93
  };
94
+ audioAttachment: {
95
+ container: ViewStyle;
96
+ leftContainer: ViewStyle;
97
+ playPauseButton: ViewStyle;
98
+ progressControlContainer: ViewStyle;
99
+ progressDurationText: TextStyle;
100
+ rightContainer: ViewStyle;
101
+ speedChangeButton: ViewStyle;
102
+ speedChangeButtonText: TextStyle;
103
+ };
94
104
  avatar: {
95
105
  BASE_AVATAR_SIZE: number;
96
106
  container: ViewStyle;
@@ -227,6 +237,44 @@ export type Theme = {
227
237
  attachButton: ViewStyle;
228
238
  attachButtonContainer: ViewStyle;
229
239
  attachmentSelectionBar: ViewStyle;
240
+ attachmentSeparator: ViewStyle;
241
+ audioRecorder: {
242
+ arrowLeftIcon: IconProps;
243
+ checkContainer: ViewStyle;
244
+ circleStopIcon: IconProps;
245
+ deleteContainer: ViewStyle;
246
+ deleteIcon: IconProps;
247
+ micContainer: ViewStyle;
248
+ micIcon: IconProps;
249
+ pausedContainer: ViewStyle;
250
+ sendCheckIcon: IconProps;
251
+ slideToCancelContainer: ViewStyle;
252
+ };
253
+ audioRecordingButton: {
254
+ container: ViewStyle;
255
+ micIcon: IconProps;
256
+ };
257
+ audioRecordingInProgress: {
258
+ container: ViewStyle;
259
+ durationText: TextStyle;
260
+ };
261
+ audioRecordingLockIndicator: {
262
+ arrowUpIcon: IconProps;
263
+ container: ViewStyle;
264
+ lockIcon: IconProps;
265
+ };
266
+ audioRecordingPreview: {
267
+ container: ViewStyle;
268
+ currentTime: TextStyle;
269
+ infoContainer: ViewStyle;
270
+ pauseIcon: IconProps;
271
+ playIcon: IconProps;
272
+ progressBar: ViewStyle;
273
+ };
274
+ audioRecordingWaveform: {
275
+ container: ViewStyle;
276
+ waveform: ViewStyle;
277
+ };
230
278
  autoCompleteInputContainer: ViewStyle;
231
279
  commandsButton: ViewStyle;
232
280
  commandsButtonContainer: ViewStyle;
@@ -244,15 +292,8 @@ export type Theme = {
244
292
  editingBoxHeaderTitle: TextStyle;
245
293
  };
246
294
  fileUploadPreview: {
247
- audioAttachment: {
248
- progressControlView: ViewStyle;
249
- progressDurationText: TextStyle;
250
- roundedView: ViewStyle;
251
- };
252
- audioAttachmentFileContainer: ViewStyle;
253
295
  dismiss: ViewStyle;
254
296
  fileContainer: ViewStyle;
255
- fileContentContainer: ViewStyle;
256
297
  filenameText: TextStyle;
257
298
  fileSizeText: TextStyle;
258
299
  fileTextContainer: ViewStyle;
@@ -272,6 +313,7 @@ export type Theme = {
272
313
  };
273
314
  inputBox: TextStyle;
274
315
  inputBoxContainer: ViewStyle;
316
+ micButtonContainer: ViewStyle;
275
317
  moreOptionsButton: ViewStyle;
276
318
  optionsContainer: ViewStyle;
277
319
  replyContainer: ViewStyle;
@@ -434,6 +476,7 @@ export type Theme = {
434
476
  title: TextStyle;
435
477
  };
436
478
  fileAttachmentGroup: {
479
+ attachmentContainer: ViewStyle;
437
480
  container: ViewStyle;
438
481
  };
439
482
  gallery: {
@@ -542,12 +585,19 @@ export type Theme = {
542
585
  reactionSize: number;
543
586
  };
544
587
  };
588
+ progressControl: {
589
+ container: ViewStyle;
590
+ filledColor: ColorValue;
591
+ filledStyles: ViewStyle;
592
+ thumb: ViewStyle;
593
+ };
545
594
  reply: {
546
595
  container: ViewStyle;
547
596
  fileAttachmentContainer: ViewStyle;
548
597
  imageAttachment: ImageStyle;
549
598
  markdownStyles: MarkdownStyle;
550
599
  messageContainer: ViewStyle;
600
+ secondaryText: ViewStyle;
551
601
  textContainer: ViewStyle;
552
602
  videoThumbnail: {
553
603
  container: ViewStyle;
@@ -570,6 +620,11 @@ export type Theme = {
570
620
  fontSize: TextStyle['fontSize'];
571
621
  };
572
622
  };
623
+ waveProgressBar: {
624
+ container: ViewStyle;
625
+ thumb: ViewStyle;
626
+ waveform: ViewStyle;
627
+ };
573
628
  };
574
629
  export declare const defaultTheme: Theme;
575
630
  //# sourceMappingURL=theme.d.ts.map