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.
- package/assets/version.d.ts +1 -1
- package/{esm2015/assets/version.js → esm2020/assets/version.mjs} +2 -2
- package/esm2020/lib/attachment-configuration.service.mjs +185 -0
- package/esm2020/lib/attachment-list/attachment-list.component.mjs +203 -0
- package/esm2020/lib/attachment-preview-list/attachment-preview-list.component.mjs +42 -0
- package/esm2020/lib/attachment.service.mjs +262 -0
- package/esm2020/lib/avatar/avatar.component.mjs +163 -0
- package/esm2020/lib/avatar-placeholder/avatar-placeholder.component.mjs +74 -0
- package/esm2020/lib/channel/channel.component.mjs +46 -0
- package/esm2020/lib/channel-header/channel-header.component.mjs +72 -0
- package/esm2020/lib/channel-list/channel-list.component.mjs +51 -0
- package/esm2020/lib/channel-preview/channel-preview.component.mjs +155 -0
- package/esm2020/lib/channel.service.mjs +1454 -0
- package/esm2020/lib/chat-client.service.mjs +206 -0
- package/{esm2015/lib/custom-templates.service.js → esm2020/lib/custom-templates.service.mjs} +3 -3
- package/{esm2015/lib/date-parser.service.js → esm2020/lib/date-parser.service.mjs} +3 -3
- package/esm2020/lib/edit-message-form/edit-message-form.component.mjs +83 -0
- package/esm2020/lib/get-channel-display-text.mjs +14 -0
- package/esm2020/lib/get-message-translation.mjs +12 -0
- package/esm2020/lib/icon/icon.component.mjs +21 -0
- package/esm2020/lib/icon-placeholder/icon-placeholder.component.mjs +31 -0
- package/esm2020/lib/loading-indicator/loading-indicator.component.mjs +31 -0
- package/esm2020/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +38 -0
- package/esm2020/lib/message/message.component.mjs +402 -0
- package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +98 -0
- package/esm2020/lib/message-actions.service.mjs +119 -0
- package/esm2020/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +71 -0
- package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +259 -0
- package/{esm2015/lib/message-input/emoji-input.service.js → esm2020/lib/message-input/emoji-input.service.mjs} +3 -3
- package/{esm2015/lib/message-input/message-input-config.service.js → esm2020/lib/message-input/message-input-config.service.mjs} +3 -3
- package/esm2020/lib/message-input/message-input.component.mjs +441 -0
- package/{esm2015/lib/message-input/textarea/textarea.component.js → esm2020/lib/message-input/textarea/textarea.component.mjs} +7 -13
- package/esm2020/lib/message-input/textarea.directive.mjs +89 -0
- package/esm2020/lib/message-list/group-styles.mjs +52 -0
- package/esm2020/lib/message-list/message-list.component.mjs +679 -0
- package/esm2020/lib/message-preview.mjs +21 -0
- package/esm2020/lib/message-reactions/message-reactions.component.mjs +247 -0
- package/esm2020/lib/message-reactions.service.mjs +44 -0
- package/{esm2015/lib/message.service.js → esm2020/lib/message.service.mjs} +4 -4
- package/esm2020/lib/modal/modal.component.mjs +69 -0
- package/esm2020/lib/notification/notification.component.mjs +20 -0
- package/esm2020/lib/notification-list/notification-list.component.mjs +36 -0
- package/esm2020/lib/notification.service.mjs +79 -0
- package/esm2020/lib/read-by.mjs +12 -0
- package/{esm2015/lib/stream-autocomplete-textarea.module.js → esm2020/lib/stream-autocomplete-textarea.module.mjs} +6 -6
- package/{esm2015/lib/stream-avatar.module.js → esm2020/lib/stream-avatar.module.mjs} +5 -5
- package/{esm2015/lib/stream-chat.module.js → esm2020/lib/stream-chat.module.mjs} +14 -16
- package/{esm2015/lib/stream-i18n.service.js → esm2020/lib/stream-i18n.service.mjs} +5 -5
- package/{esm2015/lib/stream-textarea.module.js → esm2020/lib/stream-textarea.module.mjs} +6 -6
- package/esm2020/lib/theme.service.mjs +23 -0
- package/esm2020/lib/thread/thread.component.mjs +51 -0
- package/{esm2015/lib/transliteration.service.js → esm2020/lib/transliteration.service.mjs} +3 -3
- package/esm2020/lib/types.mjs +2 -0
- package/esm2020/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +183 -0
- package/esm2020/lib/voice-recording/voice-recording.component.mjs +102 -0
- package/esm2020/public-api.mjs +64 -0
- package/fesm2015/{stream-chat-angular.js → stream-chat-angular.mjs} +354 -754
- package/fesm2015/stream-chat-angular.mjs.map +1 -0
- package/fesm2020/stream-chat-angular.mjs +6835 -0
- package/fesm2020/stream-chat-angular.mjs.map +1 -0
- package/lib/attachment-list/attachment-list.component.d.ts +4 -6
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +2 -4
- package/lib/attachment.service.d.ts +0 -1
- package/lib/avatar/avatar.component.d.ts +1 -1
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
- package/lib/channel/channel.component.d.ts +1 -1
- package/lib/channel-header/channel-header.component.d.ts +2 -5
- package/lib/channel-list/channel-list.component.d.ts +4 -9
- package/lib/channel-preview/channel-preview.component.d.ts +1 -1
- package/lib/channel.service.d.ts +7 -14
- package/lib/chat-client.service.d.ts +1 -1
- package/lib/edit-message-form/edit-message-form.component.d.ts +1 -1
- package/lib/get-message-translation.d.ts +1 -1
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/icon-placeholder/icon-placeholder.component.d.ts +1 -1
- package/lib/loading-indicator/loading-indicator.component.d.ts +1 -1
- package/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
- package/lib/message/message.component.d.ts +6 -19
- package/lib/message-actions-box/message-actions-box.component.d.ts +4 -32
- package/lib/message-actions.service.d.ts +0 -1
- package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +1 -1
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +1 -2
- package/lib/message-input/message-input.component.d.ts +3 -5
- package/lib/message-input/textarea/textarea.component.d.ts +1 -1
- package/lib/message-input/textarea.directive.d.ts +1 -1
- package/lib/message-list/group-styles.d.ts +1 -1
- package/lib/message-list/message-list.component.d.ts +4 -12
- package/lib/message-reactions/message-reactions.component.d.ts +2 -7
- package/lib/message.service.d.ts +0 -1
- package/lib/modal/modal.component.d.ts +1 -1
- package/lib/notification/notification.component.d.ts +1 -1
- package/lib/notification-list/notification-list.component.d.ts +2 -3
- package/lib/notification.service.d.ts +2 -5
- package/lib/stream-chat.module.d.ts +3 -3
- package/lib/theme.service.d.ts +1 -44
- package/lib/thread/thread.component.d.ts +1 -1
- package/lib/types.d.ts +16 -33
- package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +2 -2
- package/lib/voice-recording/voice-recording.component.d.ts +1 -1
- package/package.json +31 -17
- package/public-api.d.ts +0 -2
- package/src/assets/styles/css/index.css +3 -1
- package/src/assets/styles/css/index.layout.css +3 -0
- package/src/assets/styles/{v2/scss → scss}/AttachmentList/AttachmentList-layout.scss +1 -1
- package/src/assets/styles/{v2/scss → scss}/Message/Message-layout.scss +2 -2
- package/src/assets/styles/scss/_base.scss +7 -198
- package/src/assets/styles/scss/index.scss +35 -48
- package/src/assets/version.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +0 -8445
- package/bundles/stream-chat-angular.umd.js.map +0 -1
- package/esm2015/lib/attachment-configuration.service.js +0 -186
- package/esm2015/lib/attachment-list/attachment-list.component.js +0 -209
- package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +0 -49
- package/esm2015/lib/attachment.service.js +0 -276
- package/esm2015/lib/avatar/avatar.component.js +0 -172
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +0 -78
- package/esm2015/lib/channel/channel.component.js +0 -50
- package/esm2015/lib/channel-header/channel-header.component.js +0 -86
- package/esm2015/lib/channel-list/channel-list-toggle.service.js +0 -73
- package/esm2015/lib/channel-list/channel-list.component.js +0 -67
- package/esm2015/lib/channel-preview/channel-preview.component.js +0 -167
- package/esm2015/lib/channel.service.js +0 -1487
- package/esm2015/lib/chat-client.service.js +0 -211
- package/esm2015/lib/edit-message-form/edit-message-form.component.js +0 -87
- package/esm2015/lib/get-channel-display-text.js +0 -15
- package/esm2015/lib/get-message-translation.js +0 -13
- package/esm2015/lib/icon/icon.component.js +0 -25
- package/esm2015/lib/icon-placeholder/icon-placeholder.component.js +0 -35
- package/esm2015/lib/loading-indicator/loading-indicator.component.js +0 -35
- package/esm2015/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.js +0 -42
- package/esm2015/lib/message/message.component.js +0 -436
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +0 -137
- package/esm2015/lib/message-actions.service.js +0 -114
- package/esm2015/lib/message-bounce-prompt/message-bounce-prompt.component.js +0 -80
- package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +0 -262
- package/esm2015/lib/message-input/message-input.component.js +0 -455
- package/esm2015/lib/message-input/textarea.directive.js +0 -90
- package/esm2015/lib/message-list/group-styles.js +0 -53
- package/esm2015/lib/message-list/image-load.service.js +0 -24
- package/esm2015/lib/message-list/message-list.component.js +0 -726
- package/esm2015/lib/message-preview.js +0 -7
- package/esm2015/lib/message-reactions/message-reactions.component.js +0 -266
- package/esm2015/lib/message-reactions.service.js +0 -45
- package/esm2015/lib/modal/modal.component.js +0 -74
- package/esm2015/lib/notification/notification.component.js +0 -24
- package/esm2015/lib/notification-list/notification-list.component.js +0 -38
- package/esm2015/lib/notification.service.js +0 -79
- package/esm2015/lib/read-by.js +0 -13
- package/esm2015/lib/theme.service.js +0 -122
- package/esm2015/lib/thread/thread.component.js +0 -55
- package/esm2015/lib/types.js +0 -2
- package/esm2015/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.js +0 -192
- package/esm2015/lib/voice-recording/voice-recording.component.js +0 -115
- package/esm2015/public-api.js +0 -66
- package/fesm2015/stream-chat-angular.js.map +0 -1
- package/lib/channel-list/channel-list-toggle.service.d.ts +0 -40
- package/lib/message-list/image-load.service.d.ts +0 -15
- package/src/assets/EmojiOneColor.woff2 +0 -0
- package/src/assets/NotoColorEmoji-flags.woff2 +0 -0
- package/src/assets/Poweredby_100px-White_VertText.png +0 -0
- package/src/assets/str-chat__alert.svg +0 -1
- package/src/assets/str-chat__file-file.svg +0 -20
- package/src/assets/str-chat__icon-chevron-down.svg +0 -1
- package/src/assets/str-chat__icon-search.svg +0 -1
- package/src/assets/str-chat__icon-send.svg +0 -1
- package/src/assets/str-chat__icon-sprite.png +0 -0
- package/src/assets/str-chat__icon-sprite@1x.png +0 -0
- package/src/assets/str-chat__icon-sprite@2x.png +0 -0
- package/src/assets/str-chat__icon-sprite@3x.png +0 -0
- package/src/assets/str-chat__loading-indicator.svg +0 -23
- package/src/assets/str-chat__reaction-list-sprite@1x.png +0 -0
- package/src/assets/str-chat__reaction-list-sprite@2x.png +0 -0
- package/src/assets/str-chat__reaction-list-sprite@3x.png +0 -0
- package/src/assets/str-chat__reactions-sprite@1x.png +0 -0
- package/src/assets/str-chat__reactions-sprite@2x.png +0 -0
- package/src/assets/str-chat__reactions-sprite@3x.png +0 -0
- package/src/assets/styles/assets/EmojiOneColor.woff2 +0 -0
- package/src/assets/styles/assets/NotoColorEmoji-flags.woff2 +0 -0
- package/src/assets/styles/assets/Poweredby_100px-White_VertText.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@1x.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@2x.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@3x.png +0 -0
- package/src/assets/styles/scss/ActionsBox.scss +0 -56
- package/src/assets/styles/scss/Attachment.scss +0 -329
- package/src/assets/styles/scss/AttachmentActions.scss +0 -44
- package/src/assets/styles/scss/Audio.scss +0 -113
- package/src/assets/styles/scss/Avatar.scss +0 -79
- package/src/assets/styles/scss/Card.scss +0 -125
- package/src/assets/styles/scss/ChannelHeader.scss +0 -284
- package/src/assets/styles/scss/ChannelList.scss +0 -141
- package/src/assets/styles/scss/ChannelListMessenger.scss +0 -9
- package/src/assets/styles/scss/ChannelPreview.scss +0 -133
- package/src/assets/styles/scss/ChannelSearch.scss +0 -124
- package/src/assets/styles/scss/ChatDown.scss +0 -15
- package/src/assets/styles/scss/DateSeparator.scss +0 -51
- package/src/assets/styles/scss/EditMessageForm.scss +0 -112
- package/src/assets/styles/scss/EventComponent.scss +0 -48
- package/src/assets/styles/scss/Gallery.scss +0 -121
- package/src/assets/styles/scss/ImageCarousel.scss +0 -45
- package/src/assets/styles/scss/InfiniteScrollPaginator.scss +0 -6
- package/src/assets/styles/scss/LoadMoreButton.scss +0 -44
- package/src/assets/styles/scss/LoadingChannels.scss +0 -70
- package/src/assets/styles/scss/LoadingIndicator.scss +0 -38
- package/src/assets/styles/scss/Message.scss +0 -1283
- package/src/assets/styles/scss/MessageActions.scss +0 -137
- package/src/assets/styles/scss/MessageCommerce.scss +0 -608
- package/src/assets/styles/scss/MessageInput.scss +0 -398
- package/src/assets/styles/scss/MessageInputFlat.scss +0 -323
- package/src/assets/styles/scss/MessageList.scss +0 -244
- package/src/assets/styles/scss/MessageLivestream.scss +0 -338
- package/src/assets/styles/scss/MessageNotification.scss +0 -43
- package/src/assets/styles/scss/MessageRepliesCountButton.scss +0 -33
- package/src/assets/styles/scss/MessageTeam.scss +0 -644
- package/src/assets/styles/scss/Modal.scss +0 -78
- package/src/assets/styles/scss/ReactionList.scss +0 -197
- package/src/assets/styles/scss/ReactionSelector.scss +0 -218
- package/src/assets/styles/scss/SendButton.scss +0 -20
- package/src/assets/styles/scss/SimpleReactionsList.scss +0 -76
- package/src/assets/styles/scss/SmallMessageInput.scss +0 -171
- package/src/assets/styles/scss/Thread.scss +0 -381
- package/src/assets/styles/scss/Tooltip.scss +0 -41
- package/src/assets/styles/scss/TypingIndicator.scss +0 -80
- package/src/assets/styles/scss/VirtualMessage.scss +0 -288
- package/src/assets/styles/scss/_variables.scss +0 -161
- package/src/assets/styles/v2/css/index.css +0 -3
- package/src/assets/styles/v2/css/index.layout.css +0 -3
- package/src/assets/styles/v2/scss/_base.scss +0 -28
- package/src/assets/styles/v2/scss/index.scss +0 -37
- package/src/assets/styles/vendor/emoji-mart.scss +0 -514
- package/src/assets/styles/vendor/mml-react.scss +0 -2246
- package/src/assets/styles/vendor/react-file-utils.scss +0 -441
- package/src/assets/styles/vendor/react-image-gallery.scss +0 -237
- /package/{esm2015/assets/i18n/en.js → esm2020/assets/i18n/en.mjs} +0 -0
- /package/{esm2015/lib/injection-tokens.js → esm2020/lib/injection-tokens.mjs} +0 -0
- /package/{esm2015/lib/is-image-attachment.js → esm2020/lib/is-image-attachment.mjs} +0 -0
- /package/{esm2015/lib/is-image-file.js → esm2020/lib/is-image-file.mjs} +0 -0
- /package/{esm2015/lib/is-on-separate-date.js → esm2020/lib/is-on-separate-date.mjs} +0 -0
- /package/{esm2015/lib/list-users.js → esm2020/lib/list-users.mjs} +0 -0
- /package/{esm2015/lib/message-input/textarea.interface.js → esm2020/lib/message-input/textarea.interface.mjs} +0 -0
- /package/{esm2015/lib/parse-date.js → esm2020/lib/parse-date.mjs} +0 -0
- /package/{esm2015/stream-chat-angular.js → esm2020/stream-chat-angular.mjs} +0 -0
- /package/{stream-chat-angular.d.ts → index.d.ts} +0 -0
- /package/src/assets/styles/{v2/css → css}/emoji-mart.css +0 -0
- /package/src/assets/styles/{v2/css → css}/emoji-replacement.css +0 -0
- /package/src/assets/styles/{v2/scss → scss}/AttachmentList/AttachmentList-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/AttachmentPreviewList/AttachmentPreviewList-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/AttachmentPreviewList/AttachmentPreviewList-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Autocomplete/Autocomplete-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Autocomplete/Autocomplete-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Avatar/Avatar-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Avatar/Avatar-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/BaseImage/BaseImage-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/BaseImage/BaseImage-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/BaseImage/index.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Channel/Channel-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Channel/Channel-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelHeader/ChannelHeader-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelHeader/ChannelHeader-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelList/ChannelList-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelList/ChannelList-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelPreview/ChannelPreview-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelPreview/ChannelPreview-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelSearch/ChannelSearch-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ChannelSearch/ChannelSearch-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/EditMessageForm/EditMessageForm-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/EditMessageForm/EditMessageForm-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ImageCarousel/ImageCarousel-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/ImageCarousel/ImageCarousel-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/LinkPreview/LinkPreview-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/LinkPreview/LinkPreview-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/LinkPreview/index.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/LoadingIndicator/LoadingIndicator-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/LoadingIndicator/LoadingIndicator-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Message/Message-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageActionsBox/MessageActionsBox-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageActionsBox/MessageActionsBox-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageBouncePrompt/MessageBouncePrompt-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageBouncePrompt/MessageBouncePrompt-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageInput/MessageInput-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageInput/MessageInput-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageList/MessageList-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageList/MessageList-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageList/VirtualizedMessageList-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageList/VirtualizedMessageList-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactions-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactions-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactionsSelector-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/MessageReactions/MessageReactionsSelector-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Modal/Modal-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Modal/Modal-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Notification/MessageNotification-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Notification/MessageNotification-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Notification/Notification-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Notification/Notification-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Notification/NotificationList-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Notification/NotificationList-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Thread/Thread-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Thread/Thread-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Tooltip/Tooltip-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/Tooltip/Tooltip-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/TypingIndicator/TypingIndicator-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/TypingIndicator/TypingIndicator-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/_emoji-replacement.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/_global-layout-variables.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/_global-theme-variables.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/_icons.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/_palette-variables.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/_utils.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/common/CTAButton/CTAButton-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/common/CTAButton/CTAButton-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/common/CircleFAButton/CircleFAButton-layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/common/CircleFAButton/CircleFAButton-theme.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/index.layout.scss +0 -0
- /package/src/assets/styles/{v2/scss → scss}/vendor/emoji-mart.scss +0 -0
- /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,
|
|
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
|
|
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
|
|
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"; "
|
|
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
|
|
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
|
}
|
package/lib/message.service.d.ts
CHANGED
|
@@ -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:
|
|
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?:
|
|
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 "
|
|
27
|
+
import * as i26 from "ngx-float-ui";
|
|
28
28
|
import * as i27 from "./stream-avatar.module";
|
|
29
|
-
import * as i28 from "ngx-
|
|
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.
|
|
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
|
}
|
package/lib/theme.service.d.ts
CHANGED
|
@@ -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?:
|
|
84
|
+
translateParams?: object;
|
|
85
85
|
template?: TemplateRef<T>;
|
|
86
86
|
templateContext?: T;
|
|
87
|
-
dismissFn:
|
|
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:
|
|
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) =>
|
|
165
|
-
deleteUploadHandler: (u: AttachmentUpload) =>
|
|
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:
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
206
|
+
isSelectorOpenChangeHandler: (isOpen: boolean) => void;
|
|
224
207
|
};
|
|
225
208
|
export declare type ModalContext = {
|
|
226
209
|
isOpen: boolean;
|
|
227
|
-
isOpenChangeHandler: (isOpen: boolean) =>
|
|
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:
|
|
219
|
+
closeThreadHandler: () => void;
|
|
237
220
|
};
|
|
238
|
-
export declare type MessageReactionType =
|
|
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:
|
|
286
|
-
onDismiss:
|
|
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:
|
|
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": "
|
|
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": "^
|
|
13
|
-
"@angular/core": "^
|
|
14
|
-
"@
|
|
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
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
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.
|
|
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';
|