stream-chat-angular 2.20.2 → 3.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -12
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +780 -534
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/attachment-list/attachment-list.component.js +27 -15
- package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +28 -22
- package/esm2015/lib/attachment.service.js +11 -5
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +41 -0
- package/esm2015/lib/channel-header/channel-header.component.js +26 -12
- package/esm2015/lib/channel-list/channel-list.component.js +23 -13
- package/esm2015/lib/channel-preview/channel-preview.component.js +3 -3
- package/esm2015/lib/channel.service.js +28 -35
- package/esm2015/lib/chat-client.service.js +5 -4
- package/esm2015/lib/custom-templates.service.js +139 -0
- package/esm2015/lib/icon-placeholder/icon-placeholder.component.js +34 -0
- package/esm2015/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.js +42 -0
- package/esm2015/lib/message/message.component.js +74 -29
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +114 -99
- package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +13 -13
- package/esm2015/lib/message-input/message-input-config.service.js +1 -1
- package/esm2015/lib/message-input/message-input.component.js +56 -45
- package/esm2015/lib/message-input/textarea.directive.js +2 -18
- package/esm2015/lib/message-input/textarea.interface.js +1 -1
- package/esm2015/lib/message-list/message-list.component.js +32 -93
- package/esm2015/lib/message-preview.js +4 -17
- package/esm2015/lib/message-reactions/message-reactions.component.js +3 -3
- package/esm2015/lib/modal/modal.component.js +9 -6
- package/esm2015/lib/notification/notification.component.js +5 -2
- package/esm2015/lib/notification-list/notification-list.component.js +12 -10
- package/esm2015/lib/read-by.js +1 -1
- package/esm2015/lib/stream-avatar.module.js +5 -4
- package/esm2015/lib/stream-chat.module.js +13 -3
- package/esm2015/lib/thread/thread.component.js +19 -11
- package/esm2015/lib/types.js +1 -1
- package/esm2015/public-api.js +5 -1
- package/fesm2015/stream-chat-angular.js +723 -449
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +12 -8
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +17 -7
- package/lib/attachment.service.d.ts +1 -1
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +25 -0
- package/lib/channel-header/channel-header.component.d.ts +15 -12
- package/lib/channel-list/channel-list.component.d.ts +14 -11
- package/lib/channel-preview/channel-preview.component.d.ts +3 -2
- package/lib/channel.service.d.ts +32 -31
- package/lib/chat-client.service.d.ts +12 -11
- package/lib/custom-templates.service.d.ts +132 -0
- package/lib/icon-placeholder/icon-placeholder.component.d.ts +22 -0
- package/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +21 -0
- package/lib/message/message.component.d.ts +42 -30
- package/lib/message-actions-box/message-actions-box.component.d.ts +22 -26
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +7 -11
- package/lib/message-input/message-input-config.service.d.ts +0 -19
- package/lib/message-input/message-input.component.d.ts +40 -26
- package/lib/message-input/textarea.directive.d.ts +3 -6
- package/lib/message-input/textarea.interface.d.ts +1 -4
- package/lib/message-list/group-styles.d.ts +1 -1
- package/lib/message-list/message-list.component.d.ts +10 -34
- package/lib/message-preview.d.ts +2 -1
- package/lib/message-reactions/message-reactions.component.d.ts +4 -5
- package/lib/modal/modal.component.d.ts +7 -3
- package/lib/notification/notification.component.d.ts +6 -1
- package/lib/notification-list/notification-list.component.d.ts +4 -2
- package/lib/read-by.d.ts +2 -1
- package/lib/stream-avatar.module.d.ts +4 -3
- package/lib/stream-chat.module.d.ts +6 -4
- package/lib/thread/thread.component.d.ts +6 -3
- package/lib/types.d.ts +115 -9
- package/package.json +2 -3
- package/public-api.d.ts +4 -0
- package/src/assets/styles/assets/EmojiOneColor.woff2 +0 -0
- package/src/assets/styles/assets/NotoColorEmoji-flags.woff2 +0 -0
- package/src/assets/styles/assets/Poweredby_100px-White_VertText.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@1x.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@2x.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@3x.png +0 -0
- package/src/assets/styles/css/index.css +1 -0
- package/src/assets/styles/css/index.css.map +1 -0
- package/src/assets/styles/scss/ActionsBox.scss +56 -0
- package/src/assets/styles/scss/Attachment.scss +227 -0
- package/src/assets/styles/scss/AttachmentActions.scss +44 -0
- package/src/assets/styles/scss/Audio.scss +112 -0
- package/src/assets/styles/scss/Avatar.scss +79 -0
- package/src/assets/styles/scss/Card.scss +100 -0
- package/src/assets/styles/scss/ChannelHeader.scss +284 -0
- package/src/assets/styles/scss/ChannelList.scss +117 -0
- package/src/assets/styles/scss/ChannelListMessenger.scss +9 -0
- package/src/assets/styles/scss/ChannelPreview.scss +108 -0
- package/src/assets/styles/scss/ChannelSearch.scss +111 -0
- package/src/assets/styles/scss/ChatDown.scss +15 -0
- package/src/assets/styles/scss/DateSeparator.scss +51 -0
- package/src/assets/styles/scss/EditMessageForm.scss +112 -0
- package/src/assets/styles/scss/EventComponent.scss +48 -0
- package/src/assets/styles/scss/Gallery.scss +135 -0
- package/src/assets/styles/scss/InfiniteScrollPaginator.scss +6 -0
- package/src/assets/styles/scss/LoadMoreButton.scss +44 -0
- package/src/assets/styles/scss/LoadingChannels.scss +70 -0
- package/src/assets/styles/scss/LoadingIndicator.scss +38 -0
- package/src/assets/styles/scss/Message.scss +1261 -0
- package/src/assets/styles/scss/MessageActions.scss +112 -0
- package/src/assets/styles/scss/MessageCommerce.scss +564 -0
- package/src/assets/styles/scss/MessageInput.scss +385 -0
- package/src/assets/styles/scss/MessageInputFlat.scss +305 -0
- package/src/assets/styles/scss/MessageList.scss +203 -0
- package/src/assets/styles/scss/MessageLivestream.scss +325 -0
- package/src/assets/styles/scss/MessageNotification.scss +49 -0
- package/src/assets/styles/scss/MessageRepliesCountButton.scss +33 -0
- package/src/assets/styles/scss/MessageTeam.scss +617 -0
- package/src/assets/styles/scss/Modal.scss +77 -0
- package/src/assets/styles/scss/ReactionList.scss +183 -0
- package/src/assets/styles/scss/ReactionSelector.scss +212 -0
- package/src/assets/styles/scss/SendButton.scss +14 -0
- package/src/assets/styles/scss/SimpleReactionsList.scss +76 -0
- package/src/assets/styles/scss/SmallMessageInput.scss +172 -0
- package/src/assets/styles/scss/Thread.scss +306 -0
- package/src/assets/styles/scss/Tooltip.scss +38 -0
- package/src/assets/styles/scss/TypingIndicator.scss +75 -0
- package/src/assets/styles/scss/VirtualMessage.scss +291 -0
- package/src/assets/styles/scss/_base.scss +206 -0
- package/src/assets/styles/scss/_variables.scss +158 -0
- package/src/assets/styles/scss/index.scss +50 -0
- package/src/assets/styles/scss/vendor/emoji-mart.scss +495 -0
- package/src/assets/styles/scss/vendor/mml-react.scss +1749 -0
- package/src/assets/styles/scss/vendor/react-file-utils.scss +378 -0
- package/src/assets/styles/scss/vendor/react-image-gallery.scss +224 -0
- package/src/assets/version.ts +1 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
%scrollable {
|
|
2
|
+
overflow-x: hidden;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.str-chat-angular__message-list-host {
|
|
7
|
+
@extend %scrollable;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.str-chat__list {
|
|
11
|
+
@extend %scrollable;
|
|
12
|
+
flex: 1;
|
|
13
|
+
-webkit-overflow-scrolling: touch; /* enable smooth scrolling on ios */
|
|
14
|
+
padding: 0;
|
|
15
|
+
|
|
16
|
+
.str-chat__reverse-infinite-scroll {
|
|
17
|
+
padding-top: 72px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-wrapper {
|
|
21
|
+
flex: 1;
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--thread {
|
|
28
|
+
padding: var(--sm-p) 0 0 0;
|
|
29
|
+
overflow: visible;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__center {
|
|
33
|
+
width: 100%;
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.str-chat__ul {
|
|
40
|
+
display: block;
|
|
41
|
+
list-style-type: none;
|
|
42
|
+
padding: 0;
|
|
43
|
+
margin: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.str-chat__custom-notification {
|
|
47
|
+
border-radius: var(--border-radius-sm);
|
|
48
|
+
font-size: var(--sm-font);
|
|
49
|
+
padding: var(--xs-p);
|
|
50
|
+
font-family: var(--second-font);
|
|
51
|
+
text-align: center;
|
|
52
|
+
margin-top: var(--xs-m);
|
|
53
|
+
|
|
54
|
+
&.notification-success {
|
|
55
|
+
background: var(--faded-green);
|
|
56
|
+
border: 1px solid var(--green);
|
|
57
|
+
color: var(--green);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.notification-error {
|
|
61
|
+
background: var(--faded-red);
|
|
62
|
+
border: 1px solid var(--red);
|
|
63
|
+
color: var(--red);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.notification-info {
|
|
67
|
+
background: var(--faded-blue);
|
|
68
|
+
border: 1px solid var(--blue);
|
|
69
|
+
color: var(--blue);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.str-chat__connection-issue {
|
|
74
|
+
background: var(--faded-red);
|
|
75
|
+
border: 1px solid var(--red);
|
|
76
|
+
color: var(--red);
|
|
77
|
+
border-radius: var(--border-radius-sm);
|
|
78
|
+
font-size: var(--sm-font);
|
|
79
|
+
padding: var(--xs-p);
|
|
80
|
+
font-family: var(--second-font);
|
|
81
|
+
text-align: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.str-chat__list-notifications {
|
|
85
|
+
padding: 0 var(--xl-p);
|
|
86
|
+
display: flex;
|
|
87
|
+
position: relative;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.messaging {
|
|
93
|
+
&.str-chat {
|
|
94
|
+
.str-chat {
|
|
95
|
+
&__list {
|
|
96
|
+
padding: 0 var(--xl-p) 0;
|
|
97
|
+
background: var(--white);
|
|
98
|
+
|
|
99
|
+
.str-chat__reverse-infinite-scroll {
|
|
100
|
+
padding-top: 56px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&-notifications {
|
|
104
|
+
background: var(--white);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@media screen and (max-width: 960px) {
|
|
109
|
+
.str-chat {
|
|
110
|
+
&__list {
|
|
111
|
+
padding: 0 var(--xs-p) 0;
|
|
112
|
+
|
|
113
|
+
.str-chat__reverse-infinite-scroll {
|
|
114
|
+
padding-top: 56px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-notifications {
|
|
118
|
+
padding: 0 var(--xs-p);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.dark {
|
|
125
|
+
.str-chat__list {
|
|
126
|
+
background: var(--white5);
|
|
127
|
+
|
|
128
|
+
&-notifications {
|
|
129
|
+
background: var(--white5);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.livestream {
|
|
137
|
+
&.str-chat {
|
|
138
|
+
.str-chat {
|
|
139
|
+
&__list {
|
|
140
|
+
padding: 0 var(--xs-p);
|
|
141
|
+
|
|
142
|
+
.str-chat__reverse-infinite-scroll {
|
|
143
|
+
padding-top: 56px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.commerce {
|
|
151
|
+
&.str-chat {
|
|
152
|
+
.str-chat {
|
|
153
|
+
&__list {
|
|
154
|
+
padding: 0 var(--md-p) 0;
|
|
155
|
+
|
|
156
|
+
.str-chat__reverse-infinite-scroll {
|
|
157
|
+
padding-top: 72px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-notifications {
|
|
161
|
+
padding-left: var(--md-p);
|
|
162
|
+
padding-right: var(--md-p);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.str-chat__virtual-list {
|
|
170
|
+
position: relative;
|
|
171
|
+
flex: 1;
|
|
172
|
+
overflow-x: hidden;
|
|
173
|
+
overflow-y: auto;
|
|
174
|
+
-webkit-overflow-scrolling: touch; /* enable smooth scrolling on ios */
|
|
175
|
+
background: var(--white);
|
|
176
|
+
margin: 0;
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: 100%;
|
|
179
|
+
|
|
180
|
+
// conditionally showing the header displaces items when prepending.
|
|
181
|
+
// a simple workaround is to make the loading indicator an overlay.
|
|
182
|
+
&__loading {
|
|
183
|
+
display: flex;
|
|
184
|
+
padding-top: var(--xs-p);
|
|
185
|
+
justify-content: center;
|
|
186
|
+
width: 100%;
|
|
187
|
+
position: absolute;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
p {
|
|
191
|
+
margin: 0 !important; // always use padding, margin mess up the height calculations
|
|
192
|
+
|
|
193
|
+
a {
|
|
194
|
+
white-space: pre-line;
|
|
195
|
+
overflow: hidden;
|
|
196
|
+
word-wrap: break-word;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.dark .str-chat__virtual-list {
|
|
202
|
+
background: var(--white5);
|
|
203
|
+
}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
.str-chat__message-livestream {
|
|
2
|
+
font-family: var(--second-font);
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin: 0 0;
|
|
6
|
+
padding: 10px 10px;
|
|
7
|
+
border: 1px solid transparent;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&-pin-indicator {
|
|
11
|
+
padding-left: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-left {
|
|
15
|
+
width: 30px;
|
|
16
|
+
.str-chat__avatar {
|
|
17
|
+
margin-right: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-right {
|
|
22
|
+
flex: 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-content {
|
|
26
|
+
position: relative;
|
|
27
|
+
padding: 5px 10px;
|
|
28
|
+
border: 1px solid transparent;
|
|
29
|
+
|
|
30
|
+
> * {
|
|
31
|
+
font-size: var(--sm-font);
|
|
32
|
+
line-height: 20px;
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
p {
|
|
37
|
+
margin: 0;
|
|
38
|
+
white-space: pre-line;
|
|
39
|
+
&:not(:first-of-type) {
|
|
40
|
+
margin: 16px 0 0;
|
|
41
|
+
}
|
|
42
|
+
/* These are technically the same, but use both */
|
|
43
|
+
overflow-wrap: break-word;
|
|
44
|
+
word-wrap: break-word;
|
|
45
|
+
|
|
46
|
+
-ms-word-break: break-all;
|
|
47
|
+
|
|
48
|
+
/* Instead use this non-standard one: */
|
|
49
|
+
word-break: break-word;
|
|
50
|
+
|
|
51
|
+
/* Adds a hyphen where the word breaks, if supported (No Blink) */
|
|
52
|
+
-ms-hyphens: auto;
|
|
53
|
+
-moz-hyphens: auto;
|
|
54
|
+
-webkit-hyphens: auto;
|
|
55
|
+
hyphens: auto;
|
|
56
|
+
|
|
57
|
+
code {
|
|
58
|
+
background-color: var(--white20);
|
|
59
|
+
border: 1px solid var(--primary-color-faded);
|
|
60
|
+
border-radius: 3px;
|
|
61
|
+
padding: 2px 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
a {
|
|
65
|
+
color: var(--primary-color);
|
|
66
|
+
font-weight: var(--font-weight-bold);
|
|
67
|
+
text-decoration: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
pre,
|
|
72
|
+
code {
|
|
73
|
+
font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console',
|
|
74
|
+
'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
|
|
75
|
+
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
|
76
|
+
line-height: inherit;
|
|
77
|
+
padding: 10px;
|
|
78
|
+
font-size: var(--sm-font);
|
|
79
|
+
font-weight: var(--font-weight-bold);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
pre {
|
|
83
|
+
margin: 0 5px 0 0;
|
|
84
|
+
border-radius: 4px;
|
|
85
|
+
background-color: var(--primary-color-faded);
|
|
86
|
+
border: 1px solid var(--primary-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
code {
|
|
90
|
+
width: inherit;
|
|
91
|
+
word-break: break-all;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.livestream-quoted-message {
|
|
95
|
+
background: var(--light-grey);
|
|
96
|
+
border: 1px solid var(--black10);
|
|
97
|
+
padding: 10px;
|
|
98
|
+
border-radius: 5px;
|
|
99
|
+
margin-bottom: 5px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
&:hover {
|
|
103
|
+
.str-chat__message-livestream-actions {
|
|
104
|
+
display: flex;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-actions {
|
|
109
|
+
background: var(--white60);
|
|
110
|
+
border: 1px solid var(--black20);
|
|
111
|
+
box-shadow: 0 2px 1px 0 var(--black5);
|
|
112
|
+
|
|
113
|
+
width: 141px;
|
|
114
|
+
height: 24px;
|
|
115
|
+
padding: 0 4px;
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: -12px;
|
|
118
|
+
right: 0;
|
|
119
|
+
border-radius: 24px;
|
|
120
|
+
display: none; /* FFS display: none */
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
|
|
124
|
+
> span {
|
|
125
|
+
position: relative;
|
|
126
|
+
flex: 1;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
align-items: center;
|
|
130
|
+
height: 100%;
|
|
131
|
+
text-align: center;
|
|
132
|
+
|
|
133
|
+
&:not(:last-of-type) {
|
|
134
|
+
border-right: 1px solid var(--light-grey);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
> span {
|
|
138
|
+
position: relative;
|
|
139
|
+
flex: 1;
|
|
140
|
+
display: flex;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
align-items: center;
|
|
143
|
+
height: 100%;
|
|
144
|
+
text-align: center;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
|
|
149
|
+
svg {
|
|
150
|
+
fill: var(--black);
|
|
151
|
+
opacity: 0.5;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:hover svg {
|
|
155
|
+
opacity: 1;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.str-chat__message-actions-box {
|
|
160
|
+
bottom: initial;
|
|
161
|
+
left: initial;
|
|
162
|
+
visibility: hidden;
|
|
163
|
+
right: 100%;
|
|
164
|
+
top: 50%;
|
|
165
|
+
transform: translateY(-50%);
|
|
166
|
+
border-radius: 7px;
|
|
167
|
+
|
|
168
|
+
&--open {
|
|
169
|
+
visibility: visible;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&-time {
|
|
175
|
+
font-size: var(--xs-font);
|
|
176
|
+
line-height: 20px;
|
|
177
|
+
color: var(--black50);
|
|
178
|
+
flex: 2;
|
|
179
|
+
padding: 0 4px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&-text {
|
|
183
|
+
&--is-emoji {
|
|
184
|
+
font-size: var(--xxxl-font);
|
|
185
|
+
line-height: 42px;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&-author {
|
|
190
|
+
margin-bottom: 8px;
|
|
191
|
+
text-transform: capitalize;
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: flex-start;
|
|
195
|
+
strong {
|
|
196
|
+
margin-right: 8px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:hover {
|
|
201
|
+
background: var(--white5);
|
|
202
|
+
border: 1px solid var(--black5);
|
|
203
|
+
box-shadow: 0 0 6px 0 var(--black5);
|
|
204
|
+
border-radius: 6px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.str-chat__message-attachment--img {
|
|
208
|
+
border-radius: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.str-chat__message-attachment-card {
|
|
212
|
+
margin: 0;
|
|
213
|
+
border-radius: 0;
|
|
214
|
+
background: var(--white20);
|
|
215
|
+
border: 1px solid var(--black10);
|
|
216
|
+
|
|
217
|
+
&--content {
|
|
218
|
+
background: var(--white20);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&--text {
|
|
222
|
+
display: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&--url {
|
|
226
|
+
text-transform: lowercase;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&__thread-banner {
|
|
231
|
+
text-align: center;
|
|
232
|
+
font-size: var(--sm-font);
|
|
233
|
+
padding: 8px;
|
|
234
|
+
margin: 8px 10px 0 10px;
|
|
235
|
+
background: var(--primary-color);
|
|
236
|
+
border-radius: 2px;
|
|
237
|
+
color: var(--dark-grey);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&--error,
|
|
241
|
+
&--failed {
|
|
242
|
+
.str-chat__message-livestream {
|
|
243
|
+
&-content {
|
|
244
|
+
p {
|
|
245
|
+
svg {
|
|
246
|
+
position: relative;
|
|
247
|
+
top: 2px;
|
|
248
|
+
margin-right: 4px;
|
|
249
|
+
}
|
|
250
|
+
color: var(--red);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
&--failed {
|
|
256
|
+
.str-chat__message-livestream {
|
|
257
|
+
&-content {
|
|
258
|
+
p {
|
|
259
|
+
cursor: pointer;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
&--initial-message {
|
|
265
|
+
margin: 20px 10px 0;
|
|
266
|
+
width: auto;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.str-chat__list--thread {
|
|
271
|
+
.str-chat__message-livestream__actions {
|
|
272
|
+
min-width: 30px;
|
|
273
|
+
}
|
|
274
|
+
.str-chat__message-livestream {
|
|
275
|
+
&-actions {
|
|
276
|
+
width: 110px;
|
|
277
|
+
min-width: unset;
|
|
278
|
+
|
|
279
|
+
.str-chat__message-actions-box {
|
|
280
|
+
top: initial;
|
|
281
|
+
bottom: initial;
|
|
282
|
+
bottom: -10px;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.livestream.dark.str-chat {
|
|
289
|
+
.str-chat__message-livestream {
|
|
290
|
+
color: var(--light-grey);
|
|
291
|
+
|
|
292
|
+
&:hover {
|
|
293
|
+
background: var(--white5);
|
|
294
|
+
border: 1px solid var(--black5);
|
|
295
|
+
box-shadow: 0 0 6px 0 var(--black5);
|
|
296
|
+
border-radius: 6px;
|
|
297
|
+
}
|
|
298
|
+
.str-chat__message-attachment-card {
|
|
299
|
+
background: var(--black10);
|
|
300
|
+
border: 1px solid var(--white10);
|
|
301
|
+
&--content {
|
|
302
|
+
background: var(--black10);
|
|
303
|
+
}
|
|
304
|
+
&--url {
|
|
305
|
+
color: var(--white80);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.str-chat__message-livestream-actions {
|
|
311
|
+
background: var(--dark-grey);
|
|
312
|
+
border: 1px solid var(--white5);
|
|
313
|
+
box-shadow: 0 2px 1px 0 var(--black5);
|
|
314
|
+
> span:not(:last-of-type) {
|
|
315
|
+
border-color: var(--white5);
|
|
316
|
+
}
|
|
317
|
+
svg {
|
|
318
|
+
fill: var(--white);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
.str-chat__message-livestream-time {
|
|
322
|
+
color: var(--white);
|
|
323
|
+
opacity: 0.5;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.str-chat__message-notification {
|
|
2
|
+
display: block;
|
|
3
|
+
position: absolute;
|
|
4
|
+
align-self: center;
|
|
5
|
+
background: var(--primary-color);
|
|
6
|
+
border: none;
|
|
7
|
+
color: var(--white);
|
|
8
|
+
border-radius: 50px;
|
|
9
|
+
padding: var(--xxs-p) var(--xs-p);
|
|
10
|
+
font-size: var(--sm-font);
|
|
11
|
+
bottom: 10px;
|
|
12
|
+
z-index: 101;
|
|
13
|
+
|
|
14
|
+
&-right {
|
|
15
|
+
align-self: flex-end;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-scroll-down {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
display: block;
|
|
21
|
+
width: 42px;
|
|
22
|
+
height: 42px;
|
|
23
|
+
background-size: 14px auto;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
background: var(--white);
|
|
26
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: calc(50% - 8px);
|
|
31
|
+
left: calc(50% - 6px);
|
|
32
|
+
transform: rotate(-45deg);
|
|
33
|
+
display: block;
|
|
34
|
+
width: 12px;
|
|
35
|
+
height: 12px;
|
|
36
|
+
content: '';
|
|
37
|
+
border: 2px solid var(--primary-color);
|
|
38
|
+
border-width: 0 0 2px 2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-unread-count {
|
|
42
|
+
font-size: 10px;
|
|
43
|
+
position: relative;
|
|
44
|
+
left: 50%;
|
|
45
|
+
transform: translateX(-50%);
|
|
46
|
+
bottom: 18px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.str-chat__message-replies-count-button {
|
|
2
|
+
display: block;
|
|
3
|
+
border: none;
|
|
4
|
+
background: none;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin-top: var(--xs-m);
|
|
7
|
+
font-size: var(--sm-font);
|
|
8
|
+
line-height: 15px;
|
|
9
|
+
font-weight: var(--font-weight-bold);
|
|
10
|
+
color: var(--primary-color);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
|
|
13
|
+
svg {
|
|
14
|
+
fill: var(--grey-whisper);
|
|
15
|
+
margin-right: var(--xxs-m);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dark.str-chat {
|
|
20
|
+
.str-chat__message-replies-count-button {
|
|
21
|
+
svg {
|
|
22
|
+
fill: var(--white10);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.team {
|
|
27
|
+
.str-chat__message-replies-count-button {
|
|
28
|
+
svg {
|
|
29
|
+
fill: var(--black40);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|