stream-chat-react 9.4.1 → 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 +16392 -10717
- 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.js +10 -6
- 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 +8773 -3961
- 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 +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +11 -7
- 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,62 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
// Class defined by Angular mentions
|
|
4
|
+
// !important necessary to override library defined styles
|
|
5
|
+
.mention-menu {
|
|
6
|
+
padding: var(--str-chat__spacing-2) 0 !important;
|
|
7
|
+
margin: 0 !important;
|
|
8
|
+
min-width: 50%;
|
|
9
|
+
|
|
10
|
+
.mention-item {
|
|
11
|
+
padding: 0 !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// React SDK's version of Angular SDK's .dropup (mention-list)
|
|
16
|
+
.str-chat__suggestion-list-container {
|
|
17
|
+
position: absolute;
|
|
18
|
+
bottom: var(--str-chat__spacing-7);
|
|
19
|
+
width: 100%;
|
|
20
|
+
padding: var(--str-chat__spacing-2) 0;
|
|
21
|
+
|
|
22
|
+
.str-chat__suggestion-list {
|
|
23
|
+
max-height: calc(var(--str-chat__spacing-px) * 320);
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
|
|
28
|
+
list-style: none;
|
|
29
|
+
padding: unset;
|
|
30
|
+
margin: unset;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.str-chat__slash-command {
|
|
35
|
+
padding: var(--str-chat__spacing-2_5);
|
|
36
|
+
|
|
37
|
+
.str-chat__slash-command-header {
|
|
38
|
+
.str-chat__slash-command-args {
|
|
39
|
+
margin-inline-start: var(--str-chat__spacing-2);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.str-chat__user-item {
|
|
45
|
+
@include utils.flex-row-center;
|
|
46
|
+
padding: var(--str-chat__spacing-2_5);
|
|
47
|
+
column-gap: var(--str-chat__spacing-2);
|
|
48
|
+
|
|
49
|
+
.str-chat__user-item--name {
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.str-chat__emoji-item {
|
|
55
|
+
@include utils.flex-row-center;
|
|
56
|
+
padding: var(--str-chat__spacing-2_5);
|
|
57
|
+
column-gap: var(--str-chat__spacing-2);
|
|
58
|
+
|
|
59
|
+
.str-chat__emoji-item--name {
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__autocomplete-menu-border-radius: var(--str-chat__border-radius-xs);
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__autocomplete-menu-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__autocomplete-menu-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__autocomplete-menu-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__autocomplete-menu-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__autocomplete-menu-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__autocomplete-menu-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__autocomplete-menu-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
|
|
27
|
+
|
|
28
|
+
/* The background color of a selected autocomplete item */
|
|
29
|
+
--str-chat__autocomplete-active-background-color: var(--str-chat__surface-color);
|
|
30
|
+
|
|
31
|
+
/* The border radius used for the borders of the component (ReactSDK) */
|
|
32
|
+
--str-chat__suggestion-list-container-border-radius: var(--str-chat__border-radius-xs);
|
|
33
|
+
|
|
34
|
+
/* The text/icon color of the component (ReactSDK) */
|
|
35
|
+
--str-chat__suggestion-list-container-color: var(--str-chat__text-color);
|
|
36
|
+
|
|
37
|
+
/* The background color of the component (ReactSDK) */
|
|
38
|
+
--str-chat__suggestion-list-container-background-color: var(
|
|
39
|
+
--str-chat__secondary-background-color
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
/* Top border of the component (ReactSDK) */
|
|
43
|
+
--str-chat__suggestion-list-container-border-block-start: none;
|
|
44
|
+
|
|
45
|
+
/* Bottom border of the component (ReactSDK) */
|
|
46
|
+
--str-chat__suggestion-list-container-border-block-end: none;
|
|
47
|
+
|
|
48
|
+
/* Left (right in RTL layout) border of the component (ReactSDK) */
|
|
49
|
+
--str-chat__suggestion-list-container-border-inline-start: none;
|
|
50
|
+
|
|
51
|
+
/* Right (left in RTL layout) border of the component (ReactSDK) */
|
|
52
|
+
--str-chat__suggestion-list-container-border-inline-end: none;
|
|
53
|
+
|
|
54
|
+
/* Box shadow applied to the component (ReactSDK) */
|
|
55
|
+
--str-chat__suggestion-list-container-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
|
|
56
|
+
|
|
57
|
+
/* The background color of a selected autocomplete item (ReactSDK) */
|
|
58
|
+
--str-chat__suggestion-list-item--selected-background-color: var(--str-chat__surface-color);
|
|
59
|
+
|
|
60
|
+
/* The border radius used for the borders of the slash command item in the autocomplete list */
|
|
61
|
+
--str-chat__slash-command-border-radius: 0;
|
|
62
|
+
|
|
63
|
+
/* The text/icon color of the slash command item in the autocomplete list */
|
|
64
|
+
--str-chat__slash-command-color: var(--str-chat__text-color);
|
|
65
|
+
|
|
66
|
+
/* The background color of the slash command item in the autocomplete list */
|
|
67
|
+
--str-chat__slash-command-background-color: transparent;
|
|
68
|
+
|
|
69
|
+
/* Top border of the slash command item in the autocomplete list */
|
|
70
|
+
--str-chat__slash-command-border-block-start: none;
|
|
71
|
+
|
|
72
|
+
/* Bottom border of the slash command item in the autocomplete list */
|
|
73
|
+
--str-chat__slash-command-border-block-end: none;
|
|
74
|
+
|
|
75
|
+
/* Left (right in RTL layout) border of the slash command item in the autocomplete list */
|
|
76
|
+
--str-chat__slash-command-border-inline-start: none;
|
|
77
|
+
|
|
78
|
+
/* Right (left in RTL layout) border of the slash command item in the autocomplete list */
|
|
79
|
+
--str-chat__slash-command-border-inline-end: none;
|
|
80
|
+
|
|
81
|
+
/* Box shadow of the slash command item in the autocomplete list */
|
|
82
|
+
--str-chat__slash-command-box-shadow: none;
|
|
83
|
+
|
|
84
|
+
/* Text color of the arguments of a slash command item in the autocomplete list */
|
|
85
|
+
--str-chat__slash-command-args-color: var(--str-chat__text-low-emphasis-color);
|
|
86
|
+
|
|
87
|
+
/* The border radius used for the borders of the user mention item in the autocomplete list */
|
|
88
|
+
--str-chat__mention-list-user-item-border-radius: 0;
|
|
89
|
+
|
|
90
|
+
/* The text/icon color of the user mention item in the autocomplete list */
|
|
91
|
+
--str-chat__mention-list-user-item-color: var(--str-chat__text-color);
|
|
92
|
+
|
|
93
|
+
/* The background color of the user mention item in the autocomplete list */
|
|
94
|
+
--str-chat__mention-list-user-item-background-color: transparent;
|
|
95
|
+
|
|
96
|
+
/* Top border of the user mention item in the autocomplete list */
|
|
97
|
+
--str-chat__mention-list-user-item-border-block-start: none;
|
|
98
|
+
|
|
99
|
+
/* Bottom border of the user mention item in the autocomplete list */
|
|
100
|
+
--str-chat__mention-list-user-item-border-block-end: none;
|
|
101
|
+
|
|
102
|
+
/* Left (right in RTL layout) border of the user mention item in the autocomplete list */
|
|
103
|
+
--str-chat__mention-list-user-item-border-inline-start: none;
|
|
104
|
+
|
|
105
|
+
/* Right (left in RTL layout) border of the user mention item in the autocomplete list */
|
|
106
|
+
--str-chat__mention-list-user-item-border-inline-end: none;
|
|
107
|
+
|
|
108
|
+
/* Box shadow of the user mention item in the autocomplete list */
|
|
109
|
+
--str-chat__mention-list-user-item-box-shadow: none;
|
|
110
|
+
|
|
111
|
+
/* The text color of the at sign inside a user mention itome in the autocomplete list */
|
|
112
|
+
--str-chat__mention-list-user-item-at-sign-color: var(--str-chat__primary-color);
|
|
113
|
+
|
|
114
|
+
/* The font used in the emoji suggestion item in the autocomplete list */
|
|
115
|
+
--str-chat__mention-list-emoji-item-font-family: var(--str-chat__font-family);
|
|
116
|
+
|
|
117
|
+
/* The border radius used for the borders of the emoji suggestion item in the autocomplete list */
|
|
118
|
+
--str-chat__mention-list-emoji-item-border-radius: 0;
|
|
119
|
+
|
|
120
|
+
/* The text/icon color of the emoji suggestion item in the autocomplete list */
|
|
121
|
+
--str-chat__mention-list-emoji-item-color: var(--str-chat__text-color);
|
|
122
|
+
|
|
123
|
+
/* The background color of the emoji suggestion item in the autocomplete list */
|
|
124
|
+
--str-chat__mention-list-emoji-item-background-color: transparent;
|
|
125
|
+
|
|
126
|
+
/* Top border of the emoji suggestion item in the autocomplete list */
|
|
127
|
+
--str-chat__mention-list-emoji-item-border-block-start: none;
|
|
128
|
+
|
|
129
|
+
/* Bottom border of the emoji suggestion item in the autocomplete list */
|
|
130
|
+
--str-chat__mention-list-emoji-item-border-block-end: none;
|
|
131
|
+
|
|
132
|
+
/* Left (right in RTL layout) border of the emoji suggestion item in the autocomplete list */
|
|
133
|
+
--str-chat__mention-list-emoji-item-border-inline-start: none;
|
|
134
|
+
|
|
135
|
+
/* Right (left in RTL layout) border of the emoji suggestion item in the autocomplete list */
|
|
136
|
+
--str-chat__mention-list-emoji-item-border-inline-end: none;
|
|
137
|
+
|
|
138
|
+
/* Box shadow of the emoji suggestion item in the autocomplete list */
|
|
139
|
+
--str-chat__mention-list-emoji-item-box-shadow: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Class defined by Angular mentions
|
|
143
|
+
// !important necessary to override library defined styles
|
|
144
|
+
.mention-menu {
|
|
145
|
+
@include utils.component-layer-overrides('autocomplete-menu', '!important');
|
|
146
|
+
|
|
147
|
+
.active.mention-active > a {
|
|
148
|
+
background-color: var(--str-chat__autocomplete-active-background-color) !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.mention-item {
|
|
152
|
+
color: var(--str-chat__autocomplete-menu-color) !important;
|
|
153
|
+
background-color: transparent !important;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.str-chat__slash-command {
|
|
158
|
+
@include utils.component-layer-overrides('slash-command');
|
|
159
|
+
|
|
160
|
+
.str-chat__slash-command-header {
|
|
161
|
+
.str-chat__slash-command-name {
|
|
162
|
+
text-transform: capitalize;
|
|
163
|
+
font: var(--str-chat__subtitle2-text);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.str-chat__slash-command-args {
|
|
167
|
+
color: var(--str-chat__slash-command-args-color);
|
|
168
|
+
font: var(--str-chat__subtitle-text);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.str-chat__user-item {
|
|
174
|
+
@include utils.component-layer-overrides('mention-list-user-item');
|
|
175
|
+
|
|
176
|
+
.str-chat__user-item--name {
|
|
177
|
+
font: var(--str-chat__subtitle-text);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.str-chat__user-item-at {
|
|
181
|
+
font: var(--str-chat__subtitle2-text);
|
|
182
|
+
color: var(--str-chat__mention-list-user-item-at-sign-color);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.str-chat__emoji-item {
|
|
187
|
+
@include utils.component-layer-overrides('mention-list-emoji-item');
|
|
188
|
+
|
|
189
|
+
.str-chat__emoji-item--name {
|
|
190
|
+
font: var(--str-chat__subtitle-text);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// TODO?: rename to autocomplete? or create new file
|
|
195
|
+
.str-chat__suggestion-list-container {
|
|
196
|
+
@include utils.component-layer-overrides('suggestion-list-container');
|
|
197
|
+
|
|
198
|
+
.str-chat__suggestion-list {
|
|
199
|
+
.str-chat__suggestion-list-item > a {
|
|
200
|
+
text-decoration: none;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.str-chat__suggestion-item--selected {
|
|
204
|
+
background-color: var(--str-chat__suggestion-list-item--selected-background-color);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.str-chat__avatar {
|
|
2
|
+
.str-chat__avatar-fallback {
|
|
3
|
+
text-align: center;
|
|
4
|
+
height: inherit;
|
|
5
|
+
width: inherit;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.str-chat__loading-channels-avatar {
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
width: calc(var(--str-chat__spacing-px) * 49);
|
|
12
|
+
height: calc(var(--str-chat__spacing-px) * 49);
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__avatar-border-radius: var(--str-chat__border-radius-circle);
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__avatar-color: var(--str-chat__on-primary-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__avatar-background-color: var(--str-chat__primary-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__avatar-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__avatar-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__avatar-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__avatar-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__avatar-box-shadow: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.str-chat__avatar {
|
|
30
|
+
.str-chat__avatar-image {
|
|
31
|
+
@include utils.component-layer-overrides('avatar');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.str-chat__avatar-fallback {
|
|
35
|
+
@include utils.component-layer-overrides('avatar');
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.str-chat__loading-channels-avatar {
|
|
41
|
+
border-radius: var(--str-chat__avatar-border-radius);
|
|
42
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__channel {
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
.str-chat__container {
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
|
|
13
|
+
.str-chat__main-panel {
|
|
14
|
+
height: 100%;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
width: 100%;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.str-chat__empty-channel {
|
|
24
|
+
@include utils.empty-layout;
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
.str-chat__empty-channel-notifications {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset-block-end: var(--str-chat__spacing-2);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.str-chat__loading-channel {
|
|
34
|
+
$text-height: calc(var(--str-chat__spacing-px) * 16);
|
|
35
|
+
height: 100%;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
|
|
39
|
+
.str-chat__loading-channel-header {
|
|
40
|
+
@include utils.header-layout;
|
|
41
|
+
|
|
42
|
+
.str-chat__loading-channel-header-avatar {
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
width: calc(var(--str-chat__spacing-px) * 40);
|
|
45
|
+
height: calc(var(--str-chat__spacing-px) * 40);
|
|
46
|
+
border-radius: var(--str-chat__avatar-border-radius);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.str-chat__loading-channel-header-end {
|
|
50
|
+
@include utils.header-text-layout;
|
|
51
|
+
|
|
52
|
+
.str-chat__loading-channel-header-name {
|
|
53
|
+
border-radius: var(--str-chat__border-radius-xs);
|
|
54
|
+
height: $text-height;
|
|
55
|
+
width: calc(var(--str-chat__spacing-px) * 170);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.str-chat__loading-channel-header-info {
|
|
59
|
+
border-radius: var(--str-chat__border-radius-xs);
|
|
60
|
+
height: $text-height;
|
|
61
|
+
width: calc(var(--str-chat__spacing-px) * 66);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.str-chat__loading-channel-message-list {
|
|
67
|
+
@include utils.message-list-spacing;
|
|
68
|
+
height: 100%;
|
|
69
|
+
|
|
70
|
+
.str-chat__loading-channel-message {
|
|
71
|
+
display: flex;
|
|
72
|
+
width: 100%;
|
|
73
|
+
column-gap: var(--str-chat__spacing-2);
|
|
74
|
+
padding: var(--str-chat__spacing-4) 0;
|
|
75
|
+
|
|
76
|
+
.str-chat__loading-channel-message-avatar {
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
width: calc(var(--str-chat__spacing-px) * 49);
|
|
79
|
+
height: calc(var(--str-chat__spacing-px) * 49);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.str-chat__loading-channel-message-end {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
width: 100%;
|
|
86
|
+
row-gap: var(--str-chat__spacing-2);
|
|
87
|
+
|
|
88
|
+
.str-chat__loading-channel-message-last-row {
|
|
89
|
+
display: flex;
|
|
90
|
+
width: 100%;
|
|
91
|
+
column-gap: var(--str-chat__spacing-2);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.str-chat__loading-channel-message-sender {
|
|
96
|
+
height: $text-height;
|
|
97
|
+
width: calc(var(--str-chat__spacing-px) * 66);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.str-chat__loading-channel-message-text {
|
|
101
|
+
height: $text-height;
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.str-chat__loading-channel-message-date {
|
|
106
|
+
height: $text-height;
|
|
107
|
+
width: calc(var(--str-chat__spacing-px) * 50);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:nth-of-type(2) {
|
|
111
|
+
flex-direction: row-reverse;
|
|
112
|
+
|
|
113
|
+
.str-chat__loading-channel-message-sender {
|
|
114
|
+
align-self: end;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.str-chat__loading-channel-message-last-row {
|
|
118
|
+
flex-direction: row-reverse;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.str-chat__loading-channel-message-input-row {
|
|
125
|
+
display: flex;
|
|
126
|
+
column-gap: var(--str-chat__spacing-2);
|
|
127
|
+
padding: var(--str-chat__spacing-2);
|
|
128
|
+
|
|
129
|
+
.str-chat__loading-channel-message-input {
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: calc(var(--str-chat__spacing-px) * 36);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.str-chat__loading-channel-message-send {
|
|
135
|
+
height: calc(var(--str-chat__spacing-px) * 36);
|
|
136
|
+
width: calc(var(--str-chat__spacing-px) * 36);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__channel-border-radius: 0;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__channel-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__channel-background-color: var(--str-chat__background-color);
|
|
12
|
+
|
|
13
|
+
/* Box shadow applied to the component */
|
|
14
|
+
--str-chat__channel-box-shadow: none;
|
|
15
|
+
|
|
16
|
+
/* Top border of the component */
|
|
17
|
+
--str-chat__channel-border-block-start: none;
|
|
18
|
+
|
|
19
|
+
/* Bottom border of the component */
|
|
20
|
+
--str-chat__channel-border-block-end: none;
|
|
21
|
+
|
|
22
|
+
/* Left (right in RTL layout) border of the component */
|
|
23
|
+
--str-chat__channel-border-inline-start: none;
|
|
24
|
+
|
|
25
|
+
/* Right (left in RTL layout) border of the component */
|
|
26
|
+
--str-chat__channel-border-inline-end: none;
|
|
27
|
+
|
|
28
|
+
/* The icon color used when no channel is selected */
|
|
29
|
+
--str-chat__channel-empty-indicator-color: var(--str-chat__disabled-color);
|
|
30
|
+
|
|
31
|
+
/* The text color used when no channel is selected */
|
|
32
|
+
--str-chat__channel-empty-color: var(--str-chat__text-low-emphasis-color);
|
|
33
|
+
|
|
34
|
+
/* The color of the loading indicator */
|
|
35
|
+
--str-chat__channel-loading-state-color: var(--str-chat__disabled-color);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.str-chat__channel {
|
|
39
|
+
@include utils.component-layer-overrides('channel');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.str-chat__empty-channel {
|
|
43
|
+
@include utils.component-layer-overrides('channel');
|
|
44
|
+
@include utils.empty-theme('channel');
|
|
45
|
+
|
|
46
|
+
.str-chat__empty-channel-text {
|
|
47
|
+
color: var(--str-chat__channel-empty-color);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.str-chat__loading-channel {
|
|
52
|
+
@include utils.loading-animation;
|
|
53
|
+
|
|
54
|
+
.str-chat__loading-channel-header {
|
|
55
|
+
background-color: var(--str-chat__channel-header-background-color);
|
|
56
|
+
|
|
57
|
+
.str-chat__loading-channel-header-avatar {
|
|
58
|
+
@include utils.loading-item-background('channel');
|
|
59
|
+
border-radius: var(--str-chat__avatar-border-radius);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.str-chat__loading-channel-header-name,
|
|
63
|
+
.str-chat__loading-channel-header-info {
|
|
64
|
+
@include utils.loading-item-background('channel');
|
|
65
|
+
border-radius: var(--str-chat__border-radius-xs);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.str-chat__loading-channel-message-list {
|
|
70
|
+
background-color: var(--str-chat__message-list-background-color);
|
|
71
|
+
|
|
72
|
+
.str-chat__loading-channel-message-avatar {
|
|
73
|
+
@include utils.loading-item-background('channel');
|
|
74
|
+
border-radius: var(--str-chat__avatar-border-radius);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.str-chat__loading-channel-message-sender,
|
|
78
|
+
.str-chat__loading-channel-message-text,
|
|
79
|
+
.str-chat__loading-channel-message-date {
|
|
80
|
+
@include utils.loading-item-background('channel');
|
|
81
|
+
border-radius: var(--str-chat__message-bubble-border-radius);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.str-chat__loading-channel-message-input-row {
|
|
86
|
+
.str-chat__loading-channel-message-input,
|
|
87
|
+
.str-chat__loading-channel-message-send {
|
|
88
|
+
@include utils.loading-item-background('channel');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.str-chat__loading-channel-message-input {
|
|
92
|
+
border-radius: var(--str-chat__message-textarea-border-radius);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.str-chat__loading-channel-message-send {
|
|
96
|
+
border-radius: var(--str-chat__message-send-border-radius);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__channel-header {
|
|
4
|
+
@include utils.header-layout;
|
|
5
|
+
|
|
6
|
+
// Only visible in theme-v1
|
|
7
|
+
.str-chat__header-hamburger {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.str-chat__channel-header-end {
|
|
12
|
+
@include utils.header-text-layout;
|
|
13
|
+
|
|
14
|
+
p {
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.str-chat__channel-header-title,
|
|
19
|
+
.str-chat__channel-header-info {
|
|
20
|
+
@include utils.ellipsis-text;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__channel-header-border-radius: 0;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__channel-header-color: 0;
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__channel-header-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__channel-header-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__channel-header-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__channel-header-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__channel-header-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__channel-header-box-shadow: none;
|
|
27
|
+
|
|
28
|
+
/* The text/icon color used to display member information about the channel */
|
|
29
|
+
--str-chat__channel-header-info-color: var(--str-chat__text-low-emphasis-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.str-chat__channel-header {
|
|
33
|
+
@include utils.component-layer-overrides('channel-header');
|
|
34
|
+
|
|
35
|
+
.str-chat__channel-header-title {
|
|
36
|
+
font: var(--str-chat__subtitle-medium-text);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.str-chat__channel-header-info {
|
|
40
|
+
font: var(--str-chat__body-text);
|
|
41
|
+
color: var(--str-chat__channel-header-info-color);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__channel-list {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
overflow-x: hidden;
|
|
9
|
+
|
|
10
|
+
.str-chat__channel-list-messenger {
|
|
11
|
+
height: 100%;
|
|
12
|
+
|
|
13
|
+
.str-chat__channel-list-messenger__main {
|
|
14
|
+
height: 100%;
|
|
15
|
+
|
|
16
|
+
.str-chat__channel-list-empty {
|
|
17
|
+
@include utils.empty-layout;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Empty channel list for theme-v1
|
|
21
|
+
.str-chat__channel-list-empty-v1 {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.str-chat__load-more-button {
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
margin: var(--str-chat__spacing-2) 0;
|
|
31
|
+
|
|
32
|
+
.str-chat__load-more-button__button {
|
|
33
|
+
@include utils.flex-row-center;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// This is displayed only in theme-v1
|
|
38
|
+
.str-chat__down-main {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
}
|