@ohos-ports/stream-chat-angular 0.0.0-stage → 7.2.0-beta.1

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 (333) hide show
  1. package/README.md +139 -2
  2. package/assets/i18n/en.d.ts +157 -0
  3. package/assets/version.d.ts +1 -0
  4. package/esm2022/assets/i18n/en.mjs +158 -0
  5. package/esm2022/assets/version.mjs +2 -0
  6. package/esm2022/lib/attachment-configuration.service.mjs +182 -0
  7. package/esm2022/lib/attachment-list/attachment-list.component.mjs +232 -0
  8. package/esm2022/lib/attachment-preview-list/attachment-preview-list.component.mjs +55 -0
  9. package/esm2022/lib/attachment.service.mjs +481 -0
  10. package/esm2022/lib/avatar/avatar.component.mjs +160 -0
  11. package/esm2022/lib/avatar-placeholder/avatar-placeholder.component.mjs +66 -0
  12. package/esm2022/lib/channel/channel.component.mjs +45 -0
  13. package/esm2022/lib/channel-header/channel-header.component.mjs +72 -0
  14. package/esm2022/lib/channel-list/channel-list.component.mjs +47 -0
  15. package/esm2022/lib/channel-preview/channel-preview.component.mjs +158 -0
  16. package/esm2022/lib/channel-query.mjs +77 -0
  17. package/esm2022/lib/channel.service.mjs +1576 -0
  18. package/esm2022/lib/chat-client.service.mjs +233 -0
  19. package/esm2022/lib/custom-templates.service.mjs +258 -0
  20. package/esm2022/lib/date-parser.service.mjs +51 -0
  21. package/esm2022/lib/file-utils.mjs +35 -0
  22. package/esm2022/lib/format-duration.mjs +16 -0
  23. package/esm2022/lib/get-channel-display-text.mjs +14 -0
  24. package/esm2022/lib/get-message-translation.mjs +12 -0
  25. package/esm2022/lib/icon/icon-placeholder/icon-placeholder.component.mjs +28 -0
  26. package/esm2022/lib/icon/icon.component.mjs +17 -0
  27. package/esm2022/lib/icon/icon.module.mjs +37 -0
  28. package/esm2022/lib/icon/loading-indicator/loading-indicator.component.mjs +15 -0
  29. package/esm2022/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +20 -0
  30. package/esm2022/lib/injection-tokens.mjs +3 -0
  31. package/esm2022/lib/is-image-attachment.mjs +6 -0
  32. package/esm2022/lib/is-on-separate-date.mjs +11 -0
  33. package/esm2022/lib/is-safari.mjs +2 -0
  34. package/esm2022/lib/list-users.mjs +12 -0
  35. package/esm2022/lib/message/message.component.mjs +501 -0
  36. package/esm2022/lib/message-actions-box/message-actions-box.component.mjs +123 -0
  37. package/esm2022/lib/message-actions.service.mjs +191 -0
  38. package/esm2022/lib/message-blocked/message-blocked.component.mjs +25 -0
  39. package/esm2022/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +71 -0
  40. package/esm2022/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +333 -0
  41. package/esm2022/lib/message-input/emoji-input.service.mjs +23 -0
  42. package/esm2022/lib/message-input/message-input-config.service.mjs +50 -0
  43. package/esm2022/lib/message-input/message-input.component.mjs +626 -0
  44. package/esm2022/lib/message-input/textarea/textarea.component.mjs +113 -0
  45. package/esm2022/lib/message-input/textarea.directive.mjs +93 -0
  46. package/esm2022/lib/message-input/textarea.interface.mjs +2 -0
  47. package/esm2022/lib/message-input/voice-recorder.service.mjs +27 -0
  48. package/esm2022/lib/message-list/group-styles.mjs +52 -0
  49. package/esm2022/lib/message-list/message-list.component.mjs +717 -0
  50. package/esm2022/lib/message-preview.mjs +22 -0
  51. package/esm2022/lib/message-reactions/message-reactions.component.mjs +168 -0
  52. package/esm2022/lib/message-reactions-selector/message-reactions-selector.component.mjs +61 -0
  53. package/esm2022/lib/message-reactions.service.mjs +70 -0
  54. package/esm2022/lib/message-text/message-text.component.mjs +141 -0
  55. package/esm2022/lib/message.service.mjs +43 -0
  56. package/esm2022/lib/modal/modal.component.mjs +69 -0
  57. package/esm2022/lib/modal/stream-modal.module.mjs +19 -0
  58. package/esm2022/lib/notification/notification.component.mjs +20 -0
  59. package/esm2022/lib/notification-list/notification-list.component.mjs +36 -0
  60. package/esm2022/lib/notification-list/stream-notification.module.mjs +20 -0
  61. package/esm2022/lib/notification.service.mjs +79 -0
  62. package/esm2022/lib/paginated-list/paginated-list.component.mjs +94 -0
  63. package/esm2022/lib/paginated-list/stream-paginated-list.module.mjs +20 -0
  64. package/esm2022/lib/parse-date.mjs +27 -0
  65. package/esm2022/lib/polls/base-poll.component.mjs +87 -0
  66. package/esm2022/lib/polls/poll/poll.component.mjs +34 -0
  67. package/esm2022/lib/polls/poll-actions/add-option/add-option.component.mjs +67 -0
  68. package/esm2022/lib/polls/poll-actions/poll-actions.component.mjs +137 -0
  69. package/esm2022/lib/polls/poll-actions/poll-answers-list/poll-answers-list.component.mjs +82 -0
  70. package/esm2022/lib/polls/poll-actions/poll-results/poll-results-list/poll-results-list.component.mjs +63 -0
  71. package/esm2022/lib/polls/poll-actions/poll-results/poll-vote/poll-vote.component.mjs +33 -0
  72. package/esm2022/lib/polls/poll-actions/poll-results/poll-vote-results-list/poll-vote-results-list.component.mjs +82 -0
  73. package/esm2022/lib/polls/poll-actions/upsert-answer/upsert-answer.component.mjs +60 -0
  74. package/esm2022/lib/polls/poll-composer/poll-composer.component.mjs +134 -0
  75. package/esm2022/lib/polls/poll-composer/validators.mjs +18 -0
  76. package/esm2022/lib/polls/poll-header/poll-header.component.mjs +80 -0
  77. package/esm2022/lib/polls/poll-option-selector/poll-option-selector.component.mjs +137 -0
  78. package/esm2022/lib/polls/poll-options-list/poll-options-list.component.mjs +39 -0
  79. package/esm2022/lib/polls/poll-preview/poll-preview.component.mjs +31 -0
  80. package/esm2022/lib/polls/stream-polls.module.mjs +107 -0
  81. package/esm2022/lib/polls/unique.validator.mjs +13 -0
  82. package/esm2022/lib/read-by.mjs +13 -0
  83. package/esm2022/lib/stream-autocomplete-textarea.module.mjs +33 -0
  84. package/esm2022/lib/stream-avatar.module.mjs +20 -0
  85. package/esm2022/lib/stream-chat.module.mjs +163 -0
  86. package/esm2022/lib/stream-i18n.service.mjs +34 -0
  87. package/esm2022/lib/stream-textarea.module.mjs +31 -0
  88. package/esm2022/lib/theme.service.mjs +23 -0
  89. package/esm2022/lib/thread/thread.component.mjs +51 -0
  90. package/esm2022/lib/transliteration.service.mjs +24 -0
  91. package/esm2022/lib/types-custom.mjs +2 -0
  92. package/esm2022/lib/types.mjs +2 -0
  93. package/esm2022/lib/user-list/user-list.component.mjs +47 -0
  94. package/esm2022/lib/virtualized-list.service.mjs +271 -0
  95. package/esm2022/lib/virtualized-message-list.service.mjs +73 -0
  96. package/esm2022/lib/voice-recorder/amplitude-recorder.service.mjs +119 -0
  97. package/esm2022/lib/voice-recorder/audio-recorder.service.mjs +79 -0
  98. package/esm2022/lib/voice-recorder/media-recorder.mjs +190 -0
  99. package/esm2022/lib/voice-recorder/mp3-transcoder.mjs +61 -0
  100. package/esm2022/lib/voice-recorder/transcoder.service.mjs +121 -0
  101. package/esm2022/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +35 -0
  102. package/esm2022/lib/voice-recorder/voice-recorder.component.mjs +80 -0
  103. package/esm2022/lib/voice-recorder/voice-recorder.module.mjs +34 -0
  104. package/esm2022/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +112 -0
  105. package/esm2022/lib/voice-recording/voice-recording.component.mjs +91 -0
  106. package/esm2022/lib/voice-recording/voice-recording.module.mjs +21 -0
  107. package/esm2022/lib/wave-form-sampler.mjs +72 -0
  108. package/esm2022/public-api.mjs +104 -0
  109. package/esm2022/stream-chat-angular.mjs +5 -0
  110. package/esm2022/stream-chat.mjs +2 -0
  111. package/fesm2022/stream-chat-angular.mjs +10363 -0
  112. package/fesm2022/stream-chat-angular.mjs.map +1 -0
  113. package/index.d.ts +5 -0
  114. package/lib/attachment-configuration.service.d.ts +58 -0
  115. package/lib/attachment-list/attachment-list.component.d.ts +76 -0
  116. package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +37 -0
  117. package/lib/attachment.service.d.ts +104 -0
  118. package/lib/avatar/avatar.component.d.ts +64 -0
  119. package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +48 -0
  120. package/lib/channel/channel.component.d.ts +22 -0
  121. package/lib/channel-header/channel-header.component.d.ts +36 -0
  122. package/lib/channel-list/channel-list.component.d.ts +30 -0
  123. package/lib/channel-preview/channel-preview.component.d.ts +46 -0
  124. package/lib/channel-query.d.ts +26 -0
  125. package/lib/channel.service.d.ts +482 -0
  126. package/lib/chat-client.service.d.ts +91 -0
  127. package/lib/custom-templates.service.d.ts +258 -0
  128. package/lib/date-parser.service.d.ts +39 -0
  129. package/lib/file-utils.d.ts +9 -0
  130. package/lib/format-duration.d.ts +1 -0
  131. package/lib/get-channel-display-text.d.ts +2 -0
  132. package/lib/get-message-translation.d.ts +3 -0
  133. package/lib/icon/icon-placeholder/icon-placeholder.component.d.ts +20 -0
  134. package/lib/icon/icon.component.d.ts +14 -0
  135. package/lib/icon/icon.module.d.ts +11 -0
  136. package/lib/icon/loading-indicator/loading-indicator.component.d.ts +9 -0
  137. package/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +11 -0
  138. package/lib/injection-tokens.d.ts +3 -0
  139. package/lib/is-image-attachment.d.ts +2 -0
  140. package/lib/is-on-separate-date.d.ts +1 -0
  141. package/lib/is-safari.d.ts +1 -0
  142. package/lib/list-users.d.ts +2 -0
  143. package/lib/message/message.component.d.ts +126 -0
  144. package/lib/message-actions-box/message-actions-box.component.d.ts +49 -0
  145. package/lib/message-actions.service.d.ts +49 -0
  146. package/lib/message-blocked/message-blocked.component.d.ts +17 -0
  147. package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +28 -0
  148. package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +98 -0
  149. package/lib/message-input/emoji-input.service.d.ts +14 -0
  150. package/lib/message-input/message-input-config.service.d.ts +54 -0
  151. package/lib/message-input/message-input.component.d.ts +189 -0
  152. package/lib/message-input/textarea/textarea.component.d.ts +55 -0
  153. package/lib/message-input/textarea.directive.d.ts +24 -0
  154. package/lib/message-input/textarea.interface.d.ts +14 -0
  155. package/lib/message-input/voice-recorder.service.d.ts +19 -0
  156. package/lib/message-list/group-styles.d.ts +3 -0
  157. package/lib/message-list/message-list.component.d.ts +146 -0
  158. package/lib/message-preview.d.ts +2 -0
  159. package/lib/message-reactions/message-reactions.component.d.ts +69 -0
  160. package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +35 -0
  161. package/lib/message-reactions.service.d.ts +50 -0
  162. package/lib/message-text/message-text.component.d.ts +45 -0
  163. package/lib/message.service.d.ts +38 -0
  164. package/lib/modal/modal.component.d.ts +29 -0
  165. package/lib/modal/stream-modal.module.d.ts +9 -0
  166. package/lib/notification/notification.component.d.ts +19 -0
  167. package/lib/notification-list/notification-list.component.d.ts +23 -0
  168. package/lib/notification-list/stream-notification.module.d.ts +10 -0
  169. package/lib/notification.service.d.ts +38 -0
  170. package/lib/paginated-list/paginated-list.component.d.ts +45 -0
  171. package/lib/paginated-list/stream-paginated-list.module.d.ts +10 -0
  172. package/lib/parse-date.d.ts +1 -0
  173. package/lib/polls/base-poll.component.d.ts +43 -0
  174. package/lib/polls/poll/poll.component.d.ts +12 -0
  175. package/lib/polls/poll-actions/add-option/add-option.component.d.ts +22 -0
  176. package/lib/polls/poll-actions/poll-actions.component.d.ts +50 -0
  177. package/lib/polls/poll-actions/poll-answers-list/poll-answers-list.component.d.ts +25 -0
  178. package/lib/polls/poll-actions/poll-results/poll-results-list/poll-results-list.component.d.ts +22 -0
  179. package/lib/polls/poll-actions/poll-results/poll-vote/poll-vote.component.d.ts +20 -0
  180. package/lib/polls/poll-actions/poll-results/poll-vote-results-list/poll-vote-results-list.component.d.ts +24 -0
  181. package/lib/polls/poll-actions/upsert-answer/upsert-answer.component.d.ts +27 -0
  182. package/lib/polls/poll-composer/poll-composer.component.d.ts +43 -0
  183. package/lib/polls/poll-composer/validators.d.ts +3 -0
  184. package/lib/polls/poll-header/poll-header.component.d.ts +19 -0
  185. package/lib/polls/poll-option-selector/poll-option-selector.component.d.ts +27 -0
  186. package/lib/polls/poll-options-list/poll-options-list.component.d.ts +17 -0
  187. package/lib/polls/poll-preview/poll-preview.component.d.ts +13 -0
  188. package/lib/polls/stream-polls.module.d.ts +26 -0
  189. package/lib/polls/unique.validator.d.ts +2 -0
  190. package/lib/read-by.d.ts +2 -0
  191. package/lib/stream-autocomplete-textarea.module.d.ts +11 -0
  192. package/lib/stream-avatar.module.d.ts +10 -0
  193. package/lib/stream-chat.module.d.ts +35 -0
  194. package/lib/stream-i18n.service.d.ts +19 -0
  195. package/lib/stream-textarea.module.d.ts +9 -0
  196. package/lib/theme.service.d.ts +14 -0
  197. package/lib/thread/thread.component.d.ts +26 -0
  198. package/lib/transliteration.service.d.ts +15 -0
  199. package/lib/types-custom.d.ts +16 -0
  200. package/lib/types.d.ts +365 -0
  201. package/lib/user-list/user-list.component.d.ts +29 -0
  202. package/lib/virtualized-list.service.d.ts +58 -0
  203. package/lib/virtualized-message-list.service.d.ts +15 -0
  204. package/lib/voice-recorder/amplitude-recorder.service.d.ts +71 -0
  205. package/lib/voice-recorder/audio-recorder.service.d.ts +46 -0
  206. package/lib/voice-recorder/media-recorder.d.ts +46 -0
  207. package/lib/voice-recorder/mp3-transcoder.d.ts +1 -0
  208. package/lib/voice-recorder/transcoder.service.d.ts +40 -0
  209. package/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.d.ts +21 -0
  210. package/lib/voice-recorder/voice-recorder.component.d.ts +30 -0
  211. package/lib/voice-recorder/voice-recorder.module.d.ts +12 -0
  212. package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +36 -0
  213. package/lib/voice-recording/voice-recording.component.d.ts +29 -0
  214. package/lib/voice-recording/voice-recording.module.d.ts +11 -0
  215. package/lib/wave-form-sampler.d.ts +1 -0
  216. package/package.json +62 -4
  217. package/public-api.d.ts +99 -0
  218. package/src/assets/assets/EmojiOneColor.woff2 +0 -0
  219. package/src/assets/assets/NotoColorEmoji-flags.woff2 +0 -0
  220. package/src/assets/assets/icons/stream-chat-icons.eot +0 -0
  221. package/src/assets/assets/icons/stream-chat-icons.svg +50 -0
  222. package/src/assets/assets/icons/stream-chat-icons.ttf +0 -0
  223. package/src/assets/assets/icons/stream-chat-icons.woff +0 -0
  224. package/src/assets/assets/icons/stream-chat-icons.woff2 +0 -0
  225. package/src/assets/i18n/en.ts +184 -0
  226. package/src/assets/styles/css/emoji-mart.css +1 -0
  227. package/src/assets/styles/css/emoji-replacement.css +1 -0
  228. package/src/assets/styles/css/index.css +1 -0
  229. package/src/assets/styles/css/index.layout.css +1 -0
  230. package/src/assets/styles/scss/AIStateIndicator/AIStateIndicator-layout.scss +3 -0
  231. package/src/assets/styles/scss/AIStateIndicator/AIStateIndicator-theme.scss +7 -0
  232. package/src/assets/styles/scss/AttachmentList/AttachmentList-layout.scss +701 -0
  233. package/src/assets/styles/scss/AttachmentList/AttachmentList-theme.scss +605 -0
  234. package/src/assets/styles/scss/AttachmentPreviewList/AttachmentPreviewList-layout.scss +141 -0
  235. package/src/assets/styles/scss/AttachmentPreviewList/AttachmentPreviewList-theme.scss +190 -0
  236. package/src/assets/styles/scss/AudioRecorder/AudioRecorder-layout.scss +139 -0
  237. package/src/assets/styles/scss/AudioRecorder/AudioRecorder-theme.scss +61 -0
  238. package/src/assets/styles/scss/Autocomplete/Autocomplete-layout.scss +94 -0
  239. package/src/assets/styles/scss/Autocomplete/Autocomplete-theme.scss +220 -0
  240. package/src/assets/styles/scss/Avatar/Avatar-layout.scss +137 -0
  241. package/src/assets/styles/scss/Avatar/Avatar-theme.scss +64 -0
  242. package/src/assets/styles/scss/BaseImage/BaseImage-layout.scss +21 -0
  243. package/src/assets/styles/scss/BaseImage/BaseImage-theme.scss +35 -0
  244. package/src/assets/styles/scss/BaseImage/index.scss +2 -0
  245. package/src/assets/styles/scss/Channel/Channel-layout.scss +141 -0
  246. package/src/assets/styles/scss/Channel/Channel-theme.scss +100 -0
  247. package/src/assets/styles/scss/ChannelHeader/ChannelHeader-layout.scss +27 -0
  248. package/src/assets/styles/scss/ChannelHeader/ChannelHeader-theme.scss +43 -0
  249. package/src/assets/styles/scss/ChannelList/ChannelList-layout.scss +65 -0
  250. package/src/assets/styles/scss/ChannelList/ChannelList-theme.scss +89 -0
  251. package/src/assets/styles/scss/ChannelPreview/ChannelPreview-layout.scss +126 -0
  252. package/src/assets/styles/scss/ChannelPreview/ChannelPreview-theme.scss +148 -0
  253. package/src/assets/styles/scss/ChannelSearch/ChannelSearch-layout.scss +122 -0
  254. package/src/assets/styles/scss/ChannelSearch/ChannelSearch-theme.scss +238 -0
  255. package/src/assets/styles/scss/ChatView/ChatView-layout.scss +43 -0
  256. package/src/assets/styles/scss/ChatView/ChatView-theme.scss +32 -0
  257. package/src/assets/styles/scss/Dialog/Dialog-layout.scss +70 -0
  258. package/src/assets/styles/scss/Dialog/Dialog-theme.scss +103 -0
  259. package/src/assets/styles/scss/DragAndDropContainer/DragAndDropContainer-layout.scss +5 -0
  260. package/src/assets/styles/scss/DragAndDropContainer/DragAndDropContainer-theme.scss +47 -0
  261. package/src/assets/styles/scss/DropzoneContainer/DropzoneContainer-layout.scss +14 -0
  262. package/src/assets/styles/scss/DropzoneContainer/DropzoneContainer-theme.scss +17 -0
  263. package/src/assets/styles/scss/EditMessageForm/EditMessageForm-layout.scss +51 -0
  264. package/src/assets/styles/scss/EditMessageForm/EditMessageForm-theme.scss +50 -0
  265. package/src/assets/styles/scss/Form/Form-layout.scss +49 -0
  266. package/src/assets/styles/scss/Form/Form-theme.scss +82 -0
  267. package/src/assets/styles/scss/Icon/Icon-layout.scss +98 -0
  268. package/src/assets/styles/scss/Icon/Icon-theme.scss +17 -0
  269. package/src/assets/styles/scss/ImageCarousel/ImageCarousel-layout.scss +51 -0
  270. package/src/assets/styles/scss/ImageCarousel/ImageCarousel-theme.scss +30 -0
  271. package/src/assets/styles/scss/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +4 -0
  272. package/src/assets/styles/scss/LinkPreview/LinkPreview-layout.scss +67 -0
  273. package/src/assets/styles/scss/LinkPreview/LinkPreview-theme.scss +32 -0
  274. package/src/assets/styles/scss/LinkPreview/index.scss +2 -0
  275. package/src/assets/styles/scss/LoadingIndicator/LoadingIndicator-layout.scss +64 -0
  276. package/src/assets/styles/scss/LoadingIndicator/LoadingIndicator-theme.scss +14 -0
  277. package/src/assets/styles/scss/Location/Location-layout.scss +52 -0
  278. package/src/assets/styles/scss/Location/Location-theme.scss +32 -0
  279. package/src/assets/styles/scss/Message/Message-layout.scss +605 -0
  280. package/src/assets/styles/scss/Message/Message-theme.scss +483 -0
  281. package/src/assets/styles/scss/MessageActionsBox/MessageActionsBox-layout.scss +20 -0
  282. package/src/assets/styles/scss/MessageActionsBox/MessageActionsBox-theme.scss +85 -0
  283. package/src/assets/styles/scss/MessageBouncePrompt/MessageBouncePrompt-layout.scss +19 -0
  284. package/src/assets/styles/scss/MessageBouncePrompt/MessageBouncePrompt-theme.scss +51 -0
  285. package/src/assets/styles/scss/MessageInput/MessageInput-layout.scss +268 -0
  286. package/src/assets/styles/scss/MessageInput/MessageInput-theme.scss +359 -0
  287. package/src/assets/styles/scss/MessageList/MessageList-layout.scss +65 -0
  288. package/src/assets/styles/scss/MessageList/MessageList-theme.scss +107 -0
  289. package/src/assets/styles/scss/MessageList/VirtualizedMessageList-layout.scss +57 -0
  290. package/src/assets/styles/scss/MessageList/VirtualizedMessageList-theme.scss +41 -0
  291. package/src/assets/styles/scss/MessageReactions/MessageReactions-layout.scss +143 -0
  292. package/src/assets/styles/scss/MessageReactions/MessageReactions-theme.scss +92 -0
  293. package/src/assets/styles/scss/MessageReactions/MessageReactionsSelector-layout.scss +86 -0
  294. package/src/assets/styles/scss/MessageReactions/MessageReactionsSelector-theme.scss +94 -0
  295. package/src/assets/styles/scss/Modal/Modal-layout.scss +74 -0
  296. package/src/assets/styles/scss/Modal/Modal-theme.scss +109 -0
  297. package/src/assets/styles/scss/Notification/MessageNotification-layout.scss +12 -0
  298. package/src/assets/styles/scss/Notification/MessageNotification-theme.scss +34 -0
  299. package/src/assets/styles/scss/Notification/Notification-layout.scss +7 -0
  300. package/src/assets/styles/scss/Notification/Notification-theme.scss +32 -0
  301. package/src/assets/styles/scss/Notification/NotificationList-layout.scss +11 -0
  302. package/src/assets/styles/scss/Notification/NotificationList-theme.scss +31 -0
  303. package/src/assets/styles/scss/Poll/Poll-layout.scss +489 -0
  304. package/src/assets/styles/scss/Poll/Poll-theme.scss +178 -0
  305. package/src/assets/styles/scss/Search/Search-layout.scss +148 -0
  306. package/src/assets/styles/scss/Search/Search-theme.scss +222 -0
  307. package/src/assets/styles/scss/Thread/Thread-layout.scss +65 -0
  308. package/src/assets/styles/scss/Thread/Thread-theme.scss +82 -0
  309. package/src/assets/styles/scss/ThreadList/ThreadList-layout.scss +152 -0
  310. package/src/assets/styles/scss/ThreadList/ThreadList-theme.scss +75 -0
  311. package/src/assets/styles/scss/Tooltip/Tooltip-layout.scss +10 -0
  312. package/src/assets/styles/scss/Tooltip/Tooltip-theme.scss +36 -0
  313. package/src/assets/styles/scss/TypingIndicator/TypingIndicator-layout.scss +31 -0
  314. package/src/assets/styles/scss/TypingIndicator/TypingIndicator-theme.scss +68 -0
  315. package/src/assets/styles/scss/UnreadCountBadge/UnreadCountBadge-layout.scss +49 -0
  316. package/src/assets/styles/scss/UnreadCountBadge/UnreadCountBadge-theme.scss +11 -0
  317. package/src/assets/styles/scss/_base.scss +65 -0
  318. package/src/assets/styles/scss/_emoji-replacement.scss +45 -0
  319. package/src/assets/styles/scss/_global-layout-variables.scss +65 -0
  320. package/src/assets/styles/scss/_global-theme-variables.scss +173 -0
  321. package/src/assets/styles/scss/_icons.scss +36 -0
  322. package/src/assets/styles/scss/_palette-variables.scss +55 -0
  323. package/src/assets/styles/scss/_utils.scss +212 -0
  324. package/src/assets/styles/scss/_variables.scss +2 -0
  325. package/src/assets/styles/scss/common/CTAButton/CTAButton-layout.scss +4 -0
  326. package/src/assets/styles/scss/common/CTAButton/CTAButton-theme.scss +42 -0
  327. package/src/assets/styles/scss/common/CircleFAButton/CircleFAButton-layout.scss +14 -0
  328. package/src/assets/styles/scss/common/CircleFAButton/CircleFAButton-theme.scss +35 -0
  329. package/src/assets/styles/scss/index.layout.scss +49 -0
  330. package/src/assets/styles/scss/index.scss +50 -0
  331. package/src/assets/styles/scss/vendor/emoji-mart.scss +514 -0
  332. package/src/assets/styles/scss/vendor/react-image-gallery.scss +258 -0
  333. package/src/assets/version.ts +1 -0
@@ -0,0 +1,22 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { BasePollComponent } from '../../base-poll.component';
3
+ import { Poll, PollOption } from 'stream-chat';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ *
7
+ */
8
+ export declare class AddOptionComponent extends BasePollComponent {
9
+ class: string;
10
+ /**
11
+ * The callback to close the modal the component is displayed in
12
+ */
13
+ closeModal: () => void;
14
+ formGroup: FormGroup<{
15
+ text: FormControl<string | null>;
16
+ }>;
17
+ options: PollOption[];
18
+ addOption(): Promise<void>;
19
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddOptionComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddOptionComponent, "stream-add-option", never, { "closeModal": { "alias": "closeModal"; "required": false; }; }, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,50 @@
1
+ import { ChangeDetectorRef, TemplateRef } from '@angular/core';
2
+ import { BasePollComponent } from '../base-poll.component';
3
+ import { Poll, PollAnswer, PollOption } from 'stream-chat';
4
+ import { ModalContext } from '../../types';
5
+ import { CustomTemplatesService } from '../../custom-templates.service';
6
+ import { ChatClientService } from '../../chat-client.service';
7
+ import { ChannelService } from '../../channel.service';
8
+ import { MessageActionsService } from '../../message-actions.service';
9
+ import { NotificationService } from '../../notification.service';
10
+ import * as i0 from "@angular/core";
11
+ type Action = 'allOptions' | 'suggestOption' | 'addAnswer' | 'viewComments' | 'viewResults' | 'endVote';
12
+ /**
13
+ *
14
+ */
15
+ export declare class PollActionsComponent extends BasePollComponent {
16
+ private messageService;
17
+ /**
18
+ * If there are more options than this number, the "See all options" button will be displayed
19
+ */
20
+ maxOptionsDisplayed: number | undefined;
21
+ /**
22
+ * The maximum number of options allowed for the poll, this is defined by Stream API
23
+ */
24
+ maxPollOptions: number;
25
+ name: string;
26
+ options: PollOption[];
27
+ isClosed: boolean;
28
+ allowUserSuggestions: boolean;
29
+ allowAnswers: boolean;
30
+ answerCount: number;
31
+ isOwnPoll: boolean;
32
+ ownAnwer: PollAnswer | undefined;
33
+ selectedAction: Action | undefined;
34
+ isModalOpen: boolean;
35
+ allOptions: TemplateRef<void>;
36
+ suggestOption: TemplateRef<void>;
37
+ addAnswer: TemplateRef<void>;
38
+ viewComments: TemplateRef<void>;
39
+ viewResults: TemplateRef<void>;
40
+ endVote: TemplateRef<void>;
41
+ constructor(customTemplatesService: CustomTemplatesService, chatClientService: ChatClientService, cdRef: ChangeDetectorRef, channelService: ChannelService, notificationService: NotificationService, messageService: MessageActionsService);
42
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
43
+ modalOpened: (action: Action) => void;
44
+ modalClosed: () => void;
45
+ closePoll(): Promise<void>;
46
+ getModalContext(): ModalContext;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollActionsComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollActionsComponent, "stream-poll-actions", never, { "maxOptionsDisplayed": { "alias": "maxOptionsDisplayed"; "required": false; }; "maxPollOptions": { "alias": "maxPollOptions"; "required": false; }; }, {}, never, never, false, never>;
49
+ }
50
+ export {};
@@ -0,0 +1,25 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { BasePollComponent } from '../../base-poll.component';
3
+ import { Poll, PollAnswer } from 'stream-chat';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ *
7
+ */
8
+ export declare class PollAnswersListComponent extends BasePollComponent implements OnChanges {
9
+ class: string;
10
+ /**
11
+ * The even that's emitted when the update/add comment button is clicked
12
+ */
13
+ readonly upsertOwnAnswer: EventEmitter<void>;
14
+ isLoading: boolean;
15
+ next?: string | undefined;
16
+ answers: PollAnswer[];
17
+ isClosed: boolean;
18
+ ownAnswer: PollAnswer | undefined;
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ queryAnswers(): Promise<void>;
21
+ trackByAnswerId(_: number, answer: PollAnswer): string;
22
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollAnswersListComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollAnswersListComponent, "stream-poll-answers-list", never, {}, { "upsertOwnAnswer": "upsertOwnAnswer"; }, never, never, false, never>;
25
+ }
@@ -0,0 +1,22 @@
1
+ import { BasePollComponent } from '../../../base-poll.component';
2
+ import { Poll, PollOption, PollVote } from 'stream-chat';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ *
6
+ */
7
+ export declare class PollResultsListComponent extends BasePollComponent {
8
+ class: string;
9
+ name: string;
10
+ options: PollOption[];
11
+ optionToView: PollOption | undefined;
12
+ votePreviewCount: number;
13
+ maxVotedOptionIds: string[];
14
+ voteCountsByOption: Record<string, number>;
15
+ latestVotesByOption: Record<string, PollVote[]>;
16
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
17
+ isWinner(optionId: string): boolean;
18
+ trackByOptionId(_: number, option: PollOption): string;
19
+ trackByVoteId(_: number, vote: PollVote): string;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollResultsListComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollResultsListComponent, "stream-poll-results-list", never, {}, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,20 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { PollAnswer, PollVote } from 'stream-chat';
3
+ import { DateParserService } from '../../../../date-parser.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ *
7
+ */
8
+ export declare class PollVoteComponent {
9
+ private translateService;
10
+ private dateParser;
11
+ /**
12
+ * The poll vote or answer to display
13
+ */
14
+ vote: PollVote | PollAnswer | undefined;
15
+ anonymousTranslation: string;
16
+ constructor(translateService: TranslateService, dateParser: DateParserService);
17
+ parseDate(date: string): string;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollVoteComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollVoteComponent, "stream-poll-vote", never, { "vote": { "alias": "vote"; "required": false; }; }, {}, never, never, false, never>;
20
+ }
@@ -0,0 +1,24 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { BasePollComponent } from '../../../base-poll.component';
3
+ import { Poll, PollOption, PollVote } from 'stream-chat';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ *
7
+ */
8
+ export declare class PollVoteResultsListComponent extends BasePollComponent implements OnChanges {
9
+ /**
10
+ * The poll option to display the votes for
11
+ */
12
+ option: PollOption | undefined;
13
+ isWinner: boolean;
14
+ voteCount: number;
15
+ isLoading: boolean;
16
+ next?: string | undefined;
17
+ votes: PollVote[];
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ loadVotes(): Promise<void>;
20
+ trackByVoteId: (_: number, vote: PollVote) => string;
21
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollVoteResultsListComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollVoteResultsListComponent, "stream-poll-vote-results-list", never, { "option": { "alias": "option"; "required": false; }; }, {}, never, never, false, never>;
24
+ }
@@ -0,0 +1,27 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { FormControl, FormGroup } from '@angular/forms';
3
+ import { Poll, PollAnswer } from 'stream-chat';
4
+ import { BasePollComponent } from '../../base-poll.component';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ *
8
+ */
9
+ export declare class UpsertAnswerComponent extends BasePollComponent implements OnChanges {
10
+ class: string;
11
+ /**
12
+ * The poll comment to edit, when in edit mode
13
+ */
14
+ answer: PollAnswer | undefined;
15
+ /**
16
+ * The callback to close the modal the component is displayed in
17
+ */
18
+ closeModal: () => void;
19
+ formGroup: FormGroup<{
20
+ comment: FormControl<string | null>;
21
+ }>;
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ addComment(): Promise<void>;
24
+ protected stateStoreSelector(_: Poll, __: () => void): () => void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<UpsertAnswerComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<UpsertAnswerComponent, "stream-upsert-answer", never, { "answer": { "alias": "answer"; "required": false; }; "closeModal": { "alias": "closeModal"; "required": false; }; }, {}, never, never, false, never>;
27
+ }
@@ -0,0 +1,43 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormArray, FormControl, FormGroup } from '@angular/forms';
3
+ import { CustomTemplatesService } from '../../custom-templates.service';
4
+ import { ModalContext } from '../../types';
5
+ import { ChatClientService } from '../../chat-client.service';
6
+ import { NotificationService } from '../../notification.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ *
10
+ */
11
+ export declare class PollComposerComponent {
12
+ readonly customTemplatesService: CustomTemplatesService;
13
+ private chatService;
14
+ private notificationService;
15
+ /**
16
+ * Emitted when a poll is created, the poll id is emitted
17
+ */
18
+ readonly pollCompose: EventEmitter<string>;
19
+ /**
20
+ * Emitted when the poll composing is cancelled
21
+ */
22
+ readonly cancel: EventEmitter<void>;
23
+ formGroup: FormGroup<{
24
+ name: FormControl<string | null>;
25
+ options: FormArray<FormControl<string | null>>;
26
+ multiple_answers: FormControl<boolean | null>;
27
+ maximum_number_of_votes: FormControl<null>;
28
+ is_anonymous: FormControl<boolean | null>;
29
+ allow_user_suggested_options: FormControl<boolean | null>;
30
+ allow_answers: FormControl<boolean | null>;
31
+ }>;
32
+ isModalOpen: boolean;
33
+ private formContent;
34
+ constructor(customTemplatesService: CustomTemplatesService, chatService: ChatClientService, notificationService: NotificationService);
35
+ optionChanged(index: number): void;
36
+ get options(): FormArray<FormControl<string | null>>;
37
+ addOption(): void;
38
+ removeLastOption(): void;
39
+ getModalContext(): ModalContext;
40
+ createPoll(): Promise<void>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollComposerComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollComposerComponent, "stream-poll-composer", never, {}, { "pollCompose": "pollCompose"; "cancel": "cancel"; }, never, never, false, never>;
43
+ }
@@ -0,0 +1,3 @@
1
+ import { FormControl, ValidatorFn } from '@angular/forms';
2
+ export declare function atLeastOneOption(): ValidatorFn;
3
+ export declare function maximumNumberOfVotes(canHaveMultipleVotes: FormControl<boolean>): ValidatorFn;
@@ -0,0 +1,19 @@
1
+ import { Poll, PollState } from 'stream-chat';
2
+ import { BasePollComponent } from '../base-poll.component';
3
+ import * as i0 from "@angular/core";
4
+ type SelectionInstructions = {
5
+ text: string;
6
+ count: number | undefined;
7
+ };
8
+ /**
9
+ *
10
+ */
11
+ export declare class PollHeaderComponent extends BasePollComponent {
12
+ name: string;
13
+ selectionInstructions: SelectionInstructions;
14
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
15
+ getSelectionInstructions(state: Pick<PollState, 'is_closed' | 'enforce_unique_vote' | 'max_votes_allowed' | 'options'>): SelectionInstructions;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollHeaderComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollHeaderComponent, "stream-poll-header", never, {}, {}, never, never, false, never>;
18
+ }
19
+ export {};
@@ -0,0 +1,27 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { BasePollComponent } from '../base-poll.component';
3
+ import { Poll, PollOption, PollVote, VotingVisibility } from 'stream-chat';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ *
7
+ */
8
+ export declare class PollOptionSelectorComponent extends BasePollComponent implements OnChanges {
9
+ option: PollOption | undefined;
10
+ displayAvatarCount: number;
11
+ voteCountVerbose: boolean;
12
+ isClosed: boolean;
13
+ latestVotes: PollVote[];
14
+ isWinner: boolean;
15
+ ownVote: PollVote | undefined;
16
+ voteCount: number;
17
+ votingVisibility: VotingVisibility | undefined;
18
+ winningOptionCount: number;
19
+ maxVoteAllowedCount: number;
20
+ ownVoteCount: number;
21
+ ngOnChanges(changes: SimpleChanges): void;
22
+ toggleVote(): Promise<void>;
23
+ trackByVoteId(_: number, vote: PollVote): string;
24
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollOptionSelectorComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollOptionSelectorComponent, "stream-poll-option-selector", never, { "option": { "alias": "option"; "required": false; }; "displayAvatarCount": { "alias": "displayAvatarCount"; "required": false; }; "voteCountVerbose": { "alias": "voteCountVerbose"; "required": false; }; }, {}, never, never, false, never>;
27
+ }
@@ -0,0 +1,17 @@
1
+ import { BasePollComponent } from '../base-poll.component';
2
+ import { Poll, PollOption } from 'stream-chat';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ *
6
+ */
7
+ export declare class PollOptionsListComponent extends BasePollComponent {
8
+ /**
9
+ * How many options should be displayed. If there are more options than this number, use the poll actions to display all options
10
+ */
11
+ maxOptionsDisplayed: number | undefined;
12
+ options: PollOption[];
13
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
14
+ trackByOptionId(_: number, option: PollOption): string;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollOptionsListComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollOptionsListComponent, "stream-poll-options-list", never, { "maxOptionsDisplayed": { "alias": "maxOptionsDisplayed"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,13 @@
1
+ import { BasePollComponent } from '../base-poll.component';
2
+ import { Poll } from 'stream-chat';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ *
6
+ */
7
+ export declare class PollPreviewComponent extends BasePollComponent {
8
+ name: string;
9
+ isClosed: boolean;
10
+ protected stateStoreSelector(poll: Poll, markForCheck: () => void): () => void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PollPreviewComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<PollPreviewComponent, "stream-poll-preview", never, {}, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,26 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./poll-composer/poll-composer.component";
3
+ import * as i2 from "./poll/poll.component";
4
+ import * as i3 from "./poll-header/poll-header.component";
5
+ import * as i4 from "./poll-options-list/poll-options-list.component";
6
+ import * as i5 from "./poll-option-selector/poll-option-selector.component";
7
+ import * as i6 from "./poll-actions/poll-actions.component";
8
+ import * as i7 from "./poll-actions/poll-results/poll-results-list/poll-results-list.component";
9
+ import * as i8 from "./poll-actions/poll-results/poll-vote-results-list/poll-vote-results-list.component";
10
+ import * as i9 from "./poll-actions/poll-results/poll-vote/poll-vote.component";
11
+ import * as i10 from "./poll-actions/poll-answers-list/poll-answers-list.component";
12
+ import * as i11 from "./poll-actions/upsert-answer/upsert-answer.component";
13
+ import * as i12 from "./poll-actions/add-option/add-option.component";
14
+ import * as i13 from "./poll-preview/poll-preview.component";
15
+ import * as i14 from "@angular/common";
16
+ import * as i15 from "@ngx-translate/core";
17
+ import * as i16 from "../stream-avatar.module";
18
+ import * as i17 from "../modal/stream-modal.module";
19
+ import * as i18 from "../notification-list/stream-notification.module";
20
+ import * as i19 from "../paginated-list/stream-paginated-list.module";
21
+ import * as i20 from "@angular/forms";
22
+ export declare class StreamPollsModule {
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<StreamPollsModule, never>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamPollsModule, [typeof i1.PollComposerComponent, typeof i2.PollComponent, typeof i3.PollHeaderComponent, typeof i4.PollOptionsListComponent, typeof i5.PollOptionSelectorComponent, typeof i6.PollActionsComponent, typeof i7.PollResultsListComponent, typeof i8.PollVoteResultsListComponent, typeof i9.PollVoteComponent, typeof i10.PollAnswersListComponent, typeof i11.UpsertAnswerComponent, typeof i12.AddOptionComponent, typeof i13.PollPreviewComponent], [typeof i14.CommonModule, typeof i15.TranslatePipe, typeof i16.StreamAvatarModule, typeof i17.StreamModalModule, typeof i18.StreamNotificationModule, typeof i19.StreamPaginatedListModule, typeof i20.ReactiveFormsModule], [typeof i1.PollComposerComponent, typeof i2.PollComponent, typeof i3.PollHeaderComponent, typeof i4.PollOptionsListComponent, typeof i5.PollOptionSelectorComponent, typeof i6.PollActionsComponent, typeof i7.PollResultsListComponent, typeof i8.PollVoteResultsListComponent, typeof i9.PollVoteComponent, typeof i10.PollAnswersListComponent, typeof i11.UpsertAnswerComponent, typeof i12.AddOptionComponent, typeof i13.PollPreviewComponent]>;
25
+ static ɵinj: i0.ɵɵInjectorDeclaration<StreamPollsModule>;
26
+ }
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare function createUniqueValidator(isUnique: (v: string) => boolean): ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { Channel, FormatMessageResponse, UserResponse } from 'stream-chat';
2
+ export declare const getReadBy: (message: FormatMessageResponse, channel: Channel) => UserResponse[];
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./message-input/autocomplete-textarea/autocomplete-textarea.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@ngx-translate/core";
5
+ import * as i4 from "@stream-io/angular-mentions";
6
+ import * as i5 from "./stream-avatar.module";
7
+ export declare class StreamAutocompleteTextareaModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<StreamAutocompleteTextareaModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamAutocompleteTextareaModule, [typeof i1.AutocompleteTextareaComponent], [typeof i2.CommonModule, typeof i3.TranslatePipe, typeof i4.MentionModule, typeof i5.StreamAvatarModule], [typeof i1.AutocompleteTextareaComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<StreamAutocompleteTextareaModule>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./avatar/avatar.component";
3
+ import * as i2 from "./avatar-placeholder/avatar-placeholder.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@ngx-translate/core";
6
+ export declare class StreamAvatarModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<StreamAvatarModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamAvatarModule, [typeof i1.AvatarComponent, typeof i2.AvatarPlaceholderComponent], [typeof i3.CommonModule, typeof i4.TranslatePipe], [typeof i1.AvatarComponent, typeof i2.AvatarPlaceholderComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<StreamAvatarModule>;
10
+ }
@@ -0,0 +1,35 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./channel/channel.component";
3
+ import * as i2 from "./channel-header/channel-header.component";
4
+ import * as i3 from "./channel-list/channel-list.component";
5
+ import * as i4 from "./channel-preview/channel-preview.component";
6
+ import * as i5 from "./message/message.component";
7
+ import * as i6 from "./message-input/message-input.component";
8
+ import * as i7 from "./message-list/message-list.component";
9
+ import * as i8 from "./message-actions-box/message-actions-box.component";
10
+ import * as i9 from "./attachment-list/attachment-list.component";
11
+ import * as i10 from "./message-reactions/message-reactions.component";
12
+ import * as i11 from "./attachment-preview-list/attachment-preview-list.component";
13
+ import * as i12 from "./message-input/textarea.directive";
14
+ import * as i13 from "./thread/thread.component";
15
+ import * as i14 from "./message-bounce-prompt/message-bounce-prompt.component";
16
+ import * as i15 from "./message-reactions-selector/message-reactions-selector.component";
17
+ import * as i16 from "./user-list/user-list.component";
18
+ import * as i17 from "./message-text/message-text.component";
19
+ import * as i18 from "./message-blocked/message-blocked.component";
20
+ import * as i19 from "@angular/common";
21
+ import * as i20 from "ngx-float-ui";
22
+ import * as i21 from "./stream-avatar.module";
23
+ import * as i22 from "@ngx-translate/core";
24
+ import * as i23 from "./voice-recording/voice-recording.module";
25
+ import * as i24 from "./icon/icon.module";
26
+ import * as i25 from "./modal/stream-modal.module";
27
+ import * as i26 from "./notification-list/stream-notification.module";
28
+ import * as i27 from "./paginated-list/stream-paginated-list.module";
29
+ import * as i28 from "./notification/notification.component";
30
+ import * as i29 from "./notification-list/notification-list.component";
31
+ export declare class StreamChatModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<StreamChatModule, never>;
33
+ 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.MessageActionsBoxComponent, typeof i9.AttachmentListComponent, typeof i10.MessageReactionsComponent, typeof i11.AttachmentPreviewListComponent, typeof i12.TextareaDirective, typeof i13.ThreadComponent, typeof i14.MessageBouncePromptComponent, typeof i15.MessageReactionsSelectorComponent, typeof i16.UserListComponent, typeof i17.MessageTextComponent, typeof i18.MessageBlockedComponent], [typeof i19.CommonModule, typeof i20.NgxFloatUiModule, typeof i21.StreamAvatarModule, typeof i22.TranslatePipe, typeof i23.VoiceRecordingModule, typeof i24.IconModule, typeof i25.StreamModalModule, typeof i26.StreamNotificationModule, typeof i27.StreamPaginatedListModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.MessageActionsBoxComponent, typeof i9.AttachmentListComponent, typeof i10.MessageReactionsComponent, typeof i28.NotificationComponent, typeof i29.NotificationListComponent, typeof i11.AttachmentPreviewListComponent, typeof i25.StreamModalModule, typeof i21.StreamAvatarModule, typeof i13.ThreadComponent, typeof i14.MessageBouncePromptComponent, typeof i23.VoiceRecordingModule, typeof i15.MessageReactionsSelectorComponent, typeof i16.UserListComponent, typeof i27.StreamPaginatedListModule, typeof i24.IconModule, typeof i17.MessageTextComponent, typeof i18.MessageBlockedComponent, typeof i26.StreamNotificationModule]>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<StreamChatModule>;
35
+ }
@@ -0,0 +1,19 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](/chat/docs/sdk/angular/concepts/translation/) covers this topic in detail.
5
+ */
6
+ export declare class StreamI18nService {
7
+ private translateService;
8
+ constructor(translateService: TranslateService);
9
+ /**
10
+ * Registers the translation to the [ngx-translate](https://github.com/ngx-translate/core) TranslateService.
11
+ * @param lang The language key to register the translation to
12
+ * @param overrides An object which keys are translation keys, and the values are custom translations
13
+ */
14
+ setTranslation(lang?: string, overrides?: {
15
+ [key: string]: string;
16
+ }): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<StreamI18nService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<StreamI18nService>;
19
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./message-input/textarea/textarea.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@ngx-translate/core";
5
+ export declare class StreamTextareaModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<StreamTextareaModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamTextareaModule, [typeof i1.TextareaComponent], [typeof i2.CommonModule, typeof i3.TranslatePipe], [typeof i1.TextareaComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<StreamTextareaModule>;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](/chat/docs/sdk/angular/theming/themingv2/) gives a complete overview about the topic.
5
+ */
6
+ export declare class ThemeService {
7
+ /**
8
+ * A Subject that can be used to get or set the currently active theme. By default light and dark themes are supported.
9
+ */
10
+ theme$: BehaviorSubject<string>;
11
+ constructor();
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
14
+ }
@@ -0,0 +1,26 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Channel } from 'stream-chat';
3
+ import { ChatClientService } from '../chat-client.service';
4
+ import { ChannelService } from '../channel.service';
5
+ import { CustomTemplatesService } from '../custom-templates.service';
6
+ import { StreamMessage, ThreadHeaderContext } from '../types';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * The `Thread` component represents a [message thread](/chat/docs/javascript/threads/), it is a container component that displays a thread with a header, [`MessageList`](/chat/docs/sdk/angular/components/MessageListComponent) and [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) components.
10
+ */
11
+ export declare class ThreadComponent implements OnDestroy {
12
+ customTemplatesService: CustomTemplatesService;
13
+ private channelService;
14
+ private chatClientService;
15
+ private class;
16
+ parentMessage: StreamMessage | undefined;
17
+ channel: Channel | undefined;
18
+ private subscriptions;
19
+ constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, chatClientService: ChatClientService);
20
+ ngOnDestroy(): void;
21
+ getThreadHeaderContext(): ThreadHeaderContext;
22
+ closeThread(): void;
23
+ get channelName(): string | undefined;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThreadComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThreadComponent, "stream-thread", never, {}, {}, never, ["*"], false, never>;
26
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * The `TransliterationService` wraps the [@sindresorhus/transliterate](https://www.npmjs.com/package/@sindresorhus/transliterate) library
4
+ */
5
+ export declare class TransliterationService {
6
+ constructor();
7
+ /**
8
+ *
9
+ * @param s the string to be transliterated
10
+ * @returns the result of the transliteration
11
+ */
12
+ transliterate(s: string): string;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransliterationService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<TransliterationService>;
15
+ }
@@ -0,0 +1,16 @@
1
+ export interface DefaultChannelData {
2
+ image?: string;
3
+ name?: string;
4
+ }
5
+ export interface DefaultAttachmentData {
6
+ /**
7
+ * @deprecated Please use `image_url` instead
8
+ */
9
+ img_url?: string;
10
+ /**
11
+ * Will be `true` if an attachment was added using `attachmentService.addAttachment`
12
+ *
13
+ * This is a non-standard property, other SDKs will ignore this property
14
+ */
15
+ isCustomAttachment?: boolean;
16
+ }