stream-chat-react 9.3.0 → 10.0.0-theming-v2.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.
- package/dist/browser.full-bundle.js +17513 -13580
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +20 -5
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/Attachment.d.ts +1 -0
- package/dist/components/Attachment/Attachment.d.ts.map +1 -1
- package/dist/components/Attachment/Attachment.js +80 -35
- package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentActions.js +2 -6
- package/dist/components/Attachment/AttachmentContainer.d.ts +12 -0
- package/dist/components/Attachment/AttachmentContainer.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentContainer.js +106 -0
- package/dist/components/Attachment/Audio.d.ts +11 -0
- package/dist/components/Attachment/Audio.d.ts.map +1 -1
- package/dist/components/Attachment/Audio.js +59 -32
- package/dist/components/Attachment/Card.d.ts +5 -20
- package/dist/components/Attachment/Card.d.ts.map +1 -1
- package/dist/components/Attachment/Card.js +93 -15
- package/dist/components/Attachment/DownloadButton.d.ts +6 -0
- package/dist/components/Attachment/DownloadButton.d.ts.map +1 -0
- package/dist/components/Attachment/DownloadButton.js +8 -0
- package/dist/components/Attachment/FileAttachment.d.ts +1 -1
- package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/dist/components/Attachment/FileAttachment.js +23 -6
- package/dist/components/Attachment/FileSizeIndicator.d.ts +6 -0
- package/dist/components/Attachment/FileSizeIndicator.d.ts.map +1 -0
- package/dist/components/Attachment/FileSizeIndicator.js +8 -0
- package/dist/components/Attachment/hooks/useAudioController.d.ts +9 -0
- package/dist/components/Attachment/hooks/useAudioController.d.ts.map +1 -0
- package/dist/components/Attachment/hooks/useAudioController.js +45 -0
- package/dist/components/Attachment/icons.d.ts +5 -0
- package/dist/components/Attachment/icons.d.ts.map +1 -0
- package/dist/components/Attachment/icons.js +10 -0
- package/dist/components/Attachment/index.d.ts +1 -0
- package/dist/components/Attachment/index.d.ts.map +1 -1
- package/dist/components/Attachment/index.js +1 -0
- package/dist/components/Attachment/utils.d.ts +40 -4
- package/dist/components/Attachment/utils.d.ts.map +1 -1
- package/dist/components/Attachment/utils.js +58 -18
- package/dist/components/AutoCompleteTextarea/Item.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Item.js +11 -4
- package/dist/components/AutoCompleteTextarea/List.d.ts +17 -1
- package/dist/components/AutoCompleteTextarea/List.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/List.js +19 -17
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts +16 -2
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.js +19 -16
- package/dist/components/AutoCompleteTextarea/utils.js +1 -1
- package/dist/components/Avatar/Avatar.js +10 -10
- package/dist/components/Channel/Channel.d.ts +7 -2
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +78 -69
- package/dist/components/Channel/LoadingChannel.d.ts +2 -0
- package/dist/components/Channel/LoadingChannel.d.ts.map +1 -0
- package/dist/components/Channel/LoadingChannel.js +20 -0
- package/dist/components/Channel/channelState.d.ts +1 -0
- package/dist/components/Channel/channelState.d.ts.map +1 -1
- package/dist/components/Channel/channelState.js +14 -9
- package/dist/components/Channel/hooks/useChannelContainerClasses.d.ts +9 -0
- package/dist/components/Channel/hooks/useChannelContainerClasses.d.ts.map +1 -0
- package/dist/components/Channel/hooks/useChannelContainerClasses.js +14 -0
- package/dist/components/Channel/hooks/useCreateChannelStateContext.js +6 -6
- package/dist/components/Channel/utils.d.ts +3 -0
- package/dist/components/Channel/utils.d.ts.map +1 -1
- package/dist/components/Channel/utils.js +9 -5
- package/dist/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
- package/dist/components/ChannelHeader/ChannelHeader.js +14 -9
- package/dist/components/ChannelList/ChannelList.d.ts +10 -4
- package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelList.js +32 -14
- package/dist/components/ChannelList/hooks/useChannelDeletedListener.js +10 -6
- package/dist/components/ChannelList/hooks/useChannelHiddenListener.js +10 -6
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts +1 -1
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.js +9 -5
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts +1 -1
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.js +9 -5
- package/dist/components/ChannelList/hooks/useChannelVisibleListener.js +9 -5
- package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.d.ts +1 -1
- package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useMessageNewListener.js +9 -5
- package/dist/components/ChannelList/hooks/useMobileNavigation.d.ts +1 -1
- package/dist/components/ChannelList/hooks/useMobileNavigation.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.js +9 -5
- package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.js +9 -5
- package/dist/components/ChannelList/hooks/usePaginatedChannels.js +9 -5
- package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.js +9 -5
- package/dist/components/ChannelList/utils.js +9 -5
- package/dist/components/ChannelPreview/ChannelPreview.d.ts +6 -0
- package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.js +5 -21
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.js +13 -9
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts +14 -0
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts.map +1 -0
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.js +29 -0
- package/dist/components/ChannelPreview/utils.js +2 -2
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +6 -42
- package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.js +4 -160
- package/dist/components/ChannelSearch/SearchBar.d.ts +29 -0
- package/dist/components/ChannelSearch/SearchBar.d.ts.map +1 -0
- package/dist/components/ChannelSearch/SearchBar.js +93 -0
- package/dist/components/ChannelSearch/SearchInput.d.ts +9 -17
- package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchInput.js +2 -4
- package/dist/components/ChannelSearch/SearchResults.d.ts +14 -8
- package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchResults.js +44 -27
- package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts +50 -0
- package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts.map +1 -0
- package/dist/components/ChannelSearch/hooks/useChannelSearch.js +232 -0
- package/dist/components/ChannelSearch/icons.d.ts +6 -0
- package/dist/components/ChannelSearch/icons.d.ts.map +1 -0
- package/dist/components/ChannelSearch/icons.js +12 -0
- package/dist/components/Chat/Chat.d.ts.map +1 -1
- package/dist/components/Chat/Chat.js +4 -0
- package/dist/components/Chat/hooks/useChat.d.ts +1 -1
- package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useChat.js +1 -1
- package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useCreateChatContext.js +3 -2
- package/dist/components/Chat/hooks/useCustomStyles.d.ts +1 -1
- package/dist/components/Chat/hooks/useCustomStyles.d.ts.map +1 -1
- package/dist/components/ChatAutoComplete/ChatAutoComplete.js +1 -1
- package/dist/components/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/EmoticonItem/EmoticonItem.js +1 -1
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +1 -1
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts.map +1 -1
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.js +16 -3
- package/dist/components/EmptyStateIndicator/icons.d.ts +2 -0
- package/dist/components/EmptyStateIndicator/icons.d.ts.map +1 -0
- package/dist/components/EmptyStateIndicator/icons.js +3 -0
- package/dist/components/EventComponent/EventComponent.js +1 -1
- package/dist/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.js +16 -14
- package/dist/components/Gallery/Image.d.ts +7 -3
- package/dist/components/Gallery/Image.d.ts.map +1 -1
- package/dist/components/Gallery/Image.js +21 -9
- package/dist/components/Gallery/ModalGallery.d.ts +10 -0
- package/dist/components/Gallery/ModalGallery.d.ts.map +1 -0
- package/dist/components/Gallery/ModalGallery.js +16 -0
- package/dist/components/Gallery/index.d.ts +1 -1
- package/dist/components/Gallery/index.js +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +2 -0
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +4 -1
- package/dist/components/LoadMore/LoadMoreButton.js +2 -2
- package/dist/components/Loading/LoadingChannels.js +2 -2
- package/dist/components/Loading/LoadingIndicator.js +1 -1
- package/dist/components/MML/MML.js +1 -1
- package/dist/components/Message/FixedHeightMessage.js +3 -3
- package/dist/components/Message/MessageDeleted.js +2 -2
- package/dist/components/Message/MessageOptions.d.ts +1 -0
- package/dist/components/Message/MessageOptions.d.ts.map +1 -1
- package/dist/components/Message/MessageOptions.js +9 -16
- package/dist/components/Message/MessageRepliesCountButton.d.ts.map +1 -1
- package/dist/components/Message/MessageRepliesCountButton.js +8 -5
- package/dist/components/Message/MessageSimple.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.js +41 -21
- package/dist/components/Message/MessageStatus.d.ts.map +1 -1
- package/dist/components/Message/MessageStatus.js +17 -8
- package/dist/components/Message/MessageText.d.ts +1 -1
- package/dist/components/Message/MessageText.d.ts.map +1 -1
- package/dist/components/Message/MessageText.js +10 -14
- package/dist/components/Message/QuotedMessage.d.ts.map +1 -1
- package/dist/components/Message/QuotedMessage.js +8 -3
- package/dist/components/Message/hooks/index.d.ts +0 -2
- package/dist/components/Message/hooks/index.d.ts.map +1 -1
- package/dist/components/Message/hooks/index.js +0 -2
- package/dist/components/Message/hooks/useEditHandler.d.ts +1 -1
- package/dist/components/Message/hooks/useEditHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useReactionHandler.d.ts +3 -3
- package/dist/components/Message/hooks/useReactionHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useReactionHandler.js +11 -7
- package/dist/components/Message/hooks/useUserRole.d.ts +1 -1
- package/dist/components/Message/hooks/useUserRole.d.ts.map +1 -1
- package/dist/components/Message/icons.d.ts +6 -4
- package/dist/components/Message/icons.d.ts.map +1 -1
- package/dist/components/Message/icons.js +25 -10
- package/dist/components/Message/index.d.ts +0 -3
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +0 -3
- package/dist/components/Message/utils.js +10 -6
- package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActions.js +3 -3
- package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActionsBox.js +14 -7
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts +2 -0
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts.map +1 -0
- package/dist/components/MessageInput/AttachmentPreviewList.js +60 -0
- package/dist/components/MessageInput/EditMessageForm.d.ts.map +1 -1
- package/dist/components/MessageInput/EditMessageForm.js +11 -6
- package/dist/components/MessageInput/EmojiPicker.d.ts +1 -1
- package/dist/components/MessageInput/EmojiPicker.d.ts.map +1 -1
- package/dist/components/MessageInput/EmojiPicker.js +14 -17
- package/dist/components/MessageInput/MessageInput.d.ts +1 -1
- package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.js +84 -10
- package/dist/components/MessageInput/MessageInputSmall.d.ts +9 -0
- package/dist/components/MessageInput/MessageInputSmall.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputSmall.js +10 -1
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts +2 -1
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview.js +29 -22
- package/dist/components/MessageInput/UploadsPreview.d.ts +7 -0
- package/dist/components/MessageInput/UploadsPreview.d.ts.map +1 -1
- package/dist/components/MessageInput/UploadsPreview.js +17 -6
- package/dist/components/MessageInput/hooks/useAttachments.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useAttachments.js +8 -1
- package/dist/components/MessageInput/hooks/useCommandTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCommandTrigger.js +6 -4
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.js +4 -4
- package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts +1 -1
- package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useEmojiTrigger.d.ts +1 -1
- package/dist/components/MessageInput/hooks/useEmojiTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useEmojiTrigger.js +23 -19
- package/dist/components/MessageInput/hooks/useFileState.d.ts +7 -0
- package/dist/components/MessageInput/hooks/useFileState.d.ts.map +1 -0
- package/dist/components/MessageInput/hooks/useFileState.js +8 -0
- package/dist/components/MessageInput/hooks/useImageUploads.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useImageUploads.js +17 -36
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +2 -6
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useSubmitHandler.js +11 -7
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.js +13 -9
- package/dist/components/MessageInput/hooks/utils.d.ts +1 -1
- package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -1
- package/dist/components/MessageInput/icons.d.ts +12 -2
- package/dist/components/MessageInput/icons.d.ts.map +1 -1
- package/dist/components/MessageInput/icons.js +67 -7
- package/dist/components/MessageList/CustomNotification.js +1 -1
- package/dist/components/MessageList/MessageList.d.ts +3 -0
- package/dist/components/MessageList/MessageList.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.js +17 -14
- package/dist/components/MessageList/MessageListMainPanel.d.ts +3 -0
- package/dist/components/MessageList/MessageListMainPanel.d.ts.map +1 -0
- package/dist/components/MessageList/MessageListMainPanel.js +9 -0
- package/dist/components/MessageList/MessageListNotifications.d.ts +2 -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 +9 -6
- package/dist/components/MessageList/MessageNotification.d.ts.map +1 -1
- package/dist/components/MessageList/MessageNotification.js +1 -1
- package/dist/components/MessageList/ScrollToBottomButton.d.ts +3 -0
- package/dist/components/MessageList/ScrollToBottomButton.d.ts.map +1 -0
- package/dist/components/MessageList/ScrollToBottomButton.js +53 -0
- package/dist/components/MessageList/VirtualizedMessageList.d.ts +5 -0
- package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageList.js +41 -14
- package/dist/components/MessageList/hooks/useMessageListElements.d.ts +1 -1
- package/dist/components/MessageList/hooks/useMessageListElements.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useMessageListElements.js +4 -3
- package/dist/components/MessageList/hooks/useMessageListScrollManager.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useMessageListScrollManager.js +3 -1
- package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts +2 -0
- package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useNewMessageNotification.js +8 -1
- package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts +1 -2
- package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useScrollLocationLogic.js +12 -30
- package/dist/components/MessageList/icons.d.ts +8 -0
- package/dist/components/MessageList/icons.d.ts.map +1 -0
- package/dist/components/MessageList/icons.js +11 -0
- package/dist/components/MessageList/index.d.ts +1 -0
- package/dist/components/MessageList/index.d.ts.map +1 -1
- package/dist/components/MessageList/index.js +1 -0
- package/dist/components/MessageList/utils.d.ts +4 -2
- package/dist/components/MessageList/utils.d.ts.map +1 -1
- package/dist/components/MessageList/utils.js +16 -3
- package/dist/components/Modal/Modal.d.ts +2 -2
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +18 -15
- package/dist/components/Modal/icons.d.ts +2 -0
- package/dist/components/Modal/icons.d.ts.map +1 -0
- package/dist/components/Modal/icons.js +5 -0
- package/dist/components/Reactions/ReactionSelector.d.ts +2 -0
- package/dist/components/Reactions/ReactionSelector.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionSelector.js +18 -9
- package/dist/components/Reactions/ReactionsList.d.ts +3 -1
- package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionsList.js +33 -47
- package/dist/components/Reactions/SimpleReactionsList.d.ts +3 -1
- package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/SimpleReactionsList.js +41 -58
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts +21 -0
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts.map +1 -0
- package/dist/components/Reactions/hooks/useProcessReactions.js +51 -0
- package/dist/components/Thread/Thread.d.ts +2 -6
- package/dist/components/Thread/Thread.d.ts.map +1 -1
- package/dist/components/Thread/Thread.js +21 -89
- package/dist/components/Thread/ThreadHead.d.ts +4 -0
- package/dist/components/Thread/ThreadHead.d.ts.map +1 -0
- package/dist/components/Thread/ThreadHead.js +21 -0
- package/dist/components/Thread/ThreadHeader.d.ts +12 -0
- package/dist/components/Thread/ThreadHeader.d.ts.map +1 -0
- package/dist/components/Thread/ThreadHeader.js +21 -0
- package/dist/components/Thread/ThreadStart.d.ts +2 -0
- package/dist/components/Thread/ThreadStart.d.ts.map +1 -0
- package/dist/components/Thread/ThreadStart.js +10 -0
- package/dist/components/Thread/icons.d.ts +4 -0
- package/dist/components/Thread/icons.d.ts.map +1 -0
- package/dist/components/Thread/icons.js +9 -0
- package/dist/components/Thread/index.d.ts +2 -0
- package/dist/components/Thread/index.d.ts.map +1 -1
- package/dist/components/Thread/index.js +2 -0
- package/dist/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
- package/dist/components/TypingIndicator/TypingIndicator.js +52 -9
- package/dist/components/UserItem/UserItem.d.ts +1 -1
- package/dist/components/UserItem/UserItem.d.ts.map +1 -1
- package/dist/components/UserItem/UserItem.js +15 -8
- package/dist/components/Window/Window.js +1 -1
- package/dist/constants/limits.d.ts +4 -0
- package/dist/constants/limits.d.ts.map +1 -0
- package/dist/constants/limits.js +3 -0
- package/dist/context/ChannelActionContext.d.ts +1 -1
- package/dist/context/ChannelActionContext.d.ts.map +1 -1
- package/dist/context/ChannelActionContext.js +1 -1
- package/dist/context/ChannelStateContext.d.ts +3 -2
- package/dist/context/ChannelStateContext.d.ts.map +1 -1
- package/dist/context/ChannelStateContext.js +1 -1
- package/dist/context/ChatContext.d.ts +5 -4
- package/dist/context/ChatContext.d.ts.map +1 -1
- package/dist/context/ChatContext.js +2 -2
- package/dist/context/ComponentContext.d.ts +6 -2
- package/dist/context/ComponentContext.d.ts.map +1 -1
- package/dist/context/ComponentContext.js +1 -1
- package/dist/context/EmojiContext.d.ts +1 -1
- package/dist/context/EmojiContext.d.ts.map +1 -1
- package/dist/context/EmojiContext.js +1 -1
- package/dist/context/MessageContext.d.ts +1 -1
- package/dist/context/MessageContext.d.ts.map +1 -1
- package/dist/context/MessageContext.js +1 -1
- package/dist/context/MessageInputContext.d.ts +1 -1
- package/dist/context/MessageInputContext.d.ts.map +1 -1
- package/dist/context/MessageInputContext.js +1 -1
- package/dist/context/TranslationContext.d.ts +2 -2
- package/dist/context/TranslationContext.d.ts.map +1 -1
- package/dist/context/TranslationContext.js +8 -4
- package/dist/context/TypingContext.d.ts +1 -1
- package/dist/context/TypingContext.d.ts.map +1 -1
- package/dist/context/TypingContext.js +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.css.map +1 -0
- package/dist/css/v2/index.css +1 -0
- package/dist/css/v2/index.css.map +1 -0
- package/dist/css/v2/index.layout.css +1 -0
- package/dist/css/v2/index.layout.css.map +1 -0
- package/dist/i18n/Streami18n.d.ts +8 -2
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/Streami18n.js +12 -12
- package/dist/i18n/de.json +8 -2
- package/dist/i18n/en.json +8 -2
- package/dist/i18n/es.json +9 -2
- package/dist/i18n/fr.json +9 -2
- package/dist/i18n/hi.json +8 -2
- package/dist/i18n/it.json +9 -2
- package/dist/i18n/ja.json +8 -2
- package/dist/i18n/ko.json +8 -2
- package/dist/i18n/nl.json +8 -2
- package/dist/i18n/pt.json +9 -2
- package/dist/i18n/ru.json +10 -2
- package/dist/i18n/tr.json +8 -2
- package/dist/index.cjs.js +9549 -4011
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/Attachment.scss +52 -22
- package/dist/scss/Audio.scss +1 -1
- package/dist/scss/Avatar.scss +1 -1
- package/dist/scss/ChannelList.scss +5 -1
- package/dist/scss/ChannelPreview.scss +25 -0
- package/dist/scss/ChannelSearch.scss +5 -3
- package/dist/scss/Gallery.scss +0 -20
- package/dist/scss/ImageCarousel.scss +39 -0
- package/dist/scss/LoadingChannels.scss +1 -1
- package/dist/scss/Message.scss +84 -86
- package/dist/scss/MessageActions.scss +15 -0
- package/dist/scss/MessageCommerce.scss +57 -13
- package/dist/scss/MessageInputFlat.scss +21 -9
- package/dist/scss/MessageList.scss +35 -3
- package/dist/scss/MessageLivestream.scss +23 -10
- package/dist/scss/MessageNotification.scss +7 -1
- package/dist/scss/MessageTeam.scss +37 -10
- package/dist/scss/Modal.scss +2 -0
- package/dist/scss/ReactionList.scss +14 -0
- package/dist/scss/ReactionSelector.scss +6 -0
- package/dist/scss/SendButton.scss +6 -0
- package/dist/scss/SmallMessageInput.scss +0 -1
- package/dist/scss/Thread.scss +21 -2
- package/dist/scss/Tooltip.scss +6 -3
- package/dist/scss/TypingIndicator.scss +5 -0
- package/dist/scss/_base.scss +26 -0
- package/dist/scss/_variables.scss +2 -1
- package/dist/scss/index.scss +5 -4
- package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +392 -0
- package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +400 -0
- package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +118 -0
- package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-theme.scss +150 -0
- package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +62 -0
- package/dist/scss/v2/Autocomplete/Autocomplete-theme.scss +207 -0
- package/dist/scss/v2/Avatar/Avatar-layout.scss +13 -0
- package/dist/scss/v2/Avatar/Avatar-theme.scss +42 -0
- package/dist/scss/v2/Channel/Channel-layout.scss +139 -0
- package/dist/scss/v2/Channel/Channel-theme.scss +99 -0
- package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +23 -0
- package/dist/scss/v2/ChannelHeader/ChannelHeader-theme.scss +43 -0
- package/dist/scss/v2/ChannelList/ChannelList-layout.scss +41 -0
- package/dist/scss/v2/ChannelList/ChannelList-theme.scss +87 -0
- package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +82 -0
- package/dist/scss/v2/ChannelPreview/ChannelPreview-theme.scss +108 -0
- package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +71 -0
- package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +190 -0
- package/dist/scss/v2/EditMessageForm/EditMessageForm-layout.scss +53 -0
- package/dist/scss/v2/EditMessageForm/EditMessageForm-theme.scss +50 -0
- package/dist/scss/v2/ImageCarousel/ImageCarousel-layout.scss +41 -0
- package/dist/scss/v2/ImageCarousel/ImageCarousel-theme.scss +15 -0
- package/dist/scss/v2/LoadingIndicator/LoadingIndicator-layout.scss +39 -0
- package/dist/scss/v2/LoadingIndicator/LoadingIndicator-theme.scss +12 -0
- package/dist/scss/v2/Message/Message-layout.scss +373 -0
- package/dist/scss/v2/Message/Message-theme.scss +353 -0
- package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +48 -0
- package/dist/scss/v2/MessageActionsBox/MessageActionsBox-theme.scss +69 -0
- package/dist/scss/v2/MessageInput/MessageInput-layout.scss +186 -0
- package/dist/scss/v2/MessageInput/MessageInput-theme.scss +221 -0
- package/dist/scss/v2/MessageList/MessageList-layout.scss +61 -0
- package/dist/scss/v2/MessageList/MessageList-theme.scss +105 -0
- package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +44 -0
- package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +32 -0
- package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +64 -0
- package/dist/scss/v2/MessageReactions/MessageReactions-theme.scss +75 -0
- package/dist/scss/v2/MessageReactions/MessageReactionsSelector-layout.scss +52 -0
- package/dist/scss/v2/MessageReactions/MessageReactionsSelector-theme.scss +83 -0
- package/dist/scss/v2/Modal/Modal-layout.scss +40 -0
- package/dist/scss/v2/Modal/Modal-theme.scss +82 -0
- package/dist/scss/v2/Notification/MessageNotification-layout.scss +12 -0
- package/dist/scss/v2/Notification/MessageNotification-theme.scss +34 -0
- package/dist/scss/v2/Notification/Notification-layout.scss +3 -0
- package/dist/scss/v2/Notification/Notification-theme.scss +32 -0
- package/dist/scss/v2/Notification/NotificationList-layout.scss +11 -0
- package/dist/scss/v2/Notification/NotificationList-theme.scss +31 -0
- package/dist/scss/v2/Thread/Thread-layout.scss +47 -0
- package/dist/scss/v2/Thread/Thread-theme.scss +82 -0
- package/dist/scss/v2/Tooltip/Tooltip-layout.scss +30 -0
- package/dist/scss/v2/Tooltip/Tooltip-theme.scss +36 -0
- package/dist/scss/v2/TypingIndicator/TypingIndicator-layout.scss +27 -0
- package/dist/scss/v2/TypingIndicator/TypingIndicator-theme.scss +68 -0
- package/dist/scss/v2/_base.scss +29 -0
- package/dist/scss/v2/_global-layout-variables.scss +65 -0
- package/dist/scss/v2/_global-theme-variables.scss +166 -0
- package/dist/scss/v2/_palette-variables.scss +55 -0
- package/dist/scss/v2/_utils.scss +188 -0
- package/dist/scss/v2/common/CTAButton/CTAButton-layout.scss +4 -0
- package/dist/scss/v2/common/CTAButton/CTAButton-theme.scss +42 -0
- package/dist/scss/v2/common/CircleFAButton/CircleFAButton-layout.scss +14 -0
- package/dist/scss/v2/common/CircleFAButton/CircleFAButton-theme.scss +35 -0
- package/dist/scss/v2/index.layout.scss +31 -0
- package/dist/scss/v2/index.scss +36 -0
- package/dist/scss/{vendor → v2/vendor}/emoji-mart.scss +27 -8
- package/dist/stories/add-message.stories.d.ts +0 -1
- package/dist/stories/add-message.stories.d.ts.map +1 -1
- package/dist/stories/add-message.stories.js +0 -1
- package/dist/stories/edit-message.stories.d.ts +0 -1
- package/dist/stories/edit-message.stories.d.ts.map +1 -1
- package/dist/stories/edit-message.stories.js +0 -1
- package/dist/stories/hello.stories.d.ts +0 -1
- package/dist/stories/hello.stories.d.ts.map +1 -1
- package/dist/stories/hello.stories.js +0 -1
- package/dist/stories/jump-to-message.stories.d.ts +0 -1
- package/dist/stories/jump-to-message.stories.d.ts.map +1 -1
- package/dist/stories/jump-to-message.stories.js +0 -1
- package/dist/stories/mark-read.stories.d.ts +0 -1
- package/dist/stories/mark-read.stories.d.ts.map +1 -1
- package/dist/stories/mark-read.stories.js +0 -1
- package/dist/stories/message-status-readby-tooltip.stories.d.ts +0 -1
- package/dist/stories/message-status-readby-tooltip.stories.d.ts.map +1 -1
- package/dist/stories/message-status-readby-tooltip.stories.js +0 -1
- package/dist/stories/navigate-long-message-lists.stories.d.ts +0 -2
- package/dist/stories/navigate-long-message-lists.stories.d.ts.map +1 -1
- package/dist/stories/navigate-long-message-lists.stories.js +1 -11
- package/dist/stories/toggle-message-actions.stories.d.ts +0 -1
- package/dist/stories/toggle-message-actions.stories.d.ts.map +1 -1
- package/dist/stories/toggle-message-actions.stories.js +0 -1
- package/dist/stories/utils.d.ts.map +1 -1
- package/dist/stories/utils.js +2 -1
- package/dist/types/types.d.ts +7 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +20 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +16 -9
- package/dist/components/Gallery/ModalWrapper.d.ts +0 -14
- package/dist/components/Gallery/ModalWrapper.d.ts.map +0 -1
- package/dist/components/Gallery/ModalWrapper.js +0 -8
- package/dist/components/Message/MessageCommerce.d.ts +0 -10
- package/dist/components/Message/MessageCommerce.d.ts.map +0 -1
- package/dist/components/Message/MessageCommerce.js +0 -64
- package/dist/components/Message/MessageLivestream.d.ts +0 -16
- package/dist/components/Message/MessageLivestream.d.ts.map +0 -1
- package/dist/components/Message/MessageLivestream.js +0 -164
- package/dist/components/Message/MessageTeam.d.ts +0 -11
- package/dist/components/Message/MessageTeam.d.ts.map +0 -1
- package/dist/components/Message/MessageTeam.js +0 -110
- package/dist/components/Message/hooks/useBreakpoint.d.ts +0 -6
- package/dist/components/Message/hooks/useBreakpoint.d.ts.map +0 -1
- package/dist/components/Message/hooks/useBreakpoint.js +0 -18
- package/dist/components/Message/hooks/useMobilePress.d.ts +0 -5
- package/dist/components/Message/hooks/useMobilePress.d.ts.map +0 -1
- package/dist/components/Message/hooks/useMobilePress.js +0 -33
- package/dist/scss/vendor/mml-react.scss +0 -1749
- package/dist/scss/vendor/react-file-utils.scss +0 -378
- package/dist/scss/vendor/react-image-gallery.scss +0 -224
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius of the component */
|
|
5
|
+
--str-chat__message-input-border-radius: 0;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__message-input-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__message-input-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__message-input-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__message-input-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__message-input-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__message-input-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__message-input-box-shadow: none;
|
|
27
|
+
|
|
28
|
+
/* The text/icon color of the dropzone container */
|
|
29
|
+
--str-chat__dropzone-container-color: var(--str-chat__on-primary-color);
|
|
30
|
+
|
|
31
|
+
/* The background color of the dropzone container */
|
|
32
|
+
--str-chat__dropzone-container-background-color: var(--str-chat__primary-overlay-color);
|
|
33
|
+
|
|
34
|
+
/* The backdrop filter applied to the dropzone container */
|
|
35
|
+
--str-chat__dropzone-container-backdrop-filter: blur(3px);
|
|
36
|
+
|
|
37
|
+
/* The border radius used for the borders of the textarea */
|
|
38
|
+
--str-chat__message-textarea-border-radius: var(--str-chat__border-radius-md);
|
|
39
|
+
|
|
40
|
+
/* The text/icon color of the textarea */
|
|
41
|
+
--str-chat__message-textarea-color: var(--str-chat__text-color);
|
|
42
|
+
|
|
43
|
+
/* The background color of the textarea */
|
|
44
|
+
--str-chat__message-textarea-background-color: transparent;
|
|
45
|
+
|
|
46
|
+
/* Top border of the textarea */
|
|
47
|
+
--str-chat__message-textarea-border-block-start: 1px solid var(--str-chat__surface-color);
|
|
48
|
+
|
|
49
|
+
/* Bottom border of the textarea */
|
|
50
|
+
--str-chat__message-textarea-border-block-end: 1px solid var(--str-chat__surface-color);
|
|
51
|
+
|
|
52
|
+
/* Left (right in RTL layout) border of the textarea */
|
|
53
|
+
--str-chat__message-textarea-border-inline-start: 1px solid var(--str-chat__surface-color);
|
|
54
|
+
|
|
55
|
+
/* Right (left in RTL layout) border of the textarea */
|
|
56
|
+
--str-chat__message-textarea-border-inline-end: 1px solid var(--str-chat__surface-color);
|
|
57
|
+
|
|
58
|
+
/* Box shadow applied to the textarea */
|
|
59
|
+
--str-chat__message-textarea-box-shadow: none;
|
|
60
|
+
|
|
61
|
+
/* The border radius used for the borders of the send button */
|
|
62
|
+
--str-chat__message-send-border-radius: var(--str-chat__border-radius-circle);
|
|
63
|
+
|
|
64
|
+
/* The text/icon color of the send button */
|
|
65
|
+
--str-chat__message-send-color: var(--str-chat__primary-color);
|
|
66
|
+
|
|
67
|
+
/* The background color of the send button */
|
|
68
|
+
--str-chat__message-send-background-color: transparent;
|
|
69
|
+
|
|
70
|
+
/* Top border of the send button */
|
|
71
|
+
--str-chat__message-send-border-block-start: 0;
|
|
72
|
+
|
|
73
|
+
/* Bottom border of the send button */
|
|
74
|
+
--str-chat__message-send-border-block-end: 0;
|
|
75
|
+
|
|
76
|
+
/* Left (right in RTL layout) border of the send button */
|
|
77
|
+
--str-chat__message-send-border-inline-start: 0;
|
|
78
|
+
|
|
79
|
+
/* Right (left in RTL layout) border of the send button */
|
|
80
|
+
--str-chat__message-send-border-inline-end: 0;
|
|
81
|
+
|
|
82
|
+
/* Box shadow applied to the send button */
|
|
83
|
+
--str-chat__message-send-box-shadow: none;
|
|
84
|
+
|
|
85
|
+
/* The color of the send button in disabled state */
|
|
86
|
+
--str-chat__message-send-disabled-color: var(--str-chat__disabled-color);
|
|
87
|
+
|
|
88
|
+
/* The background color of the send button in disabled state */
|
|
89
|
+
--str-chat__message-send-disabled-background-color: transparent;
|
|
90
|
+
|
|
91
|
+
/* The border radius used for the borders of the tool buttons of the message input (such as attachment upload button) */
|
|
92
|
+
--str-chat__message-input-tools-border-radius: var(--str-chat__border-radius-circle);
|
|
93
|
+
|
|
94
|
+
/* The text/icon color of the tool buttons of the message input (such as attachment upload button) */
|
|
95
|
+
--str-chat__message-input-tools-color: var(--str-chat__text-low-emphasis-color);
|
|
96
|
+
|
|
97
|
+
/* The background color of the tool buttons of the message input (such as attachment upload button) */
|
|
98
|
+
--str-chat__message-input-tools-background-color: transparent;
|
|
99
|
+
|
|
100
|
+
/* Top border of the tool buttons of the message input (such as attachment upload button) */
|
|
101
|
+
--str-chat__message-input-tools-border-block-start: 0;
|
|
102
|
+
|
|
103
|
+
/* Bottom border of the tool buttons of the message input (such as attachment upload button) */
|
|
104
|
+
--str-chat__message-input-tools-border-block-end: 0;
|
|
105
|
+
|
|
106
|
+
/* Left (right in RTL layout) border of the tool buttons of the message input (such as attachment upload button) */
|
|
107
|
+
--str-chat__message-input-tools-border-inline-start: 0;
|
|
108
|
+
|
|
109
|
+
/* Right (left in RTL layout) border of the tool buttons of the message input (such as attachment upload button) */
|
|
110
|
+
--str-chat__message-input-tools-border-inline-end: 0;
|
|
111
|
+
|
|
112
|
+
/* Box shadow applied to the tool buttons of the message input (such as attachment upload button) */
|
|
113
|
+
--str-chat__message-input-tools-box-shadow: none;
|
|
114
|
+
|
|
115
|
+
/* Thex text color of the message that is displayed when the use can't send messages */
|
|
116
|
+
--str-chat__message-input-not-allowed-color: var(--str-chat__disabled-color);
|
|
117
|
+
|
|
118
|
+
/* The border radius used for the borders of the cooldown timer */
|
|
119
|
+
--str-chat__cooldown-border-radius: var(--str-chat__border-radius-circle);
|
|
120
|
+
|
|
121
|
+
/* The text/icon color of the cooldown timer */
|
|
122
|
+
--str-chat__cooldown-color: var(--str-chat__on-disabled-color);
|
|
123
|
+
|
|
124
|
+
/* The background color of the cooldown timer */
|
|
125
|
+
--str-chat__cooldown-background-color: var(--str-chat__disabled-color);
|
|
126
|
+
|
|
127
|
+
/* Top border of the cooldown timer */
|
|
128
|
+
--str-chat__cooldown-border-block-start: 0;
|
|
129
|
+
|
|
130
|
+
/* Bottom border of the cooldown timer */
|
|
131
|
+
--str-chat__cooldown-border-block-end: 0;
|
|
132
|
+
|
|
133
|
+
/* Left (right in RTL layout) border of the cooldown timer */
|
|
134
|
+
--str-chat__cooldown-border-inline-start: 0;
|
|
135
|
+
|
|
136
|
+
/* Right (left in RTL layout) border of the cooldown timer */
|
|
137
|
+
--str-chat__cooldown-border-inline-end: 0;
|
|
138
|
+
|
|
139
|
+
/* Box shadow applied to the cooldown timer */
|
|
140
|
+
--str-chat__cooldown-box-shadow: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.str-chat__message-input {
|
|
144
|
+
@include utils.component-layer-overrides('message-input');
|
|
145
|
+
|
|
146
|
+
.str-chat__dropzone-container {
|
|
147
|
+
background-color: var(--str-chat__dropzone-container-background-color);
|
|
148
|
+
color: var(--str-chat__dropzone-container-color);
|
|
149
|
+
backdrop-filter: var(--str-chat__dropzone-container-backdrop-filter);
|
|
150
|
+
font: var(--str-chat__subtitle-text);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.str-chat__file-input-container {
|
|
154
|
+
@include utils.component-layer-overrides('message-input-tools');
|
|
155
|
+
|
|
156
|
+
svg path {
|
|
157
|
+
fill: var(--str-chat__message-input-tools-color);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.str-chat__attachment-preview-image-error {
|
|
162
|
+
svg path {
|
|
163
|
+
fill: var(--str-chat__primary-color);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.str-chat__message-textarea-container {
|
|
168
|
+
@include utils.component-layer-overrides('message-textarea');
|
|
169
|
+
|
|
170
|
+
.str-chat__message-textarea {
|
|
171
|
+
resize: none;
|
|
172
|
+
border: none;
|
|
173
|
+
color: var(--str-chat__message-textarea-color);
|
|
174
|
+
background-color: transparent;
|
|
175
|
+
box-shadow: none;
|
|
176
|
+
outline: none;
|
|
177
|
+
font: var(--str-chat__subtitle-text);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.str-chat__send-button {
|
|
182
|
+
@include utils.component-layer-overrides('message-send');
|
|
183
|
+
|
|
184
|
+
svg path {
|
|
185
|
+
fill: var(--str-chat__message-send-color);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:disabled {
|
|
189
|
+
background-color: var(--str-chat__message-send-disabled-background-color);
|
|
190
|
+
|
|
191
|
+
svg path {
|
|
192
|
+
fill: var(--str-chat__message-send-disabled-color);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.str-chat__message-input-cooldown {
|
|
198
|
+
@include utils.component-layer-overrides('cooldown');
|
|
199
|
+
font: var(--str-chat__subtitle-medium-text);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.str-chat__message-input-not-allowed {
|
|
203
|
+
color: var(--str-chat__message-input-not-allowed-color);
|
|
204
|
+
font: var(--str-chat__subtitle-text);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.str-chat__quoted-message-preview-header {
|
|
208
|
+
.str-chat__quoted-message-reply-to-message {
|
|
209
|
+
font: var(--str-chat__subtitle-medium-text);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.str-chat__quoted-message-remove {
|
|
213
|
+
background-color: transparent;
|
|
214
|
+
border: none;
|
|
215
|
+
|
|
216
|
+
svg path {
|
|
217
|
+
fill: var(--str-chat__message-input-tools-color);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__main-panel-inner {
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
position: relative;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.str-chat__list {
|
|
13
|
+
@include utils.scrollable;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
max-height: 100%;
|
|
17
|
+
|
|
18
|
+
.str-chat__message-list-scroll {
|
|
19
|
+
@include utils.message-list-spacing;
|
|
20
|
+
|
|
21
|
+
.str-chat__ul {
|
|
22
|
+
list-style: none;
|
|
23
|
+
padding: 0;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.str-chat__parent-message-li {
|
|
29
|
+
$spacing: var(--str-chat__spacing-4);
|
|
30
|
+
padding-block-end: $spacing;
|
|
31
|
+
margin-block-end: $spacing;
|
|
32
|
+
|
|
33
|
+
.str-chat__thread-start {
|
|
34
|
+
text-align: start;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.str-chat__parent-message-li .str-chat__thread-start {
|
|
39
|
+
padding-top: var(--str-chat__spacing-3);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.str-chat__jump-to-latest-message {
|
|
44
|
+
position: absolute;
|
|
45
|
+
inset-block-end: var(--str-chat__spacing-4);
|
|
46
|
+
inset-inline-end: var(--str-chat__spacing-2);
|
|
47
|
+
z-index: 2;
|
|
48
|
+
|
|
49
|
+
.str-chat__jump-to-latest-unread-count {
|
|
50
|
+
position: absolute;
|
|
51
|
+
padding: var(--str-chat__spacing-0_5) var(--str-chat__spacing-2);
|
|
52
|
+
left: 50%;
|
|
53
|
+
transform: translateX(-50%) translateY(-100%);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.str-chat__thread {
|
|
58
|
+
.str-chat__main-panel-inner {
|
|
59
|
+
height: auto;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__message-list-border-radius: 0;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__message-list-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__message-list-background-color: var(--str-chat__background-color);
|
|
12
|
+
|
|
13
|
+
/* Box shadow applied to the component */
|
|
14
|
+
--str-chat__message-list-box-shadow: none;
|
|
15
|
+
|
|
16
|
+
/* Top border of the component */
|
|
17
|
+
--str-chat__message-list-border-block-start: none;
|
|
18
|
+
|
|
19
|
+
/* Bottom border of the component */
|
|
20
|
+
--str-chat__message-list-border-block-end: none;
|
|
21
|
+
|
|
22
|
+
/* Left (right in RTL layout) border of the component */
|
|
23
|
+
--str-chat__message-list-border-inline-start: none;
|
|
24
|
+
|
|
25
|
+
/* Right (left in RTL layout) border of the component */
|
|
26
|
+
--str-chat__message-list-border-inline-end: none;
|
|
27
|
+
|
|
28
|
+
/* The border radius used for the borders of the jump to latest message button */
|
|
29
|
+
--str-chat__jump-to-latest-message-border-radius: var(--str-chat__circle-fab-border-radius);
|
|
30
|
+
|
|
31
|
+
/* The text/icon color of the jump to latest message button */
|
|
32
|
+
--str-chat__jump-to-latest-message-color: var(--str-chat__circle-fab-color);
|
|
33
|
+
|
|
34
|
+
/* The background color of the jump to latest message button */
|
|
35
|
+
--str-chat__jump-to-latest-message-background-color: var(--str-chat__circle-fab-background-color);
|
|
36
|
+
|
|
37
|
+
/* The background color of the jump to latest message button in pressed state */
|
|
38
|
+
--str-chat__jump-to-latest-message-pressed-background-color: var(
|
|
39
|
+
--str-chat__circle-fab-pressed-background-color
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
/* Box shadow applied to the jump to latest message button */
|
|
43
|
+
--str-chat__jump-to-latest-message-box-shadow: var(--str-chat__circle-fab-box-shadow);
|
|
44
|
+
|
|
45
|
+
/* Top border of the jump to latest message button */
|
|
46
|
+
--str-chat__jump-to-latest-message-border-block-start: var(
|
|
47
|
+
--str-chat__circle-fab-border-block-start
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
/* Bottom border of the jump to latest message button */
|
|
51
|
+
--str-chat__jump-to-latest-message-border-block-end: var(--str-chat__circle-fab-border-block-end);
|
|
52
|
+
|
|
53
|
+
/* Left (right in RTL layout) border of the jump to latest message button */
|
|
54
|
+
--str-chat__jump-to-latest-message-border-inline-start: var(
|
|
55
|
+
--str-chat__circle-fab-border-inline-start
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
/* Right (left in RTL layout) border of the jump to latest message button */
|
|
59
|
+
--str-chat__jump-to-latest-message-border-inline-end: var(
|
|
60
|
+
--str-chat__circle-fab-border-inline-end
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
/* The background color of the unread messages count on the jump to latest message button */
|
|
64
|
+
--str-chat__jump-to-latest-message-unread-count-background-color: var(
|
|
65
|
+
--str-chat__jump-to-latest-message-color
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
/* The text/icon color of the unread messages count on the jump to latest message button */
|
|
69
|
+
--str-chat__jump-to-latest-message-unread-count-color: var(
|
|
70
|
+
--str-chat__jump-to-latest-message-background-color
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
/* The color used for displaying thread replies and thread separator at the start of a thread */
|
|
74
|
+
--str-chat__thread-head-start-color: var(--str-chat__text-low-emphasis-color);
|
|
75
|
+
|
|
76
|
+
/* The color used for the separator below the first message in a thread */
|
|
77
|
+
--str-chat__thread-head-start-border-block-end-color: var(--str-chat__surface-color);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.str-chat__list {
|
|
81
|
+
@include utils.component-layer-overrides('message-list');
|
|
82
|
+
|
|
83
|
+
.str-chat__parent-message-li {
|
|
84
|
+
border-block-end: 1px solid var(--str-chat__thread-head-start-border-block-end-color);
|
|
85
|
+
|
|
86
|
+
.str-chat__thread-start {
|
|
87
|
+
color: var(--str-chat__thread-head-start-color);
|
|
88
|
+
font: var(--str-chat__subtitle-text);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.str-chat__jump-to-latest-message {
|
|
94
|
+
.str-chat__circle-fab {
|
|
95
|
+
@include utils.component-layer-overrides('jump-to-latest-message');
|
|
96
|
+
@include utils.circle-fab-overrides('jump-to-latest-message');
|
|
97
|
+
|
|
98
|
+
.str-chat__jump-to-latest-unread-count {
|
|
99
|
+
background-color: var(--str-chat__jump-to-latest-message-unread-count-background-color);
|
|
100
|
+
color: var(--str-chat__jump-to-latest-message-unread-count-color);
|
|
101
|
+
border-radius: var(--str-chat__jump-to-latest-message-border-radius);
|
|
102
|
+
font: var(--str-chat__caption-text);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
// todo: React SDK specific. Copied from V1. Deprecate after merging with MessageList
|
|
4
|
+
.str-chat__virtual-list {
|
|
5
|
+
@include utils.scrollable;
|
|
6
|
+
position: relative;
|
|
7
|
+
flex: 1;
|
|
8
|
+
-webkit-overflow-scrolling: touch; /* enable smooth scrolling on ios */
|
|
9
|
+
margin: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
|
|
13
|
+
.str-chat__message-list-scroll > div {
|
|
14
|
+
@include utils.message-list-spacing;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// conditionally showing the header displaces items when prepending.
|
|
18
|
+
// a simple workaround is to make the loading indicator an overlay.
|
|
19
|
+
&__loading {
|
|
20
|
+
display: flex;
|
|
21
|
+
padding-top: var(--str-chat__spacing-2);
|
|
22
|
+
justify-content: center;
|
|
23
|
+
width: 100%;
|
|
24
|
+
position: absolute;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
p {
|
|
28
|
+
margin: 0 !important; // always use padding, margin mess up the height calculations
|
|
29
|
+
|
|
30
|
+
a {
|
|
31
|
+
white-space: pre-line;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
word-wrap: break-word;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.str-chat__message {
|
|
38
|
+
margin-block-end: 0 !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.str-chat__virtual-list-message-wrapper {
|
|
42
|
+
padding-block-end: var(--str-chat__spacing-0_5);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
/* Only available in React SDK. */
|
|
4
|
+
.str-chat {
|
|
5
|
+
/* The border radius used for the borders of the component */
|
|
6
|
+
--str-chat__virtual-list-border-radius: 0;
|
|
7
|
+
|
|
8
|
+
/* The text/icon color of the component */
|
|
9
|
+
--str-chat__virtual-list-color: var(--str-chat__text-color);
|
|
10
|
+
|
|
11
|
+
/* The background color of the component */
|
|
12
|
+
--str-chat__virtual-list-background-color: var(--str-chat__background-color);
|
|
13
|
+
|
|
14
|
+
/* Box shadow applied to the component */
|
|
15
|
+
--str-chat__virtual-list-box-shadow: none;
|
|
16
|
+
|
|
17
|
+
/* Top border of the component */
|
|
18
|
+
--str-chat__virtual-list-border-block-start: none;
|
|
19
|
+
|
|
20
|
+
/* Bottom border of the component */
|
|
21
|
+
--str-chat__virtual-list-border-block-end: none;
|
|
22
|
+
|
|
23
|
+
/* Left (right in RTL layout) border of the component */
|
|
24
|
+
--str-chat__virtual-list-border-inline-start: none;
|
|
25
|
+
|
|
26
|
+
/* Right (left in RTL layout) border of the component */
|
|
27
|
+
--str-chat__virtual-list-border-inline-end: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.str-chat__virtual-list {
|
|
31
|
+
@include utils.component-layer-overrides('virtual-list');
|
|
32
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__message-reactions-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
|
|
6
|
+
.str-chat__message-reactions {
|
|
7
|
+
list-style: none;
|
|
8
|
+
display: flex;
|
|
9
|
+
margin-block-start: var(--str-chat__spacing-0_5);
|
|
10
|
+
margin-block-end: var(--str-chat__spacing-0_5);
|
|
11
|
+
column-gap: var(--str-chat__spacing-0_5);
|
|
12
|
+
width: fit-content;
|
|
13
|
+
padding: 0;
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
.str-chat__message-reaction {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
padding: var(--str-chat__spacing-1_5);
|
|
21
|
+
|
|
22
|
+
button {
|
|
23
|
+
@include utils.button-reset;
|
|
24
|
+
@include utils.flex-row-center;
|
|
25
|
+
padding: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.str-chat__message-reaction-emoji {
|
|
29
|
+
height: calc(var(--str-chat__spacing-px) * 13);
|
|
30
|
+
display: flex !important; // Overriding emoji-mart styles
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.str-chat__tooltip {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:hover {
|
|
40
|
+
.str-chat__tooltip {
|
|
41
|
+
display: flex;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Only in theme-v1
|
|
47
|
+
.str-chat__reaction-list--counter,
|
|
48
|
+
.str-chat__simple-reactions-list-item--last-number {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.str-chat__message--me {
|
|
55
|
+
.str-chat__message-reactions-container {
|
|
56
|
+
justify-content: flex-end;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.str-chat__message--other {
|
|
61
|
+
.str-chat__message-reactions-container {
|
|
62
|
+
justify-content: flex-start;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__message-reactions-border-radius: none;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__message-reactions-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__message-reactions-background-color: transparent;
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__message-reactions-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__message-reactions-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__message-reactions-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__message-reactions-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__message-reactions-box-shadow: none;
|
|
27
|
+
|
|
28
|
+
/* The border radius used for the borders of a message reaction */
|
|
29
|
+
--str-chat__message-reaction-border-radius: var(--str-chat__border-radius-xs);
|
|
30
|
+
|
|
31
|
+
/* The text/icon color of a message reaction */
|
|
32
|
+
--str-chat__message-reaction-color: var(--str-chat__text-color);
|
|
33
|
+
|
|
34
|
+
/* The background color of a message reaction */
|
|
35
|
+
--str-chat__message-reaction-background-color: var(--str-chat__tertiary-surface-color);
|
|
36
|
+
|
|
37
|
+
/* Top border of a message reaction */
|
|
38
|
+
--str-chat__message-reaction-border-block-start: none;
|
|
39
|
+
|
|
40
|
+
/* Bottom border of a message reaction */
|
|
41
|
+
--str-chat__message-reaction-border-block-end: none;
|
|
42
|
+
|
|
43
|
+
/* Left (right in RTL layout) border of a message reaction */
|
|
44
|
+
--str-chat__message-reaction-border-inline-start: none;
|
|
45
|
+
|
|
46
|
+
/* Right (left in RTL layout) border of a message reaction */
|
|
47
|
+
--str-chat__message-reaction-border-inline-end: none;
|
|
48
|
+
|
|
49
|
+
/* Box shadow applied to a message reaction */
|
|
50
|
+
--str-chat__message-reaction-box-shadow: none;
|
|
51
|
+
|
|
52
|
+
/* The text/icon color of a message reaction, if the user reacted with that reaction */
|
|
53
|
+
--str-chat__own-message-reaction-color: var(--str-chat__text-color);
|
|
54
|
+
|
|
55
|
+
/* The background color of a message reaction, if the user reacted with that reaction */
|
|
56
|
+
--str-chat__own-message-reaction-background-color: var(
|
|
57
|
+
--str-chat__primary-surface-color-low-emphasis
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.str-chat__message-reactions-container {
|
|
62
|
+
.str-chat__message-reactions {
|
|
63
|
+
@include utils.component-layer-overrides('message-reactions');
|
|
64
|
+
|
|
65
|
+
.str-chat__message-reaction {
|
|
66
|
+
@include utils.component-layer-overrides('message-reaction');
|
|
67
|
+
font: var(--str-chat__caption-text);
|
|
68
|
+
|
|
69
|
+
&.str-chat__message-reaction-own {
|
|
70
|
+
color: var(--str-chat__own-message-reaction-color);
|
|
71
|
+
background-color: var(--str-chat__own-message-reaction-background-color);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__message-reaction-selector {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-end;
|
|
6
|
+
position: absolute;
|
|
7
|
+
inset-block-end: 100%;
|
|
8
|
+
|
|
9
|
+
.str-chat__message-reactions-options {
|
|
10
|
+
list-style: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
margin-block-end: var(--str-chat__spacing-0_5);
|
|
13
|
+
width: fit-content;
|
|
14
|
+
column-gap: var(--str-chat__spacing-1);
|
|
15
|
+
padding: var(--str-chat__spacing-2);
|
|
16
|
+
|
|
17
|
+
.str-chat__message-reactions-option {
|
|
18
|
+
@include utils.flex-row-center;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
width: calc(var(--str-chat__spacing-px) * 40);
|
|
21
|
+
height: calc(var(--str-chat__spacing-px) * 40);
|
|
22
|
+
|
|
23
|
+
.str-chat__message-reaction-emoji {
|
|
24
|
+
height: calc(var(--str-chat__spacing-px) * 20);
|
|
25
|
+
display: flex !important; // Overriding emoji-mart styles
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Only in theme-v1
|
|
32
|
+
.str-chat__message-reactions-last-user {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.str-chat__message-reactions-list-item__count {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.str-chat__message--me {
|
|
43
|
+
.str-chat__message-reaction-selector {
|
|
44
|
+
inset-inline-end: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.str-chat__message--other {
|
|
49
|
+
.str-chat__message-reaction-selector {
|
|
50
|
+
inset-inline-start: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|