stream-chat-react 14.0.0-beta.6 → 14.0.0-beta.7

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 (191) hide show
  1. package/dist/cjs/{WithAudioPlayback.f9abf707.js → WithAudioPlayback.83ba0e35.js} +255 -153
  2. package/dist/cjs/WithAudioPlayback.83ba0e35.js.map +1 -0
  3. package/dist/cjs/emojis.js +5 -2
  4. package/dist/cjs/emojis.js.map +1 -1
  5. package/dist/cjs/index.js +1584 -1421
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/css/emoji-picker.css +11 -0
  8. package/dist/css/emoji-picker.css.map +1 -0
  9. package/dist/css/index.css +554 -345
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/es/{WithAudioPlayback.d90f1a99.mjs → WithAudioPlayback.21b7f35a.mjs} +405 -303
  12. package/dist/es/WithAudioPlayback.21b7f35a.mjs.map +1 -0
  13. package/dist/es/emojis.mjs +5 -2
  14. package/dist/es/emojis.mjs.map +1 -1
  15. package/dist/es/index.mjs +1665 -1502
  16. package/dist/es/index.mjs.map +1 -1
  17. package/dist/types/components/Attachment/Audio.d.ts.map +1 -1
  18. package/dist/types/components/Attachment/FileAttachment.d.ts.map +1 -1
  19. package/dist/types/components/Attachment/UnsupportedAttachment.d.ts +1 -1
  20. package/dist/types/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
  21. package/dist/types/components/Attachment/VoiceRecording.d.ts.map +1 -1
  22. package/dist/types/components/Attachment/components/FileSizeIndicator.d.ts +1 -2
  23. package/dist/types/components/Attachment/components/FileSizeIndicator.d.ts.map +1 -1
  24. package/dist/types/components/AudioPlayback/components/useInteractiveProgressBar.d.ts.map +1 -1
  25. package/dist/types/components/AudioPlayback/plugins/AudioPlayerNotificationsPlugin.d.ts +4 -4
  26. package/dist/types/components/AudioPlayback/plugins/AudioPlayerNotificationsPlugin.d.ts.map +1 -1
  27. package/dist/types/components/Badge/MediaBadge.d.ts +8 -0
  28. package/dist/types/components/Badge/MediaBadge.d.ts.map +1 -0
  29. package/dist/types/components/Channel/Channel.d.ts.map +1 -1
  30. package/dist/types/components/ChannelHeader/ChannelHeader.d.ts +0 -2
  31. package/dist/types/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
  32. package/dist/types/components/ChannelList/ChannelList.d.ts.map +1 -1
  33. package/dist/types/components/ChannelList/ChannelListHeader.d.ts +1 -5
  34. package/dist/types/components/ChannelList/ChannelListHeader.d.ts.map +1 -1
  35. package/dist/types/components/ChannelList/hooks/index.d.ts +0 -11
  36. package/dist/types/components/ChannelList/hooks/index.d.ts.map +1 -1
  37. package/dist/types/components/ChannelList/utils.d.ts +0 -9
  38. package/dist/types/components/ChannelList/utils.d.ts.map +1 -1
  39. package/dist/types/components/ChannelListItem/ChannelListItem.d.ts +0 -2
  40. package/dist/types/components/ChannelListItem/ChannelListItem.d.ts.map +1 -1
  41. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts.map +1 -1
  42. package/dist/types/components/Chat/Chat.d.ts +1 -5
  43. package/dist/types/components/Chat/Chat.d.ts.map +1 -1
  44. package/dist/types/components/Chat/hooks/useChat.d.ts +1 -10
  45. package/dist/types/components/Chat/hooks/useChat.d.ts.map +1 -1
  46. package/dist/types/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  47. package/dist/types/components/Chat/hooks/useReportLostConnectionSystemNotification.d.ts +6 -0
  48. package/dist/types/components/Chat/hooks/useReportLostConnectionSystemNotification.d.ts.map +1 -0
  49. package/dist/types/components/Chat/index.d.ts +1 -0
  50. package/dist/types/components/Chat/index.d.ts.map +1 -1
  51. package/dist/types/components/ChatView/ChatView.d.ts.map +1 -1
  52. package/dist/types/components/Dialog/components/ContextMenu.d.ts +1 -1
  53. package/dist/types/components/Dialog/components/ContextMenu.d.ts.map +1 -1
  54. package/dist/types/components/Dialog/hooks/useDialog.d.ts.map +1 -1
  55. package/dist/types/components/Dialog/service/DialogManager.d.ts +3 -2
  56. package/dist/types/components/Dialog/service/DialogManager.d.ts.map +1 -1
  57. package/dist/types/components/Icons/icons.d.ts +18 -6
  58. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  59. package/dist/types/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +0 -20
  60. package/dist/types/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
  61. package/dist/types/components/LoadMore/LoadMoreButton.d.ts +1 -6
  62. package/dist/types/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
  63. package/dist/types/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
  64. package/dist/types/components/Loading/UploadProgressIndicator.d.ts +5 -0
  65. package/dist/types/components/Loading/UploadProgressIndicator.d.ts.map +1 -0
  66. package/dist/types/components/Loading/UploadedSizeIndicator.d.ts +6 -0
  67. package/dist/types/components/Loading/UploadedSizeIndicator.d.ts.map +1 -0
  68. package/dist/types/components/Loading/index.d.ts +3 -0
  69. package/dist/types/components/Loading/index.d.ts.map +1 -1
  70. package/dist/types/components/Loading/progress-indicators.d.ts +7 -0
  71. package/dist/types/components/Loading/progress-indicators.d.ts.map +1 -0
  72. package/dist/types/components/Location/ShareLocationDialog.d.ts.map +1 -1
  73. package/dist/types/components/MediaRecorder/AudioRecorder/AudioRecorderRecordingControls.d.ts.map +1 -1
  74. package/dist/types/components/Message/Message.d.ts.map +1 -1
  75. package/dist/types/components/Message/MessageAlsoSentInChannelIndicator.d.ts.map +1 -1
  76. package/dist/types/components/Message/MessageUI.d.ts.map +1 -1
  77. package/dist/types/components/Message/hooks/useDeleteHandler.d.ts +1 -5
  78. package/dist/types/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
  79. package/dist/types/components/Message/hooks/useFlagHandler.d.ts +1 -6
  80. package/dist/types/components/Message/hooks/useFlagHandler.d.ts.map +1 -1
  81. package/dist/types/components/Message/hooks/useMarkUnreadHandler.d.ts +1 -6
  82. package/dist/types/components/Message/hooks/useMarkUnreadHandler.d.ts.map +1 -1
  83. package/dist/types/components/Message/hooks/useMuteHandler.d.ts +2 -7
  84. package/dist/types/components/Message/hooks/useMuteHandler.d.ts.map +1 -1
  85. package/dist/types/components/Message/hooks/usePinHandler.d.ts +1 -23
  86. package/dist/types/components/Message/hooks/usePinHandler.d.ts.map +1 -1
  87. package/dist/types/components/Message/hooks/useReactionsFetcher.d.ts +1 -6
  88. package/dist/types/components/Message/hooks/useReactionsFetcher.d.ts.map +1 -1
  89. package/dist/types/components/Message/hooks/useUserRole.d.ts +1 -1
  90. package/dist/types/components/Message/hooks/useUserRole.d.ts.map +1 -1
  91. package/dist/types/components/Message/types.d.ts +1 -23
  92. package/dist/types/components/Message/types.d.ts.map +1 -1
  93. package/dist/types/components/Message/utils.d.ts +1 -2
  94. package/dist/types/components/Message/utils.d.ts.map +1 -1
  95. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
  96. package/dist/types/components/MessageActions/RemindMeSubmenu.d.ts.map +1 -1
  97. package/dist/types/components/MessageComposer/AttachmentPreviewList/AttachmentUploadedSizeIndicator.d.ts +14 -0
  98. package/dist/types/components/MessageComposer/AttachmentPreviewList/AttachmentUploadedSizeIndicator.d.ts.map +1 -0
  99. package/dist/types/components/MessageComposer/AttachmentPreviewList/AudioAttachmentPreview.d.ts.map +1 -1
  100. package/dist/types/components/MessageComposer/AttachmentPreviewList/FileAttachmentPreview.d.ts.map +1 -1
  101. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  102. package/dist/types/components/MessageComposer/AttachmentPreviewList/UnsupportedAttachmentPreview.d.ts +1 -1
  103. package/dist/types/components/MessageComposer/AttachmentPreviewList/UnsupportedAttachmentPreview.d.ts.map +1 -1
  104. package/dist/types/components/MessageComposer/hooks/useSubmitHandler.d.ts.map +1 -1
  105. package/dist/types/components/MessageComposer/icons.d.ts +0 -1
  106. package/dist/types/components/MessageComposer/icons.d.ts.map +1 -1
  107. package/dist/types/components/MessageList/MessageList.d.ts +1 -1
  108. package/dist/types/components/MessageList/MessageList.d.ts.map +1 -1
  109. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
  110. package/dist/types/components/MessageList/index.d.ts +0 -1
  111. package/dist/types/components/MessageList/index.d.ts.map +1 -1
  112. package/dist/types/components/MessageList/utils.d.ts +0 -1
  113. package/dist/types/components/MessageList/utils.d.ts.map +1 -1
  114. package/dist/types/components/Notifications/NotificationList.d.ts.map +1 -1
  115. package/dist/types/components/Notifications/hooks/index.d.ts +2 -0
  116. package/dist/types/components/Notifications/hooks/index.d.ts.map +1 -1
  117. package/dist/types/components/Notifications/hooks/useNotificationApi.d.ts +63 -0
  118. package/dist/types/components/Notifications/hooks/useNotificationApi.d.ts.map +1 -0
  119. package/dist/types/components/Notifications/hooks/useSystemNotifications.d.ts +14 -0
  120. package/dist/types/components/Notifications/hooks/useSystemNotifications.d.ts.map +1 -0
  121. package/dist/types/components/Notifications/notificationTarget.d.ts +1 -0
  122. package/dist/types/components/Notifications/notificationTarget.d.ts.map +1 -1
  123. package/dist/types/components/Poll/PollActions/EndPollAlert.d.ts.map +1 -1
  124. package/dist/types/components/ReactFileUtilities/UploadButton.d.ts +3 -11
  125. package/dist/types/components/ReactFileUtilities/UploadButton.d.ts.map +1 -1
  126. package/dist/types/components/Reactions/MessageReactions.d.ts.map +1 -1
  127. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts +12 -2
  128. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts.map +1 -1
  129. package/dist/types/components/Reactions/ReactionSelector.d.ts +3 -0
  130. package/dist/types/components/Reactions/ReactionSelector.d.ts.map +1 -1
  131. package/dist/types/components/Reactions/hooks/useFetchReactions.d.ts.map +1 -1
  132. package/dist/types/components/Reactions/index.d.ts +0 -1
  133. package/dist/types/components/Reactions/index.d.ts.map +1 -1
  134. package/dist/types/components/SummarizedMessagePreview/SummarizedMessagePreview.d.ts.map +1 -1
  135. package/dist/types/components/SummarizedMessagePreview/hooks/useLatestMessagePreview.d.ts +1 -1
  136. package/dist/types/components/SummarizedMessagePreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
  137. package/dist/types/components/Thread/ThreadHeader.d.ts +0 -2
  138. package/dist/types/components/Thread/ThreadHeader.d.ts.map +1 -1
  139. package/dist/types/components/Threads/ThreadList/ThreadList.d.ts.map +1 -1
  140. package/dist/types/components/Threads/ThreadList/ThreadListHeader.d.ts +1 -5
  141. package/dist/types/components/Threads/ThreadList/ThreadListHeader.d.ts.map +1 -1
  142. package/dist/types/components/Threads/ThreadList/ThreadListItemUI.d.ts.map +1 -1
  143. package/dist/types/components/index.d.ts +2 -2
  144. package/dist/types/components/index.d.ts.map +1 -1
  145. package/dist/types/context/ChatContext.d.ts +0 -3
  146. package/dist/types/context/ChatContext.d.ts.map +1 -1
  147. package/dist/types/context/ComponentContext.d.ts +18 -2
  148. package/dist/types/context/ComponentContext.d.ts.map +1 -1
  149. package/dist/types/context/MessageContext.d.ts +0 -3
  150. package/dist/types/context/MessageContext.d.ts.map +1 -1
  151. package/dist/types/i18n/Streami18n.d.ts +21 -11
  152. package/dist/types/i18n/Streami18n.d.ts.map +1 -1
  153. package/dist/types/plugins/Emojis/EmojiPicker.d.ts +0 -6
  154. package/dist/types/plugins/Emojis/EmojiPicker.d.ts.map +1 -1
  155. package/dist/types/types/types.d.ts +0 -5
  156. package/dist/types/types/types.d.ts.map +1 -1
  157. package/package.json +4 -4
  158. package/dist/cjs/WithAudioPlayback.f9abf707.js.map +0 -1
  159. package/dist/es/WithAudioPlayback.d90f1a99.mjs.map +0 -1
  160. package/dist/types/components/Button/ToggleSidebarButton.d.ts +0 -10
  161. package/dist/types/components/Button/ToggleSidebarButton.d.ts.map +0 -1
  162. package/dist/types/components/ChannelHeader/hooks/useIsMobileViewport.d.ts +0 -3
  163. package/dist/types/components/ChannelHeader/hooks/useIsMobileViewport.d.ts.map +0 -1
  164. package/dist/types/components/ChannelList/hooks/useChannelDeletedListener.d.ts +0 -3
  165. package/dist/types/components/ChannelList/hooks/useChannelDeletedListener.d.ts.map +0 -1
  166. package/dist/types/components/ChannelList/hooks/useChannelHiddenListener.d.ts +0 -3
  167. package/dist/types/components/ChannelList/hooks/useChannelHiddenListener.d.ts.map +0 -1
  168. package/dist/types/components/ChannelList/hooks/useChannelTruncatedListener.d.ts +0 -3
  169. package/dist/types/components/ChannelList/hooks/useChannelTruncatedListener.d.ts.map +0 -1
  170. package/dist/types/components/ChannelList/hooks/useChannelUpdatedListener.d.ts +0 -3
  171. package/dist/types/components/ChannelList/hooks/useChannelUpdatedListener.d.ts.map +0 -1
  172. package/dist/types/components/ChannelList/hooks/useChannelVisibleListener.d.ts +0 -3
  173. package/dist/types/components/ChannelList/hooks/useChannelVisibleListener.d.ts.map +0 -1
  174. package/dist/types/components/ChannelList/hooks/useMessageNewListener.d.ts +0 -3
  175. package/dist/types/components/ChannelList/hooks/useMessageNewListener.d.ts.map +0 -1
  176. package/dist/types/components/ChannelList/hooks/useMobileNavigation.d.ts +0 -2
  177. package/dist/types/components/ChannelList/hooks/useMobileNavigation.d.ts.map +0 -1
  178. package/dist/types/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts +0 -3
  179. package/dist/types/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts.map +0 -1
  180. package/dist/types/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts +0 -3
  181. package/dist/types/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts.map +0 -1
  182. package/dist/types/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts +0 -3
  183. package/dist/types/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts.map +0 -1
  184. package/dist/types/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts +0 -3
  185. package/dist/types/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts.map +0 -1
  186. package/dist/types/components/MessageList/ConnectionStatus.d.ts +0 -3
  187. package/dist/types/components/MessageList/ConnectionStatus.d.ts.map +0 -1
  188. package/dist/types/components/Reactions/StreamEmoji.d.ts +0 -19
  189. package/dist/types/components/Reactions/StreamEmoji.d.ts.map +0 -1
  190. package/dist/types/utils/deprecationWarning.d.ts +0 -2
  191. package/dist/types/utils/deprecationWarning.d.ts.map +0 -1
@@ -2,4 +2,7 @@ export * from './LoadingChannel';
2
2
  export * from './LoadingChannels';
3
3
  export * from './LoadingErrorIndicator';
4
4
  export * from './LoadingIndicator';
5
+ export * from './progress-indicators';
6
+ export * from './UploadProgressIndicator';
7
+ export * from './UploadedSizeIndicator';
5
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type ProgressIndicatorProps = {
2
+ /** Clamped 0–100 completion. */
3
+ percent: number;
4
+ };
5
+ /** Circular progress indicator with input from 0 to 100. */
6
+ export declare const CircularProgressIndicator: ({ percent }: ProgressIndicatorProps) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=progress-indicators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicators.d.ts","sourceRoot":"","sources":["../../../../src/components/Loading/progress-indicators.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,sBAAsB,GAAG;IACnC,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAKF,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB,gBAAiB,sBAAsB,4CA0C5E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ShareLocationDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/Location/ShareLocationDialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,KAAK,aAAa,EAKnB,MAAM,OAAO,CAAC;AAYf,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAY1C,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG;IACvD,eAAe,EAAE,OAAO,CAAC;IACzB,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACzD,qBAAqB,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;CACnE,CAAC;AAqBF,eAAO,MAAM,mBAAmB,+CAI7B,wBAAwB,4CA4N1B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC"}
1
+ {"version":3,"file":"ShareLocationDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/Location/ShareLocationDialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,KAAK,aAAa,EAKnB,MAAM,OAAO,CAAC;AAYf,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAY1C,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG;IACvD,eAAe,EAAE,OAAO,CAAC;IACzB,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACzD,qBAAqB,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;CACnE,CAAC;AAqBF,eAAO,MAAM,mBAAmB,+CAI7B,wBAAwB,4CAuN1B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AudioRecorderRecordingControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/MediaRecorder/AudioRecorder/AudioRecorderRecordingControls.tsx"],"names":[],"mappings":"AAiCA,eAAO,MAAM,8BAA8B,sDAoD1C,CAAC"}
1
+ {"version":3,"file":"AudioRecorderRecordingControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/MediaRecorder/AudioRecorder/AudioRecorderRecordingControls.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,8BAA8B,sDAqD1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA4J5C;;;GAGG;AACH,eAAO,MAAM,OAAO,UAAW,YAAY,4CAmI1C,CAAC"}
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA2J5C;;;GAGG;AACH,eAAO,MAAM,OAAO,UAAW,YAAY,4CAmF1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageAlsoSentInChannelIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageAlsoSentInChannelIndicator.tsx"],"names":[],"mappings":"AAaA;;GAEG;AACH,eAAO,MAAM,iCAAiC,sDA0F7C,CAAC"}
1
+ {"version":3,"file":"MessageAlsoSentInChannelIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageAlsoSentInChannelIndicator.tsx"],"names":[],"mappings":"AAYA;;GAEG;AACH,eAAO,MAAM,iCAAiC,sDAqF7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageUI.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageUI.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAgOvD;;GAEG;AACH,eAAO,MAAM,SAAS,UAAW,uBAAuB,4CAIvD,CAAC"}
1
+ {"version":3,"file":"MessageUI.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageUI.tsx"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAiOvD;;GAEG;AACH,eAAO,MAAM,SAAS,UAAW,uBAAuB,4CAIvD,CAAC"}
@@ -1,8 +1,4 @@
1
1
  import type { LocalMessage } from 'stream-chat';
2
2
  import type { MessageContextValue } from '../../../context';
3
- export type DeleteMessageNotifications = {
4
- getErrorNotification?: (message: LocalMessage) => string;
5
- notify?: (notificationText: string, type: 'success' | 'error') => void;
6
- };
7
- export declare const useDeleteHandler: (message?: LocalMessage, notifications?: DeleteMessageNotifications) => MessageContextValue['handleDelete'];
3
+ export declare const useDeleteHandler: (message?: LocalMessage) => MessageContextValue['handleDelete'];
8
4
  //# sourceMappingURL=useDeleteHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDeleteHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useDeleteHandler.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,0BAA0B,GAAG;IACvC,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IACzD,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;CACxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACjB,YAAY,kBACP,0BAA0B,KACxC,mBAAmB,CAAC,cAAc,CAiCpC,CAAC"}
1
+ {"version":3,"file":"useDeleteHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useDeleteHandler.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,aACjB,YAAY,KACrB,mBAAmB,CAAC,cAAc,CAsBpC,CAAC"}
@@ -1,10 +1,5 @@
1
1
  import type { LocalMessage } from 'stream-chat';
2
2
  import type { ReactEventHandler } from '../types';
3
3
  export declare const missingUseFlagHandlerParameterWarning = "useFlagHandler was called but it is missing one or more necessary parameters.";
4
- export type FlagMessageNotifications = {
5
- getErrorNotification?: (message: LocalMessage) => string;
6
- getSuccessNotification?: (message: LocalMessage) => string;
7
- notify?: (notificationText: string, type: 'success' | 'error') => void;
8
- };
9
- export declare const useFlagHandler: (message?: LocalMessage, notifications?: FlagMessageNotifications) => ReactEventHandler;
4
+ export declare const useFlagHandler: (message?: LocalMessage) => ReactEventHandler;
10
5
  //# sourceMappingURL=useFlagHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFlagHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useFlagHandler.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,qCAAqC,kFAC+B,CAAC;AAElF,MAAM,MAAM,wBAAwB,GAAG;IACrC,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IACzD,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IAC3D,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;CACxE,CAAC;AAEF,eAAO,MAAM,cAAc,aACf,YAAY,kBACP,wBAAwB,KACtC,iBAiCF,CAAC"}
1
+ {"version":3,"file":"useFlagHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useFlagHandler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,qCAAqC,kFAC+B,CAAC;AAElF,eAAO,MAAM,cAAc,aAAc,YAAY,KAAG,iBAcvD,CAAC"}
@@ -1,9 +1,4 @@
1
1
  import type { LocalMessage } from 'stream-chat';
2
2
  import type { ReactEventHandler } from '../types';
3
- export type MarkUnreadHandlerNotifications = {
4
- getErrorNotification?: (message: LocalMessage) => string;
5
- getSuccessNotification?: (message: LocalMessage) => string;
6
- notify?: (notificationText: string, type: 'success' | 'error') => void;
7
- };
8
- export declare const useMarkUnreadHandler: (message?: LocalMessage, notifications?: MarkUnreadHandlerNotifications) => ReactEventHandler;
3
+ export declare const useMarkUnreadHandler: (message?: LocalMessage) => ReactEventHandler;
9
4
  //# sourceMappingURL=useMarkUnreadHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMarkUnreadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMarkUnreadHandler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IACzD,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IAC3D,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;CACxE,CAAC;AAEF,eAAO,MAAM,oBAAoB,aACrB,YAAY,kBACP,8BAA8B,KAC5C,iBAkCF,CAAC"}
1
+ {"version":3,"file":"useMarkUnreadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMarkUnreadHandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,oBAAoB,aAAc,YAAY,KAAG,iBAY7D,CAAC"}
@@ -1,10 +1,5 @@
1
- import type { LocalMessage, UserResponse } from 'stream-chat';
1
+ import type { LocalMessage } from 'stream-chat';
2
2
  import type { ReactEventHandler } from '../types';
3
3
  export declare const missingUseMuteHandlerParamsWarning = "useMuteHandler was called but it is missing one or more necessary parameter.";
4
- export type MuteUserNotifications = {
5
- getErrorNotification?: (user: UserResponse) => string;
6
- getSuccessNotification?: (user: UserResponse) => string;
7
- notify?: (notificationText: string, type: 'success' | 'error') => void;
8
- };
9
- export declare const useMuteHandler: (message?: LocalMessage, notifications?: MuteUserNotifications) => ReactEventHandler;
4
+ export declare const useMuteHandler: (message?: LocalMessage) => ReactEventHandler;
10
5
  //# sourceMappingURL=useMuteHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMuteHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMuteHandler.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,kCAAkC,iFACiC,CAAC;AAEjF,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAC;IACtD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;CACxE,CAAC;AAEF,eAAO,MAAM,cAAc,aACf,YAAY,kBACP,qBAAqB,KACnC,iBAiEF,CAAC"}
1
+ {"version":3,"file":"useMuteHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMuteHandler.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,kCAAkC,iFACiC,CAAC;AAEjF,eAAO,MAAM,cAAc,aAAc,YAAY,KAAG,iBAmBvD,CAAC"}
@@ -1,28 +1,6 @@
1
1
  import type { LocalMessage } from 'stream-chat';
2
2
  import type { ReactEventHandler } from '../types';
3
- export type PinEnabledUserRoles<T extends string = string> = Partial<Record<T, boolean>> & {
4
- admin?: boolean;
5
- anonymous?: boolean;
6
- channel_member?: boolean;
7
- channel_moderator?: boolean;
8
- guest?: boolean;
9
- member?: boolean;
10
- moderator?: boolean;
11
- owner?: boolean;
12
- user?: boolean;
13
- };
14
- export type PinPermissions<T extends string = string, U extends string = string> = Partial<Record<T, PinEnabledUserRoles<U>>> & {
15
- commerce?: PinEnabledUserRoles<U>;
16
- gaming?: PinEnabledUserRoles<U>;
17
- livestream?: PinEnabledUserRoles<U>;
18
- messaging?: PinEnabledUserRoles<U>;
19
- team?: PinEnabledUserRoles<U>;
20
- };
21
- export type PinMessageNotifications = {
22
- getErrorNotification?: (message: LocalMessage) => string;
23
- notify?: (notificationText: string, type: 'success' | 'error') => void;
24
- };
25
- export declare const usePinHandler: (message: LocalMessage, _permissions?: PinPermissions, notifications?: PinMessageNotifications) => {
3
+ export declare const usePinHandler: (message: LocalMessage) => {
26
4
  canPin: boolean;
27
5
  handlePin: ReactEventHandler;
28
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"usePinHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/usePinHandler.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,OAAO,CAClE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CACnB,GAAG;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAGF,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,CAAC,SAAS,MAAM,GAAG,MAAM,IACvB,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;IAC/C,QAAQ,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACnC,IAAI,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IACzD,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;CACxE,CAAC;AAEF,eAAO,MAAM,aAAa,YACf,YAAY,iBAEP,cAAc,kBACb,uBAAuB;;;CA2DvC,CAAC"}
1
+ {"version":3,"file":"usePinHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/usePinHandler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,aAAa,YAAa,YAAY;;;CA+ClD,CAAC"}
@@ -1,9 +1,4 @@
1
1
  import type { LocalMessage, ReactionResponse, ReactionSort } from 'stream-chat';
2
2
  export declare const MAX_MESSAGE_REACTIONS_TO_FETCH = 1000;
3
- type FetchMessageReactionsNotifications = {
4
- getErrorNotification?: (message: LocalMessage) => string;
5
- notify?: (notificationText: string, type: 'success' | 'error') => void;
6
- };
7
- export declare function useReactionsFetcher(message: LocalMessage, notifications?: FetchMessageReactionsNotifications): import("../../../utils/useStableCallback").StableCallback<[reactionType?: string | undefined, sort?: ReactionSort | undefined], Promise<ReactionResponse[]>>;
8
- export {};
3
+ export declare function useReactionsFetcher(message: LocalMessage): import("../../../utils/useStableCallback").StableCallback<[reactionType?: string | undefined, sort?: ReactionSort | undefined], Promise<ReactionResponse[]>>;
9
4
  //# sourceMappingURL=useReactionsFetcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useReactionsFetcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useReactionsFetcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,KAAK,kCAAkC,GAAG;IACxC,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IACzD,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;CACxE,CAAC;AAEF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,YAAY,EACrB,aAAa,GAAE,kCAAuC,gKAevD"}
1
+ {"version":3,"file":"useReactionsFetcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useReactionsFetcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,gKAMxD"}
@@ -1,5 +1,5 @@
1
1
  import type { LocalMessage } from 'stream-chat';
2
- export declare const useUserRole: (message: LocalMessage, onlySenderCanEdit?: boolean, disableQuotedMessages?: boolean) => {
2
+ export declare const useUserRole: (message: LocalMessage, disableQuotedMessages?: boolean) => {
3
3
  canBlockUser: boolean;
4
4
  canDelete: boolean;
5
5
  canEdit: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useUserRole.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useUserRole.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,WAAW,YACb,YAAY,sBACD,OAAO,0BACH,OAAO;;;;;;;;;;;;;;;CAkEhC,CAAC"}
1
+ {"version":3,"file":"useUserRole.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useUserRole.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,WAAW,YAAa,YAAY,0BAA0B,OAAO;;;;;;;;;;;;;;;CAiEjF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { LocalMessage, ReactionSort, UserResponse } from 'stream-chat';
3
- import type { PinPermissions, UserEventHandler } from './hooks';
3
+ import type { UserEventHandler } from './hooks';
4
4
  import type { MessageActionsArray } from './utils';
5
5
  import type { GroupStyle } from '../MessageList/utils';
6
6
  import type { MessageComposerProps } from '../MessageComposer';
@@ -25,24 +25,6 @@ export type MessageProps = {
25
25
  disableQuotedMessages?: boolean;
26
26
  /** Override the default formatting of the date. This is a function that has access to the original date object, returns a string */
27
27
  formatDate?: (date: Date) => string;
28
- /** Function that returns the notification text to be displayed when a delete message request fails */
29
- getDeleteMessageErrorNotification?: (message: LocalMessage) => string;
30
- /** Function that returns the notification text to be displayed when loading message reactions fails */
31
- getFetchReactionsErrorNotification?: (message: LocalMessage) => string;
32
- /** Function that returns the notification text to be displayed when a flag message request fails */
33
- getFlagMessageErrorNotification?: (message: LocalMessage) => string;
34
- /** Function that returns the notification text to be displayed when a flag message request succeeds */
35
- getFlagMessageSuccessNotification?: (message: LocalMessage) => string;
36
- /** Function that returns the notification text to be displayed when mark channel messages unread request fails */
37
- getMarkMessageUnreadErrorNotification?: (message: LocalMessage) => string;
38
- /** Function that returns the notification text to be displayed when mark channel messages unread request succeeds */
39
- getMarkMessageUnreadSuccessNotification?: (message: LocalMessage) => string;
40
- /** Function that returns the notification text to be displayed when a mute user request fails */
41
- getMuteUserErrorNotification?: (user: UserResponse) => string;
42
- /** Function that returns the notification text to be displayed when a mute user request succeeds */
43
- getMuteUserSuccessNotification?: (user: UserResponse) => string;
44
- /** Function that returns the notification text to be displayed when a pin message request fails */
45
- getPinMessageErrorNotification?: (message: LocalMessage) => string;
46
28
  /** A list of styles to apply to this message, i.e. top, bottom, single */
47
29
  groupStyles?: GroupStyle[];
48
30
  /** Whether to highlight and focus the message on load */
@@ -59,8 +41,6 @@ export type MessageProps = {
59
41
  messageActions?: MessageActionsArray;
60
42
  /** DOMRect object for parent MessageList component */
61
43
  messageListRect?: DOMRect;
62
- /** If true, only the sender of the message has editing privileges */
63
- onlySenderCanEdit?: boolean;
64
44
  /** Custom mention click handler to override default in [ChannelActionContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_action_context/) */
65
45
  onMentionsClick?: ChannelActionContextValue['onMentionsClick'];
66
46
  /** Custom mention hover handler to override default in [ChannelActionContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_action_context/) */
@@ -71,8 +51,6 @@ export type MessageProps = {
71
51
  onUserHover?: UserEventHandler;
72
52
  /** Custom open thread handler to override default in [ChannelActionContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_action_context/) */
73
53
  openThread?: ChannelActionContextValue['openThread'];
74
- /** @deprecated in favor of `channelCapabilities - The user roles allowed to pin messages in various channel types */
75
- pinPermissions?: PinPermissions;
76
54
  /** Sort options to provide to a reactions query */
77
55
  reactionDetailsSort?: ReactionSort;
78
56
  /** A list of users that have read this Message if the message is the last one and was posted by my user */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1F,MAAM,MAAM,YAAY,GAAG;IACzB,yBAAyB;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,8KAA8K;IAC9K,8BAA8B,CAAC,EAAE,oBAAoB,CAAC;IACtD,kMAAkM;IAClM,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,gGAAgG;IAChG,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,oFAAoF;IACpF,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,mFAAmF;IACnF,qBAAqB,CAAC,EAA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AAkB,CAAC,CAAC;IACjE,kJAAkJ;IAClJ,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import type { TFunction } from 'i18next';
2
2
  import type { ChannelConfigWithInfo, LocalMessage, MessageResponse, Mute, StreamChat, UserResponse } from 'stream-chat';
3
- import type { PinPermissions } from './hooks';
4
3
  import type { MessageProps } from './types';
5
4
  import type { MessageContextValue } from '../../context';
6
5
  /**
@@ -29,7 +28,6 @@ export declare const MESSAGE_ACTIONS: {
29
28
  saveForLater: string;
30
29
  };
31
30
  export type MessageActionsArray<T extends string = string> = Array<keyof typeof MESSAGE_ACTIONS | keyof typeof OPTIONAL_MESSAGE_ACTIONS | T>;
32
- export declare const defaultPinPermissions: PinPermissions;
33
31
  export type Capabilities = {
34
32
  canDelete?: boolean;
35
33
  canEdit?: boolean;
@@ -56,6 +54,7 @@ export declare const areMessageUIPropsEqual: (prevProps: MessageContextValue & {
56
54
  showDetailedReactions?: boolean;
57
55
  }) => boolean;
58
56
  export declare const messageHasReactions: (message?: LocalMessage) => boolean;
57
+ export declare const messageHasQuotedMessage: (message?: LocalMessage) => boolean;
59
58
  export declare const messageHasAttachments: (message?: LocalMessage) => boolean;
60
59
  export declare const messageHasSingleAttachment: (message?: LocalMessage) => boolean;
61
60
  export declare const messageHasGiphyAttachment: (message?: LocalMessage) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/utils.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,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GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,qBAAsD,CAAC;AAEvF,eAAO,MAAM,oBAAoB,UACxB,YAAY,EAAE,KAClB,SAAS,UACJ,UAAU,yBACK,qBAAqB,WAmD7C,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,WAGxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,YAAa,YAAY,YAO7D,CAAC;AAEF,eAAO,MAAM,uBAAuB,YAAa,YAAY,YACC,CAAC;AAE/D,eAAO,MAAM,oBAAoB,YAAa,KAAK,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC,YACxB,CAAC;AAE7D,eAAO,MAAM,gBAAgB,YAClB,KAAK,YAAY,EAAE,MAAM,GAAG,YAAY,GAAG,oBAAoB,CAAC,YAI/B,CAAC;AAE7C,eAAO,MAAM,gBAAgB,YAClB,KAAK,YAAY,EAAE,MAAM,GAAG,YAAY,GAAG,oBAAoB,CAAC,YAI/B,CAAC;AAE7C,eAAO,MAAM,eAAe,YAAa,KAAK,YAAY,EAAE,yBAAyB,CAAC,YACnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageActions.defaults.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageActions/MessageActions.defaults.tsx"],"names":[],"mappings":"AA8CA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAkY7E,eAAO,MAAM,uBAAuB,EAAE,oBAAoB,EAgFhD,CAAC"}
1
+ {"version":3,"file":"MessageActions.defaults.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageActions/MessageActions.defaults.tsx"],"names":[],"mappings":"AA8CA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAykB7E,eAAO,MAAM,uBAAuB,EAAE,oBAAoB,EAgFhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RemindMeSubmenu.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageActions/RemindMeSubmenu.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,qBAAqB,+CAWjC,CAAC;AAEF,eAAO,MAAM,eAAe,+CA6B3B,CAAC"}
1
+ {"version":3,"file":"RemindMeSubmenu.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageActions/RemindMeSubmenu.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,qBAAqB,+CAWjC,CAAC;AAEF,eAAO,MAAM,eAAe,+CAqD3B,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type AttachmentUploadedSizeIndicatorProps = {
2
+ attachment: {
3
+ file_size?: number | string;
4
+ localMetadata?: {
5
+ file?: {
6
+ size?: unknown;
7
+ };
8
+ uploadProgress?: number;
9
+ uploadState?: string;
10
+ } | null;
11
+ };
12
+ };
13
+ export declare const AttachmentUploadedSizeIndicator: ({ attachment, }: AttachmentUploadedSizeIndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ //# sourceMappingURL=AttachmentUploadedSizeIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentUploadedSizeIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/AttachmentUploadedSizeIndicator.tsx"],"names":[],"mappings":"AAuBA,MAAM,MAAM,oCAAoC,GAAG;IACjD,UAAU,EAAE;QACV,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,aAAa,CAAC,EAAE;YACd,IAAI,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,OAAO,CAAA;aAAE,CAAC;YAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;YACxB,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,GAAG,IAAI,CAAC;KACV,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,+BAA+B,oBAEzC,oCAAoC,mDAqBtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AudioAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/AudioAttachmentPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EACnC,MAAM,aAAa,CAAC;AAmBrB,MAAM,MAAM,2BAA2B,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACnF,4BAA4B,CACxB,oBAAoB,CAAC,mBAAmB,CAAC,GACzC,6BAA6B,CAAC,mBAAmB,CAAC,CACrD,CAAC;AAUJ,eAAO,MAAM,sBAAsB,oDAIhC,2BAA2B,4CA+H7B,CAAC"}
1
+ {"version":3,"file":"AudioAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/AudioAttachmentPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EACnC,MAAM,aAAa,CAAC;AAmBrB,MAAM,MAAM,2BAA2B,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACnF,4BAA4B,CACxB,oBAAoB,CAAC,mBAAmB,CAAC,GACzC,6BAA6B,CAAC,mBAAmB,CAAC,CACrD,CAAC;AAUJ,eAAO,MAAM,sBAAsB,oDAIhC,2BAA2B,4CAiI7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FileAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/FileAttachmentPreview.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAM5D,MAAM,MAAM,0BAA0B,CAAC,mBAAmB,GAAG,OAAO,IAClE,4BAA4B,CAC1B,mBAAmB,CAAC,mBAAmB,CAAC,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CACrF,CAAC;AAEJ,eAAO,MAAM,qBAAqB,oDAI/B,0BAA0B,4CAmE5B,CAAC"}
1
+ {"version":3,"file":"FileAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/FileAttachmentPreview.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAK5D,MAAM,MAAM,0BAA0B,CAAC,mBAAmB,GAAG,OAAO,IAClE,4BAA4B,CAC1B,mBAAmB,CAAC,mBAAmB,CAAC,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CACrF,CAAC;AAEJ,eAAO,MAAM,qBAAqB,oDAI/B,0BAA0B,4CAqE5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MediaAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,aAAa,CAAC;AAiBrB,MAAM,MAAM,2BAA2B,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACnF,4BAA4B,CAC1B,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CACtF,GAAG;IACF,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEJ,eAAO,MAAM,sBAAsB,iEAKhC,2BAA2B,4CAqG7B,CAAC"}
1
+ {"version":3,"file":"MediaAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,aAAa,CAAC;AAkBrB,MAAM,MAAM,2BAA2B,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACnF,4BAA4B,CAC1B,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CACtF,GAAG;IACF,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEJ,eAAO,MAAM,sBAAsB,iEAKhC,2BAA2B,4CAkG7B,CAAC"}
@@ -4,5 +4,5 @@ export type UnsupportedAttachmentPreviewProps<CustomLocalMetadata = Record<strin
4
4
  handleRetry: (attachment: LocalUploadAttachment) => void | Promise<LocalUploadAttachment | undefined>;
5
5
  removeAttachments: (ids: string[]) => void;
6
6
  };
7
- export declare const UnsupportedAttachmentPreview: ({ attachment, handleRetry, removeAttachments, }: UnsupportedAttachmentPreviewProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const UnsupportedAttachmentPreview: ({ attachment, removeAttachments, }: UnsupportedAttachmentPreviewProps) => import("react/jsx-runtime").JSX.Element;
8
8
  //# sourceMappingURL=UnsupportedAttachmentPreview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnsupportedAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/UnsupportedAttachmentPreview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAI7E,MAAM,MAAM,iCAAiC,CAC3C,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAC3C;IACF,UAAU,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IACpD,WAAW,EAAE,CACX,UAAU,EAAE,qBAAqB,KAC9B,IAAI,GAAG,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC;IACvD,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,4BAA4B,oDAItC,iCAAiC,4CAMnC,CAAC"}
1
+ {"version":3,"file":"UnsupportedAttachmentPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/AttachmentPreviewList/UnsupportedAttachmentPreview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAK7E,MAAM,MAAM,iCAAiC,CAC3C,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAC3C;IACF,UAAU,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IACpD,WAAW,EAAE,CACX,UAAU,EAAE,qBAAqB,KAC9B,IAAI,GAAG,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC;IACvD,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,4BAA4B,uCAGtC,iCAAiC,4CA0BnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSubmitHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/hooks/useSubmitHandler.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAqB/D,eAAO,MAAM,gBAAgB,UAAW,oBAAoB;2BAUzC,MAAM,kBAAkB;CA4D1C,CAAC"}
1
+ {"version":3,"file":"useSubmitHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/hooks/useSubmitHandler.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAqB/D,eAAO,MAAM,gBAAgB,UAAW,oBAAoB;2BASzC,MAAM,kBAAkB;CA6E1C,CAAC"}
@@ -1,4 +1,3 @@
1
- export declare const LoadingIndicatorIcon: () => import("react/jsx-runtime").JSX.Element;
2
1
  export declare const UploadIcon: () => import("react/jsx-runtime").JSX.Element;
3
2
  export declare const BinIcon: () => import("react/jsx-runtime").JSX.Element;
4
3
  export declare const PauseIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageComposer/icons.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,+CA8BhC,CAAC;AAEF,eAAO,MAAM,UAAU,+CAyBtB,CAAC;AAEF,eAAO,MAAM,OAAO,+CAInB,CAAC;AAEF,eAAO,MAAM,SAAS,+CASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,+CASpB,CAAC;AAEF,eAAO,MAAM,aAAa,+CAIzB,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageComposer/icons.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,+CAyBtB,CAAC;AAEF,eAAO,MAAM,OAAO,+CAInB,CAAC;AAEF,eAAO,MAAM,SAAS,+CASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,+CASpB,CAAC;AAEF,eAAO,MAAM,aAAa,+CAIzB,CAAC"}
@@ -5,7 +5,7 @@ import type { MessageRenderer } from './renderMessages';
5
5
  import type { LocalMessage } from 'stream-chat';
6
6
  import type { GroupStyle, ProcessMessagesParams, RenderedMessage } from './utils';
7
7
  import type { MessageProps } from '../Message/types';
8
- type PropsDrilledToMessage = 'additionalMessageComposerProps' | 'closeReactionSelectorOnClick' | 'disableQuotedMessages' | 'formatDate' | 'getDeleteMessageErrorNotification' | 'getFlagMessageErrorNotification' | 'getFlagMessageSuccessNotification' | 'getMarkMessageUnreadErrorNotification' | 'getMarkMessageUnreadSuccessNotification' | 'getMuteUserErrorNotification' | 'getMuteUserSuccessNotification' | 'getPinMessageErrorNotification' | 'Message' | 'messageActions' | 'onlySenderCanEdit' | 'onMentionsClick' | 'onMentionsHover' | 'onUserClick' | 'onUserHover' | 'openThread' | 'pinPermissions' | 'reactionDetailsSort' | 'renderText' | 'retrySendMessage' | 'showAvatar' | 'sortReactions' | 'unsafeHTML';
8
+ type PropsDrilledToMessage = 'additionalMessageComposerProps' | 'closeReactionSelectorOnClick' | 'disableQuotedMessages' | 'formatDate' | 'Message' | 'messageActions' | 'onMentionsClick' | 'onMentionsHover' | 'onUserClick' | 'onUserHover' | 'openThread' | 'reactionDetailsSort' | 'renderText' | 'retrySendMessage' | 'showAvatar' | 'sortReactions' | 'unsafeHTML';
9
9
  export type MessageListProps = Partial<Pick<MessageProps, PropsDrilledToMessage>> & {
10
10
  /** Disables the injection of date separator components in MessageList, defaults to `false` */
11
11
  disableDateSeparator?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAUpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAQrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAobrD,KAAK,qBAAqB,GACtB,gCAAgC,GAChC,8BAA8B,GAC9B,uBAAuB,GACvB,YAAY,GACZ,mCA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AkC,CAAC,EAAE,OAAO,CAAC;IAC7C,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4LAA4L;IAC5L,QAAQ,CAAC,EAAE,yBAAyB,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,6LAA6L;IAC7L,aAAa,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACnF,8GAA8G;IAC9G,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yKAAyK;IACzK,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,qDAAqD;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qDAAqD;IACrD,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,qHAAqH;IACrH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;IACzE;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,4CAoBlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollLocationLogic.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageList/hooks/MessageList/useScrollLocationLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,4BAA4B,GAAG;IACzC,yEAAyE;IACzE,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wFAAwF;IACxF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAC;IACtB,iDAAiD;IACjD,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,6EAA6E;IAC7E,uBAAuB,EAAE,MAAM,CAAC;IAChC,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4CAA4C;IAC5C,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,WAAY,4BAA4B;;;sBAiW/D,aAAa,CAAC,cAAc,CAAC;+BAnK1B,eAAe;;CAwM7B,CAAC"}
1
+ {"version":3,"file":"useScrollLocationLogic.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageList/hooks/MessageList/useScrollLocationLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,4BAA4B,GAAG;IACzC,yEAAyE;IACzE,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wFAAwF;IACxF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAC;IACtB,iDAAiD;IACjD,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,6EAA6E;IAC7E,uBAAuB,EAAE,MAAM,CAAC;IAChC,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4CAA4C;IAC5C,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,WAAY,4BAA4B;;;sBA0X/D,aAAa,CAAC,cAAc,CAAC;+BA1L1B,eAAe;;CA+N7B,CAAC"}
@@ -1,4 +1,3 @@
1
- export * from './ConnectionStatus';
2
1
  export * from './GiphyPreviewMessage';
3
2
  export * from './MessageList';
4
3
  export * from './NewMessageNotification';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
@@ -66,7 +66,6 @@ export declare const insertIntro: (messages: RenderedMessage[], headerPosition?:
66
66
  export type GroupStyle = '' | 'middle' | 'top' | 'bottom' | 'single';
67
67
  export declare const getGroupStyles: (message: RenderedMessage, previousMessage: RenderedMessage, nextMessage: RenderedMessage, noGroupByUser: boolean, maxTimeBetweenGroupedMessages?: number) => GroupStyle;
68
68
  export declare const hasMoreMessagesProbably: (returnedCountMessages: number, limit: number) => boolean;
69
- export declare const hasNotMoreMessages: (returnedCountMessages: number, limit: number) => boolean;
70
69
  export declare function isIntroMessage(message: unknown): message is IntroMessage;
71
70
  export declare function isDateSeparatorMessage(message: unknown): message is DateSeparatorMessage;
72
71
  export declare function isLocalMessage(message: unknown): message is LocalMessage;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/utils.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,OAAO,mBAAmB,CAAC,KAAK,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,OAAO,mBAAmB,CAAC,IAAI,CAAC;IAC5C,IAAI,EAAE,IAAI,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,oBAAoB,GAAG,YAAY,CAAC;AAEjF,KAAK,sBAAsB,GAAG;IAC5B,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,2EAA2E;IAC3E,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kEAAkE;IAClE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,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AAuB,0BAA2B,MAAM,SAAS,MAAM,YACpD,CAAC;AAEjC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,YAAY,CAExE;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,GACf,OAAO,IAAI,oBAAoB,CAOjC;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,YAAY,CAExE;AAED,eAAO,MAAM,uBAAuB,6HAQjC;IACD,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,YAmBA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationList.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/NotificationList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,YAAY,EAAE,YAAY,KAAK,OAAO,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAC5E,MAAM,MAAM,iCAAiC,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG;IAClC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,qFAAqF;IACrF,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,kGAAkG;IAClG,iBAAiB,CAAC,EAAE,iCAAiC,CAAC;CACvD,CAAC;AAgCF,eAAO,MAAM,gBAAgB,+EAO1B,qBAAqB,mDA+JvB,CAAC"}
1
+ {"version":3,"file":"NotificationList.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/NotificationList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,YAAY,EAAE,YAAY,KAAK,OAAO,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAC5E,MAAM,MAAM,iCAAiC,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG;IAClC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,qFAAqF;IACrF,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,kGAAkG;IAClG,iBAAiB,CAAC,EAAE,iCAAiC,CAAC;CACvD,CAAC;AAgCF,eAAO,MAAM,gBAAgB,+EAO1B,qBAAqB,mDA4KvB,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export * from './useNotifications';
2
+ export * from './useSystemNotifications';
2
3
  export * from './useNotificationTarget';
4
+ export * from './useNotificationApi';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notifications/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notifications/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,63 @@
1
+ import type { Notification, NotificationAction, NotificationSeverity } from 'stream-chat';
2
+ import { type NotificationTargetPanel } from '../notificationTarget';
3
+ /** Tag used for full-width system banners (e.g. connection status). Excluded from `NotificationList` by default. */
4
+ export declare const SYSTEM_NOTIFICATION_TAG: "system";
5
+ export declare const hasSystemNotificationTag: (notification: Notification) => boolean;
6
+ export type NotificationIncidentDescriptor = {
7
+ /** Where the incident happened (e.g. api, browser, validation, permission). */
8
+ domain: string;
9
+ /** Entity being operated on (e.g. message, poll, location, attachment). */
10
+ entity: string;
11
+ /** Attempted operation (e.g. send, end, share, upload). */
12
+ operation: string;
13
+ /** Status of the operation (e.g. failed, success, blocked). */
14
+ status?: string;
15
+ };
16
+ export type AddNotificationParams = {
17
+ /** Optional interactive actions rendered by the notification component. */
18
+ actions?: NotificationAction[];
19
+ /** Arbitrary context metadata stored in `origin.context`. */
20
+ context?: Record<string, unknown>;
21
+ /** Duration in milliseconds after which the notification auto-dismisses. */
22
+ duration?: number;
23
+ /** Logical source emitting the notification (e.g. component or feature name). */
24
+ emitter: string;
25
+ /** Underlying error object attached as `options.originalError`. */
26
+ error?: Error;
27
+ /** Human-readable notification message. */
28
+ message: string;
29
+ /** Notification severity visualized by the UI. */
30
+ severity?: NotificationSeverity;
31
+ /** Additional tags appended to target panel tags. */
32
+ tags?: string[];
33
+ /** Explicit target panels; when provided, inferred panel is ignored. */
34
+ targetPanels?: NotificationTargetPanel[];
35
+ /** Structured descriptor of the incident this notification reports on. */
36
+ incident?: NotificationIncidentDescriptor;
37
+ /**
38
+ * Optional machine-readable notification type identifier (domain:entity:operation:status).
39
+ * Used by notification consumers to route behavior, including translation lookup
40
+ * via notification-type registries.
41
+ * When omitted, `type` is generated from `incident` if `incident` is provided.
42
+ */
43
+ type?: string;
44
+ };
45
+ /**
46
+ * Same shape as {@link AddNotificationParams} except `targetPanels` is omitted — system
47
+ * banners are global and do not receive `target:*` panel tags (they are filtered by the
48
+ * `system` tag for `NotificationList` vs banner UIs).
49
+ */
50
+ export type AddSystemNotificationParams = Omit<AddNotificationParams, 'targetPanels'>;
51
+ export type AddNotification = (params: AddNotificationParams) => void;
52
+ /** Returns the notification id (for removal / timeouts). */
53
+ export type AddSystemNotification = (params: AddSystemNotificationParams) => string;
54
+ export type RemoveNotification = (id: string) => void;
55
+ export type StartNotificationTimeout = (id: string) => void;
56
+ export type NotificationApi = {
57
+ addNotification: AddNotification;
58
+ addSystemNotification: AddSystemNotification;
59
+ removeNotification: RemoveNotification;
60
+ startNotificationTimeout: StartNotificationTimeout;
61
+ };
62
+ export declare const useNotificationApi: () => NotificationApi;
63
+ //# sourceMappingURL=useNotificationApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNotificationApi.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notifications/hooks/useNotificationApi.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAG1F,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAG/B,oHAAoH;AACpH,eAAO,MAAM,uBAAuB,UAAoB,CAAC;AAEzD,eAAO,MAAM,wBAAwB,iBAAkB,YAAY,YACJ,CAAC;AAEhE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3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,EAAE,qBAAqB,CAAC;IAC7C,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,wBAAwB,EAAE,wBAAwB,CAAC;CACpD,CAAC;AAiCF,eAAO,MAAM,kBAAkB,QAAO,eAiGrC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { Notification } from 'stream-chat';
2
+ export type UseSystemNotificationsFilter = (notification: Notification) => boolean;
3
+ export type UseSystemNotificationsOptions = {
4
+ /**
5
+ * Applied after the built-in filter that keeps only notifications tagged for the system banner.
6
+ */
7
+ filter?: UseSystemNotificationsFilter;
8
+ };
9
+ /**
10
+ * Subscribes to `client.notifications` and returns only **system** banner notifications
11
+ * (same subset `NotificationList` excludes from toasts). Optional `filter` narrows further.
12
+ */
13
+ export declare const useSystemNotifications: (options?: UseSystemNotificationsOptions) => Notification[];
14
+ //# sourceMappingURL=useSystemNotifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSystemNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notifications/hooks/useSystemNotifications.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAA4B,MAAM,aAAa,CAAC;AAO1E,MAAM,MAAM,4BAA4B,GAAG,CAAC,YAAY,EAAE,YAAY,KAAK,OAAO,CAAC;AAEnF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,aACvB,6BAA6B,KACtC,YAAY,EAiBd,CAAC"}