@ohos-ports/stream-chat-angular 0.0.0-stage → 7.2.0-beta.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/README.md +139 -2
- package/assets/i18n/en.d.ts +157 -0
- package/assets/version.d.ts +1 -0
- package/esm2022/assets/i18n/en.mjs +158 -0
- package/esm2022/assets/version.mjs +2 -0
- package/esm2022/lib/attachment-configuration.service.mjs +182 -0
- package/esm2022/lib/attachment-list/attachment-list.component.mjs +232 -0
- package/esm2022/lib/attachment-preview-list/attachment-preview-list.component.mjs +55 -0
- package/esm2022/lib/attachment.service.mjs +481 -0
- package/esm2022/lib/avatar/avatar.component.mjs +160 -0
- package/esm2022/lib/avatar-placeholder/avatar-placeholder.component.mjs +66 -0
- package/esm2022/lib/channel/channel.component.mjs +45 -0
- package/esm2022/lib/channel-header/channel-header.component.mjs +72 -0
- package/esm2022/lib/channel-list/channel-list.component.mjs +47 -0
- package/esm2022/lib/channel-preview/channel-preview.component.mjs +158 -0
- package/esm2022/lib/channel-query.mjs +77 -0
- package/esm2022/lib/channel.service.mjs +1576 -0
- package/esm2022/lib/chat-client.service.mjs +233 -0
- package/esm2022/lib/custom-templates.service.mjs +258 -0
- package/esm2022/lib/date-parser.service.mjs +51 -0
- package/esm2022/lib/file-utils.mjs +35 -0
- package/esm2022/lib/format-duration.mjs +16 -0
- package/esm2022/lib/get-channel-display-text.mjs +14 -0
- package/esm2022/lib/get-message-translation.mjs +12 -0
- package/esm2022/lib/icon/icon-placeholder/icon-placeholder.component.mjs +28 -0
- package/esm2022/lib/icon/icon.component.mjs +17 -0
- package/esm2022/lib/icon/icon.module.mjs +37 -0
- package/esm2022/lib/icon/loading-indicator/loading-indicator.component.mjs +15 -0
- package/esm2022/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +20 -0
- package/esm2022/lib/injection-tokens.mjs +3 -0
- package/esm2022/lib/is-image-attachment.mjs +6 -0
- package/esm2022/lib/is-on-separate-date.mjs +11 -0
- package/esm2022/lib/is-safari.mjs +2 -0
- package/esm2022/lib/list-users.mjs +12 -0
- package/esm2022/lib/message/message.component.mjs +501 -0
- package/esm2022/lib/message-actions-box/message-actions-box.component.mjs +123 -0
- package/esm2022/lib/message-actions.service.mjs +191 -0
- package/esm2022/lib/message-blocked/message-blocked.component.mjs +25 -0
- package/esm2022/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +71 -0
- package/esm2022/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +333 -0
- package/esm2022/lib/message-input/emoji-input.service.mjs +23 -0
- package/esm2022/lib/message-input/message-input-config.service.mjs +50 -0
- package/esm2022/lib/message-input/message-input.component.mjs +626 -0
- package/esm2022/lib/message-input/textarea/textarea.component.mjs +113 -0
- package/esm2022/lib/message-input/textarea.directive.mjs +93 -0
- package/esm2022/lib/message-input/textarea.interface.mjs +2 -0
- package/esm2022/lib/message-input/voice-recorder.service.mjs +27 -0
- package/esm2022/lib/message-list/group-styles.mjs +52 -0
- package/esm2022/lib/message-list/message-list.component.mjs +717 -0
- package/esm2022/lib/message-preview.mjs +22 -0
- package/esm2022/lib/message-reactions/message-reactions.component.mjs +168 -0
- package/esm2022/lib/message-reactions-selector/message-reactions-selector.component.mjs +61 -0
- package/esm2022/lib/message-reactions.service.mjs +70 -0
- package/esm2022/lib/message-text/message-text.component.mjs +141 -0
- package/esm2022/lib/message.service.mjs +43 -0
- package/esm2022/lib/modal/modal.component.mjs +69 -0
- package/esm2022/lib/modal/stream-modal.module.mjs +19 -0
- package/esm2022/lib/notification/notification.component.mjs +20 -0
- package/esm2022/lib/notification-list/notification-list.component.mjs +36 -0
- package/esm2022/lib/notification-list/stream-notification.module.mjs +20 -0
- package/esm2022/lib/notification.service.mjs +79 -0
- package/esm2022/lib/paginated-list/paginated-list.component.mjs +94 -0
- package/esm2022/lib/paginated-list/stream-paginated-list.module.mjs +20 -0
- package/esm2022/lib/parse-date.mjs +27 -0
- package/esm2022/lib/polls/base-poll.component.mjs +87 -0
- package/esm2022/lib/polls/poll/poll.component.mjs +34 -0
- package/esm2022/lib/polls/poll-actions/add-option/add-option.component.mjs +67 -0
- package/esm2022/lib/polls/poll-actions/poll-actions.component.mjs +137 -0
- package/esm2022/lib/polls/poll-actions/poll-answers-list/poll-answers-list.component.mjs +82 -0
- package/esm2022/lib/polls/poll-actions/poll-results/poll-results-list/poll-results-list.component.mjs +63 -0
- package/esm2022/lib/polls/poll-actions/poll-results/poll-vote/poll-vote.component.mjs +33 -0
- package/esm2022/lib/polls/poll-actions/poll-results/poll-vote-results-list/poll-vote-results-list.component.mjs +82 -0
- package/esm2022/lib/polls/poll-actions/upsert-answer/upsert-answer.component.mjs +60 -0
- package/esm2022/lib/polls/poll-composer/poll-composer.component.mjs +134 -0
- package/esm2022/lib/polls/poll-composer/validators.mjs +18 -0
- package/esm2022/lib/polls/poll-header/poll-header.component.mjs +80 -0
- package/esm2022/lib/polls/poll-option-selector/poll-option-selector.component.mjs +137 -0
- package/esm2022/lib/polls/poll-options-list/poll-options-list.component.mjs +39 -0
- package/esm2022/lib/polls/poll-preview/poll-preview.component.mjs +31 -0
- package/esm2022/lib/polls/stream-polls.module.mjs +107 -0
- package/esm2022/lib/polls/unique.validator.mjs +13 -0
- package/esm2022/lib/read-by.mjs +13 -0
- package/esm2022/lib/stream-autocomplete-textarea.module.mjs +33 -0
- package/esm2022/lib/stream-avatar.module.mjs +20 -0
- package/esm2022/lib/stream-chat.module.mjs +163 -0
- package/esm2022/lib/stream-i18n.service.mjs +34 -0
- package/esm2022/lib/stream-textarea.module.mjs +31 -0
- package/esm2022/lib/theme.service.mjs +23 -0
- package/esm2022/lib/thread/thread.component.mjs +51 -0
- package/esm2022/lib/transliteration.service.mjs +24 -0
- package/esm2022/lib/types-custom.mjs +2 -0
- package/esm2022/lib/types.mjs +2 -0
- package/esm2022/lib/user-list/user-list.component.mjs +47 -0
- package/esm2022/lib/virtualized-list.service.mjs +271 -0
- package/esm2022/lib/virtualized-message-list.service.mjs +73 -0
- package/esm2022/lib/voice-recorder/amplitude-recorder.service.mjs +119 -0
- package/esm2022/lib/voice-recorder/audio-recorder.service.mjs +79 -0
- package/esm2022/lib/voice-recorder/media-recorder.mjs +190 -0
- package/esm2022/lib/voice-recorder/mp3-transcoder.mjs +61 -0
- package/esm2022/lib/voice-recorder/transcoder.service.mjs +121 -0
- package/esm2022/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +35 -0
- package/esm2022/lib/voice-recorder/voice-recorder.component.mjs +80 -0
- package/esm2022/lib/voice-recorder/voice-recorder.module.mjs +34 -0
- package/esm2022/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +112 -0
- package/esm2022/lib/voice-recording/voice-recording.component.mjs +91 -0
- package/esm2022/lib/voice-recording/voice-recording.module.mjs +21 -0
- package/esm2022/lib/wave-form-sampler.mjs +72 -0
- package/esm2022/public-api.mjs +104 -0
- package/esm2022/stream-chat-angular.mjs +5 -0
- package/esm2022/stream-chat.mjs +2 -0
- package/fesm2022/stream-chat-angular.mjs +10363 -0
- package/fesm2022/stream-chat-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/attachment-configuration.service.d.ts +58 -0
- package/lib/attachment-list/attachment-list.component.d.ts +76 -0
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +37 -0
- package/lib/attachment.service.d.ts +104 -0
- package/lib/avatar/avatar.component.d.ts +64 -0
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +48 -0
- package/lib/channel/channel.component.d.ts +22 -0
- package/lib/channel-header/channel-header.component.d.ts +36 -0
- package/lib/channel-list/channel-list.component.d.ts +30 -0
- package/lib/channel-preview/channel-preview.component.d.ts +46 -0
- package/lib/channel-query.d.ts +26 -0
- package/lib/channel.service.d.ts +482 -0
- package/lib/chat-client.service.d.ts +91 -0
- package/lib/custom-templates.service.d.ts +258 -0
- package/lib/date-parser.service.d.ts +39 -0
- package/lib/file-utils.d.ts +9 -0
- package/lib/format-duration.d.ts +1 -0
- package/lib/get-channel-display-text.d.ts +2 -0
- package/lib/get-message-translation.d.ts +3 -0
- package/lib/icon/icon-placeholder/icon-placeholder.component.d.ts +20 -0
- package/lib/icon/icon.component.d.ts +14 -0
- package/lib/icon/icon.module.d.ts +11 -0
- package/lib/icon/loading-indicator/loading-indicator.component.d.ts +9 -0
- package/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +11 -0
- package/lib/injection-tokens.d.ts +3 -0
- package/lib/is-image-attachment.d.ts +2 -0
- package/lib/is-on-separate-date.d.ts +1 -0
- package/lib/is-safari.d.ts +1 -0
- package/lib/list-users.d.ts +2 -0
- package/lib/message/message.component.d.ts +126 -0
- package/lib/message-actions-box/message-actions-box.component.d.ts +49 -0
- package/lib/message-actions.service.d.ts +49 -0
- package/lib/message-blocked/message-blocked.component.d.ts +17 -0
- package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +28 -0
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +98 -0
- package/lib/message-input/emoji-input.service.d.ts +14 -0
- package/lib/message-input/message-input-config.service.d.ts +54 -0
- package/lib/message-input/message-input.component.d.ts +189 -0
- package/lib/message-input/textarea/textarea.component.d.ts +55 -0
- package/lib/message-input/textarea.directive.d.ts +24 -0
- package/lib/message-input/textarea.interface.d.ts +14 -0
- package/lib/message-input/voice-recorder.service.d.ts +19 -0
- package/lib/message-list/group-styles.d.ts +3 -0
- package/lib/message-list/message-list.component.d.ts +146 -0
- package/lib/message-preview.d.ts +2 -0
- package/lib/message-reactions/message-reactions.component.d.ts +69 -0
- package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +35 -0
- package/lib/message-reactions.service.d.ts +50 -0
- package/lib/message-text/message-text.component.d.ts +45 -0
- package/lib/message.service.d.ts +38 -0
- package/lib/modal/modal.component.d.ts +29 -0
- package/lib/modal/stream-modal.module.d.ts +9 -0
- package/lib/notification/notification.component.d.ts +19 -0
- package/lib/notification-list/notification-list.component.d.ts +23 -0
- package/lib/notification-list/stream-notification.module.d.ts +10 -0
- package/lib/notification.service.d.ts +38 -0
- package/lib/paginated-list/paginated-list.component.d.ts +45 -0
- package/lib/paginated-list/stream-paginated-list.module.d.ts +10 -0
- package/lib/parse-date.d.ts +1 -0
- package/lib/polls/base-poll.component.d.ts +43 -0
- package/lib/polls/poll/poll.component.d.ts +12 -0
- package/lib/polls/poll-actions/add-option/add-option.component.d.ts +22 -0
- package/lib/polls/poll-actions/poll-actions.component.d.ts +50 -0
- package/lib/polls/poll-actions/poll-answers-list/poll-answers-list.component.d.ts +25 -0
- package/lib/polls/poll-actions/poll-results/poll-results-list/poll-results-list.component.d.ts +22 -0
- package/lib/polls/poll-actions/poll-results/poll-vote/poll-vote.component.d.ts +20 -0
- package/lib/polls/poll-actions/poll-results/poll-vote-results-list/poll-vote-results-list.component.d.ts +24 -0
- package/lib/polls/poll-actions/upsert-answer/upsert-answer.component.d.ts +27 -0
- package/lib/polls/poll-composer/poll-composer.component.d.ts +43 -0
- package/lib/polls/poll-composer/validators.d.ts +3 -0
- package/lib/polls/poll-header/poll-header.component.d.ts +19 -0
- package/lib/polls/poll-option-selector/poll-option-selector.component.d.ts +27 -0
- package/lib/polls/poll-options-list/poll-options-list.component.d.ts +17 -0
- package/lib/polls/poll-preview/poll-preview.component.d.ts +13 -0
- package/lib/polls/stream-polls.module.d.ts +26 -0
- package/lib/polls/unique.validator.d.ts +2 -0
- package/lib/read-by.d.ts +2 -0
- package/lib/stream-autocomplete-textarea.module.d.ts +11 -0
- package/lib/stream-avatar.module.d.ts +10 -0
- package/lib/stream-chat.module.d.ts +35 -0
- package/lib/stream-i18n.service.d.ts +19 -0
- package/lib/stream-textarea.module.d.ts +9 -0
- package/lib/theme.service.d.ts +14 -0
- package/lib/thread/thread.component.d.ts +26 -0
- package/lib/transliteration.service.d.ts +15 -0
- package/lib/types-custom.d.ts +16 -0
- package/lib/types.d.ts +365 -0
- package/lib/user-list/user-list.component.d.ts +29 -0
- package/lib/virtualized-list.service.d.ts +58 -0
- package/lib/virtualized-message-list.service.d.ts +15 -0
- package/lib/voice-recorder/amplitude-recorder.service.d.ts +71 -0
- package/lib/voice-recorder/audio-recorder.service.d.ts +46 -0
- package/lib/voice-recorder/media-recorder.d.ts +46 -0
- package/lib/voice-recorder/mp3-transcoder.d.ts +1 -0
- package/lib/voice-recorder/transcoder.service.d.ts +40 -0
- package/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.d.ts +21 -0
- package/lib/voice-recorder/voice-recorder.component.d.ts +30 -0
- package/lib/voice-recorder/voice-recorder.module.d.ts +12 -0
- package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +36 -0
- package/lib/voice-recording/voice-recording.component.d.ts +29 -0
- package/lib/voice-recording/voice-recording.module.d.ts +11 -0
- package/lib/wave-form-sampler.d.ts +1 -0
- package/package.json +62 -4
- package/public-api.d.ts +99 -0
- package/src/assets/assets/EmojiOneColor.woff2 +0 -0
- package/src/assets/assets/NotoColorEmoji-flags.woff2 +0 -0
- package/src/assets/assets/icons/stream-chat-icons.eot +0 -0
- package/src/assets/assets/icons/stream-chat-icons.svg +50 -0
- package/src/assets/assets/icons/stream-chat-icons.ttf +0 -0
- package/src/assets/assets/icons/stream-chat-icons.woff +0 -0
- package/src/assets/assets/icons/stream-chat-icons.woff2 +0 -0
- package/src/assets/i18n/en.ts +184 -0
- package/src/assets/styles/css/emoji-mart.css +1 -0
- package/src/assets/styles/css/emoji-replacement.css +1 -0
- package/src/assets/styles/css/index.css +1 -0
- package/src/assets/styles/css/index.layout.css +1 -0
- package/src/assets/styles/scss/AIStateIndicator/AIStateIndicator-layout.scss +3 -0
- package/src/assets/styles/scss/AIStateIndicator/AIStateIndicator-theme.scss +7 -0
- package/src/assets/styles/scss/AttachmentList/AttachmentList-layout.scss +701 -0
- package/src/assets/styles/scss/AttachmentList/AttachmentList-theme.scss +605 -0
- package/src/assets/styles/scss/AttachmentPreviewList/AttachmentPreviewList-layout.scss +141 -0
- package/src/assets/styles/scss/AttachmentPreviewList/AttachmentPreviewList-theme.scss +190 -0
- package/src/assets/styles/scss/AudioRecorder/AudioRecorder-layout.scss +139 -0
- package/src/assets/styles/scss/AudioRecorder/AudioRecorder-theme.scss +61 -0
- package/src/assets/styles/scss/Autocomplete/Autocomplete-layout.scss +94 -0
- package/src/assets/styles/scss/Autocomplete/Autocomplete-theme.scss +220 -0
- package/src/assets/styles/scss/Avatar/Avatar-layout.scss +137 -0
- package/src/assets/styles/scss/Avatar/Avatar-theme.scss +64 -0
- package/src/assets/styles/scss/BaseImage/BaseImage-layout.scss +21 -0
- package/src/assets/styles/scss/BaseImage/BaseImage-theme.scss +35 -0
- package/src/assets/styles/scss/BaseImage/index.scss +2 -0
- package/src/assets/styles/scss/Channel/Channel-layout.scss +141 -0
- package/src/assets/styles/scss/Channel/Channel-theme.scss +100 -0
- package/src/assets/styles/scss/ChannelHeader/ChannelHeader-layout.scss +27 -0
- package/src/assets/styles/scss/ChannelHeader/ChannelHeader-theme.scss +43 -0
- package/src/assets/styles/scss/ChannelList/ChannelList-layout.scss +65 -0
- package/src/assets/styles/scss/ChannelList/ChannelList-theme.scss +89 -0
- package/src/assets/styles/scss/ChannelPreview/ChannelPreview-layout.scss +126 -0
- package/src/assets/styles/scss/ChannelPreview/ChannelPreview-theme.scss +148 -0
- package/src/assets/styles/scss/ChannelSearch/ChannelSearch-layout.scss +122 -0
- package/src/assets/styles/scss/ChannelSearch/ChannelSearch-theme.scss +238 -0
- package/src/assets/styles/scss/ChatView/ChatView-layout.scss +43 -0
- package/src/assets/styles/scss/ChatView/ChatView-theme.scss +32 -0
- package/src/assets/styles/scss/Dialog/Dialog-layout.scss +70 -0
- package/src/assets/styles/scss/Dialog/Dialog-theme.scss +103 -0
- package/src/assets/styles/scss/DragAndDropContainer/DragAndDropContainer-layout.scss +5 -0
- package/src/assets/styles/scss/DragAndDropContainer/DragAndDropContainer-theme.scss +47 -0
- package/src/assets/styles/scss/DropzoneContainer/DropzoneContainer-layout.scss +14 -0
- package/src/assets/styles/scss/DropzoneContainer/DropzoneContainer-theme.scss +17 -0
- package/src/assets/styles/scss/EditMessageForm/EditMessageForm-layout.scss +51 -0
- package/src/assets/styles/scss/EditMessageForm/EditMessageForm-theme.scss +50 -0
- package/src/assets/styles/scss/Form/Form-layout.scss +49 -0
- package/src/assets/styles/scss/Form/Form-theme.scss +82 -0
- package/src/assets/styles/scss/Icon/Icon-layout.scss +98 -0
- package/src/assets/styles/scss/Icon/Icon-theme.scss +17 -0
- package/src/assets/styles/scss/ImageCarousel/ImageCarousel-layout.scss +51 -0
- package/src/assets/styles/scss/ImageCarousel/ImageCarousel-theme.scss +30 -0
- package/src/assets/styles/scss/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +4 -0
- package/src/assets/styles/scss/LinkPreview/LinkPreview-layout.scss +67 -0
- package/src/assets/styles/scss/LinkPreview/LinkPreview-theme.scss +32 -0
- package/src/assets/styles/scss/LinkPreview/index.scss +2 -0
- package/src/assets/styles/scss/LoadingIndicator/LoadingIndicator-layout.scss +64 -0
- package/src/assets/styles/scss/LoadingIndicator/LoadingIndicator-theme.scss +14 -0
- package/src/assets/styles/scss/Location/Location-layout.scss +52 -0
- package/src/assets/styles/scss/Location/Location-theme.scss +32 -0
- package/src/assets/styles/scss/Message/Message-layout.scss +605 -0
- package/src/assets/styles/scss/Message/Message-theme.scss +483 -0
- package/src/assets/styles/scss/MessageActionsBox/MessageActionsBox-layout.scss +20 -0
- package/src/assets/styles/scss/MessageActionsBox/MessageActionsBox-theme.scss +85 -0
- package/src/assets/styles/scss/MessageBouncePrompt/MessageBouncePrompt-layout.scss +19 -0
- package/src/assets/styles/scss/MessageBouncePrompt/MessageBouncePrompt-theme.scss +51 -0
- package/src/assets/styles/scss/MessageInput/MessageInput-layout.scss +268 -0
- package/src/assets/styles/scss/MessageInput/MessageInput-theme.scss +359 -0
- package/src/assets/styles/scss/MessageList/MessageList-layout.scss +65 -0
- package/src/assets/styles/scss/MessageList/MessageList-theme.scss +107 -0
- package/src/assets/styles/scss/MessageList/VirtualizedMessageList-layout.scss +57 -0
- package/src/assets/styles/scss/MessageList/VirtualizedMessageList-theme.scss +41 -0
- package/src/assets/styles/scss/MessageReactions/MessageReactions-layout.scss +143 -0
- package/src/assets/styles/scss/MessageReactions/MessageReactions-theme.scss +92 -0
- package/src/assets/styles/scss/MessageReactions/MessageReactionsSelector-layout.scss +86 -0
- package/src/assets/styles/scss/MessageReactions/MessageReactionsSelector-theme.scss +94 -0
- package/src/assets/styles/scss/Modal/Modal-layout.scss +74 -0
- package/src/assets/styles/scss/Modal/Modal-theme.scss +109 -0
- package/src/assets/styles/scss/Notification/MessageNotification-layout.scss +12 -0
- package/src/assets/styles/scss/Notification/MessageNotification-theme.scss +34 -0
- package/src/assets/styles/scss/Notification/Notification-layout.scss +7 -0
- package/src/assets/styles/scss/Notification/Notification-theme.scss +32 -0
- package/src/assets/styles/scss/Notification/NotificationList-layout.scss +11 -0
- package/src/assets/styles/scss/Notification/NotificationList-theme.scss +31 -0
- package/src/assets/styles/scss/Poll/Poll-layout.scss +489 -0
- package/src/assets/styles/scss/Poll/Poll-theme.scss +178 -0
- package/src/assets/styles/scss/Search/Search-layout.scss +148 -0
- package/src/assets/styles/scss/Search/Search-theme.scss +222 -0
- package/src/assets/styles/scss/Thread/Thread-layout.scss +65 -0
- package/src/assets/styles/scss/Thread/Thread-theme.scss +82 -0
- package/src/assets/styles/scss/ThreadList/ThreadList-layout.scss +152 -0
- package/src/assets/styles/scss/ThreadList/ThreadList-theme.scss +75 -0
- package/src/assets/styles/scss/Tooltip/Tooltip-layout.scss +10 -0
- package/src/assets/styles/scss/Tooltip/Tooltip-theme.scss +36 -0
- package/src/assets/styles/scss/TypingIndicator/TypingIndicator-layout.scss +31 -0
- package/src/assets/styles/scss/TypingIndicator/TypingIndicator-theme.scss +68 -0
- package/src/assets/styles/scss/UnreadCountBadge/UnreadCountBadge-layout.scss +49 -0
- package/src/assets/styles/scss/UnreadCountBadge/UnreadCountBadge-theme.scss +11 -0
- package/src/assets/styles/scss/_base.scss +65 -0
- package/src/assets/styles/scss/_emoji-replacement.scss +45 -0
- package/src/assets/styles/scss/_global-layout-variables.scss +65 -0
- package/src/assets/styles/scss/_global-theme-variables.scss +173 -0
- package/src/assets/styles/scss/_icons.scss +36 -0
- package/src/assets/styles/scss/_palette-variables.scss +55 -0
- package/src/assets/styles/scss/_utils.scss +212 -0
- package/src/assets/styles/scss/_variables.scss +2 -0
- package/src/assets/styles/scss/common/CTAButton/CTAButton-layout.scss +4 -0
- package/src/assets/styles/scss/common/CTAButton/CTAButton-theme.scss +42 -0
- package/src/assets/styles/scss/common/CircleFAButton/CircleFAButton-layout.scss +14 -0
- package/src/assets/styles/scss/common/CircleFAButton/CircleFAButton-theme.scss +35 -0
- package/src/assets/styles/scss/index.layout.scss +49 -0
- package/src/assets/styles/scss/index.scss +50 -0
- package/src/assets/styles/scss/vendor/emoji-mart.scss +514 -0
- package/src/assets/styles/scss/vendor/react-image-gallery.scss +258 -0
- package/src/assets/version.ts +1 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__message-list-border-radius: 0;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__message-list-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__message-list-background-color: var(--str-chat__background-color);
|
|
12
|
+
|
|
13
|
+
/* Box shadow applied to the component */
|
|
14
|
+
--str-chat__message-list-box-shadow: none;
|
|
15
|
+
|
|
16
|
+
/* Top border of the component */
|
|
17
|
+
--str-chat__message-list-border-block-start: none;
|
|
18
|
+
|
|
19
|
+
/* Bottom border of the component */
|
|
20
|
+
--str-chat__message-list-border-block-end: none;
|
|
21
|
+
|
|
22
|
+
/* Left (right in RTL layout) border of the component */
|
|
23
|
+
--str-chat__message-list-border-inline-start: none;
|
|
24
|
+
|
|
25
|
+
/* Right (left in RTL layout) border of the component */
|
|
26
|
+
--str-chat__message-list-border-inline-end: none;
|
|
27
|
+
|
|
28
|
+
/* The border radius used for the borders of the jump to latest message button */
|
|
29
|
+
--str-chat__jump-to-latest-message-border-radius: var(--str-chat__circle-fab-border-radius);
|
|
30
|
+
|
|
31
|
+
/* The text/icon color of the jump to latest message button */
|
|
32
|
+
--str-chat__jump-to-latest-message-color: var(--str-chat__circle-fab-color);
|
|
33
|
+
|
|
34
|
+
/* The background color of the jump to latest message button */
|
|
35
|
+
--str-chat__jump-to-latest-message-background-color: var(--str-chat__circle-fab-background-color);
|
|
36
|
+
|
|
37
|
+
/* The background color of the jump to latest message button in pressed state */
|
|
38
|
+
--str-chat__jump-to-latest-message-pressed-background-color: var(
|
|
39
|
+
--str-chat__circle-fab-pressed-background-color
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
/* Box shadow applied to the jump to latest message button */
|
|
43
|
+
--str-chat__jump-to-latest-message-box-shadow: var(--str-chat__circle-fab-box-shadow);
|
|
44
|
+
|
|
45
|
+
/* Top border of the jump to latest message button */
|
|
46
|
+
--str-chat__jump-to-latest-message-border-block-start: var(
|
|
47
|
+
--str-chat__circle-fab-border-block-start
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
/* Bottom border of the jump to latest message button */
|
|
51
|
+
--str-chat__jump-to-latest-message-border-block-end: var(--str-chat__circle-fab-border-block-end);
|
|
52
|
+
|
|
53
|
+
/* Left (right in RTL layout) border of the jump to latest message button */
|
|
54
|
+
--str-chat__jump-to-latest-message-border-inline-start: var(
|
|
55
|
+
--str-chat__circle-fab-border-inline-start
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
/* Right (left in RTL layout) border of the jump to latest message button */
|
|
59
|
+
--str-chat__jump-to-latest-message-border-inline-end: var(
|
|
60
|
+
--str-chat__circle-fab-border-inline-end
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
/* The background color of the unread messages count on the jump to latest message button */
|
|
64
|
+
--str-chat__jump-to-latest-message-unread-count-background-color: var(
|
|
65
|
+
--str-chat__jump-to-latest-message-color
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
/* The text/icon color of the unread messages count on the jump to latest message button */
|
|
69
|
+
--str-chat__jump-to-latest-message-unread-count-color: var(
|
|
70
|
+
--str-chat__jump-to-latest-message-background-color
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
/* The color used for displaying thread replies and thread separator at the start of a thread */
|
|
74
|
+
--str-chat__thread-head-start-color: var(--str-chat__text-low-emphasis-color);
|
|
75
|
+
|
|
76
|
+
/* The color used for the separator below the first message in a thread */
|
|
77
|
+
--str-chat__thread-head-start-border-block-end-color: var(--str-chat__surface-color);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.str-chat__list {
|
|
81
|
+
@include utils.component-layer-overrides('message-list');
|
|
82
|
+
|
|
83
|
+
.str-chat__parent-message-li {
|
|
84
|
+
border-block-end: 1px solid var(--str-chat__thread-head-start-border-block-end-color);
|
|
85
|
+
|
|
86
|
+
.str-chat__thread-start {
|
|
87
|
+
color: var(--str-chat__thread-head-start-color);
|
|
88
|
+
font: var(--str-chat__subtitle-text);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.str-chat__jump-to-latest-message {
|
|
94
|
+
--str-chat-icon-color: var(--str-chat__jump-to-latest-message-unread-count-background-color);
|
|
95
|
+
|
|
96
|
+
.str-chat__circle-fab {
|
|
97
|
+
@include utils.component-layer-overrides('jump-to-latest-message');
|
|
98
|
+
@include utils.circle-fab-overrides('jump-to-latest-message');
|
|
99
|
+
|
|
100
|
+
.str-chat__jump-to-latest-unread-count {
|
|
101
|
+
background-color: var(--str-chat__jump-to-latest-message-unread-count-background-color);
|
|
102
|
+
color: var(--str-chat__jump-to-latest-message-unread-count-color);
|
|
103
|
+
border-radius: var(--str-chat__jump-to-latest-message-border-radius);
|
|
104
|
+
font: var(--str-chat__caption-text);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
// todo: React SDK specific. Copied from V1. Deprecate after merging with MessageList
|
|
4
|
+
.str-chat__virtual-list {
|
|
5
|
+
@include utils.scrollable;
|
|
6
|
+
position: relative;
|
|
7
|
+
flex: 1;
|
|
8
|
+
-webkit-overflow-scrolling: touch; /* enable smooth scrolling on ios */
|
|
9
|
+
margin: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
|
|
13
|
+
.str-chat__message-list-scroll {
|
|
14
|
+
overscroll-behavior: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.str-chat__message-list-scroll > div {
|
|
18
|
+
@include utils.message-list-spacing;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.str-chat__parent-message-li {
|
|
22
|
+
padding-block-end: var(--str-chat__spacing-4);
|
|
23
|
+
|
|
24
|
+
.str-chat__thread-start {
|
|
25
|
+
text-align: start;
|
|
26
|
+
padding-top: var(--str-chat__spacing-3);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// conditionally showing the header displaces items when prepending.
|
|
31
|
+
// a simple workaround is to make the loading indicator an overlay.
|
|
32
|
+
&__loading {
|
|
33
|
+
display: flex;
|
|
34
|
+
padding-top: var(--str-chat__spacing-2);
|
|
35
|
+
justify-content: center;
|
|
36
|
+
width: 100%;
|
|
37
|
+
position: absolute;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
p {
|
|
41
|
+
margin: 0 !important; // always use padding, margin mess up the height calculations
|
|
42
|
+
|
|
43
|
+
a {
|
|
44
|
+
white-space: pre-line;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
word-wrap: break-word;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.str-chat__message {
|
|
51
|
+
margin-block-end: 0 !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.str-chat__virtual-list-message-wrapper {
|
|
55
|
+
padding-block-end: var(--str-chat__spacing-0_5);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
/* Only available in React SDK. */
|
|
4
|
+
.str-chat {
|
|
5
|
+
/* The border radius used for the borders of the component */
|
|
6
|
+
--str-chat__virtual-list-border-radius: 0;
|
|
7
|
+
|
|
8
|
+
/* The text/icon color of the component */
|
|
9
|
+
--str-chat__virtual-list-color: var(--str-chat__text-color);
|
|
10
|
+
|
|
11
|
+
/* The background color of the component */
|
|
12
|
+
--str-chat__virtual-list-background-color: var(--str-chat__background-color);
|
|
13
|
+
|
|
14
|
+
/* Box shadow applied to the component */
|
|
15
|
+
--str-chat__virtual-list-box-shadow: none;
|
|
16
|
+
|
|
17
|
+
/* Top border of the component */
|
|
18
|
+
--str-chat__virtual-list-border-block-start: none;
|
|
19
|
+
|
|
20
|
+
/* Bottom border of the component */
|
|
21
|
+
--str-chat__virtual-list-border-block-end: none;
|
|
22
|
+
|
|
23
|
+
/* Left (right in RTL layout) border of the component */
|
|
24
|
+
--str-chat__virtual-list-border-inline-start: none;
|
|
25
|
+
|
|
26
|
+
/* Right (left in RTL layout) border of the component */
|
|
27
|
+
--str-chat__virtual-list-border-inline-end: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.str-chat__virtual-list {
|
|
31
|
+
@include utils.component-layer-overrides('virtual-list');
|
|
32
|
+
|
|
33
|
+
.str-chat__parent-message-li {
|
|
34
|
+
border-block-end: 1px solid var(--str-chat__thread-head-start-border-block-end-color);
|
|
35
|
+
|
|
36
|
+
.str-chat__thread-start {
|
|
37
|
+
color: var(--str-chat__thread-head-start-color);
|
|
38
|
+
font: var(--str-chat__subtitle-text);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__message-reactions-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
|
|
6
|
+
.str-chat__message-reactions {
|
|
7
|
+
overflow-y: hidden;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
scrollbar-width: none;
|
|
10
|
+
list-style: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
margin-block-start: var(--str-chat__spacing-0_5);
|
|
13
|
+
margin-block-end: var(--str-chat__spacing-0_5);
|
|
14
|
+
column-gap: var(--str-chat__spacing-0_5);
|
|
15
|
+
width: fit-content;
|
|
16
|
+
padding: 0;
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
.str-chat__message-reaction {
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: var(--str-chat__spacing-1_5);
|
|
24
|
+
position: relative;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
|
|
28
|
+
button {
|
|
29
|
+
@include utils.button-reset;
|
|
30
|
+
@include utils.flex-row-center;
|
|
31
|
+
padding: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.str-chat__message-reaction-emoji {
|
|
35
|
+
height: calc(var(--str-chat__spacing-px) * 13);
|
|
36
|
+
display: flex !important; // Overriding emoji-mart styles
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Only in theme-v1
|
|
43
|
+
.str-chat__reaction-list--counter,
|
|
44
|
+
.str-chat__simple-reactions-list-item--last-number {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.str-chat__message--me {
|
|
51
|
+
.str-chat__message-reactions-container {
|
|
52
|
+
justify-content: flex-end;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.str-chat__message--other {
|
|
57
|
+
.str-chat__message-reactions-container {
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.str-chat__message-reactions-details-modal {
|
|
63
|
+
.str-chat__modal--open {
|
|
64
|
+
.str-chat__modal__inner {
|
|
65
|
+
height: 40%;
|
|
66
|
+
max-height: 80%;
|
|
67
|
+
min-width: 90%;
|
|
68
|
+
max-width: 90%;
|
|
69
|
+
width: 90%;
|
|
70
|
+
flex-basis: min-content;
|
|
71
|
+
|
|
72
|
+
@media only screen and (min-device-width: 768px) {
|
|
73
|
+
min-width: 40%;
|
|
74
|
+
max-width: 60%;
|
|
75
|
+
width: min-content;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.str-chat__message-reactions-details {
|
|
82
|
+
width: 100%;
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
gap: var(--str-chat__spacing-4);
|
|
86
|
+
max-height: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
min-height: 0;
|
|
89
|
+
|
|
90
|
+
.str-chat__message-reactions-details-reaction-types {
|
|
91
|
+
display: flex;
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
width: 100%;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
overflow-x: auto;
|
|
96
|
+
gap: var(--str-chat__spacing-4);
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
|
|
101
|
+
.str-chat__message-reactions-details-reaction-type {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
padding: var(--str-chat__spacing-1) 0;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
|
|
108
|
+
.str-chat__message-reaction-emoji--with-fallback {
|
|
109
|
+
width: 18px;
|
|
110
|
+
line-height: 18px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.str-chat__message-reaction-emoji-big {
|
|
116
|
+
--str-chat__stream-emoji-size: 1em;
|
|
117
|
+
align-self: center;
|
|
118
|
+
font-size: 2rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.str-chat__message-reaction-emoji-big.str-chat__message-reaction-emoji--with-fallback {
|
|
122
|
+
line-height: 2rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.str-chat__message-reactions-details-reacting-users {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: var(--str-chat__spacing-3);
|
|
129
|
+
max-height: 100%;
|
|
130
|
+
overflow-y: auto;
|
|
131
|
+
min-height: 30vh;
|
|
132
|
+
|
|
133
|
+
.str-chat__loading-indicator {
|
|
134
|
+
margin: auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.str-chat__message-reactions-details-reacting-user {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
gap: var(--str-chat__spacing-2);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat {
|
|
4
|
+
/* The border radius used for the borders of the component */
|
|
5
|
+
--str-chat__message-reactions-border-radius: none;
|
|
6
|
+
|
|
7
|
+
/* The text/icon color of the component */
|
|
8
|
+
--str-chat__message-reactions-color: var(--str-chat__text-color);
|
|
9
|
+
|
|
10
|
+
/* The background color of the component */
|
|
11
|
+
--str-chat__message-reactions-background-color: transparent;
|
|
12
|
+
|
|
13
|
+
/* Top border of the component */
|
|
14
|
+
--str-chat__message-reactions-border-block-start: none;
|
|
15
|
+
|
|
16
|
+
/* Bottom border of the component */
|
|
17
|
+
--str-chat__message-reactions-border-block-end: none;
|
|
18
|
+
|
|
19
|
+
/* Left (right in RTL layout) border of the component */
|
|
20
|
+
--str-chat__message-reactions-border-inline-start: none;
|
|
21
|
+
|
|
22
|
+
/* Right (left in RTL layout) border of the component */
|
|
23
|
+
--str-chat__message-reactions-border-inline-end: none;
|
|
24
|
+
|
|
25
|
+
/* Box shadow applied to the component */
|
|
26
|
+
--str-chat__message-reactions-box-shadow: none;
|
|
27
|
+
|
|
28
|
+
/* The border radius used for the borders of a message reaction */
|
|
29
|
+
--str-chat__message-reaction-border-radius: var(--str-chat__border-radius-xs);
|
|
30
|
+
|
|
31
|
+
/* The text/icon color of a message reaction */
|
|
32
|
+
--str-chat__message-reaction-color: var(--str-chat__text-color);
|
|
33
|
+
|
|
34
|
+
/* The background color of a message reaction */
|
|
35
|
+
--str-chat__message-reaction-background-color: var(--str-chat__tertiary-surface-color);
|
|
36
|
+
|
|
37
|
+
/* Top border of a message reaction */
|
|
38
|
+
--str-chat__message-reaction-border-block-start: none;
|
|
39
|
+
|
|
40
|
+
/* Bottom border of a message reaction */
|
|
41
|
+
--str-chat__message-reaction-border-block-end: none;
|
|
42
|
+
|
|
43
|
+
/* Left (right in RTL layout) border of a message reaction */
|
|
44
|
+
--str-chat__message-reaction-border-inline-start: none;
|
|
45
|
+
|
|
46
|
+
/* Right (left in RTL layout) border of a message reaction */
|
|
47
|
+
--str-chat__message-reaction-border-inline-end: none;
|
|
48
|
+
|
|
49
|
+
/* Box shadow applied to a message reaction */
|
|
50
|
+
--str-chat__message-reaction-box-shadow: none;
|
|
51
|
+
|
|
52
|
+
/* The text/icon color of a message reaction, if the user reacted with that reaction */
|
|
53
|
+
--str-chat__own-message-reaction-color: var(--str-chat__text-color);
|
|
54
|
+
|
|
55
|
+
/* The background color of a message reaction, if the user reacted with that reaction */
|
|
56
|
+
--str-chat__own-message-reaction-background-color: var(
|
|
57
|
+
--str-chat__primary-surface-color-low-emphasis
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
--str-chat__messsage-reactions-details--selected-color: solid var(--str-chat__primary-color);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.str-chat__message-reactions-container {
|
|
64
|
+
.str-chat__message-reactions {
|
|
65
|
+
@include utils.component-layer-overrides('message-reactions');
|
|
66
|
+
|
|
67
|
+
.str-chat__message-reaction {
|
|
68
|
+
@include utils.component-layer-overrides('message-reaction');
|
|
69
|
+
font: var(--str-chat__caption-text);
|
|
70
|
+
|
|
71
|
+
&.str-chat__message-reaction-own {
|
|
72
|
+
color: var(--str-chat__own-message-reaction-color);
|
|
73
|
+
background-color: var(--str-chat__own-message-reaction-background-color);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.str-chat__message-reactions-details {
|
|
80
|
+
.str-chat__message-reactions-details-reaction-type {
|
|
81
|
+
border-block-end: solid transparent;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.str-chat__message-reactions-details-reaction-type--selected {
|
|
85
|
+
border-block-end: var(--str-chat__messsage-reactions-details--selected-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.str-chat__message-reactions-details-reacting-user {
|
|
90
|
+
font: var(--str-chat__subtitle-text);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__message-reaction-selector {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-end;
|
|
6
|
+
position: absolute;
|
|
7
|
+
inset-block-end: 100%;
|
|
8
|
+
|
|
9
|
+
&.str-chat-angular-v5__reaction-selector {
|
|
10
|
+
margin: var(--str-chat__spacing-2);
|
|
11
|
+
position: static;
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
|
|
14
|
+
.str-chat__message-reactions-options {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
overflow-y: hidden;
|
|
17
|
+
overflow-x: auto;
|
|
18
|
+
scrollbar-width: none;
|
|
19
|
+
padding: 0;
|
|
20
|
+
|
|
21
|
+
.str-chat__message-reactions-option {
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.str-chat__message-reactions-options {
|
|
28
|
+
list-style: none;
|
|
29
|
+
display: flex;
|
|
30
|
+
margin-block-end: var(--str-chat__spacing-0_5);
|
|
31
|
+
width: fit-content;
|
|
32
|
+
column-gap: var(--str-chat__spacing-1);
|
|
33
|
+
padding: var(--str-chat__spacing-2);
|
|
34
|
+
|
|
35
|
+
.str-chat__message-reactions-option {
|
|
36
|
+
@include utils.flex-row-center;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
width: calc(var(--str-chat__spacing-px) * 40);
|
|
39
|
+
height: calc(var(--str-chat__spacing-px) * 40);
|
|
40
|
+
|
|
41
|
+
.str-chat__message-reaction-emoji {
|
|
42
|
+
height: calc(var(--str-chat__spacing-px) * 20);
|
|
43
|
+
display: flex !important; // Overriding emoji-mart styles
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Only in theme-v1
|
|
50
|
+
.str-chat__message-reactions-last-user {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.str-chat__message-reactions-list-item__count {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.str-chat__message--me {
|
|
61
|
+
.str-chat__message-reaction-selector {
|
|
62
|
+
inset-inline-end: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.str-chat__message--other {
|
|
67
|
+
.str-chat__message-reaction-selector {
|
|
68
|
+
inset-inline-start: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// the React SDK positions the reaction selector with popperjs
|
|
73
|
+
.str-chat-react__message-reaction-selector {
|
|
74
|
+
position: static;
|
|
75
|
+
inset-block-end: unset;
|
|
76
|
+
|
|
77
|
+
ul {
|
|
78
|
+
margin: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.str-chat__message--me, .str-chat__message--other {
|
|
83
|
+
.str-chat-react__message-reaction-selector {
|
|
84
|
+
inset-inline-start: unset;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
.str-chat-angular-v5__reaction-selector {
|
|
67
|
+
--str-chat__message-reactions-options-box-shadow: none;
|
|
68
|
+
--str-chat__message-reactions-options-border-radius: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.str-chat__reaction-selector {
|
|
73
|
+
.str-chat__message-reactions-options {
|
|
74
|
+
@include utils.component-layer-overrides('message-reactions-options');
|
|
75
|
+
|
|
76
|
+
.str-chat__message-reactions-option {
|
|
77
|
+
@include utils.component-layer-overrides('message-reactions-option');
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
background-color: var(--str-chat__message-reactions-option-hover-background-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.str-chat__message-reactions-option-selected {
|
|
84
|
+
background-color: var(--str-chat__message-reactions-option-selected-background-color);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (hover: none) {
|
|
89
|
+
.str-chat__message-reactions-option:hover {
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
.str-chat__modal-header {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
width: 100%;
|
|
18
|
+
padding: 1.25rem 1rem;
|
|
19
|
+
|
|
20
|
+
button.str-chat__modal-header__go-back-button,
|
|
21
|
+
.str-chat__modal__close-button {
|
|
22
|
+
padding: 1rem;
|
|
23
|
+
background-size: 0.875rem;
|
|
24
|
+
background-repeat: no-repeat;
|
|
25
|
+
background-position: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
button.str-chat__modal-header__go-back-button {
|
|
29
|
+
background-image: var(--str-chat__arrow-left-icon);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.str-chat__modal-header__close-button {
|
|
33
|
+
@include utils.button-reset;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
background-image: var(--str-chat__close-icon);
|
|
36
|
+
background-repeat: no-repeat;
|
|
37
|
+
height: 0.875rem;
|
|
38
|
+
width: 0.875rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.str-chat__modal-header__title {
|
|
42
|
+
flex: 1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
button.str-chat__modal__close-button {
|
|
47
|
+
@include utils.unset-button;
|
|
48
|
+
margin: var(--str-chat__spacing-2);
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.str-chat__modal__close-button {
|
|
53
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 28);
|
|
54
|
+
@include utils.flex-row-center;
|
|
55
|
+
padding: var(--str-chat__spacing-2);
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset-block-start: 0;
|
|
58
|
+
inset-inline-end: 0;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.str-chat__modal__inner {
|
|
63
|
+
@include utils.flex-col-center;
|
|
64
|
+
padding: var(--str-chat__spacing-8) var(--str-chat__spacing-4);
|
|
65
|
+
width: 40%;
|
|
66
|
+
max-height: 80%;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
min-height: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.str-chat__modal--close {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|