stream-chat-angular 4.66.2 → 5.0.0-v5.10

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 (315) hide show
  1. package/assets/version.d.ts +1 -1
  2. package/{esm2015/assets/version.js → esm2020/assets/version.mjs} +2 -2
  3. package/esm2020/lib/attachment-configuration.service.mjs +185 -0
  4. package/esm2020/lib/attachment-list/attachment-list.component.mjs +203 -0
  5. package/esm2020/lib/attachment-preview-list/attachment-preview-list.component.mjs +42 -0
  6. package/esm2020/lib/attachment.service.mjs +262 -0
  7. package/esm2020/lib/avatar/avatar.component.mjs +163 -0
  8. package/esm2020/lib/avatar-placeholder/avatar-placeholder.component.mjs +74 -0
  9. package/esm2020/lib/channel/channel.component.mjs +46 -0
  10. package/esm2020/lib/channel-header/channel-header.component.mjs +72 -0
  11. package/esm2020/lib/channel-list/channel-list.component.mjs +51 -0
  12. package/esm2020/lib/channel-preview/channel-preview.component.mjs +155 -0
  13. package/esm2020/lib/channel.service.mjs +1454 -0
  14. package/esm2020/lib/chat-client.service.mjs +206 -0
  15. package/{esm2015/lib/custom-templates.service.js → esm2020/lib/custom-templates.service.mjs} +3 -3
  16. package/{esm2015/lib/date-parser.service.js → esm2020/lib/date-parser.service.mjs} +3 -3
  17. package/esm2020/lib/edit-message-form/edit-message-form.component.mjs +83 -0
  18. package/esm2020/lib/get-channel-display-text.mjs +14 -0
  19. package/esm2020/lib/get-message-translation.mjs +12 -0
  20. package/esm2020/lib/icon/icon.component.mjs +21 -0
  21. package/esm2020/lib/icon-placeholder/icon-placeholder.component.mjs +31 -0
  22. package/esm2020/lib/loading-indicator/loading-indicator.component.mjs +31 -0
  23. package/esm2020/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +38 -0
  24. package/esm2020/lib/message/message.component.mjs +402 -0
  25. package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +98 -0
  26. package/esm2020/lib/message-actions.service.mjs +119 -0
  27. package/esm2020/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +71 -0
  28. package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +259 -0
  29. package/{esm2015/lib/message-input/emoji-input.service.js → esm2020/lib/message-input/emoji-input.service.mjs} +3 -3
  30. package/{esm2015/lib/message-input/message-input-config.service.js → esm2020/lib/message-input/message-input-config.service.mjs} +3 -3
  31. package/esm2020/lib/message-input/message-input.component.mjs +441 -0
  32. package/{esm2015/lib/message-input/textarea/textarea.component.js → esm2020/lib/message-input/textarea/textarea.component.mjs} +7 -13
  33. package/esm2020/lib/message-input/textarea.directive.mjs +89 -0
  34. package/esm2020/lib/message-list/group-styles.mjs +52 -0
  35. package/esm2020/lib/message-list/message-list.component.mjs +679 -0
  36. package/esm2020/lib/message-preview.mjs +21 -0
  37. package/esm2020/lib/message-reactions/message-reactions.component.mjs +247 -0
  38. package/esm2020/lib/message-reactions.service.mjs +44 -0
  39. package/{esm2015/lib/message.service.js → esm2020/lib/message.service.mjs} +4 -4
  40. package/esm2020/lib/modal/modal.component.mjs +69 -0
  41. package/esm2020/lib/notification/notification.component.mjs +20 -0
  42. package/esm2020/lib/notification-list/notification-list.component.mjs +36 -0
  43. package/esm2020/lib/notification.service.mjs +79 -0
  44. package/esm2020/lib/read-by.mjs +12 -0
  45. package/{esm2015/lib/stream-autocomplete-textarea.module.js → esm2020/lib/stream-autocomplete-textarea.module.mjs} +6 -6
  46. package/{esm2015/lib/stream-avatar.module.js → esm2020/lib/stream-avatar.module.mjs} +5 -5
  47. package/{esm2015/lib/stream-chat.module.js → esm2020/lib/stream-chat.module.mjs} +14 -16
  48. package/{esm2015/lib/stream-i18n.service.js → esm2020/lib/stream-i18n.service.mjs} +5 -5
  49. package/{esm2015/lib/stream-textarea.module.js → esm2020/lib/stream-textarea.module.mjs} +6 -6
  50. package/esm2020/lib/theme.service.mjs +23 -0
  51. package/esm2020/lib/thread/thread.component.mjs +51 -0
  52. package/{esm2015/lib/transliteration.service.js → esm2020/lib/transliteration.service.mjs} +3 -3
  53. package/esm2020/lib/types.mjs +2 -0
  54. package/esm2020/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +183 -0
  55. package/esm2020/lib/voice-recording/voice-recording.component.mjs +102 -0
  56. package/esm2020/public-api.mjs +64 -0
  57. package/fesm2015/{stream-chat-angular.js → stream-chat-angular.mjs} +354 -754
  58. package/fesm2015/stream-chat-angular.mjs.map +1 -0
  59. package/fesm2020/stream-chat-angular.mjs +6835 -0
  60. package/fesm2020/stream-chat-angular.mjs.map +1 -0
  61. package/lib/attachment-list/attachment-list.component.d.ts +4 -6
  62. package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +2 -4
  63. package/lib/attachment.service.d.ts +0 -1
  64. package/lib/avatar/avatar.component.d.ts +1 -1
  65. package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
  66. package/lib/channel/channel.component.d.ts +1 -1
  67. package/lib/channel-header/channel-header.component.d.ts +2 -5
  68. package/lib/channel-list/channel-list.component.d.ts +4 -9
  69. package/lib/channel-preview/channel-preview.component.d.ts +1 -1
  70. package/lib/channel.service.d.ts +7 -14
  71. package/lib/chat-client.service.d.ts +1 -1
  72. package/lib/edit-message-form/edit-message-form.component.d.ts +1 -1
  73. package/lib/get-message-translation.d.ts +1 -1
  74. package/lib/icon/icon.component.d.ts +1 -1
  75. package/lib/icon-placeholder/icon-placeholder.component.d.ts +1 -1
  76. package/lib/loading-indicator/loading-indicator.component.d.ts +1 -1
  77. package/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
  78. package/lib/message/message.component.d.ts +6 -19
  79. package/lib/message-actions-box/message-actions-box.component.d.ts +4 -32
  80. package/lib/message-actions.service.d.ts +0 -1
  81. package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +1 -1
  82. package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +1 -2
  83. package/lib/message-input/message-input.component.d.ts +3 -5
  84. package/lib/message-input/textarea/textarea.component.d.ts +1 -1
  85. package/lib/message-input/textarea.directive.d.ts +1 -1
  86. package/lib/message-list/group-styles.d.ts +1 -1
  87. package/lib/message-list/message-list.component.d.ts +4 -12
  88. package/lib/message-reactions/message-reactions.component.d.ts +2 -7
  89. package/lib/message.service.d.ts +0 -1
  90. package/lib/modal/modal.component.d.ts +1 -1
  91. package/lib/notification/notification.component.d.ts +1 -1
  92. package/lib/notification-list/notification-list.component.d.ts +2 -3
  93. package/lib/notification.service.d.ts +2 -5
  94. package/lib/stream-chat.module.d.ts +3 -3
  95. package/lib/theme.service.d.ts +1 -44
  96. package/lib/thread/thread.component.d.ts +1 -1
  97. package/lib/types.d.ts +16 -33
  98. package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +2 -2
  99. package/lib/voice-recording/voice-recording.component.d.ts +1 -1
  100. package/package.json +31 -17
  101. package/public-api.d.ts +0 -2
  102. package/src/assets/styles/css/index.css +3 -1
  103. package/src/assets/styles/css/index.layout.css +3 -0
  104. package/src/assets/styles/{v2/scss → scss}/AttachmentList/AttachmentList-layout.scss +1 -1
  105. package/src/assets/styles/{v2/scss → scss}/Message/Message-layout.scss +2 -2
  106. package/src/assets/styles/scss/_base.scss +7 -198
  107. package/src/assets/styles/scss/index.scss +35 -48
  108. package/src/assets/version.ts +1 -1
  109. package/bundles/stream-chat-angular.umd.js +0 -8445
  110. package/bundles/stream-chat-angular.umd.js.map +0 -1
  111. package/esm2015/lib/attachment-configuration.service.js +0 -186
  112. package/esm2015/lib/attachment-list/attachment-list.component.js +0 -209
  113. package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +0 -49
  114. package/esm2015/lib/attachment.service.js +0 -276
  115. package/esm2015/lib/avatar/avatar.component.js +0 -172
  116. package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +0 -78
  117. package/esm2015/lib/channel/channel.component.js +0 -50
  118. package/esm2015/lib/channel-header/channel-header.component.js +0 -86
  119. package/esm2015/lib/channel-list/channel-list-toggle.service.js +0 -73
  120. package/esm2015/lib/channel-list/channel-list.component.js +0 -67
  121. package/esm2015/lib/channel-preview/channel-preview.component.js +0 -167
  122. package/esm2015/lib/channel.service.js +0 -1487
  123. package/esm2015/lib/chat-client.service.js +0 -211
  124. package/esm2015/lib/edit-message-form/edit-message-form.component.js +0 -87
  125. package/esm2015/lib/get-channel-display-text.js +0 -15
  126. package/esm2015/lib/get-message-translation.js +0 -13
  127. package/esm2015/lib/icon/icon.component.js +0 -25
  128. package/esm2015/lib/icon-placeholder/icon-placeholder.component.js +0 -35
  129. package/esm2015/lib/loading-indicator/loading-indicator.component.js +0 -35
  130. package/esm2015/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.js +0 -42
  131. package/esm2015/lib/message/message.component.js +0 -436
  132. package/esm2015/lib/message-actions-box/message-actions-box.component.js +0 -137
  133. package/esm2015/lib/message-actions.service.js +0 -114
  134. package/esm2015/lib/message-bounce-prompt/message-bounce-prompt.component.js +0 -80
  135. package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +0 -262
  136. package/esm2015/lib/message-input/message-input.component.js +0 -455
  137. package/esm2015/lib/message-input/textarea.directive.js +0 -90
  138. package/esm2015/lib/message-list/group-styles.js +0 -53
  139. package/esm2015/lib/message-list/image-load.service.js +0 -24
  140. package/esm2015/lib/message-list/message-list.component.js +0 -726
  141. package/esm2015/lib/message-preview.js +0 -7
  142. package/esm2015/lib/message-reactions/message-reactions.component.js +0 -266
  143. package/esm2015/lib/message-reactions.service.js +0 -45
  144. package/esm2015/lib/modal/modal.component.js +0 -74
  145. package/esm2015/lib/notification/notification.component.js +0 -24
  146. package/esm2015/lib/notification-list/notification-list.component.js +0 -38
  147. package/esm2015/lib/notification.service.js +0 -79
  148. package/esm2015/lib/read-by.js +0 -13
  149. package/esm2015/lib/theme.service.js +0 -122
  150. package/esm2015/lib/thread/thread.component.js +0 -55
  151. package/esm2015/lib/types.js +0 -2
  152. package/esm2015/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.js +0 -192
  153. package/esm2015/lib/voice-recording/voice-recording.component.js +0 -115
  154. package/esm2015/public-api.js +0 -66
  155. package/fesm2015/stream-chat-angular.js.map +0 -1
  156. package/lib/channel-list/channel-list-toggle.service.d.ts +0 -40
  157. package/lib/message-list/image-load.service.d.ts +0 -15
  158. package/src/assets/EmojiOneColor.woff2 +0 -0
  159. package/src/assets/NotoColorEmoji-flags.woff2 +0 -0
  160. package/src/assets/Poweredby_100px-White_VertText.png +0 -0
  161. package/src/assets/str-chat__alert.svg +0 -1
  162. package/src/assets/str-chat__file-file.svg +0 -20
  163. package/src/assets/str-chat__icon-chevron-down.svg +0 -1
  164. package/src/assets/str-chat__icon-search.svg +0 -1
  165. package/src/assets/str-chat__icon-send.svg +0 -1
  166. package/src/assets/str-chat__icon-sprite.png +0 -0
  167. package/src/assets/str-chat__icon-sprite@1x.png +0 -0
  168. package/src/assets/str-chat__icon-sprite@2x.png +0 -0
  169. package/src/assets/str-chat__icon-sprite@3x.png +0 -0
  170. package/src/assets/str-chat__loading-indicator.svg +0 -23
  171. package/src/assets/str-chat__reaction-list-sprite@1x.png +0 -0
  172. package/src/assets/str-chat__reaction-list-sprite@2x.png +0 -0
  173. package/src/assets/str-chat__reaction-list-sprite@3x.png +0 -0
  174. package/src/assets/str-chat__reactions-sprite@1x.png +0 -0
  175. package/src/assets/str-chat__reactions-sprite@2x.png +0 -0
  176. package/src/assets/str-chat__reactions-sprite@3x.png +0 -0
  177. package/src/assets/styles/assets/EmojiOneColor.woff2 +0 -0
  178. package/src/assets/styles/assets/NotoColorEmoji-flags.woff2 +0 -0
  179. package/src/assets/styles/assets/Poweredby_100px-White_VertText.png +0 -0
  180. package/src/assets/styles/assets/str-chat__reaction-list-sprite@1x.png +0 -0
  181. package/src/assets/styles/assets/str-chat__reaction-list-sprite@2x.png +0 -0
  182. package/src/assets/styles/assets/str-chat__reaction-list-sprite@3x.png +0 -0
  183. package/src/assets/styles/scss/ActionsBox.scss +0 -56
  184. package/src/assets/styles/scss/Attachment.scss +0 -329
  185. package/src/assets/styles/scss/AttachmentActions.scss +0 -44
  186. package/src/assets/styles/scss/Audio.scss +0 -113
  187. package/src/assets/styles/scss/Avatar.scss +0 -79
  188. package/src/assets/styles/scss/Card.scss +0 -125
  189. package/src/assets/styles/scss/ChannelHeader.scss +0 -284
  190. package/src/assets/styles/scss/ChannelList.scss +0 -141
  191. package/src/assets/styles/scss/ChannelListMessenger.scss +0 -9
  192. package/src/assets/styles/scss/ChannelPreview.scss +0 -133
  193. package/src/assets/styles/scss/ChannelSearch.scss +0 -124
  194. package/src/assets/styles/scss/ChatDown.scss +0 -15
  195. package/src/assets/styles/scss/DateSeparator.scss +0 -51
  196. package/src/assets/styles/scss/EditMessageForm.scss +0 -112
  197. package/src/assets/styles/scss/EventComponent.scss +0 -48
  198. package/src/assets/styles/scss/Gallery.scss +0 -121
  199. package/src/assets/styles/scss/ImageCarousel.scss +0 -45
  200. package/src/assets/styles/scss/InfiniteScrollPaginator.scss +0 -6
  201. package/src/assets/styles/scss/LoadMoreButton.scss +0 -44
  202. package/src/assets/styles/scss/LoadingChannels.scss +0 -70
  203. package/src/assets/styles/scss/LoadingIndicator.scss +0 -38
  204. package/src/assets/styles/scss/Message.scss +0 -1283
  205. package/src/assets/styles/scss/MessageActions.scss +0 -137
  206. package/src/assets/styles/scss/MessageCommerce.scss +0 -608
  207. package/src/assets/styles/scss/MessageInput.scss +0 -398
  208. package/src/assets/styles/scss/MessageInputFlat.scss +0 -323
  209. package/src/assets/styles/scss/MessageList.scss +0 -244
  210. package/src/assets/styles/scss/MessageLivestream.scss +0 -338
  211. package/src/assets/styles/scss/MessageNotification.scss +0 -43
  212. package/src/assets/styles/scss/MessageRepliesCountButton.scss +0 -33
  213. package/src/assets/styles/scss/MessageTeam.scss +0 -644
  214. package/src/assets/styles/scss/Modal.scss +0 -78
  215. package/src/assets/styles/scss/ReactionList.scss +0 -197
  216. package/src/assets/styles/scss/ReactionSelector.scss +0 -218
  217. package/src/assets/styles/scss/SendButton.scss +0 -20
  218. package/src/assets/styles/scss/SimpleReactionsList.scss +0 -76
  219. package/src/assets/styles/scss/SmallMessageInput.scss +0 -171
  220. package/src/assets/styles/scss/Thread.scss +0 -381
  221. package/src/assets/styles/scss/Tooltip.scss +0 -41
  222. package/src/assets/styles/scss/TypingIndicator.scss +0 -80
  223. package/src/assets/styles/scss/VirtualMessage.scss +0 -288
  224. package/src/assets/styles/scss/_variables.scss +0 -161
  225. package/src/assets/styles/v2/css/index.css +0 -3
  226. package/src/assets/styles/v2/css/index.layout.css +0 -3
  227. package/src/assets/styles/v2/scss/_base.scss +0 -28
  228. package/src/assets/styles/v2/scss/index.scss +0 -37
  229. package/src/assets/styles/vendor/emoji-mart.scss +0 -514
  230. package/src/assets/styles/vendor/mml-react.scss +0 -2246
  231. package/src/assets/styles/vendor/react-file-utils.scss +0 -441
  232. package/src/assets/styles/vendor/react-image-gallery.scss +0 -237
  233. /package/{esm2015/assets/i18n/en.js → esm2020/assets/i18n/en.mjs} +0 -0
  234. /package/{esm2015/lib/injection-tokens.js → esm2020/lib/injection-tokens.mjs} +0 -0
  235. /package/{esm2015/lib/is-image-attachment.js → esm2020/lib/is-image-attachment.mjs} +0 -0
  236. /package/{esm2015/lib/is-image-file.js → esm2020/lib/is-image-file.mjs} +0 -0
  237. /package/{esm2015/lib/is-on-separate-date.js → esm2020/lib/is-on-separate-date.mjs} +0 -0
  238. /package/{esm2015/lib/list-users.js → esm2020/lib/list-users.mjs} +0 -0
  239. /package/{esm2015/lib/message-input/textarea.interface.js → esm2020/lib/message-input/textarea.interface.mjs} +0 -0
  240. /package/{esm2015/lib/parse-date.js → esm2020/lib/parse-date.mjs} +0 -0
  241. /package/{esm2015/stream-chat-angular.js → esm2020/stream-chat-angular.mjs} +0 -0
  242. /package/{stream-chat-angular.d.ts → index.d.ts} +0 -0
  243. /package/src/assets/styles/{v2/css → css}/emoji-mart.css +0 -0
  244. /package/src/assets/styles/{v2/css → css}/emoji-replacement.css +0 -0
  245. /package/src/assets/styles/{v2/scss → scss}/AttachmentList/AttachmentList-theme.scss +0 -0
  246. /package/src/assets/styles/{v2/scss → scss}/AttachmentPreviewList/AttachmentPreviewList-layout.scss +0 -0
  247. /package/src/assets/styles/{v2/scss → scss}/AttachmentPreviewList/AttachmentPreviewList-theme.scss +0 -0
  248. /package/src/assets/styles/{v2/scss → scss}/Autocomplete/Autocomplete-layout.scss +0 -0
  249. /package/src/assets/styles/{v2/scss → scss}/Autocomplete/Autocomplete-theme.scss +0 -0
  250. /package/src/assets/styles/{v2/scss → scss}/Avatar/Avatar-layout.scss +0 -0
  251. /package/src/assets/styles/{v2/scss → scss}/Avatar/Avatar-theme.scss +0 -0
  252. /package/src/assets/styles/{v2/scss → scss}/BaseImage/BaseImage-layout.scss +0 -0
  253. /package/src/assets/styles/{v2/scss → scss}/BaseImage/BaseImage-theme.scss +0 -0
  254. /package/src/assets/styles/{v2/scss → scss}/BaseImage/index.scss +0 -0
  255. /package/src/assets/styles/{v2/scss → scss}/Channel/Channel-layout.scss +0 -0
  256. /package/src/assets/styles/{v2/scss → scss}/Channel/Channel-theme.scss +0 -0
  257. /package/src/assets/styles/{v2/scss → scss}/ChannelHeader/ChannelHeader-layout.scss +0 -0
  258. /package/src/assets/styles/{v2/scss → scss}/ChannelHeader/ChannelHeader-theme.scss +0 -0
  259. /package/src/assets/styles/{v2/scss → scss}/ChannelList/ChannelList-layout.scss +0 -0
  260. /package/src/assets/styles/{v2/scss → scss}/ChannelList/ChannelList-theme.scss +0 -0
  261. /package/src/assets/styles/{v2/scss → scss}/ChannelPreview/ChannelPreview-layout.scss +0 -0
  262. /package/src/assets/styles/{v2/scss → scss}/ChannelPreview/ChannelPreview-theme.scss +0 -0
  263. /package/src/assets/styles/{v2/scss → scss}/ChannelSearch/ChannelSearch-layout.scss +0 -0
  264. /package/src/assets/styles/{v2/scss → scss}/ChannelSearch/ChannelSearch-theme.scss +0 -0
  265. /package/src/assets/styles/{v2/scss → scss}/EditMessageForm/EditMessageForm-layout.scss +0 -0
  266. /package/src/assets/styles/{v2/scss → scss}/EditMessageForm/EditMessageForm-theme.scss +0 -0
  267. /package/src/assets/styles/{v2/scss → scss}/ImageCarousel/ImageCarousel-layout.scss +0 -0
  268. /package/src/assets/styles/{v2/scss → scss}/ImageCarousel/ImageCarousel-theme.scss +0 -0
  269. /package/src/assets/styles/{v2/scss → scss}/LinkPreview/LinkPreview-layout.scss +0 -0
  270. /package/src/assets/styles/{v2/scss → scss}/LinkPreview/LinkPreview-theme.scss +0 -0
  271. /package/src/assets/styles/{v2/scss → scss}/LinkPreview/index.scss +0 -0
  272. /package/src/assets/styles/{v2/scss → scss}/LoadingIndicator/LoadingIndicator-layout.scss +0 -0
  273. /package/src/assets/styles/{v2/scss → scss}/LoadingIndicator/LoadingIndicator-theme.scss +0 -0
  274. /package/src/assets/styles/{v2/scss → scss}/Message/Message-theme.scss +0 -0
  275. /package/src/assets/styles/{v2/scss → scss}/MessageActionsBox/MessageActionsBox-layout.scss +0 -0
  276. /package/src/assets/styles/{v2/scss → scss}/MessageActionsBox/MessageActionsBox-theme.scss +0 -0
  277. /package/src/assets/styles/{v2/scss → scss}/MessageBouncePrompt/MessageBouncePrompt-layout.scss +0 -0
  278. /package/src/assets/styles/{v2/scss → scss}/MessageBouncePrompt/MessageBouncePrompt-theme.scss +0 -0
  279. /package/src/assets/styles/{v2/scss → scss}/MessageInput/MessageInput-layout.scss +0 -0
  280. /package/src/assets/styles/{v2/scss → scss}/MessageInput/MessageInput-theme.scss +0 -0
  281. /package/src/assets/styles/{v2/scss → scss}/MessageList/MessageList-layout.scss +0 -0
  282. /package/src/assets/styles/{v2/scss → scss}/MessageList/MessageList-theme.scss +0 -0
  283. /package/src/assets/styles/{v2/scss → scss}/MessageList/VirtualizedMessageList-layout.scss +0 -0
  284. /package/src/assets/styles/{v2/scss → scss}/MessageList/VirtualizedMessageList-theme.scss +0 -0
  285. /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactions-layout.scss +0 -0
  286. /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactions-theme.scss +0 -0
  287. /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactionsSelector-layout.scss +0 -0
  288. /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactionsSelector-theme.scss +0 -0
  289. /package/src/assets/styles/{v2/scss → scss}/Modal/Modal-layout.scss +0 -0
  290. /package/src/assets/styles/{v2/scss → scss}/Modal/Modal-theme.scss +0 -0
  291. /package/src/assets/styles/{v2/scss → scss}/Notification/MessageNotification-layout.scss +0 -0
  292. /package/src/assets/styles/{v2/scss → scss}/Notification/MessageNotification-theme.scss +0 -0
  293. /package/src/assets/styles/{v2/scss → scss}/Notification/Notification-layout.scss +0 -0
  294. /package/src/assets/styles/{v2/scss → scss}/Notification/Notification-theme.scss +0 -0
  295. /package/src/assets/styles/{v2/scss → scss}/Notification/NotificationList-layout.scss +0 -0
  296. /package/src/assets/styles/{v2/scss → scss}/Notification/NotificationList-theme.scss +0 -0
  297. /package/src/assets/styles/{v2/scss → scss}/Thread/Thread-layout.scss +0 -0
  298. /package/src/assets/styles/{v2/scss → scss}/Thread/Thread-theme.scss +0 -0
  299. /package/src/assets/styles/{v2/scss → scss}/Tooltip/Tooltip-layout.scss +0 -0
  300. /package/src/assets/styles/{v2/scss → scss}/Tooltip/Tooltip-theme.scss +0 -0
  301. /package/src/assets/styles/{v2/scss → scss}/TypingIndicator/TypingIndicator-layout.scss +0 -0
  302. /package/src/assets/styles/{v2/scss → scss}/TypingIndicator/TypingIndicator-theme.scss +0 -0
  303. /package/src/assets/styles/{v2/scss → scss}/_emoji-replacement.scss +0 -0
  304. /package/src/assets/styles/{v2/scss → scss}/_global-layout-variables.scss +0 -0
  305. /package/src/assets/styles/{v2/scss → scss}/_global-theme-variables.scss +0 -0
  306. /package/src/assets/styles/{v2/scss → scss}/_icons.scss +0 -0
  307. /package/src/assets/styles/{v2/scss → scss}/_palette-variables.scss +0 -0
  308. /package/src/assets/styles/{v2/scss → scss}/_utils.scss +0 -0
  309. /package/src/assets/styles/{v2/scss → scss}/common/CTAButton/CTAButton-layout.scss +0 -0
  310. /package/src/assets/styles/{v2/scss → scss}/common/CTAButton/CTAButton-theme.scss +0 -0
  311. /package/src/assets/styles/{v2/scss → scss}/common/CircleFAButton/CircleFAButton-layout.scss +0 -0
  312. /package/src/assets/styles/{v2/scss → scss}/common/CircleFAButton/CircleFAButton-theme.scss +0 -0
  313. /package/src/assets/styles/{v2/scss → scss}/index.layout.scss +0 -0
  314. /package/src/assets/styles/{v2/scss → scss}/vendor/emoji-mart.scss +0 -0
  315. /package/src/assets/styles/{v2/scss → scss}/vendor/react-image-gallery.scss +0 -0
@@ -1,13 +1,12 @@
1
1
  import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
2
  import { ChannelService } from '../channel.service';
3
3
  import { Observable } from 'rxjs';
4
- import { MessageContext, StreamMessage, TypingIndicatorContext, CustomMessageActionItem, DateSeparatorContext, UnreadMessagesNotificationContext, UnreadMessagesIndicatorContext } from '../types';
4
+ import { MessageContext, StreamMessage, TypingIndicatorContext, DateSeparatorContext, UnreadMessagesNotificationContext, UnreadMessagesIndicatorContext } from '../types';
5
5
  import { ChatClientService } from '../chat-client.service';
6
6
  import { GroupStyle } from './group-styles';
7
7
  import { UserResponse } from 'stream-chat';
8
8
  import { CustomTemplatesService } from '../custom-templates.service';
9
9
  import { DateParserService } from '../date-parser.service';
10
- import { MessageActionsService } from '../message-actions.service';
11
10
  import * as i0 from "@angular/core";
12
11
  /**
13
12
  * The `MessageList` component renders a scrollable list of messages.
@@ -19,7 +18,6 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
19
18
  private dateParser;
20
19
  private ngZone;
21
20
  private cdRef;
22
- private messageActionsService;
23
21
  /**
24
22
  * Determines if the message list should display channel messages or [thread messages](https://getstream.io/chat/docs/javascript/threads/?language=javascript).
25
23
  */
@@ -37,12 +35,6 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
37
35
  *
38
36
  */
39
37
  hideJumpToLatestButtonDuringScroll: boolean;
40
- /**
41
- * A list of custom message actions to be displayed in the message action box
42
- *
43
- * @deprecated please use the [`MessageActionsService`](https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService) to set this property.
44
- */
45
- customMessageActions: CustomMessageActionItem<any>[];
46
38
  /**
47
39
  * If `true` date separators will be displayed
48
40
  */
@@ -87,7 +79,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
87
79
  parentMessage: StreamMessage | undefined;
88
80
  highlightedMessageId: string | undefined;
89
81
  isLoading: boolean;
90
- scrollEndTimeout: any;
82
+ scrollEndTimeout?: ReturnType<typeof setTimeout>;
91
83
  lastReadMessageId?: string;
92
84
  isUnreadNotificationVisible: boolean;
93
85
  firstUnreadMessageId?: string;
@@ -114,7 +106,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
114
106
  private checkIfUnreadNotificationIsVisibleTimeout?;
115
107
  private jumpToLatestButtonVisibilityTimeout?;
116
108
  private get class();
117
- constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService, ngZone: NgZone, cdRef: ChangeDetectorRef, messageActionsService: MessageActionsService);
109
+ constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService, ngZone: NgZone, cdRef: ChangeDetectorRef);
118
110
  messageNotificationJumpClicked: () => void;
119
111
  messageNotificationDismissClicked: () => void;
120
112
  ngOnInit(): void;
@@ -149,5 +141,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
149
141
  private newMessageReceived;
150
142
  private checkIfOnSeparateDates;
151
143
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
152
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "customMessageActions": "customMessageActions"; "displayDateSeparator": "displayDateSeparator"; "displayUnreadSeparator": "displayUnreadSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; }, {}, never, never>;
144
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "displayDateSeparator": "displayDateSeparator"; "displayUnreadSeparator": "displayUnreadSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; }, {}, never, never, false, never>;
153
145
  }
@@ -2,10 +2,8 @@ import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, EventEmitter, OnCha
2
2
  import { ReactionResponse, UserResponse } from 'stream-chat';
3
3
  import { ChannelService } from '../channel.service';
4
4
  import { MessageReactionType, DefaultStreamChatGenerics } from '../types';
5
- import { NgxPopperjsTriggers, NgxPopperjsPlacements } from 'ngx-popperjs';
6
5
  import { MessageReactionsService } from '../message-reactions.service';
7
6
  import { CustomTemplatesService } from '../custom-templates.service';
8
- import { ThemeService } from '../theme.service';
9
7
  import * as i0 from "@angular/core";
10
8
  /**
11
9
  * The `MessageReactions` component displays the reactions of a message, the current user can add and remove reactions. You can read more about [message reactions](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript) in the platform documentation.
@@ -15,7 +13,6 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
15
13
  private channelService;
16
14
  private messageReactionsService;
17
15
  customTemplatesService: CustomTemplatesService;
18
- private themeService;
19
16
  /**
20
17
  * The id of the message the reactions belong to
21
18
  */
@@ -50,8 +47,6 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
50
47
  private selectorContainer;
51
48
  private selectorTooltip;
52
49
  currentTooltipTarget: HTMLElement | undefined;
53
- popperTriggerHover: NgxPopperjsTriggers;
54
- popperPlacementAuto: NgxPopperjsPlacements;
55
50
  selectedReactionType: string | undefined;
56
51
  isLoading: boolean;
57
52
  reactions: ReactionResponse[];
@@ -61,7 +56,7 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
61
56
  reactionOptions: string[];
62
57
  private subscriptions;
63
58
  private isViewInited;
64
- constructor(cdRef: ChangeDetectorRef, channelService: ChannelService, messageReactionsService: MessageReactionsService, customTemplatesService: CustomTemplatesService, themeService: ThemeService);
59
+ constructor(cdRef: ChangeDetectorRef, channelService: ChannelService, messageReactionsService: MessageReactionsService, customTemplatesService: CustomTemplatesService);
65
60
  ngOnInit(): void;
66
61
  ngOnChanges(changes: SimpleChanges): void;
67
62
  ngAfterViewInit(): void;
@@ -86,5 +81,5 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
86
81
  private fetchAllReactions;
87
82
  private setExistingReactions;
88
83
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsComponent, never>;
89
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionCounts": "messageReactionCounts"; "isSelectorOpen": "isSelectorOpen"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, { "isSelectorOpenChange": "isSelectorOpenChange"; }, never, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionCounts": "messageReactionCounts"; "isSelectorOpen": "isSelectorOpen"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, { "isSelectorOpenChange": "isSelectorOpenChange"; }, never, never, false, never>;
90
85
  }
@@ -13,7 +13,6 @@ export declare class MessageService {
13
13
  displayAs: 'text' | 'html';
14
14
  /**
15
15
  * You can provide a custom method to display links
16
- *
17
16
  * @param url the url the link should refer to
18
17
  * @returns the HTML markup as a string for the link
19
18
  */
@@ -25,5 +25,5 @@ export declare class ModalComponent implements OnChanges {
25
25
  private watchForOutsideClicks;
26
26
  private stopWatchForOutsideClicks;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "stream-modal", never, { "isOpen": "isOpen"; "content": "content"; }, { "isOpenChange": "isOpenChange"; }, never, ["*"]>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "stream-modal", never, { "isOpen": "isOpen"; "content": "content"; }, { "isOpenChange": "isOpenChange"; }, never, ["*"], false, never>;
29
29
  }
@@ -15,5 +15,5 @@ export declare class NotificationComponent {
15
15
  content: TemplateRef<void> | undefined;
16
16
  constructor();
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "stream-notification", never, { "type": "type"; "content": "content"; }, {}, never, ["*"]>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "stream-notification", never, { "type": "type"; "content": "content"; }, {}, never, ["*"], false, never>;
19
19
  }
@@ -12,13 +12,12 @@ export declare class NotificationListComponent {
12
12
  private notificationService;
13
13
  private themeService;
14
14
  notifications$: Observable<NotificationPayload[]>;
15
- themeVersion: '1' | '2';
16
15
  theme$: Observable<string>;
17
16
  constructor(customTemplatesService: CustomTemplatesService, notificationService: NotificationService, themeService: ThemeService);
18
17
  trackById(_: number, item: NotificationPayload): string;
19
18
  getNotificationContentContext(notification: NotificationPayload): {
20
- dismissFn: Function;
19
+ dismissFn: () => void;
21
20
  };
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationListComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationListComponent, "stream-notification-list", never, {}, {}, never, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationListComponent, "stream-notification-list", never, {}, {}, never, never, false, never>;
24
23
  }
@@ -21,7 +21,7 @@ export declare class NotificationService {
21
21
  * @param templateContext The input of the notification template (for HTML notifications)
22
22
  * @returns A method to clear the notification (before the timeout).
23
23
  */
24
- addTemporaryNotification<T>(content: string | TemplateRef<T>, type?: NotificationType, timeout?: number, translateParams?: Object, templateContext?: T): () => void;
24
+ addTemporaryNotification<T>(content: string | TemplateRef<T>, type?: NotificationType, timeout?: number, translateParams?: object, templateContext?: T): () => void;
25
25
  /**
26
26
  * Displays a notification, that will be visible until it's removed.
27
27
  * @param content The text of the notification or the HTML template for the notification
@@ -30,10 +30,7 @@ export declare class NotificationService {
30
30
  * @param templateContext The input of the notification template (for HTML notifications)
31
31
  * @returns A method to clear the notification.
32
32
  */
33
- addPermanentNotification<T = {
34
- [key: string]: any;
35
- dismissFn: () => {};
36
- }>(content: string | TemplateRef<T>, type?: NotificationType, translateParams?: Object, templateContext?: T): () => void;
33
+ addPermanentNotification<T = object>(content: string | TemplateRef<T>, type?: NotificationType, translateParams?: object, templateContext?: T): () => void;
37
34
  private createNotification;
38
35
  private removeNotification;
39
36
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
@@ -24,11 +24,11 @@ import * as i22 from "./message-bounce-prompt/message-bounce-prompt.component";
24
24
  import * as i23 from "./voice-recording/voice-recording.component";
25
25
  import * as i24 from "./voice-recording/voice-recording-wavebar/voice-recording-wavebar.component";
26
26
  import * as i25 from "@angular/common";
27
- import * as i26 from "@ngx-translate/core";
27
+ import * as i26 from "ngx-float-ui";
28
28
  import * as i27 from "./stream-avatar.module";
29
- import * as i28 from "ngx-popperjs";
29
+ import * as i28 from "@ngx-translate/core";
30
30
  export declare class StreamChatModule {
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<StreamChatModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.EditMessageFormComponent, typeof i22.MessageBouncePromptComponent, typeof i23.VoiceRecordingComponent, typeof i24.VoiceRecordingWavebarComponent], [typeof i25.CommonModule, typeof i26.TranslateModule, typeof i27.StreamAvatarModule, typeof i28.NgxPopperjsModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i27.StreamAvatarModule, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.EditMessageFormComponent, typeof i22.MessageBouncePromptComponent, typeof i23.VoiceRecordingComponent, typeof i24.VoiceRecordingWavebarComponent]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.EditMessageFormComponent, typeof i22.MessageBouncePromptComponent, typeof i23.VoiceRecordingComponent, typeof i24.VoiceRecordingWavebarComponent], [typeof i25.CommonModule, typeof i26.NgxFloatUiModule, typeof i27.StreamAvatarModule, typeof i28.TranslateModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i27.StreamAvatarModule, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.EditMessageFormComponent, typeof i22.MessageBouncePromptComponent, typeof i23.VoiceRecordingComponent, typeof i24.VoiceRecordingWavebarComponent]>;
33
33
  static ɵinj: i0.ɵɵInjectorDeclaration<StreamChatModule>;
34
34
  }
@@ -1,57 +1,14 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
2
  import * as i0 from "@angular/core";
3
- export declare type Theme = 'light' | 'dark';
4
3
  /**
5
4
  * The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](../theming/introduction.mdx) gives a complete overview about the topic.
6
5
  */
7
6
  export declare class ThemeService {
8
7
  /**
9
- * A Subject that can be used to get or set the currently active theme.
8
+ * A Subject that can be used to get or set the currently active theme. By default light and dark themes are supported.
10
9
  */
11
10
  theme$: BehaviorSubject<string>;
12
- /**
13
- * Stream chat theme version - this is used internally by some UI components of the SDK, integrators shouldn't need to use this variable
14
- */
15
- themeVersion: '1' | '2';
16
- private _customLightThemeVariables;
17
- private _customDarkThemeVariables;
18
- private defaultDarkModeVariables;
19
- private variablesToDelete;
20
11
  constructor();
21
- /**
22
- * A getter that returns the currently set custom light theme variables.
23
- * @deprecated Only use with [theme v1](../concepts/theming-and-css.mdx)
24
- * @returns An object where the keys are theme variables, and the values are the currently set CSS values.
25
- */
26
- get customLightThemeVariables(): {
27
- [key: string]: string;
28
- } | undefined;
29
- /**
30
- * A setter that can be used to overwrite the values of the CSS theme variables of the light theme.
31
- * @deprecated Only use with [theme v1](../concepts/theming-and-css.mdx)
32
- * @param variables An object where the keys are theme variables, and the values are CSS values.
33
- */
34
- set customLightThemeVariables(variables: {
35
- [key: string]: string;
36
- } | undefined);
37
- /**
38
- * A getter that returns the currently set custom dark theme variables.
39
- * @deprecated Only use with [theme v1](../concepts/theming-and-css.mdx)
40
- * @returns An object where the keys are theme variables, and the values are the currently set CSS values.
41
- */
42
- get customDarkThemeVariables(): {
43
- [key: string]: string;
44
- } | undefined;
45
- /**
46
- * A setter that can be used to overwrite the values of the CSS theme variables of the dark theme.
47
- * @deprecated Only use with [theme v1](../concepts/theming-and-css.mdx)
48
- * @param variables An object where the keys are theme variables, and the values are CSS values.
49
- */
50
- set customDarkThemeVariables(variables: {
51
- [key: string]: string;
52
- } | undefined);
53
- private deleteVariables;
54
- private setVariables;
55
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
56
13
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
57
14
  }
@@ -22,5 +22,5 @@ export declare class ThreadComponent implements OnDestroy {
22
22
  closeThread(): void;
23
23
  get channelName(): string | undefined;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ThreadComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ThreadComponent, "stream-thread", never, {}, {}, never, ["*"]>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThreadComponent, "stream-thread", never, {}, {}, never, ["*"], false, never>;
26
26
  }
package/lib/types.d.ts CHANGED
@@ -77,14 +77,14 @@ export declare type ComandAutocompleteListItem = CommandResponse & {
77
77
  autocompleteLabel: string;
78
78
  };
79
79
  export declare type NotificationType = 'success' | 'error' | 'info';
80
- export declare type NotificationPayload<T = {}> = {
80
+ export declare type NotificationPayload<T = object> = {
81
81
  id: string;
82
82
  type: NotificationType;
83
83
  text?: string;
84
- translateParams?: Object;
84
+ translateParams?: object;
85
85
  template?: TemplateRef<T>;
86
86
  templateContext?: T;
87
- dismissFn: Function;
87
+ dismissFn: () => void;
88
88
  };
89
89
  export declare type ChannelPreviewContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
90
90
  channel: Channel<T>;
@@ -116,7 +116,7 @@ export declare type MessageInputContext = {
116
116
  mode: 'thread' | 'main' | undefined;
117
117
  isMultipleFileUploadEnabled: boolean | undefined;
118
118
  message: StreamMessage | undefined;
119
- messageUpdateHandler: Function | undefined;
119
+ messageUpdateHandler: () => void | undefined;
120
120
  sendMessage$: Observable<void>;
121
121
  };
122
122
  export declare type MentionTemplateContext = {
@@ -144,7 +144,7 @@ export declare type AttachmentListContext = {
144
144
  messageId: string;
145
145
  attachments: Attachment<DefaultStreamChatGenerics>[];
146
146
  parentMessageId?: string;
147
- imageModalStateChangeHandler?: (state: 'opened' | 'closed') => {};
147
+ imageModalStateChangeHandler?: (state: 'opened' | 'closed') => void;
148
148
  };
149
149
  export declare type AvatarType = 'channel' | 'user';
150
150
  export declare type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator' | 'reaction';
@@ -161,8 +161,8 @@ export declare type AvatarContext = {
161
161
  };
162
162
  export declare type AttachmentPreviewListContext = {
163
163
  attachmentUploads$: Observable<AttachmentUpload[]> | undefined;
164
- retryUploadHandler: (f: File) => any;
165
- deleteUploadHandler: (u: AttachmentUpload) => any;
164
+ retryUploadHandler: (f: File) => void;
165
+ deleteUploadHandler: (u: AttachmentUpload) => void;
166
166
  };
167
167
  export declare type IconContext = {
168
168
  icon: Icon | undefined;
@@ -173,38 +173,21 @@ export declare type LoadingIndicatorContext = {
173
173
  color: string | undefined;
174
174
  };
175
175
  export declare type MessageActionsBoxContext = {
176
- isOpen: boolean;
177
176
  isMine: boolean;
178
177
  message: StreamMessage | undefined;
179
178
  enabledActions: string[];
180
- /**
181
- * @deprecated please use `messageReactionsService.customActions$`
182
- *
183
- * More information: https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService
184
- */
185
- customActions: CustomMessageActionItem[];
186
- /**
187
- * @deprecated because the name contains typos, use the `displayedActionsCountChangeHandler` instead
188
- */
189
- displayedActionsCountChaneHanler: (count: number) => any;
190
- /**
191
- * @deprecated components should use `messageReactionsService.getAuthorizedMessageActionsCount` method
192
- *
193
- * More information: https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService
194
- */
195
- displayedActionsCountChangeHandler: (count: number) => any;
196
179
  };
197
180
  export declare type MessageActionBoxItemContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
198
- actionName: 'quote' | 'pin' | 'flag' | 'edit' | 'delete' | string;
181
+ actionName: string;
199
182
  actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
200
183
  message: StreamMessage<T>;
201
184
  isMine: boolean;
202
- actionHandler: (message: StreamMessage<T>, isMine: boolean) => any;
185
+ actionHandler: (message: StreamMessage<T>, isMine: boolean) => void;
203
186
  };
204
187
  declare type MessageActionItemBase<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
205
188
  actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
206
189
  isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage<T>) => boolean;
207
- actionHandler: (message: StreamMessage<T>, isMine: boolean) => any;
190
+ actionHandler: (message: StreamMessage<T>, isMine: boolean) => void;
208
191
  };
209
192
  export declare type MessageActionItem<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionItemBase<T> & {
210
193
  actionName: 'quote' | 'pin' | 'flag' | 'edit' | 'delete' | 'mark-unread';
@@ -220,11 +203,11 @@ export declare type MessageReactionsContext = {
220
203
  isSelectorOpen: boolean;
221
204
  latestReactions: ReactionResponse<DefaultStreamChatGenerics>[];
222
205
  ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
223
- isSelectorOpenChangeHandler: (isOpen: boolean) => any;
206
+ isSelectorOpenChangeHandler: (isOpen: boolean) => void;
224
207
  };
225
208
  export declare type ModalContext = {
226
209
  isOpen: boolean;
227
- isOpenChangeHandler: (isOpen: boolean) => any;
210
+ isOpenChangeHandler: (isOpen: boolean) => void;
228
211
  content: TemplateRef<void>;
229
212
  };
230
213
  export declare type NotificationContext = {
@@ -233,9 +216,9 @@ export declare type NotificationContext = {
233
216
  };
234
217
  export declare type ThreadHeaderContext = {
235
218
  parentMessage: StreamMessage | undefined;
236
- closeThreadHandler: Function;
219
+ closeThreadHandler: () => void;
237
220
  };
238
- export declare type MessageReactionType = 'angry' | 'haha' | 'like' | 'love' | 'sad' | 'wow' | string;
221
+ export declare type MessageReactionType = string;
239
222
  export declare type AttachmentConfigration = {
240
223
  url: string;
241
224
  height: string;
@@ -282,8 +265,8 @@ export declare type UnreadMessagesIndicatorContext = {
282
265
  unreadCount: number;
283
266
  };
284
267
  export declare type UnreadMessagesNotificationContext = UnreadMessagesIndicatorContext & {
285
- onJump: Function;
286
- onDismiss: Function;
268
+ onJump: () => void;
269
+ onDismiss: () => void;
287
270
  };
288
271
  export declare type ChannelQueryState = {
289
272
  state: 'in-progress' | 'success' | 'error';
@@ -28,7 +28,7 @@ export declare class VoiceRecordingWavebarComponent implements OnInit, OnChanges
28
28
  ngOnInit(): void;
29
29
  ngOnChanges(changes: SimpleChanges): void;
30
30
  ngAfterViewInit(): void;
31
- seek(event: any): void;
31
+ seek(event: MouseEvent): void;
32
32
  trackByIndex(index: number): number;
33
33
  private containerSizeChanged;
34
34
  private downsample;
@@ -39,5 +39,5 @@ export declare class VoiceRecordingWavebarComponent implements OnInit, OnChanges
39
39
  private triangleBase;
40
40
  private divMod;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordingWavebarComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingWavebarComponent, "stream-voice-recording-wavebar", never, { "audioElement": "audioElement"; "waveFormData": "waveFormData"; "duration": "duration"; }, {}, never, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingWavebarComponent, "stream-voice-recording-wavebar", never, { "audioElement": "audioElement"; "waveFormData": "waveFormData"; "duration": "duration"; }, {}, never, never, false, never>;
43
43
  }
@@ -27,5 +27,5 @@ export declare class VoiceRecordingComponent implements OnChanges, AfterViewInit
27
27
  private getFileSize;
28
28
  private divMod;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordingComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingComponent, "stream-voice-recording", never, { "attachment": "attachment"; }, {}, never, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingComponent, "stream-voice-recording", never, { "attachment": "attachment"; }, {}, never, never, false, never>;
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.66.2",
3
+ "version": "5.0.0-v5.10",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -9,27 +9,41 @@
9
9
  "url": "https://github.com/GetStream/stream-chat-angular.git"
10
10
  },
11
11
  "peerDependencies": {
12
- "@angular/common": "^12.2.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
13
- "@angular/core": "^12.2.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
14
- "@ngx-translate/core": "^13.0.0 || ^14.0.0 || ^15.0.0",
12
+ "@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0",
13
+ "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0",
14
+ "@floating-ui/dom": "^1.6.3",
15
+ "@ngx-translate/core": "^14.0.0 || ^15.0.0",
16
+ "angular-mentions": "^1.4.0",
17
+ "ngx-float-ui": "^15.0.0|| ^16.0.0 || ^17.0.0",
18
+ "rxjs": "^7.4.0",
15
19
  "stream-chat": "^8.26.0"
16
20
  },
17
21
  "dependencies": {
18
- "angular-mentions": "^1.4.0",
19
22
  "@stream-io/transliterate": "^1.5.2",
20
- "@popperjs/core": "^2.11.5",
21
- "dayjs": "^1.10.7",
22
- "emoji-regex": "^10.0.0",
23
- "ngx-popperjs": "^12.2.2 || ^13.3.2 || ^14.1.8 || ^15.2.4 || ^16.0.7 || ^17.0.0",
24
- "pretty-bytes": "^5.6.0",
23
+ "dayjs": "^1.11.10",
24
+ "emoji-regex": "^10.3.0",
25
+ "pretty-bytes": "^6.1.1",
25
26
  "tslib": "^2.3.0",
26
- "uuidv4": "^6.2.12"
27
+ "uuidv4": "^6.2.13"
28
+ },
29
+ "module": "fesm2015/stream-chat-angular.mjs",
30
+ "es2020": "fesm2020/stream-chat-angular.mjs",
31
+ "esm2020": "esm2020/stream-chat-angular.mjs",
32
+ "fesm2020": "fesm2020/stream-chat-angular.mjs",
33
+ "fesm2015": "fesm2015/stream-chat-angular.mjs",
34
+ "typings": "index.d.ts",
35
+ "exports": {
36
+ "./package.json": {
37
+ "default": "./package.json"
38
+ },
39
+ ".": {
40
+ "types": "./index.d.ts",
41
+ "esm2020": "./esm2020/stream-chat-angular.mjs",
42
+ "es2020": "./fesm2020/stream-chat-angular.mjs",
43
+ "es2015": "./fesm2015/stream-chat-angular.mjs",
44
+ "node": "./fesm2015/stream-chat-angular.mjs",
45
+ "default": "./fesm2020/stream-chat-angular.mjs"
46
+ }
27
47
  },
28
- "main": "bundles/stream-chat-angular.umd.js",
29
- "module": "fesm2015/stream-chat-angular.js",
30
- "es2015": "fesm2015/stream-chat-angular.js",
31
- "esm2015": "esm2015/stream-chat-angular.js",
32
- "fesm2015": "fesm2015/stream-chat-angular.js",
33
- "typings": "stream-chat-angular.d.ts",
34
48
  "sideEffects": false
35
49
  }
package/public-api.d.ts CHANGED
@@ -15,7 +15,6 @@ export * from './lib/channel/channel.component';
15
15
  export * from './lib/channel-header/channel-header.component';
16
16
  export * from './lib/channel-preview/channel-preview.component';
17
17
  export * from './lib/channel-list/channel-list.component';
18
- export * from './lib/channel-list/channel-list-toggle.service';
19
18
  export * from './lib/message/message.component';
20
19
  export * from './lib/parse-date';
21
20
  export * from './lib/list-users';
@@ -29,7 +28,6 @@ export * from './lib/message-input/textarea.directive';
29
28
  export * from './lib/message-input/textarea.interface';
30
29
  export * from './lib/message-input/emoji-input.service';
31
30
  export * from './lib/message-list/message-list.component';
32
- export * from './lib/message-list/image-load.service';
33
31
  export * from './lib/message-list/group-styles';
34
32
  export * from './lib/attachment-list/attachment-list.component';
35
33
  export * from './lib/attachment-preview-list/attachment-preview-list.component';