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,220 +0,0 @@
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
- text-align: left;
160
- font: var(--str-chat__subtitle-text);
161
-
162
- .str-chat__slash-command-header {
163
- .str-chat__slash-command-name {
164
- text-transform: capitalize;
165
- font: var(--str-chat__subtitle2-text);
166
- }
167
-
168
- .str-chat__slash-command-args {
169
- color: var(--str-chat__slash-command-args-color);
170
- font: var(--str-chat__subtitle-text);
171
- }
172
- }
173
- }
174
-
175
- .str-chat__user-item {
176
- @include utils.component-layer-overrides('mention-list-user-item');
177
-
178
- .str-chat__user-item--name {
179
- font: var(--str-chat__subtitle-text);
180
- }
181
-
182
- .str-chat__user-item-at {
183
- font: var(--str-chat__subtitle2-text);
184
- color: var(--str-chat__mention-list-user-item-at-sign-color);
185
- }
186
- }
187
-
188
- .str-chat__emoji-item {
189
- @include utils.component-layer-overrides('mention-list-emoji-item');
190
-
191
- .str-chat__emoji-item--name {
192
- font: var(--str-chat__subtitle-text);
193
- }
194
- }
195
-
196
- // TODO?: rename to autocomplete? or create new file
197
- .str-chat__suggestion-list-container {
198
- @include utils.component-layer-overrides('suggestion-list-container');
199
-
200
- .str-chat__suggestion-list {
201
- .str-chat__suggestion-list-item {
202
- > a {
203
- text-decoration: none;
204
- }
205
- }
206
-
207
- .str-chat__suggestion-item--selected {
208
- background-color: var(--str-chat__suggestion-list-item--selected-background-color);
209
- }
210
- }
211
-
212
- .str-chat__suggestion-list--react {
213
- .str-chat__suggestion-list-item {
214
- > button {
215
- @include utils.button-reset;
216
- text-decoration: none;
217
- }
218
- }
219
- }
220
- }
@@ -1,137 +0,0 @@
1
- .str-chat {
2
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 32);
3
-
4
- .str-chat__avatar--autocomplete-item,
5
- .stream-chat__avatar--autocomplete-item {
6
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
7
- }
8
-
9
- .str-chat__avatar--channel-header,
10
- .stream-chat__avatar--channel-header {
11
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 40);
12
- }
13
-
14
- .str-chat__avatar--channel-preview,
15
- .stream-chat__avatar--channel-preview {
16
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 49);
17
- }
18
-
19
- .str-chat__avatar--quoted-message-sender,
20
- .stream-chat__avatar--quoted-message-sender {
21
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 20);
22
- }
23
-
24
- .str-chat__avatar--reaction,
25
- .stream-chat__avatar--reaction {
26
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
27
- }
28
-
29
- .str-chat__avatar--message-status,
30
- .stream-chat__avatar--message-status {
31
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 15);
32
- }
33
-
34
- .str-chat__avatar--poll-vote-author {
35
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 20);
36
- }
37
- }
38
-
39
- .str-chat__avatar {
40
- position: relative;
41
- display: flex;
42
- align-items: center;
43
- justify-content: center;
44
- height: var(--str-chat__avatar-size);
45
- line-height: var(--str-chat__avatar-size);
46
- width: var(--str-chat__avatar-size);
47
- min-width: var(--str-chat__avatar-size);
48
-
49
- &.str-chat__avatar--one-letter,
50
- &.stream-chat__avatar--one-letter {
51
- font-size: calc(var(--str-chat__avatar-size) * 0.5);
52
- }
53
-
54
- &.str-chat__avatar--no-letters {
55
- --str-chat-icon-width: calc(var(--str-chat__avatar-size) * 0.33);
56
- --str-chat-icon-height: calc(var(--str-chat__avatar-size) * 0.33);
57
- }
58
-
59
- &.str-chat__avatar--multiple-letters,
60
- &.stream-chat__avatar--multiple-letters {
61
- font-size: calc(var(--str-chat__avatar-size) * 0.3);
62
- }
63
-
64
- .str-chat__avatar-image {
65
- height: 100%;
66
- width: 100%;
67
- object-fit: cover;
68
- }
69
-
70
- .str-chat__avatar-fallback {
71
- text-align: center;
72
- height: inherit;
73
- width: inherit;
74
- }
75
-
76
- .str-chat__avatar--online-indicator {
77
- position: absolute;
78
- width: calc(var(--str-chat__spacing-px) * 12);
79
- height: calc(var(--str-chat__spacing-px) * 12);
80
- inset-inline-end: 3%;
81
- inset-block-start: 2%;
82
- }
83
- }
84
-
85
- .str-chat__loading-channels-avatar {
86
- flex-shrink: 0;
87
- width: calc(var(--str-chat__spacing-px) * 49);
88
- height: calc(var(--str-chat__spacing-px) * 49);
89
- }
90
-
91
-
92
- .str-chat__avatar-group {
93
- display: grid;
94
- grid-template-columns: repeat(2, 1fr);
95
- grid-template-rows: repeat(2, 1fr);
96
- height: var(--str-chat__avatar-size);
97
- line-height: var(--str-chat__avatar-size);
98
- width: var(--str-chat__avatar-size);
99
- min-width: var(--str-chat__avatar-size);
100
- overflow: hidden;
101
-
102
- &.str-chat__avatar-group--three-part {
103
- .str-chat__avatar:nth-child(1) {
104
- grid-area: 1 / 1 / 3 / 2;
105
- }
106
-
107
- .str-chat__avatar:nth-child(2) {
108
- grid-area: 1 / 2 / 2 / 3;
109
- }
110
-
111
- .str-chat__avatar:nth-child(3) {
112
- grid-area: 2 / 2 / 3 / 3;
113
- }
114
- }
115
-
116
- .str-chat__avatar {
117
- height: 100%;
118
- line-height: 100%;
119
- width: 100%;
120
- min-width: 100%;
121
-
122
- .str-chat__avatar-fallback, img {
123
- border-radius: 0;
124
- }
125
-
126
- &.str-chat__avatar--single .str-chat__avatar-fallback {
127
- display: flex;
128
- align-items: center;
129
- justify-content: center;
130
- font-size: calc(var(--str-chat__avatar-size) * 0.5);
131
- }
132
-
133
- .str-chat__avatar-fallback {
134
- font-size: calc(var(--str-chat__avatar-size) * 0.33);
135
- }
136
- }
137
- }
@@ -1,64 +0,0 @@
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
- /* The color of the online indicator (only available in Angular SDK) */
29
- --str-chat__avatar-online-indicator-color: var(--str-chat__info-color);
30
-
31
- /* The border radius of the online indicator (only available in Angular SDK) */
32
- --str-chat__avatar-online-indicator-border-radius: var(--str-chat__border-radius-circle);
33
- }
34
-
35
- .str-chat__avatar {
36
- .str-chat__avatar-image {
37
- @include utils.component-layer-overrides('avatar');
38
- display: block;
39
- }
40
-
41
- &.str-chat__avatar--no-letters {
42
- --str-chat-icon-color: var(--str-chat__avatar-color);
43
- @include utils.component-layer-overrides('avatar');
44
- }
45
-
46
- .str-chat__avatar-fallback {
47
- @include utils.component-layer-overrides('avatar');
48
- text-transform: uppercase;
49
- }
50
-
51
- .str-chat__avatar--online-indicator {
52
- background-color: var(--str-chat__avatar-online-indicator-color);
53
- border-radius: var(--str-chat__avatar-online-indicator-border-radius);
54
- }
55
- }
56
-
57
- .str-chat__loading-channels-avatar {
58
- border-radius: var(--str-chat__avatar-border-radius);
59
- }
60
-
61
-
62
- .str-chat__avatar-group {
63
- border-radius: var(--str-chat__avatar-border-radius);
64
- }
@@ -1,21 +0,0 @@
1
- .str-chat__base-image {
2
- .str-chat__message-attachment-file--item-download {
3
- display: block;
4
- }
5
- }
6
-
7
- .str-chat__message-attachment-card--header,
8
- .str-chat__gallery-image,
9
- .str-chat__message-attachment--image {
10
- .str-chat__message-attachment-file--item-download {
11
- position: absolute;
12
- top: 0.5rem;
13
- right: 1rem;
14
- }
15
- }
16
-
17
- .str-chat__attachment-preview-image {
18
- .str-chat__message-attachment-file--item-download {
19
- display: none;
20
- }
21
- }
@@ -1,35 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__base-image {
4
- color: transparent; // prevents the img alt text from being seen through the mask
5
- }
6
-
7
- .str-chat__base-image--load-failed {
8
- @include utils.apply-mask-image(
9
- var(--str-chat__image-fallback-icon),
10
- var(--str-chat__disabled-color),
11
- 5rem 5rem
12
- );
13
-
14
- ~ .str-chat__message-attachment-file--item-download {
15
- .str-chat__message-attachment-download-icon path {
16
- fill: var(--str-chat__text-color);
17
- }
18
- }
19
- }
20
-
21
- .str-chat__attachment-preview-image {
22
- .str-chat__base-image--load-failed {
23
- $fallbackSize: 1.5rem 1.5rem;
24
- mask-size: $fallbackSize;
25
- -webkit-mask-size: $fallbackSize;
26
- }
27
- }
28
-
29
- .str-chat__attachment-preview-list .str-chat__attachment-preview-image--error {
30
- background-color: var(--str-chat__secondary-surface-color);
31
-
32
- .str-chat__attachment-preview-thumbnail.str-chat__base-image--load-failed {
33
- background-color: var(--str-chat__disabled-color);
34
- }
35
- }
@@ -1,2 +0,0 @@
1
- @import "BaseImage-layout";
2
- @import "BaseImage-theme";
@@ -1,141 +0,0 @@
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
- --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 136);
25
- @include utils.empty-layout;
26
- position: relative;
27
-
28
- .str-chat__empty-channel-notifications {
29
- position: absolute;
30
- inset-block-end: var(--str-chat__spacing-2);
31
- }
32
- }
33
-
34
- .str-chat__loading-channel {
35
- $text-height: calc(var(--str-chat__spacing-px) * 16);
36
- height: 100%;
37
- display: flex;
38
- flex-direction: column;
39
-
40
- .str-chat__loading-channel-header {
41
- @include utils.header-layout;
42
-
43
- .str-chat__loading-channel-header-avatar {
44
- flex-shrink: 0;
45
- width: calc(var(--str-chat__spacing-px) * 40);
46
- height: calc(var(--str-chat__spacing-px) * 40);
47
- border-radius: var(--str-chat__avatar-border-radius);
48
- }
49
-
50
- .str-chat__loading-channel-header-end {
51
- @include utils.header-text-layout;
52
-
53
- .str-chat__loading-channel-header-name {
54
- border-radius: var(--str-chat__border-radius-xs);
55
- height: $text-height;
56
- width: calc(var(--str-chat__spacing-px) * 170);
57
- }
58
-
59
- .str-chat__loading-channel-header-info {
60
- border-radius: var(--str-chat__border-radius-xs);
61
- height: $text-height;
62
- width: calc(var(--str-chat__spacing-px) * 66);
63
- }
64
- }
65
- }
66
-
67
- .str-chat__loading-channel-message-list {
68
- /* stylelint-disable */
69
- height: 100%;
70
- @include utils.message-list-spacing;
71
-
72
- .str-chat__loading-channel-message {
73
- display: flex;
74
- width: 100%;
75
- column-gap: var(--str-chat__spacing-2);
76
- padding: var(--str-chat__spacing-4) 0;
77
-
78
- .str-chat__loading-channel-message-avatar {
79
- flex-shrink: 0;
80
- width: calc(var(--str-chat__spacing-px) * 49);
81
- height: calc(var(--str-chat__spacing-px) * 49);
82
- }
83
-
84
- .str-chat__loading-channel-message-end {
85
- display: flex;
86
- flex-direction: column;
87
- width: 100%;
88
- row-gap: var(--str-chat__spacing-2);
89
-
90
- .str-chat__loading-channel-message-last-row {
91
- display: flex;
92
- width: 100%;
93
- column-gap: var(--str-chat__spacing-2);
94
- }
95
- }
96
-
97
- .str-chat__loading-channel-message-sender {
98
- height: $text-height;
99
- width: calc(var(--str-chat__spacing-px) * 66);
100
- }
101
-
102
- .str-chat__loading-channel-message-text {
103
- height: $text-height;
104
- width: 100%;
105
- }
106
-
107
- .str-chat__loading-channel-message-date {
108
- height: $text-height;
109
- width: calc(var(--str-chat__spacing-px) * 50);
110
- }
111
-
112
- &:nth-of-type(2) {
113
- flex-direction: row-reverse;
114
-
115
- .str-chat__loading-channel-message-sender {
116
- align-self: end;
117
- }
118
-
119
- .str-chat__loading-channel-message-last-row {
120
- flex-direction: row-reverse;
121
- }
122
- }
123
- }
124
- }
125
-
126
- .str-chat__loading-channel-message-input-row {
127
- display: flex;
128
- column-gap: var(--str-chat__spacing-2);
129
- padding: var(--str-chat__spacing-2);
130
-
131
- .str-chat__loading-channel-message-input {
132
- width: 100%;
133
- height: calc(var(--str-chat__spacing-px) * 36);
134
- }
135
-
136
- .str-chat__loading-channel-message-send {
137
- height: calc(var(--str-chat__spacing-px) * 36);
138
- width: calc(var(--str-chat__spacing-px) * 36);
139
- }
140
- }
141
- }