stream-chat-react 11.3.0 → 11.5.0
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/dist/browser.full-bundle.js +5791 -5143
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +4 -4
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/Attachment.d.ts.map +1 -1
- package/dist/components/Attachment/Attachment.js +1 -0
- package/dist/components/Attachment/AttachmentContainer.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentContainer.js +1 -0
- package/dist/components/Attachment/hooks/useAudioController.d.ts.map +1 -1
- package/dist/components/Attachment/hooks/useAudioController.js +1 -0
- package/dist/components/Channel/Channel.d.ts +9 -2
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +119 -45
- package/dist/components/Channel/hooks/useCreateChannelStateContext.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useCreateChannelStateContext.js +3 -1
- package/dist/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useCreateTypingContext.js +3 -1
- package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelList.js +3 -0
- package/dist/components/ChannelList/hooks/useChannelDeletedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelDeletedListener.js +1 -0
- package/dist/components/ChannelList/hooks/useChannelHiddenListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelHiddenListener.js +1 -0
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.js +1 -0
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.js +1 -0
- package/dist/components/ChannelList/hooks/useChannelVisibleListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelVisibleListener.js +1 -0
- package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.js +1 -0
- package/dist/components/ChannelList/hooks/useMessageNewListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useMessageNewListener.js +1 -0
- package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.js +1 -0
- package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.js +1 -0
- package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.js +1 -0
- package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.js +2 -0
- package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.js +1 -0
- package/dist/components/ChannelPreview/ChannelPreview.d.ts +16 -0
- package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.js +18 -2
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts +5 -0
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.js +62 -2
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts.map +1 -1
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.js +1 -0
- package/dist/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -1
- package/dist/components/ChannelPreview/hooks/useIsChannelMuted.js +1 -0
- package/dist/components/ChannelSearch/SearchBar.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchBar.js +2 -0
- package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchResults.js +3 -1
- package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts.map +1 -1
- package/dist/components/ChannelSearch/hooks/useChannelSearch.js +7 -1
- package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useChat.js +2 -0
- package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useCreateChatContext.js +3 -1
- package/dist/components/Emojis/index.cjs.js +1 -1
- package/dist/components/Gallery/ModalGallery.d.ts.map +1 -1
- package/dist/components/Gallery/ModalGallery.js +3 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +1 -0
- package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMoreButton.js +1 -0
- package/dist/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMorePaginator.js +1 -0
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.js +40 -8
- package/dist/components/Message/MessageText.d.ts.map +1 -1
- package/dist/components/Message/MessageText.js +1 -0
- package/dist/components/Message/hooks/index.d.ts +2 -0
- package/dist/components/Message/hooks/index.d.ts.map +1 -1
- package/dist/components/Message/hooks/index.js +2 -0
- package/dist/components/Message/hooks/useMarkUnreadHandler.d.ts +10 -0
- package/dist/components/Message/hooks/useMarkUnreadHandler.d.ts.map +1 -0
- package/dist/components/Message/hooks/useMarkUnreadHandler.js +45 -0
- package/dist/components/Message/hooks/useReactionHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useReactionHandler.js +6 -2
- package/dist/components/Message/hooks/useReactionsFetcher.d.ts +11 -0
- package/dist/components/Message/hooks/useReactionsFetcher.d.ts.map +1 -0
- package/dist/components/Message/hooks/useReactionsFetcher.js +58 -0
- package/dist/components/Message/hooks/useUserRole.d.ts +1 -0
- package/dist/components/Message/hooks/useUserRole.d.ts.map +1 -1
- package/dist/components/Message/hooks/useUserRole.js +2 -0
- package/dist/components/Message/types.d.ts +7 -1
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Message/utils.d.ts +4 -1
- package/dist/components/Message/utils.d.ts.map +1 -1
- package/dist/components/Message/utils.js +12 -3
- package/dist/components/MessageActions/MessageActions.d.ts +1 -1
- package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActions.js +14 -5
- package/dist/components/MessageActions/MessageActionsBox.d.ts +4 -3
- package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActionsBox.js +8 -24
- package/dist/components/MessageActions/hooks/index.d.ts +2 -0
- package/dist/components/MessageActions/hooks/index.d.ts.map +1 -0
- package/dist/components/MessageActions/hooks/index.js +1 -0
- package/dist/components/MessageActions/hooks/useMessageActionsBoxPopper.d.ts +18 -0
- package/dist/components/MessageActions/hooks/useMessageActionsBoxPopper.d.ts.map +1 -0
- package/dist/components/MessageActions/hooks/useMessageActionsBoxPopper.js +32 -0
- package/dist/components/MessageInput/MessageInputFlat.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.js +1 -0
- package/dist/components/MessageInput/MessageInputSmall.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputSmall.js +1 -0
- package/dist/components/MessageInput/hooks/useAttachments.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useAttachments.js +3 -1
- package/dist/components/MessageInput/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCreateMessageInputContext.js +3 -1
- package/dist/components/MessageInput/hooks/useFileUploads.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useFileUploads.js +3 -0
- package/dist/components/MessageInput/hooks/useImageUploads.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useImageUploads.js +4 -1
- package/dist/components/MessageInput/hooks/useLinkPreviews.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useLinkPreviews.js +5 -1
- package/dist/components/MessageInput/hooks/useMessageInputText.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputText.js +6 -2
- package/dist/components/MessageInput/hooks/usePasteHandler.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/usePasteHandler.js +3 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.js +1 -0
- package/dist/components/MessageList/MessageList.d.ts +6 -1
- package/dist/components/MessageList/MessageList.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.js +32 -13
- package/dist/components/MessageList/MessageListMainPanel.d.ts +1 -0
- package/dist/components/MessageList/MessageListMainPanel.d.ts.map +1 -1
- package/dist/components/MessageList/MessageListMainPanel.js +2 -1
- package/dist/components/MessageList/MessageListNotifications.d.ts +1 -0
- package/dist/components/MessageList/MessageListNotifications.d.ts.map +1 -1
- package/dist/components/MessageList/MessageListNotifications.js +2 -2
- package/dist/components/MessageList/MessageNotification.d.ts +2 -0
- package/dist/components/MessageList/MessageNotification.d.ts.map +1 -1
- package/dist/components/MessageList/ScrollToBottomButton.d.ts +1 -1
- package/dist/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/dist/components/MessageList/ScrollToBottomButton.js +3 -43
- package/dist/components/MessageList/UnreadMessagesNotification.d.ts +6 -0
- package/dist/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -0
- package/dist/components/MessageList/UnreadMessagesNotification.js +12 -0
- package/dist/components/MessageList/UnreadMessagesSeparator.d.ts +6 -0
- package/dist/components/MessageList/UnreadMessagesSeparator.d.ts.map +1 -0
- package/dist/components/MessageList/UnreadMessagesSeparator.js +10 -0
- package/dist/components/MessageList/VirtualizedMessageList.d.ts +12 -1
- package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageList.js +51 -30
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +5 -3
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.js +27 -6
- package/dist/components/MessageList/hooks/MessageList/index.d.ts +1 -0
- package/dist/components/MessageList/hooks/MessageList/index.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/index.js +1 -0
- package/dist/components/MessageList/hooks/MessageList/useEnrichedMessages.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useEnrichedMessages.js +3 -1
- package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts +5 -8
- package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useMessageListElements.js +22 -31
- package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.js +1 -0
- package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.js +1 -0
- package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.d.ts +7 -0
- package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.d.ts.map +1 -0
- package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.js +42 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/index.d.ts +1 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/index.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/index.js +1 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useGiphyPreview.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useGiphyPreview.js +1 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.js +1 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.js +1 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useShouldForceScrollToBottom.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useShouldForceScrollToBottom.js +1 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.d.ts +22 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.d.ts.map +1 -0
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.js +29 -0
- package/dist/components/MessageList/hooks/useMarkRead.d.ts +19 -0
- package/dist/components/MessageList/hooks/useMarkRead.d.ts.map +1 -0
- package/dist/components/MessageList/hooks/useMarkRead.js +38 -0
- package/dist/components/MessageList/icons.d.ts +1 -0
- package/dist/components/MessageList/icons.d.ts.map +1 -1
- package/dist/components/MessageList/icons.js +2 -0
- package/dist/components/MessageList/index.d.ts +3 -0
- package/dist/components/MessageList/index.d.ts.map +1 -1
- package/dist/components/MessageList/index.js +3 -0
- package/dist/components/MessageList/renderMessages.d.ts +33 -0
- package/dist/components/MessageList/renderMessages.d.ts.map +1 -0
- package/dist/components/MessageList/renderMessages.js +35 -0
- package/dist/components/MessageList/utils.d.ts.map +1 -1
- package/dist/components/MessageList/utils.js +1 -1
- package/dist/components/Reactions/ReactionsList.d.ts +2 -1
- package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionsList.js +32 -41
- package/dist/components/Reactions/ReactionsListModal.d.ts +13 -0
- package/dist/components/Reactions/ReactionsListModal.d.ts.map +1 -0
- package/dist/components/Reactions/ReactionsListModal.js +46 -0
- package/dist/components/Reactions/SimpleReactionsList.d.ts +2 -4
- package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/SimpleReactionsList.js +7 -24
- package/dist/components/Reactions/hooks/useFetchReactions.d.ts +12 -0
- package/dist/components/Reactions/hooks/useFetchReactions.d.ts.map +1 -0
- package/dist/components/Reactions/hooks/useFetchReactions.js +50 -0
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts +3 -13
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts.map +1 -1
- package/dist/components/Reactions/hooks/useProcessReactions.js +51 -43
- package/dist/components/Reactions/types.d.ts +9 -0
- package/dist/components/Reactions/types.d.ts.map +1 -0
- package/dist/components/Reactions/types.js +1 -0
- package/dist/components/Thread/Thread.js +1 -0
- package/dist/context/ChannelActionContext.d.ts +2 -0
- package/dist/context/ChannelActionContext.d.ts.map +1 -1
- package/dist/context/ComponentContext.d.ts +6 -2
- package/dist/context/ComponentContext.d.ts.map +1 -1
- package/dist/context/MessageContext.d.ts +8 -2
- package/dist/context/MessageContext.d.ts.map +1 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/i18n/Streami18n.d.ts +10 -0
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/de.json +10 -0
- package/dist/i18n/en.json +10 -0
- package/dist/i18n/es.json +12 -0
- package/dist/i18n/fr.json +12 -0
- package/dist/i18n/hi.json +11 -0
- package/dist/i18n/it.json +12 -0
- package/dist/i18n/ja.json +8 -0
- package/dist/i18n/ko.json +8 -0
- package/dist/i18n/nl.json +10 -0
- package/dist/i18n/pt.json +12 -0
- package/dist/i18n/ru.json +14 -0
- package/dist/i18n/tr.json +10 -0
- package/dist/{icons-b84cd102.js → icons-7ead3d97.js} +12 -12
- package/dist/index.cjs.js +4911 -4265
- package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +1 -0
- package/dist/scss/v2/Message/Message-layout.scss +68 -10
- package/dist/scss/v2/Message/Message-theme.scss +34 -2
- package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +0 -11
- package/dist/scss/v2/MessageBounceOptions/MessageBounceOptions-layout.scss +18 -0
- package/dist/scss/v2/MessageBounceOptions/MessageBounceOptions-theme.scss +51 -0
- package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +74 -0
- package/dist/scss/v2/MessageReactions/MessageReactions-theme.scss +17 -0
- package/dist/scss/v2/_base.scss +3 -20
- package/dist/scss/v2/_global-theme-variables.scss +3 -0
- package/dist/scss/v2/index.layout.scss +1 -0
- package/dist/scss/v2/index.scss +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
'avatar message'
|
|
73
73
|
'. replies'
|
|
74
74
|
'. translation-notice'
|
|
75
|
+
'. custom-metadata'
|
|
75
76
|
'. metadata';
|
|
76
77
|
column-gap: var(--str-chat__spacing-2);
|
|
77
78
|
grid-template-columns: auto 1fr;
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
'message'
|
|
84
85
|
'replies'
|
|
85
86
|
'translation-notice'
|
|
87
|
+
'custom-metadata'
|
|
86
88
|
'metadata';
|
|
87
89
|
justify-items: end;
|
|
88
90
|
|
|
@@ -182,6 +184,11 @@
|
|
|
182
184
|
}
|
|
183
185
|
}
|
|
184
186
|
|
|
187
|
+
.str-chat__custom-message-metadata {
|
|
188
|
+
grid-area: custom-metadata;
|
|
189
|
+
margin-block-start: var(--str-chat__spacing-0_5);
|
|
190
|
+
}
|
|
191
|
+
|
|
185
192
|
.str-chat__message-metadata {
|
|
186
193
|
grid-area: metadata;
|
|
187
194
|
display: flex;
|
|
@@ -261,25 +268,37 @@
|
|
|
261
268
|
// Message options display - default mode: they appear when .str-chat__li is hovered
|
|
262
269
|
.str-chat__ul:not(.str-chat__message-options-in-bubble),
|
|
263
270
|
.str-chat__virtual-list:not(.str-chat__message-options-in-bubble) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
271
|
+
/* This rule won't be applied in browsers that don't support :has() */
|
|
272
|
+
.str-chat__li:hover:not(:has(.str-chat__reaction-list:hover, .str-chat__modal--open)) {
|
|
273
|
+
.str-chat__message-options {
|
|
274
|
+
display: flex;
|
|
269
275
|
}
|
|
270
|
-
}
|
|
271
276
|
|
|
272
|
-
.str-chat__li:hover {
|
|
273
277
|
.str-chat__message--other .str-chat__message-inner {
|
|
274
278
|
margin-inline-end: 0;
|
|
275
279
|
}
|
|
276
|
-
}
|
|
277
280
|
|
|
278
|
-
.str-chat__li:hover {
|
|
279
281
|
.str-chat__message--me .str-chat__message-inner {
|
|
280
282
|
margin-inline-start: 0;
|
|
281
283
|
}
|
|
282
284
|
}
|
|
285
|
+
|
|
286
|
+
/* Fallback for when :has() is unsupported */
|
|
287
|
+
@supports not selector(:has(a, b)) {
|
|
288
|
+
.str-chat__li:hover {
|
|
289
|
+
.str-chat__message-options {
|
|
290
|
+
display: flex;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.str-chat__message--other .str-chat__message-inner {
|
|
294
|
+
margin-inline-end: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.str-chat__message--me .str-chat__message-inner {
|
|
298
|
+
margin-inline-start: 0;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
283
302
|
}
|
|
284
303
|
|
|
285
304
|
// Message options display - second mode: they appear when .str-chat__message-inner is hovered
|
|
@@ -307,7 +326,8 @@
|
|
|
307
326
|
display: none;
|
|
308
327
|
}
|
|
309
328
|
|
|
310
|
-
.str-chat__message-edit-in-progress.str-chat__message-options
|
|
329
|
+
.str-chat__message-edit-in-progress.str-chat__message-options,
|
|
330
|
+
.str-chat__message-actions-open.str-chat__message-options {
|
|
311
331
|
display: flex;
|
|
312
332
|
}
|
|
313
333
|
}
|
|
@@ -404,3 +424,41 @@
|
|
|
404
424
|
}
|
|
405
425
|
}
|
|
406
426
|
}
|
|
427
|
+
|
|
428
|
+
.str-chat__unread-messages-separator-wrapper {
|
|
429
|
+
padding-block: 0.5rem;
|
|
430
|
+
|
|
431
|
+
.str-chat__unread-messages-separator {
|
|
432
|
+
@include utils.flex-row-center;
|
|
433
|
+
width: 100%;
|
|
434
|
+
padding: 0.5rem;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.str-chat__unread-messages-notification {
|
|
439
|
+
position: absolute;
|
|
440
|
+
top: 0.75rem;
|
|
441
|
+
z-index: 2;
|
|
442
|
+
display: flex;
|
|
443
|
+
align-items: center;
|
|
444
|
+
overflow: clip;
|
|
445
|
+
|
|
446
|
+
button {
|
|
447
|
+
padding-block: 0.5rem;
|
|
448
|
+
height: 100%;
|
|
449
|
+
width: 100%;
|
|
450
|
+
white-space: nowrap;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
button:first-of-type {
|
|
454
|
+
padding-inline: 0.75rem 0.375rem;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
button:last-of-type {
|
|
458
|
+
padding-inline: 0.375rem 0.75rem;
|
|
459
|
+
|
|
460
|
+
svg {
|
|
461
|
+
width: 0.875rem;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
@@ -261,7 +261,8 @@
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.str-chat__message-metadata
|
|
264
|
+
.str-chat__message-metadata,
|
|
265
|
+
.str-chat__custom-message-metadata {
|
|
265
266
|
color: var(--str-chat__message-secondary-color);
|
|
266
267
|
font: var(--str-chat__caption-text);
|
|
267
268
|
|
|
@@ -308,10 +309,18 @@
|
|
|
308
309
|
background-color: var(--str-chat__message-highlighted-background-color);
|
|
309
310
|
}
|
|
310
311
|
|
|
311
|
-
|
|
312
|
+
/* This rule won't be applied in browsers that don't support :has() */
|
|
313
|
+
.str-chat__li:hover:not(:has(.str-chat__reaction-list:hover, .str-chat__modal--open)) {
|
|
312
314
|
background-color: var(--str-chat__message-active-bacground-color);
|
|
313
315
|
}
|
|
314
316
|
|
|
317
|
+
/* Fallback for when :has() is unsupported */
|
|
318
|
+
@supports not selector(:has(a, b)) {
|
|
319
|
+
.str-chat__li:hover {
|
|
320
|
+
background-color: var(--str-chat__message-active-bacground-color);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
315
324
|
.str-chat__li--top,
|
|
316
325
|
.str-chat__li--single {
|
|
317
326
|
.str-chat__message--other {
|
|
@@ -375,3 +384,26 @@
|
|
|
375
384
|
}
|
|
376
385
|
}
|
|
377
386
|
}
|
|
387
|
+
|
|
388
|
+
.str-chat__unread-messages-separator {
|
|
389
|
+
background-color: var(--str-chat__secondary-surface-color);
|
|
390
|
+
color: var(--str-chat__text-low-emphasis-color);
|
|
391
|
+
text-transform: uppercase;
|
|
392
|
+
font: var(--str-chat__caption-strong-text);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.str-chat__unread-messages-notification {
|
|
396
|
+
background-color: var(--str-chat__text-low-emphasis-color);
|
|
397
|
+
border-radius: 1.125rem;
|
|
398
|
+
|
|
399
|
+
button {
|
|
400
|
+
cursor: pointer;
|
|
401
|
+
color: var(--str-chat__on-primary-color);
|
|
402
|
+
border: none;
|
|
403
|
+
background-color: transparent;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
button:first-of-type {
|
|
407
|
+
font: var(--str-chat__caption-text);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
@@ -21,22 +21,11 @@
|
|
|
21
21
|
|
|
22
22
|
.str-chat__message-actions-box:not(.str-chat__message-actions-box-angular) {
|
|
23
23
|
display: none;
|
|
24
|
-
position: absolute;
|
|
25
24
|
z-index: 1;
|
|
26
25
|
|
|
27
26
|
&.str-chat__message-actions-box--open {
|
|
28
27
|
display: block;
|
|
29
28
|
}
|
|
30
|
-
|
|
31
|
-
&.str-chat__message-actions-box--mine {
|
|
32
|
-
inset-block-end: 100%;
|
|
33
|
-
inset-inline-start: 100%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:not(.str-chat__message-actions-box--mine) {
|
|
37
|
-
inset-block-end: 100%;
|
|
38
|
-
inset-inline-end: 100%;
|
|
39
|
-
}
|
|
40
29
|
}
|
|
41
30
|
|
|
42
31
|
.str-chat__message-edit-in-progress {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.str-chat__message-bounce-options {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--str-chat__spacing-9);
|
|
5
|
+
|
|
6
|
+
.str-chat__message-bounce-actions {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--str-chat__spacing-2);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.str-chat__message-bounce-edit,
|
|
13
|
+
.str-chat__message-bounce-send,
|
|
14
|
+
.str-chat__message-bounce-delete {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
padding: var(--str-chat__spacing-2);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The text color used for the edit button */
|
|
5
|
+
--str-chat__message-bounce-edit-button-color: var(--str-chat__primary-color);
|
|
6
|
+
|
|
7
|
+
/* The text color used for the send button */
|
|
8
|
+
--str-chat__message-bounce-send-button-color: var(--str-chat__primary-color);
|
|
9
|
+
|
|
10
|
+
/* The text color used for the delete button */
|
|
11
|
+
--str-chat__message-bounce-delete-button-color: var(--str-chat__primary-color);
|
|
12
|
+
|
|
13
|
+
/* The background color of the button */
|
|
14
|
+
--str-chat__message-bounce-button-background-color: transparent;
|
|
15
|
+
|
|
16
|
+
/* Top border of the button */
|
|
17
|
+
--str-chat__message-bounce-button-border-block-start: none;
|
|
18
|
+
|
|
19
|
+
/* Bottom border of the button */
|
|
20
|
+
--str-chat__message-bounce-button-border-block-end: none;
|
|
21
|
+
|
|
22
|
+
/* Left (right in RTL layout) button of the component */
|
|
23
|
+
--str-chat__message-bounce-button-border-inline-start: none;
|
|
24
|
+
|
|
25
|
+
/* Right (left in RTL layout) button of the component */
|
|
26
|
+
--str-chat__message-bounce-button-border-inline-end: none;
|
|
27
|
+
|
|
28
|
+
/* Box shadow applied to the button */
|
|
29
|
+
--str-chat__message-bounce-button-box-shadow: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.str-chat__message-bounce-options {
|
|
33
|
+
.str-chat__message-bounce-edit,
|
|
34
|
+
.str-chat__message-bounce-send,
|
|
35
|
+
.str-chat__message-bounce-delete {
|
|
36
|
+
@include utils.component-layer-overrides('message-bounce-button');
|
|
37
|
+
font: var(--str-chat__body-medium-text);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.str-chat__message-bounce-edit {
|
|
41
|
+
color: var(--str-chat__message-bounce-edit-button-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.str-chat__message-bounce-send {
|
|
45
|
+
color: var(--str-chat__message-bounce-send-button-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.str-chat__message-bounce-delete {
|
|
49
|
+
color: var(--str-chat__message-bounce-delete-button-color);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
|
|
6
6
|
.str-chat__message-reactions {
|
|
7
|
+
overflow-y: hidden;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
scrollbar-width: none;
|
|
7
10
|
list-style: none;
|
|
8
11
|
display: flex;
|
|
9
12
|
margin-block-start: var(--str-chat__spacing-0_5);
|
|
@@ -19,6 +22,8 @@
|
|
|
19
22
|
align-items: center;
|
|
20
23
|
padding: var(--str-chat__spacing-1_5);
|
|
21
24
|
position: relative;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
flex-shrink: 0;
|
|
22
27
|
|
|
23
28
|
button {
|
|
24
29
|
@include utils.button-reset;
|
|
@@ -53,3 +58,72 @@
|
|
|
53
58
|
justify-content: flex-start;
|
|
54
59
|
}
|
|
55
60
|
}
|
|
61
|
+
|
|
62
|
+
.str-chat__message-reactions-details-modal {
|
|
63
|
+
.str-chat__modal--open {
|
|
64
|
+
.str-chat__modal__inner {
|
|
65
|
+
height: 40%;
|
|
66
|
+
max-height: 80%;
|
|
67
|
+
min-width: 90%;
|
|
68
|
+
max-width: 90%;
|
|
69
|
+
width: 90%;
|
|
70
|
+
flex-basis: min-content;
|
|
71
|
+
|
|
72
|
+
@media only screen and (min-device-width: 768px) {
|
|
73
|
+
min-width: 40%;
|
|
74
|
+
max-width: 60%;
|
|
75
|
+
width: min-content;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.str-chat__message-reactions-details {
|
|
82
|
+
width: 100%;
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
gap: var(--str-chat__spacing-4);
|
|
86
|
+
max-height: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
min-height: 0;
|
|
89
|
+
|
|
90
|
+
.str-chat__message-reactions-details-reaction-types {
|
|
91
|
+
display: flex;
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
width: 100%;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
overflow-x: auto;
|
|
96
|
+
gap: var(--str-chat__spacing-4);
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
|
|
101
|
+
.str-chat__message-reactions-details-reaction-type {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
padding: var(--str-chat__spacing-1) 0;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.str-chat__message-reaction-emoji-big {
|
|
111
|
+
align-self: center;
|
|
112
|
+
font-size: 2rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.str-chat__message-reactions-details-reacting-users {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
gap: var(--str-chat__spacing-3);
|
|
119
|
+
max-height: 100%;
|
|
120
|
+
overflow-y: auto;
|
|
121
|
+
min-height: 0;
|
|
122
|
+
|
|
123
|
+
.str-chat__message-reactions-details-reacting-user {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: var(--str-chat__spacing-2);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
--str-chat__own-message-reaction-background-color: var(
|
|
57
57
|
--str-chat__primary-surface-color-low-emphasis
|
|
58
58
|
);
|
|
59
|
+
|
|
60
|
+
--str-chat__messsage-reactions-details--selected-color: solid var(--str-chat__primary-color);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
.str-chat__message-reactions-container {
|
|
@@ -73,3 +75,18 @@
|
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
}
|
|
78
|
+
|
|
79
|
+
.str-chat__message-reactions-details {
|
|
80
|
+
.str-chat__message-reactions-details-reaction-type {
|
|
81
|
+
border-block-end: solid transparent;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.str-chat__message-reactions-details-reaction-type--selected {
|
|
85
|
+
border-block-end: var(--str-chat__messsage-reactions-details--selected-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.str-chat__message-reactions-details-reacting-user {
|
|
90
|
+
font: var(--str-chat__subtitle-text);
|
|
91
|
+
}
|
|
92
|
+
}
|
package/dist/scss/v2/_base.scss
CHANGED
|
@@ -9,30 +9,13 @@
|
|
|
9
9
|
// Overriding styles of ngx-popperjs
|
|
10
10
|
.ngxp__container {
|
|
11
11
|
z-index: 1;
|
|
12
|
-
margin: -8px !important;
|
|
13
12
|
padding: 0 !important;
|
|
14
13
|
box-shadow: none !important;
|
|
15
|
-
border:
|
|
14
|
+
border-color: transparent !important;
|
|
16
15
|
|
|
17
16
|
.ngxp__arrow {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Quick fix for: https://github.com/tonysamperi/ngx-popperjs/issues/52
|
|
23
|
-
&.google-chrome {
|
|
24
|
-
popper-content {
|
|
25
|
-
.ngxp__container {
|
|
26
|
-
display: block !important;
|
|
27
|
-
position: absolute;
|
|
28
|
-
right: 0;
|
|
29
|
-
bottom: 0;
|
|
30
|
-
opacity: 0;
|
|
31
|
-
|
|
32
|
-
&[aria-hidden="true"] {
|
|
33
|
-
visibility: hidden;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
17
|
+
color: transparent;
|
|
18
|
+
width: 100%;
|
|
36
19
|
}
|
|
37
20
|
}
|
|
38
21
|
}
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
/* The font used for caption texts with emphasize */
|
|
25
25
|
--str-chat__caption-medium-text: 500 0.75rem/1rem var(--str-chat__font-family);
|
|
26
26
|
|
|
27
|
+
/* The font used for caption texts with emphasize */
|
|
28
|
+
--str-chat__caption-strong-text: 700 0.75rem/1rem var(--str-chat__font-family);
|
|
29
|
+
|
|
27
30
|
/* The font used for body texts */
|
|
28
31
|
--str-chat__body-text: 0.875rem/1rem var(--str-chat__font-family);
|
|
29
32
|
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
@use 'LoadingIndicator/LoadingIndicator-layout';
|
|
21
21
|
@use 'Message/Message-layout';
|
|
22
22
|
@use 'MessageActionsBox/MessageActionsBox-layout';
|
|
23
|
+
@use 'MessageBounceOptions/MessageBounceOptions-layout';
|
|
23
24
|
@use 'MessageInput/MessageInput-layout';
|
|
24
25
|
@use 'MessageList/MessageList-layout';
|
|
25
26
|
@use 'MessageList/VirtualizedMessageList-layout';
|
package/dist/scss/v2/index.scss
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
@use 'LoadingIndicator/LoadingIndicator-theme';
|
|
23
23
|
@use 'Message/Message-theme';
|
|
24
24
|
@use 'MessageActionsBox/MessageActionsBox-theme';
|
|
25
|
+
@use 'MessageBounceOptions/MessageBounceOptions-theme';
|
|
25
26
|
@use 'MessageInput/MessageInput-theme';
|
|
26
27
|
@use 'MessageList/MessageList-theme';
|
|
27
28
|
@use 'MessageList/VirtualizedMessageList-theme';
|
|
@@ -34,4 +35,3 @@
|
|
|
34
35
|
@use 'Thread/Thread-theme';
|
|
35
36
|
@use 'Tooltip/Tooltip-theme';
|
|
36
37
|
@use 'TypingIndicator/TypingIndicator-theme';
|
|
37
|
-
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "11.
|
|
1
|
+
export declare const version = "11.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '11.
|
|
1
|
+
export var version = '11.5.0';
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"description": "React components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
7
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "https://github.com/GetStream/stream-chat-react.git"
|
|
@@ -143,7 +144,7 @@
|
|
|
143
144
|
"@semantic-release/changelog": "^6.0.2",
|
|
144
145
|
"@semantic-release/git": "^10.0.1",
|
|
145
146
|
"@stream-io/rollup-plugin-node-builtins": "^2.1.5",
|
|
146
|
-
"@stream-io/stream-chat-css": "^4.
|
|
147
|
+
"@stream-io/stream-chat-css": "^4.6.1",
|
|
147
148
|
"@testing-library/jest-dom": "^6.1.4",
|
|
148
149
|
"@testing-library/react": "^13.1.1",
|
|
149
150
|
"@testing-library/react-hooks": "^8.0.0",
|
|
@@ -218,7 +219,7 @@
|
|
|
218
219
|
"rollup-plugin-url": "^3.0.1",
|
|
219
220
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
220
221
|
"semantic-release": "^19.0.5",
|
|
221
|
-
"stream-chat": "^8.
|
|
222
|
+
"stream-chat": "^8.15.0",
|
|
222
223
|
"style-loader": "^2.0.0",
|
|
223
224
|
"ts-jest": "^28.0.8",
|
|
224
225
|
"typescript": "^4.7.4",
|