@kesha-antonov/react-native-chat 5.0.0 → 6.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 (1329) hide show
  1. package/README.md +533 -179
  2. package/lib/Actions.d.ts.map +1 -1
  3. package/lib/Actions.js +121 -42
  4. package/lib/Actions.js.map +1 -1
  5. package/lib/Avatar.d.ts.map +1 -1
  6. package/lib/Avatar.js +171 -86
  7. package/lib/Avatar.js.map +1 -1
  8. package/lib/Bubble/BubbleBody.d.ts +15 -0
  9. package/lib/Bubble/BubbleBody.d.ts.map +1 -0
  10. package/lib/Bubble/BubbleBody.js +218 -0
  11. package/lib/Bubble/BubbleBody.js.map +1 -0
  12. package/lib/Bubble/BubbleContent.d.ts +23 -0
  13. package/lib/Bubble/BubbleContent.d.ts.map +1 -0
  14. package/lib/Bubble/BubbleContent.js +446 -0
  15. package/lib/Bubble/BubbleContent.js.map +1 -0
  16. package/lib/Bubble/BubbleMenu.d.ts +45 -0
  17. package/lib/Bubble/BubbleMenu.d.ts.map +1 -0
  18. package/lib/Bubble/BubbleMenu.js +289 -0
  19. package/lib/Bubble/BubbleMenu.js.map +1 -0
  20. package/lib/Bubble/BubbleMeta.d.ts +17 -0
  21. package/lib/Bubble/BubbleMeta.d.ts.map +1 -0
  22. package/lib/Bubble/BubbleMeta.js +453 -0
  23. package/lib/Bubble/BubbleMeta.js.map +1 -0
  24. package/lib/Bubble/LiftedBubble.d.ts +18 -0
  25. package/lib/Bubble/LiftedBubble.d.ts.map +1 -0
  26. package/lib/Bubble/LiftedBubble.js +109 -0
  27. package/lib/Bubble/LiftedBubble.js.map +1 -0
  28. package/lib/Bubble/PressableBubbleRow.d.ts +33 -0
  29. package/lib/Bubble/PressableBubbleRow.d.ts.map +1 -0
  30. package/lib/Bubble/PressableBubbleRow.js +172 -0
  31. package/lib/Bubble/PressableBubbleRow.js.map +1 -0
  32. package/lib/Bubble/index.d.ts +6 -0
  33. package/lib/Bubble/index.d.ts.map +1 -1
  34. package/lib/Bubble/index.js +380 -494
  35. package/lib/Bubble/index.js.map +1 -1
  36. package/lib/Bubble/layout.d.ts +47 -0
  37. package/lib/Bubble/layout.d.ts.map +1 -0
  38. package/lib/Bubble/layout.js +258 -0
  39. package/lib/Bubble/layout.js.map +1 -0
  40. package/lib/Bubble/styles.d.ts +108 -16
  41. package/lib/Bubble/styles.d.ts.map +1 -1
  42. package/lib/Bubble/styles.js +227 -107
  43. package/lib/Bubble/styles.js.map +1 -1
  44. package/lib/Bubble/types.d.ts +19 -3
  45. package/lib/Bubble/types.d.ts.map +1 -1
  46. package/lib/Bubble/types.js.map +1 -1
  47. package/lib/Chat/Chat.d.ts +5 -0
  48. package/lib/Chat/Chat.d.ts.map +1 -0
  49. package/lib/Chat/Chat.js +464 -0
  50. package/lib/Chat/Chat.js.map +1 -0
  51. package/lib/Chat/ChatBackground.d.ts +16 -0
  52. package/lib/Chat/ChatBackground.d.ts.map +1 -0
  53. package/lib/Chat/ChatBackground.js +43 -0
  54. package/lib/Chat/ChatBackground.js.map +1 -0
  55. package/lib/Chat/ChatKeyboardAvoidingView.js +19 -4
  56. package/lib/Chat/ChatKeyboardAvoidingView.js.map +1 -1
  57. package/lib/Chat/ChatMessageList.d.ts +27 -0
  58. package/lib/Chat/ChatMessageList.d.ts.map +1 -0
  59. package/lib/Chat/ChatMessageList.js +220 -0
  60. package/lib/Chat/ChatMessageList.js.map +1 -0
  61. package/lib/Chat/ChatProviders.d.ts +18 -0
  62. package/lib/Chat/ChatProviders.d.ts.map +1 -0
  63. package/lib/Chat/ChatProviders.js +87 -0
  64. package/lib/Chat/ChatProviders.js.map +1 -0
  65. package/lib/Chat/ChatSafeAreaProvider.d.ts +35 -0
  66. package/lib/Chat/ChatSafeAreaProvider.d.ts.map +1 -0
  67. package/lib/Chat/ChatSafeAreaProvider.js +123 -0
  68. package/lib/Chat/ChatSafeAreaProvider.js.map +1 -0
  69. package/lib/Chat/ChatSelectionBar.d.ts +20 -0
  70. package/lib/Chat/ChatSelectionBar.d.ts.map +1 -0
  71. package/lib/Chat/ChatSelectionBar.js +141 -0
  72. package/lib/Chat/ChatSelectionBar.js.map +1 -0
  73. package/lib/Chat/ChatWrapper.d.ts +11 -0
  74. package/lib/Chat/ChatWrapper.d.ts.map +1 -0
  75. package/lib/Chat/ChatWrapper.js +98 -0
  76. package/lib/Chat/ChatWrapper.js.map +1 -0
  77. package/lib/Chat/ComposerHost.d.ts +20 -0
  78. package/lib/Chat/ComposerHost.d.ts.map +1 -0
  79. package/lib/Chat/ComposerHost.js +118 -0
  80. package/lib/Chat/ComposerHost.js.map +1 -0
  81. package/lib/Chat/index.d.ts +1 -8
  82. package/lib/Chat/index.d.ts.map +1 -1
  83. package/lib/Chat/index.js +1 -337
  84. package/lib/Chat/index.js.map +1 -1
  85. package/lib/Chat/styles.d.ts +14 -2
  86. package/lib/Chat/styles.d.ts.map +1 -1
  87. package/lib/Chat/styles.js +19 -9
  88. package/lib/Chat/styles.js.map +1 -1
  89. package/lib/Chat/types.d.ts +145 -11
  90. package/lib/Chat/types.d.ts.map +1 -1
  91. package/lib/Chat/types.js.map +1 -1
  92. package/lib/Chat/useChatContextValue.d.ts +19 -0
  93. package/lib/Chat/useChatContextValue.d.ts.map +1 -0
  94. package/lib/Chat/useChatContextValue.js +158 -0
  95. package/lib/Chat/useChatContextValue.js.map +1 -0
  96. package/lib/Chat/useChatMedia.d.ts +22 -0
  97. package/lib/Chat/useChatMedia.d.ts.map +1 -0
  98. package/lib/Chat/useChatMedia.js +127 -0
  99. package/lib/Chat/useChatMedia.js.map +1 -0
  100. package/lib/Chat/useChatSelection.d.ts +15 -0
  101. package/lib/Chat/useChatSelection.d.ts.map +1 -0
  102. package/lib/Chat/useChatSelection.js +106 -0
  103. package/lib/Chat/useChatSelection.js.map +1 -0
  104. package/lib/Chat/useComposerHandlers.d.ts +34 -0
  105. package/lib/Chat/useComposerHandlers.d.ts.map +1 -0
  106. package/lib/Chat/useComposerHandlers.js +330 -0
  107. package/lib/Chat/useComposerHandlers.js.map +1 -0
  108. package/lib/Chat/useComposerState.d.ts +27 -0
  109. package/lib/Chat/useComposerState.d.ts.map +1 -0
  110. package/lib/Chat/useComposerState.js +272 -0
  111. package/lib/Chat/useComposerState.js.map +1 -0
  112. package/lib/Chat/useInitialLayout.d.ts +19 -0
  113. package/lib/Chat/useInitialLayout.d.ts.map +1 -0
  114. package/lib/Chat/useInitialLayout.js +70 -0
  115. package/lib/Chat/useInitialLayout.js.map +1 -0
  116. package/lib/Chat/useMessageActions.d.ts +37 -0
  117. package/lib/Chat/useMessageActions.d.ts.map +1 -0
  118. package/lib/Chat/useMessageActions.js +323 -0
  119. package/lib/Chat/useMessageActions.js.map +1 -0
  120. package/lib/Chat/useMessageNavigation.d.ts +21 -0
  121. package/lib/Chat/useMessageNavigation.d.ts.map +1 -0
  122. package/lib/Chat/useMessageNavigation.js +149 -0
  123. package/lib/Chat/useMessageNavigation.js.map +1 -0
  124. package/lib/Chat/useOptionalPeerHints.d.ts +6 -0
  125. package/lib/Chat/useOptionalPeerHints.d.ts.map +1 -0
  126. package/lib/Chat/useOptionalPeerHints.js +63 -0
  127. package/lib/Chat/useOptionalPeerHints.js.map +1 -0
  128. package/lib/Chat/useResolvedReactions.d.ts +31 -0
  129. package/lib/Chat/useResolvedReactions.d.ts.map +1 -0
  130. package/lib/Chat/useResolvedReactions.js +95 -0
  131. package/lib/Chat/useResolvedReactions.js.map +1 -0
  132. package/lib/ChatAvatar.d.ts.map +1 -1
  133. package/lib/ChatAvatar.js +229 -84
  134. package/lib/ChatAvatar.js.map +1 -1
  135. package/lib/ChatContext.js +20 -10
  136. package/lib/ChatContext.js.map +1 -1
  137. package/lib/ChatList/ChatListAvatar.d.ts +21 -0
  138. package/lib/ChatList/ChatListAvatar.d.ts.map +1 -0
  139. package/lib/ChatList/ChatListAvatar.js +178 -0
  140. package/lib/ChatList/ChatListAvatar.js.map +1 -0
  141. package/lib/ChatList/ChatListCell.d.ts +16 -0
  142. package/lib/ChatList/ChatListCell.d.ts.map +1 -0
  143. package/lib/ChatList/ChatListCell.js +506 -0
  144. package/lib/ChatList/ChatListCell.js.map +1 -0
  145. package/lib/ChatList/ChatListShimmer.d.ts +3 -0
  146. package/lib/ChatList/ChatListShimmer.d.ts.map +1 -0
  147. package/lib/ChatList/ChatListShimmer.js +235 -0
  148. package/lib/ChatList/ChatListShimmer.js.map +1 -0
  149. package/lib/ChatList/index.d.ts +16 -0
  150. package/lib/ChatList/index.d.ts.map +1 -0
  151. package/lib/ChatList/index.js +1301 -0
  152. package/lib/ChatList/index.js.map +1 -0
  153. package/lib/ChatList/types.d.ts +128 -0
  154. package/lib/ChatList/types.d.ts.map +1 -0
  155. package/lib/ChatList/types.js +2 -0
  156. package/lib/ChatList/types.js.map +1 -0
  157. package/lib/ChatList/useChatList.d.ts +30 -0
  158. package/lib/ChatList/useChatList.d.ts.map +1 -0
  159. package/lib/ChatList/useChatList.js +211 -0
  160. package/lib/ChatList/useChatList.js.map +1 -0
  161. package/lib/ChatList/utils.d.ts +28 -0
  162. package/lib/ChatList/utils.d.ts.map +1 -0
  163. package/lib/ChatList/utils.js +60 -0
  164. package/lib/ChatList/utils.js.map +1 -0
  165. package/lib/Color.js +19 -19
  166. package/lib/Color.js.map +1 -1
  167. package/lib/Composer.d.ts.map +1 -1
  168. package/lib/Composer.js +148 -70
  169. package/lib/Composer.js.map +1 -1
  170. package/lib/Constant.js +4 -4
  171. package/lib/Constant.js.map +1 -1
  172. package/lib/Day/index.d.ts.map +1 -1
  173. package/lib/Day/index.js +115 -28
  174. package/lib/Day/index.js.map +1 -1
  175. package/lib/Day/styles.d.ts +3 -3
  176. package/lib/Day/styles.d.ts.map +1 -1
  177. package/lib/Day/styles.js +20 -17
  178. package/lib/Day/styles.js.map +1 -1
  179. package/lib/Day/types.js.map +1 -1
  180. package/lib/Icons.d.ts +1 -1
  181. package/lib/Icons.d.ts.map +1 -1
  182. package/lib/Icons.js.map +1 -1
  183. package/lib/InputToolbar/FieldGroup.d.ts +28 -0
  184. package/lib/InputToolbar/FieldGroup.d.ts.map +1 -0
  185. package/lib/InputToolbar/FieldGroup.js +143 -0
  186. package/lib/InputToolbar/FieldGroup.js.map +1 -0
  187. package/lib/InputToolbar/TakePreviewBar.d.ts +17 -0
  188. package/lib/InputToolbar/TakePreviewBar.d.ts.map +1 -0
  189. package/lib/InputToolbar/TakePreviewBar.js +126 -0
  190. package/lib/InputToolbar/TakePreviewBar.js.map +1 -0
  191. package/lib/InputToolbar/animations.d.ts +105 -0
  192. package/lib/InputToolbar/animations.d.ts.map +1 -0
  193. package/lib/InputToolbar/animations.js +238 -0
  194. package/lib/InputToolbar/animations.js.map +1 -0
  195. package/lib/InputToolbar/fragments.d.ts +13 -0
  196. package/lib/InputToolbar/fragments.d.ts.map +1 -0
  197. package/lib/InputToolbar/fragments.js +207 -0
  198. package/lib/InputToolbar/fragments.js.map +1 -0
  199. package/lib/InputToolbar/index.d.ts +7 -0
  200. package/lib/InputToolbar/index.d.ts.map +1 -0
  201. package/lib/InputToolbar/index.js +444 -0
  202. package/lib/InputToolbar/index.js.map +1 -0
  203. package/lib/InputToolbar/recordingOptions.d.ts +14 -0
  204. package/lib/InputToolbar/recordingOptions.d.ts.map +1 -0
  205. package/lib/InputToolbar/recordingOptions.js +38 -0
  206. package/lib/InputToolbar/recordingOptions.js.map +1 -0
  207. package/lib/InputToolbar/styles.d.ts +118 -0
  208. package/lib/InputToolbar/styles.d.ts.map +1 -0
  209. package/lib/InputToolbar/styles.js +139 -0
  210. package/lib/InputToolbar/styles.js.map +1 -0
  211. package/lib/InputToolbar/types.d.ts +77 -0
  212. package/lib/InputToolbar/types.d.ts.map +1 -0
  213. package/lib/InputToolbar/types.js +2 -0
  214. package/lib/InputToolbar/types.js.map +1 -0
  215. package/lib/InputToolbar/useActionsFragment.d.ts +6 -0
  216. package/lib/InputToolbar/useActionsFragment.d.ts.map +1 -0
  217. package/lib/InputToolbar/useActionsFragment.js +139 -0
  218. package/lib/InputToolbar/useActionsFragment.js.map +1 -0
  219. package/lib/InputToolbar/useComposerEditing.d.ts +11 -0
  220. package/lib/InputToolbar/useComposerEditing.d.ts.map +1 -0
  221. package/lib/InputToolbar/useComposerEditing.js +116 -0
  222. package/lib/InputToolbar/useComposerEditing.js.map +1 -0
  223. package/lib/InputToolbar/useEmojiButton.d.ts +14 -0
  224. package/lib/InputToolbar/useEmojiButton.d.ts.map +1 -0
  225. package/lib/InputToolbar/useEmojiButton.js +120 -0
  226. package/lib/InputToolbar/useEmojiButton.js.map +1 -0
  227. package/lib/InputToolbar/useKeyboardInset.d.ts +9 -0
  228. package/lib/InputToolbar/useKeyboardInset.d.ts.map +1 -0
  229. package/lib/InputToolbar/useKeyboardInset.js +25 -0
  230. package/lib/InputToolbar/useKeyboardInset.js.map +1 -0
  231. package/lib/InputToolbar/useRecordMode.d.ts +19 -0
  232. package/lib/InputToolbar/useRecordMode.d.ts.map +1 -0
  233. package/lib/InputToolbar/useRecordMode.js +124 -0
  234. package/lib/InputToolbar/useRecordMode.js.map +1 -0
  235. package/lib/InputToolbar/useRecordTake.d.ts +46 -0
  236. package/lib/InputToolbar/useRecordTake.d.ts.map +1 -0
  237. package/lib/InputToolbar/useRecordTake.js +315 -0
  238. package/lib/InputToolbar/useRecordTake.js.map +1 -0
  239. package/lib/InputToolbar/useReturnAnimations.d.ts +18 -0
  240. package/lib/InputToolbar/useReturnAnimations.d.ts.map +1 -0
  241. package/lib/InputToolbar/useReturnAnimations.js +30 -0
  242. package/lib/InputToolbar/useReturnAnimations.js.map +1 -0
  243. package/lib/InputToolbar/useRightControl.d.ts +40 -0
  244. package/lib/InputToolbar/useRightControl.d.ts.map +1 -0
  245. package/lib/InputToolbar/useRightControl.js +129 -0
  246. package/lib/InputToolbar/useRightControl.js.map +1 -0
  247. package/lib/LoadEarlierMessages.d.ts +2 -0
  248. package/lib/LoadEarlierMessages.d.ts.map +1 -1
  249. package/lib/LoadEarlierMessages.js +153 -40
  250. package/lib/LoadEarlierMessages.js.map +1 -1
  251. package/lib/Message/SwipeToReply.d.ts +23 -0
  252. package/lib/Message/SwipeToReply.d.ts.map +1 -0
  253. package/lib/Message/SwipeToReply.js +337 -0
  254. package/lib/Message/SwipeToReply.js.map +1 -0
  255. package/lib/Message/index.d.ts.map +1 -1
  256. package/lib/Message/index.js +415 -176
  257. package/lib/Message/index.js.map +1 -1
  258. package/lib/Message/styles.d.ts +2 -2
  259. package/lib/Message/styles.js +14 -14
  260. package/lib/Message/styles.js.map +1 -1
  261. package/lib/Message/types.d.ts +5 -0
  262. package/lib/Message/types.d.ts.map +1 -1
  263. package/lib/Message/types.js.map +1 -1
  264. package/lib/MessageAudio.d.ts.map +1 -1
  265. package/lib/MessageAudio.js +647 -107
  266. package/lib/MessageAudio.js.map +1 -1
  267. package/lib/MessageFile.d.ts +11 -0
  268. package/lib/MessageFile.d.ts.map +1 -0
  269. package/lib/MessageFile.js +315 -0
  270. package/lib/MessageFile.js.map +1 -0
  271. package/lib/MessageImage.d.ts +2 -0
  272. package/lib/MessageImage.d.ts.map +1 -1
  273. package/lib/MessageImage.js +430 -156
  274. package/lib/MessageImage.js.map +1 -1
  275. package/lib/MessageLocation.d.ts.map +1 -1
  276. package/lib/MessageLocation.js +180 -68
  277. package/lib/MessageLocation.js.map +1 -1
  278. package/lib/MessageText.d.ts +8 -1
  279. package/lib/MessageText.d.ts.map +1 -1
  280. package/lib/MessageText.js +261 -69
  281. package/lib/MessageText.js.map +1 -1
  282. package/lib/MessageVideo/ExpoVideoPlayer.d.ts +6 -0
  283. package/lib/MessageVideo/ExpoVideoPlayer.d.ts.map +1 -0
  284. package/lib/MessageVideo/ExpoVideoPlayer.js +68 -0
  285. package/lib/MessageVideo/ExpoVideoPlayer.js.map +1 -0
  286. package/lib/MessageVideo/MirroredVideo.d.ts +17 -0
  287. package/lib/MessageVideo/MirroredVideo.d.ts.map +1 -0
  288. package/lib/MessageVideo/MirroredVideo.js +223 -0
  289. package/lib/MessageVideo/MirroredVideo.js.map +1 -0
  290. package/lib/MessageVideo/RoundNotePlayer.d.ts +4 -0
  291. package/lib/MessageVideo/RoundNotePlayer.d.ts.map +1 -0
  292. package/lib/MessageVideo/RoundNotePlayer.js +560 -0
  293. package/lib/MessageVideo/RoundNotePlayer.js.map +1 -0
  294. package/lib/MessageVideo/RoundTranscription.d.ts +27 -0
  295. package/lib/MessageVideo/RoundTranscription.d.ts.map +1 -0
  296. package/lib/MessageVideo/RoundTranscription.js +151 -0
  297. package/lib/MessageVideo/RoundTranscription.js.map +1 -0
  298. package/lib/MessageVideo/VideoTransferOverlay.d.ts +11 -0
  299. package/lib/MessageVideo/VideoTransferOverlay.d.ts.map +1 -0
  300. package/lib/MessageVideo/VideoTransferOverlay.js +88 -0
  301. package/lib/MessageVideo/VideoTransferOverlay.js.map +1 -0
  302. package/lib/MessageVideo/constants.d.ts +13 -0
  303. package/lib/MessageVideo/constants.d.ts.map +1 -0
  304. package/lib/MessageVideo/constants.js +15 -0
  305. package/lib/MessageVideo/constants.js.map +1 -0
  306. package/lib/{MessageVideo.d.ts → MessageVideo/index.d.ts} +2 -2
  307. package/lib/MessageVideo/index.d.ts.map +1 -0
  308. package/lib/MessageVideo/index.js +92 -0
  309. package/lib/MessageVideo/index.js.map +1 -0
  310. package/lib/MessageVideo/liftedMedia.d.ts +13 -0
  311. package/lib/MessageVideo/liftedMedia.d.ts.map +1 -0
  312. package/lib/MessageVideo/liftedMedia.js +106 -0
  313. package/lib/MessageVideo/liftedMedia.js.map +1 -0
  314. package/lib/MessageVideo/styles.d.ts +71 -0
  315. package/lib/MessageVideo/styles.d.ts.map +1 -0
  316. package/lib/MessageVideo/styles.js +78 -0
  317. package/lib/MessageVideo/styles.js.map +1 -0
  318. package/lib/MessageVideo/types.d.ts +27 -0
  319. package/lib/MessageVideo/types.d.ts.map +1 -0
  320. package/lib/MessageVideo/types.js +2 -0
  321. package/lib/MessageVideo/types.js.map +1 -0
  322. package/lib/MessageVideo/useNoteGrow.d.ts +16 -0
  323. package/lib/MessageVideo/useNoteGrow.d.ts.map +1 -0
  324. package/lib/MessageVideo/useNoteGrow.js +122 -0
  325. package/lib/MessageVideo/useNoteGrow.js.map +1 -0
  326. package/lib/MessageVideo/useNotePlayer.d.ts +14 -0
  327. package/lib/MessageVideo/useNotePlayer.d.ts.map +1 -0
  328. package/lib/MessageVideo/useNotePlayer.js +142 -0
  329. package/lib/MessageVideo/useNotePlayer.js.map +1 -0
  330. package/lib/MessageVideo/useRingSeek.d.ts +16 -0
  331. package/lib/MessageVideo/useRingSeek.d.ts.map +1 -0
  332. package/lib/MessageVideo/useRingSeek.js +157 -0
  333. package/lib/MessageVideo/useRingSeek.js.map +1 -0
  334. package/lib/MessageVideo/useRoundNotePlayback.d.ts +46 -0
  335. package/lib/MessageVideo/useRoundNotePlayback.d.ts.map +1 -0
  336. package/lib/MessageVideo/useRoundNotePlayback.js +508 -0
  337. package/lib/MessageVideo/useRoundNotePlayback.js.map +1 -0
  338. package/lib/MessageVideo/useSendFlightReveal.d.ts +9 -0
  339. package/lib/MessageVideo/useSendFlightReveal.d.ts.map +1 -0
  340. package/lib/MessageVideo/useSendFlightReveal.js +85 -0
  341. package/lib/MessageVideo/useSendFlightReveal.js.map +1 -0
  342. package/lib/MessageVideo/videoPlayers.d.ts +8 -0
  343. package/lib/MessageVideo/videoPlayers.d.ts.map +1 -0
  344. package/lib/MessageVideo/videoPlayers.js +33 -0
  345. package/lib/MessageVideo/videoPlayers.js.map +1 -0
  346. package/lib/MessagesContainer/components/DayAnimated/debug.js +38 -24
  347. package/lib/MessagesContainer/components/DayAnimated/debug.js.map +1 -1
  348. package/lib/MessagesContainer/components/DayAnimated/index.d.ts +1 -1
  349. package/lib/MessagesContainer/components/DayAnimated/index.d.ts.map +1 -1
  350. package/lib/MessagesContainer/components/DayAnimated/index.js +244 -112
  351. package/lib/MessagesContainer/components/DayAnimated/index.js.map +1 -1
  352. package/lib/MessagesContainer/components/DayAnimated/styles.d.ts +3 -3
  353. package/lib/MessagesContainer/components/DayAnimated/styles.js +8 -8
  354. package/lib/MessagesContainer/components/DayAnimated/styles.js.map +1 -1
  355. package/lib/MessagesContainer/components/DayAnimated/types.d.ts +4 -2
  356. package/lib/MessagesContainer/components/DayAnimated/types.d.ts.map +1 -1
  357. package/lib/MessagesContainer/components/DayAnimated/types.js.map +1 -1
  358. package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.d.ts.map +1 -1
  359. package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js +34 -25
  360. package/lib/MessagesContainer/components/DayAnimated/useScrollGatedOpacity.js.map +1 -1
  361. package/lib/MessagesContainer/components/Item/index.d.ts +3 -4
  362. package/lib/MessagesContainer/components/Item/index.d.ts.map +1 -1
  363. package/lib/MessagesContainer/components/Item/index.js +290 -99
  364. package/lib/MessagesContainer/components/Item/index.js.map +1 -1
  365. package/lib/MessagesContainer/components/Item/types.d.ts +5 -0
  366. package/lib/MessagesContainer/components/Item/types.d.ts.map +1 -1
  367. package/lib/MessagesContainer/components/Item/types.js.map +1 -1
  368. package/lib/MessagesContainer/components/PageDownCounter.d.ts +14 -0
  369. package/lib/MessagesContainer/components/PageDownCounter.d.ts.map +1 -0
  370. package/lib/MessagesContainer/components/PageDownCounter.js +209 -0
  371. package/lib/MessagesContainer/components/PageDownCounter.js.map +1 -0
  372. package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts +21 -0
  373. package/lib/MessagesContainer/components/ScrollToBottomButton.d.ts.map +1 -0
  374. package/lib/MessagesContainer/components/ScrollToBottomButton.js +195 -0
  375. package/lib/MessagesContainer/components/ScrollToBottomButton.js.map +1 -0
  376. package/lib/MessagesContainer/components/dayLayout.d.ts +2 -2
  377. package/lib/MessagesContainer/components/dayLayout.d.ts.map +1 -1
  378. package/lib/MessagesContainer/components/dayLayout.js +18 -13
  379. package/lib/MessagesContainer/components/dayLayout.js.map +1 -1
  380. package/lib/MessagesContainer/index.d.ts.map +1 -1
  381. package/lib/MessagesContainer/index.js +361 -420
  382. package/lib/MessagesContainer/index.js.map +1 -1
  383. package/lib/MessagesContainer/listState.d.ts +18 -0
  384. package/lib/MessagesContainer/listState.d.ts.map +1 -0
  385. package/lib/MessagesContainer/listState.js +25 -0
  386. package/lib/MessagesContainer/listState.js.map +1 -0
  387. package/lib/MessagesContainer/listTransitions.d.ts +10 -0
  388. package/lib/MessagesContainer/listTransitions.d.ts.map +1 -0
  389. package/lib/MessagesContainer/listTransitions.js +12 -0
  390. package/lib/MessagesContainer/listTransitions.js.map +1 -0
  391. package/lib/MessagesContainer/pageDownReturn.d.ts +11 -0
  392. package/lib/MessagesContainer/pageDownReturn.d.ts.map +1 -0
  393. package/lib/MessagesContainer/pageDownReturn.js +9 -0
  394. package/lib/MessagesContainer/pageDownReturn.js.map +1 -0
  395. package/lib/MessagesContainer/rowConfig.d.ts +39 -0
  396. package/lib/MessagesContainer/rowConfig.d.ts.map +1 -0
  397. package/lib/MessagesContainer/rowConfig.js +161 -0
  398. package/lib/MessagesContainer/rowConfig.js.map +1 -0
  399. package/lib/MessagesContainer/rowStore.d.ts +37 -0
  400. package/lib/MessagesContainer/rowStore.d.ts.map +1 -0
  401. package/lib/MessagesContainer/rowStore.js +140 -0
  402. package/lib/MessagesContainer/rowStore.js.map +1 -0
  403. package/lib/MessagesContainer/styles.d.ts +37 -31
  404. package/lib/MessagesContainer/styles.d.ts.map +1 -1
  405. package/lib/MessagesContainer/styles.js +75 -54
  406. package/lib/MessagesContainer/styles.js.map +1 -1
  407. package/lib/MessagesContainer/types.d.ts +33 -30
  408. package/lib/MessagesContainer/types.d.ts.map +1 -1
  409. package/lib/MessagesContainer/types.js +1 -9
  410. package/lib/MessagesContainer/types.js.map +1 -1
  411. package/lib/MessagesContainer/useCellLayouts.d.ts +17 -0
  412. package/lib/MessagesContainer/useCellLayouts.d.ts.map +1 -0
  413. package/lib/MessagesContainer/useCellLayouts.js +133 -0
  414. package/lib/MessagesContainer/useCellLayouts.js.map +1 -0
  415. package/lib/MessagesContainer/useDaysPositions.d.ts +18 -0
  416. package/lib/MessagesContainer/useDaysPositions.d.ts.map +1 -0
  417. package/lib/MessagesContainer/useDaysPositions.js +109 -0
  418. package/lib/MessagesContainer/useDaysPositions.js.map +1 -0
  419. package/lib/MessagesContainer/useListChrome.d.ts +14 -0
  420. package/lib/MessagesContainer/useListChrome.d.ts.map +1 -0
  421. package/lib/MessagesContainer/useListChrome.js +176 -0
  422. package/lib/MessagesContainer/useListChrome.js.map +1 -0
  423. package/lib/MessagesContainer/useListMetrics.d.ts +32 -0
  424. package/lib/MessagesContainer/useListMetrics.d.ts.map +1 -0
  425. package/lib/MessagesContainer/useListMetrics.js +176 -0
  426. package/lib/MessagesContainer/useListMetrics.js.map +1 -0
  427. package/lib/MessagesContainer/useMessageRows.d.ts +46 -0
  428. package/lib/MessagesContainer/useMessageRows.d.ts.map +1 -0
  429. package/lib/MessagesContainer/useMessageRows.js +228 -0
  430. package/lib/MessagesContainer/useMessageRows.js.map +1 -0
  431. package/lib/MessagesContainer/usePageDownUnread.d.ts +27 -0
  432. package/lib/MessagesContainer/usePageDownUnread.d.ts.map +1 -0
  433. package/lib/MessagesContainer/usePageDownUnread.js +152 -0
  434. package/lib/MessagesContainer/usePageDownUnread.js.map +1 -0
  435. package/lib/MessagesContainer/useScrollActivity.d.ts +13 -0
  436. package/lib/MessagesContainer/useScrollActivity.d.ts.map +1 -0
  437. package/lib/MessagesContainer/useScrollActivity.js +84 -0
  438. package/lib/MessagesContainer/useScrollActivity.js.map +1 -0
  439. package/lib/MessagesContainer/useScrollToBottom.d.ts +26 -0
  440. package/lib/MessagesContainer/useScrollToBottom.d.ts.map +1 -0
  441. package/lib/MessagesContainer/useScrollToBottom.js +164 -0
  442. package/lib/MessagesContainer/useScrollToBottom.js.map +1 -0
  443. package/lib/MessagesContainer/useTapToClosePanels.d.ts +7 -0
  444. package/lib/MessagesContainer/useTapToClosePanels.d.ts.map +1 -0
  445. package/lib/MessagesContainer/useTapToClosePanels.js +55 -0
  446. package/lib/MessagesContainer/useTapToClosePanels.js.map +1 -0
  447. package/lib/MessagesContainer/viewability.d.ts +9 -0
  448. package/lib/MessagesContainer/viewability.d.ts.map +1 -0
  449. package/lib/MessagesContainer/viewability.js +110 -0
  450. package/lib/MessagesContainer/viewability.js.map +1 -0
  451. package/lib/Models.d.ts +188 -3
  452. package/lib/Models.d.ts.map +1 -1
  453. package/lib/Models.js.map +1 -1
  454. package/lib/QuickReplies.js +234 -101
  455. package/lib/QuickReplies.js.map +1 -1
  456. package/lib/Reactions/MessageReactions.d.ts +5 -0
  457. package/lib/Reactions/MessageReactions.d.ts.map +1 -1
  458. package/lib/Reactions/MessageReactions.js +359 -80
  459. package/lib/Reactions/MessageReactions.js.map +1 -1
  460. package/lib/Reactions/ReactionPicker.d.ts +5 -3
  461. package/lib/Reactions/ReactionPicker.d.ts.map +1 -1
  462. package/lib/Reactions/ReactionPicker.js +68 -82
  463. package/lib/Reactions/ReactionPicker.js.map +1 -1
  464. package/lib/Reactions/index.js +1 -0
  465. package/lib/Reactions/index.js.map +1 -1
  466. package/lib/Reactions/types.d.ts +49 -5
  467. package/lib/Reactions/types.d.ts.map +1 -1
  468. package/lib/Reactions/types.js.map +1 -1
  469. package/lib/Reply/index.js.map +1 -1
  470. package/lib/Reply/types.d.ts +19 -3
  471. package/lib/Reply/types.d.ts.map +1 -1
  472. package/lib/Reply/types.js.map +1 -1
  473. package/lib/Send.d.ts +2 -2
  474. package/lib/Send.d.ts.map +1 -1
  475. package/lib/Send.js +218 -47
  476. package/lib/Send.js.map +1 -1
  477. package/lib/SystemMessage.d.ts.map +1 -1
  478. package/lib/SystemMessage.js +106 -37
  479. package/lib/SystemMessage.js.map +1 -1
  480. package/lib/Theme.d.ts +320 -23
  481. package/lib/Theme.d.ts.map +1 -1
  482. package/lib/Theme.js +548 -119
  483. package/lib/Theme.js.map +1 -1
  484. package/lib/Time.d.ts +7 -0
  485. package/lib/Time.d.ts.map +1 -1
  486. package/lib/Time.js +122 -30
  487. package/lib/Time.js.map +1 -1
  488. package/lib/TypingIndicator/index.d.ts +9 -1
  489. package/lib/TypingIndicator/index.d.ts.map +1 -1
  490. package/lib/TypingIndicator/index.js +318 -94
  491. package/lib/TypingIndicator/index.js.map +1 -1
  492. package/lib/TypingIndicator/styles.d.ts +6 -2
  493. package/lib/TypingIndicator/styles.d.ts.map +1 -1
  494. package/lib/TypingIndicator/styles.js +22 -18
  495. package/lib/TypingIndicator/styles.js.map +1 -1
  496. package/lib/TypingIndicator/types.js.map +1 -1
  497. package/lib/attachments/AttachmentButton.d.ts +18 -0
  498. package/lib/attachments/AttachmentButton.d.ts.map +1 -0
  499. package/lib/attachments/AttachmentButton.js +110 -0
  500. package/lib/attachments/AttachmentButton.js.map +1 -0
  501. package/lib/attachments/AttachmentMenu/CaptionBar.d.ts +15 -0
  502. package/lib/attachments/AttachmentMenu/CaptionBar.d.ts.map +1 -0
  503. package/lib/attachments/AttachmentMenu/CaptionBar.js +165 -0
  504. package/lib/attachments/AttachmentMenu/CaptionBar.js.map +1 -0
  505. package/lib/attachments/AttachmentMenu/GalleryCell.d.ts +14 -0
  506. package/lib/attachments/AttachmentMenu/GalleryCell.d.ts.map +1 -0
  507. package/lib/attachments/AttachmentMenu/GalleryCell.js +267 -0
  508. package/lib/attachments/AttachmentMenu/GalleryCell.js.map +1 -0
  509. package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts +18 -0
  510. package/lib/attachments/AttachmentMenu/GalleryGrid.d.ts.map +1 -0
  511. package/lib/attachments/AttachmentMenu/GalleryGrid.js +184 -0
  512. package/lib/attachments/AttachmentMenu/GalleryGrid.js.map +1 -0
  513. package/lib/attachments/AttachmentMenu/TabBar.d.ts +14 -0
  514. package/lib/attachments/AttachmentMenu/TabBar.d.ts.map +1 -0
  515. package/lib/attachments/AttachmentMenu/TabBar.js +127 -0
  516. package/lib/attachments/AttachmentMenu/TabBar.js.map +1 -0
  517. package/lib/attachments/AttachmentMenu/TabButton.d.ts +15 -0
  518. package/lib/attachments/AttachmentMenu/TabButton.d.ts.map +1 -0
  519. package/lib/attachments/AttachmentMenu/TabButton.js +219 -0
  520. package/lib/attachments/AttachmentMenu/TabButton.js.map +1 -0
  521. package/lib/attachments/AttachmentMenu/TabPanel.d.ts +17 -0
  522. package/lib/attachments/AttachmentMenu/TabPanel.d.ts.map +1 -0
  523. package/lib/attachments/AttachmentMenu/TabPanel.js +170 -0
  524. package/lib/attachments/AttachmentMenu/TabPanel.js.map +1 -0
  525. package/lib/attachments/AttachmentMenu/constants.d.ts +54 -0
  526. package/lib/attachments/AttachmentMenu/constants.d.ts.map +1 -0
  527. package/lib/attachments/AttachmentMenu/constants.js +79 -0
  528. package/lib/attachments/AttachmentMenu/constants.js.map +1 -0
  529. package/lib/attachments/AttachmentMenu/index.d.ts +16 -0
  530. package/lib/attachments/AttachmentMenu/index.d.ts.map +1 -0
  531. package/lib/attachments/AttachmentMenu/index.js +498 -0
  532. package/lib/attachments/AttachmentMenu/index.js.map +1 -0
  533. package/lib/attachments/AttachmentMenu/styles.d.ts +259 -0
  534. package/lib/attachments/AttachmentMenu/styles.d.ts.map +1 -0
  535. package/lib/attachments/AttachmentMenu/styles.js +262 -0
  536. package/lib/attachments/AttachmentMenu/styles.js.map +1 -0
  537. package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts +14 -0
  538. package/lib/attachments/AttachmentMenu/useSheetPresence.d.ts.map +1 -0
  539. package/lib/attachments/AttachmentMenu/useSheetPresence.js +74 -0
  540. package/lib/attachments/AttachmentMenu/useSheetPresence.js.map +1 -0
  541. package/lib/attachments/buildMessages.d.ts +36 -0
  542. package/lib/attachments/buildMessages.d.ts.map +1 -0
  543. package/lib/attachments/buildMessages.js +192 -0
  544. package/lib/attachments/buildMessages.js.map +1 -0
  545. package/lib/attachments/gallery.d.ts +28 -0
  546. package/lib/attachments/gallery.d.ts.map +1 -0
  547. package/lib/attachments/gallery.js +245 -0
  548. package/lib/attachments/gallery.js.map +1 -0
  549. package/lib/attachments/types.d.ts +69 -0
  550. package/lib/attachments/types.d.ts.map +1 -0
  551. package/lib/attachments/types.js +2 -0
  552. package/lib/attachments/types.js.map +1 -0
  553. package/lib/colorUtils.d.ts +24 -0
  554. package/lib/colorUtils.d.ts.map +1 -0
  555. package/lib/colorUtils.js +71 -0
  556. package/lib/colorUtils.js.map +1 -0
  557. package/lib/components/AttachmentSheet.d.ts +1 -1
  558. package/lib/components/AttachmentSheet.d.ts.map +1 -1
  559. package/lib/components/AttachmentSheet.js +515 -155
  560. package/lib/components/AttachmentSheet.js.map +1 -1
  561. package/lib/components/BasicMarkdown.d.ts +7 -1
  562. package/lib/components/BasicMarkdown.d.ts.map +1 -1
  563. package/lib/components/BasicMarkdown.js +234 -184
  564. package/lib/components/BasicMarkdown.js.map +1 -1
  565. package/lib/components/BubbleBackground.d.ts +55 -0
  566. package/lib/components/BubbleBackground.d.ts.map +1 -0
  567. package/lib/components/BubbleBackground.js +513 -0
  568. package/lib/components/BubbleBackground.js.map +1 -0
  569. package/lib/components/ChatEmpty.d.ts +18 -0
  570. package/lib/components/ChatEmpty.d.ts.map +1 -0
  571. package/lib/components/ChatEmpty.js +125 -0
  572. package/lib/components/ChatEmpty.js.map +1 -0
  573. package/lib/components/ChatLoadingOverlay.d.ts +10 -0
  574. package/lib/components/ChatLoadingOverlay.d.ts.map +1 -0
  575. package/lib/components/ChatLoadingOverlay.js +89 -0
  576. package/lib/components/ChatLoadingOverlay.js.map +1 -0
  577. package/lib/components/ChatOverlay.d.ts +9 -0
  578. package/lib/components/ChatOverlay.d.ts.map +1 -0
  579. package/lib/components/ChatOverlay.js +60 -0
  580. package/lib/components/ChatOverlay.js.map +1 -0
  581. package/lib/components/ChatWallpaper.d.ts +32 -0
  582. package/lib/components/ChatWallpaper.d.ts.map +1 -0
  583. package/lib/components/ChatWallpaper.js +277 -0
  584. package/lib/components/ChatWallpaper.js.map +1 -0
  585. package/lib/components/ContextMenu/MenuCard.d.ts +21 -0
  586. package/lib/components/ContextMenu/MenuCard.d.ts.map +1 -0
  587. package/lib/components/ContextMenu/MenuCard.js +265 -0
  588. package/lib/components/ContextMenu/MenuCard.js.map +1 -0
  589. package/lib/components/ContextMenu/ReactionButton.d.ts +15 -0
  590. package/lib/components/ContextMenu/ReactionButton.d.ts.map +1 -0
  591. package/lib/components/ContextMenu/ReactionButton.js +116 -0
  592. package/lib/components/ContextMenu/ReactionButton.js.map +1 -0
  593. package/lib/components/ContextMenu/ReactionFlight.d.ts +14 -0
  594. package/lib/components/ContextMenu/ReactionFlight.d.ts.map +1 -0
  595. package/lib/components/ContextMenu/ReactionFlight.js +111 -0
  596. package/lib/components/ContextMenu/ReactionFlight.js.map +1 -0
  597. package/lib/components/ContextMenu/ReactionsBar.d.ts +35 -0
  598. package/lib/components/ContextMenu/ReactionsBar.d.ts.map +1 -0
  599. package/lib/components/ContextMenu/ReactionsBar.js +354 -0
  600. package/lib/components/ContextMenu/ReactionsBar.js.map +1 -0
  601. package/lib/components/ContextMenu/constants.d.ts +68 -0
  602. package/lib/components/ContextMenu/constants.d.ts.map +1 -0
  603. package/lib/components/ContextMenu/constants.js +105 -0
  604. package/lib/components/ContextMenu/constants.js.map +1 -0
  605. package/lib/components/ContextMenu/index.d.ts +12 -0
  606. package/lib/components/ContextMenu/index.d.ts.map +1 -0
  607. package/lib/components/ContextMenu/index.js +476 -0
  608. package/lib/components/ContextMenu/index.js.map +1 -0
  609. package/lib/components/ContextMenu/placement.d.ts +50 -0
  610. package/lib/components/ContextMenu/placement.d.ts.map +1 -0
  611. package/lib/components/ContextMenu/placement.js +117 -0
  612. package/lib/components/ContextMenu/placement.js.map +1 -0
  613. package/lib/components/ContextMenu/styles.d.ts +199 -0
  614. package/lib/components/ContextMenu/styles.d.ts.map +1 -0
  615. package/lib/components/ContextMenu/styles.js +169 -0
  616. package/lib/components/ContextMenu/styles.js.map +1 -0
  617. package/lib/components/ContextMenu/types.d.ts +62 -0
  618. package/lib/components/ContextMenu/types.d.ts.map +1 -0
  619. package/lib/components/ContextMenu/types.js +2 -0
  620. package/lib/components/ContextMenu/types.js.map +1 -0
  621. package/lib/components/ContextMenu/useExpandPanel.d.ts +11 -0
  622. package/lib/components/ContextMenu/useExpandPanel.d.ts.map +1 -0
  623. package/lib/components/ContextMenu/useExpandPanel.js +81 -0
  624. package/lib/components/ContextMenu/useExpandPanel.js.map +1 -0
  625. package/lib/components/ContextMenu/useMenuPresence.d.ts +17 -0
  626. package/lib/components/ContextMenu/useMenuPresence.d.ts.map +1 -0
  627. package/lib/components/ContextMenu/useMenuPresence.js +125 -0
  628. package/lib/components/ContextMenu/useMenuPresence.js.map +1 -0
  629. package/lib/components/FloatingRoundNote.d.ts +13 -0
  630. package/lib/components/FloatingRoundNote.d.ts.map +1 -0
  631. package/lib/components/FloatingRoundNote.js +541 -0
  632. package/lib/components/FloatingRoundNote.js.map +1 -0
  633. package/lib/components/GlassSurface.d.ts +16 -0
  634. package/lib/components/GlassSurface.d.ts.map +1 -0
  635. package/lib/components/GlassSurface.js +114 -0
  636. package/lib/components/GlassSurface.js.map +1 -0
  637. package/lib/components/Icon.js +57 -8
  638. package/lib/components/Icon.js.map +1 -1
  639. package/lib/components/LinkPreviewCard.d.ts +36 -0
  640. package/lib/components/LinkPreviewCard.d.ts.map +1 -0
  641. package/lib/components/LinkPreviewCard.js +416 -0
  642. package/lib/components/LinkPreviewCard.js.map +1 -0
  643. package/lib/components/LucideIcon.d.ts.map +1 -1
  644. package/lib/components/LucideIcon.js +103 -106
  645. package/lib/components/LucideIcon.js.map +1 -1
  646. package/lib/components/MarkdownMessageText.d.ts +17 -2
  647. package/lib/components/MarkdownMessageText.d.ts.map +1 -1
  648. package/lib/components/MarkdownMessageText.js +270 -22
  649. package/lib/components/MarkdownMessageText.js.map +1 -1
  650. package/lib/components/MediaCard.d.ts.map +1 -1
  651. package/lib/components/MediaCard.js +223 -85
  652. package/lib/components/MediaCard.js.map +1 -1
  653. package/lib/components/MediaControls.js +1094 -450
  654. package/lib/components/MediaControls.js.map +1 -1
  655. package/lib/components/MediaLoader.d.ts +21 -0
  656. package/lib/components/MediaLoader.d.ts.map +1 -0
  657. package/lib/components/MediaLoader.js +61 -0
  658. package/lib/components/MediaLoader.js.map +1 -0
  659. package/lib/components/MessageReply.d.ts +2 -2
  660. package/lib/components/MessageReply.d.ts.map +1 -1
  661. package/lib/components/MessageReply.js +266 -83
  662. package/lib/components/MessageReply.js.map +1 -1
  663. package/lib/components/MessageStatus.d.ts +23 -0
  664. package/lib/components/MessageStatus.d.ts.map +1 -0
  665. package/lib/components/MessageStatus.js +499 -0
  666. package/lib/components/MessageStatus.js.map +1 -0
  667. package/lib/components/NoteIndicators.d.ts +25 -0
  668. package/lib/components/NoteIndicators.d.ts.map +1 -0
  669. package/lib/components/NoteIndicators.js +206 -0
  670. package/lib/components/NoteIndicators.js.map +1 -0
  671. package/lib/components/NowPlayingBar.d.ts +15 -0
  672. package/lib/components/NowPlayingBar.d.ts.map +1 -0
  673. package/lib/components/NowPlayingBar.js +261 -0
  674. package/lib/components/NowPlayingBar.js.map +1 -0
  675. package/lib/components/PlayPauseIcon.d.ts +13 -0
  676. package/lib/components/PlayPauseIcon.d.ts.map +1 -0
  677. package/lib/components/PlayPauseIcon.js +187 -0
  678. package/lib/components/PlayPauseIcon.js.map +1 -0
  679. package/lib/components/PlaybackSpeedPill.d.ts +11 -0
  680. package/lib/components/PlaybackSpeedPill.d.ts.map +1 -0
  681. package/lib/components/PlaybackSpeedPill.js +350 -0
  682. package/lib/components/PlaybackSpeedPill.js.map +1 -0
  683. package/lib/components/RadialProgress.d.ts +70 -0
  684. package/lib/components/RadialProgress.d.ts.map +1 -0
  685. package/lib/components/RadialProgress.js +864 -0
  686. package/lib/components/RadialProgress.js.map +1 -0
  687. package/lib/components/RecordButton/LockPill.d.ts +27 -0
  688. package/lib/components/RecordButton/LockPill.d.ts.map +1 -0
  689. package/lib/components/RecordButton/LockPill.js +182 -0
  690. package/lib/components/RecordButton/LockPill.js.map +1 -0
  691. package/lib/components/RecordButton/ModeButton.d.ts +18 -0
  692. package/lib/components/RecordButton/ModeButton.d.ts.map +1 -0
  693. package/lib/components/RecordButton/ModeButton.js +154 -0
  694. package/lib/components/RecordButton/ModeButton.js.map +1 -0
  695. package/lib/components/RecordButton/ResumeButton.d.ts +20 -0
  696. package/lib/components/RecordButton/ResumeButton.d.ts.map +1 -0
  697. package/lib/components/RecordButton/ResumeButton.js +63 -0
  698. package/lib/components/RecordButton/ResumeButton.js.map +1 -0
  699. package/lib/components/RecordButton/Tooltips.d.ts +20 -0
  700. package/lib/components/RecordButton/Tooltips.d.ts.map +1 -0
  701. package/lib/components/RecordButton/Tooltips.js +191 -0
  702. package/lib/components/RecordButton/Tooltips.js.map +1 -0
  703. package/lib/components/RecordButton/ViewOnceButton.d.ts +16 -0
  704. package/lib/components/RecordButton/ViewOnceButton.d.ts.map +1 -0
  705. package/lib/components/RecordButton/ViewOnceButton.js +96 -0
  706. package/lib/components/RecordButton/ViewOnceButton.js.map +1 -0
  707. package/lib/components/RecordButton/constants.d.ts +52 -0
  708. package/lib/components/RecordButton/constants.d.ts.map +1 -0
  709. package/lib/components/RecordButton/constants.js +58 -0
  710. package/lib/components/RecordButton/constants.js.map +1 -0
  711. package/lib/components/RecordButton/index.d.ts +14 -0
  712. package/lib/components/RecordButton/index.d.ts.map +1 -0
  713. package/lib/components/RecordButton/index.js +382 -0
  714. package/lib/components/RecordButton/index.js.map +1 -0
  715. package/lib/components/RecordButton/styles.d.ts +155 -0
  716. package/lib/components/RecordButton/styles.d.ts.map +1 -0
  717. package/lib/components/RecordButton/styles.js +161 -0
  718. package/lib/components/RecordButton/styles.js.map +1 -0
  719. package/lib/components/RecordButton/types.d.ts +63 -0
  720. package/lib/components/RecordButton/types.d.ts.map +1 -0
  721. package/lib/components/RecordButton/types.js +2 -0
  722. package/lib/components/RecordButton/types.js.map +1 -0
  723. package/lib/components/RecordButton/useRecordGesture.d.ts +28 -0
  724. package/lib/components/RecordButton/useRecordGesture.d.ts.map +1 -0
  725. package/lib/components/RecordButton/useRecordGesture.js +263 -0
  726. package/lib/components/RecordButton/useRecordGesture.js.map +1 -0
  727. package/lib/components/RecordButton/useRecordHints.d.ts +27 -0
  728. package/lib/components/RecordButton/useRecordHints.d.ts.map +1 -0
  729. package/lib/components/RecordButton/useRecordHints.js +210 -0
  730. package/lib/components/RecordButton/useRecordHints.js.map +1 -0
  731. package/lib/components/RecordButton/useRecordSlideDistance.d.ts +3 -0
  732. package/lib/components/RecordButton/useRecordSlideDistance.d.ts.map +1 -0
  733. package/lib/components/RecordButton/useRecordSlideDistance.js +15 -0
  734. package/lib/components/RecordButton/useRecordSlideDistance.js.map +1 -0
  735. package/lib/components/RecordButton/useRecordTake.d.ts +41 -0
  736. package/lib/components/RecordButton/useRecordTake.d.ts.map +1 -0
  737. package/lib/components/RecordButton/useRecordTake.js +349 -0
  738. package/lib/components/RecordButton/useRecordTake.js.map +1 -0
  739. package/lib/components/RecordButton/useSendFlight.d.ts +25 -0
  740. package/lib/components/RecordButton/useSendFlight.d.ts.map +1 -0
  741. package/lib/components/RecordButton/useSendFlight.js +162 -0
  742. package/lib/components/RecordButton/useSendFlight.js.map +1 -0
  743. package/lib/components/RecordCircle.d.ts +92 -0
  744. package/lib/components/RecordCircle.d.ts.map +1 -0
  745. package/lib/components/RecordCircle.js +629 -0
  746. package/lib/components/RecordCircle.js.map +1 -0
  747. package/lib/components/RecordingBar.d.ts +24 -0
  748. package/lib/components/RecordingBar.d.ts.map +1 -0
  749. package/lib/components/RecordingBar.js +766 -0
  750. package/lib/components/RecordingBar.js.map +1 -0
  751. package/lib/components/ReplyPreview.js +318 -135
  752. package/lib/components/ReplyPreview.js.map +1 -1
  753. package/lib/components/SelectionBar.d.ts +17 -0
  754. package/lib/components/SelectionBar.d.ts.map +1 -0
  755. package/lib/components/SelectionBar.js +214 -0
  756. package/lib/components/SelectionBar.js.map +1 -0
  757. package/lib/components/SelectionCheckbox.d.ts +12 -0
  758. package/lib/components/SelectionCheckbox.d.ts.map +1 -0
  759. package/lib/components/SelectionCheckbox.js +104 -0
  760. package/lib/components/SelectionCheckbox.js.map +1 -0
  761. package/lib/components/SendIcon.js +60 -26
  762. package/lib/components/SendIcon.js.map +1 -1
  763. package/lib/components/ServiceSpinner.d.ts +17 -0
  764. package/lib/components/ServiceSpinner.d.ts.map +1 -0
  765. package/lib/components/ServiceSpinner.js +77 -0
  766. package/lib/components/ServiceSpinner.js.map +1 -0
  767. package/lib/components/Spinner.d.ts +18 -0
  768. package/lib/components/Spinner.d.ts.map +1 -0
  769. package/lib/components/Spinner.js +169 -0
  770. package/lib/components/Spinner.js.map +1 -0
  771. package/lib/components/StreamingCursor.js +54 -9
  772. package/lib/components/StreamingCursor.js.map +1 -1
  773. package/lib/components/Ticks.d.ts +6 -5
  774. package/lib/components/Ticks.d.ts.map +1 -1
  775. package/lib/components/Ticks.js +272 -82
  776. package/lib/components/Ticks.js.map +1 -1
  777. package/lib/components/TouchableOpacity.d.ts.map +1 -1
  778. package/lib/components/TouchableOpacity.js +154 -48
  779. package/lib/components/TouchableOpacity.js.map +1 -1
  780. package/lib/components/TranscribeButton.d.ts +45 -0
  781. package/lib/components/TranscribeButton.d.ts.map +1 -0
  782. package/lib/components/TranscribeButton.js +549 -0
  783. package/lib/components/TranscribeButton.js.map +1 -0
  784. package/lib/components/TypingStatus.d.ts +29 -0
  785. package/lib/components/TypingStatus.d.ts.map +1 -0
  786. package/lib/components/TypingStatus.js +446 -0
  787. package/lib/components/TypingStatus.js.map +1 -0
  788. package/lib/components/UnreadSeparator.d.ts +8 -0
  789. package/lib/components/UnreadSeparator.d.ts.map +1 -0
  790. package/lib/components/UnreadSeparator.js +101 -0
  791. package/lib/components/UnreadSeparator.js.map +1 -0
  792. package/lib/components/VideoNoteCapture/ProgressRing.d.ts +16 -0
  793. package/lib/components/VideoNoteCapture/ProgressRing.d.ts.map +1 -0
  794. package/lib/components/VideoNoteCapture/ProgressRing.js +75 -0
  795. package/lib/components/VideoNoteCapture/ProgressRing.js.map +1 -0
  796. package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts +31 -0
  797. package/lib/components/VideoNoteCapture/VideoNoteCaptureView.d.ts.map +1 -0
  798. package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js +500 -0
  799. package/lib/components/VideoNoteCapture/VideoNoteCaptureView.js.map +1 -0
  800. package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts +12 -0
  801. package/lib/components/VideoNoteCapture/VideoNotePreviewView.d.ts.map +1 -0
  802. package/lib/components/VideoNoteCapture/VideoNotePreviewView.js +105 -0
  803. package/lib/components/VideoNoteCapture/VideoNotePreviewView.js.map +1 -0
  804. package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts +12 -0
  805. package/lib/components/VideoNoteCapture/VideoNoteStage.d.ts.map +1 -0
  806. package/lib/components/VideoNoteCapture/VideoNoteStage.js +95 -0
  807. package/lib/components/VideoNoteCapture/VideoNoteStage.js.map +1 -0
  808. package/lib/components/VideoNoteCapture/constants.d.ts +50 -0
  809. package/lib/components/VideoNoteCapture/constants.d.ts.map +1 -0
  810. package/lib/components/VideoNoteCapture/constants.js +53 -0
  811. package/lib/components/VideoNoteCapture/constants.js.map +1 -0
  812. package/lib/components/VideoNoteCapture/index.d.ts +3 -0
  813. package/lib/components/VideoNoteCapture/index.d.ts.map +1 -0
  814. package/lib/components/VideoNoteCapture/index.js +2 -0
  815. package/lib/components/VideoNoteCapture/index.js.map +1 -0
  816. package/lib/components/VideoNoteCapture/optional.d.ts +6 -0
  817. package/lib/components/VideoNoteCapture/optional.d.ts.map +1 -0
  818. package/lib/components/VideoNoteCapture/optional.js +15 -0
  819. package/lib/components/VideoNoteCapture/optional.js.map +1 -0
  820. package/lib/components/VideoNoteCapture/sessionState.d.ts +10 -0
  821. package/lib/components/VideoNoteCapture/sessionState.d.ts.map +1 -0
  822. package/lib/components/VideoNoteCapture/sessionState.js +19 -0
  823. package/lib/components/VideoNoteCapture/sessionState.js.map +1 -0
  824. package/lib/components/VideoNoteCapture/styles.d.ts +84 -0
  825. package/lib/components/VideoNoteCapture/styles.d.ts.map +1 -0
  826. package/lib/components/VideoNoteCapture/styles.js +86 -0
  827. package/lib/components/VideoNoteCapture/styles.js.map +1 -0
  828. package/lib/components/VideoNoteCapture/types.d.ts +54 -0
  829. package/lib/components/VideoNoteCapture/types.d.ts.map +1 -0
  830. package/lib/components/VideoNoteCapture/types.js +2 -0
  831. package/lib/components/VideoNoteCapture/types.js.map +1 -0
  832. package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts +47 -0
  833. package/lib/components/VideoNoteCapture/useRoundAnimation.d.ts.map +1 -0
  834. package/lib/components/VideoNoteCapture/useRoundAnimation.js +216 -0
  835. package/lib/components/VideoNoteCapture/useRoundAnimation.js.map +1 -0
  836. package/lib/components/VideoNoteCapture/useRoundLayout.d.ts +14 -0
  837. package/lib/components/VideoNoteCapture/useRoundLayout.d.ts.map +1 -0
  838. package/lib/components/VideoNoteCapture/useRoundLayout.js +61 -0
  839. package/lib/components/VideoNoteCapture/useRoundLayout.js.map +1 -0
  840. package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts +25 -0
  841. package/lib/components/VideoNoteCapture/useVideoNoteSession.d.ts.map +1 -0
  842. package/lib/components/VideoNoteCapture/useVideoNoteSession.js +611 -0
  843. package/lib/components/VideoNoteCapture/useVideoNoteSession.js.map +1 -0
  844. package/lib/components/VideoNoteOverlay.d.ts +42 -11
  845. package/lib/components/VideoNoteOverlay.d.ts.map +1 -1
  846. package/lib/components/VideoNoteOverlay.js +722 -135
  847. package/lib/components/VideoNoteOverlay.js.map +1 -1
  848. package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts +6 -0
  849. package/lib/components/VideoNoteRecorder/LiveVideoNote.d.ts.map +1 -0
  850. package/lib/components/VideoNoteRecorder/LiveVideoNote.js +205 -0
  851. package/lib/components/VideoNoteRecorder/LiveVideoNote.js.map +1 -0
  852. package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts +35 -0
  853. package/lib/components/VideoNoteRecorder/RecorderChrome.d.ts.map +1 -0
  854. package/lib/components/VideoNoteRecorder/RecorderChrome.js +350 -0
  855. package/lib/components/VideoNoteRecorder/RecorderChrome.js.map +1 -0
  856. package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts +10 -0
  857. package/lib/components/VideoNoteRecorder/UnavailableVideoNote.d.ts.map +1 -0
  858. package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js +52 -0
  859. package/lib/components/VideoNoteRecorder/UnavailableVideoNote.js.map +1 -0
  860. package/lib/components/VideoNoteRecorder/constants.d.ts +16 -0
  861. package/lib/components/VideoNoteRecorder/constants.d.ts.map +1 -0
  862. package/lib/components/VideoNoteRecorder/constants.js +30 -0
  863. package/lib/components/VideoNoteRecorder/constants.js.map +1 -0
  864. package/lib/components/{VideoNoteRecorder.d.ts → VideoNoteRecorder/index.d.ts} +5 -10
  865. package/lib/components/VideoNoteRecorder/index.d.ts.map +1 -0
  866. package/lib/components/VideoNoteRecorder/index.js +26 -0
  867. package/lib/components/VideoNoteRecorder/index.js.map +1 -0
  868. package/lib/components/VideoNoteRecorder/styles.d.ts +159 -0
  869. package/lib/components/VideoNoteRecorder/styles.d.ts.map +1 -0
  870. package/lib/components/VideoNoteRecorder/styles.js +170 -0
  871. package/lib/components/VideoNoteRecorder/styles.js.map +1 -0
  872. package/lib/components/VideoNoteRecorder/types.d.ts +7 -0
  873. package/lib/components/VideoNoteRecorder/types.d.ts.map +1 -0
  874. package/lib/components/VideoNoteRecorder/types.js +2 -0
  875. package/lib/components/VideoNoteRecorder/types.js.map +1 -0
  876. package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts +10 -0
  877. package/lib/components/VideoNoteRecorder/useRecordingTimer.d.ts.map +1 -0
  878. package/lib/components/VideoNoteRecorder/useRecordingTimer.js +134 -0
  879. package/lib/components/VideoNoteRecorder/useRecordingTimer.js.map +1 -0
  880. package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts +28 -0
  881. package/lib/components/VideoNoteRecorder/useVideoNoteRecording.d.ts.map +1 -0
  882. package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js +287 -0
  883. package/lib/components/VideoNoteRecorder/useVideoNoteRecording.js.map +1 -0
  884. package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts +6 -0
  885. package/lib/components/VideoNoteRecorder/visionCameraHooks.d.ts.map +1 -0
  886. package/lib/components/VideoNoteRecorder/visionCameraHooks.js +11 -0
  887. package/lib/components/VideoNoteRecorder/visionCameraHooks.js.map +1 -0
  888. package/lib/components/VideoRecordButton.d.ts +1 -1
  889. package/lib/components/VideoRecordButton.d.ts.map +1 -1
  890. package/lib/components/VideoRecordButton.js +221 -92
  891. package/lib/components/VideoRecordButton.js.map +1 -1
  892. package/lib/components/ViewOnceBadge.d.ts +23 -0
  893. package/lib/components/ViewOnceBadge.d.ts.map +1 -0
  894. package/lib/components/ViewOnceBadge.js +233 -0
  895. package/lib/components/ViewOnceBadge.js.map +1 -0
  896. package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts +16 -0
  897. package/lib/components/VoiceMessageInput/RecordedVoicePreview.d.ts.map +1 -0
  898. package/lib/components/VoiceMessageInput/RecordedVoicePreview.js +503 -0
  899. package/lib/components/VoiceMessageInput/RecordedVoicePreview.js.map +1 -0
  900. package/lib/components/VoiceMessageInput/constants.d.ts +16 -0
  901. package/lib/components/VoiceMessageInput/constants.d.ts.map +1 -0
  902. package/lib/components/VoiceMessageInput/constants.js +22 -0
  903. package/lib/components/VoiceMessageInput/constants.js.map +1 -0
  904. package/lib/components/VoiceMessageInput/formatElapsed.d.ts +2 -0
  905. package/lib/components/VoiceMessageInput/formatElapsed.d.ts.map +1 -0
  906. package/lib/components/VoiceMessageInput/formatElapsed.js +7 -0
  907. package/lib/components/VoiceMessageInput/formatElapsed.js.map +1 -0
  908. package/lib/components/VoiceMessageInput/index.d.ts +9 -0
  909. package/lib/components/VoiceMessageInput/index.d.ts.map +1 -0
  910. package/lib/components/VoiceMessageInput/index.js +148 -0
  911. package/lib/components/VoiceMessageInput/index.js.map +1 -0
  912. package/lib/components/VoiceMessageInput/previewStyles.d.ts +77 -0
  913. package/lib/components/VoiceMessageInput/previewStyles.d.ts.map +1 -0
  914. package/lib/components/VoiceMessageInput/previewStyles.js +80 -0
  915. package/lib/components/VoiceMessageInput/previewStyles.js.map +1 -0
  916. package/lib/components/VoiceMessageInput/previewWaveform.d.ts +15 -0
  917. package/lib/components/VoiceMessageInput/previewWaveform.d.ts.map +1 -0
  918. package/lib/components/VoiceMessageInput/previewWaveform.js +27 -0
  919. package/lib/components/VoiceMessageInput/previewWaveform.js.map +1 -0
  920. package/lib/components/VoiceMessageInput/recorder.d.ts +18 -0
  921. package/lib/components/VoiceMessageInput/recorder.d.ts.map +1 -0
  922. package/lib/components/VoiceMessageInput/recorder.js +80 -0
  923. package/lib/components/VoiceMessageInput/recorder.js.map +1 -0
  924. package/lib/components/VoiceMessageInput/types.d.ts +56 -0
  925. package/lib/components/VoiceMessageInput/types.d.ts.map +1 -0
  926. package/lib/components/VoiceMessageInput/types.js +2 -0
  927. package/lib/components/VoiceMessageInput/types.js.map +1 -0
  928. package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts +7 -0
  929. package/lib/components/VoiceMessageInput/useLazyRecorder.d.ts.map +1 -0
  930. package/lib/components/VoiceMessageInput/useLazyRecorder.js +61 -0
  931. package/lib/components/VoiceMessageInput/useLazyRecorder.js.map +1 -0
  932. package/lib/components/VoiceMessageInput/useStateReport.d.ts +16 -0
  933. package/lib/components/VoiceMessageInput/useStateReport.d.ts.map +1 -0
  934. package/lib/components/VoiceMessageInput/useStateReport.js +81 -0
  935. package/lib/components/VoiceMessageInput/useStateReport.js.map +1 -0
  936. package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts +34 -0
  937. package/lib/components/VoiceMessageInput/useTakePreviewActions.d.ts.map +1 -0
  938. package/lib/components/VoiceMessageInput/useTakePreviewActions.js +207 -0
  939. package/lib/components/VoiceMessageInput/useTakePreviewActions.js.map +1 -0
  940. package/lib/components/VoiceMessageInput/useVoiceTake.d.ts +25 -0
  941. package/lib/components/VoiceMessageInput/useVoiceTake.d.ts.map +1 -0
  942. package/lib/components/VoiceMessageInput/useVoiceTake.js +424 -0
  943. package/lib/components/VoiceMessageInput/useVoiceTake.js.map +1 -0
  944. package/lib/components/WaveformPlayer/Bars.d.ts +30 -0
  945. package/lib/components/WaveformPlayer/Bars.d.ts.map +1 -0
  946. package/lib/components/WaveformPlayer/Bars.js +171 -0
  947. package/lib/components/WaveformPlayer/Bars.js.map +1 -0
  948. package/lib/components/WaveformPlayer/VoiceButton.d.ts +23 -0
  949. package/lib/components/WaveformPlayer/VoiceButton.d.ts.map +1 -0
  950. package/lib/components/WaveformPlayer/VoiceButton.js +111 -0
  951. package/lib/components/WaveformPlayer/VoiceButton.js.map +1 -0
  952. package/lib/components/WaveformPlayer/WaveformTrack.d.ts +31 -0
  953. package/lib/components/WaveformPlayer/WaveformTrack.d.ts.map +1 -0
  954. package/lib/components/WaveformPlayer/WaveformTrack.js +199 -0
  955. package/lib/components/WaveformPlayer/WaveformTrack.js.map +1 -0
  956. package/lib/components/WaveformPlayer/audio.d.ts +23 -0
  957. package/lib/components/WaveformPlayer/audio.d.ts.map +1 -0
  958. package/lib/components/WaveformPlayer/audio.js +97 -0
  959. package/lib/components/WaveformPlayer/audio.js.map +1 -0
  960. package/lib/components/WaveformPlayer/index.d.ts +13 -0
  961. package/lib/components/WaveformPlayer/index.d.ts.map +1 -0
  962. package/lib/components/WaveformPlayer/index.js +475 -0
  963. package/lib/components/WaveformPlayer/index.js.map +1 -0
  964. package/lib/components/WaveformPlayer/styles.d.ts +257 -0
  965. package/lib/components/WaveformPlayer/styles.d.ts.map +1 -0
  966. package/lib/components/WaveformPlayer/styles.js +120 -0
  967. package/lib/components/WaveformPlayer/styles.js.map +1 -0
  968. package/lib/components/WaveformPlayer/types.d.ts +32 -0
  969. package/lib/components/WaveformPlayer/types.d.ts.map +1 -0
  970. package/lib/components/WaveformPlayer/types.js +2 -0
  971. package/lib/components/WaveformPlayer/types.js.map +1 -0
  972. package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts +21 -0
  973. package/lib/components/WaveformPlayer/useSendFlightReveal.d.ts.map +1 -0
  974. package/lib/components/WaveformPlayer/useSendFlightReveal.js +105 -0
  975. package/lib/components/WaveformPlayer/useSendFlightReveal.js.map +1 -0
  976. package/lib/components/WaveformPlayer/useVoicePlayback.d.ts +39 -0
  977. package/lib/components/WaveformPlayer/useVoicePlayback.d.ts.map +1 -0
  978. package/lib/components/WaveformPlayer/useVoicePlayback.js +401 -0
  979. package/lib/components/WaveformPlayer/useVoicePlayback.js.map +1 -0
  980. package/lib/components/WaveformPlayer/useVoiceSource.d.ts +38 -0
  981. package/lib/components/WaveformPlayer/useVoiceSource.d.ts.map +1 -0
  982. package/lib/components/WaveformPlayer/useVoiceSource.js +244 -0
  983. package/lib/components/WaveformPlayer/useVoiceSource.js.map +1 -0
  984. package/lib/components/WaveformPlayer/useWaveformMotion.d.ts +16 -0
  985. package/lib/components/WaveformPlayer/useWaveformMotion.d.ts.map +1 -0
  986. package/lib/components/WaveformPlayer/useWaveformMotion.js +135 -0
  987. package/lib/components/WaveformPlayer/useWaveformMotion.js.map +1 -0
  988. package/lib/components/WaveformPlayer/useWaveformScrub.d.ts +16 -0
  989. package/lib/components/WaveformPlayer/useWaveformScrub.d.ts.map +1 -0
  990. package/lib/components/WaveformPlayer/useWaveformScrub.js +168 -0
  991. package/lib/components/WaveformPlayer/useWaveformScrub.js.map +1 -0
  992. package/lib/components/composerPanels.d.ts +13 -0
  993. package/lib/components/composerPanels.d.ts.map +1 -0
  994. package/lib/components/composerPanels.js +22 -0
  995. package/lib/components/composerPanels.js.map +1 -0
  996. package/lib/components/defaultMessageActions.d.ts +30 -0
  997. package/lib/components/defaultMessageActions.d.ts.map +1 -0
  998. package/lib/components/defaultMessageActions.js +124 -0
  999. package/lib/components/defaultMessageActions.js.map +1 -0
  1000. package/lib/components/earpiece.d.ts +56 -0
  1001. package/lib/components/earpiece.d.ts.map +1 -0
  1002. package/lib/components/earpiece.js +218 -0
  1003. package/lib/components/earpiece.js.map +1 -0
  1004. package/lib/components/floatingNoteMath.d.ts +66 -0
  1005. package/lib/components/floatingNoteMath.d.ts.map +1 -0
  1006. package/lib/components/floatingNoteMath.js +143 -0
  1007. package/lib/components/floatingNoteMath.js.map +1 -0
  1008. package/lib/components/haptics.d.ts +5 -0
  1009. package/lib/components/haptics.d.ts.map +1 -0
  1010. package/lib/components/haptics.js +26 -0
  1011. package/lib/components/haptics.js.map +1 -0
  1012. package/lib/components/mediaDownload.d.ts +14 -0
  1013. package/lib/components/mediaDownload.d.ts.map +1 -0
  1014. package/lib/components/mediaDownload.js +43 -0
  1015. package/lib/components/mediaDownload.js.map +1 -0
  1016. package/lib/components/mediaPalette.d.ts +7 -2
  1017. package/lib/components/mediaPalette.d.ts.map +1 -1
  1018. package/lib/components/mediaPalette.js +27 -15
  1019. package/lib/components/mediaPalette.js.map +1 -1
  1020. package/lib/components/mediaPlayback.d.ts +204 -5
  1021. package/lib/components/mediaPlayback.d.ts.map +1 -1
  1022. package/lib/components/mediaPlayback.js +746 -17
  1023. package/lib/components/mediaPlayback.js.map +1 -1
  1024. package/lib/components/mediaTransfer.d.ts +29 -0
  1025. package/lib/components/mediaTransfer.d.ts.map +1 -0
  1026. package/lib/components/mediaTransfer.js +52 -0
  1027. package/lib/components/mediaTransfer.js.map +1 -0
  1028. package/lib/components/mediaViewer/MediaViewer.d.ts +17 -0
  1029. package/lib/components/mediaViewer/MediaViewer.d.ts.map +1 -0
  1030. package/lib/components/mediaViewer/MediaViewer.js +347 -0
  1031. package/lib/components/mediaViewer/MediaViewer.js.map +1 -0
  1032. package/lib/components/mediaViewer/MediaViewerChrome.d.ts +14 -0
  1033. package/lib/components/mediaViewer/MediaViewerChrome.d.ts.map +1 -0
  1034. package/lib/components/mediaViewer/MediaViewerChrome.js +164 -0
  1035. package/lib/components/mediaViewer/MediaViewerChrome.js.map +1 -0
  1036. package/lib/components/mediaViewer/MediaViewerHost.d.ts +10 -0
  1037. package/lib/components/mediaViewer/MediaViewerHost.d.ts.map +1 -0
  1038. package/lib/components/mediaViewer/MediaViewerHost.js +76 -0
  1039. package/lib/components/mediaViewer/MediaViewerHost.js.map +1 -0
  1040. package/lib/components/mediaViewer/MediaViewerPage.d.ts +25 -0
  1041. package/lib/components/mediaViewer/MediaViewerPage.d.ts.map +1 -0
  1042. package/lib/components/mediaViewer/MediaViewerPage.js +194 -0
  1043. package/lib/components/mediaViewer/MediaViewerPage.js.map +1 -0
  1044. package/lib/components/mediaViewer/gallery.d.ts +27 -0
  1045. package/lib/components/mediaViewer/gallery.d.ts.map +1 -0
  1046. package/lib/components/mediaViewer/gallery.js +41 -0
  1047. package/lib/components/mediaViewer/gallery.js.map +1 -0
  1048. package/lib/components/messageHighlight.d.ts +41 -0
  1049. package/lib/components/messageHighlight.d.ts.map +1 -0
  1050. package/lib/components/messageHighlight.js +157 -0
  1051. package/lib/components/messageHighlight.js.map +1 -0
  1052. package/lib/components/messagePress.d.ts +14 -0
  1053. package/lib/components/messagePress.d.ts.map +1 -0
  1054. package/lib/components/messagePress.js +18 -0
  1055. package/lib/components/messagePress.js.map +1 -0
  1056. package/lib/components/messageSelection.d.ts +39 -0
  1057. package/lib/components/messageSelection.d.ts.map +1 -0
  1058. package/lib/components/messageSelection.js +135 -0
  1059. package/lib/components/messageSelection.js.map +1 -0
  1060. package/lib/components/recordingFeedback.d.ts +22 -0
  1061. package/lib/components/recordingFeedback.d.ts.map +1 -0
  1062. package/lib/components/recordingFeedback.js +80 -0
  1063. package/lib/components/recordingFeedback.js.map +1 -0
  1064. package/lib/components/recordingMeter.d.ts +19 -0
  1065. package/lib/components/recordingMeter.d.ts.map +1 -0
  1066. package/lib/components/recordingMeter.js +21 -0
  1067. package/lib/components/recordingMeter.js.map +1 -0
  1068. package/lib/components/roundNoteChrome.d.ts +107 -0
  1069. package/lib/components/roundNoteChrome.d.ts.map +1 -0
  1070. package/lib/components/roundNoteChrome.js +249 -0
  1071. package/lib/components/roundNoteChrome.js.map +1 -0
  1072. package/lib/components/roundNotePlayers.d.ts +78 -0
  1073. package/lib/components/roundNotePlayers.d.ts.map +1 -0
  1074. package/lib/components/roundNotePlayers.js +230 -0
  1075. package/lib/components/roundNotePlayers.js.map +1 -0
  1076. package/lib/components/sendFlight.d.ts +88 -0
  1077. package/lib/components/sendFlight.d.ts.map +1 -0
  1078. package/lib/components/sendFlight.js +146 -0
  1079. package/lib/components/sendFlight.js.map +1 -0
  1080. package/lib/components/viewOnce.d.ts +27 -0
  1081. package/lib/components/viewOnce.d.ts.map +1 -0
  1082. package/lib/components/viewOnce.js +168 -0
  1083. package/lib/components/viewOnce.js.map +1 -0
  1084. package/lib/components/visionCamera.d.ts +45 -0
  1085. package/lib/components/visionCamera.d.ts.map +1 -0
  1086. package/lib/components/visionCamera.js +117 -0
  1087. package/lib/components/visionCamera.js.map +1 -0
  1088. package/lib/components/voiceEditing.d.ts +34 -0
  1089. package/lib/components/voiceEditing.d.ts.map +1 -0
  1090. package/lib/components/voiceEditing.js +159 -0
  1091. package/lib/components/voiceEditing.js.map +1 -0
  1092. package/lib/components/voiceWaveform.d.ts +108 -0
  1093. package/lib/components/voiceWaveform.d.ts.map +1 -0
  1094. package/lib/components/voiceWaveform.js +165 -0
  1095. package/lib/components/voiceWaveform.js.map +1 -0
  1096. package/lib/components/wallpaperGradient.d.ts +16 -0
  1097. package/lib/components/wallpaperGradient.d.ts.map +1 -0
  1098. package/lib/components/wallpaperGradient.js +186 -0
  1099. package/lib/components/wallpaperGradient.js.map +1 -0
  1100. package/lib/components/windowInsets.d.ts +11 -0
  1101. package/lib/components/windowInsets.d.ts.map +1 -0
  1102. package/lib/components/windowInsets.js +44 -0
  1103. package/lib/components/windowInsets.js.map +1 -0
  1104. package/lib/dayjsLocales.js +15 -2
  1105. package/lib/dayjsLocales.js.map +1 -1
  1106. package/lib/emoji/EmojiGrid/BackspaceButton.d.ts +11 -0
  1107. package/lib/emoji/EmojiGrid/BackspaceButton.d.ts.map +1 -0
  1108. package/lib/emoji/EmojiGrid/BackspaceButton.js +111 -0
  1109. package/lib/emoji/EmojiGrid/BackspaceButton.js.map +1 -0
  1110. package/lib/emoji/EmojiGrid/EmojiRow.d.ts +15 -0
  1111. package/lib/emoji/EmojiGrid/EmojiRow.d.ts.map +1 -0
  1112. package/lib/emoji/EmojiGrid/EmojiRow.js +71 -0
  1113. package/lib/emoji/EmojiGrid/EmojiRow.js.map +1 -0
  1114. package/lib/emoji/EmojiGrid/Search.d.ts +29 -0
  1115. package/lib/emoji/EmojiGrid/Search.d.ts.map +1 -0
  1116. package/lib/emoji/EmojiGrid/Search.js +234 -0
  1117. package/lib/emoji/EmojiGrid/Search.js.map +1 -0
  1118. package/lib/emoji/EmojiGrid/TabStrip.d.ts +16 -0
  1119. package/lib/emoji/EmojiGrid/TabStrip.d.ts.map +1 -0
  1120. package/lib/emoji/EmojiGrid/TabStrip.js +237 -0
  1121. package/lib/emoji/EmojiGrid/TabStrip.js.map +1 -0
  1122. package/lib/emoji/EmojiGrid/TonePopup.d.ts +12 -0
  1123. package/lib/emoji/EmojiGrid/TonePopup.d.ts.map +1 -0
  1124. package/lib/emoji/EmojiGrid/TonePopup.js +137 -0
  1125. package/lib/emoji/EmojiGrid/TonePopup.js.map +1 -0
  1126. package/lib/emoji/EmojiGrid/constants.d.ts +29 -0
  1127. package/lib/emoji/EmojiGrid/constants.d.ts.map +1 -0
  1128. package/lib/emoji/EmojiGrid/constants.js +65 -0
  1129. package/lib/emoji/EmojiGrid/constants.js.map +1 -0
  1130. package/lib/emoji/EmojiGrid/index.d.ts +10 -0
  1131. package/lib/emoji/EmojiGrid/index.d.ts.map +1 -0
  1132. package/lib/emoji/EmojiGrid/index.js +450 -0
  1133. package/lib/emoji/EmojiGrid/index.js.map +1 -0
  1134. package/lib/emoji/EmojiGrid/items.d.ts +25 -0
  1135. package/lib/emoji/EmojiGrid/items.d.ts.map +1 -0
  1136. package/lib/emoji/EmojiGrid/items.js +75 -0
  1137. package/lib/emoji/EmojiGrid/items.js.map +1 -0
  1138. package/lib/emoji/EmojiGrid/styles.d.ts +181 -0
  1139. package/lib/emoji/EmojiGrid/styles.d.ts.map +1 -0
  1140. package/lib/emoji/EmojiGrid/styles.js +184 -0
  1141. package/lib/emoji/EmojiGrid/styles.js.map +1 -0
  1142. package/lib/emoji/EmojiGrid/types.d.ts +53 -0
  1143. package/lib/emoji/EmojiGrid/types.d.ts.map +1 -0
  1144. package/lib/emoji/EmojiGrid/types.js +2 -0
  1145. package/lib/emoji/EmojiGrid/types.js.map +1 -0
  1146. package/lib/emoji/EmojiGrid/useTabScroll.d.ts +19 -0
  1147. package/lib/emoji/EmojiGrid/useTabScroll.d.ts.map +1 -0
  1148. package/lib/emoji/EmojiGrid/useTabScroll.js +124 -0
  1149. package/lib/emoji/EmojiGrid/useTabScroll.js.map +1 -0
  1150. package/lib/emoji/EmojiKeyboard.d.ts +79 -0
  1151. package/lib/emoji/EmojiKeyboard.d.ts.map +1 -0
  1152. package/lib/emoji/EmojiKeyboard.js +445 -0
  1153. package/lib/emoji/EmojiKeyboard.js.map +1 -0
  1154. package/lib/emoji/defaultExpandedPicker.d.ts +5 -0
  1155. package/lib/emoji/defaultExpandedPicker.d.ts.map +1 -0
  1156. package/lib/emoji/defaultExpandedPicker.js +11 -0
  1157. package/lib/emoji/defaultExpandedPicker.js.map +1 -0
  1158. package/lib/emoji/emojiData.d.ts +2 -0
  1159. package/lib/emoji/emojiData.d.ts.map +1 -0
  1160. package/lib/emoji/emojiData.js +5 -0
  1161. package/lib/emoji/emojiData.js.map +1 -0
  1162. package/lib/emoji/emojiStore.d.ts +70 -0
  1163. package/lib/emoji/emojiStore.d.ts.map +1 -0
  1164. package/lib/emoji/emojiStore.js +246 -0
  1165. package/lib/emoji/emojiStore.js.map +1 -0
  1166. package/lib/emoji/textEditing.d.ts +20 -0
  1167. package/lib/emoji/textEditing.d.ts.map +1 -0
  1168. package/lib/emoji/textEditing.js +97 -0
  1169. package/lib/emoji/textEditing.js.map +1 -0
  1170. package/lib/emojiOnly.d.ts +11 -0
  1171. package/lib/emojiOnly.d.ts.map +1 -0
  1172. package/lib/emojiOnly.js +79 -0
  1173. package/lib/emojiOnly.js.map +1 -0
  1174. package/lib/gestures/useRowSwipe.d.ts +43 -0
  1175. package/lib/gestures/useRowSwipe.d.ts.map +1 -0
  1176. package/lib/gestures/useRowSwipe.js +74 -0
  1177. package/lib/gestures/useRowSwipe.js.map +1 -0
  1178. package/lib/hooks/useAnimatedPresence.d.ts +22 -0
  1179. package/lib/hooks/useAnimatedPresence.d.ts.map +1 -0
  1180. package/lib/hooks/useAnimatedPresence.js +97 -0
  1181. package/lib/hooks/useAnimatedPresence.js.map +1 -0
  1182. package/lib/hooks/useChatMessages.d.ts +39 -0
  1183. package/lib/hooks/useChatMessages.d.ts.map +1 -0
  1184. package/lib/hooks/useChatMessages.js +125 -0
  1185. package/lib/hooks/useChatMessages.js.map +1 -0
  1186. package/lib/hooks/useColorScheme.d.ts +7 -1
  1187. package/lib/hooks/useColorScheme.d.ts.map +1 -1
  1188. package/lib/hooks/useColorScheme.js +46 -8
  1189. package/lib/hooks/useColorScheme.js.map +1 -1
  1190. package/lib/hooks/useHasKeyboardProvider.js +18 -7
  1191. package/lib/hooks/useHasKeyboardProvider.js.map +1 -1
  1192. package/lib/hooks/useIcons.js +15 -2
  1193. package/lib/hooks/useIcons.js.map +1 -1
  1194. package/lib/hooks/useIsKeyboardVisible.js +39 -17
  1195. package/lib/hooks/useIsKeyboardVisible.js.map +1 -1
  1196. package/lib/hooks/useIsRTL.js +15 -2
  1197. package/lib/hooks/useIsRTL.js.map +1 -1
  1198. package/lib/hooks/useKeyboardVerticalOffset.d.ts +5 -3
  1199. package/lib/hooks/useKeyboardVerticalOffset.d.ts.map +1 -1
  1200. package/lib/hooks/useKeyboardVerticalOffset.js +52 -18
  1201. package/lib/hooks/useKeyboardVerticalOffset.js.map +1 -1
  1202. package/lib/hooks/useLabels.js +15 -2
  1203. package/lib/hooks/useLabels.js.map +1 -1
  1204. package/lib/hooks/useStreamingMessages.js +200 -86
  1205. package/lib/hooks/useStreamingMessages.js.map +1 -1
  1206. package/lib/hooks/useTheme.js +56 -7
  1207. package/lib/hooks/useTheme.js.map +1 -1
  1208. package/lib/hooks/useUpdateLayoutEffect.d.ts.map +1 -1
  1209. package/lib/hooks/useUpdateLayoutEffect.js +35 -11
  1210. package/lib/hooks/useUpdateLayoutEffect.js.map +1 -1
  1211. package/lib/i18n.d.ts +182 -0
  1212. package/lib/i18n.d.ts.map +1 -1
  1213. package/lib/i18n.js +121 -23
  1214. package/lib/i18n.js.map +1 -1
  1215. package/lib/index.d.ts +31 -1
  1216. package/lib/index.d.ts.map +1 -1
  1217. package/lib/index.js +18 -1
  1218. package/lib/index.js.map +1 -1
  1219. package/lib/linkParser.d.ts +2 -1
  1220. package/lib/linkParser.d.ts.map +1 -1
  1221. package/lib/linkParser.js +323 -185
  1222. package/lib/linkParser.js.map +1 -1
  1223. package/lib/locales/ar.d.ts.map +1 -1
  1224. package/lib/locales/ar.js +110 -19
  1225. package/lib/locales/ar.js.map +1 -1
  1226. package/lib/locales/de.d.ts.map +1 -1
  1227. package/lib/locales/de.js +110 -19
  1228. package/lib/locales/de.js.map +1 -1
  1229. package/lib/locales/es.d.ts.map +1 -1
  1230. package/lib/locales/es.js +110 -19
  1231. package/lib/locales/es.js.map +1 -1
  1232. package/lib/locales/fr.d.ts.map +1 -1
  1233. package/lib/locales/fr.js +110 -19
  1234. package/lib/locales/fr.js.map +1 -1
  1235. package/lib/locales/hi.d.ts.map +1 -1
  1236. package/lib/locales/hi.js +110 -19
  1237. package/lib/locales/hi.js.map +1 -1
  1238. package/lib/locales/id.d.ts.map +1 -1
  1239. package/lib/locales/id.js +110 -19
  1240. package/lib/locales/id.js.map +1 -1
  1241. package/lib/locales/index.js +19 -5
  1242. package/lib/locales/index.js.map +1 -1
  1243. package/lib/locales/it.d.ts.map +1 -1
  1244. package/lib/locales/it.js +110 -19
  1245. package/lib/locales/it.js.map +1 -1
  1246. package/lib/locales/ja.d.ts.map +1 -1
  1247. package/lib/locales/ja.js +110 -19
  1248. package/lib/locales/ja.js.map +1 -1
  1249. package/lib/locales/ko.d.ts.map +1 -1
  1250. package/lib/locales/ko.js +110 -19
  1251. package/lib/locales/ko.js.map +1 -1
  1252. package/lib/locales/nl.d.ts.map +1 -1
  1253. package/lib/locales/nl.js +110 -19
  1254. package/lib/locales/nl.js.map +1 -1
  1255. package/lib/locales/pl.d.ts.map +1 -1
  1256. package/lib/locales/pl.js +110 -19
  1257. package/lib/locales/pl.js.map +1 -1
  1258. package/lib/locales/pt.d.ts.map +1 -1
  1259. package/lib/locales/pt.js +110 -19
  1260. package/lib/locales/pt.js.map +1 -1
  1261. package/lib/locales/ru.d.ts.map +1 -1
  1262. package/lib/locales/ru.js +110 -19
  1263. package/lib/locales/ru.js.map +1 -1
  1264. package/lib/locales/tr.d.ts.map +1 -1
  1265. package/lib/locales/tr.js +110 -19
  1266. package/lib/locales/tr.js.map +1 -1
  1267. package/lib/locales/zh.d.ts.map +1 -1
  1268. package/lib/locales/zh.js +110 -19
  1269. package/lib/locales/zh.js.map +1 -1
  1270. package/lib/logging.d.ts +5 -0
  1271. package/lib/logging.d.ts.map +1 -1
  1272. package/lib/logging.js +13 -1
  1273. package/lib/logging.js.map +1 -1
  1274. package/lib/messageUtils.d.ts +19 -0
  1275. package/lib/messageUtils.d.ts.map +1 -0
  1276. package/lib/messageUtils.js +61 -0
  1277. package/lib/messageUtils.js.map +1 -0
  1278. package/lib/motion.d.ts +21 -0
  1279. package/lib/motion.d.ts.map +1 -0
  1280. package/lib/motion.js +30 -0
  1281. package/lib/motion.js.map +1 -0
  1282. package/lib/optional/index.d.ts +99 -0
  1283. package/lib/optional/index.d.ts.map +1 -0
  1284. package/lib/optional/index.js +284 -0
  1285. package/lib/optional/index.js.map +1 -0
  1286. package/lib/rtl.js +7 -5
  1287. package/lib/rtl.js.map +1 -1
  1288. package/lib/store.d.ts +40 -0
  1289. package/lib/store.d.ts.map +1 -0
  1290. package/lib/store.js +127 -0
  1291. package/lib/store.js.map +1 -0
  1292. package/lib/styles.d.ts +2 -2
  1293. package/lib/styles.d.ts.map +1 -1
  1294. package/lib/styles.js +15 -15
  1295. package/lib/styles.js.map +1 -1
  1296. package/lib/types.js +1 -0
  1297. package/lib/types.js.map +1 -1
  1298. package/lib/utils.d.ts +15 -0
  1299. package/lib/utils.d.ts.map +1 -1
  1300. package/lib/utils.js +199 -94
  1301. package/lib/utils.js.map +1 -1
  1302. package/llms.txt +133 -31
  1303. package/package.json +89 -46
  1304. package/lib/InputToolbar.d.ts +0 -49
  1305. package/lib/InputToolbar.d.ts.map +0 -1
  1306. package/lib/InputToolbar.js +0 -338
  1307. package/lib/InputToolbar.js.map +0 -1
  1308. package/lib/MessageVideo.d.ts.map +0 -1
  1309. package/lib/MessageVideo.js +0 -162
  1310. package/lib/MessageVideo.js.map +0 -1
  1311. package/lib/MessagesContainer/FlashList.d.ts +0 -9
  1312. package/lib/MessagesContainer/FlashList.d.ts.map +0 -1
  1313. package/lib/MessagesContainer/FlashList.js +0 -23
  1314. package/lib/MessagesContainer/FlashList.js.map +0 -1
  1315. package/lib/components/ContextMenu.d.ts +0 -25
  1316. package/lib/components/ContextMenu.d.ts.map +0 -1
  1317. package/lib/components/ContextMenu.js +0 -122
  1318. package/lib/components/ContextMenu.js.map +0 -1
  1319. package/lib/components/VideoNoteRecorder.d.ts.map +0 -1
  1320. package/lib/components/VideoNoteRecorder.js +0 -634
  1321. package/lib/components/VideoNoteRecorder.js.map +0 -1
  1322. package/lib/components/VoiceMessageInput.d.ts +0 -33
  1323. package/lib/components/VoiceMessageInput.d.ts.map +0 -1
  1324. package/lib/components/VoiceMessageInput.js +0 -403
  1325. package/lib/components/VoiceMessageInput.js.map +0 -1
  1326. package/lib/components/WaveformPlayer.d.ts +0 -19
  1327. package/lib/components/WaveformPlayer.d.ts.map +0 -1
  1328. package/lib/components/WaveformPlayer.js +0 -367
  1329. package/lib/components/WaveformPlayer.js.map +0 -1
@@ -0,0 +1,110 @@
1
+ import { c as _c } from "react/compiler-runtime";
2
+ import { useContext, useInsertionEffect, useState } from 'react';
3
+ import { MediaPlaybackContext } from '../components/mediaPlayback';
4
+ // Any pixel of a row on screen counts: the playing round note floats only once
5
+ // its row has left the list entirely.
6
+ const ROW_ON_SCREEN_CONFIG = {
7
+ itemVisiblePercentThreshold: 0
8
+ };
9
+ /**
10
+ * The list reads its viewability callbacks once, at mount, so they are permanent and forward to
11
+ * what the latest commit handed over (the list only reports after a commit). A plain object
12
+ * rather than refs: the callbacks are built while rendering, and React Compiler rejects a
13
+ * render-time closure over a ref even when nothing calls it until later.
14
+ */
15
+ function createViewabilityRelay(initialMediaController, initialConsumer) {
16
+ let mediaController = initialMediaController;
17
+ let markRowsSeen = () => {};
18
+ let consumer = initialConsumer;
19
+ const onRowsViewable = ({
20
+ viewableItems
21
+ }) => {
22
+ const ids = [];
23
+ for (const token of viewableItems) {
24
+ const id = token.item?._id;
25
+ if (id != null) ids.push(id);
26
+ }
27
+ mediaController?.setViewableMessages(ids);
28
+ markRowsSeen(ids);
29
+ };
30
+ const onConsumerViewable = info => consumer?.(info);
31
+ const update = next => {
32
+ mediaController = next.mediaController;
33
+ markRowsSeen = next.markRowsSeen;
34
+ consumer = next.consumer;
35
+ };
36
+ return {
37
+ onRowsViewable,
38
+ onConsumerViewable,
39
+ update
40
+ };
41
+ }
42
+
43
+ /**
44
+ * The list's `viewabilityConfigCallbackPairs`: which rows are on screen, for the floating round
45
+ * note and the page-down counter, with a consumer's own handler folded in.
46
+ */
47
+ export function useViewabilityPairs(listProps, markRowsSeen) {
48
+ const $ = _c(12);
49
+ const mediaController = useContext(MediaPlaybackContext);
50
+ let t0;
51
+ if ($[0] !== listProps?.onViewableItemsChanged || $[1] !== mediaController) {
52
+ t0 = () => createViewabilityRelay(mediaController, listProps?.onViewableItemsChanged);
53
+ $[0] = listProps?.onViewableItemsChanged;
54
+ $[1] = mediaController;
55
+ $[2] = t0;
56
+ } else {
57
+ t0 = $[2];
58
+ }
59
+ const [viewabilityRelay] = useState(t0);
60
+ let t1;
61
+ if ($[3] !== listProps || $[4] !== viewabilityRelay.onConsumerViewable || $[5] !== viewabilityRelay.onRowsViewable) {
62
+ t1 = () => {
63
+ const pairs = [{
64
+ viewabilityConfig: ROW_ON_SCREEN_CONFIG,
65
+ onViewableItemsChanged: viewabilityRelay.onRowsViewable
66
+ }];
67
+ if (listProps?.viewabilityConfigCallbackPairs) {
68
+ pairs.push(...listProps.viewabilityConfigCallbackPairs);
69
+ } else {
70
+ if (listProps?.onViewableItemsChanged) {
71
+ pairs.push({
72
+ viewabilityConfig: listProps.viewabilityConfig ?? {
73
+ viewAreaCoveragePercentThreshold: 0
74
+ },
75
+ onViewableItemsChanged: viewabilityRelay.onConsumerViewable
76
+ });
77
+ }
78
+ }
79
+ return pairs;
80
+ };
81
+ $[3] = listProps;
82
+ $[4] = viewabilityRelay.onConsumerViewable;
83
+ $[5] = viewabilityRelay.onRowsViewable;
84
+ $[6] = t1;
85
+ } else {
86
+ t1 = $[6];
87
+ }
88
+ const [viewabilityPairs] = useState(t1);
89
+ const consumerOnViewableItemsChanged = listProps?.onViewableItemsChanged;
90
+ let t2;
91
+ if ($[7] !== consumerOnViewableItemsChanged || $[8] !== markRowsSeen || $[9] !== mediaController || $[10] !== viewabilityRelay) {
92
+ t2 = () => {
93
+ viewabilityRelay.update({
94
+ mediaController,
95
+ markRowsSeen,
96
+ consumer: consumerOnViewableItemsChanged
97
+ });
98
+ };
99
+ $[7] = consumerOnViewableItemsChanged;
100
+ $[8] = markRowsSeen;
101
+ $[9] = mediaController;
102
+ $[10] = viewabilityRelay;
103
+ $[11] = t2;
104
+ } else {
105
+ t2 = $[11];
106
+ }
107
+ useInsertionEffect(t2);
108
+ return viewabilityPairs;
109
+ }
110
+ //# sourceMappingURL=viewability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewability.js","names":["useContext","useInsertionEffect","useState","MediaPlaybackContext","ROW_ON_SCREEN_CONFIG","itemVisiblePercentThreshold","createViewabilityRelay","initialMediaController","initialConsumer","mediaController","markRowsSeen","consumer","onRowsViewable","viewableItems","ids","token","id","item","_id","push","setViewableMessages","onConsumerViewable","info","update","next","useViewabilityPairs","listProps","$","_c","t0","onViewableItemsChanged","viewabilityRelay","t1","pairs","viewabilityConfig","viewabilityConfigCallbackPairs","viewAreaCoveragePercentThreshold","viewabilityPairs","consumerOnViewableItemsChanged","t2"],"sources":["../../src/MessagesContainer/viewability.ts"],"sourcesContent":["import { useContext, useInsertionEffect, useState } from 'react'\nimport type { ViewabilityConfigCallbackPair } from '@legendapp/list/react-native'\n\nimport { MediaPlaybackContext, MediaPlaybackController } from '../components/mediaPlayback'\nimport { IMessage } from '../Models'\nimport { AnimatedListProps } from './types'\n\n// Any pixel of a row on screen counts: the playing round note floats only once\n// its row has left the list entirely.\nconst ROW_ON_SCREEN_CONFIG = { itemVisiblePercentThreshold: 0 }\n\ntype ViewableItemsChanged = NonNullable<ViewabilityConfigCallbackPair['onViewableItemsChanged']>\n\n/**\n * The list reads its viewability callbacks once, at mount, so they are permanent and forward to\n * what the latest commit handed over (the list only reports after a commit). A plain object\n * rather than refs: the callbacks are built while rendering, and React Compiler rejects a\n * render-time closure over a ref even when nothing calls it until later.\n */\nfunction createViewabilityRelay (\n initialMediaController: MediaPlaybackController | null,\n initialConsumer: ViewableItemsChanged | null | undefined\n) {\n let mediaController = initialMediaController\n let markRowsSeen: (ids: (string | number)[]) => void = () => {}\n let consumer = initialConsumer\n const onRowsViewable: ViewableItemsChanged = ({ viewableItems }) => {\n const ids: (string | number)[] = []\n for (const token of viewableItems) {\n const id = (token.item as IMessage | undefined)?._id\n if (id != null)\n ids.push(id)\n }\n mediaController?.setViewableMessages(ids)\n markRowsSeen(ids)\n }\n const onConsumerViewable: ViewableItemsChanged = info => consumer?.(info)\n const update = (next: {\n mediaController: MediaPlaybackController | null\n markRowsSeen: (ids: (string | number)[]) => void\n consumer: ViewableItemsChanged | null | undefined\n }) => {\n mediaController = next.mediaController\n markRowsSeen = next.markRowsSeen\n consumer = next.consumer\n }\n return { onRowsViewable, onConsumerViewable, update }\n}\n\n/**\n * The list's `viewabilityConfigCallbackPairs`: which rows are on screen, for the floating round\n * note and the page-down counter, with a consumer's own handler folded in.\n */\nexport function useViewabilityPairs<TMessage extends IMessage> (\n listProps: AnimatedListProps<TMessage> | undefined,\n markRowsSeen: (ids: (string | number)[]) => void\n) {\n // Which rows are on screen, for the floating round note. The list reads viewability\n // callbacks once, at mount, and FlatList refuses\n // `onViewableItemsChanged` alongside `viewabilityConfigCallbackPairs`, so a\n // consumer's own handler is folded into the pairs here, read through a relay.\n const mediaController = useContext(MediaPlaybackContext)\n const [viewabilityRelay] = useState(() => createViewabilityRelay(mediaController, listProps?.onViewableItemsChanged))\n const [viewabilityPairs] = useState(() => {\n const pairs: ViewabilityConfigCallbackPair[] = [{\n viewabilityConfig: ROW_ON_SCREEN_CONFIG,\n onViewableItemsChanged: viewabilityRelay.onRowsViewable,\n }]\n if (listProps?.viewabilityConfigCallbackPairs)\n pairs.push(...listProps.viewabilityConfigCallbackPairs)\n else if (listProps?.onViewableItemsChanged)\n pairs.push({\n // FlatList's own default when a handler comes without a config.\n viewabilityConfig: listProps.viewabilityConfig ?? { viewAreaCoveragePercentThreshold: 0 },\n onViewableItemsChanged: viewabilityRelay.onConsumerViewable,\n })\n return pairs\n })\n\n const consumerOnViewableItemsChanged = listProps?.onViewableItemsChanged\n // An insertion effect runs before any layout effect, the list's own included, so a report\n // made while the list commits already reaches this render's handlers.\n useInsertionEffect(() => {\n viewabilityRelay.update({ mediaController, markRowsSeen, consumer: consumerOnViewableItemsChanged })\n })\n\n return vi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C8B,EAcnC,CAAC;EAEF,MAAAM,8BAAA,GAAuCZ,SAAS,EAAAI,sBAAwB;EAAA,IAAAS,EAAA;EAAA,IAAAZ,CAAA,QAAAW,8BAAA,IAAAX,CAAA,QAAAjB,YAAA,IAAAiB,CAAA,QAAAlB,eAAA,IAAAkB,CAAA,SAAAI,gBAAA;IAGrDQ,EAAA,GAAAA,CAAA;MACjBR,gBAAgB,CAAAR,MAAO,CAAC;QAAAd,eAAA;QAAAC,YAAA;QAAAC,QAAA,EAA2C2B;MAA+B,CAAC,CAAC;IAAA,CACrG;IAAAX,CAAA,MAAAW,8BAAA;IAAAX,CAAA,MAAAjB,YAAA;IAAAiB,CAAA,MAAAlB,eAAA;IAAAkB,CAAA,OAAAI,gBAAA;IAAAJ,CAAA,OAAAY,EAAA;EAAA;IAAAA,EAAA,GAAAZ,CAAA;EAAA;EAFD1B,kBAAkB,CAACsC,EAElB,CAAC;EAAA,OAEKF,gBAAgB;AAAA","ignoreList":[]}
package/lib/Models.d.ts CHANGED
@@ -1,8 +1,18 @@
1
1
  import { StyleProp, ViewStyle } from 'react-native';
2
2
  import { IconRenderer } from './Icons';
3
3
  export type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
4
- /** An action shown in the message long-press context menu (Telegram style). */
4
+ /**
5
+ * The actions the chat can put in the long-press menu by itself, in this order:
6
+ * `reply`, `copy`, `forward`, `pin`, `edit`, `delete`.
7
+ */
8
+ export type MessageActionKey = 'reply' | 'copy' | 'forward' | 'pin' | 'edit' | 'select' | 'delete';
9
+ /** An action shown in the message long-press context menu. */
5
10
  export interface MessageMenuItem {
11
+ /**
12
+ * Identifies the action. The built-in ones carry their `MessageActionKey`, so a
13
+ * `messageActions` function can find, drop or reorder them.
14
+ */
15
+ key?: MessageActionKey | string;
6
16
  label: string;
7
17
  /** Optional leading icon, e.g. a lucide-react-native component. */
8
18
  icon?: IconRenderer;
@@ -38,16 +48,71 @@ export interface MessageReaction {
38
48
  /** IDs of the users who reacted with this emoji */
39
49
  userIds: (string | number)[];
40
50
  }
51
+ /** A document attached to a message (`IMessage.file`), drawn as a file bubble. */
52
+ export interface IMessageFile {
53
+ /** Where the file is: a local `file://` path or a remote URL. */
54
+ uri: string;
55
+ /** The file name shown in the bubble, with its extension. */
56
+ name: string;
57
+ /** Size in bytes, shown under the name. */
58
+ size?: number;
59
+ /** MIME type, used when the file is opened or shared. */
60
+ mimeType?: string;
61
+ }
62
+ /**
63
+ * A web page preview for the first link in a message: a block under the text
64
+ * (accent bar, site name, title, description, picture). Fetching it takes a request to the page,
65
+ * so the app supplies it, on the message or through `Chat`'s `fetchLinkPreview`.
66
+ */
67
+ export interface LinkPreview {
68
+ /** The page the preview is for; a tap opens it. Defaults to the first link in the text. */
69
+ url?: string;
70
+ /** The site's name, drawn in the accent color on top (`og:site_name`). */
71
+ siteName?: string;
72
+ /** The page title, bold (`og:title`). */
73
+ title?: string;
74
+ /** A few lines of the page's description (`og:description`). */
75
+ description?: string;
76
+ /** The page's picture (`og:image`). */
77
+ image?: string;
78
+ /** The picture's size, so it keeps its aspect ratio before it has loaded. */
79
+ imageWidth?: number;
80
+ imageHeight?: number;
81
+ /**
82
+ * `'large'` draws the picture full width under the text, `'small'` as a 48dp thumbnail at the
83
+ * top right, as for articles. Default: large when the picture is wider than tall.
84
+ */
85
+ imageSize?: 'large' | 'small';
86
+ }
41
87
  export interface IMessage {
42
88
  _id: string | number;
43
89
  text: string;
44
90
  createdAt: Date | number;
45
91
  user: User;
46
92
  image?: string;
93
+ /**
94
+ * A tiny stand-in shown under `image` until it has loaded, like a blurred thumbnail:
95
+ * a small image uri (drawn blurred), or a blurhash string when
96
+ * `expo-image` is installed.
97
+ */
98
+ imagePlaceholder?: string;
47
99
  video?: string;
48
- /** Render `video` as a Telegram-style round video note (circular, autoplay/muted) instead of a rectangular player. */
100
+ /** Render `video` as a round video note (circular, autoplay/muted) instead of a rectangular player. */
49
101
  videoNote?: boolean;
50
102
  audio?: string;
103
+ /**
104
+ * The voice or round note has not been played by its recipient yet. Draws
105
+ * an unread dot: on an incoming note until you play it, on an
106
+ * outgoing one until the recipient does.
107
+ */
108
+ isMediaUnread?: boolean;
109
+ /**
110
+ * A view-once voice or round note: it plays a
111
+ * single time, then `mediaPlayback.onViewOnceEnd` lets the app remove it.
112
+ */
113
+ isViewOnce?: boolean;
114
+ /** Text of a transcribed voice or round note, shown under it. */
115
+ transcription?: string;
51
116
  /**
52
117
  * Length of `audio` / `video` in seconds. Set by the built-in recorders and
53
118
  * used to label a voice note before its file has been decoded, so a bubble can
@@ -55,9 +120,17 @@ export interface IMessage {
55
120
  */
56
121
  duration?: number;
57
122
  system?: boolean;
123
+ /** The message is pinned; the menu's pin action then reads "Unpin". */
124
+ isPinned?: boolean;
58
125
  sent?: boolean;
59
126
  received?: boolean;
60
127
  pending?: boolean;
128
+ /** Sending failed: the ticks give way to a red error badge. */
129
+ isFailed?: boolean;
130
+ /** The message was edited; its time reads "edited 14:05". Set by `useChatMessages`'s edit. */
131
+ isEdited?: boolean;
132
+ /** When the message was last edited; any value also shows the "edited" mark. */
133
+ editedAt?: Date | number;
61
134
  /** True while this message's text is still being streamed in (shows a typing cursor) */
62
135
  streaming?: boolean;
63
136
  quickReplies?: QuickReplies;
@@ -67,6 +140,43 @@ export interface IMessage {
67
140
  latitude: number;
68
141
  longitude: number;
69
142
  };
143
+ /** A document: a file bubble (icon, name, size); a tap opens it. */
144
+ file?: IMessageFile;
145
+ /** A preview of the first link in `text`, drawn under it. `null` hides the preview for this message. */
146
+ linkPreview?: LinkPreview | null;
147
+ /**
148
+ * The message's media (photo, video, file, voice or round note) is uploading or downloading.
149
+ * Draws a progress ring with a cancel ✕ over it; a tap calls `mediaTransfer.onCancel`.
150
+ */
151
+ transfer?: MediaTransfer;
152
+ /**
153
+ * The media is not on the device and is not fetched by itself: a download arrow,
154
+ * which calls `mediaTransfer.onDownload` when tapped. Without that handler a voice note
155
+ * downloads itself on the tap.
156
+ */
157
+ isDownloadRequired?: boolean;
158
+ /**
159
+ * A voice note's waveform, as the server sends it with the note: levels in 0..1, or 5-bit
160
+ * 0..31 values. Drawn at once, before the audio has downloaded, and resampled to the
161
+ * bubble's bar count; without it the waveform is decoded from the audio.
162
+ */
163
+ waveform?: number[];
164
+ }
165
+ /** An upload or download of a message's media, `IMessage.transfer`. */
166
+ export interface MediaTransfer {
167
+ /** `upload` while sending, `download` while fetching. Both draw the same ring. */
168
+ type: 'upload' | 'download';
169
+ /** 0..1. Leave it out while unknown: the ring then shows a 4-degree dot, still turning. */
170
+ progress?: number;
171
+ /** The file's size in bytes: a photo or video then shows "1.2 MB / 4.5 MB" while it moves. */
172
+ totalBytes?: number;
173
+ }
174
+ /** Handlers for the media buttons of messages with `transfer` or `isDownloadRequired`. */
175
+ export interface MediaTransferProps {
176
+ /** The download arrow was tapped: start fetching, and set `transfer` while it runs. */
177
+ onDownload?: (message: IMessage) => void;
178
+ /** The cancel ✕ was tapped during an upload or download. */
179
+ onCancel?: (message: IMessage) => void;
70
180
  }
71
181
  export type IChatMessage = IMessage;
72
182
  export interface MessageVideoProps<TMessage extends IMessage> {
@@ -83,6 +193,13 @@ export interface MessageAudioProps<TMessage extends IMessage> {
83
193
  audioStyle?: StyleProp<ViewStyle>;
84
194
  audioProps?: object;
85
195
  }
196
+ export interface MessageFileProps<TMessage extends IMessage> {
197
+ currentMessage: TMessage;
198
+ position?: 'left' | 'right';
199
+ containerStyle?: StyleProp<ViewStyle>;
200
+ /** Override opening the file (the system share sheet with `expo-sharing`, else `Linking`). */
201
+ onPress?: (file: IMessageFile) => void;
202
+ }
86
203
  export interface MessageLocationProps<TMessage extends IMessage> {
87
204
  currentMessage: TMessage;
88
205
  position?: 'left' | 'right';
@@ -95,10 +212,16 @@ export interface MessageLocationProps<TMessage extends IMessage> {
95
212
  }) => void;
96
213
  }
97
214
  /**
98
- * Telegram-style hold-to-record voice messages. Requires the optional
215
+ * Hold-to-record voice messages. Requires the optional
99
216
  * `expo-audio` peer dependency; when it is absent the mic button is hidden.
100
217
  */
101
218
  export interface AudioRecordingProps {
219
+ /**
220
+ * Show the "view once" toggle above the lock while a take is locked.
221
+ * A take sent with it on arrives in `onSend` with `isViewOnce: true`.
222
+ */
223
+ isViewOnceEnabled?: boolean;
224
+ /** On by default when `expo-audio` is installed; `false` hides the mic button. */
102
225
  isEnabled?: boolean;
103
226
  /** Minimum recording length (ms) below which the take is discarded. Default 800. */
104
227
  minDurationMs?: number;
@@ -123,6 +246,12 @@ export interface AudioRecordingProps {
123
246
  * `expo-image-picker` peer dependency; when it is absent the button is hidden.
124
247
  */
125
248
  export interface VideoRecordingProps {
249
+ /** As `audioRecording.isViewOnceEnabled`, for round video takes. */
250
+ isViewOnceEnabled?: boolean;
251
+ /**
252
+ * On by default when `react-native-vision-camera` is installed; `false` turns round video
253
+ * off, `true` also falls back to the system camera (`expo-image-picker`) without it.
254
+ */
126
255
  isEnabled?: boolean;
127
256
  /** Max video length in seconds. Default 60. */
128
257
  maxDuration?: number;
@@ -133,7 +262,63 @@ export interface VideoRecordingProps {
133
262
  * point the user at Settings instead of leaving a dead button.
134
263
  */
135
264
  onPermissionDenied?: () => void;
265
+ /** Called when a take is dropped for being shorter than `minDurationMs`. */
266
+ onTooShort?: () => void;
136
267
  onError?: (error: unknown) => void;
137
268
  }
269
+ /**
270
+ * How voice notes and round video notes play back in the chat: one speed
271
+ * shared by every note, and a run of notes playing one after another.
272
+ */
273
+ export interface MediaPlaybackProps {
274
+ /**
275
+ * When a voice or round video note plays to its end, start the next newer
276
+ * one in the chat. Default true.
277
+ */
278
+ isAutoPlayNextEnabled?: boolean;
279
+ /**
280
+ * Playback speed to start with (1, 1.5 or 2). The speed is shared by every
281
+ * note; pair this with `onPlaybackRateChange` to keep it across launches.
282
+ */
283
+ playbackRate?: number;
284
+ /** Called when the user changes the playback speed on any note. */
285
+ onPlaybackRateChange?: (rate: number) => void;
286
+ /**
287
+ * Round video notes loop silently in the list until tapped ("autoplay
288
+ * videos"). Default false: a note holds its first frame with a play
289
+ * button, and grows when tapped.
290
+ */
291
+ isRoundVideoAutoplayEnabled?: boolean;
292
+ /**
293
+ * A "now playing" bar at the top of the chat while a voice or round
294
+ * note plays or is paused: play/pause, sender, speed and close. Default true.
295
+ */
296
+ isNowPlayingBarEnabled?: boolean;
297
+ /**
298
+ * The floating round note: a round note still
299
+ * playing or paused when its row scrolls out of view keeps going in a small
300
+ * draggable circle over the list. Default true; when false, the note stops
301
+ * with its row instead, as a voice note does.
302
+ */
303
+ isFloatingRoundNoteEnabled?: boolean;
304
+ /**
305
+ * Called when an incoming voice or round note marked `isMediaUnread` starts
306
+ * playing, so the app can mark it listened.
307
+ */
308
+ onMediaRead?: (message: IMessage) => void;
309
+ /**
310
+ * The phone is held to the ear, from the app's proximity sensor. Raise to
311
+ * listen: playback moves to the earpiece, a note under a second in
312
+ * restarts, and lowering the phone pauses it.
313
+ */
314
+ isNearEar?: boolean;
315
+ /**
316
+ * Shows a transcribe button on voice and round notes. Called on tap; the app
317
+ * transcribes and sets `IMessage.transcription`, which is then shown.
318
+ */
319
+ onTranscribe?: (message: IMessage) => void;
320
+ /** A view-once note finished playing; the app should remove it. */
321
+ onViewOnceEnd?: (message: IMessage) => void;
322
+ }
138
323
  export {};
139
324
  //# sourceMappingURL=Models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../src/Models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,MAAM,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAErD,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,mEAAmE;IACnE,IAAI,CAAC,EAAE,YAAY,CAA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AA;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mEAAmE;IACnE,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAA;IACrC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAA;IACzC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAA;IAC1C,mEAAmE;IACnE,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAA;CAC5C"}
package/lib/Models.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Models.js","sourceRoot":"","sources":["../src/Models.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Models.js","names":[],"sources":["../src/Models.ts"],"sourcesContent":["import { StyleProp, ViewStyle } from 'react-native'\nimport { IconRenderer } from './Icons'\n\nexport type Omit<T, K> = Pick<T, Exclude<keyof T, K>>\n\n/**\n * The actions the chat can put in the long-press menu by itself, in this order:\n * `reply`, `copy`, `forward`, `pin`, `edit`, `delete`.\n */\nexport type MessageActionKey = 'reply' | 'copy' | 'forward' | 'pin' | 'edit' | 'select' | 'delete'\n\n/** An action shown in the message long-press context menu. */\nexport interface MessageMenuItem {\n /**\n * Identifies the action. The built-in ones carry their `MessageActionKey`, so a\n * `messageActions` function can find, drop or reorder them.\n */\n key?: MessageActionKey | string\n label: string\n /** Optional leading icon, e.g. a lucide-react-native component. */\n icon?: IconRenderer\n onPress: () => void\n /** Render the label in the destructive (error) color. */\n destructive?: boolean\n}\n\nexport interface LeftRightStyle<T> {\n left?: StyleProp<T>\n right?: StyleProp<T>\n}\n\ntype renderFunction = (x: unknown) => React.ReactNode\n\nexport interface User {\n _id: string | number\n name?: string\n avatar?: string | number | renderFunction\n}\n\nexport interface Reply {\n title: string\n value: string\n messageId?: number | string\n}\n\nexport interface QuickReplies {\n type: 'radio' | 'checkbox'\n values: Reply[]\n keepIt?: boolean\n}\n\nexport interface ReplyMessage extends Pick<IMessage, '_id' | 'text' | 'user' | 'audio' | 'image'> {}\n\nexport interface MessageReaction {\n /** The emoji character (e.g. '👍') */\n emoji: string\n /** IDs of the users who reacted with this emoji */\n userIds: (string | number)[]\n}\n\n/** A document attached to a message (`IMessage.file`), drawn as a file bubble. */\nexport interface IMessageFile {\n /** Where the file is: a local `file://` path or a remote URL. */\n uri: string\n /** The file name shown in the bubble, with its extension. */\n name: string\n /** Size in bytes, shown under the name. */\n size?: number\n /** MIME type, used when the file is opened or shared. */\n mimeType?: string\n}\n\n/**\n * A web page preview for the first link in a message: a block under the text\n * (accent bar, site name, title, description, picture). Fetching it takes a request to the page,\n * so the app supplies it, on the message or through `Chat`'s `fetchLinkPreview`.\n */\nexport interface LinkPreview {\n /** The page the preview is for; a tap opens it. Defaults to the first link in the text. */\n url?: string\n /** The site's name, drawn in the accent color on top (`og:site_name`). */\n siteName?: string\n /** The page title, bold (`og:title`). */\n title?: string\n /** A few lines of the page's description (`og:description`). */\n description?: string\n /** The page's picture (`og:image`). */\n image?: string\n /** The picture's size, so it keeps its aspect ratio before it has loaded. */\n imageWidth?: number\n imageHeight?: number\n /**\n * `'large'` draws the picture full width under the text, `'small'` as a 48dp thumbnail at the\n * top right, as for articles. Default: large when the picture is wider than tall.\n */\n imageSize?: 'large' | 'small'\n}\n\nexport interface IMessage {\n _id: string | number\n text: string\n createdAt: Date | number\n user: User\n image?: string\n /**\n * A tiny stand-in shown under `image` until it has loaded, like a blurred thumbnail:\n * a small image uri (drawn blurred), or a blurhash string when\n * `expo-image` is installed.\n */\n imagePlaceholder?: string\n video?: string\n /** Render `video` as a round video note (circular, autoplay/muted) instead of a rectangular player. */\n videoNote?: boolean\n audio?: string\n /**\n * The voice or round note has not been played by its recipient yet. Draws\n * an unread dot: on an incoming note until you play it, on an\n * outgoing one until the recipient does.\n */\n isMediaUnread?: boolean\n /**\n * A view-once voice or round note: it plays a\n * single time, then `mediaPlayback.onViewOnceEnd` lets the app remove it.\n */\n isViewOnce?: boolean\n /** Text of a transcribed voice or round note, shown under it. */\n transcription?: string\n /**\n * Length of `audio` / `video` in seconds. Set by the built-in recorders and\n * used to label a voice note before its file has been decoded, so a bubble can\n * render its duration without downloading the whole clip first.\n */\n duration?: number\n system?: boolean\n /** The message is pinned; the menu's pin action then reads \"Unpin\". */\n isPinned?: boolean\n sent?: boolean\n received?: boolean\n pending?: boolean\n /** Sending failed: the ticks give way to a red error badge. */\n isFailed?: boolean\n /** The message was edited; its time reads \"edited 14:05\". Set by `useChatMessages`'s edit. */\n isEdited?: boolean\n /** When the message was last edited; any value also shows the \"edited\" mark. */\n editedAt?: Date | number\n /** True while this message's text is still being streamed in (shows a typing cursor) */\n streaming?: boolean\n quickReplies?: QuickReplies\n replyMessage?: ReplyMessage\n reactions?: MessageReaction[]\n location?: {\n latitude: number\n longitude: number\n }\n /** A document: a file bubble (icon, name, size); a tap opens it. */\n file?: IMessageFile\n /** A preview of the first link in `text`, drawn under it. `null` hides the preview for this message. */\n linkPreview?: LinkPreview | null\n /**\n * The message's media (photo, video, file, voice or round note) is uploading or downloading.\n * Draws a progress ring with a cancel ✕ over it; a tap calls `mediaTransfer.onCancel`.\n */\n transfer?: MediaTransfer\n /**\n * The media is not on the device and is not fetched by itself: a download arrow,\n * which calls `mediaTransfer.onDownload` when tapped. Without that handler a voice note\n * downloads itself on the tap.\n */\n isDownloadRequired?: boolean\n /**\n * A voice note's waveform, as the server sends it with the note: levels in 0..1, or 5-bit\n * 0..31 values. Drawn at once, before the audio has downloaded, and resampled to the\n * bubble's bar count; without it the waveform is decoded from the audio.\n */\n waveform?: number[]\n}\n\n/** An upload or download of a message's media, `IMessage.transfer`. */\nexport interface MediaTransfer {\n /** `upload` while sending, `download` while fetching. Both draw the same ring. */\n type: 'upload' | 'download'\n /** 0..1. Leave it out while unknown: the ring then shows a 4-degree dot, still turning. */\n progress?: number\n /** The file's size in bytes: a photo or video then shows \"1.2 MB / 4.5 MB\" while it moves. */\n totalBytes?: number\n}\n\n/** Handlers for the media buttons of messages with `transfer` or `isDownloadRequired`. */\nexport interface MediaTransferProps {\n /** The download arrow was tapped: start fetching, and set `transfer` while it runs. */\n onDownload?: (message: IMessage) => void\n /** The cancel ✕ was tapped during an upload or download. */\n onCancel?: (message: IMessage) => void\n}\n\nexport type IChatMessage = IMessage\n\nexport interface MessageVideoProps<TMessage extends IMessage> {\n currentMessage: TMessage\n position?: 'left' | 'right'\n containerStyle?: StyleProp<ViewStyle>\n videoStyle?: StyleProp<ViewStyle>\n videoProps?: object\n}\n\nexport interface MessageAudioProps<TMessage extends IMessage> {\n currentMessage: TMessage\n position?: 'left' | 'right'\n containerStyle?: StyleProp<ViewStyle>\n audioStyle?: StyleProp<ViewStyle>\n audioProps?: object\n}\n\nexport interface MessageFileProps<TMessage extends IMessage> {\n currentMessage: TMessage\n position?: 'left' | 'right'\n containerStyle?: StyleProp<ViewStyle>\n /** Override opening the file (the system share sheet with `expo-sharing`, else `Linking`). */\n onPress?: (file: IMessageFile) => void\n}\n\nexport interface MessageLocationProps<TMessage extends IMessage> {\n currentMessage: TMessage\n position?: 'left' | 'right'\n containerStyle?: StyleProp<ViewStyle>\n locationStyle?: StyleProp<ViewStyle>\n /** Override the default behavior (opening the system maps app) when tapped. */\n onPress?: (location: { latitude: number, longitude: number }) => void\n}\n\n/**\n * Hold-to-record voice messages. Requires the optional\n * `expo-audio` peer dependency; when it is absent the mic button is hidden.\n */\nexport interface AudioRecordingProps {\n /**\n * Show the \"view once\" toggle above the lock while a take is locked.\n * A take sent with it on arrives in `onSend` with `isViewOnce: true`.\n */\n isViewOnceEnabled?: boolean\n /** On by default when `expo-audio` is installed; `false` hides the mic button. */\n isEnabled?: boolean\n /** Minimum recording length (ms) below which the take is discarded. Default 800. */\n minDurationMs?: number\n /**\n * Maximum recording length (ms); the take is sent automatically when reached.\n * Matters most for a locked recording, which otherwise runs until the user\n * sends it. Default 600000 (10 minutes).\n */\n maxDurationMs?: number\n /**\n * Called when the microphone permission is refused. iOS never re-prompts, so\n * this is the hook for pointing the user at Settings - without it a denied\n * permission leaves the mic button silently dead.\n */\n onPermissionDenied?: () => void\n /** Called when a take is dropped for being shorter than `minDurationMs`. */\n onTooShort?: () => void\n onError?: (error: unknown) => void\n}\n\n/**\n * Record-and-send video messages from the camera. Requires the optional\n * `expo-image-picker` peer dependency; when it is absent the button is hidden.\n */\nexport interface VideoRecordingProps {\n /** As `audioRecording.isViewOnceEnabled`, for round video takes. */\n isViewOnceEnabled?: boolean\n /**\n * On by default when `react-native-vision-camera` is installed; `false` turns round video\n * off, `true` also falls back to the system camera (`expo-image-picker`) without it.\n */\n isEnabled?: boolean\n /** Max video length in seconds. Default 60. */\n maxDuration?: number\n /** Minimum video length (ms) below which the take is discarded. Default 800. */\n minDurationMs?: number\n /**\n * Called when the camera (or microphone) permission is refused, so the app can\n * point the user at Settings instead of leaving a dead button.\n */\n onPermissionDenied?: () => void\n /** Called when a take is dropped for being shorter than `minDurationMs`. */\n onTooShort?: () => void\n onError?: (error: unknown) => void\n}\n\n/**\n * How voice notes and round video notes play back in the chat: one speed\n * shared by every note, and a run of notes playing one after another.\n */\nexport interface MediaPlaybackProps {\n /**\n * When a voice or round video note plays to its end, start the next newer\n * one in the chat. Default true.\n */\n isAutoPlayNextEnabled?: boolean\n /**\n * Playback speed to start with (1, 1.5 or 2). The speed is shared by every\n * note; pair this with `onPlaybackRateChange` to keep it across launches.\n */\n playbackRate?: number\n /** Called when the user changes the playback speed on any note. */\n onPlaybackRateChange?: (rate: number) => void\n /**\n * Round video notes loop silently in the list until tapped (\"autoplay\n * videos\"). Default false: a note holds its first frame with a play\n * button, and grows when tapped.\n */\n isRoundVideoAutoplayEnabled?: boolean\n /**\n * A \"now playing\" bar at the top of the chat while a voice or round\n * note plays or is paused: play/pause, sender, speed and close. Default true.\n */\n isNowPlayingBarEnabled?: boolean\n /**\n * The floating round note: a round note still\n * playing or paused when its row scrolls out of view keeps going in a small\n * draggable circle over the list. Default true; when false, the note stops\n * with its row instead, as a voice note does.\n */\n isFloatingRoundNoteEnabled?: boolean\n /**\n * Called when an incoming voice or round note marked `isMediaUnread` starts\n * playing, so the app can mark it listened.\n */\n onMediaRead?: (message: IMessage) => void\n /**\n * The phone is held to the ear, from the app's proximity sensor. Raise to\n * listen: playback moves to the earpiece, a note under a second in\n * restarts, and lowering the phone pauses it.\n */\n isNearEar?: boolean\n /**\n * Shows a transcribe button on voice and round notes. Called on tap; the app\n * transcribes and sets `IMessage.transcription`, which is then shown.\n */\n onTranscribe?: (message: IMessage) => void\n /** A view-once note finished playing; the app should remove it. */\n onViewOnceEnd?: (message: IMessage) => void\n}\n"],"mappings":"","ignoreList":[]}