stream-chat-react 14.0.0-beta.3 → 14.0.0-beta.5

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 (180) hide show
  1. package/dist/cjs/WithAudioPlayback.0c10cb67.js +4638 -0
  2. package/dist/cjs/WithAudioPlayback.0c10cb67.js.map +1 -0
  3. package/dist/cjs/emojis.js +2 -2
  4. package/dist/cjs/emojis.js.map +1 -1
  5. package/dist/cjs/index.js +262 -364
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/css/emoji-replacement.css +34 -0
  8. package/dist/css/emoji-replacement.css.map +1 -0
  9. package/dist/css/index.css +81 -78
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/es/WithAudioPlayback.e7821fd4.mjs +4622 -0
  12. package/dist/es/WithAudioPlayback.e7821fd4.mjs.map +1 -0
  13. package/dist/es/emojis.mjs +2 -2
  14. package/dist/es/emojis.mjs.map +1 -1
  15. package/dist/es/index.mjs +323 -425
  16. package/dist/es/index.mjs.map +1 -1
  17. package/dist/types/components/ChannelHeader/ChannelHeader.d.ts +1 -1
  18. package/dist/types/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
  19. package/dist/types/components/Dialog/service/DialogPortal.d.ts.map +1 -1
  20. package/dist/types/components/Form/SwitchField.d.ts.map +1 -1
  21. package/dist/types/components/Form/TextInput.d.ts +2 -2
  22. package/dist/types/components/Form/TextInput.d.ts.map +1 -1
  23. package/dist/types/components/Icons/icons.d.ts +57 -373
  24. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  25. package/dist/types/components/Icons/index.d.ts +0 -1
  26. package/dist/types/components/Icons/index.d.ts.map +1 -1
  27. package/dist/types/components/Loading/LoadingIndicator.d.ts +2 -2
  28. package/dist/types/components/Loading/LoadingIndicator.d.ts.map +1 -1
  29. package/dist/types/components/Message/Message.d.ts.map +1 -1
  30. package/dist/types/components/Message/hooks/useUserRole.d.ts.map +1 -1
  31. package/dist/types/components/Message/types.d.ts +1 -5
  32. package/dist/types/components/Message/types.d.ts.map +1 -1
  33. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
  34. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  35. package/dist/types/components/MessageComposer/MessageComposerUI.d.ts.map +1 -1
  36. package/dist/types/components/MessageComposer/hooks/useSubmitHandler.d.ts.map +1 -1
  37. package/dist/types/components/MessageComposer/preEditSnapshot.d.ts +16 -0
  38. package/dist/types/components/MessageComposer/preEditSnapshot.d.ts.map +1 -0
  39. package/dist/types/components/MessageList/MessageList.d.ts +1 -1
  40. package/dist/types/components/MessageList/MessageList.d.ts.map +1 -1
  41. package/dist/types/components/MessageList/VirtualizedMessageList.d.ts +1 -1
  42. package/dist/types/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
  43. package/dist/types/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
  44. package/dist/types/components/Poll/PollCreationDialog/OptionFieldSet.d.ts.map +1 -1
  45. package/dist/types/components/Reactions/MessageReactions.d.ts +4 -16
  46. package/dist/types/components/Reactions/MessageReactions.d.ts.map +1 -1
  47. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts +4 -4
  48. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts.map +1 -1
  49. package/dist/types/components/Reactions/hooks/useProcessReactions.d.ts +4 -2
  50. package/dist/types/components/Reactions/hooks/useProcessReactions.d.ts.map +1 -1
  51. package/dist/types/components/Reactions/types.d.ts +0 -1
  52. package/dist/types/components/Reactions/types.d.ts.map +1 -1
  53. package/dist/types/components/SummarizedMessagePreview/SummarizedMessagePreview.d.ts.map +1 -1
  54. package/dist/types/components/SummarizedMessagePreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
  55. package/dist/types/components/Thread/ThreadHeader.d.ts +1 -1
  56. package/dist/types/components/Thread/ThreadHeader.d.ts.map +1 -1
  57. package/dist/types/context/MessageBounceContext.d.ts.map +1 -1
  58. package/dist/types/context/MessageContext.d.ts +1 -5
  59. package/dist/types/context/MessageContext.d.ts.map +1 -1
  60. package/package.json +3 -4
  61. package/dist/assets/icons/stream-chat-icons.eot +0 -0
  62. package/dist/assets/icons/stream-chat-icons.svg +0 -50
  63. package/dist/assets/icons/stream-chat-icons.ttf +0 -0
  64. package/dist/assets/icons/stream-chat-icons.woff +0 -0
  65. package/dist/assets/icons/stream-chat-icons.woff2 +0 -0
  66. package/dist/cjs/WithAudioPlayback.4a84360f.js +0 -4727
  67. package/dist/cjs/WithAudioPlayback.4a84360f.js.map +0 -1
  68. package/dist/css/v2/emoji-mart.css +0 -1
  69. package/dist/css/v2/emoji-replacement.css +0 -1
  70. package/dist/css/v2/index.css +0 -1
  71. package/dist/css/v2/index.layout.css +0 -1
  72. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs +0 -4711
  73. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +0 -1
  74. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-layout.scss +0 -3
  75. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-theme.scss +0 -7
  76. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +0 -701
  77. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +0 -605
  78. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +0 -141
  79. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-theme.scss +0 -190
  80. package/dist/scss/v2/AudioRecorder/AudioRecorder-layout.scss +0 -139
  81. package/dist/scss/v2/AudioRecorder/AudioRecorder-theme.scss +0 -61
  82. package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +0 -94
  83. package/dist/scss/v2/Autocomplete/Autocomplete-theme.scss +0 -220
  84. package/dist/scss/v2/Avatar/Avatar-layout.scss +0 -137
  85. package/dist/scss/v2/Avatar/Avatar-theme.scss +0 -64
  86. package/dist/scss/v2/BaseImage/BaseImage-layout.scss +0 -21
  87. package/dist/scss/v2/BaseImage/BaseImage-theme.scss +0 -35
  88. package/dist/scss/v2/BaseImage/index.scss +0 -2
  89. package/dist/scss/v2/Channel/Channel-layout.scss +0 -141
  90. package/dist/scss/v2/Channel/Channel-theme.scss +0 -100
  91. package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +0 -27
  92. package/dist/scss/v2/ChannelHeader/ChannelHeader-theme.scss +0 -43
  93. package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -65
  94. package/dist/scss/v2/ChannelList/ChannelList-theme.scss +0 -89
  95. package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +0 -126
  96. package/dist/scss/v2/ChannelPreview/ChannelPreview-theme.scss +0 -148
  97. package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +0 -122
  98. package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +0 -238
  99. package/dist/scss/v2/ChatView/ChatView-layout.scss +0 -43
  100. package/dist/scss/v2/ChatView/ChatView-theme.scss +0 -32
  101. package/dist/scss/v2/Dialog/Dialog-layout.scss +0 -70
  102. package/dist/scss/v2/Dialog/Dialog-theme.scss +0 -103
  103. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-layout.scss +0 -5
  104. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-theme.scss +0 -47
  105. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-layout.scss +0 -14
  106. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-theme.scss +0 -17
  107. package/dist/scss/v2/EditMessageForm/EditMessageForm-layout.scss +0 -51
  108. package/dist/scss/v2/EditMessageForm/EditMessageForm-theme.scss +0 -50
  109. package/dist/scss/v2/Form/Form-layout.scss +0 -49
  110. package/dist/scss/v2/Form/Form-theme.scss +0 -82
  111. package/dist/scss/v2/Icon/Icon-layout.scss +0 -98
  112. package/dist/scss/v2/Icon/Icon-theme.scss +0 -17
  113. package/dist/scss/v2/ImageCarousel/ImageCarousel-layout.scss +0 -51
  114. package/dist/scss/v2/ImageCarousel/ImageCarousel-theme.scss +0 -30
  115. package/dist/scss/v2/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +0 -4
  116. package/dist/scss/v2/LinkPreview/LinkPreview-layout.scss +0 -67
  117. package/dist/scss/v2/LinkPreview/LinkPreview-theme.scss +0 -32
  118. package/dist/scss/v2/LinkPreview/index.scss +0 -2
  119. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-layout.scss +0 -64
  120. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-theme.scss +0 -14
  121. package/dist/scss/v2/Location/Location-layout.scss +0 -52
  122. package/dist/scss/v2/Location/Location-theme.scss +0 -32
  123. package/dist/scss/v2/Message/Message-layout.scss +0 -619
  124. package/dist/scss/v2/Message/Message-theme.scss +0 -483
  125. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +0 -21
  126. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-theme.scss +0 -85
  127. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-layout.scss +0 -19
  128. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-theme.scss +0 -51
  129. package/dist/scss/v2/MessageInput/MessageInput-layout.scss +0 -268
  130. package/dist/scss/v2/MessageInput/MessageInput-theme.scss +0 -359
  131. package/dist/scss/v2/MessageList/MessageList-layout.scss +0 -65
  132. package/dist/scss/v2/MessageList/MessageList-theme.scss +0 -107
  133. package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +0 -57
  134. package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +0 -41
  135. package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +0 -143
  136. package/dist/scss/v2/MessageReactions/MessageReactions-theme.scss +0 -92
  137. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-layout.scss +0 -86
  138. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-theme.scss +0 -94
  139. package/dist/scss/v2/Modal/Modal-layout.scss +0 -74
  140. package/dist/scss/v2/Modal/Modal-theme.scss +0 -109
  141. package/dist/scss/v2/Notification/MessageNotification-layout.scss +0 -12
  142. package/dist/scss/v2/Notification/MessageNotification-theme.scss +0 -34
  143. package/dist/scss/v2/Notification/Notification-layout.scss +0 -7
  144. package/dist/scss/v2/Notification/Notification-theme.scss +0 -32
  145. package/dist/scss/v2/Notification/NotificationList-layout.scss +0 -11
  146. package/dist/scss/v2/Notification/NotificationList-theme.scss +0 -31
  147. package/dist/scss/v2/Poll/Poll-layout.scss +0 -493
  148. package/dist/scss/v2/Poll/Poll-theme.scss +0 -178
  149. package/dist/scss/v2/Search/Search-layout.scss +0 -148
  150. package/dist/scss/v2/Search/Search-theme.scss +0 -222
  151. package/dist/scss/v2/Thread/Thread-layout.scss +0 -65
  152. package/dist/scss/v2/Thread/Thread-theme.scss +0 -82
  153. package/dist/scss/v2/ThreadList/ThreadList-layout.scss +0 -152
  154. package/dist/scss/v2/ThreadList/ThreadList-theme.scss +0 -75
  155. package/dist/scss/v2/Tooltip/Tooltip-layout.scss +0 -10
  156. package/dist/scss/v2/Tooltip/Tooltip-theme.scss +0 -36
  157. package/dist/scss/v2/TypingIndicator/TypingIndicator-layout.scss +0 -31
  158. package/dist/scss/v2/TypingIndicator/TypingIndicator-theme.scss +0 -68
  159. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-layout.scss +0 -49
  160. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-theme.scss +0 -11
  161. package/dist/scss/v2/_base.scss +0 -65
  162. package/dist/scss/v2/_emoji-replacement.scss +0 -45
  163. package/dist/scss/v2/_global-layout-variables.scss +0 -65
  164. package/dist/scss/v2/_global-theme-variables.scss +0 -173
  165. package/dist/scss/v2/_icons.scss +0 -36
  166. package/dist/scss/v2/_palette-variables.scss +0 -55
  167. package/dist/scss/v2/_utils.scss +0 -212
  168. package/dist/scss/v2/_variables.scss +0 -2
  169. package/dist/scss/v2/common/CTAButton/CTAButton-layout.scss +0 -4
  170. package/dist/scss/v2/common/CTAButton/CTAButton-theme.scss +0 -42
  171. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-layout.scss +0 -14
  172. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-theme.scss +0 -35
  173. package/dist/scss/v2/index.layout.scss +0 -49
  174. package/dist/scss/v2/index.scss +0 -50
  175. package/dist/scss/v2/vendor/emoji-mart.scss +0 -514
  176. package/dist/scss/v2/vendor/react-image-gallery.scss +0 -258
  177. package/dist/types/components/Icons/IconGiphy.d.ts +0 -3
  178. package/dist/types/components/Icons/IconGiphy.d.ts.map +0 -1
  179. /package/dist/{assets → css/assets}/EmojiOneColor.woff2 +0 -0
  180. /package/dist/{assets → css/assets}/NotoColorEmoji-flags.woff2 +0 -0
@@ -1,107 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__message-list-border-radius: 0;
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__message-list-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__message-list-background-color: var(--str-chat__background-color);
12
-
13
- /* Box shadow applied to the component */
14
- --str-chat__message-list-box-shadow: none;
15
-
16
- /* Top border of the component */
17
- --str-chat__message-list-border-block-start: none;
18
-
19
- /* Bottom border of the component */
20
- --str-chat__message-list-border-block-end: none;
21
-
22
- /* Left (right in RTL layout) border of the component */
23
- --str-chat__message-list-border-inline-start: none;
24
-
25
- /* Right (left in RTL layout) border of the component */
26
- --str-chat__message-list-border-inline-end: none;
27
-
28
- /* The border radius used for the borders of the jump to latest message button */
29
- --str-chat__jump-to-latest-message-border-radius: var(--str-chat__circle-fab-border-radius);
30
-
31
- /* The text/icon color of the jump to latest message button */
32
- --str-chat__jump-to-latest-message-color: var(--str-chat__circle-fab-color);
33
-
34
- /* The background color of the jump to latest message button */
35
- --str-chat__jump-to-latest-message-background-color: var(--str-chat__circle-fab-background-color);
36
-
37
- /* The background color of the jump to latest message button in pressed state */
38
- --str-chat__jump-to-latest-message-pressed-background-color: var(
39
- --str-chat__circle-fab-pressed-background-color
40
- );
41
-
42
- /* Box shadow applied to the jump to latest message button */
43
- --str-chat__jump-to-latest-message-box-shadow: var(--str-chat__circle-fab-box-shadow);
44
-
45
- /* Top border of the jump to latest message button */
46
- --str-chat__jump-to-latest-message-border-block-start: var(
47
- --str-chat__circle-fab-border-block-start
48
- );
49
-
50
- /* Bottom border of the jump to latest message button */
51
- --str-chat__jump-to-latest-message-border-block-end: var(--str-chat__circle-fab-border-block-end);
52
-
53
- /* Left (right in RTL layout) border of the jump to latest message button */
54
- --str-chat__jump-to-latest-message-border-inline-start: var(
55
- --str-chat__circle-fab-border-inline-start
56
- );
57
-
58
- /* Right (left in RTL layout) border of the jump to latest message button */
59
- --str-chat__jump-to-latest-message-border-inline-end: var(
60
- --str-chat__circle-fab-border-inline-end
61
- );
62
-
63
- /* The background color of the unread messages count on the jump to latest message button */
64
- --str-chat__jump-to-latest-message-unread-count-background-color: var(
65
- --str-chat__jump-to-latest-message-color
66
- );
67
-
68
- /* The text/icon color of the unread messages count on the jump to latest message button */
69
- --str-chat__jump-to-latest-message-unread-count-color: var(
70
- --str-chat__jump-to-latest-message-background-color
71
- );
72
-
73
- /* The color used for displaying thread replies and thread separator at the start of a thread */
74
- --str-chat__thread-head-start-color: var(--str-chat__text-low-emphasis-color);
75
-
76
- /* The color used for the separator below the first message in a thread */
77
- --str-chat__thread-head-start-border-block-end-color: var(--str-chat__surface-color);
78
- }
79
-
80
- .str-chat__list {
81
- @include utils.component-layer-overrides('message-list');
82
-
83
- .str-chat__parent-message-li {
84
- border-block-end: 1px solid var(--str-chat__thread-head-start-border-block-end-color);
85
-
86
- .str-chat__thread-start {
87
- color: var(--str-chat__thread-head-start-color);
88
- font: var(--str-chat__subtitle-text);
89
- }
90
- }
91
- }
92
-
93
- .str-chat__jump-to-latest-message {
94
- --str-chat-icon-color: var(--str-chat__jump-to-latest-message-unread-count-background-color);
95
-
96
- .str-chat__circle-fab {
97
- @include utils.component-layer-overrides('jump-to-latest-message');
98
- @include utils.circle-fab-overrides('jump-to-latest-message');
99
-
100
- .str-chat__jump-to-latest-unread-count {
101
- background-color: var(--str-chat__jump-to-latest-message-unread-count-background-color);
102
- color: var(--str-chat__jump-to-latest-message-unread-count-color);
103
- border-radius: var(--str-chat__jump-to-latest-message-border-radius);
104
- font: var(--str-chat__caption-text);
105
- }
106
- }
107
- }
@@ -1,57 +0,0 @@
1
- @use '../utils';
2
-
3
- // todo: React SDK specific. Copied from V1. Deprecate after merging with MessageList
4
- .str-chat__virtual-list {
5
- @include utils.scrollable;
6
- position: relative;
7
- flex: 1;
8
- -webkit-overflow-scrolling: touch; /* enable smooth scrolling on ios */
9
- margin: 0;
10
- width: 100%;
11
- height: 100%;
12
-
13
- .str-chat__message-list-scroll {
14
- overscroll-behavior: none;
15
- }
16
-
17
- .str-chat__message-list-scroll > div {
18
- @include utils.message-list-spacing;
19
- }
20
-
21
- .str-chat__parent-message-li {
22
- padding-block-end: var(--str-chat__spacing-4);
23
-
24
- .str-chat__thread-start {
25
- text-align: start;
26
- padding-top: var(--str-chat__spacing-3);
27
- }
28
- }
29
-
30
- // conditionally showing the header displaces items when prepending.
31
- // a simple workaround is to make the loading indicator an overlay.
32
- &__loading {
33
- display: flex;
34
- padding-top: var(--str-chat__spacing-2);
35
- justify-content: center;
36
- width: 100%;
37
- position: absolute;
38
- }
39
-
40
- p {
41
- margin: 0 !important; // always use padding, margin mess up the height calculations
42
-
43
- a {
44
- white-space: pre-line;
45
- overflow: hidden;
46
- word-wrap: break-word;
47
- }
48
- }
49
-
50
- .str-chat__message {
51
- margin-block-end: 0 !important;
52
- }
53
-
54
- .str-chat__virtual-list-message-wrapper {
55
- padding-block-end: var(--str-chat__spacing-0_5);
56
- }
57
- }
@@ -1,41 +0,0 @@
1
- @use '../utils';
2
-
3
- /* Only available in React SDK. */
4
- .str-chat {
5
- /* The border radius used for the borders of the component */
6
- --str-chat__virtual-list-border-radius: 0;
7
-
8
- /* The text/icon color of the component */
9
- --str-chat__virtual-list-color: var(--str-chat__text-color);
10
-
11
- /* The background color of the component */
12
- --str-chat__virtual-list-background-color: var(--str-chat__background-color);
13
-
14
- /* Box shadow applied to the component */
15
- --str-chat__virtual-list-box-shadow: none;
16
-
17
- /* Top border of the component */
18
- --str-chat__virtual-list-border-block-start: none;
19
-
20
- /* Bottom border of the component */
21
- --str-chat__virtual-list-border-block-end: none;
22
-
23
- /* Left (right in RTL layout) border of the component */
24
- --str-chat__virtual-list-border-inline-start: none;
25
-
26
- /* Right (left in RTL layout) border of the component */
27
- --str-chat__virtual-list-border-inline-end: none;
28
- }
29
-
30
- .str-chat__virtual-list {
31
- @include utils.component-layer-overrides('virtual-list');
32
-
33
- .str-chat__parent-message-li {
34
- border-block-end: 1px solid var(--str-chat__thread-head-start-border-block-end-color);
35
-
36
- .str-chat__thread-start {
37
- color: var(--str-chat__thread-head-start-color);
38
- font: var(--str-chat__subtitle-text);
39
- }
40
- }
41
- }
@@ -1,143 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__message-reactions-container {
4
- display: flex;
5
-
6
- .str-chat__message-reactions {
7
- overflow-y: hidden;
8
- overflow-x: auto;
9
- scrollbar-width: none;
10
- list-style: none;
11
- display: flex;
12
- margin-block-start: var(--str-chat__spacing-0_5);
13
- margin-block-end: var(--str-chat__spacing-0_5);
14
- column-gap: var(--str-chat__spacing-0_5);
15
- width: fit-content;
16
- padding: 0;
17
- position: relative;
18
-
19
- .str-chat__message-reaction {
20
- display: flex;
21
- justify-content: center;
22
- align-items: center;
23
- padding: var(--str-chat__spacing-1_5);
24
- position: relative;
25
- cursor: pointer;
26
- flex-shrink: 0;
27
-
28
- button {
29
- @include utils.button-reset;
30
- @include utils.flex-row-center;
31
- padding: 0;
32
- }
33
-
34
- .str-chat__message-reaction-emoji {
35
- height: calc(var(--str-chat__spacing-px) * 13);
36
- display: flex !important; // Overriding emoji-mart styles
37
- align-items: center;
38
- justify-content: center;
39
- }
40
- }
41
-
42
- // Only in theme-v1
43
- .str-chat__reaction-list--counter,
44
- .str-chat__simple-reactions-list-item--last-number {
45
- display: none;
46
- }
47
- }
48
- }
49
-
50
- .str-chat__message--me {
51
- .str-chat__message-reactions-container {
52
- justify-content: flex-end;
53
- }
54
- }
55
-
56
- .str-chat__message--other {
57
- .str-chat__message-reactions-container {
58
- justify-content: flex-start;
59
- }
60
- }
61
-
62
- .str-chat__message-reactions-details-modal {
63
- .str-chat__modal--open {
64
- .str-chat__modal__inner {
65
- height: 40%;
66
- max-height: 80%;
67
- min-width: 90%;
68
- max-width: 90%;
69
- width: 90%;
70
- flex-basis: min-content;
71
-
72
- @media only screen and (min-device-width: 768px) {
73
- min-width: 40%;
74
- max-width: 60%;
75
- width: min-content;
76
- }
77
- }
78
- }
79
- }
80
-
81
- .str-chat__message-reactions-details {
82
- width: 100%;
83
- display: flex;
84
- flex-direction: column;
85
- gap: var(--str-chat__spacing-4);
86
- max-height: 100%;
87
- height: 100%;
88
- min-height: 0;
89
-
90
- .str-chat__message-reactions-details-reaction-types {
91
- display: flex;
92
- max-width: 100%;
93
- width: 100%;
94
- min-width: 0;
95
- overflow-x: auto;
96
- gap: var(--str-chat__spacing-4);
97
- display: flex;
98
- align-items: center;
99
- flex-shrink: 0;
100
-
101
- .str-chat__message-reactions-details-reaction-type {
102
- display: flex;
103
- align-items: center;
104
- padding: var(--str-chat__spacing-1) 0;
105
- flex-shrink: 0;
106
- cursor: pointer;
107
-
108
- .str-chat__message-reaction-emoji--with-fallback {
109
- width: 18px;
110
- line-height: 18px;
111
- }
112
- }
113
- }
114
-
115
- .str-chat__message-reaction-emoji-big {
116
- --str-chat__stream-emoji-size: 1em;
117
- align-self: center;
118
- font-size: 2rem;
119
- }
120
-
121
- .str-chat__message-reaction-emoji-big.str-chat__message-reaction-emoji--with-fallback {
122
- line-height: 2rem;
123
- }
124
-
125
- .str-chat__message-reactions-details-reacting-users {
126
- display: flex;
127
- flex-direction: column;
128
- gap: var(--str-chat__spacing-3);
129
- max-height: 100%;
130
- overflow-y: auto;
131
- min-height: 30vh;
132
-
133
- .str-chat__loading-indicator {
134
- margin: auto;
135
- }
136
-
137
- .str-chat__message-reactions-details-reacting-user {
138
- display: flex;
139
- align-items: center;
140
- gap: var(--str-chat__spacing-2);
141
- }
142
- }
143
- }
@@ -1,92 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__message-reactions-border-radius: none;
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__message-reactions-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__message-reactions-background-color: transparent;
12
-
13
- /* Top border of the component */
14
- --str-chat__message-reactions-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__message-reactions-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__message-reactions-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__message-reactions-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__message-reactions-box-shadow: none;
27
-
28
- /* The border radius used for the borders of a message reaction */
29
- --str-chat__message-reaction-border-radius: var(--str-chat__border-radius-xs);
30
-
31
- /* The text/icon color of a message reaction */
32
- --str-chat__message-reaction-color: var(--str-chat__text-color);
33
-
34
- /* The background color of a message reaction */
35
- --str-chat__message-reaction-background-color: var(--str-chat__tertiary-surface-color);
36
-
37
- /* Top border of a message reaction */
38
- --str-chat__message-reaction-border-block-start: none;
39
-
40
- /* Bottom border of a message reaction */
41
- --str-chat__message-reaction-border-block-end: none;
42
-
43
- /* Left (right in RTL layout) border of a message reaction */
44
- --str-chat__message-reaction-border-inline-start: none;
45
-
46
- /* Right (left in RTL layout) border of a message reaction */
47
- --str-chat__message-reaction-border-inline-end: none;
48
-
49
- /* Box shadow applied to a message reaction */
50
- --str-chat__message-reaction-box-shadow: none;
51
-
52
- /* The text/icon color of a message reaction, if the user reacted with that reaction */
53
- --str-chat__own-message-reaction-color: var(--str-chat__text-color);
54
-
55
- /* The background color of a message reaction, if the user reacted with that reaction */
56
- --str-chat__own-message-reaction-background-color: var(
57
- --str-chat__primary-surface-color-low-emphasis
58
- );
59
-
60
- --str-chat__messsage-reactions-details--selected-color: solid var(--str-chat__primary-color);
61
- }
62
-
63
- .str-chat__message-reactions-container {
64
- .str-chat__message-reactions {
65
- @include utils.component-layer-overrides('message-reactions');
66
-
67
- .str-chat__message-reaction {
68
- @include utils.component-layer-overrides('message-reaction');
69
- font: var(--str-chat__caption-text);
70
-
71
- &.str-chat__message-reaction-own {
72
- color: var(--str-chat__own-message-reaction-color);
73
- background-color: var(--str-chat__own-message-reaction-background-color);
74
- }
75
- }
76
- }
77
- }
78
-
79
- .str-chat__message-reactions-details {
80
- .str-chat__message-reactions-details-reaction-type {
81
- border-block-end: solid transparent;
82
- }
83
-
84
- .str-chat__message-reactions-details-reaction-type--selected {
85
- border-block-end: var(--str-chat__messsage-reactions-details--selected-color);
86
- }
87
-
88
-
89
- .str-chat__message-reactions-details-reacting-user {
90
- font: var(--str-chat__subtitle-text);
91
- }
92
- }
@@ -1,86 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__message-reaction-selector {
4
- display: flex;
5
- justify-content: flex-end;
6
- position: absolute;
7
- inset-block-end: 100%;
8
-
9
- &.str-chat-angular-v5__reaction-selector {
10
- margin: var(--str-chat__spacing-2);
11
- position: static;
12
- justify-content: flex-start;
13
-
14
- .str-chat__message-reactions-options {
15
- max-width: 100%;
16
- overflow-y: hidden;
17
- overflow-x: auto;
18
- scrollbar-width: none;
19
- padding: 0;
20
-
21
- .str-chat__message-reactions-option {
22
- flex-shrink: 0;
23
- }
24
- }
25
- }
26
-
27
- .str-chat__message-reactions-options {
28
- list-style: none;
29
- display: flex;
30
- margin-block-end: var(--str-chat__spacing-0_5);
31
- width: fit-content;
32
- column-gap: var(--str-chat__spacing-1);
33
- padding: var(--str-chat__spacing-2);
34
-
35
- .str-chat__message-reactions-option {
36
- @include utils.flex-row-center;
37
- cursor: pointer;
38
- width: calc(var(--str-chat__spacing-px) * 40);
39
- height: calc(var(--str-chat__spacing-px) * 40);
40
-
41
- .str-chat__message-reaction-emoji {
42
- height: calc(var(--str-chat__spacing-px) * 20);
43
- display: flex !important; // Overriding emoji-mart styles
44
- align-items: center;
45
- justify-content: center;
46
- }
47
- }
48
-
49
- // Only in theme-v1
50
- .str-chat__message-reactions-last-user {
51
- display: none;
52
- }
53
-
54
- .str-chat__message-reactions-list-item__count {
55
- display: none;
56
- }
57
- }
58
- }
59
-
60
- .str-chat__message--me {
61
- .str-chat__message-reaction-selector {
62
- inset-inline-end: 0;
63
- }
64
- }
65
-
66
- .str-chat__message--other {
67
- .str-chat__message-reaction-selector {
68
- inset-inline-start: 0;
69
- }
70
- }
71
-
72
- // the React SDK positions the reaction selector with popperjs
73
- .str-chat-react__message-reaction-selector {
74
- position: static;
75
- inset-block-end: unset;
76
-
77
- ul {
78
- margin: 0;
79
- }
80
- }
81
-
82
- .str-chat__message--me, .str-chat__message--other {
83
- .str-chat-react__message-reaction-selector {
84
- inset-inline-start: unset;
85
- }
86
- }
@@ -1,94 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__message-reactions-options-border-radius: var(--str-chat__border-radius-circle);
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__message-reactions-options-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__message-reactions-options-background-color: var(
12
- --str-chat__secondary-background-color
13
- );
14
-
15
- /* Top border of the component */
16
- --str-chat__message-reactions-options-border-block-start: none;
17
-
18
- /* Bottom border of the component */
19
- --str-chat__message-reactions-options-border-block-end: none;
20
-
21
- /* Left (right in RTL layout) border of the component */
22
- --str-chat__message-reactions-options-border-inline-start: none;
23
-
24
- /* Right (left in RTL layout) border of the component */
25
- --str-chat__message-reactions-options-border-inline-end: none;
26
-
27
- /* Box shadow applied to the component */
28
- --str-chat__message-reactions-options-box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
29
-
30
- /* The border radius used for the borders of the component */
31
- --str-chat__message-reactions-option-border-radius: var(--str-chat__border-radius-md);
32
-
33
- /* The text/icon color of the component */
34
- --str-chat__message-reactions-option-color: var(--str-chat__text-color);
35
-
36
- /* The background color of the component */
37
- --str-chat__message-reactions-option-background-color: var(
38
- --str-chat__secondary-background-color
39
- );
40
-
41
- /* The background color of the component when hovered */
42
- --str-chat__message-reactions-option-hover-background-color: var(
43
- --str-chat__primary-surface-color
44
- );
45
-
46
- /* The background color of the component when selected */
47
- --str-chat__message-reactions-option-selected-background-color: var(
48
- --str-chat__primary-color-low-emphasis
49
- );
50
-
51
- /* Top border of the component */
52
- --str-chat__message-reactions-option-border-block-start: none;
53
-
54
- /* Bottom border of the component */
55
- --str-chat__message-reactions-option-border-block-end: none;
56
-
57
- /* Left (right in RTL layout) border of the component */
58
- --str-chat__message-reactions-option-border-inline-start: none;
59
-
60
- /* Right (left in RTL layout) border of the component */
61
- --str-chat__message-reactions-option-border-inline-end: none;
62
-
63
- /* Box shadow applied to the component */
64
- --str-chat__message-reactions-option-box-shadow: none;
65
-
66
- .str-chat-angular-v5__reaction-selector {
67
- --str-chat__message-reactions-options-box-shadow: none;
68
- --str-chat__message-reactions-options-border-radius: 0;
69
- }
70
- }
71
-
72
- .str-chat__reaction-selector {
73
- .str-chat__message-reactions-options {
74
- @include utils.component-layer-overrides('message-reactions-options');
75
-
76
- .str-chat__message-reactions-option {
77
- @include utils.component-layer-overrides('message-reactions-option');
78
-
79
- &:hover {
80
- background-color: var(--str-chat__message-reactions-option-hover-background-color);
81
- }
82
-
83
- &.str-chat__message-reactions-option-selected {
84
- background-color: var(--str-chat__message-reactions-option-selected-background-color);
85
- }
86
- }
87
-
88
- @media (hover: none) {
89
- .str-chat__message-reactions-option:hover {
90
- background-color: transparent;
91
- }
92
- }
93
- }
94
- }
@@ -1,74 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__modal--open {
4
- @include utils.flex-col-center;
5
- position: fixed;
6
- top: 0;
7
- bottom: 0;
8
- left: 0;
9
- right: 0;
10
- width: 100%;
11
- height: 100%;
12
- z-index: 100;
13
-
14
- .str-chat__modal-header {
15
- display: flex;
16
- align-items: center;
17
- width: 100%;
18
- padding: 1.25rem 1rem;
19
-
20
- button.str-chat__modal-header__go-back-button,
21
- .str-chat__modal__close-button {
22
- padding: 1rem;
23
- background-size: 0.875rem;
24
- background-repeat: no-repeat;
25
- background-position: center;
26
- }
27
-
28
- button.str-chat__modal-header__go-back-button {
29
- background-image: var(--str-chat__arrow-left-icon);
30
- }
31
-
32
- .str-chat__modal-header__close-button {
33
- @include utils.button-reset;
34
- cursor: pointer;
35
- background-image: var(--str-chat__close-icon);
36
- background-repeat: no-repeat;
37
- height: 0.875rem;
38
- width: 0.875rem;
39
- }
40
-
41
- .str-chat__modal-header__title {
42
- flex: 1;
43
- }
44
- }
45
-
46
- button.str-chat__modal__close-button {
47
- @include utils.unset-button;
48
- margin: var(--str-chat__spacing-2);
49
- cursor: pointer;
50
- }
51
-
52
- .str-chat__modal__close-button {
53
- --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 28);
54
- @include utils.flex-row-center;
55
- padding: var(--str-chat__spacing-2);
56
- position: absolute;
57
- inset-block-start: 0;
58
- inset-inline-end: 0;
59
- cursor: pointer;
60
- }
61
-
62
- .str-chat__modal__inner {
63
- @include utils.flex-col-center;
64
- padding: var(--str-chat__spacing-8) var(--str-chat__spacing-4);
65
- width: 40%;
66
- max-height: 80%;
67
- min-width: 0;
68
- min-height: 0;
69
- }
70
- }
71
-
72
- .str-chat__modal--close {
73
- display: none;
74
- }