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,483 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__message-border-radius: none;
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__message-color: var(--str-chat__text-color);
9
-
10
- /* The text/icon color used for displaying error messages */
11
- --str-chat__message-error-message-color: var(--str-chat__danger-color);
12
-
13
- /* The text/icon color used for displaying items with less emphasis */
14
- --str-chat__message-secondary-color: var(--str-chat__text-low-emphasis-color);
15
-
16
- /* The text color used for displaying links */
17
- --str-chat__message-link-color: var(--str-chat__primary-color);
18
-
19
- /* The text color used for displaying mentions */
20
- --str-chat__message-mention-color: var(--str-chat__primary-color);
21
-
22
- /* The text/icon color used for displaying message status */
23
- --str-chat__message-status-color: var(--str-chat__primary-color);
24
-
25
- /* The text color used for displaying the number of thread replies of a message */
26
- --str-chat__message-replies-count-color: var(--str-chat__primary-color);
27
-
28
- /* The background color of the component */
29
- --str-chat__message-background-color: transparent;
30
-
31
- /* The background color of a jumped-to message */
32
- --str-chat__message-highlighted-background-color: var(--str-chat__message-highlight-color);
33
-
34
- /* Top border of the component */
35
- --str-chat__message-border-block-start: none;
36
-
37
- /* Bottom border of the component */
38
- --str-chat__message-border-block-end: none;
39
-
40
- /* Left (right in RTL layout) border of the component */
41
- --str-chat__message-border-inline-start: none;
42
-
43
- /* Right (left in RTL layout) border of the component */
44
- --str-chat__message-border-inline-end: none;
45
-
46
- /* Box shadow applied to the component */
47
- --str-chat__message-box-shadow: none;
48
-
49
- /* The background of the message component in active state */
50
- --str-chat__message-active-bacground-color: transparent;
51
-
52
- /* The icon color used for displaying message options */
53
- --str-chat__message-options-color: var(--str-chat__text-low-emphasis-color);
54
-
55
- /* The icon color used for displaying message options if a message option is clicked */
56
- --str-chat__message-options-hover-background-color: var(--str-chat__tertiary-surface-color);
57
-
58
- /* The border radius used for displaying message options */
59
- --str-chat__message-options-border-radius: var(--str-chat__border-radius-circle);
60
-
61
- /* The background color used if a message option is hovered */
62
- --str-chat__message-options-active-color: var(--str-chat__primary-color);
63
-
64
- /* The border radius used for the borders of the message bubble */
65
- --str-chat__message-bubble-border-radius: var(--str-chat__border-radius-md);
66
-
67
- /* The text/icon of the message bubble */
68
- --str-chat__message-bubble-color: var(--str-chat__text-color);
69
-
70
- /* The background of the message bubble */
71
- --str-chat__message-bubble-background-color: var(--str-chat__secondary-surface-color);
72
-
73
- /* The text/icon of the message bubble, if the message was sent by the user */
74
- --str-chat__own-message-bubble-color: var(--str-chat__message-bubble-color);
75
-
76
- /* The background of the message bubble, if the message was sent by the user */
77
- --str-chat__own-message-bubble-background-color: var(--str-chat__primary-surface-color);
78
-
79
- /* The background of the message bubble, if it's a quoted message */
80
- --str-chat__quoted-message-bubble-background-color: var(--str-chat__secondary-background-color);
81
-
82
- /* Top border of the message bubble */
83
- --str-chat__message-bubble-border-block-start: none;
84
-
85
- /* Bottom border of the message bubble */
86
- --str-chat__message-bubble-border-block-end: none;
87
-
88
- /* Left (right in RTL layout) border of the message bubble */
89
- --str-chat__message-bubble-border-inline-start: none;
90
-
91
- /* Right (left in RTL layout) border of the message bubble */
92
- --str-chat__message-bubble-border-inline-end: none;
93
-
94
- /* Box shadow applied to the message bubble */
95
- --str-chat__message-bubble-box-shadow: none;
96
-
97
- /* The border radius used for the borders of a deleted message */
98
- --str-chat__deleted-message-border-radius: var(--str-chat__border-radius-md);
99
-
100
- /* The text/icon of a deleted message */
101
- --str-chat__deleted-message-color: var(--str-chat__text-low-emphasis-color);
102
-
103
- /* The background of a deleted message */
104
- --str-chat__deleted-message-background-color: var(--str-chat__secondary-surface-color);
105
-
106
- /* Top border of a deleted message */
107
- --str-chat__deleted-message-border-block-start: none;
108
-
109
- /* Bottom border of a deleted message */
110
- --str-chat__deleted-message-border-block-end: none;
111
-
112
- /* Left (right in RTL layout) border of a deleted message */
113
- --str-chat__deleted-message-border-inline-start: none;
114
-
115
- /* Right (left in RTL layout) border of a deleted message */
116
- --str-chat__deleted-message-border-inline-end: none;
117
-
118
- /* Box shadow applied to a deleted message */
119
- --str-chat__deleted-message-box-shadow: none;
120
-
121
- /* The border radius used for the borders of a deleted message */
122
- --str-chat__blocked-message-border-radius: var(--str-chat__border-radius-md);
123
-
124
- /* The text/icon of a deleted message */
125
- --str-chat__blocked-message-color: var(--str-chat__text-low-emphasis-color);
126
-
127
- /* The background of a deleted message */
128
- --str-chat__blocked-message-background-color: var(--str-chat__secondary-surface-color);
129
-
130
- /* Top border of a deleted message */
131
- --str-chat__blocked-message-border-block-start: none;
132
-
133
- /* Bottom border of a deleted message */
134
- --str-chat__blocked-message-border-block-end: none;
135
-
136
- /* Left (right in RTL layout) border of a deleted message */
137
- --str-chat__blocked-message-border-inline-start: none;
138
-
139
- /* Right (left in RTL layout) border of a deleted message */
140
- --str-chat__blocked-message-border-inline-end: none;
141
-
142
- /* Box shadow applied to a deleted message */
143
- --str-chat__blocked-message-box-shadow: none;
144
-
145
- /* The border radius used for the borders of a system message */
146
- --str-chat__system-message-border-radius: 0;
147
-
148
- /* The text/icon of a system message */
149
- --str-chat__system-message-color: var(--str-chat__text-low-emphasis-color);
150
-
151
- /* The background of a system message */
152
- --str-chat__system-message-background-color: transparent;
153
-
154
- /* Top border of a system message */
155
- --str-chat__system-message-border-block-start: none;
156
-
157
- /* Bottom border of a system message */
158
- --str-chat__system-message-border-block-end: none;
159
-
160
- /* Left (right in RTL layout) border of a system message */
161
- --str-chat__system-message-border-inline-start: none;
162
-
163
- /* Right (left in RTL layout) border of a system message */
164
- --str-chat__system-message-border-inline-end: none;
165
-
166
- /* Box shadow applied to a system message */
167
- --str-chat__system-message-box-shadow: none;
168
-
169
- /* Text color in a date separator*/
170
- --str-chat__date-separator-color: var(--str-chat__text-low-emphasis-color);
171
-
172
- /* The line color applied to date separator */
173
- --str-chat__date-separator-line-color: var(--str-chat__disabled-color);
174
-
175
- /* The border radius used for the borders of a date separator */
176
- --str-chat__date-separator-border-radius: 0;
177
-
178
- /* The background color of a date separator */
179
- --str-chat__date-separator-background-color: transparent;
180
-
181
- /* Top border of a date separator */
182
- --str-chat__date-separator-border-block-start: none;
183
-
184
- /* Bottom border of a date separator */
185
- --str-chat__date-separator-border-block-end: none;
186
-
187
- /* Left (right in RTL layout) border of a date separator */
188
- --str-chat__date-separator-border-inline-start: none;
189
-
190
- /* Right (left in RTL layout) border of a date separator */
191
- --str-chat__date-separator-border-inline-end: none;
192
-
193
- /* Box shadow applied to a date separator */
194
- --str-chat__date-separator-box-shadow: none;
195
-
196
- /* The text color of the translation notice that is displayed if a message is translated with auto-translation */
197
- --str-chat__translation-notice-color: var(--str-chat__text-low-emphasis-color);
198
-
199
- /* The hover color of the translation notice that is displayed if a message is translated with auto-translation */
200
- --str-chat__translation-notice-active-background-color: var(--str-chat__tertiary-surface-color);
201
-
202
- /* The text color of the message reminder, if it's a quoted message */
203
- --str-chat__message-reminder-color: var(--str-chat__primary-color);
204
-
205
- /* The background of the message reminder, if it's a quoted message */
206
- --str-chat__message-reminder-background-color: var(--str-chat__secondary-background-color);
207
-
208
- /* Top border of the message reminder */
209
- --str-chat__message-reminder-border-block-start: none;
210
-
211
- /* Bottom border of the message reminder */
212
- --str-chat__message-reminder-border-block-end: none;
213
-
214
- /* Left (right in RTL layout) border of the message reminder */
215
- --str-chat__message-reminder-border-inline-start: none;
216
-
217
- /* Right (left in RTL layout) border of the message reminder */
218
- --str-chat__message-reminder-border-inline-end: none;
219
-
220
- /* Box shadow applied to the message reminder */
221
- --str-chat__message-reminder-box-shadow: none;
222
-
223
- /* The border radius used for the borders of a message reminder */
224
- --str-chat__message-reminder-border-radius: 0;
225
- }
226
-
227
- .str-chat__message--system {
228
- @include utils.component-layer-overrides('system-message');
229
- font: var(--str-chat__caption-text);
230
- }
231
-
232
- .str-chat__date-separator {
233
- @include utils.component-layer-overrides('date-separator');
234
- font: var(--str-chat__body-text);
235
-
236
- &-line {
237
- background-color: var(--str-chat__date-separator-line-color);
238
- border: none;
239
- }
240
- }
241
-
242
- .str-chat__message-mention {
243
- color: var(--str-chat__message-mention-color);
244
- font: var(--str-chat__body2-medium-text);
245
- }
246
-
247
- .str-chat__message {
248
- @include utils.component-layer-overrides('message');
249
-
250
- a {
251
- text-decoration: none;
252
- color: var(--str-chat__message-link-color);
253
- }
254
-
255
- .str-chat__message-reminder {
256
- @include utils.component-layer-overrides('message-reminder');
257
- font: var(--str-chat__caption-medium-text);
258
- }
259
-
260
- .str-chat__message-bubble {
261
- @include utils.component-layer-overrides('message-bubble');
262
- font: var(--str-chat__body2-text);
263
- }
264
-
265
- .str-chat__message--deleted-inner {
266
- @include utils.component-layer-overrides('deleted-message');
267
- font: var(--str-chat__body2-text);
268
- }
269
-
270
- .str-chat__message--blocked-inner {
271
- @include utils.component-layer-overrides('blocked-message');
272
- font: var(--str-chat__body2-text);
273
- }
274
-
275
- &.str-chat__message--me .str-chat__message-bubble {
276
- color: var(--str-chat__own-message-bubble-color);
277
- background-color: var(--str-chat__own-message-bubble-background-color);
278
- }
279
-
280
- .str-chat__message-options {
281
- --str-chat-icon-color: var(--str-chat__message-options-color);
282
-
283
- .str-chat__message-actions-box-button,
284
- .str-chat__message-reply-in-thread-button,
285
- .str-chat__message-reactions-button {
286
- // remove default button styles (React SDK uses button compared to div in Angular SDK)
287
- @include utils.button-reset;
288
- border-radius: var(--str-chat__message-options-border-radius);
289
- color: var(--str-chat__message-options-color);
290
-
291
- .str-chat__message-action-icon path {
292
- fill: var(--str-chat__message-options-color);
293
- }
294
- }
295
-
296
- .str-chat__message-actions-box-button:hover,
297
- .str-chat__message-reply-in-thread-button:hover,
298
- .str-chat__message-reactions-button:hover {
299
- background-color: var(--str-chat__message-options-hover-background-color);
300
- }
301
-
302
- .str-chat__message-actions-box-button:active,
303
- .str-chat__message-reply-in-thread-button:active,
304
- .str-chat__message-reactions-button:active {
305
- .str-chat__message-action-icon path {
306
- fill: var(--str-chat__message-options-active-color);
307
- }
308
- }
309
- }
310
-
311
- .str-chat__translation-notice {
312
- button {
313
- font: var(--str-chat__body2-text);
314
- color: var(--str-chat__translation-notice-color);
315
- border: none;
316
- background: none;
317
-
318
- &:active,
319
- &:hover {
320
- background: var(--str-chat__translation-notice-active-background-color);
321
- }
322
- }
323
- }
324
-
325
- .str-chat__message-metadata,
326
- .str-chat__custom-message-metadata {
327
- color: var(--str-chat__message-secondary-color);
328
- font: var(--str-chat__caption-text);
329
-
330
- .str-chat__message-sender-name {
331
- font: var(--str-chat__caption-medium-text);
332
- }
333
- }
334
-
335
- .str-chat__message-status {
336
- --str-chat-icon-color: var(--str-chat__message-status-color);
337
- color: var(--str-chat__message-status-color);
338
- font: var(--str-chat__body-text);
339
-
340
- svg {
341
- path {
342
- fill: var(--str-chat__message-status-color);
343
- }
344
- }
345
- }
346
-
347
- .str-chat__message-status-sent,
348
- .str-chat__message-status-delivered {
349
- svg {
350
- path {
351
- fill: var(--str-chat__text-low-emphasis-color);
352
- }
353
- }
354
- }
355
-
356
- .str-chat__message-replies-count-button-wrapper,
357
- .str-chat__message-is-thread-reply-button-wrapper {
358
- button {
359
- border: none;
360
- background-color: transparent;
361
- font: var(--str-chat__body-medium-text);
362
- color: var(--str-chat__message-replies-count-color);
363
- }
364
- }
365
-
366
- .str-chat__message--error-message {
367
- color: var(--str-chat__message-error-message-color);
368
- font: var(--str-chat__caption-text);
369
- }
370
-
371
- .str-chat__message-error-icon {
372
- --str-chat-icon-color: var(--str-chat__message-error-message-color);
373
- /* stylelint-disable-next-line selector-max-id */
374
- svg #background {
375
- fill: var(--str-chat__message-error-message-color);
376
- }
377
- }
378
- }
379
-
380
- .str-chat__message--highlighted {
381
- transition: background-color 0.1s ease-out;
382
- background-color: var(--str-chat__message-highlighted-background-color);
383
- }
384
-
385
- /* This rule won't be applied in browsers that don't support :has() */
386
- .str-chat__li:hover:not(:has(.str-chat__reaction-list:hover, .str-chat__modal--open)) {
387
- background-color: var(--str-chat__message-active-bacground-color);
388
- }
389
-
390
- /* Fallback for when :has() is unsupported */
391
- @supports not selector(:has(a, b)) {
392
- .str-chat__li:hover {
393
- background-color: var(--str-chat__message-active-bacground-color);
394
- }
395
- }
396
-
397
- .str-chat__li--top,
398
- .str-chat__li--single {
399
- .str-chat__message--other {
400
- .str-chat__message-bubble {
401
- border-end-start-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
402
- }
403
- }
404
-
405
- .str-chat__message--me {
406
- .str-chat__message-bubble {
407
- border-end-end-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
408
- }
409
- }
410
- }
411
-
412
- .str-chat__li--middle,
413
- .str-chat__li--bottom {
414
- .str-chat__message--other {
415
- .str-chat__message-bubble {
416
- border-start-start-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
417
- border-end-start-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
418
- }
419
- }
420
-
421
- .str-chat__message--me {
422
- .str-chat__message-bubble {
423
- border-start-end-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
424
- border-end-end-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
425
- }
426
- }
427
- }
428
-
429
- .str-chat__message-with-thread-link {
430
- &.str-chat__message--other {
431
- .str-chat__message-bubble {
432
- border-end-start-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
433
- }
434
- }
435
-
436
- &.str-chat__message--me {
437
- .str-chat__message-bubble {
438
- border-end-end-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
439
- }
440
- }
441
- }
442
-
443
- .str-chat__quoted-message-preview {
444
- @include utils.component-layer-overrides('message');
445
-
446
- .str-chat__quoted-message-bubble {
447
- @include utils.component-layer-overrides('message-bubble');
448
- background-color: var(--str-chat__quoted-message-bubble-background-color);
449
- border-end-start-radius: calc(var(--str-chat__message-bubble-border-radius) / 6);
450
- }
451
- }
452
-
453
- .str-chat__message-input {
454
- .str-chat__quoted-message-preview {
455
- .str-chat__quoted-message-bubble {
456
- background-color: var(--str-chat__message-bubble-background-color);
457
- }
458
- }
459
- }
460
-
461
- .str-chat__unread-messages-separator {
462
- background-color: var(--str-chat__secondary-surface-color);
463
- color: var(--str-chat__text-low-emphasis-color);
464
- text-transform: uppercase;
465
- font: var(--str-chat__caption-strong-text);
466
- }
467
-
468
- .str-chat__unread-messages-notification {
469
- --str-chat-icon-color: var(--str-chat__on-primary-color);
470
- background-color: var(--str-chat__text-low-emphasis-color);
471
- border-radius: 1.125rem;
472
-
473
- button {
474
- cursor: pointer;
475
- color: var(--str-chat__on-primary-color);
476
- border: none;
477
- background-color: transparent;
478
- }
479
-
480
- button:first-of-type {
481
- font: var(--str-chat__caption-text);
482
- }
483
- }
@@ -1,21 +0,0 @@
1
- .str-chat__message-actions-box {
2
- overflow: hidden; // Avoids message action box item background overflow in hovered state
3
-
4
- .str-chat__message-actions-box__submenu,
5
- .str-chat__message-actions-list {
6
- list-style: none;
7
- padding: 0;
8
- margin: 0;
9
- display: flex;
10
- flex-direction: column;
11
- min-width: 10rem;
12
-
13
- .str-chat__message-actions-list-item-button {
14
- padding: var(--str-chat__spacing-2) var(--str-chat__spacing-4);
15
- margin: 0;
16
- cursor: pointer;
17
- width: 100%;
18
- text-align: start;
19
- }
20
- }
21
- }
@@ -1,85 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__message-actions-box-border-radius: var(--str-chat__border-radius-sm);
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__message-actions-box-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__message-actions-box-background-color: var(--str-chat__secondary-background-color);
12
-
13
- /* Top border of the component */
14
- --str-chat__message-actions-box-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__message-actions-box-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__message-actions-box-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__message-actions-box-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__message-actions-box-box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
27
-
28
- /* The border radius used for the borders of an item in the message actions box */
29
- --str-chat__message-actions-box-item-border-radius: 0;
30
-
31
- /* The text/icon color of an item in the message actions box */
32
- --str-chat__message-actions-box-item-color: var(--str-chat__text-color);
33
-
34
- /* The background color of an item in the message actions box */
35
- --str-chat__message-actions-box-item-background-color: transparent;
36
-
37
- /* The background color of an item in the message actions box when hovered */
38
- --str-chat__message-actions-box-item-hover-background-color: var(
39
- --str-chat__secondary-surface-color
40
- );
41
-
42
- /* Top border of an item in the message actions box */
43
- --str-chat__message-actions-box-item-border-block-start: none;
44
-
45
- /* Bottom border of an item in the message actions box */
46
- --str-chat__message-actions-box-item-border-block-end: none;
47
-
48
- /* Left (right in RTL layout) border of an item in the message actions box */
49
- --str-chat__message-actions-box-item-border-inline-start: none;
50
-
51
- /* Right (left in RTL layout) border of an item in the message actions box */
52
- --str-chat__message-actions-box-item-border-inline-end: none;
53
-
54
- /* Box shadow applied to an item in the message actions box */
55
- --str-chat__message-actions-box-item-box-shadow: none;
56
- }
57
-
58
- .str-chat__message-actions-box {
59
- @include utils.component-layer-overrides('message-actions-box');
60
-
61
- .str-chat__message-actions-list-item-button {
62
- @include utils.component-layer-overrides('message-actions-box-item');
63
- font: var(--str-chat__subtitle-text);
64
-
65
- &:hover {
66
- background-color: var(--str-chat__message-actions-box-item-hover-background-color);
67
- }
68
- }
69
-
70
- .str_chat__button-with-submenu--submenu-open {
71
- background-color: var(--str-chat__message-actions-box-item-hover-background-color);
72
- }
73
-
74
- .str-chat__message-actions-box__submenu {
75
- @include utils.component-layer-overrides('message-actions-box');
76
- }
77
- }
78
-
79
- @media (hover: none) {
80
- .str-chat__message-actions-box {
81
- .str-chat__message-actions-list-item-button:hover {
82
- background-color: transparent;
83
- }
84
- }
85
- }
@@ -1,19 +0,0 @@
1
- .str-chat__message-bounce-prompt {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- gap: var(--str-chat__spacing-9);
6
-
7
- .str-chat__message-bounce-actions {
8
- display: flex;
9
- flex-direction: column;
10
- gap: var(--str-chat__spacing-2);
11
- }
12
-
13
- .str-chat__message-bounce-edit,
14
- .str-chat__message-bounce-send,
15
- .str-chat__message-bounce-delete {
16
- cursor: pointer;
17
- padding: var(--str-chat__spacing-2);
18
- }
19
- }
@@ -1,51 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The text color used for the edit button */
5
- --str-chat__message-bounce-edit-button-color: var(--str-chat__primary-color);
6
-
7
- /* The text color used for the send button */
8
- --str-chat__message-bounce-send-button-color: var(--str-chat__primary-color);
9
-
10
- /* The text color used for the delete button */
11
- --str-chat__message-bounce-delete-button-color: var(--str-chat__primary-color);
12
-
13
- /* The background color of the button */
14
- --str-chat__message-bounce-button-background-color: transparent;
15
-
16
- /* Top border of the button */
17
- --str-chat__message-bounce-button-border-block-start: none;
18
-
19
- /* Bottom border of the button */
20
- --str-chat__message-bounce-button-border-block-end: none;
21
-
22
- /* Left (right in RTL layout) button of the component */
23
- --str-chat__message-bounce-button-border-inline-start: none;
24
-
25
- /* Right (left in RTL layout) button of the component */
26
- --str-chat__message-bounce-button-border-inline-end: none;
27
-
28
- /* Box shadow applied to the button */
29
- --str-chat__message-bounce-button-box-shadow: none;
30
- }
31
-
32
- .str-chat__message-bounce-prompt {
33
- .str-chat__message-bounce-edit,
34
- .str-chat__message-bounce-send,
35
- .str-chat__message-bounce-delete {
36
- @include utils.component-layer-overrides('message-bounce-button');
37
- font: var(--str-chat__body-medium-text);
38
- }
39
-
40
- .str-chat__message-bounce-edit {
41
- color: var(--str-chat__message-bounce-edit-button-color);
42
- }
43
-
44
- .str-chat__message-bounce-send {
45
- color: var(--str-chat__message-bounce-send-button-color);
46
- }
47
-
48
- .str-chat__message-bounce-delete {
49
- color: var(--str-chat__message-bounce-delete-button-color);
50
- }
51
- }