stream-chat-react-native-core 10.0.0-rc.2 → 10.0.0-rc.3

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 (500) hide show
  1. package/lib/commonjs/ai-components/README.md +50 -2
  2. package/lib/commonjs/ai-components/index.js +24 -0
  3. package/lib/commonjs/ai-components/index.js.map +1 -1
  4. package/lib/commonjs/ai-components/message-composer/ComposerView.js +4 -2
  5. package/lib/commonjs/ai-components/message-composer/ComposerView.js.map +1 -1
  6. package/lib/commonjs/ai-components/message-composer/SpeechToTextButton.js +4 -1
  7. package/lib/commonjs/ai-components/message-composer/SpeechToTextButton.js.map +1 -1
  8. package/lib/commonjs/ai-components/native/AIDictation.js +6 -0
  9. package/lib/commonjs/ai-components/native/AIDictation.js.map +1 -1
  10. package/lib/commonjs/ai-components/store/dictation/store.js +4 -2
  11. package/lib/commonjs/ai-components/store/dictation/store.js.map +1 -1
  12. package/lib/commonjs/ai-components/store/dictation/useDictationState.js +4 -2
  13. package/lib/commonjs/ai-components/store/dictation/useDictationState.js.map +1 -1
  14. package/lib/commonjs/ai-components/store/index.js +22 -0
  15. package/lib/commonjs/ai-components/store/index.js.map +1 -1
  16. package/lib/commonjs/ai-components/theme.js +3 -0
  17. package/lib/commonjs/ai-components/theme.js.map +1 -1
  18. package/lib/commonjs/ai-components/transcription/useDictation.js +7 -3
  19. package/lib/commonjs/ai-components/transcription/useDictation.js.map +1 -1
  20. package/lib/commonjs/ai-components/transcription/useDictationAudioLevel.js +32 -0
  21. package/lib/commonjs/ai-components/transcription/useDictationAudioLevel.js.map +1 -0
  22. package/lib/commonjs/ai-components/voice-visualization/VoiceGlow.js +79 -0
  23. package/lib/commonjs/ai-components/voice-visualization/VoiceGlow.js.map +1 -0
  24. package/lib/commonjs/ai-components/voice-visualization/VoiceVisualizationView.js +147 -0
  25. package/lib/commonjs/ai-components/voice-visualization/VoiceVisualizationView.js.map +1 -0
  26. package/lib/commonjs/ai-components/voice-visualization/VoiceWave.js +58 -0
  27. package/lib/commonjs/ai-components/voice-visualization/VoiceWave.js.map +1 -0
  28. package/lib/commonjs/ai-components/voice-visualization/bounce.js +60 -0
  29. package/lib/commonjs/ai-components/voice-visualization/bounce.js.map +1 -0
  30. package/lib/commonjs/ai-components/voice-visualization/driver.js +208 -0
  31. package/lib/commonjs/ai-components/voice-visualization/driver.js.map +1 -0
  32. package/lib/commonjs/ai-components/voice-visualization/glowShader.js +218 -0
  33. package/lib/commonjs/ai-components/voice-visualization/glowShader.js.map +1 -0
  34. package/lib/commonjs/ai-components/voice-visualization/index.js +18 -0
  35. package/lib/commonjs/ai-components/voice-visualization/index.js.map +1 -0
  36. package/lib/commonjs/ai-components/voice-visualization/math.js +70 -0
  37. package/lib/commonjs/ai-components/voice-visualization/math.js.map +1 -0
  38. package/lib/commonjs/ai-components/voice-visualization/palette.js +47 -0
  39. package/lib/commonjs/ai-components/voice-visualization/palette.js.map +1 -0
  40. package/lib/commonjs/ai-components/voice-visualization/simplex.js +77 -0
  41. package/lib/commonjs/ai-components/voice-visualization/simplex.js.map +1 -0
  42. package/lib/commonjs/ai-components/voice-visualization/styles.js +33 -0
  43. package/lib/commonjs/ai-components/voice-visualization/styles.js.map +1 -0
  44. package/lib/commonjs/ai-components/voice-visualization/types.js +4 -0
  45. package/lib/commonjs/ai-components/voice-visualization/types.js.map +1 -0
  46. package/lib/commonjs/ai-components/voice-visualization/useReduceMotion.js +28 -0
  47. package/lib/commonjs/ai-components/voice-visualization/useReduceMotion.js.map +1 -0
  48. package/lib/commonjs/ai-components/voice-visualization/useVoiceVisualization.js +129 -0
  49. package/lib/commonjs/ai-components/voice-visualization/useVoiceVisualization.js.map +1 -0
  50. package/lib/commonjs/ai-components/voice-visualization/waveGeometry.js +124 -0
  51. package/lib/commonjs/ai-components/voice-visualization/waveGeometry.js.map +1 -0
  52. package/lib/commonjs/components/Channel/hooks/useChannelLifecycle.js +2 -1
  53. package/lib/commonjs/components/Channel/hooks/useChannelLifecycle.js.map +1 -1
  54. package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +1 -1
  55. package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
  56. package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +1 -1
  57. package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
  58. package/lib/commonjs/components/ChannelList/ChannelListView.js +0 -2
  59. package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
  60. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +1 -1
  61. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  62. package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +1 -1
  63. package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
  64. package/lib/commonjs/components/ChannelPreview/ChannelLastMessagePreview.js +1 -0
  65. package/lib/commonjs/components/ChannelPreview/ChannelLastMessagePreview.js.map +1 -1
  66. package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +2 -0
  67. package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
  68. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -0
  69. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  70. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +1 -1
  71. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  72. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js +5 -5
  73. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
  74. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +1 -1
  75. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  76. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +1 -1
  77. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  78. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +4 -1
  79. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
  80. package/lib/commonjs/components/Chat/hooks/useConnectionLifecycle.js +6 -2
  81. package/lib/commonjs/components/Chat/hooks/useConnectionLifecycle.js.map +1 -1
  82. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js +5 -0
  83. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  84. package/lib/commonjs/components/Message/Message.js +1 -1
  85. package/lib/commonjs/components/Message/Message.js.map +1 -1
  86. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +4 -0
  87. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  88. package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js +7 -4
  89. package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
  90. package/lib/commonjs/components/Message/hooks/useCreateMessageActionHandlers.js +3 -3
  91. package/lib/commonjs/components/Message/hooks/useCreateMessageActionHandlers.js.map +1 -1
  92. package/lib/commonjs/components/Message/hooks/useProcessReactions.js +2 -2
  93. package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
  94. package/lib/commonjs/components/Message/hooks/useUserMuteActive.js +1 -1
  95. package/lib/commonjs/components/Message/hooks/useUserMuteActive.js.map +1 -1
  96. package/lib/commonjs/components/MessageInput/MessageComposer.js +2 -1
  97. package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
  98. package/lib/commonjs/components/MessageList/MessageFlashList.js +2 -2
  99. package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
  100. package/lib/commonjs/components/MessageList/MessageList.js +2 -2
  101. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  102. package/lib/commonjs/components/MessageList/hooks/useOwnUnreadCount.js +1 -1
  103. package/lib/commonjs/components/MessageList/hooks/useOwnUnreadCount.js.map +1 -1
  104. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +1 -1
  105. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  106. package/lib/commonjs/components/MessageMenu/hooks/useMessageOwnReactions.js +2 -2
  107. package/lib/commonjs/components/MessageMenu/hooks/useMessageOwnReactions.js.map +1 -1
  108. package/lib/commonjs/components/Poll/components/PollAnswersList.js +1 -1
  109. package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
  110. package/lib/commonjs/components/Poll/components/PollButtons.js +1 -1
  111. package/lib/commonjs/components/Poll/components/PollButtons.js.map +1 -1
  112. package/lib/commonjs/components/Poll/hook/useIsPollCreatedByCurrentUser.js +1 -1
  113. package/lib/commonjs/components/Poll/hook/useIsPollCreatedByCurrentUser.js.map +1 -1
  114. package/lib/commonjs/components/Thread/Thread.js +1 -1
  115. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  116. package/lib/commonjs/components/ThreadList/ThreadListItem.js +1 -1
  117. package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
  118. package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +9 -2
  119. package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
  120. package/lib/commonjs/components/index.js +24 -0
  121. package/lib/commonjs/components/index.js.map +1 -1
  122. package/lib/commonjs/contexts/componentsContext/defaultComponents.js +0 -2
  123. package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
  124. package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +1 -1
  125. package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
  126. package/lib/commonjs/hooks/actions/useChannelActionItems.js +1 -1
  127. package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
  128. package/lib/commonjs/hooks/actions/useChannelActions.js +2 -2
  129. package/lib/commonjs/hooks/actions/useChannelActions.js.map +1 -1
  130. package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +1 -1
  131. package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
  132. package/lib/commonjs/hooks/index.js +11 -0
  133. package/lib/commonjs/hooks/index.js.map +1 -1
  134. package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js +6 -6
  135. package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
  136. package/lib/commonjs/hooks/useIsDirectChat.js +1 -1
  137. package/lib/commonjs/hooks/useIsDirectChat.js.map +1 -1
  138. package/lib/commonjs/i18n/runtimeDefaults.js +1 -0
  139. package/lib/commonjs/i18n/runtimeDefaults.js.map +1 -1
  140. package/lib/commonjs/store/apis/getChannelMessages.js +5 -3
  141. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  142. package/lib/commonjs/store/apis/getChannels.js +6 -3
  143. package/lib/commonjs/store/apis/getChannels.js.map +1 -1
  144. package/lib/commonjs/store/apis/getChannelsForFilterSort.js +2 -1
  145. package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
  146. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +7 -5
  147. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  148. package/lib/commonjs/utils/installNativeMultipartAdapter.js.map +1 -1
  149. package/lib/commonjs/version.json +1 -1
  150. package/lib/module/ai-components/README.md +50 -2
  151. package/lib/module/ai-components/index.js +24 -0
  152. package/lib/module/ai-components/index.js.map +1 -1
  153. package/lib/module/ai-components/message-composer/ComposerView.js +4 -2
  154. package/lib/module/ai-components/message-composer/ComposerView.js.map +1 -1
  155. package/lib/module/ai-components/message-composer/SpeechToTextButton.js +4 -1
  156. package/lib/module/ai-components/message-composer/SpeechToTextButton.js.map +1 -1
  157. package/lib/module/ai-components/native/AIDictation.js +6 -0
  158. package/lib/module/ai-components/native/AIDictation.js.map +1 -1
  159. package/lib/module/ai-components/store/dictation/store.js +4 -2
  160. package/lib/module/ai-components/store/dictation/store.js.map +1 -1
  161. package/lib/module/ai-components/store/dictation/useDictationState.js +4 -2
  162. package/lib/module/ai-components/store/dictation/useDictationState.js.map +1 -1
  163. package/lib/module/ai-components/store/index.js +22 -0
  164. package/lib/module/ai-components/store/index.js.map +1 -1
  165. package/lib/module/ai-components/theme.js +3 -0
  166. package/lib/module/ai-components/theme.js.map +1 -1
  167. package/lib/module/ai-components/transcription/useDictation.js +7 -3
  168. package/lib/module/ai-components/transcription/useDictation.js.map +1 -1
  169. package/lib/module/ai-components/transcription/useDictationAudioLevel.js +32 -0
  170. package/lib/module/ai-components/transcription/useDictationAudioLevel.js.map +1 -0
  171. package/lib/module/ai-components/voice-visualization/VoiceGlow.js +79 -0
  172. package/lib/module/ai-components/voice-visualization/VoiceGlow.js.map +1 -0
  173. package/lib/module/ai-components/voice-visualization/VoiceVisualizationView.js +147 -0
  174. package/lib/module/ai-components/voice-visualization/VoiceVisualizationView.js.map +1 -0
  175. package/lib/module/ai-components/voice-visualization/VoiceWave.js +58 -0
  176. package/lib/module/ai-components/voice-visualization/VoiceWave.js.map +1 -0
  177. package/lib/module/ai-components/voice-visualization/bounce.js +60 -0
  178. package/lib/module/ai-components/voice-visualization/bounce.js.map +1 -0
  179. package/lib/module/ai-components/voice-visualization/driver.js +208 -0
  180. package/lib/module/ai-components/voice-visualization/driver.js.map +1 -0
  181. package/lib/module/ai-components/voice-visualization/glowShader.js +218 -0
  182. package/lib/module/ai-components/voice-visualization/glowShader.js.map +1 -0
  183. package/lib/module/ai-components/voice-visualization/index.js +18 -0
  184. package/lib/module/ai-components/voice-visualization/index.js.map +1 -0
  185. package/lib/module/ai-components/voice-visualization/math.js +70 -0
  186. package/lib/module/ai-components/voice-visualization/math.js.map +1 -0
  187. package/lib/module/ai-components/voice-visualization/palette.js +47 -0
  188. package/lib/module/ai-components/voice-visualization/palette.js.map +1 -0
  189. package/lib/module/ai-components/voice-visualization/simplex.js +77 -0
  190. package/lib/module/ai-components/voice-visualization/simplex.js.map +1 -0
  191. package/lib/module/ai-components/voice-visualization/styles.js +33 -0
  192. package/lib/module/ai-components/voice-visualization/styles.js.map +1 -0
  193. package/lib/module/ai-components/voice-visualization/types.js +4 -0
  194. package/lib/module/ai-components/voice-visualization/types.js.map +1 -0
  195. package/lib/module/ai-components/voice-visualization/useReduceMotion.js +28 -0
  196. package/lib/module/ai-components/voice-visualization/useReduceMotion.js.map +1 -0
  197. package/lib/module/ai-components/voice-visualization/useVoiceVisualization.js +129 -0
  198. package/lib/module/ai-components/voice-visualization/useVoiceVisualization.js.map +1 -0
  199. package/lib/module/ai-components/voice-visualization/waveGeometry.js +124 -0
  200. package/lib/module/ai-components/voice-visualization/waveGeometry.js.map +1 -0
  201. package/lib/module/components/Channel/hooks/useChannelLifecycle.js +2 -1
  202. package/lib/module/components/Channel/hooks/useChannelLifecycle.js.map +1 -1
  203. package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +1 -1
  204. package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
  205. package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +1 -1
  206. package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
  207. package/lib/module/components/ChannelList/ChannelListView.js +0 -2
  208. package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
  209. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +1 -1
  210. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  211. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +1 -1
  212. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
  213. package/lib/module/components/ChannelPreview/ChannelLastMessagePreview.js +1 -0
  214. package/lib/module/components/ChannelPreview/ChannelLastMessagePreview.js.map +1 -1
  215. package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +2 -0
  216. package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
  217. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -0
  218. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  219. package/lib/module/components/ChannelPreview/ChannelPreviewView.js +1 -1
  220. package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  221. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js +5 -5
  222. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
  223. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +1 -1
  224. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  225. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +1 -1
  226. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  227. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +4 -1
  228. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
  229. package/lib/module/components/Chat/hooks/useConnectionLifecycle.js +6 -2
  230. package/lib/module/components/Chat/hooks/useConnectionLifecycle.js.map +1 -1
  231. package/lib/module/components/Indicators/LoadingErrorIndicator.js +5 -0
  232. package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  233. package/lib/module/components/Message/Message.js +1 -1
  234. package/lib/module/components/Message/Message.js.map +1 -1
  235. package/lib/module/components/Message/MessageItemView/MessageStatus.js +4 -0
  236. package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  237. package/lib/module/components/Message/MessageItemView/MessageWrapper.js +7 -4
  238. package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
  239. package/lib/module/components/Message/hooks/useCreateMessageActionHandlers.js +3 -3
  240. package/lib/module/components/Message/hooks/useCreateMessageActionHandlers.js.map +1 -1
  241. package/lib/module/components/Message/hooks/useProcessReactions.js +2 -2
  242. package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
  243. package/lib/module/components/Message/hooks/useUserMuteActive.js +1 -1
  244. package/lib/module/components/Message/hooks/useUserMuteActive.js.map +1 -1
  245. package/lib/module/components/MessageInput/MessageComposer.js +2 -1
  246. package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
  247. package/lib/module/components/MessageList/MessageFlashList.js +2 -2
  248. package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
  249. package/lib/module/components/MessageList/MessageList.js +2 -2
  250. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  251. package/lib/module/components/MessageList/hooks/useOwnUnreadCount.js +1 -1
  252. package/lib/module/components/MessageList/hooks/useOwnUnreadCount.js.map +1 -1
  253. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +1 -1
  254. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  255. package/lib/module/components/MessageMenu/hooks/useMessageOwnReactions.js +2 -2
  256. package/lib/module/components/MessageMenu/hooks/useMessageOwnReactions.js.map +1 -1
  257. package/lib/module/components/Poll/components/PollAnswersList.js +1 -1
  258. package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
  259. package/lib/module/components/Poll/components/PollButtons.js +1 -1
  260. package/lib/module/components/Poll/components/PollButtons.js.map +1 -1
  261. package/lib/module/components/Poll/hook/useIsPollCreatedByCurrentUser.js +1 -1
  262. package/lib/module/components/Poll/hook/useIsPollCreatedByCurrentUser.js.map +1 -1
  263. package/lib/module/components/Thread/Thread.js +1 -1
  264. package/lib/module/components/Thread/Thread.js.map +1 -1
  265. package/lib/module/components/ThreadList/ThreadListItem.js +1 -1
  266. package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
  267. package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +9 -2
  268. package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
  269. package/lib/module/components/index.js +24 -0
  270. package/lib/module/components/index.js.map +1 -1
  271. package/lib/module/contexts/componentsContext/defaultComponents.js +0 -2
  272. package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
  273. package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +1 -1
  274. package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
  275. package/lib/module/hooks/actions/useChannelActionItems.js +1 -1
  276. package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
  277. package/lib/module/hooks/actions/useChannelActions.js +2 -2
  278. package/lib/module/hooks/actions/useChannelActions.js.map +1 -1
  279. package/lib/module/hooks/actions/useChannelMemberActionItems.js +1 -1
  280. package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
  281. package/lib/module/hooks/index.js +11 -0
  282. package/lib/module/hooks/index.js.map +1 -1
  283. package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js +6 -6
  284. package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
  285. package/lib/module/hooks/useIsDirectChat.js +1 -1
  286. package/lib/module/hooks/useIsDirectChat.js.map +1 -1
  287. package/lib/module/i18n/runtimeDefaults.js +1 -0
  288. package/lib/module/i18n/runtimeDefaults.js.map +1 -1
  289. package/lib/module/store/apis/getChannelMessages.js +5 -3
  290. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  291. package/lib/module/store/apis/getChannels.js +6 -3
  292. package/lib/module/store/apis/getChannels.js.map +1 -1
  293. package/lib/module/store/apis/getChannelsForFilterSort.js +2 -1
  294. package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
  295. package/lib/module/store/apis/queries/selectMessagesForChannels.js +7 -5
  296. package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  297. package/lib/module/utils/installNativeMultipartAdapter.js.map +1 -1
  298. package/lib/module/version.json +1 -1
  299. package/lib/typescript/ai-components/index.d.ts +3 -1
  300. package/lib/typescript/ai-components/index.d.ts.map +1 -1
  301. package/lib/typescript/ai-components/message-composer/ComposerView.d.ts.map +1 -1
  302. package/lib/typescript/ai-components/native/AIDictation.d.ts +6 -0
  303. package/lib/typescript/ai-components/native/AIDictation.d.ts.map +1 -1
  304. package/lib/typescript/ai-components/store/dictation/store.d.ts +7 -0
  305. package/lib/typescript/ai-components/store/dictation/store.d.ts.map +1 -1
  306. package/lib/typescript/ai-components/store/dictation/useDictationState.d.ts +1 -0
  307. package/lib/typescript/ai-components/store/dictation/useDictationState.d.ts.map +1 -1
  308. package/lib/typescript/ai-components/store/index.d.ts +2 -0
  309. package/lib/typescript/ai-components/store/index.d.ts.map +1 -1
  310. package/lib/typescript/ai-components/theme.d.ts +13 -0
  311. package/lib/typescript/ai-components/theme.d.ts.map +1 -1
  312. package/lib/typescript/ai-components/transcription/useDictation.d.ts +9 -1
  313. package/lib/typescript/ai-components/transcription/useDictation.d.ts.map +1 -1
  314. package/lib/typescript/ai-components/transcription/useDictationAudioLevel.d.ts +11 -0
  315. package/lib/typescript/ai-components/transcription/useDictationAudioLevel.d.ts.map +1 -0
  316. package/lib/typescript/ai-components/voice-visualization/VoiceGlow.d.ts +13 -0
  317. package/lib/typescript/ai-components/voice-visualization/VoiceGlow.d.ts.map +1 -0
  318. package/lib/typescript/ai-components/voice-visualization/VoiceVisualizationView.d.ts +26 -0
  319. package/lib/typescript/ai-components/voice-visualization/VoiceVisualizationView.d.ts.map +1 -0
  320. package/lib/typescript/ai-components/voice-visualization/VoiceWave.d.ts +13 -0
  321. package/lib/typescript/ai-components/voice-visualization/VoiceWave.d.ts.map +1 -0
  322. package/lib/typescript/ai-components/voice-visualization/bounce.d.ts +20 -0
  323. package/lib/typescript/ai-components/voice-visualization/bounce.d.ts.map +1 -0
  324. package/lib/typescript/ai-components/voice-visualization/driver.d.ts +96 -0
  325. package/lib/typescript/ai-components/voice-visualization/driver.d.ts.map +1 -0
  326. package/lib/typescript/ai-components/voice-visualization/glowShader.d.ts +7 -0
  327. package/lib/typescript/ai-components/voice-visualization/glowShader.d.ts.map +1 -0
  328. package/lib/typescript/ai-components/voice-visualization/index.d.ts +4 -0
  329. package/lib/typescript/ai-components/voice-visualization/index.d.ts.map +1 -0
  330. package/lib/typescript/ai-components/voice-visualization/math.d.ts +26 -0
  331. package/lib/typescript/ai-components/voice-visualization/math.d.ts.map +1 -0
  332. package/lib/typescript/ai-components/voice-visualization/palette.d.ts +18 -0
  333. package/lib/typescript/ai-components/voice-visualization/palette.d.ts.map +1 -0
  334. package/lib/typescript/ai-components/voice-visualization/simplex.d.ts +11 -0
  335. package/lib/typescript/ai-components/voice-visualization/simplex.d.ts.map +1 -0
  336. package/lib/typescript/ai-components/voice-visualization/styles.d.ts +24 -0
  337. package/lib/typescript/ai-components/voice-visualization/styles.d.ts.map +1 -0
  338. package/lib/typescript/ai-components/voice-visualization/types.d.ts +45 -0
  339. package/lib/typescript/ai-components/voice-visualization/types.d.ts.map +1 -0
  340. package/lib/typescript/ai-components/voice-visualization/useReduceMotion.d.ts +10 -0
  341. package/lib/typescript/ai-components/voice-visualization/useReduceMotion.d.ts.map +1 -0
  342. package/lib/typescript/ai-components/voice-visualization/useVoiceVisualization.d.ts +18 -0
  343. package/lib/typescript/ai-components/voice-visualization/useVoiceVisualization.d.ts.map +1 -0
  344. package/lib/typescript/ai-components/voice-visualization/waveGeometry.d.ts +25 -0
  345. package/lib/typescript/ai-components/voice-visualization/waveGeometry.d.ts.map +1 -0
  346. package/lib/typescript/components/Channel/hooks/useChannelLifecycle.d.ts.map +1 -1
  347. package/lib/typescript/components/ChannelList/ChannelListView.d.ts +1 -1
  348. package/lib/typescript/components/ChannelList/ChannelListView.d.ts.map +1 -1
  349. package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
  350. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts.map +1 -1
  351. package/lib/typescript/components/Chat/hooks/useConnectionLifecycle.d.ts +5 -4
  352. package/lib/typescript/components/Chat/hooks/useConnectionLifecycle.d.ts.map +1 -1
  353. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
  354. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts.map +1 -1
  355. package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
  356. package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts.map +1 -1
  357. package/lib/typescript/components/MessageInput/MessageComposer.d.ts.map +1 -1
  358. package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
  359. package/lib/typescript/components/index.d.ts +2 -0
  360. package/lib/typescript/components/index.d.ts.map +1 -1
  361. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +0 -1
  362. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
  363. package/lib/typescript/hooks/index.d.ts +1 -0
  364. package/lib/typescript/hooks/index.d.ts.map +1 -1
  365. package/lib/typescript/hooks/messagePreview/useMessageDeliveryStatus.d.ts +3 -0
  366. package/lib/typescript/hooks/messagePreview/useMessageDeliveryStatus.d.ts.map +1 -1
  367. package/lib/typescript/i18n/keys.d.ts +3 -1
  368. package/lib/typescript/i18n/keys.d.ts.map +1 -1
  369. package/lib/typescript/i18n/runtimeDefaults.d.ts +1 -0
  370. package/lib/typescript/i18n/runtimeDefaults.d.ts.map +1 -1
  371. package/lib/typescript/store/apis/getChannelMessages.d.ts +2 -1
  372. package/lib/typescript/store/apis/getChannelMessages.d.ts.map +1 -1
  373. package/lib/typescript/store/apis/getChannels.d.ts +3 -1
  374. package/lib/typescript/store/apis/getChannels.d.ts.map +1 -1
  375. package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts.map +1 -1
  376. package/lib/typescript/store/apis/queries/selectMessagesForChannels.d.ts +3 -1
  377. package/lib/typescript/store/apis/queries/selectMessagesForChannels.d.ts.map +1 -1
  378. package/lib/typescript/utils/installNativeMultipartAdapter.d.ts +5 -3
  379. package/lib/typescript/utils/installNativeMultipartAdapter.d.ts.map +1 -1
  380. package/package.json +4 -4
  381. package/src/__tests__/offline-support/offline-feature.tsx +7 -7
  382. package/src/__tests__/offline-support/optimistic-update.tsx +5 -5
  383. package/src/ai-components/README.md +50 -2
  384. package/src/ai-components/__tests__/VoiceVisualization.test.tsx +208 -0
  385. package/src/ai-components/__tests__/dictation.test.tsx +58 -1
  386. package/src/ai-components/__tests__/voiceDriver.test.ts +317 -0
  387. package/src/ai-components/__tests__/voicePalette.test.ts +124 -0
  388. package/src/ai-components/index.ts +3 -1
  389. package/src/ai-components/message-composer/ComposerView.tsx +6 -3
  390. package/src/ai-components/message-composer/SpeechToTextButton.tsx +5 -2
  391. package/src/ai-components/native/AIDictation.ts +11 -0
  392. package/src/ai-components/store/dictation/store.ts +9 -0
  393. package/src/ai-components/store/dictation/useDictationState.ts +2 -1
  394. package/src/ai-components/store/index.ts +2 -0
  395. package/src/ai-components/theme.ts +16 -0
  396. package/src/ai-components/transcription/useDictation.ts +16 -3
  397. package/src/ai-components/transcription/useDictationAudioLevel.ts +38 -0
  398. package/src/ai-components/voice-visualization/VoiceGlow.tsx +79 -0
  399. package/src/ai-components/voice-visualization/VoiceVisualizationView.tsx +179 -0
  400. package/src/ai-components/voice-visualization/VoiceWave.tsx +67 -0
  401. package/src/ai-components/voice-visualization/bounce.ts +61 -0
  402. package/src/ai-components/voice-visualization/driver.ts +240 -0
  403. package/src/ai-components/voice-visualization/glowShader.ts +227 -0
  404. package/src/ai-components/voice-visualization/index.ts +3 -0
  405. package/src/ai-components/voice-visualization/math.ts +73 -0
  406. package/src/ai-components/voice-visualization/palette.ts +59 -0
  407. package/src/ai-components/voice-visualization/simplex.ts +92 -0
  408. package/src/ai-components/voice-visualization/styles.ts +42 -0
  409. package/src/ai-components/voice-visualization/types.ts +44 -0
  410. package/src/ai-components/voice-visualization/useReduceMotion.ts +34 -0
  411. package/src/ai-components/voice-visualization/useVoiceVisualization.ts +153 -0
  412. package/src/ai-components/voice-visualization/waveGeometry.ts +137 -0
  413. package/src/components/Channel/__tests__/Channel.test.tsx +44 -5
  414. package/src/components/Channel/hooks/useChannelLifecycle.ts +4 -1
  415. package/src/components/ChannelDetails/__tests__/ChannelDetails.test.tsx +1 -1
  416. package/src/components/ChannelDetails/__tests__/ChannelDetailsActionsSection.test.tsx +1 -1
  417. package/src/components/ChannelDetails/__tests__/ChannelDetailsEditButton.test.tsx +1 -1
  418. package/src/components/ChannelDetails/__tests__/ChannelDetailsMemberSection.test.tsx +1 -1
  419. package/src/components/ChannelDetails/__tests__/ChannelDetailsNavHeader.test.tsx +1 -1
  420. package/src/components/ChannelDetails/__tests__/ChannelDetailsProfile.test.tsx +2 -2
  421. package/src/components/ChannelDetails/__tests__/ChannelEditDetailsForm.test.tsx +1 -1
  422. package/src/components/ChannelDetails/__tests__/ChannelEditDetailsFormContent.test.tsx +2 -2
  423. package/src/components/ChannelDetails/__tests__/ChannelEditName.test.tsx +1 -1
  424. package/src/components/ChannelDetails/__tests__/members/ChannelAddMembersForm.test.tsx +1 -1
  425. package/src/components/ChannelDetails/__tests__/members/ChannelMemberActionsSheet.test.tsx +2 -2
  426. package/src/components/ChannelDetails/__tests__/members/ChannelMemberItem.test.tsx +1 -1
  427. package/src/components/ChannelDetails/__tests__/useChannelDetailsMemberStatusText.test.tsx +1 -1
  428. package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +1 -1
  429. package/src/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.ts +1 -1
  430. package/src/components/ChannelList/ChannelListView.tsx +1 -3
  431. package/src/components/ChannelList/__tests__/ChannelList.test.tsx +44 -0
  432. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +1 -1
  433. package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +1 -1
  434. package/src/components/ChannelPreview/ChannelLastMessagePreview.tsx +1 -1
  435. package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +8 -2
  436. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +1 -1
  437. package/src/components/ChannelPreview/ChannelPreviewView.tsx +1 -1
  438. package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +4 -4
  439. package/src/components/ChannelPreview/__tests__/ChannelPreviewView.test.tsx +40 -0
  440. package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewData.test.tsx +51 -0
  441. package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +1 -1
  442. package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayPresence.test.tsx +1 -1
  443. package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewPollLabel.test.tsx +87 -0
  444. package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts +3 -4
  445. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +1 -1
  446. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +1 -1
  447. package/src/components/ChannelPreview/hooks/useChannelPreviewPollLabel.ts +1 -1
  448. package/src/components/Chat/__tests__/Chat.test.tsx +31 -1
  449. package/src/components/Chat/hooks/useConnectionLifecycle.ts +12 -6
  450. package/src/components/Indicators/LoadingErrorIndicator.tsx +8 -1
  451. package/src/components/Message/Message.tsx +1 -1
  452. package/src/components/Message/MessageItemView/MessageStatus.tsx +16 -2
  453. package/src/components/Message/MessageItemView/MessageWrapper.tsx +14 -4
  454. package/src/components/Message/MessageItemView/__tests__/MessageStatus.test.tsx +21 -0
  455. package/src/components/Message/hooks/__tests__/useCreateMessageActionHandlers.test.tsx +1 -1
  456. package/src/components/Message/hooks/__tests__/useUserMuteActive.test.tsx +1 -1
  457. package/src/components/Message/hooks/useCreateMessageActionHandlers.ts +3 -3
  458. package/src/components/Message/hooks/useProcessReactions.ts +2 -2
  459. package/src/components/Message/hooks/useUserMuteActive.ts +1 -1
  460. package/src/components/MessageInput/MessageComposer.tsx +4 -2
  461. package/src/components/MessageList/MessageFlashList.tsx +2 -2
  462. package/src/components/MessageList/MessageList.tsx +2 -2
  463. package/src/components/MessageList/__tests__/MessageList.test.tsx +26 -8
  464. package/src/components/MessageList/__tests__/ScrollToBottomButton.test.tsx +3 -3
  465. package/src/components/MessageList/hooks/useOwnUnreadCount.ts +1 -1
  466. package/src/components/MessageMenu/MessageUserReactionsItem.tsx +1 -1
  467. package/src/components/MessageMenu/hooks/useMessageOwnReactions.ts +2 -2
  468. package/src/components/Poll/components/PollAnswersList.tsx +1 -1
  469. package/src/components/Poll/components/PollButtons.tsx +1 -1
  470. package/src/components/Poll/hook/useIsPollCreatedByCurrentUser.ts +1 -1
  471. package/src/components/Thread/Thread.tsx +1 -1
  472. package/src/components/Thread/__tests__/Thread.test.tsx +4 -2
  473. package/src/components/ThreadList/ThreadListItem.tsx +1 -1
  474. package/src/components/ThreadList/ThreadListUnreadBanner.tsx +6 -2
  475. package/src/components/ThreadList/__tests__/ThreadList.test.tsx +21 -0
  476. package/src/components/index.ts +2 -0
  477. package/src/contexts/componentsContext/defaultComponents.ts +0 -2
  478. package/src/contexts/liveLocationManagerContext/LiveLocationManagerContext.tsx +1 -1
  479. package/src/hooks/__tests__/useChannelMuteActive.test.tsx +1 -1
  480. package/src/hooks/__tests__/useIsDirectChat.test.tsx +1 -1
  481. package/src/hooks/actions/__tests__/useChannelActionItems.test.tsx +1 -1
  482. package/src/hooks/actions/__tests__/useChannelActions.test.tsx +1 -1
  483. package/src/hooks/actions/__tests__/useChannelMemberActionItems.test.tsx +6 -6
  484. package/src/hooks/actions/useChannelActionItems.tsx +1 -1
  485. package/src/hooks/actions/useChannelActions.ts +2 -2
  486. package/src/hooks/actions/useChannelMemberActionItems.tsx +1 -1
  487. package/src/hooks/index.ts +1 -0
  488. package/src/hooks/messagePreview/__tests__/useMessageDeliveryStatus.test.tsx +57 -32
  489. package/src/hooks/messagePreview/useMessageDeliveryStatus.ts +13 -7
  490. package/src/hooks/useIsDirectChat.ts +1 -1
  491. package/src/i18n/__tests__/catalog.fixture.json +2 -0
  492. package/src/i18n/keys.ts +3 -0
  493. package/src/i18n/runtimeDefaults.ts +1 -0
  494. package/src/store/__tests__/selectMessagesForChannels.test.ts +34 -12
  495. package/src/store/apis/getChannelMessages.ts +4 -1
  496. package/src/store/apis/getChannels.ts +5 -1
  497. package/src/store/apis/getChannelsForFilterSort.ts +1 -0
  498. package/src/store/apis/queries/selectMessagesForChannels.ts +7 -2
  499. package/src/utils/installNativeMultipartAdapter.ts +5 -3
  500. package/src/version.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_native","require","_createForOfIteratorHelperLoose","r","e","t","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","o","done","value","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","from","test","n","DEFAULT_COMPLETION_PROGRESS_CAP","installedClients","WeakSet","getFormDataEntries","data","entries","parts","Reflect","get","normalizeHeaders","headers","_headers$toJSON","rawHeaders","toJSON","normalizedHeaders","Object","forEach","key","join","String","getFileNameFromUri","uri","split","filter","Boolean","pop","getNativeProgressOptions","progress","undefined","nativeProgressOptions","completionProgressCap","keys","getNativeMultipartParts","_iterator","_step","_ref","_ref2","_slicedToArray2","default","fieldName","push","kind","fileName","mimeType","type","contentType","some","part","createNativeMultipartRequest","client","config","method","toUpperCase","uploadProgressOptions","signal","timeoutMs","timeout","url","axiosInstance","getUri","toFiniteNumber","Number","isFinite","trim","parsed","getCompletionProgressCap","_config$uploadProgres","cap","Math","min","max","getDisplayLoaded","loaded","total","getUploadProgressCallbacks","callbacks","onUploadProgress","uploadProgress","callback","Set","createUploadProgressEvent","bytes","_toFiniteNumber","_toFiniteNumber2","normalizedBytes","normalizedLoaded","normalizedTotal","download","event","lengthComputable","upload","nativeMultipartAxiosAdapter","_ref3","_asyncToGenerator2","request","_response$headers","_response$statusText","uploadProgressCallbacks","lastLoaded","response","NativeHandlers","multipartUpload","onProgress","_toFiniteNumber3","displayLoaded","Error","body","status","statusText","_x","_x2","apply","arguments","createNativeMultipartAdapter","nativeMultipartRequest","Promise","reject","installNativeMultipartAdapter","isNativeMultipartUploadAvailable","has","native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,IAClBC,MAAM,IAAK;EAGV,IAAMgE,sBAAsB,GAAGlE,4BAA4B,CACzDC,MAAM,EACNC,MACF,CAAC;EAED,IAAI,CAACgE,sBAAsB,EAAE;IAC3B,OAAOC,OAAO,CAACC,MAAM,CACnB,IAAIX,KAAK,CACP,+FACF,CACF,CAAC;EACH;EAEA,OAAOd,2BAA2B,CAACuB,sBAAsB,EAAEhE,MAAM,CAAC;AACpE,CAAC;AAYI,IAAMmE,6BAA6B,GAAIpE,MAAkB,IAAK;EACnE,IAAI,CAAC,IAAAqE,wCAAgC,EAAC,CAAC,EAAE;IACvC;EACF;EAEA,IAAIrH,gBAAgB,CAACsH,GAAG,CAACtE,MAAM,CAAC,EAAE;IAChC;EACF;EAEA,IAAMuE,sBAAsB,GAAGP,4BAA4B,CAAChE,MAAM,CAAC;EACnEA,MAAM,CAACS,aAAa,CAAC+D,YAAY,CAAC3B,OAAO,CAAC4B,GAAG,CAAExE,MAAM,IAAK;IACxD,IAAIlB,uBAAuB,CAACkB,MAAM,CAAC9C,IAAI,CAAC,EAAE;MACxC8C,MAAM,CAACyE,OAAO,GAAGH,sBAAsB;IACzC;IAEA,OAAOtE,MAAM;EACf,CAAC,CAAC;EACFjD,gBAAgB,CAAC2H,GAAG,CAAC3E,MAAM,CAAC;AAC9B,CAAC;AAAC4E,OAAA,CAAAR,6BAAA,GAAAA,6BAAA","ignoreList":[]}
1
+ {"version":3,"names":["_native","require","_createForOfIteratorHelperLoose","r","e","t","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","o","done","value","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","from","test","n","DEFAULT_COMPLETION_PROGRESS_CAP","installedClients","WeakSet","getFormDataEntries","data","entries","parts","Reflect","get","normalizeHeaders","headers","_headers$toJSON","rawHeaders","toJSON","normalizedHeaders","Object","forEach","key","join","String","getFileNameFromUri","uri","split","filter","Boolean","pop","getNativeProgressOptions","progress","undefined","nativeProgressOptions","completionProgressCap","keys","getNativeMultipartParts","_iterator","_step","_ref","_ref2","_slicedToArray2","default","fieldName","push","kind","fileName","mimeType","type","contentType","some","part","createNativeMultipartRequest","client","config","method","toUpperCase","uploadProgressOptions","signal","timeoutMs","timeout","url","axiosInstance","getUri","toFiniteNumber","Number","isFinite","trim","parsed","getCompletionProgressCap","_config$uploadProgres","cap","Math","min","max","getDisplayLoaded","loaded","total","getUploadProgressCallbacks","callbacks","onUploadProgress","uploadProgress","callback","Set","createUploadProgressEvent","bytes","_toFiniteNumber","_toFiniteNumber2","normalizedBytes","normalizedLoaded","normalizedTotal","download","event","lengthComputable","upload","nativeMultipartAxiosAdapter","_ref3","_asyncToGenerator2","request","_response$headers","_response$statusText","uploadProgressCallbacks","lastLoaded","response","NativeHandlers","multipartUpload","onProgress","_toFiniteNumber3","displayLoaded","Error","body","status","statusText","_x","_x2","apply","arguments","createNativeMultipartAdapter","nativeMultipartRequest","Promise","reject","installNativeMultipartAdapter","isNativeMultipartUploadAvailable","has","nativeMultipartAdapter","interceptors","use","adapter","add","exports"],"sourceRoot":"../../../src","sources":["utils/installNativeMultipartAdapter.ts"],"mappings":";;;;;;;AAGA,IAAAA,OAAA,GAAAC,OAAA;AAKmB,SAAAC,gCAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,yBAAAC,MAAA,IAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,oBAAAE,CAAA,UAAAA,CAAA,GAAAA,CAAA,CAAAG,IAAA,CAAAL,CAAA,GAAAM,IAAA,CAAAC,IAAA,CAAAL,CAAA,OAAAM,KAAA,CAAAC,OAAA,CAAAT,CAAA,MAAAE,CAAA,GAAAQ,2BAAA,CAAAV,CAAA,MAAAC,CAAA,IAAAD,CAAA,uBAAAA,CAAA,CAAAW,MAAA,IAAAT,CAAA,KAAAF,CAAA,GAAAE,CAAA,OAAAU,CAAA,kCAAAA,CAAA,IAAAZ,CAAA,CAAAW,MAAA,KAAAE,IAAA,WAAAA,IAAA,MAAAC,KA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ACkB,MAAM,CAAC9C,IAAI,CAAC,EAAE;MACxC8C,MAAM,CAACyE,OAAO,GAAGH,sBAAsB;IACzC;IAEA,OAAOtE,MAAM;EACf,CAAC,CAAC;EACFjD,gBAAgB,CAAC2H,GAAG,CAAC3E,MAAM,CAAC;AAC9B,CAAC;AAAC4E,OAAA,CAAAR,6BAAA,GAAAA,6BAAA","ignoreList":[]}
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "10.0.0-rc.2"
2
+ "version": "10.0.0-rc.3"
3
3
  }
@@ -4,11 +4,13 @@ export * from './charts';
4
4
  export * from './message-composer';
5
5
  export * from './StreamingMessageView';
6
6
  export * from './AITypingIndicatorView';
7
+ export * from './voice-visualization';
7
8
  export * from './components';
8
9
  export * from './contexts';
9
10
  export * from './services';
10
11
  export * from './transcription/useDictation';
11
- export { isDictationAvailable } from './native/AIDictation';
12
+ export * from './transcription/useDictationAudioLevel';
13
+ export { isDictationAvailable, type DictationLevel } from './native/AIDictation';
12
14
  export * from './store';
13
15
  export * from './theme';
14
16
  export { registerNativeHandlers } from '../native';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ai-components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAExC,cAAc,cAAc,CAAC;AAE7B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,cAAc,SAAS,CAAC;AAExB,cAAc,SAAS,CAAC;AAIxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ai-components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,cAAc,CAAC;AAE7B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEjF,cAAc,SAAS,CAAC;AAExB,cAAc,SAAS,CAAC;AAIxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerView.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/message-composer/ComposerView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAK1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAYzD,OAAO,KAAK,EACV,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAA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C;CAC5B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,CAAC,IAAI,EAAE;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACzC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IAChD,KAAK,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,0EAK5B,iBAAiB,sBAgCnB,CAAC;AAEF,eAAO,MAAM,cAAc,yBAqC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAQpD,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { type DictationError, type DictationResult, type DictationStartOptions, type DictationState } from '../native-specs/NativeAIDictation';
2
+ /** The microphone's level while dictation listens, from 0 to 1. */
3
+ export type DictationLevel = {
4
+ level: number;
5
+ };
2
6
  /**
3
7
  * Whether the native dictation module is part of this build. It is always compiled in on Android;
4
8
  * on iOS add `$StreamChatEnableDictation = true` to the `Podfile` (or use the `stream-chat-expo`
@@ -16,5 +20,7 @@ export declare const AIDictation: {
16
20
  addResultListener(listener: (result: DictationResult) => void): () => void;
17
21
  addStateListener(listener: (payload: DictationState) => void): () => void;
18
22
  addErrorListener(listener: (payload: DictationError) => void): () => void;
23
+ /** The microphone's level while dictation listens, about 10 to 30 times a second. */
24
+ addLevelListener(listener: (payload: DictationLevel) => void): () => void;
19
25
  };
20
26
  //# sourceMappingURL=AIDictation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIDictation.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/native/AIDictation.ts"],"names":[],"mappings":"AAEA,OAA0B,EACxB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACpB,MAAM,mCAAmC,CAAC;AAiB3C;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,eAAkC,CAAC;AAGpE,eAAO,MAAM,0BAA0B,YAUtC,CAAC;AAEF,eAAO,MAAM,WAAW;oBACN,qBAAqB;;;;gCAYT,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI;+BAMlC,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;+BAMjC,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;CAM7D,CAAC"}
1
+ {"version":3,"file":"AIDictation.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/native/AIDictation.ts"],"names":[],"mappings":"AAEA,OAA0B,EACxB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACpB,MAAM,mCAAmC,CAAC;AAQ3C,mEAAmE;AACnE,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAY/C;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,eAAkC,CAAC;AAGpE,eAAO,MAAM,0BAA0B,YAUtC,CAAC;AAEF,eAAO,MAAM,WAAW;oBACN,qBAAqB;;;;gCAYT,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI;+BAMlC,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;+BAMjC,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;IAM5D,qFAAqF;+BAC1D,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;CAM7D,CAAC"}
@@ -5,7 +5,14 @@ export type DictationStoreState = {
5
5
  transcript: string;
6
6
  isRecording: boolean;
7
7
  error?: DictationError | null;
8
+ /**
9
+ * Who started the current dictation, as passed to `useDictation`, or `null`. Lets a consumer
10
+ * such as `ComposerView` pick up only the transcripts meant for it.
11
+ */
12
+ source?: string | null;
8
13
  };
14
+ /** The `source` of dictation started by the composer's own `SpeechToTextButton`. */
15
+ export declare const COMPOSER_DICTATION_SOURCE = "composer";
9
16
  export declare const dictationStore: StateStore<DictationStoreState>;
10
17
  export declare const dictationStoreApi: {
11
18
  reset: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../src/ai-components/store/dictation/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhG,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B,CAAC;AASF,eAAO,MAAM,cAAc,iCAAqD,CAAC;AAIjF,eAAO,MAAM,iBAAiB;;CAAY,CAAC"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../src/ai-components/store/dictation/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhG,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAUF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAEpD,eAAO,MAAM,cAAc,iCAAqD,CAAC;AAIjF,eAAO,MAAM,iBAAiB;;CAAY,CAAC"}
@@ -2,5 +2,6 @@ export declare const useDictationState: () => {
2
2
  state: import("../../native-specs/NativeAIDictation").DictationStateValue;
3
3
  isRecording: boolean;
4
4
  error: import("../../native-specs/NativeAIDictation").DictationError | null | undefined;
5
+ source: string | null | undefined;
5
6
  };
6
7
  //# sourceMappingURL=useDictationState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictationState.d.ts","sourceRoot":"","sources":["../../../../../src/ai-components/store/dictation/useDictationState.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,iBAAiB;;;;CAAgD,CAAC"}
1
+ {"version":3,"file":"useDictationState.d.ts","sourceRoot":"","sources":["../../../../../src/ai-components/store/dictation/useDictationState.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB;;;;;CAAgD,CAAC"}
@@ -4,4 +4,6 @@ export * from './composer/store';
4
4
  export * from './composer/useComposerHasText';
5
5
  export * from './composer/useComposerText';
6
6
  export * from './dictation/store';
7
+ export * from './dictation/useDictationState';
8
+ export * from './dictation/useDictationTranscript';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC;AAEnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC;AAEnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC"}
@@ -53,6 +53,19 @@ export type Theme = {
53
53
  aiTypingIndicatorView: {
54
54
  text: TextStyle;
55
55
  };
56
+ /**
57
+ * `VoiceGlow` and `VoiceWave`. Optional, so a hand-built `Theme` without it keeps type-checking;
58
+ * the visualizations fall back to the default accent then.
59
+ */
60
+ voiceVisualization?: {
61
+ /** One to five colors, used when a visualization is given no `colors` of its own. */
62
+ colors: string[];
63
+ /**
64
+ * The color the visualizations sit on, which tells them to draw for a light or a dark
65
+ * background. Defaults to the system's color scheme.
66
+ */
67
+ backdropColor?: string;
68
+ };
56
69
  };
57
70
  export declare const defaultTheme: Theme;
58
71
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/ai-components/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAelB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,QAAQ,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE;QACR,SAAS,EAAE,SAAS,CAAC;QACrB,YAAY,EAAE,SAAS,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,SAAS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StartOptions } from '../native-specs/NativeAIDictation';
2
- export declare const useDictation: (defaultOptions?: DictationStartOptions) => {
2
+ export type UseDictationOptions = {
3
+ /**
4
+ * Who is dictating, stored as the dictation store's `source` when dictation starts. The
5
+ * `ComposerView` only fills its input with dictation whose source is the composer's own, so
6
+ * dictation started elsewhere (a voice mode, say) leaves the composer's text alone.
7
+ */
8
+ source?: string;
9
+ };
10
+ export declare const useDictation: (defaultOptions?: DictationStartOptions, { source }?: UseDictationOptions) => {
3
11
  start: (override?: DictationStartOptions) => Promise<void>;
4
12
  stop: () => void;
5
13
  toggle: import("../internal/hooks/useStableCallback").StableCallback<[], void>;
@@ -1 +1 @@
1
- {"version":3,"file":"useDictation.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/transcription/useDictation.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAsBhG,eAAO,MAAM,YAAY,GAAI,iBAAgB,qBAAuC;uBA8B9D,qBAAqB;;;;CA8C1C,CAAC"}
1
+ {"version":3,"file":"useDictation.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/transcription/useDictation.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAsBhG,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,iBAAgB,qBAAuC,EACvD,aAAY,mBAAwB;uBA+BhB,qBAAqB;;;;CA+C1C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type SharedValue } from 'react-native-reanimated';
2
+ /**
3
+ * The microphone's live level while dictation listens, from 0 to 1, for the `audioLevel` of
4
+ * `VoiceWave` and `VoiceGlow`. It is `null` while dictation is not listening, which lets a
5
+ * visualization animate speech on its own.
6
+ *
7
+ * The level is a shared value rather than state, so a level changing many times a second
8
+ * re-renders nothing: the visualizations read it once a frame on the UI thread.
9
+ */
10
+ export declare const useDictationAudioLevel: () => SharedValue<number | null>;
11
+ //# sourceMappingURL=useDictationAudioLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDictationAudioLevel.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/transcription/useDictationAudioLevel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAI3E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAAO,WAAW,CAAC,MAAM,GAAG,IAAI,CAuBlE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { VoiceVisualizationProps } from './types';
3
+ export type VoiceGlowProps = VoiceVisualizationProps;
4
+ /**
5
+ * A voice agent as a soft, airy globe: color masses orbit inside it and swell with speech, and the
6
+ * gaps between them let the background show through. Tapping the globe bounces it and ripples it
7
+ * from the touch, and so does a hovering mouse or pen.
8
+ *
9
+ * It has no size of its own and draws in the middle of the view it is given, about half as wide
10
+ * as its shorter side, so give it a square.
11
+ */
12
+ export declare const VoiceGlow: (props: VoiceGlowProps) => React.JSX.Element;
13
+ //# sourceMappingURL=VoiceGlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoiceGlow.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/VoiceGlow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIvD,MAAM,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAuDrD;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,sBAE9C,CAAC"}
@@ -0,0 +1,26 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import type { VoiceVisualizationStyle } from './styles';
3
+ import type { VoiceVisualizationProps } from './types';
4
+ import { type VoiceVisualization } from './useVoiceVisualization';
5
+ /** What the renderer draws in: the canvas size, in its own units, and the screen's pixels per unit. */
6
+ export type VoiceCanvasSize = {
7
+ height: number;
8
+ pixelRatio: number;
9
+ width: number;
10
+ };
11
+ type ViewProps = VoiceVisualizationProps & {
12
+ /** Draws the visualization into a canvas of the given size. */
13
+ renderCanvas: (visualization: VoiceVisualization, size: VoiceCanvasSize) => ReactNode;
14
+ visualStyle: VoiceVisualizationStyle;
15
+ };
16
+ /**
17
+ * What VoiceWave and VoiceGlow share: the motion, the canvas kept at the view's size and at most
18
+ * the style's density, reduced motion, taps and hover, and accessibility.
19
+ *
20
+ * It names itself "Voice agent" with its state as the value, as on iOS and Android. Touches are
21
+ * only watched, never claimed, so a press handler on the view or a parent still gets them, and
22
+ * only the shape takes them: around it they reach whatever is behind.
23
+ */
24
+ export declare const VoiceVisualizationView: ({ accessibilityLabel, accessibilityValue, audioLevel, colors, expressivity, onLayout, pointerEvents, renderCanvas, state, stateLabels, style, visualStyle, ...restProps }: ViewProps) => React.JSX.Element;
25
+ export {};
26
+ //# sourceMappingURL=VoiceVisualizationView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoiceVisualizationView.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/VoiceVisualizationView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;AAY9E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAmB,uBAAuB,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,uGAAuG;AACvG,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpF,KAAK,SAAS,GAAG,uBAAuB,GAAG;IACzC,+DAA+D;IAC/D,YAAY,EAAE,CAAC,aAAa,EAAE,kBAAkB,EAAE,IAAI,EAAE,eAAe,KAAK,SAAS,CAAC;IACtF,WAAW,EAAE,uBAAuB,CAAC;CACtC,CAAC;AAUF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,2KAcpC,SAAS,sBAsHX,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { VoiceVisualizationProps } from './types';
3
+ export type VoiceWaveProps = VoiceVisualizationProps;
4
+ /**
5
+ * A voice agent as a single string, flat at its ends, carrying a wave packet that erupts with
6
+ * speech while its colors flow along it. Tapping the string ripples it from the touch, and so does
7
+ * a hovering mouse or pen.
8
+ *
9
+ * It has no size of its own and draws in the middle of the view it is given, about 80% as wide as
10
+ * its shorter side, so give it a square or a wide box.
11
+ */
12
+ export declare const VoiceWave: (props: VoiceWaveProps) => React.JSX.Element;
13
+ //# sourceMappingURL=VoiceWave.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoiceWave.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/VoiceWave.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAYvD,MAAM,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAqCrD;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,sBAE9C,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The bounce of a tap: a dip to 93% and an overshoot to 103% before settling, over 340 ms.
3
+ *
4
+ * These are authored keyframes rather than a spring: the ease-out curve times the whole run and
5
+ * the keyframes are linear between their stops.
6
+ */
7
+ export declare const BOUNCE_DURATION = 0.34;
8
+ /** How long ago the last bounce started, in seconds; infinite before the first. */
9
+ export type BounceState = {
10
+ age: number;
11
+ };
12
+ export declare const createBounce: () => BounceState;
13
+ export declare const startBounce: (bounce: BounceState) => void;
14
+ export declare const advanceBounce: (bounce: BounceState, seconds: number) => void;
15
+ /** CSS `ease-out`, `cubic-bezier(0, 0, 0.58, 1)`. */
16
+ export declare const easeOut: (x: number) => number;
17
+ /** The keyframed scale at `progress`, from 0 to 1. */
18
+ export declare const scaleAt: (progress: number) => number;
19
+ export declare const bounceScale: (bounce: BounceState) => number;
20
+ //# sourceMappingURL=bounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bounce.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/bounce.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAKpC,mFAAmF;AACnF,MAAM,MAAM,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,eAAO,MAAM,YAAY,QAAO,WAAkD,CAAC;AAEnF,eAAO,MAAM,WAAW,GAAI,QAAQ,WAAW,SAG9C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,QAAQ,WAAW,EAAE,SAAS,MAAM,SAGjE,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,OAAO,GAAI,GAAG,MAAM,WAehC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,OAAO,GAAI,UAAU,MAAM,WASvC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,WAAW,WAI9C,CAAC"}
@@ -0,0 +1,96 @@
1
+ import { type BounceState } from './bounce';
2
+ import type { Hsv, VoiceAgentState } from './types';
3
+ /**
4
+ * The share of the way the live level moves each frame at 60 Hz, toward a louder or a quieter
5
+ * level.
6
+ */
7
+ export type LevelResponse = {
8
+ rise: number;
9
+ fall: number;
10
+ };
11
+ export declare const LEVEL_RESPONSE: {
12
+ /** Follows the level closely, both ways. The glow's. */
13
+ steady: {
14
+ fall: number;
15
+ rise: number;
16
+ };
17
+ /**
18
+ * Follows the level like a VU meter: about 0.1 s up to a louder reading, about 0.3 s down from
19
+ * it, so a meter's per-syllable jumps swell with the phrase instead. The wave's.
20
+ */
21
+ smooth: {
22
+ fall: number;
23
+ rise: number;
24
+ };
25
+ };
26
+ export type VoiceDriverInput = {
27
+ state: VoiceAgentState;
28
+ /** One to five colors. */
29
+ colors: Hsv[];
30
+ /** From 0 to 2. */
31
+ expressivity: number;
32
+ /** From 0 to 1, or null when no live audio drives the motion. */
33
+ audioLevel: number | null;
34
+ reduceMotion: boolean;
35
+ };
36
+ /**
37
+ * The motion of a voice visualization: where it is in time, how it moves, and its colors. A plain
38
+ * object rather than a class, so it can live in a shared value and be advanced on the UI thread.
39
+ */
40
+ export type VoiceDriverState = {
41
+ speed: number;
42
+ bright: number;
43
+ sat: number;
44
+ load: number;
45
+ flow: number;
46
+ baseReact: number;
47
+ expressivity: number;
48
+ time: number;
49
+ flowSpin: number;
50
+ orbSpin: number;
51
+ count: number;
52
+ tapX: number;
53
+ tapY: number;
54
+ tapAge: number;
55
+ hoverX: number;
56
+ hoverY: number;
57
+ hoverAmount: number;
58
+ isHovering: boolean;
59
+ mic: number;
60
+ voice: number;
61
+ /** The colors drawn, eased in place toward the input's color slots. */
62
+ colors: Hsv[];
63
+ bounce: BounceState;
64
+ levelResponse: LevelResponse;
65
+ };
66
+ export declare const NO_TAP = 100;
67
+ /** How fast time runs under reduced motion. */
68
+ export declare const REDUCED = 0.07;
69
+ /** Expressivity scales amplitude and speed, each with a floor so the motion breathes at 0. */
70
+ export declare const scales: (expressivity: number) => {
71
+ amplitude: number;
72
+ speed: number;
73
+ };
74
+ /**
75
+ * The share of the way a value moves in `dt` seconds when it moves `perFrame` of the way each
76
+ * frame at 60 Hz.
77
+ */
78
+ export declare const ease: (perFrame: number, dt: number) => number;
79
+ /** The five color slots the renderers read; past the palette they repeat its first color. */
80
+ export declare const slots: (colors: Hsv[]) => Hsv[];
81
+ /** A driver settled on `input`, so the first frame shows it rather than easing into it. */
82
+ export declare const createDriverState: (input: VoiceDriverInput, levelResponse?: LevelResponse) => VoiceDriverState;
83
+ /** Live audio lifts the motion to its level, whatever the state. */
84
+ export declare const driverReact: (d: VoiceDriverState) => number;
85
+ /** The scale of a tap's bounce. */
86
+ export declare const driverScale: (d: VoiceDriverState) => number;
87
+ /** A tap at (x, y), centred and normalized to the shorter side with y up. */
88
+ export declare const tapDriver: (d: VoiceDriverState, input: VoiceDriverInput, x: number, y: number) => void;
89
+ /** Where a pointer hovers, or null once it has left. */
90
+ export declare const hoverDriver: (d: VoiceDriverState, input: VoiceDriverInput, x: number | null, y: number | null) => void;
91
+ /**
92
+ * Advances the motion by `seconds`, easing each value toward the input's motion by a fixed share
93
+ * per frame at 60 Hz, converted to time, so it moves the same at any refresh rate.
94
+ */
95
+ export declare const advanceDriver: (d: VoiceDriverState, input: VoiceDriverInput, seconds: number) => void;
96
+ //# sourceMappingURL=driver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,WAAW,EAA0C,MAAM,UAAU,CAAC;AAEnG,OAAO,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,eAAO,MAAM,cAAc;IACzB,wDAAwD;;;;;IAExD;;;OAGG;;;;;CAEoC,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,eAAe,CAAC;IACvB,0BAA0B;IAC1B,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,mBAAmB;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;GAGG;A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I,GAAG,gBAAgB,WAG9C,CAAC;AAEF,mCAAmC;AACnC,eAAO,MAAM,WAAW,GAAI,GAAG,gBAAgB,WAG9C,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,SAAS,GAAI,GAAG,gBAAgB,EAAE,OAAO,gBAAgB,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,SAO3F,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,WAAW,GACtB,GAAG,gBAAgB,EACnB,OAAO,gBAAgB,EACvB,GAAG,MAAM,GAAG,IAAI,EAChB,GAAG,MAAM,GAAG,IAAI,SAUjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,GAAG,gBAAgB,EAAE,OAAO,gBAAgB,EAAE,SAAS,MAAM,SAgC1F,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type SkRuntimeEffect } from '@shopify/react-native-skia';
2
+ /**
3
+ * The compiled shader, shared by every glow: it compiles once, the first time a glow draws. Null
4
+ * if Skia cannot compile it, in which case the glow draws nothing.
5
+ */
6
+ export declare const getGlowEffect: () => SkRuntimeEffect | null;
7
+ //# sourceMappingURL=glowShader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glowShader.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/glowShader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAoNxE;;;GAGG;AACH,eAAO,MAAM,aAAa,8BAUzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { VoiceGlow, type VoiceGlowProps } from './VoiceGlow';
2
+ export { VoiceWave, type VoiceWaveProps } from './VoiceWave';
3
+ export type { VoiceAgentState, VoiceVisualizationProps } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,26 @@
1
+ /** The shader math the wave runs on the CPU, once per frame, on the UI thread. */
2
+ export declare const mix: (a: number, b: number, t: number) => number;
3
+ export declare const fract: (x: number) => number;
4
+ export declare const clamp: (x: number, low: number, high: number) => number;
5
+ /** GLSL's smoothstep, evaluated the same with its edges either way round. */
6
+ export declare const smoothstep: (edge0: number, edge1: number, x: number) => number;
7
+ /** HSV, hue a fraction of a turn, into `out` as RGB. */
8
+ export declare const hsvToRgb: (hue: number, saturation: number, value: number, out: number[]) => void;
9
+ /** A palette color as is; dark mode lifts saturation a touch so it stays vivid on black. */
10
+ export declare const vivid: (color: {
11
+ hue: number;
12
+ saturation: number;
13
+ value: number;
14
+ }, dark: number, out: number[]) => void;
15
+ /** Pushes `c` away from its luminance by `amount`; below 1 desaturates. */
16
+ export declare const saturate: (c: number[], amount: number) => void;
17
+ /**
18
+ * How much the agent is talking, 0 to 1: a slow phrase gate times a faster syllable wobble. The
19
+ * shader's own envelope, on the same simplex noise, so the wave and the glow speak alike.
20
+ */
21
+ export declare const speechEnv: (t: number) => number;
22
+ /** `expressivity` from 0 to 2; one that is not a number gets the default, 1. */
23
+ export declare const expressivityInput: (expressivity: number | undefined) => number;
24
+ /** `level` from 0 to 1; one that is not a number counts as no live audio, so it can't stall the motion. */
25
+ export declare const audioLevelInput: (level: number | null | undefined) => number | null;
26
+ //# sourceMappingURL=math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/math.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAElF,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,WAGlD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,GAAG,MAAM,WAG9B,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,GAAG,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,WAGzD,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,GAAG,MAAM,WAIjE,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,YAAY,MAAM,EAAE,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,SAOrF,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,KAAK,GAChB,OAAO;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACzD,MAAM,MAAM,EACZ,KAAK,MAAM,EAAE,SAId,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,QAAQ,GAAI,GAAG,MAAM,EAAE,EAAE,QAAQ,MAAM,SAInD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,GAAG,MAAM,WAKlC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,iBAAiB,GAAI,cAAc,MAAM,GAAG,SAAS,WACiC,CAAC;AAEpG,2GAA2G;AAC3G,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,kBAG/D,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { Hsv } from './types';
2
+ export declare const MAXIMUM_COLORS = 5;
3
+ export type Rgb = [number, number, number];
4
+ /** Used when neither the `colors` prop nor the theme gives a readable color. */
5
+ export declare const FALLBACK_COLOR = "#005fff";
6
+ /**
7
+ * Reads any color React Native understands (names, `#rgb[a]`, `#rrggbb[aa]`, `rgb()`, `hsl()`, ...)
8
+ * into sRGB channels from 0 to 1, or null when it cannot be read. Platform colors have no
9
+ * channels to read and count as unreadable.
10
+ */
11
+ export declare const parseColor: (color: string) => Rgb | null;
12
+ /** RGB channels from 0 to 1 as HSV, keeping full saturation and value so muted colors render true. */
13
+ export declare const rgbToHsv: ([r, g, b]: Rgb) => Hsv;
14
+ /** Colors as the HSV the renderers read, at most five; colors that cannot be read are skipped. */
15
+ export declare const toHsvPalette: (colors: readonly string[]) => Hsv[];
16
+ /** Relative luminance of a color, or null when it cannot be read. */
17
+ export declare const luminance: (color: string) => number | null;
18
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/palette.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAEnC,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE3C,gFAAgF;AAChF,eAAO,MAAM,cAAc,YAAY,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,GAAG,GAAG,IAQhD,CAAC;AAEF,sGAAsG;AACtG,eAAO,MAAM,QAAQ,GAAI,WAAW,GAAG,KAAG,GAezC,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,YAAY,GAAI,QAAQ,SAAS,MAAM,EAAE,KAAG,GAAG,EAK1C,CAAC;AAEnB,qEAAqE;AACrE,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,kBAKtC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 3-D simplex noise, a port of the glow shader's `snoise` (Ashima Arts / Stefan Gustavson), so the
3
+ * wave drawn on the CPU moves with the same speech rhythm as the shader, as on iOS and the web.
4
+ *
5
+ * It runs in float32 like a GPU, with `mod` as a multiply by a float32 reciprocal, because the
6
+ * hash is sensitive to rounding: in exact arithmetic some inputs hash to a neighbouring gradient.
7
+ * Every function is a worklet, as the motion runs on the UI thread.
8
+ */
9
+ /** Simplex noise at (x, y, z), from about -1 to 1. */
10
+ export declare const snoise: (inX: number, inY: number, inZ: number) => number;
11
+ //# sourceMappingURL=simplex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simplex.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/simplex.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA6CH,sDAAsD;AACtD,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,WAsC3D,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type LevelResponse } from './driver';
2
+ /**
3
+ * What tells the glow and the wave apart besides how they draw, as on iOS.
4
+ *
5
+ * - `levelResponse`: the wave's height tracks the level directly, so it follows it smoothly;
6
+ * per-syllable jumps would make it jitter. The glow follows it closely.
7
+ * - `maxScale`: the densest it renders. The glow is soft all over, so 2x is enough; the wave's
8
+ * thin line is drawn at the screen's own scale, up to 3x, to stay crisp.
9
+ * - `contains`: whether a point, centred and normalized to the shorter side with y up, is on the
10
+ * shape rather than the empty space around it.
11
+ */
12
+ export type VoiceVisualizationStyle = {
13
+ contains: (x: number, y: number) => boolean;
14
+ /** The shape's bounds as a share of the shorter side, for the area that takes touches. */
15
+ hitArea: {
16
+ width: number;
17
+ height: number;
18
+ };
19
+ levelResponse: LevelResponse;
20
+ maxScale: number;
21
+ };
22
+ export declare const GLOW_STYLE: VoiceVisualizationStyle;
23
+ export declare const WAVE_STYLE: VoiceVisualizationStyle;
24
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/ai-components/voice-visualization/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9D;;;;;;;;;GASG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,0FAA0F;IAC1F,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,eAAO,MAAM,UAAU,EAAE,uBAQxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAQxB,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import type { SharedValue } from 'react-native-reanimated';
3
+ /**
4
+ * What a voice agent is doing, which a voice visualization shows as motion.
5
+ *
6
+ * The states differ only in how a visualization moves, never in its colors, and changing the
7
+ * state eases from one motion into the next.
8
+ *
9
+ * - `idle`: waiting to be spoken to, a calm, barely-there shimmer.
10
+ * - `connecting`: not ready yet, a loader sweep with a pulsing breath.
11
+ * - `listening`: hearing somebody, a gentle expand and contract.
12
+ * - `thinking`: working on an answer, a slow turn or a travelling wave.
13
+ * - `speaking`: talking, strong motion that ebbs and pauses like speech.
14
+ */
15
+ export type VoiceAgentState = 'idle' | 'connecting' | 'listening' | 'thinking' | 'speaking';
16
+ export type VoiceVisualizationProps = Omit<ViewProps, 'children'> & {
17
+ /** What the agent is doing, which sets how the visualization moves. */
18
+ state: VoiceAgentState;
19
+ /**
20
+ * The level of whoever is talking, from 0 to 1, read once a frame on the UI thread. Feed it at
21
+ * 15 Hz or more for the visualization to move with the words; `null` animates speech on its own.
22
+ * See `useDictationAudioLevel` for the level of the microphone while dictating.
23
+ */
24
+ audioLevel?: SharedValue<number | null>;
25
+ /**
26
+ * One to five colors. Past five are ignored, and colors that cannot be read are skipped. When
27
+ * omitted or empty, the theme's `voiceVisualization.colors` are used.
28
+ */
29
+ colors?: string[];
30
+ /** From 0 to 2: how far and how fast it moves. Colors never change with it. Defaults to 1. */
31
+ expressivity?: number;
32
+ /**
33
+ * What screen readers read as the value for each state, for example to translate them. Defaults
34
+ * to "Ready", "Connecting", "Listening", "Thinking" and "Speaking". The label, "Voice agent", is
35
+ * `accessibilityLabel`.
36
+ */
37
+ stateLabels?: Partial<Record<VoiceAgentState, string>>;
38
+ };
39
+ /** A color as hue (a fraction of a turn), saturation and value, each from 0 to 1. */
40
+ export type Hsv = {
41
+ hue: number;
42
+ saturation: number;
43
+ value: number;
44
+ };
45
+ //# sourceMappingURL=types.d.ts.map