stream-chat-react-native-core 9.2.0-beta.1 → 9.2.0-beta.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 (579) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/a11y/hooks/useA11yLabel.js +4 -3
  3. package/lib/commonjs/a11y/hooks/useA11yLabel.js.map +1 -1
  4. package/lib/commonjs/a11y/hooks/useAccessibilityActivateAction.js +25 -0
  5. package/lib/commonjs/a11y/hooks/useAccessibilityActivateAction.js.map +1 -0
  6. package/lib/commonjs/a11y/index.js +11 -0
  7. package/lib/commonjs/a11y/index.js.map +1 -1
  8. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +20 -0
  9. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  10. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +1 -0
  11. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
  12. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +19 -2
  13. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
  14. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +4 -3
  15. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
  16. package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -1
  17. package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
  18. package/lib/commonjs/components/Channel/Channel.js +10 -1
  19. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  20. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +26 -3
  21. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -1
  22. package/lib/commonjs/components/ChannelList/ChannelList.js +29 -4
  23. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  24. package/lib/commonjs/components/ChannelList/hooks/useChannelActions.js +314 -11
  25. package/lib/commonjs/components/ChannelList/hooks/useChannelActions.js.map +1 -1
  26. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +2 -2
  27. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  28. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +1 -1
  29. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  30. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
  31. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  32. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +202 -15
  33. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  34. package/lib/commonjs/components/MessageInput/MessageComposer.js +1 -1
  35. package/lib/commonjs/components/MessageInput/MessageComposerLeadingView.js +1 -1
  36. package/lib/commonjs/components/MessageInput/MessageComposerLeadingView.js.map +1 -1
  37. package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js +1 -1
  38. package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js.map +1 -1
  39. package/lib/commonjs/components/MessageInput/MessageInputTrailingView.js +1 -1
  40. package/lib/commonjs/components/MessageInput/MessageInputTrailingView.js.map +1 -1
  41. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +16 -4
  42. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
  43. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +7 -13
  44. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
  45. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +30 -6
  46. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
  47. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +34 -9
  48. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  49. package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +12 -3
  50. package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
  51. package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +1 -0
  52. package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
  53. package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +1 -0
  54. package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
  55. package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +1 -1
  56. package/lib/commonjs/components/MessageList/MessageFlashList.js +24 -4
  57. package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
  58. package/lib/commonjs/components/MessageList/MessageList.js +24 -4
  59. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  60. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +12 -6
  61. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
  62. package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +1 -0
  63. package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
  64. package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js +47 -0
  65. package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -0
  66. package/lib/commonjs/components/MessageMenu/MessageActionListItem.js +12 -4
  67. package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +1 -1
  68. package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +1 -0
  69. package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
  70. package/lib/commonjs/components/MessageMenu/ReactionButton.js +9 -6
  71. package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +1 -1
  72. package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js +23 -2
  73. package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
  74. package/lib/commonjs/components/Notifications/Notification.js +232 -0
  75. package/lib/commonjs/components/Notifications/Notification.js.map +1 -0
  76. package/lib/commonjs/components/Notifications/NotificationList.js +120 -0
  77. package/lib/commonjs/components/Notifications/NotificationList.js.map +1 -0
  78. package/lib/commonjs/components/Notifications/NotificationTargetContext.js +45 -0
  79. package/lib/commonjs/components/Notifications/NotificationTargetContext.js.map +1 -0
  80. package/lib/commonjs/components/Notifications/hooks/index.js +59 -0
  81. package/lib/commonjs/components/Notifications/hooks/index.js.map +1 -0
  82. package/lib/commonjs/components/Notifications/hooks/useNotificationApi.js +133 -0
  83. package/lib/commonjs/components/Notifications/hooks/useNotificationApi.js.map +1 -0
  84. package/lib/commonjs/components/Notifications/hooks/useNotificationListController.js +133 -0
  85. package/lib/commonjs/components/Notifications/hooks/useNotificationListController.js.map +1 -0
  86. package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js +26 -0
  87. package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js.map +1 -0
  88. package/lib/commonjs/components/Notifications/hooks/useNotifications.js +26 -0
  89. package/lib/commonjs/components/Notifications/hooks/useNotifications.js.map +1 -0
  90. package/lib/commonjs/components/Notifications/hooks/useSystemNotifications.js +22 -0
  91. package/lib/commonjs/components/Notifications/hooks/useSystemNotifications.js.map +1 -0
  92. package/lib/commonjs/components/Notifications/index.js +59 -0
  93. package/lib/commonjs/components/Notifications/index.js.map +1 -0
  94. package/lib/commonjs/components/Notifications/notificationTarget.js +220 -0
  95. package/lib/commonjs/components/Notifications/notificationTarget.js.map +1 -0
  96. package/lib/commonjs/components/Notifications/notificationTranslations.js +137 -0
  97. package/lib/commonjs/components/Notifications/notificationTranslations.js.map +1 -0
  98. package/lib/commonjs/components/Poll/components/CreatePollHeader.js +2 -0
  99. package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
  100. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +2 -0
  101. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  102. package/lib/commonjs/components/Poll/components/PollModalHeader.js +1 -0
  103. package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
  104. package/lib/commonjs/components/Poll/components/PollOption.js +14 -9
  105. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
  106. package/lib/commonjs/components/Poll/hooks/usePollState.js +35 -3
  107. package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -1
  108. package/lib/commonjs/components/Reply/Reply.js +1 -0
  109. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  110. package/lib/commonjs/components/Thread/Thread.js +19 -11
  111. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  112. package/lib/commonjs/components/ThreadList/ThreadList.js +30 -9
  113. package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
  114. package/lib/commonjs/components/index.js +11 -0
  115. package/lib/commonjs/components/index.js.map +1 -1
  116. package/lib/commonjs/components/ui/Avatar/Avatar.js +6 -3
  117. package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
  118. package/lib/commonjs/components/ui/Button/Button.js +16 -3
  119. package/lib/commonjs/components/ui/Button/Button.js.map +1 -1
  120. package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js +21 -1
  121. package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
  122. package/lib/commonjs/contexts/componentsContext/defaultComponents.js +4 -0
  123. package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
  124. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +37 -0
  125. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  126. package/lib/commonjs/contexts/themeContext/utils/theme.js +13 -0
  127. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  128. package/lib/commonjs/hooks/index.js +11 -0
  129. package/lib/commonjs/hooks/index.js.map +1 -1
  130. package/lib/commonjs/hooks/useAudioPlayer.js +34 -1
  131. package/lib/commonjs/hooks/useAudioPlayer.js.map +1 -1
  132. package/lib/commonjs/hooks/useInAppNotificationsState.js.map +1 -1
  133. package/lib/commonjs/hooks/useLazyRef.js +13 -0
  134. package/lib/commonjs/hooks/useLazyRef.js.map +1 -0
  135. package/lib/commonjs/i18n/en.json +94 -1
  136. package/lib/commonjs/i18n/es.json +96 -3
  137. package/lib/commonjs/i18n/fr.json +94 -1
  138. package/lib/commonjs/i18n/he.json +94 -1
  139. package/lib/commonjs/i18n/hi.json +94 -1
  140. package/lib/commonjs/i18n/it.json +94 -1
  141. package/lib/commonjs/i18n/ja.json +94 -1
  142. package/lib/commonjs/i18n/ko.json +94 -1
  143. package/lib/commonjs/i18n/nl.json +94 -1
  144. package/lib/commonjs/i18n/pt-br.json +94 -1
  145. package/lib/commonjs/i18n/ru.json +94 -1
  146. package/lib/commonjs/i18n/tr.json +94 -1
  147. package/lib/commonjs/mock-builders/DB/mock.js +3 -1
  148. package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
  149. package/lib/commonjs/state-store/audio-player-pool.js +1 -0
  150. package/lib/commonjs/state-store/audio-player-pool.js.map +1 -1
  151. package/lib/commonjs/state-store/audio-player.js +92 -13
  152. package/lib/commonjs/state-store/audio-player.js.map +1 -1
  153. package/lib/commonjs/test-utils/BetterSqlite.js +3 -2
  154. package/lib/commonjs/test-utils/BetterSqlite.js.map +1 -1
  155. package/lib/commonjs/theme/generated/dark/StreamTokens.android.js +16 -16
  156. package/lib/commonjs/theme/generated/dark/StreamTokens.android.js.map +1 -1
  157. package/lib/commonjs/theme/generated/dark/StreamTokens.ios.js +8 -8
  158. package/lib/commonjs/theme/generated/dark/StreamTokens.ios.js.map +1 -1
  159. package/lib/commonjs/theme/generated/dark/StreamTokens.web.js +8 -8
  160. package/lib/commonjs/theme/generated/dark/StreamTokens.web.js.map +1 -1
  161. package/lib/commonjs/theme/generated/light/StreamTokens.android.js +16 -16
  162. package/lib/commonjs/theme/generated/light/StreamTokens.android.js.map +1 -1
  163. package/lib/commonjs/theme/generated/light/StreamTokens.ios.js +8 -8
  164. package/lib/commonjs/theme/generated/light/StreamTokens.ios.js.map +1 -1
  165. package/lib/commonjs/theme/generated/light/StreamTokens.web.js +8 -8
  166. package/lib/commonjs/theme/generated/light/StreamTokens.web.js.map +1 -1
  167. package/lib/commonjs/utils/animations/createBoundedZoomTransition.js +151 -0
  168. package/lib/commonjs/utils/animations/createBoundedZoomTransition.js.map +1 -0
  169. package/lib/commonjs/utils/{transitions.js → animations/transitions.js} +6 -0
  170. package/lib/commonjs/utils/animations/transitions.js.map +1 -0
  171. package/lib/commonjs/version.json +1 -1
  172. package/lib/module/a11y/hooks/useA11yLabel.js +4 -3
  173. package/lib/module/a11y/hooks/useA11yLabel.js.map +1 -1
  174. package/lib/module/a11y/hooks/useAccessibilityActivateAction.js +25 -0
  175. package/lib/module/a11y/hooks/useAccessibilityActivateAction.js.map +1 -0
  176. package/lib/module/a11y/index.js +11 -0
  177. package/lib/module/a11y/index.js.map +1 -1
  178. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +20 -0
  179. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  180. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +1 -0
  181. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
  182. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +19 -2
  183. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
  184. package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +4 -3
  185. package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
  186. package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -1
  187. package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
  188. package/lib/module/components/Channel/Channel.js +10 -1
  189. package/lib/module/components/Channel/Channel.js.map +1 -1
  190. package/lib/module/components/Channel/hooks/useMessageListPagination.js +26 -3
  191. package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -1
  192. package/lib/module/components/ChannelList/ChannelList.js +29 -4
  193. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  194. package/lib/module/components/ChannelList/hooks/useChannelActions.js +314 -11
  195. package/lib/module/components/ChannelList/hooks/useChannelActions.js.map +1 -1
  196. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +2 -2
  197. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  198. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +1 -1
  199. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  200. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
  201. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  202. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +202 -15
  203. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  204. package/lib/module/components/MessageInput/MessageComposer.js +1 -1
  205. package/lib/module/components/MessageInput/MessageComposerLeadingView.js +1 -1
  206. package/lib/module/components/MessageInput/MessageComposerLeadingView.js.map +1 -1
  207. package/lib/module/components/MessageInput/MessageInputHeaderView.js +1 -1
  208. package/lib/module/components/MessageInput/MessageInputHeaderView.js.map +1 -1
  209. package/lib/module/components/MessageInput/MessageInputTrailingView.js +1 -1
  210. package/lib/module/components/MessageInput/MessageInputTrailingView.js.map +1 -1
  211. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +16 -4
  212. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
  213. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +7 -13
  214. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
  215. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +30 -6
  216. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
  217. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +34 -9
  218. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  219. package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +12 -3
  220. package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
  221. package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +1 -0
  222. package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
  223. package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +1 -0
  224. package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
  225. package/lib/module/components/MessageInput/components/OutputButtons/index.js +1 -1
  226. package/lib/module/components/MessageList/MessageFlashList.js +24 -4
  227. package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
  228. package/lib/module/components/MessageList/MessageList.js +24 -4
  229. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  230. package/lib/module/components/MessageList/ScrollToBottomButton.js +12 -6
  231. package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
  232. package/lib/module/components/MessageList/UnreadMessagesNotification.js +1 -0
  233. package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
  234. package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js +47 -0
  235. package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -0
  236. package/lib/module/components/MessageMenu/MessageActionListItem.js +12 -4
  237. package/lib/module/components/MessageMenu/MessageActionListItem.js.map +1 -1
  238. package/lib/module/components/MessageMenu/MessageReactionPicker.js +1 -0
  239. package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
  240. package/lib/module/components/MessageMenu/ReactionButton.js +9 -6
  241. package/lib/module/components/MessageMenu/ReactionButton.js.map +1 -1
  242. package/lib/module/components/MessageMenu/hooks/useFetchReactions.js +23 -2
  243. package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
  244. package/lib/module/components/Notifications/Notification.js +232 -0
  245. package/lib/module/components/Notifications/Notification.js.map +1 -0
  246. package/lib/module/components/Notifications/NotificationList.js +120 -0
  247. package/lib/module/components/Notifications/NotificationList.js.map +1 -0
  248. package/lib/module/components/Notifications/NotificationTargetContext.js +45 -0
  249. package/lib/module/components/Notifications/NotificationTargetContext.js.map +1 -0
  250. package/lib/module/components/Notifications/hooks/index.js +59 -0
  251. package/lib/module/components/Notifications/hooks/index.js.map +1 -0
  252. package/lib/module/components/Notifications/hooks/useNotificationApi.js +133 -0
  253. package/lib/module/components/Notifications/hooks/useNotificationApi.js.map +1 -0
  254. package/lib/module/components/Notifications/hooks/useNotificationListController.js +133 -0
  255. package/lib/module/components/Notifications/hooks/useNotificationListController.js.map +1 -0
  256. package/lib/module/components/Notifications/hooks/useNotificationTarget.js +26 -0
  257. package/lib/module/components/Notifications/hooks/useNotificationTarget.js.map +1 -0
  258. package/lib/module/components/Notifications/hooks/useNotifications.js +26 -0
  259. package/lib/module/components/Notifications/hooks/useNotifications.js.map +1 -0
  260. package/lib/module/components/Notifications/hooks/useSystemNotifications.js +22 -0
  261. package/lib/module/components/Notifications/hooks/useSystemNotifications.js.map +1 -0
  262. package/lib/module/components/Notifications/index.js +59 -0
  263. package/lib/module/components/Notifications/index.js.map +1 -0
  264. package/lib/module/components/Notifications/notificationTarget.js +220 -0
  265. package/lib/module/components/Notifications/notificationTarget.js.map +1 -0
  266. package/lib/module/components/Notifications/notificationTranslations.js +137 -0
  267. package/lib/module/components/Notifications/notificationTranslations.js.map +1 -0
  268. package/lib/module/components/Poll/components/CreatePollHeader.js +2 -0
  269. package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
  270. package/lib/module/components/Poll/components/MultipleVotesSettings.js +2 -0
  271. package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  272. package/lib/module/components/Poll/components/PollModalHeader.js +1 -0
  273. package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
  274. package/lib/module/components/Poll/components/PollOption.js +14 -9
  275. package/lib/module/components/Poll/components/PollOption.js.map +1 -1
  276. package/lib/module/components/Poll/hooks/usePollState.js +35 -3
  277. package/lib/module/components/Poll/hooks/usePollState.js.map +1 -1
  278. package/lib/module/components/Reply/Reply.js +1 -0
  279. package/lib/module/components/Reply/Reply.js.map +1 -1
  280. package/lib/module/components/Thread/Thread.js +19 -11
  281. package/lib/module/components/Thread/Thread.js.map +1 -1
  282. package/lib/module/components/ThreadList/ThreadList.js +30 -9
  283. package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
  284. package/lib/module/components/index.js +11 -0
  285. package/lib/module/components/index.js.map +1 -1
  286. package/lib/module/components/ui/Avatar/Avatar.js +6 -3
  287. package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
  288. package/lib/module/components/ui/Button/Button.js +16 -3
  289. package/lib/module/components/ui/Button/Button.js.map +1 -1
  290. package/lib/module/contexts/accessibilityContext/AccessibilityContext.js +21 -1
  291. package/lib/module/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
  292. package/lib/module/contexts/componentsContext/defaultComponents.js +4 -0
  293. package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
  294. package/lib/module/contexts/messageInputContext/MessageInputContext.js +37 -0
  295. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  296. package/lib/module/contexts/themeContext/utils/theme.js +13 -0
  297. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  298. package/lib/module/hooks/index.js +11 -0
  299. package/lib/module/hooks/index.js.map +1 -1
  300. package/lib/module/hooks/useAudioPlayer.js +34 -1
  301. package/lib/module/hooks/useAudioPlayer.js.map +1 -1
  302. package/lib/module/hooks/useInAppNotificationsState.js.map +1 -1
  303. package/lib/module/hooks/useLazyRef.js +13 -0
  304. package/lib/module/hooks/useLazyRef.js.map +1 -0
  305. package/lib/module/i18n/en.json +94 -1
  306. package/lib/module/i18n/es.json +96 -3
  307. package/lib/module/i18n/fr.json +94 -1
  308. package/lib/module/i18n/he.json +94 -1
  309. package/lib/module/i18n/hi.json +94 -1
  310. package/lib/module/i18n/it.json +94 -1
  311. package/lib/module/i18n/ja.json +94 -1
  312. package/lib/module/i18n/ko.json +94 -1
  313. package/lib/module/i18n/nl.json +94 -1
  314. package/lib/module/i18n/pt-br.json +94 -1
  315. package/lib/module/i18n/ru.json +94 -1
  316. package/lib/module/i18n/tr.json +94 -1
  317. package/lib/module/mock-builders/DB/mock.js +3 -1
  318. package/lib/module/mock-builders/DB/mock.js.map +1 -1
  319. package/lib/module/state-store/audio-player-pool.js +1 -0
  320. package/lib/module/state-store/audio-player-pool.js.map +1 -1
  321. package/lib/module/state-store/audio-player.js +92 -13
  322. package/lib/module/state-store/audio-player.js.map +1 -1
  323. package/lib/module/test-utils/BetterSqlite.js +3 -2
  324. package/lib/module/test-utils/BetterSqlite.js.map +1 -1
  325. package/lib/module/theme/generated/dark/StreamTokens.android.js +16 -16
  326. package/lib/module/theme/generated/dark/StreamTokens.android.js.map +1 -1
  327. package/lib/module/theme/generated/dark/StreamTokens.ios.js +8 -8
  328. package/lib/module/theme/generated/dark/StreamTokens.ios.js.map +1 -1
  329. package/lib/module/theme/generated/dark/StreamTokens.web.js +8 -8
  330. package/lib/module/theme/generated/dark/StreamTokens.web.js.map +1 -1
  331. package/lib/module/theme/generated/light/StreamTokens.android.js +16 -16
  332. package/lib/module/theme/generated/light/StreamTokens.android.js.map +1 -1
  333. package/lib/module/theme/generated/light/StreamTokens.ios.js +8 -8
  334. package/lib/module/theme/generated/light/StreamTokens.ios.js.map +1 -1
  335. package/lib/module/theme/generated/light/StreamTokens.web.js +8 -8
  336. package/lib/module/theme/generated/light/StreamTokens.web.js.map +1 -1
  337. package/lib/module/utils/animations/createBoundedZoomTransition.js +151 -0
  338. package/lib/module/utils/animations/createBoundedZoomTransition.js.map +1 -0
  339. package/lib/module/utils/{transitions.js → animations/transitions.js} +6 -0
  340. package/lib/module/utils/animations/transitions.js.map +1 -0
  341. package/lib/module/version.json +1 -1
  342. package/lib/typescript/a11y/a11yUtils.d.ts +3 -3
  343. package/lib/typescript/a11y/a11yUtils.d.ts.map +1 -1
  344. package/lib/typescript/a11y/hooks/useA11yLabel.d.ts +2 -1
  345. package/lib/typescript/a11y/hooks/useA11yLabel.d.ts.map +1 -1
  346. package/lib/typescript/a11y/hooks/useAccessibilityActivateAction.d.ts +17 -0
  347. package/lib/typescript/a11y/hooks/useAccessibilityActivateAction.d.ts.map +1 -0
  348. package/lib/typescript/a11y/index.d.ts +1 -0
  349. package/lib/typescript/a11y/index.d.ts.map +1 -1
  350. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
  351. package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
  352. package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.d.ts.map +1 -1
  353. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
  354. package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts +2 -1
  355. package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts.map +1 -1
  356. package/lib/typescript/components/Channel/Channel.d.ts +1 -0
  357. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  358. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
  359. package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -0
  360. package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
  361. package/lib/typescript/components/ChannelList/hooks/useChannelActions.d.ts.map +1 -1
  362. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
  363. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts +5 -2
  364. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts.map +1 -1
  365. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts.map +1 -1
  366. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -1
  367. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
  368. package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts +1 -0
  369. package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
  370. package/lib/typescript/components/MessageInput/components/OutputButtons/EditButton.d.ts.map +1 -1
  371. package/lib/typescript/components/MessageInput/components/OutputButtons/SendButton.d.ts.map +1 -1
  372. package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
  373. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  374. package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +2 -0
  375. package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
  376. package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
  377. package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts +20 -0
  378. package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts.map +1 -0
  379. package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +1 -1
  380. package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -1
  381. package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +1 -1
  382. package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
  383. package/lib/typescript/components/Notifications/Notification.d.ts +31 -0
  384. package/lib/typescript/components/Notifications/Notification.d.ts.map +1 -0
  385. package/lib/typescript/components/Notifications/NotificationList.d.ts +28 -0
  386. package/lib/typescript/components/Notifications/NotificationList.d.ts.map +1 -0
  387. package/lib/typescript/components/Notifications/NotificationTargetContext.d.ts +14 -0
  388. package/lib/typescript/components/Notifications/NotificationTargetContext.d.ts.map +1 -0
  389. package/lib/typescript/components/Notifications/hooks/index.d.ts +6 -0
  390. package/lib/typescript/components/Notifications/hooks/index.d.ts.map +1 -0
  391. package/lib/typescript/components/Notifications/hooks/useNotificationApi.d.ts +48 -0
  392. package/lib/typescript/components/Notifications/hooks/useNotificationApi.d.ts.map +1 -0
  393. package/lib/typescript/components/Notifications/hooks/useNotificationListController.d.ts +14 -0
  394. package/lib/typescript/components/Notifications/hooks/useNotificationListController.d.ts.map +1 -0
  395. package/lib/typescript/components/Notifications/hooks/useNotificationTarget.d.ts +3 -0
  396. package/lib/typescript/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -0
  397. package/lib/typescript/components/Notifications/hooks/useNotifications.d.ts +14 -0
  398. package/lib/typescript/components/Notifications/hooks/useNotifications.d.ts.map +1 -0
  399. package/lib/typescript/components/Notifications/hooks/useSystemNotifications.d.ts +9 -0
  400. package/lib/typescript/components/Notifications/hooks/useSystemNotifications.d.ts.map +1 -0
  401. package/lib/typescript/components/Notifications/index.d.ts +6 -0
  402. package/lib/typescript/components/Notifications/index.d.ts.map +1 -0
  403. package/lib/typescript/components/Notifications/notificationTarget.d.ts +55 -0
  404. package/lib/typescript/components/Notifications/notificationTarget.d.ts.map +1 -0
  405. package/lib/typescript/components/Notifications/notificationTranslations.d.ts +7 -0
  406. package/lib/typescript/components/Notifications/notificationTranslations.d.ts.map +1 -0
  407. package/lib/typescript/components/Poll/components/CreatePollHeader.d.ts.map +1 -1
  408. package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
  409. package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -1
  410. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
  411. package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -1
  412. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  413. package/lib/typescript/components/Thread/Thread.d.ts +1 -0
  414. package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
  415. package/lib/typescript/components/ThreadList/ThreadList.d.ts +3 -1
  416. package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
  417. package/lib/typescript/components/index.d.ts +1 -0
  418. package/lib/typescript/components/index.d.ts.map +1 -1
  419. package/lib/typescript/components/ui/Avatar/Avatar.d.ts.map +1 -1
  420. package/lib/typescript/components/ui/Button/Button.d.ts +10 -1
  421. package/lib/typescript/components/ui/Button/Button.d.ts.map +1 -1
  422. package/lib/typescript/contexts/accessibilityContext/AccessibilityContext.d.ts +1 -1
  423. package/lib/typescript/contexts/accessibilityContext/AccessibilityContext.d.ts.map +1 -1
  424. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +3 -0
  425. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
  426. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  427. package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +13 -0
  428. package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -1
  429. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +13 -0
  430. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  431. package/lib/typescript/hooks/index.d.ts +1 -0
  432. package/lib/typescript/hooks/index.d.ts.map +1 -1
  433. package/lib/typescript/hooks/useAudioPlayer.d.ts.map +1 -1
  434. package/lib/typescript/hooks/useInAppNotificationsState.d.ts +6 -0
  435. package/lib/typescript/hooks/useInAppNotificationsState.d.ts.map +1 -1
  436. package/lib/typescript/hooks/useLazyRef.d.ts +7 -0
  437. package/lib/typescript/hooks/useLazyRef.d.ts.map +1 -0
  438. package/lib/typescript/i18n/en.json +94 -1
  439. package/lib/typescript/i18n/es.json +96 -3
  440. package/lib/typescript/i18n/fr.json +94 -1
  441. package/lib/typescript/i18n/he.json +94 -1
  442. package/lib/typescript/i18n/hi.json +94 -1
  443. package/lib/typescript/i18n/it.json +94 -1
  444. package/lib/typescript/i18n/ja.json +94 -1
  445. package/lib/typescript/i18n/ko.json +94 -1
  446. package/lib/typescript/i18n/nl.json +94 -1
  447. package/lib/typescript/i18n/pt-br.json +94 -1
  448. package/lib/typescript/i18n/ru.json +94 -1
  449. package/lib/typescript/i18n/tr.json +94 -1
  450. package/lib/typescript/state-store/audio-player-pool.d.ts.map +1 -1
  451. package/lib/typescript/state-store/audio-player.d.ts +13 -0
  452. package/lib/typescript/state-store/audio-player.d.ts.map +1 -1
  453. package/lib/typescript/test-utils/BetterSqlite.d.ts.map +1 -1
  454. package/lib/typescript/utils/animations/createBoundedZoomTransition.d.ts +21 -0
  455. package/lib/typescript/utils/animations/createBoundedZoomTransition.d.ts.map +1 -0
  456. package/lib/typescript/utils/animations/transitions.d.ts +21 -0
  457. package/lib/typescript/utils/animations/transitions.d.ts.map +1 -0
  458. package/lib/typescript/utils/i18n/Streami18n.d.ts +93 -0
  459. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  460. package/package.json +2 -2
  461. package/src/__tests__/offline-support/offline-feature.tsx +40 -34
  462. package/src/a11y/a11yUtils.ts +2 -2
  463. package/src/a11y/hooks/useA11yLabel.ts +7 -4
  464. package/src/a11y/hooks/useAccessibilityActivateAction.ts +44 -0
  465. package/src/a11y/index.ts +1 -0
  466. package/src/components/AttachmentPicker/AttachmentPicker.tsx +23 -1
  467. package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +1 -0
  468. package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +15 -2
  469. package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +4 -3
  470. package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +9 -0
  471. package/src/components/AttachmentPicker/components/__tests__/AttachmentPickerContent.test.tsx +19 -18
  472. package/src/components/Channel/Channel.tsx +15 -1
  473. package/src/components/Channel/__tests__/useMessageListPagination.test.tsx +34 -2
  474. package/src/components/Channel/hooks/useMessageListPagination.tsx +19 -3
  475. package/src/components/ChannelList/ChannelList.tsx +27 -5
  476. package/src/components/ChannelList/__tests__/ChannelListView.test.tsx +16 -5
  477. package/src/components/ChannelList/hooks/__tests__/useChannelActions.test.tsx +123 -0
  478. package/src/components/ChannelList/hooks/useChannelActions.ts +181 -12
  479. package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +9 -3
  480. package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +4 -1
  481. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +2 -2
  482. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +1 -1
  483. package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +1 -1
  484. package/src/components/Message/hooks/__tests__/useMessageActionHandlers.test.tsx +131 -0
  485. package/src/components/Message/hooks/useMessageActionHandlers.ts +133 -23
  486. package/src/components/MessageInput/MessageComposer.tsx +1 -1
  487. package/src/components/MessageInput/MessageComposerLeadingView.tsx +1 -1
  488. package/src/components/MessageInput/MessageInputHeaderView.tsx +1 -1
  489. package/src/components/MessageInput/MessageInputTrailingView.tsx +1 -1
  490. package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +18 -2
  491. package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.tsx +1 -10
  492. package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +13 -2
  493. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +35 -14
  494. package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +13 -3
  495. package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +1 -0
  496. package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +1 -0
  497. package/src/components/MessageInput/components/OutputButtons/index.tsx +1 -1
  498. package/src/components/MessageList/MessageFlashList.tsx +26 -3
  499. package/src/components/MessageList/MessageList.tsx +26 -3
  500. package/src/components/MessageList/ScrollToBottomButton.tsx +18 -6
  501. package/src/components/MessageList/UnreadMessagesNotification.tsx +1 -0
  502. package/src/components/MessageList/__tests__/MessageList.test.tsx +221 -0
  503. package/src/components/MessageList/__tests__/ScrollToBottomButton.test.tsx +2 -2
  504. package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.tsx.snap +3 -1
  505. package/src/components/MessageList/hooks/useScrollToBottomAccessibilityAction.ts +74 -0
  506. package/src/components/MessageMenu/MessageActionListItem.tsx +10 -4
  507. package/src/components/MessageMenu/MessageReactionPicker.tsx +1 -0
  508. package/src/components/MessageMenu/ReactionButton.tsx +7 -9
  509. package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +13 -15
  510. package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +20 -18
  511. package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +18 -5
  512. package/src/components/MessageMenu/hooks/useFetchReactions.ts +17 -2
  513. package/src/components/Notifications/Notification.tsx +254 -0
  514. package/src/components/Notifications/NotificationList.tsx +160 -0
  515. package/src/components/Notifications/NotificationTargetContext.tsx +45 -0
  516. package/src/components/Notifications/__tests__/NotificationList.test.tsx +480 -0
  517. package/src/components/Notifications/__tests__/notificationTarget.test.ts +157 -0
  518. package/src/components/Notifications/hooks/__tests__/useNotificationApi.test.tsx +172 -0
  519. package/src/components/Notifications/hooks/__tests__/useNotificationTarget.test.tsx +85 -0
  520. package/src/components/Notifications/hooks/index.ts +5 -0
  521. package/src/components/Notifications/hooks/useNotificationApi.ts +248 -0
  522. package/src/components/Notifications/hooks/useNotificationListController.ts +160 -0
  523. package/src/components/Notifications/hooks/useNotificationTarget.ts +37 -0
  524. package/src/components/Notifications/hooks/useNotifications.ts +43 -0
  525. package/src/components/Notifications/hooks/useSystemNotifications.ts +33 -0
  526. package/src/components/Notifications/index.ts +5 -0
  527. package/src/components/Notifications/notificationTarget.ts +305 -0
  528. package/src/components/Notifications/notificationTranslations.ts +142 -0
  529. package/src/components/Poll/components/CreatePollHeader.tsx +2 -0
  530. package/src/components/Poll/components/MultipleVotesSettings.tsx +2 -0
  531. package/src/components/Poll/components/PollModalHeader.tsx +1 -0
  532. package/src/components/Poll/components/PollOption.tsx +10 -6
  533. package/src/components/Poll/hooks/usePollState.ts +26 -2
  534. package/src/components/Reply/Reply.tsx +4 -1
  535. package/src/components/Thread/Thread.tsx +24 -16
  536. package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +3 -0
  537. package/src/components/ThreadList/ThreadList.tsx +33 -9
  538. package/src/components/index.ts +2 -0
  539. package/src/components/ui/Avatar/Avatar.tsx +2 -1
  540. package/src/components/ui/Button/Button.tsx +26 -0
  541. package/src/components/ui/Button/__tests__/Button.test.tsx +44 -0
  542. package/src/contexts/accessibilityContext/AccessibilityContext.tsx +35 -1
  543. package/src/contexts/componentsContext/defaultComponents.ts +4 -0
  544. package/src/contexts/messageInputContext/MessageInputContext.tsx +36 -0
  545. package/src/contexts/themeContext/utils/theme.ts +26 -0
  546. package/src/hooks/index.ts +1 -0
  547. package/src/hooks/useAudioPlayer.ts +44 -3
  548. package/src/hooks/useInAppNotificationsState.ts +6 -0
  549. package/src/hooks/useLazyRef.ts +15 -0
  550. package/src/i18n/en.json +94 -1
  551. package/src/i18n/es.json +96 -3
  552. package/src/i18n/fr.json +94 -1
  553. package/src/i18n/he.json +94 -1
  554. package/src/i18n/hi.json +94 -1
  555. package/src/i18n/it.json +94 -1
  556. package/src/i18n/ja.json +94 -1
  557. package/src/i18n/ko.json +94 -1
  558. package/src/i18n/nl.json +94 -1
  559. package/src/i18n/pt-br.json +94 -1
  560. package/src/i18n/ru.json +94 -1
  561. package/src/i18n/tr.json +94 -1
  562. package/src/mock-builders/DB/mock.ts +2 -1
  563. package/src/state-store/__tests__/audio-player.test.ts +45 -0
  564. package/src/state-store/audio-player-pool.ts +1 -0
  565. package/src/state-store/audio-player.ts +108 -16
  566. package/src/test-utils/BetterSqlite.ts +3 -1
  567. package/src/theme/generated/dark/StreamTokens.android.ts +16 -16
  568. package/src/theme/generated/dark/StreamTokens.ios.ts +8 -8
  569. package/src/theme/generated/dark/StreamTokens.web.ts +8 -8
  570. package/src/theme/generated/light/StreamTokens.android.ts +16 -16
  571. package/src/theme/generated/light/StreamTokens.ios.ts +8 -8
  572. package/src/theme/generated/light/StreamTokens.web.ts +8 -8
  573. package/src/utils/animations/createBoundedZoomTransition.ts +117 -0
  574. package/src/utils/{transitions.ts → animations/transitions.ts} +6 -0
  575. package/src/version.json +1 -1
  576. package/lib/commonjs/utils/transitions.js.map +0 -1
  577. package/lib/module/utils/transitions.js.map +0 -1
  578. package/lib/typescript/utils/transitions.d.ts +0 -9
  579. package/lib/typescript/utils/transitions.d.ts.map +0 -1
@@ -0,0 +1,232 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.getNotificationVariant = exports.NotificationIcon = exports.Notification = void 0;
5
+ var _react = _interopRequireWildcard(require("react"));
6
+ var _reactNative = require("react-native");
7
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
8
+ var _useNotificationApi2 = require("./hooks/useNotificationApi");
9
+ var _notificationTranslations = require("./notificationTranslations");
10
+ var _ComponentsContext = require("../../contexts/componentsContext/ComponentsContext");
11
+ var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
12
+ var _TranslationContext = require("../../contexts/translationContext/TranslationContext");
13
+ var _checkmark = require("../../icons/checkmark");
14
+ var _exclamationTriangleFill = require("../../icons/exclamation-triangle-fill");
15
+ var _refresh = require("../../icons/refresh");
16
+ var _xmark = require("../../icons/xmark");
17
+ var _theme = require("../../theme");
18
+ var _Button = require("../ui/Button");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ var _this = this,
21
+ _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/Notifications/Notification.tsx";
22
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
+ var getNotificationVariant = exports.getNotificationVariant = function getNotificationVariant(notification) {
25
+ var _notification$severit;
26
+ return (_notification$severit = notification.severity) != null ? _notification$severit : 'default';
27
+ };
28
+ var IconsByVariant = {
29
+ error: _exclamationTriangleFill.Warning,
30
+ info: null,
31
+ loading: _refresh.Reload,
32
+ success: _checkmark.Check,
33
+ warning: _exclamationTriangleFill.Warning
34
+ };
35
+ var getNotificationIconComponent = function getNotificationIconComponent(notification) {
36
+ var _IconsByVariant$varia;
37
+ var variant = getNotificationVariant(notification);
38
+ if (variant === 'default') return undefined;
39
+ return (_IconsByVariant$varia = IconsByVariant[variant]) != null ? _IconsByVariant$varia : undefined;
40
+ };
41
+ var NotificationIcon = exports.NotificationIcon = function NotificationIcon(_ref) {
42
+ var notification = _ref.notification;
43
+ var Icon = getNotificationIconComponent(notification);
44
+ var _useNotificationIconS = useNotificationIconStyles(),
45
+ iconColor = _useNotificationIconS.iconColor,
46
+ styles = _useNotificationIconS.styles;
47
+ if (!Icon) return null;
48
+ return (0, _jsxRuntime.jsx)(_reactNative.View, {
49
+ style: styles.iconContainer,
50
+ testID: "notification-icon",
51
+ children: (0, _jsxRuntime.jsx)(Icon, {
52
+ height: 20,
53
+ pathFill: iconColor,
54
+ stroke: iconColor,
55
+ width: 20
56
+ })
57
+ });
58
+ };
59
+ var Notification = exports.Notification = function Notification(_ref2) {
60
+ var Icon = _ref2.Icon,
61
+ notification = _ref2.notification,
62
+ onDismiss = _ref2.onDismiss,
63
+ _ref2$showClose = _ref2.showClose,
64
+ showClose = _ref2$showClose === void 0 ? false : _ref2$showClose;
65
+ var _useComponentsContext = (0, _ComponentsContext.useComponentsContext)(),
66
+ _useComponentsContext2 = _useComponentsContext.NotificationIcon,
67
+ NotificationIconComponent = _useComponentsContext2 === void 0 ? NotificationIcon : _useComponentsContext2;
68
+ var _useNotificationApi = (0, _useNotificationApi2.useNotificationApi)(),
69
+ removeNotification = _useNotificationApi.removeNotification;
70
+ var _useTranslationContex = (0, _TranslationContext.useTranslationContext)(),
71
+ t = _useTranslationContex.t;
72
+ var displayMessage = (0, _notificationTranslations.getNotificationDisplayMessage)({
73
+ notification: notification,
74
+ t: t
75
+ });
76
+ var ResolvedIcon = Icon != null ? Icon : NotificationIconComponent;
77
+ var hasResolvedIcon = ResolvedIcon === NotificationIcon ? !!getNotificationIconComponent(notification) : !!ResolvedIcon;
78
+ var _useNotificationStyle = useNotificationStyles({
79
+ hasResolvedIcon: hasResolvedIcon
80
+ }),
81
+ closeIconColor = _useNotificationStyle.closeIconColor,
82
+ styles = _useNotificationStyle.styles;
83
+ var isPersistent = !notification.duration;
84
+ var closeVisible = showClose || isPersistent;
85
+ var handleDismiss = function handleDismiss() {
86
+ if (onDismiss) {
87
+ onDismiss();
88
+ return;
89
+ }
90
+ removeNotification(notification.id);
91
+ };
92
+ return (0, _jsxRuntime.jsxs)(_reactNative.View, {
93
+ accessibilityLiveRegion: notification.severity === 'error' ? 'assertive' : 'polite',
94
+ accessibilityRole: notification.severity === 'error' ? 'alert' : 'summary',
95
+ style: styles.container,
96
+ testID: "notification",
97
+ children: [(0, _jsxRuntime.jsxs)(_reactNative.View, {
98
+ style: styles.contentContainer,
99
+ children: [hasResolvedIcon ? (0, _jsxRuntime.jsx)(ResolvedIcon, {
100
+ notification: notification
101
+ }) : null, (0, _jsxRuntime.jsx)(_reactNative.Text, {
102
+ style: styles.message,
103
+ children: displayMessage
104
+ })]
105
+ }), notification.actions && notification.actions.length > 0 ? (0, _jsxRuntime.jsx)(_reactNative.View, {
106
+ style: styles.actionsContainer,
107
+ children: notification.actions.map(function (action, index) {
108
+ return (0, _jsxRuntime.jsx)(_Button.Button, {
109
+ accessibilityLabel: action.label,
110
+ label: action.label,
111
+ onPress: action.handler,
112
+ size: "sm",
113
+ style: styles.actionButton,
114
+ type: "outline",
115
+ variant: "primary"
116
+ }, `${action.label}-${index}`);
117
+ })
118
+ }) : null, closeVisible ? (0, _jsxRuntime.jsx)(_reactNativeGestureHandler.Pressable, {
119
+ accessibilityLabel: t('a11y/Dismiss notification'),
120
+ accessibilityRole: "button",
121
+ hitSlop: 8,
122
+ onPress: handleDismiss,
123
+ style: function style(_ref3) {
124
+ var pressed = _ref3.pressed;
125
+ return pressed ? styles.closeButtonPressed : styles.closeButton;
126
+ },
127
+ testID: "notification-close-button",
128
+ children: (0, _jsxRuntime.jsx)(_xmark.NewClose, {
129
+ height: 20,
130
+ stroke: closeIconColor,
131
+ width: 20
132
+ })
133
+ }) : null]
134
+ });
135
+ };
136
+ var useNotificationIconStyles = function useNotificationIconStyles() {
137
+ var _useTheme = (0, _ThemeContext.useTheme)(),
138
+ _useTheme$theme = _useTheme.theme,
139
+ notificationTheme = _useTheme$theme.notification,
140
+ semantics = _useTheme$theme.semantics;
141
+ return (0, _react.useMemo)(function () {
142
+ var baseStyles = _reactNative.StyleSheet.create({
143
+ iconContainer: {
144
+ alignItems: 'center',
145
+ height: 20,
146
+ justifyContent: 'center',
147
+ width: 20
148
+ }
149
+ });
150
+ return {
151
+ iconColor: semantics.textOnInverse,
152
+ styles: {
153
+ iconContainer: [baseStyles.iconContainer, notificationTheme.iconContainer]
154
+ }
155
+ };
156
+ }, [notificationTheme.iconContainer, semantics]);
157
+ };
158
+ var useNotificationStyles = function useNotificationStyles(_ref4) {
159
+ var hasResolvedIcon = _ref4.hasResolvedIcon;
160
+ var _useTheme2 = (0, _ThemeContext.useTheme)(),
161
+ _useTheme2$theme = _useTheme2.theme,
162
+ notificationTheme = _useTheme2$theme.notification,
163
+ semantics = _useTheme2$theme.semantics;
164
+ var scheme = (0, _reactNative.useColorScheme)();
165
+ var notificationShadow = scheme === 'dark' ? _theme.primitives.darkElevation3 : _theme.primitives.lightElevation3;
166
+ return (0, _react.useMemo)(function () {
167
+ var baseStyles = _reactNative.StyleSheet.create({
168
+ actionButton: {
169
+ width: 'auto'
170
+ },
171
+ actionsContainer: {
172
+ flexDirection: 'row',
173
+ flexWrap: 'wrap',
174
+ gap: _theme.primitives.spacingXs,
175
+ marginTop: _theme.primitives.spacingXs
176
+ },
177
+ closeButton: {
178
+ alignItems: 'center',
179
+ borderRadius: _theme.primitives.radiusMax,
180
+ height: 24,
181
+ justifyContent: 'center',
182
+ marginLeft: _theme.primitives.spacingXs,
183
+ width: 24
184
+ },
185
+ closeButtonPressed: {
186
+ backgroundColor: semantics.backgroundUtilityPressed
187
+ },
188
+ container: Object.assign({
189
+ alignItems: 'flex-start',
190
+ alignSelf: 'center',
191
+ backgroundColor: semantics.backgroundCoreInverse,
192
+ borderRadius: _theme.primitives.radius3xl,
193
+ flexDirection: 'row',
194
+ maxWidth: '100%',
195
+ paddingHorizontal: _theme.primitives.spacingSm
196
+ }, notificationShadow, {
197
+ shadowOpacity: 0
198
+ }),
199
+ contentContainer: {
200
+ alignItems: 'center',
201
+ flexDirection: 'row',
202
+ flexShrink: 1,
203
+ gap: _theme.primitives.spacingXs,
204
+ minHeight: 48,
205
+ paddingLeft: hasResolvedIcon ? _theme.primitives.spacingXxs : _theme.primitives.spacingXs,
206
+ paddingRight: _theme.primitives.spacingXs,
207
+ paddingVertical: _theme.primitives.spacingXxxs
208
+ },
209
+ message: {
210
+ color: semantics.textOnInverse,
211
+ flexShrink: 1,
212
+ fontSize: _theme.primitives.typographyFontSizeSm,
213
+ fontWeight: _theme.primitives.typographyFontWeightRegular,
214
+ lineHeight: _theme.primitives.typographyLineHeightNormal,
215
+ paddingVertical: _theme.primitives.spacingSm
216
+ }
217
+ });
218
+ return {
219
+ closeIconColor: semantics.textOnInverse,
220
+ styles: {
221
+ actionButton: [baseStyles.actionButton, notificationTheme.actionButton],
222
+ actionsContainer: [baseStyles.actionsContainer, notificationTheme.actionsContainer],
223
+ closeButton: [baseStyles.closeButton, notificationTheme.closeButton],
224
+ closeButtonPressed: [baseStyles.closeButton, baseStyles.closeButtonPressed, notificationTheme.closeButton],
225
+ container: [baseStyles.container, notificationTheme.container],
226
+ contentContainer: [baseStyles.contentContainer, notificationTheme.contentContainer],
227
+ message: [baseStyles.message, notificationTheme.message]
228
+ }
229
+ };
230
+ }, [hasResolvedIcon, notificationShadow, notificationTheme, semantics]);
231
+ };
232
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_useNotificationApi2","_notificationTranslations","_ComponentsContext","_ThemeContext","_TranslationContext","_checkmark","_exclamationTriangleFill","_refresh","_xmark","_theme","_Button","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","getNotificationVariant","exports","notification","_notification$severit","severity","IconsByVariant","error","Warning","info","loading","Reload","success","Check","warning","getNotificationIconComponent","_IconsByVariant$varia","variant","undefined","NotificationIcon","_ref","Icon","_useNotificationIconS","useNotificationIconStyles","iconColor","styles","jsx","View","style","iconContainer","testID","children","height","pathFill","stroke","width","Notification","_ref2","onDismiss","_ref2$showClose","showClose","_useComponentsContext","useComponentsContext","_useComponentsContext2","NotificationIconComponent","_useNotificationApi","useNotificationApi","removeNotification","_useTranslationContex","useTranslationContext","displayMessage","getNotificationDisplayMessage","ResolvedIcon","hasResolvedIcon","_useNotificationStyle","useNotificationStyles","closeIconColor","isPersistent","duration","closeVisible","handleDismiss","id","jsxs","accessibilityLiveRegion","accessibilityRole","container","contentContainer","Text","message","actions","length","actionsContainer","map","action","index","Button","accessibilityLabel","label","onPress","handler","size","actionButton","type","Pressable","hitSlop","_ref3","pressed","closeButtonPressed","closeButton","NewClose","_useTheme","useTheme","_useTheme$theme","theme","notificationTheme","semantics","useMemo","baseStyles","StyleSheet","create","alignItems","justifyContent","textOnInverse","_ref4","_useTheme2","_useTheme2$theme","scheme","useColorScheme","notificationShadow","primitives","darkElevation3","lightElevation3","flexDirection","flexWrap","gap","spacingXs","marginTop","borderRadius","radiusMax","marginLeft","backgroundColor","backgroundUtilityPressed","assign","alignSelf","backgroundCoreInverse","radius3xl","maxWidth","paddingHorizontal","spacingSm","shadowOpacity","flexShrink","minHeight","paddingLeft","spacingXxs","paddingRight","paddingVertical","spacingXxxs","color","fontSize","typographyFontSizeSm","fontWeight","typographyFontWeightRegular","lineHeight","typographyLineHeightNormal"],"sourceRoot":"../../../../src","sources":["components/Notifications/Notification.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,yBAAA,GAAAJ,OAAA;AAEA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,wBAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AAEA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,MAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AAAsC,IAAAc,WAAA,GAAAd,OAAA;AAAA,IAAAe,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA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iBAAiB,CAACb,YAAY,CAAC;QACvEV,gBAAgB,EAAE,CAAC0B,UAAU,CAAC1B,gBAAgB,EAAEuB,iBAAiB,CAACvB,gBAAgB,CAAC;QACnFiB,WAAW,EAAE,CAACS,UAAU,CAACT,WAAW,EAAEM,iBAAiB,CAACN,WAAW,CAAC;QACpED,kBAAkB,EAAE,CAClBU,UAAU,CAACT,WAAW,EACtBS,UAAU,CAACV,kBAAkB,EAC7BO,iBAAiB,CAACN,WAAW,CAC9B;QACDvB,SAAS,EAAE,CAACgC,UAAU,CAAChC,SAAS,EAAE6B,iBAAiB,CAAC7B,SAAS,CAAC;QAC9DC,gBAAgB,EAAE,CAAC+B,UAAU,CAAC/B,gBAAgB,EAAE4B,iBAAiB,CAAC5B,gBAAgB,CAAC;QACnFE,OAAO,EAAE,CAAC6B,UAAU,CAAC7B,OAAO,EAAE0B,iBAAiB,CAAC1B,OAAO;MACzD;IACF,CAAC;EACH,CAAC,EAAE,CAACf,eAAe,EAAEuD,kBAAkB,EAAEd,iBAAiB,EAAEC,SAAS,CAAC,CAAC;AACzE,CAAC","ignoreList":[]}
@@ -0,0 +1,120 @@
1
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.NotificationList = void 0;
6
+ var _react = _interopRequireWildcard(require("react"));
7
+ var _reactNative = require("react-native");
8
+ var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
9
+ var _useNotificationListController = require("./hooks/useNotificationListController");
10
+ var _ComponentsContext = require("../../contexts/componentsContext/ComponentsContext");
11
+ var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
12
+ var _TranslationContext = require("../../contexts/translationContext/TranslationContext");
13
+ var _theme = require("../../theme");
14
+ var _transitions = require("../../utils/animations/transitions");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ var _this = this,
17
+ _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/Notifications/NotificationList.tsx";
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ var isEnterFrom = function isEnterFrom(value) {
21
+ return value === 'bottom' || value === 'left' || value === 'right' || value === 'top';
22
+ };
23
+ var getNotificationEnterFrom = function getNotificationEnterFrom(notification, fallbackEnterFrom) {
24
+ var _notification$metadat, _notification$origin$;
25
+ var metadataEnterFrom = (_notification$metadat = notification.metadata) == null ? void 0 : _notification$metadat.entryDirection;
26
+ if (isEnterFrom(metadataEnterFrom)) return metadataEnterFrom;
27
+ var originEnterFrom = (_notification$origin$ = notification.origin.context) == null ? void 0 : _notification$origin$.entryDirection;
28
+ if (isEnterFrom(originEnterFrom)) return originEnterFrom;
29
+ return fallbackEnterFrom;
30
+ };
31
+ var getStringValue = function getStringValue(value) {
32
+ return typeof value === 'string' ? value : undefined;
33
+ };
34
+ var getNotificationPresentationKey = function getNotificationPresentationKey(notification) {
35
+ var _ref, _ref2, _notification$type, _notification$metadat2, _notification$origin$2;
36
+ return (_ref = (_ref2 = (_notification$type = notification.type) != null ? _notification$type : getStringValue((_notification$metadat2 = notification.metadata) == null ? void 0 : _notification$metadat2.dedupeKey)) != null ? _ref2 : getStringValue((_notification$origin$2 = notification.origin.context) == null ? void 0 : _notification$origin$2.dedupeKey)) != null ? _ref : [notification.origin.emitter, notification.severity, notification.message].filter(Boolean).join(':');
37
+ };
38
+ var NotificationList = exports.NotificationList = function NotificationList(_ref3) {
39
+ var bottomOffset = _ref3.bottomOffset,
40
+ _ref3$enterFrom = _ref3.enterFrom,
41
+ enterFrom = _ref3$enterFrom === void 0 ? 'bottom' : _ref3$enterFrom,
42
+ filter = _ref3.filter,
43
+ hostId = _ref3.hostId,
44
+ panel = _ref3.panel,
45
+ topOffset = _ref3.topOffset,
46
+ _ref3$verticalAlignme = _ref3.verticalAlignment,
47
+ verticalAlignment = _ref3$verticalAlignme === void 0 ? 'bottom' : _ref3$verticalAlignme;
48
+ var _useComponentsContext = (0, _ComponentsContext.useComponentsContext)(),
49
+ NotificationComponent = _useComponentsContext.Notification;
50
+ var styles = useStyles({
51
+ bottomOffset: bottomOffset,
52
+ topOffset: topOffset,
53
+ verticalAlignment: verticalAlignment
54
+ });
55
+ var _useTranslationContex = (0, _TranslationContext.useTranslationContext)(),
56
+ t = _useTranslationContex.t;
57
+ var _useNotificationListC = (0, _useNotificationListController.useNotificationListController)({
58
+ filter: filter,
59
+ hostId: hostId,
60
+ panel: panel
61
+ }),
62
+ dismissNotification = _useNotificationListC.dismissNotification,
63
+ notification = _useNotificationListC.notification;
64
+ if (!notification) return null;
65
+ var notificationEnterFrom = getNotificationEnterFrom(notification, enterFrom);
66
+ var notificationPresentationKey = getNotificationPresentationKey(notification);
67
+ return (0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
68
+ accessibilityLabel: t('a11y/Notifications'),
69
+ pointerEvents: "box-none",
70
+ layout: _transitions.transitions.layout200,
71
+ style: styles.container,
72
+ testID: "notification-list",
73
+ children: (0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
74
+ entering: _transitions.transitions.boundedZoomIn200[notificationEnterFrom],
75
+ exiting: _transitions.transitions.boundedZoomOut200[notificationEnterFrom],
76
+ style: styles.notificationWrapper,
77
+ testID: "notification-list-item",
78
+ children: (0, _jsxRuntime.jsx)(NotificationComponent, {
79
+ entryDirection: notificationEnterFrom,
80
+ notification: notification,
81
+ onDismiss: dismissNotification,
82
+ showClose: !notification.duration
83
+ })
84
+ }, notificationPresentationKey)
85
+ });
86
+ };
87
+ var useStyles = function useStyles(_ref4) {
88
+ var bottomOffset = _ref4.bottomOffset,
89
+ topOffset = _ref4.topOffset,
90
+ verticalAlignment = _ref4.verticalAlignment;
91
+ var _useTheme = (0, _ThemeContext.useTheme)(),
92
+ notificationListContainer = _useTheme.theme.notificationList.container;
93
+ return (0, _react.useMemo)(function () {
94
+ var containerAlignmentStyle = verticalAlignment === 'bottom' ? {
95
+ bottom: _theme.primitives.spacingMd
96
+ } : {
97
+ top: _theme.primitives.spacingMd
98
+ };
99
+ var containerOffsetStyle = verticalAlignment === 'bottom' && typeof bottomOffset === 'number' ? {
100
+ bottom: _theme.primitives.spacingMd + bottomOffset
101
+ } : verticalAlignment === 'top' && typeof topOffset === 'number' ? {
102
+ top: _theme.primitives.spacingMd + topOffset
103
+ } : undefined;
104
+ return _reactNative.StyleSheet.create({
105
+ container: Object.assign({
106
+ alignItems: 'center',
107
+ left: _theme.primitives.spacingMd,
108
+ maxHeight: '100%',
109
+ position: 'absolute',
110
+ right: _theme.primitives.spacingMd,
111
+ zIndex: 20
112
+ }, containerAlignmentStyle, notificationListContainer, containerOffsetStyle),
113
+ notificationWrapper: {
114
+ alignSelf: 'center',
115
+ maxWidth: '100%'
116
+ }
117
+ });
118
+ }, [bottomOffset, notificationListContainer, topOffset, verticalAlignment]);
119
+ };
120
+ //# sourceMappingURL=NotificationList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_useNotificationListController","_ComponentsContext","_ThemeContext","_TranslationContext","_theme","_transitions","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","isEnterFrom","value","getNotificationEnterFrom","notification","fallbackEnterFrom","_notification$metadat","_notification$origin$","metadataEnterFrom","metadata","entryDirection","originEnterFrom","origin","context","getStringValue","undefined","getNotificationPresentationKey","_ref","_ref2","_notification$type","_notification$metadat2","_notification$origin$2","type","dedupeKey","emitter","severity","message","filter","Boolean","join","NotificationList","exports","_ref3","bottomOffset","_ref3$enterFrom","enterFrom","hostId","panel","topOffset","_ref3$verticalAlignme","verticalAlignment","_useComponentsContext","useComponentsContext","NotificationComponent","Notification","styles","useStyles","_useTranslationContex","useTranslationContext","_useNotificationListC","useNotificationListController","dismissNotification","notificationEnterFrom","notificationPresentationKey","jsx","View","accessibilityLabel","pointerEvents","layout","transitions","layout200","style","container","testID","children","entering","boundedZoomIn200","exiting","boundedZoomOut200","notificationWrapper","onDismiss","showClose","duration","_ref4","_useTheme","useTheme","notificationListContainer","theme","notificationList","useMemo","containerAlignmentStyle","bottom","primitives","spacingMd","top","containerOffsetStyle","StyleSheet","create","assign","alignItems","left","maxHeight","position","right","zIndex","alignSelf","maxWidth"],"sourceRoot":"../../../../src","sources":["components/Notifications/NotificationList.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAIA,IAAAI,8BAAA,GAAAJ,OAAA;AAGA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AAAiE,IAAAU,WAAA,GAAAV,OAAA;AAAA,IAAAW,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,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,iBAAiB,KAAK,QAAQ,IAAI,OAAOP,YAAY,KAAK,QAAQ,GAC9D;MAAEgD,MAAM,EAAEC,iBAAU,CAACC,SAAS,GAAGlD;IAAa,CAAC,GAC/CO,iBAAiB,KAAK,KAAK,IAAI,OAAOF,SAAS,KAAK,QAAQ,GAC1D;MAAE8C,GAAG,EAAEF,iBAAU,CAACC,SAAS,GAAG7C;IAAU,CAAC,GACzCvB,SAAS;IAEjB,OAAOuE,uBAAU,CAACC,MAAM,CAAC;MACvBzB,SAAS,EAAArE,MAAA,CAAA+F,MAAA;QACPC,UAAU,EAAE,QAAQ;QACpBC,IAAI,EAAER,iBAAU,CAACC,SAAS;QAC1BQ,SAAS,EAAE,MAAM;QACjBC,QAAQ,EAAE,UAAU;QACpBC,KAAK,EAAEX,iBAAU,CAACC,SAAS;QAC3BW,MAAM,EAAE;MAAE,GACPd,uBAAuB,EACvBJ,yBAAyB,EACzBS,oBAAoB,CACxB;MACDhB,mBAAmB,EAAE;QACnB0B,SAAS,EAAE,QAAQ;QACnBC,QAAQ,EAAE;MACZ;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAAC/D,YAAY,EAAE2C,yBAAyB,EAAEtC,SAAS,EAAEE,iBAAiB,CAAC,CAAC;AAC7E,CAAC","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.useResolvedNotificationTarget = exports.useNotificationTargetContext = exports.NotificationTargetProvider = void 0;
5
+ var _react = _interopRequireWildcard(require("react"));
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ var _this = this,
8
+ _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/Notifications/NotificationTargetContext.tsx";
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ var NotificationTargetContext = (0, _react.createContext)(undefined);
12
+ var NotificationTargetProvider = exports.NotificationTargetProvider = function NotificationTargetProvider(_ref) {
13
+ var children = _ref.children,
14
+ hostId = _ref.hostId,
15
+ panel = _ref.panel;
16
+ var value = (0, _react.useMemo)(function () {
17
+ return {
18
+ hostId: hostId,
19
+ panel: panel
20
+ };
21
+ }, [hostId, panel]);
22
+ return (0, _jsxRuntime.jsx)(NotificationTargetContext.Provider, {
23
+ value: value,
24
+ children: children
25
+ });
26
+ };
27
+ var useNotificationTargetContext = exports.useNotificationTargetContext = function useNotificationTargetContext() {
28
+ return (0, _react.useContext)(NotificationTargetContext);
29
+ };
30
+ var useResolvedNotificationTarget = exports.useResolvedNotificationTarget = function useResolvedNotificationTarget() {
31
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
32
+ hostId = _ref2.hostId,
33
+ panel = _ref2.panel;
34
+ var contextTarget = useNotificationTargetContext();
35
+ return (0, _react.useMemo)(function () {
36
+ if (hostId && panel) return {
37
+ hostId: hostId,
38
+ panel: panel
39
+ };
40
+ if (!hostId && !panel) return contextTarget;
41
+ if (panel && (contextTarget == null ? void 0 : contextTarget.panel) === panel) return contextTarget;
42
+ return undefined;
43
+ }, [contextTarget, hostId, panel]);
44
+ };
45
+ //# sourceMappingURL=NotificationTargetContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","NotificationTargetContext","createContext","undefined","NotificationTargetProvider","exports","_ref","children","hostId","panel","value","useMemo","jsx","Provider","useNotificationTargetContext","useContext","useResolvedNotificationTarget","_ref2","arguments","length","contextTarget"],"sourceRoot":"../../../../src","sources":["components/Notifications/NotificationTargetContext.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAqF,IAAAC,WAAA,GAAAD,OAAA;AAAA,IAAAE,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,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AAMW,aAAa,GAAGN,4BAA4B,CAAC,CAAC;EAEpD,OAAO,IAAAH,cAAO,EAAC,YAAM;IACnB,IAAIH,MAAM,IAAIC,KAAK,EAAE,OAAO;MAAED,MAAM,EAANA,MAAM;MAAEC,KAAK,EAALA;IAAM,CAAC;IAC7C,IAAI,CAACD,MAAM,IAAI,CAACC,KAAK,EAAE,OAAOW,aAAa;IAC3C,IAAIX,KAAK,IAAI,CAAAW,aAAa,oBAAbA,aAAa,CAAEX,KAAK,MAAKA,KAAK,EAAE,OAAOW,aAAa;IAEjE,OAAOjB,SAAS;EAClB,CAAC,EAAE,CAACiB,aAAa,EAAEZ,MAAM,EAAEC,KAAK,CAAC,CAAC;AACpC,CAAC","ignoreList":[]}
@@ -0,0 +1,59 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ var _useNotificationApi = require("./useNotificationApi");
5
+ Object.keys(_useNotificationApi).forEach(function (key) {
6
+ if (key === "default" || key === "__esModule") return;
7
+ if (key in exports && exports[key] === _useNotificationApi[key]) return;
8
+ Object.defineProperty(exports, key, {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _useNotificationApi[key];
12
+ }
13
+ });
14
+ });
15
+ var _useNotificationListController = require("./useNotificationListController");
16
+ Object.keys(_useNotificationListController).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (key in exports && exports[key] === _useNotificationListController[key]) return;
19
+ Object.defineProperty(exports, key, {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _useNotificationListController[key];
23
+ }
24
+ });
25
+ });
26
+ var _useNotifications = require("./useNotifications");
27
+ Object.keys(_useNotifications).forEach(function (key) {
28
+ if (key === "default" || key === "__esModule") return;
29
+ if (key in exports && exports[key] === _useNotifications[key]) return;
30
+ Object.defineProperty(exports, key, {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _useNotifications[key];
34
+ }
35
+ });
36
+ });
37
+ var _useNotificationTarget = require("./useNotificationTarget");
38
+ Object.keys(_useNotificationTarget).forEach(function (key) {
39
+ if (key === "default" || key === "__esModule") return;
40
+ if (key in exports && exports[key] === _useNotificationTarget[key]) return;
41
+ Object.defineProperty(exports, key, {
42
+ enumerable: true,
43
+ get: function get() {
44
+ return _useNotificationTarget[key];
45
+ }
46
+ });
47
+ });
48
+ var _useSystemNotifications = require("./useSystemNotifications");
49
+ Object.keys(_useSystemNotifications).forEach(function (key) {
50
+ if (key === "default" || key === "__esModule") return;
51
+ if (key in exports && exports[key] === _useSystemNotifications[key]) return;
52
+ Object.defineProperty(exports, key, {
53
+ enumerable: true,
54
+ get: function get() {
55
+ return _useSystemNotifications[key];
56
+ }
57
+ });
58
+ });
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_useNotificationApi","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useNotificationListController","_useNotifications","_useNotificationTarget","_useSystemNotifications"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/index.ts"],"mappings":";;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,8BAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,8BAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,8BAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,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