stream-chat-react 14.0.0-beta.2 → 14.0.0-beta.4

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.
Files changed (198) hide show
  1. package/dist/cjs/WithAudioPlayback.236d404c.js +4670 -0
  2. package/dist/cjs/WithAudioPlayback.236d404c.js.map +1 -0
  3. package/dist/{audioProcessing-BbOs2wMd.js → cjs/audioProcessing.56e5db9d.js} +1 -1
  4. package/dist/cjs/audioProcessing.56e5db9d.js.map +1 -0
  5. package/dist/cjs/emojis.js +2 -2
  6. package/dist/cjs/emojis.js.map +1 -1
  7. package/dist/cjs/index.js +807 -485
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/cjs/mp3-encoder.js +1 -1
  10. package/dist/css/emoji-replacement.css +34 -0
  11. package/dist/css/emoji-replacement.css.map +1 -0
  12. package/dist/css/index.css +190 -51
  13. package/dist/css/index.css.map +1 -1
  14. package/dist/es/WithAudioPlayback.89700cb5.mjs +4654 -0
  15. package/dist/es/WithAudioPlayback.89700cb5.mjs.map +1 -0
  16. package/dist/{audioProcessing-ByEVSjGG.mjs → es/audioProcessing.21cb49e1.mjs} +1 -1
  17. package/dist/es/audioProcessing.21cb49e1.mjs.map +1 -0
  18. package/dist/es/emojis.mjs +2 -2
  19. package/dist/es/emojis.mjs.map +1 -1
  20. package/dist/es/index.mjs +857 -535
  21. package/dist/es/index.mjs.map +1 -1
  22. package/dist/es/mp3-encoder.mjs +1 -1
  23. package/dist/types/components/Attachment/Giphy.d.ts.map +1 -1
  24. package/dist/types/components/Attachment/VoiceRecording.d.ts.map +1 -1
  25. package/dist/types/components/AudioPlayback/AudioPlayer.d.ts.map +1 -1
  26. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts +1 -1
  27. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts.map +1 -1
  28. package/dist/types/components/ChannelList/hooks/useMobileNavigation.d.ts.map +1 -1
  29. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts +3 -1
  30. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts.map +1 -1
  31. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts +6 -3
  32. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts.map +1 -1
  33. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts +5 -0
  34. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts.map +1 -1
  35. package/dist/types/components/Dialog/components/ContextMenu.d.ts +119 -3
  36. package/dist/types/components/Dialog/components/ContextMenu.d.ts.map +1 -1
  37. package/dist/types/components/Dialog/hooks/useDialog.d.ts +1 -1
  38. package/dist/types/components/Dialog/hooks/useDialog.d.ts.map +1 -1
  39. package/dist/types/components/Dialog/service/DialogAnchor.d.ts +14 -1
  40. package/dist/types/components/Dialog/service/DialogAnchor.d.ts.map +1 -1
  41. package/dist/types/components/Dialog/service/DialogManager.d.ts +14 -3
  42. package/dist/types/components/Dialog/service/DialogManager.d.ts.map +1 -1
  43. package/dist/types/components/Dialog/service/DialogPortal.d.ts.map +1 -1
  44. package/dist/types/components/Form/TextInput.d.ts +2 -2
  45. package/dist/types/components/Form/TextInput.d.ts.map +1 -1
  46. package/dist/types/components/Gallery/GalleryContext.d.ts +1 -1
  47. package/dist/types/components/Gallery/GalleryContext.d.ts.map +1 -1
  48. package/dist/types/components/Icons/IconGiphy.d.ts.map +1 -1
  49. package/dist/types/components/Icons/icons.d.ts +56 -340
  50. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  51. package/dist/types/components/Loading/LoadingIndicator.d.ts +2 -2
  52. package/dist/types/components/Loading/LoadingIndicator.d.ts.map +1 -1
  53. package/dist/types/components/MessageActions/MessageActions.d.ts +14 -3
  54. package/dist/types/components/MessageActions/MessageActions.d.ts.map +1 -1
  55. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts +1 -1
  56. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
  57. package/dist/types/components/MessageActions/QuickMessageActionButton.d.ts.map +1 -1
  58. package/dist/types/components/MessageActions/hooks/useBaseMessageActionSetFilter.d.ts.map +1 -1
  59. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  60. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts.map +1 -1
  61. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +18 -0
  62. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
  63. package/dist/types/components/Poll/PollActions/PollResults/PollOptionWithVotes.d.ts.map +1 -1
  64. package/dist/types/components/Poll/PollCreationDialog/OptionFieldSet.d.ts.map +1 -1
  65. package/dist/types/components/Reactions/MessageReactions.d.ts.map +1 -1
  66. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts +1 -0
  67. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts.map +1 -1
  68. package/dist/types/components/Reactions/ReactionSelector.d.ts +1 -1
  69. package/dist/types/components/Reactions/ReactionSelector.d.ts.map +1 -1
  70. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
  71. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
  72. package/dist/types/context/ChannelListContext.d.ts +1 -1
  73. package/dist/types/context/ChannelListContext.d.ts.map +1 -1
  74. package/dist/types/context/ComponentContext.d.ts +5 -1
  75. package/dist/types/context/ComponentContext.d.ts.map +1 -1
  76. package/dist/types/context/DialogManagerContext.d.ts +11 -7
  77. package/dist/types/context/DialogManagerContext.d.ts.map +1 -1
  78. package/package.json +5 -4
  79. package/dist/WithAudioPlayback-C1hfFIcu.mjs +0 -4716
  80. package/dist/WithAudioPlayback-C1hfFIcu.mjs.map +0 -1
  81. package/dist/WithAudioPlayback-myzUS2m6.js +0 -4732
  82. package/dist/WithAudioPlayback-myzUS2m6.js.map +0 -1
  83. package/dist/assets/icons/stream-chat-icons.eot +0 -0
  84. package/dist/assets/icons/stream-chat-icons.svg +0 -50
  85. package/dist/assets/icons/stream-chat-icons.ttf +0 -0
  86. package/dist/assets/icons/stream-chat-icons.woff +0 -0
  87. package/dist/assets/icons/stream-chat-icons.woff2 +0 -0
  88. package/dist/audioProcessing-BbOs2wMd.js.map +0 -1
  89. package/dist/audioProcessing-ByEVSjGG.mjs.map +0 -1
  90. package/dist/css/v2/emoji-mart.css +0 -1
  91. package/dist/css/v2/emoji-replacement.css +0 -1
  92. package/dist/css/v2/index.css +0 -1
  93. package/dist/css/v2/index.layout.css +0 -1
  94. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-layout.scss +0 -3
  95. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-theme.scss +0 -7
  96. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +0 -701
  97. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +0 -605
  98. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +0 -141
  99. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-theme.scss +0 -190
  100. package/dist/scss/v2/AudioRecorder/AudioRecorder-layout.scss +0 -139
  101. package/dist/scss/v2/AudioRecorder/AudioRecorder-theme.scss +0 -61
  102. package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +0 -94
  103. package/dist/scss/v2/Autocomplete/Autocomplete-theme.scss +0 -220
  104. package/dist/scss/v2/Avatar/Avatar-layout.scss +0 -137
  105. package/dist/scss/v2/Avatar/Avatar-theme.scss +0 -64
  106. package/dist/scss/v2/BaseImage/BaseImage-layout.scss +0 -21
  107. package/dist/scss/v2/BaseImage/BaseImage-theme.scss +0 -35
  108. package/dist/scss/v2/BaseImage/index.scss +0 -2
  109. package/dist/scss/v2/Channel/Channel-layout.scss +0 -141
  110. package/dist/scss/v2/Channel/Channel-theme.scss +0 -100
  111. package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +0 -27
  112. package/dist/scss/v2/ChannelHeader/ChannelHeader-theme.scss +0 -43
  113. package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -65
  114. package/dist/scss/v2/ChannelList/ChannelList-theme.scss +0 -89
  115. package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +0 -126
  116. package/dist/scss/v2/ChannelPreview/ChannelPreview-theme.scss +0 -148
  117. package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +0 -122
  118. package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +0 -238
  119. package/dist/scss/v2/ChatView/ChatView-layout.scss +0 -43
  120. package/dist/scss/v2/ChatView/ChatView-theme.scss +0 -32
  121. package/dist/scss/v2/Dialog/Dialog-layout.scss +0 -70
  122. package/dist/scss/v2/Dialog/Dialog-theme.scss +0 -103
  123. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-layout.scss +0 -5
  124. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-theme.scss +0 -47
  125. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-layout.scss +0 -14
  126. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-theme.scss +0 -17
  127. package/dist/scss/v2/EditMessageForm/EditMessageForm-layout.scss +0 -51
  128. package/dist/scss/v2/EditMessageForm/EditMessageForm-theme.scss +0 -50
  129. package/dist/scss/v2/Form/Form-layout.scss +0 -49
  130. package/dist/scss/v2/Form/Form-theme.scss +0 -82
  131. package/dist/scss/v2/Icon/Icon-layout.scss +0 -98
  132. package/dist/scss/v2/Icon/Icon-theme.scss +0 -17
  133. package/dist/scss/v2/ImageCarousel/ImageCarousel-layout.scss +0 -51
  134. package/dist/scss/v2/ImageCarousel/ImageCarousel-theme.scss +0 -30
  135. package/dist/scss/v2/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +0 -4
  136. package/dist/scss/v2/LinkPreview/LinkPreview-layout.scss +0 -67
  137. package/dist/scss/v2/LinkPreview/LinkPreview-theme.scss +0 -32
  138. package/dist/scss/v2/LinkPreview/index.scss +0 -2
  139. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-layout.scss +0 -64
  140. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-theme.scss +0 -14
  141. package/dist/scss/v2/Location/Location-layout.scss +0 -52
  142. package/dist/scss/v2/Location/Location-theme.scss +0 -32
  143. package/dist/scss/v2/Message/Message-layout.scss +0 -619
  144. package/dist/scss/v2/Message/Message-theme.scss +0 -483
  145. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +0 -21
  146. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-theme.scss +0 -85
  147. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-layout.scss +0 -19
  148. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-theme.scss +0 -51
  149. package/dist/scss/v2/MessageInput/MessageInput-layout.scss +0 -268
  150. package/dist/scss/v2/MessageInput/MessageInput-theme.scss +0 -359
  151. package/dist/scss/v2/MessageList/MessageList-layout.scss +0 -65
  152. package/dist/scss/v2/MessageList/MessageList-theme.scss +0 -107
  153. package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +0 -57
  154. package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +0 -41
  155. package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +0 -143
  156. package/dist/scss/v2/MessageReactions/MessageReactions-theme.scss +0 -92
  157. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-layout.scss +0 -86
  158. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-theme.scss +0 -94
  159. package/dist/scss/v2/Modal/Modal-layout.scss +0 -74
  160. package/dist/scss/v2/Modal/Modal-theme.scss +0 -109
  161. package/dist/scss/v2/Notification/MessageNotification-layout.scss +0 -12
  162. package/dist/scss/v2/Notification/MessageNotification-theme.scss +0 -34
  163. package/dist/scss/v2/Notification/Notification-layout.scss +0 -7
  164. package/dist/scss/v2/Notification/Notification-theme.scss +0 -32
  165. package/dist/scss/v2/Notification/NotificationList-layout.scss +0 -11
  166. package/dist/scss/v2/Notification/NotificationList-theme.scss +0 -31
  167. package/dist/scss/v2/Poll/Poll-layout.scss +0 -493
  168. package/dist/scss/v2/Poll/Poll-theme.scss +0 -178
  169. package/dist/scss/v2/Search/Search-layout.scss +0 -148
  170. package/dist/scss/v2/Search/Search-theme.scss +0 -222
  171. package/dist/scss/v2/Thread/Thread-layout.scss +0 -65
  172. package/dist/scss/v2/Thread/Thread-theme.scss +0 -82
  173. package/dist/scss/v2/ThreadList/ThreadList-layout.scss +0 -152
  174. package/dist/scss/v2/ThreadList/ThreadList-theme.scss +0 -75
  175. package/dist/scss/v2/Tooltip/Tooltip-layout.scss +0 -10
  176. package/dist/scss/v2/Tooltip/Tooltip-theme.scss +0 -36
  177. package/dist/scss/v2/TypingIndicator/TypingIndicator-layout.scss +0 -31
  178. package/dist/scss/v2/TypingIndicator/TypingIndicator-theme.scss +0 -68
  179. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-layout.scss +0 -49
  180. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-theme.scss +0 -11
  181. package/dist/scss/v2/_base.scss +0 -65
  182. package/dist/scss/v2/_emoji-replacement.scss +0 -45
  183. package/dist/scss/v2/_global-layout-variables.scss +0 -65
  184. package/dist/scss/v2/_global-theme-variables.scss +0 -173
  185. package/dist/scss/v2/_icons.scss +0 -36
  186. package/dist/scss/v2/_palette-variables.scss +0 -55
  187. package/dist/scss/v2/_utils.scss +0 -212
  188. package/dist/scss/v2/_variables.scss +0 -2
  189. package/dist/scss/v2/common/CTAButton/CTAButton-layout.scss +0 -4
  190. package/dist/scss/v2/common/CTAButton/CTAButton-theme.scss +0 -42
  191. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-layout.scss +0 -14
  192. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-theme.scss +0 -35
  193. package/dist/scss/v2/index.layout.scss +0 -49
  194. package/dist/scss/v2/index.scss +0 -50
  195. package/dist/scss/v2/vendor/emoji-mart.scss +0 -514
  196. package/dist/scss/v2/vendor/react-image-gallery.scss +0 -258
  197. /package/dist/{assets → css/assets}/EmojiOneColor.woff2 +0 -0
  198. /package/dist/{assets → css/assets}/NotoColorEmoji-flags.woff2 +0 -0
@@ -1,100 +0,0 @@
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
- --str-chat-icon-color: var(--str-chat__channel-empty-color);
44
- @include utils.component-layer-overrides('channel');
45
- @include utils.empty-theme('channel');
46
-
47
- .str-chat__empty-channel-text {
48
- color: var(--str-chat__channel-empty-color);
49
- }
50
- }
51
-
52
- .str-chat__loading-channel {
53
- @include utils.loading-animation;
54
-
55
- .str-chat__loading-channel-header {
56
- background-color: var(--str-chat__channel-header-background-color);
57
-
58
- .str-chat__loading-channel-header-avatar {
59
- @include utils.loading-item-background('channel');
60
- border-radius: var(--str-chat__avatar-border-radius);
61
- }
62
-
63
- .str-chat__loading-channel-header-name,
64
- .str-chat__loading-channel-header-info {
65
- @include utils.loading-item-background('channel');
66
- border-radius: var(--str-chat__border-radius-xs);
67
- }
68
- }
69
-
70
- .str-chat__loading-channel-message-list {
71
- background-color: var(--str-chat__message-list-background-color);
72
-
73
- .str-chat__loading-channel-message-avatar {
74
- @include utils.loading-item-background('channel');
75
- border-radius: var(--str-chat__avatar-border-radius);
76
- }
77
-
78
- .str-chat__loading-channel-message-sender,
79
- .str-chat__loading-channel-message-text,
80
- .str-chat__loading-channel-message-date {
81
- @include utils.loading-item-background('channel');
82
- border-radius: var(--str-chat__message-bubble-border-radius);
83
- }
84
- }
85
-
86
- .str-chat__loading-channel-message-input-row {
87
- .str-chat__loading-channel-message-input,
88
- .str-chat__loading-channel-message-send {
89
- @include utils.loading-item-background('channel');
90
- }
91
-
92
- .str-chat__loading-channel-message-input {
93
- border-radius: var(--str-chat__message-textarea-border-radius);
94
- }
95
-
96
- .str-chat__loading-channel-message-send {
97
- border-radius: var(--str-chat__message-send-border-radius);
98
- }
99
- }
100
- }
@@ -1,27 +0,0 @@
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
- .str-chat__channel-header-title {
24
- @include utils.prevent-glitch-text-overflow;
25
- }
26
- }
27
- }
@@ -1,43 +0,0 @@
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
- }
@@ -1,65 +0,0 @@
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
- --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 136);
18
- @include utils.empty-layout;
19
- }
20
-
21
- // Empty channel list for theme-v1
22
- .str-chat__channel-list-empty-v1 {
23
- display: none;
24
- }
25
- }
26
- }
27
-
28
- .str-chat__load-more-button {
29
- display: flex;
30
- justify-content: center;
31
- margin: var(--str-chat__spacing-2) 0;
32
-
33
- .str-chat__load-more-button__button {
34
- @include utils.flex-row-center;
35
- }
36
- }
37
-
38
- .stream-chat__paginated-list {
39
- gap: 0;
40
- }
41
- }
42
-
43
- .str-chat__channel-list-react {
44
- overflow: hidden;
45
-
46
- .str-chat__channel-list-messenger-react {
47
- overflow: hidden;
48
- padding-bottom: var(--str-chat__spacing-2_5);
49
-
50
- .str-chat__channel-list-messenger-react__main {
51
- overflow-y: auto;
52
- }
53
- }
54
- }
55
-
56
- .str-chat-angular__channel-list {
57
- .str-chat__channel-list-messenger__main {
58
- display: flex;
59
- flex-direction: column;
60
-
61
- stream-paginated-list {
62
- min-height: 0;
63
- }
64
- }
65
- }
@@ -1,89 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__channel-list-border-radius: 0;
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__channel-list-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__channel-list-background-color: var(--str-chat__secondary-background-color);
12
-
13
- /* Box shadow applied to the component */
14
- --str-chat__channel-list-box-shadow: none;
15
-
16
- /* Top border of the component */
17
- --str-chat__channel-list-border-block-start: none;
18
-
19
- /* Bottom border of the component */
20
- --str-chat__channel-list-border-block-end: none;
21
-
22
- /* Left (right in RTL layout) border of the component */
23
- --str-chat__channel-list-border-inline-start: none;
24
-
25
- /* Right (left in RTL layout) border of the component */
26
- --str-chat__channel-list-border-inline-end: 1px solid var(--str-chat__surface-color);
27
-
28
- /* The border radius used for the borders of the load more button */
29
- --str-chat__channel-list-load-more-border-radius: var(--str-chat__cta-button-border-radius);
30
-
31
- /* The text/icon color of the load more button */
32
- --str-chat__channel-list-load-more-color: var(--str-chat__cta-button-color);
33
-
34
- /* The background color of the load more button */
35
- --str-chat__channel-list-load-more-background-color: var(--str-chat__cta-button-background-color);
36
-
37
- /* Box shadow applied to the load more button */
38
- --str-chat__channel-list-load-more-box-shadow: var(--str-chat__cta-button-box-shadow);
39
-
40
- /* Top border of the load more button */
41
- --str-chat__channel-list-load-more-border-block-start: var(
42
- --str-chat__cta-button-border-block-start
43
- );
44
-
45
- /* Bottom border of the load more button */
46
- --str-chat__channel-list-load-more-border-block-end: var(--str-chat__cta-button-border-block-end);
47
-
48
- /* Left (right in RTL layout) border of the load more button */
49
- --str-chat__channel-list-load-more-border-inline-start: var(
50
- --str-chat__cta-button-border-inline-start
51
- );
52
-
53
- /* Right (left in RTL layout) border of the load more button */
54
- --str-chat__channel-list-load-more-border-inline-end: var(
55
- --str-chat__cta-button-border-inline-end
56
- );
57
-
58
- /* The background color of the load more button in pressed state */
59
- --str-chat__channel-list-load-more-pressed-background-color: var(
60
- --str-chat__cta-button-pressed-background-color
61
- );
62
-
63
- /* The background color of the load more button in disabled state */
64
- --str-chat__channel-list-load-more-disabled-background-color: var(
65
- --str-chat__cta-button-disabled-background-color
66
- );
67
-
68
- /* The text/icon color of the load more button in disabled state */
69
- --str-chat__channel-list-load-more-disabled-color: var(--str-chat__cta-button-disabled-color);
70
-
71
- /* The text/icon color for the empty list state */
72
- --str-chat__channel-list-empty-indicator-color: var(--str-chat__text-low-emphasis-color);
73
- }
74
-
75
- .str-chat__channel-list {
76
- @include utils.component-layer-overrides('channel-list');
77
-
78
- .str-chat__load-more-button__button {
79
- @include utils.component-layer-overrides('channel-list-load-more');
80
- @include utils.cta-button-overrides('channel-list-load-more');
81
- width: 80%;
82
- }
83
-
84
- .str-chat__channel-list-empty {
85
- --str-chat-icon-color: var(--str-chat__channel-list-empty-indicator-color);
86
- @include utils.empty-theme('channel-list');
87
- color: var(--str-chat__channel-list-empty-indicator-color);
88
- }
89
- }
@@ -1,126 +0,0 @@
1
- @use '../utils';
2
-
3
- @mixin channel-preview-layout {
4
- display: flex;
5
- column-gap: var(--str-chat__spacing-2);
6
- align-items: center;
7
- justify-content: flex-start;
8
- width: 100%;
9
- padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
10
- margin: 0;
11
- text-align: start;
12
- }
13
-
14
- @mixin channel-preview-end-layout {
15
- display: flex;
16
- flex-direction: column;
17
- row-gap: var(--str-chat__spacing-0_5);
18
- width: 100%;
19
- }
20
-
21
- // Unread badge will be bigger than channel name -> this would cause a layout shift when the unread badge appears -> this trick won't let the unread badge to increase the height of the container avoiding the layout shift
22
- @mixin unread-badge-layout-fix {
23
- .str-chat__channel-preview-end-first-row {
24
- height: var(--str-chat__unread-badge-height);
25
- }
26
- }
27
-
28
- .str-chat__channel-preview-container {
29
- position: relative;
30
-
31
- .str-chat__channel-preview__action-buttons {
32
- position: absolute;
33
- right: var(--str-chat__spacing-2);
34
- bottom: var(--str-chat__spacing-3);
35
- display: flex;
36
- flex-direction: row;
37
- align-items: center;
38
- gap: 1px;
39
-
40
- .str-chat__channel-preview__action-button {
41
-
42
- --str-chat-icon-height: 13px;
43
- cursor: pointer;
44
- padding-block: 2px;
45
- padding-inline: 4px;
46
- }
47
- }
48
- }
49
-
50
- .str-chat__channel-preview {
51
- @include channel-preview-layout;
52
- cursor: pointer;
53
-
54
- .str-chat__channel-preview-end {
55
- @include channel-preview-end-layout;
56
- @include utils.ellipsis-text-parent;
57
-
58
- .str-chat__channel-preview-end-first-row {
59
- display: flex;
60
- column-gap: var(--str-chat__spacing-1);
61
- align-items: stretch;
62
-
63
- .str-chat__channel-preview-unread-badge {
64
- display: flex;
65
- align-items: center;
66
- padding: 0 var(--str-chat__spacing-2);
67
- }
68
-
69
- .str-chat__channel-preview-messenger--name {
70
- width: 100%;
71
- }
72
- }
73
-
74
- .str-chat__channel-preview-end-second-row {
75
- @include utils.ellipsis-text-parent;
76
- display: flex;
77
- column-gap: var(--str-chat__spacing-1);
78
- align-items: center;
79
-
80
- .str-chat__channel-preview-messenger--last-message {
81
- flex: 1;
82
- }
83
-
84
- .str-chat__channel-preview-messenger--status {
85
- --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 15);
86
-
87
- svg {
88
- width: calc(var(--str-chat__spacing-px) * 15);
89
- height: calc(var(--str-chat__spacing-px) * 15);
90
- }
91
- }
92
- }
93
-
94
- .str-chat__channel-preview-messenger--name,
95
- .str-chat__channel-preview-messenger--last-message {
96
- @include utils.ellipsis-text;
97
- @include utils.prevent-glitch-text-overflow;
98
- min-width: 0;
99
-
100
- p {
101
- @include utils.ellipsis-text;
102
- margin: 0;
103
- // 40px is the width of the two action buttons
104
- max-width: calc(100% - 40px);
105
- }
106
- }
107
- }
108
- }
109
-
110
- .str-chat__channel-preview-loading {
111
- @include channel-preview-layout;
112
-
113
- .str-chat__channel-preview-end-loading {
114
- @include channel-preview-end-layout;
115
- }
116
-
117
- .str-chat__loading-channels-username {
118
- height: calc(var(--str-chat__spacing-px) * 16);
119
- width: calc(var(--str-chat__spacing-px) * 66);
120
- }
121
-
122
- .str-chat__loading-channels-status {
123
- height: calc(var(--str-chat__spacing-px) * 16);
124
- width: 100%;
125
- }
126
- }
@@ -1,148 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__channel-preview-border-radius: 0;
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__channel-preview-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__channel-preview-background-color: transparent;
12
-
13
- /* Top border of the component */
14
- --str-chat__channel-preview-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__channel-preview-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__channel-preview-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__channel-preview-border-inline-end: none;
24
-
25
- /* Background color used for selected channel preview components */
26
- --str-chat__channel-preview-active-background-color: var(--str-chat__surface-color);
27
-
28
- /* Background color used for the hover state */
29
- --str-chat__channel-preview-hover-background-color: var(--str-chat__secondary-surface-color);
30
-
31
- /* Text color of the latest message when preview is not hovered or selected */
32
- --str-chat__channel-preview-latest-message-secondary-color: var(
33
- --str-chat__text-low-emphasis-color
34
- );
35
-
36
- /* The color of the loading indicator while initializing the channel list */
37
- --str-chat__channel-preview-loading-state-color: var(--str-chat__disabled-color);
38
-
39
- /* The background color of the unread badge */
40
- --str-chat__channel-preview-unread-badge-background-color: var(--str-chat__unread-badge-color);
41
-
42
- /* The color of the unread badge */
43
- --str-chat__channel-preview-unread-badge-color: var(--str-chat__on-unread-badge-color);
44
-
45
- /* The border radius used for the borders of the unread badge */
46
- --str-chat__channel-preview-unread-badge-border-radius: var(--str-chat__border-radius-circle);
47
-
48
- /* Top border of the unread badge */
49
- --str-chat__channel-preview-unread-badge-border-block-start: none;
50
-
51
- /* Bottom border of the unread badge */
52
- --str-chat__channel-preview-unread-badge-border-block-end: none;
53
-
54
- /* Left (right in RTL layout) border of the unread badge */
55
- --str-chat__channel-preview-unread-badge-border-inline-start: none;
56
-
57
- /* Right (left in RTL layout) border of the unread badge */
58
- --str-chat__channel-preview-unread-badge-border-inline-end: none;
59
-
60
- /* The color of the message status indicator icon (only available in Angular) */
61
- --str-chat__channel-preview-message-status-color: var(--str-chat__primary-color);
62
-
63
- /* The color of the text that displays the message time (only available in Angular) */
64
- --str-chat__channel-preview-message-time-color: var(--str-chat__message-secondary-color);
65
- }
66
-
67
- .str-chat__channel-preview-container {
68
- .str-chat__channel-preview__action-buttons {
69
- .str-chat__channel-preview__action-button {
70
- --str-chat-icon-color: var(--str-chat__text-low-emphasis-color);
71
- border: none;
72
- background-color: transparent;
73
- }
74
-
75
- .str-chat__channel-preview__action-button--pin.str-chat__channel-preview__action-button--active {
76
- --str-chat-icon-color: var(--str-chat__unread-badge-color);
77
- }
78
-
79
- .str-chat__channel-preview__action-button--archive.str-chat__channel-preview__action-button--active {
80
- --str-chat-icon-color: var(--str-chat__text-color);
81
- }
82
- }
83
- }
84
-
85
- .str-chat__channel-preview {
86
- @include utils.component-layer-overrides('channel-preview');
87
-
88
- &--active,
89
- &-messenger--active {
90
- background-color: var(--str-chat__channel-preview-active-background-color);
91
- }
92
-
93
- &:hover {
94
- background-color: var(--str-chat__channel-preview-hover-background-color);
95
- }
96
-
97
- .str-chat__channel-preview-end-first-row {
98
- @include utils.channel-preview-display-name-theme;
99
-
100
- .str-chat__channel-preview-unread-badge {
101
- @include utils.component-layer-overrides('channel-preview-unread-badge');
102
- font-size: 80%;
103
- }
104
-
105
- .str-chat__channel-preview-messenger--last-message {
106
- font: var(--str-chat__body-text);
107
- color: var(--str-chat__channel-preview-latest-message-secondary-color);
108
- }
109
-
110
- &--active,
111
- &:hover {
112
- .str-chat__channel-preview-messenger--last-message {
113
- color: var(--str-chat__channel-preview-color);
114
- }
115
- }
116
- }
117
-
118
- .str-chat__channel-preview-messenger--status {
119
- --str-chat-icon-color: var(--str-chat__channel-preview-message-status-color);
120
- color: var(--str-chat__channel-preview-message-status-color);
121
-
122
- svg {
123
- path {
124
- fill: var(--str-chat__channel-preview-message-status-color);
125
- }
126
- }
127
- }
128
-
129
- .str-chat__channel-preview-messenger--time {
130
- color: var(--str-chat__channel-preview-message-time-color);
131
- font: var(--str-chat__caption-text);
132
- }
133
- }
134
-
135
- .str-chat__channel-preview-loading {
136
- @include utils.loading-animation;
137
-
138
- .str-chat__loading-channels-avatar,
139
- .str-chat__loading-channels-username,
140
- .str-chat__loading-channels-status {
141
- @include utils.loading-item-background('channel-preview');
142
- }
143
-
144
- .str-chat__loading-channels-username,
145
- .str-chat__loading-channels-status {
146
- border-radius: var(--str-chat__border-radius-xs);
147
- }
148
- }