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,83 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__message-reactions-options-border-radius: var(--str-chat__border-radius-circle);
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__message-reactions-options-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__message-reactions-options-background-color: var(
|
|
12
|
+
--str-chat__secondary-background-color
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
/* Top border of the component */
|
|
16
|
+
--str-chat__message-reactions-options-border-block-start: none;
|
|
17
|
+
|
|
18
|
+
/* Bottom border of the component */
|
|
19
|
+
--str-chat__message-reactions-options-border-block-end: none;
|
|
20
|
+
|
|
21
|
+
/* Left (right in RTL layout) border of the component */
|
|
22
|
+
--str-chat__message-reactions-options-border-inline-start: none;
|
|
23
|
+
|
|
24
|
+
/* Right (left in RTL layout) border of the component */
|
|
25
|
+
--str-chat__message-reactions-options-border-inline-end: none;
|
|
26
|
+
|
|
27
|
+
/* Box shadow applied to the component */
|
|
28
|
+
--str-chat__message-reactions-options-box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
|
|
29
|
+
|
|
30
|
+
/* The border radius used for the borders of the component */
|
|
31
|
+
--str-chat__message-reactions-option-border-radius: var(--str-chat__border-radius-md);
|
|
32
|
+
|
|
33
|
+
/* The text/icon color of the component */
|
|
34
|
+
--str-chat__message-reactions-option-color: var(--str-chat__text-color);
|
|
35
|
+
|
|
36
|
+
/* The background color of the component */
|
|
37
|
+
--str-chat__message-reactions-option-background-color: var(
|
|
38
|
+
--str-chat__secondary-background-color
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
/* The background color of the component when hovered */
|
|
42
|
+
--str-chat__message-reactions-option-hover-background-color: var(
|
|
43
|
+
--str-chat__primary-surface-color
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
/* The background color of the component when selected */
|
|
47
|
+
--str-chat__message-reactions-option-selected-background-color: var(
|
|
48
|
+
--str-chat__primary-color-low-emphasis
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/* Top border of the component */
|
|
52
|
+
--str-chat__message-reactions-option-border-block-start: none;
|
|
53
|
+
|
|
54
|
+
/* Bottom border of the component */
|
|
55
|
+
--str-chat__message-reactions-option-border-block-end: none;
|
|
56
|
+
|
|
57
|
+
/* Left (right in RTL layout) border of the component */
|
|
58
|
+
--str-chat__message-reactions-option-border-inline-start: none;
|
|
59
|
+
|
|
60
|
+
/* Right (left in RTL layout) border of the component */
|
|
61
|
+
--str-chat__message-reactions-option-border-inline-end: none;
|
|
62
|
+
|
|
63
|
+
/* Box shadow applied to the component */
|
|
64
|
+
--str-chat__message-reactions-option-box-shadow: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.str-chat__reaction-selector {
|
|
68
|
+
.str-chat__message-reactions-options {
|
|
69
|
+
@include utils.component-layer-overrides('message-reactions-options');
|
|
70
|
+
|
|
71
|
+
.str-chat__message-reactions-option {
|
|
72
|
+
@include utils.component-layer-overrides('message-reactions-option');
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
background-color: var(--str-chat__message-reactions-option-hover-background-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.str-chat__message-reactions-option-selected {
|
|
79
|
+
background-color: var(--str-chat__message-reactions-option-selected-background-color);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__modal--open {
|
|
4
|
+
@include utils.flex-col-center;
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
z-index: 100;
|
|
13
|
+
|
|
14
|
+
button.str-chat__modal__close-button {
|
|
15
|
+
@include utils.unset-button;
|
|
16
|
+
margin: var(--str-chat__spacing-2);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.str-chat__modal__close-button {
|
|
21
|
+
@include utils.flex-row-center;
|
|
22
|
+
padding: var(--str-chat__spacing-2);
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset-block-start: 0;
|
|
25
|
+
inset-inline-end: 0;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.str-chat__modal__inner {
|
|
30
|
+
@include utils.flex-col-center;
|
|
31
|
+
padding: var(--str-chat__spacing-8) var(--str-chat__spacing-4);
|
|
32
|
+
width: 40%;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
min-height: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.str-chat__modal--close {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the content area of the component of the content area of the component */
|
|
5
|
+
--str-chat__modal-border-radius: var(--str-chat__border-radius-sm);
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the content area of the component */
|
|
8
|
+
--str-chat__modal-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the content area of the component */
|
|
11
|
+
--str-chat__modal-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
+
|
|
13
|
+
/* The overlay color of the component */
|
|
14
|
+
--str-chat__modal-overlay-color: var(--str-chat__secondary-overlay-color);
|
|
15
|
+
|
|
16
|
+
/* The backdrop filter applied to the component */
|
|
17
|
+
--str-chat__modal-overlay-backdrop-filter: blur(3px);
|
|
18
|
+
|
|
19
|
+
/* Top border of the content area of the component */
|
|
20
|
+
--str-chat__modal-border-block-start: none;
|
|
21
|
+
|
|
22
|
+
/* Bottom border of the content area of the component */
|
|
23
|
+
--str-chat__modal-border-block-end: none;
|
|
24
|
+
|
|
25
|
+
/* Left (right in RTL layout) border of the content area of the component */
|
|
26
|
+
--str-chat__modal-border-inline-start: none;
|
|
27
|
+
|
|
28
|
+
/* Right (left in RTL layout) border of the content area of the component */
|
|
29
|
+
--str-chat__modal-border-inline-end: none;
|
|
30
|
+
|
|
31
|
+
/* Box shadow applied to the content area of the component */
|
|
32
|
+
--str-chat__modal-box-shadow: none;
|
|
33
|
+
|
|
34
|
+
/* The background color of the close button */
|
|
35
|
+
--str-chat__modal-close-icon-background: var(--str-chat__text-low-emphasis-color);
|
|
36
|
+
|
|
37
|
+
/* The icon color of the close button */
|
|
38
|
+
--str-chat__modal-close-icon-color: var(--str-chat__on-disabled-color);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.str-chat__modal {
|
|
42
|
+
background-color: var(--str-chat__modal-overlay-color);
|
|
43
|
+
backdrop-filter: var(--str-chat__modal-overlay-backdrop-filter);
|
|
44
|
+
|
|
45
|
+
.str-chat__modal__inner {
|
|
46
|
+
@include utils.component-layer-overrides('modal');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.str-chat__modal__close-button {
|
|
50
|
+
@include utils.button-reset;
|
|
51
|
+
|
|
52
|
+
svg {
|
|
53
|
+
path {
|
|
54
|
+
fill: var(--str-chat__modal-close-icon-color);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
rect,
|
|
58
|
+
circle {
|
|
59
|
+
fill: var(--str-chat__modal-close-icon-background);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// stream-chat-react image gallery does not show the modal inner container. It has to be reset to
|
|
66
|
+
// width of its content in order the modal can be closed when clicked on overlay
|
|
67
|
+
.str-chat__message-attachment--card,
|
|
68
|
+
.str-chat__message-attachment--image,
|
|
69
|
+
.str-chat__message-attachment--gallery {
|
|
70
|
+
.str-chat__modal--open .str-chat__modal__inner.str-chat-react__modal__inner {
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
width: unset;
|
|
73
|
+
height: unset;
|
|
74
|
+
padding: 0;
|
|
75
|
+
|
|
76
|
+
img {
|
|
77
|
+
max-width: unset;
|
|
78
|
+
max-height: calc(100vh - 80px);
|
|
79
|
+
cursor: default;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.str-chat__message-notification {
|
|
2
|
+
display: block;
|
|
3
|
+
position: absolute;
|
|
4
|
+
align-self: center;
|
|
5
|
+
padding: var(--str-chat__spacing-1) var(--str-chat__spacing-2);
|
|
6
|
+
bottom: calc(var(--str-chat__spacing-px) * 10);
|
|
7
|
+
z-index: 101;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.str-chat__list-notifications {
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
/* Only available in React SDK. */
|
|
4
|
+
.str-chat {
|
|
5
|
+
/* The background color of the component */
|
|
6
|
+
--str-chat__message-notification-background-color: var(--str-chat__primary-color);
|
|
7
|
+
|
|
8
|
+
/* Top border of the component */
|
|
9
|
+
--str-chat__message-notification-border-block-start: none;
|
|
10
|
+
|
|
11
|
+
/* Bottom border of the component */
|
|
12
|
+
--str-chat__message-notification-border-block-end: none;
|
|
13
|
+
|
|
14
|
+
/* Left (right in RTL layout) border of the component */
|
|
15
|
+
--str-chat__message-notification-border-inline-start: none;
|
|
16
|
+
|
|
17
|
+
/* Right (left in RTL layout) border of the component */
|
|
18
|
+
--str-chat__message-notification-border-inline-end: none;
|
|
19
|
+
|
|
20
|
+
/* The border radius used for the borders of the component */
|
|
21
|
+
--str-chat__message-notification-border-radius: 50px;
|
|
22
|
+
|
|
23
|
+
/* Box shadow applied to the component */
|
|
24
|
+
--str-chat__message-notification-box-shadow: none;
|
|
25
|
+
|
|
26
|
+
/* The text/icon color of the component */
|
|
27
|
+
--str-chat__message-notification-color: var(--str-chat__on-primary-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.str-chat__message-notification {
|
|
31
|
+
@include utils.component-layer-overrides('message-notification');
|
|
32
|
+
font: var(--str-chat__caption-text);
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__notification-border-radius: var(--str-chat__border-radius-sm);
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__notification-color: var(--str-chat__opaque-surface-text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__notification-background-color: var(--str-chat__opaque-surface-background-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__notification-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__notification-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__notification-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__notification-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__notification-box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.str-chat__notification {
|
|
30
|
+
@include utils.component-layer-overrides('notification');
|
|
31
|
+
font: var(--str-chat__subtitle-text);
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__notification-list-border-radius: none;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__notification-list-color: var(--str-chat__notification-list-text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__notification-list-background-color: transparent;
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__notification-list-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__notification-list-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__notification-list-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__notification-list-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__notification-list-box-shadow: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.str-chat__list-notification-lists {
|
|
30
|
+
@include utils.component-layer-overrides('notification-list-list');
|
|
31
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__thread-container {
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
.str-chat__thread-header {
|
|
10
|
+
@include utils.header-layout;
|
|
11
|
+
|
|
12
|
+
.str-chat__thread-header-details {
|
|
13
|
+
@include utils.header-text-layout;
|
|
14
|
+
|
|
15
|
+
.str-chat__thread-header-name,
|
|
16
|
+
.str-chat__thread-header-reply-count,
|
|
17
|
+
.str-chat__thread-header-channel-name,
|
|
18
|
+
.str-chat__thread-header-subtitle,
|
|
19
|
+
.str-chat__thread-header-title {
|
|
20
|
+
@include utils.ellipsis-text;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.str-chat__close-thread-button {
|
|
25
|
+
$icon-size: calc(var(--str-chat__spacing-px) * 21);
|
|
26
|
+
@include utils.flex-top-right;
|
|
27
|
+
width: calc(var(--str-chat__spacing-px) * 40);
|
|
28
|
+
height: calc(var(--str-chat__spacing-px) * 40);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
line-height: $icon-size;
|
|
31
|
+
font-size: $icon-size;
|
|
32
|
+
|
|
33
|
+
svg {
|
|
34
|
+
height: $icon-size;
|
|
35
|
+
width: $icon-size;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.str-chat__thread-list {
|
|
41
|
+
height: auto;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.str-chat__parent-message-li {
|
|
46
|
+
padding: var(--str-chat__spacing-2);
|
|
47
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__thread-border-radius: 0;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__thread-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__thread-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__thread-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__thread-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__thread-border-inline-start: 1px solid var(--str-chat__surface-color);
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__thread-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__thread-box-shadow: none;
|
|
27
|
+
|
|
28
|
+
/* The border radius used for the borders of the thread header */
|
|
29
|
+
--str-chat__thread-header-border-radius: 0;
|
|
30
|
+
|
|
31
|
+
/* The text/icon color of the thread header */
|
|
32
|
+
--str-chat__thread-header-color: var(--str-chat__text-color);
|
|
33
|
+
|
|
34
|
+
/* The background color of the thread header */
|
|
35
|
+
--str-chat__thread-header-background-color: var(--str-chat__secondary-background-color);
|
|
36
|
+
|
|
37
|
+
/* Top border of the thread header */
|
|
38
|
+
--str-chat__thread-header-border-block-start: none;
|
|
39
|
+
|
|
40
|
+
/* Bottom border of the thread header */
|
|
41
|
+
--str-chat__thread-header-border-block-end: none;
|
|
42
|
+
|
|
43
|
+
/* Left (right in RTL layout) border of the thread header */
|
|
44
|
+
--str-chat__thread-header-border-inline-start: none;
|
|
45
|
+
|
|
46
|
+
/* Right (left in RTL layout) border of the thread header */
|
|
47
|
+
--str-chat__thread-header-border-inline-end: none;
|
|
48
|
+
|
|
49
|
+
/* Box shadow applied to the thread header */
|
|
50
|
+
--str-chat__thread-header-box-shadow: none;
|
|
51
|
+
|
|
52
|
+
/* The text/icon color used to display less emphasized text in the channel header */
|
|
53
|
+
--str-chat__thread-header-info-color: var(--str-chat__text-low-emphasis-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.str-chat__thread-container {
|
|
57
|
+
@include utils.component-layer-overrides('thread');
|
|
58
|
+
|
|
59
|
+
.str-chat__thread-header {
|
|
60
|
+
@include utils.component-layer-overrides('thread-header');
|
|
61
|
+
|
|
62
|
+
.str-chat__thread-header-name,
|
|
63
|
+
.str-chat__thread-header-title {
|
|
64
|
+
font: var(--str-chat__subtitle-medium-text);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.str-chat__thread-header-channel-name,
|
|
68
|
+
.str-chat__thread-header-subtitle {
|
|
69
|
+
font: var(--str-chat__body-text);
|
|
70
|
+
color: var(--str-chat__thread-header-info-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.str-chat__close-thread-button {
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
border: none;
|
|
76
|
+
|
|
77
|
+
svg path {
|
|
78
|
+
fill: var(--str-chat__thread-color);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__tooltip {
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: var(--str-chat__spacing-2);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.str-chat__tooltip:not(.str-chat__tooltip-angular) {
|
|
9
|
+
$size: 10px;
|
|
10
|
+
|
|
11
|
+
min-width: calc(var(--str-chat__spacing-px) * 100px);
|
|
12
|
+
max-width: calc(var(--str-chat__spacing-px) * 150px);
|
|
13
|
+
word-break: break-all;
|
|
14
|
+
position: absolute;
|
|
15
|
+
bottom: calc(100% + calc(0.8 * #{$size}));
|
|
16
|
+
|
|
17
|
+
&::after {
|
|
18
|
+
content: '';
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: calc(-1 * calc(#{$size} / 2));
|
|
21
|
+
inset-inline-start: calc(50% - calc(#{$size} / 2));
|
|
22
|
+
width: $size;
|
|
23
|
+
height: $size;
|
|
24
|
+
transform: rotate(45deg);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.str-chat__tooltip-angular {
|
|
29
|
+
word-break: normal;
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__tooltip-border-radius: var(--str-chat__border-radius-xs);
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__tooltip-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__tooltip-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__tooltip-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__tooltip-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__tooltip-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__tooltip-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__tooltip-box-shadow: 0 0 20px var(--str-chat__box-shadow-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.str-chat__tooltip {
|
|
30
|
+
@include utils.component-layer-overrides('tooltip');
|
|
31
|
+
font: var(--str-chat__caption-text);
|
|
32
|
+
|
|
33
|
+
&::after {
|
|
34
|
+
background-color: var(--str-chat__tooltip-background-color);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__typing-indicator-react-host {
|
|
4
|
+
position: static !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.str-chat__typing-indicator {
|
|
8
|
+
padding: var(--str-chat__spacing-1_5);
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
align-items: center;
|
|
12
|
+
column-gap: var(--str-chat__spacing-1);
|
|
13
|
+
position: absolute;
|
|
14
|
+
inset-block-end: 0;
|
|
15
|
+
inset-inline-start: 0;
|
|
16
|
+
inset-inline-end: 0;
|
|
17
|
+
|
|
18
|
+
.str-chat__typing-indicator__dots {
|
|
19
|
+
@include utils.flex-row-center;
|
|
20
|
+
column-gap: var(--str-chat__spacing-0_5);
|
|
21
|
+
|
|
22
|
+
.str-chat__typing-indicator__dot {
|
|
23
|
+
width: calc(var(--str-chat__spacing-px) * 4);
|
|
24
|
+
height: calc(var(--str-chat__spacing-px) * 4);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__typing-indicator-border-radius: none;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__typing-indicator-color: var(--str-chat__text-low-emphasis-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__typing-indicator-background-color: var(--str-chat__overlay-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__typing-indicator-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__typing-indicator-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__typing-indicator-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__typing-indicator-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__typing-indicator-box-shadow: none;
|
|
27
|
+
|
|
28
|
+
/* Background color of the animated dots in the typing indicator */
|
|
29
|
+
--str-chat__typing-indicator-dot-background-color: var(--str-chat__text-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.str-chat__typing-indicator {
|
|
33
|
+
@include utils.component-layer-overrides('typing-indicator');
|
|
34
|
+
|
|
35
|
+
.str-chat__typing-indicator__dots {
|
|
36
|
+
.str-chat__typing-indicator__dot {
|
|
37
|
+
border-radius: 999px;
|
|
38
|
+
animation: dotFlashing 1s infinite alternate;
|
|
39
|
+
background-color: var(--str-chat__typing-indicator-dot-background-color);
|
|
40
|
+
|
|
41
|
+
&:nth-child(1) {
|
|
42
|
+
animation-delay: 0s;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:nth-child(2) {
|
|
46
|
+
animation-delay: 0.5s;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:nth-child(3) {
|
|
50
|
+
animation-delay: 1s;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes dotFlashing {
|
|
54
|
+
0% {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
50% {
|
|
59
|
+
opacity: 0.6;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
100% {
|
|
63
|
+
opacity: 0.2;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.str-chat {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
|
|
4
|
+
* {
|
|
5
|
+
font-family: var(--str-chat__font-family);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Overriding styles of ngx-popperjs
|
|
10
|
+
.ngxp__container {
|
|
11
|
+
z-index: 1;
|
|
12
|
+
margin: -8px !important;
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
box-shadow: none !important;
|
|
15
|
+
border: none !important;
|
|
16
|
+
|
|
17
|
+
.ngxp__arrow {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Fixes icon sizing problem in Angular SDK
|
|
24
|
+
stream-icon,
|
|
25
|
+
stream-icon-placeholder {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|