stream-chat-react 10.7.1 → 10.7.2
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/dist/browser.full-bundle.js +2 -2
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Channel/Channel.js +1 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.css.map +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/css/v2/index.layout.css.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/v2/Avatar/Avatar-layout.scss +10 -0
- package/dist/scss/v2/Avatar/Avatar-theme.scss +11 -0
- package/dist/scss/v2/Message/Message-layout.scss +40 -16
- package/dist/scss/v2/MessageList/MessageList-layout.scss +8 -0
- package/dist/scss/v2/TypingIndicator/TypingIndicator-layout.scss +4 -0
- package/dist/scss/v2/_emoji-replacement.scss +40 -0
- package/dist/scss/v2/_global-theme-variables.scss +4 -0
- package/dist/scss/v2/index.layout.scss +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
.str-chat__avatar {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
2
4
|
.str-chat__avatar-fallback {
|
|
3
5
|
text-align: center;
|
|
4
6
|
height: inherit;
|
|
5
7
|
width: inherit;
|
|
6
8
|
}
|
|
9
|
+
|
|
10
|
+
.str-chat__avatar--online-indicator {
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: calc(var(--str-chat__spacing-px) * 12);
|
|
13
|
+
height: calc(var(--str-chat__spacing-px) * 12);
|
|
14
|
+
inset-inline-end: 3%;
|
|
15
|
+
inset-block-start: 2%;
|
|
16
|
+
}
|
|
7
17
|
}
|
|
8
18
|
|
|
9
19
|
.str-chat__loading-channels-avatar {
|
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
/* Box shadow applied to the component */
|
|
26
26
|
--str-chat__avatar-box-shadow: none;
|
|
27
|
+
|
|
28
|
+
/* The color of the online indicator (only available in Angular SDK) */
|
|
29
|
+
--str-chat__avatar-online-indicator-color: var(--str-chat__info-color);
|
|
30
|
+
|
|
31
|
+
/* The border radius of the online indicator (only available in Angular SDK) */
|
|
32
|
+
--str-chat__avatar-online-indicator-border-radius: var(--str-chat__border-radius-circle);
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
.str-chat__avatar {
|
|
@@ -35,6 +41,11 @@
|
|
|
35
41
|
@include utils.component-layer-overrides('avatar');
|
|
36
42
|
text-transform: uppercase;
|
|
37
43
|
}
|
|
44
|
+
|
|
45
|
+
.str-chat__avatar--online-indicator {
|
|
46
|
+
background-color: var(--str-chat__avatar-online-indicator-color);
|
|
47
|
+
border-radius: var(--str-chat__avatar-online-indicator-border-radius);
|
|
48
|
+
}
|
|
38
49
|
}
|
|
39
50
|
|
|
40
51
|
.str-chat__loading-channels-avatar {
|
|
@@ -250,12 +250,48 @@
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
.str-chat__li
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
// Message options display - default mode: they appear when .str-chat__li is hovered
|
|
254
|
+
.str-chat__ul:not(.str-chat__message-options-in-bubble),
|
|
255
|
+
.str-chat__virtual-list:not(.str-chat__message-options-in-bubble) {
|
|
256
|
+
.str-chat__li {
|
|
257
|
+
&:hover {
|
|
258
|
+
.str-chat__message-options {
|
|
259
|
+
display: flex;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.str-chat__li:hover {
|
|
265
|
+
.str-chat__message--other .str-chat__message-inner {
|
|
266
|
+
margin-inline-end: 0;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.str-chat__li:hover {
|
|
271
|
+
.str-chat__message--me .str-chat__message-inner {
|
|
272
|
+
margin-inline-start: 0;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// Message options display - second mode: they appear when .str-chat__message-inner is hovered
|
|
278
|
+
.str-chat__ul.str-chat__message-options-in-bubble,
|
|
279
|
+
.str-chat__virtual-list.str-chat__message-options-in-bubble {
|
|
280
|
+
.str-chat__message-inner {
|
|
281
|
+
&:hover {
|
|
282
|
+
.str-chat__message-options {
|
|
283
|
+
display: flex;
|
|
284
|
+
}
|
|
257
285
|
}
|
|
258
286
|
}
|
|
287
|
+
|
|
288
|
+
.str-chat__message--other .str-chat__message-inner:hover {
|
|
289
|
+
margin-inline-end: 0;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.str-chat__message--me .str-chat__message-inner:hover {
|
|
293
|
+
margin-inline-start: 0;
|
|
294
|
+
}
|
|
259
295
|
}
|
|
260
296
|
|
|
261
297
|
.str-chat__message-inner {
|
|
@@ -272,22 +308,10 @@
|
|
|
272
308
|
margin-inline-end: calc(var(--str-chat__message-options-button-size) * 3);
|
|
273
309
|
}
|
|
274
310
|
|
|
275
|
-
.str-chat__li:hover {
|
|
276
|
-
.str-chat__message--other .str-chat__message-inner {
|
|
277
|
-
margin-inline-end: 0;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
311
|
.str-chat__message--me .str-chat__message-inner {
|
|
282
312
|
margin-inline-start: calc(var(--str-chat__message-options-button-size) * 3);
|
|
283
313
|
}
|
|
284
314
|
|
|
285
|
-
.str-chat__li:hover {
|
|
286
|
-
.str-chat__message--me .str-chat__message-inner {
|
|
287
|
-
margin-inline-start: 0;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
315
|
.str-chat__li--middle,
|
|
292
316
|
.str-chat__li--top {
|
|
293
317
|
.str-chat__message {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* declare a font faces for our Emoji Replacement font, based on the default font used by Stream Chat React */
|
|
2
|
+
$assetsPath: '../../assets';
|
|
3
|
+
$emoji-flag-unicode-range: U+1F1E6-1F1FF;
|
|
4
|
+
|
|
5
|
+
/* png based woff for most browsers */
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: ReplaceFlagEmojiPNG;
|
|
8
|
+
src: url('#{$assetsPath}/NotoColorEmoji-flags.woff2') format('woff2');
|
|
9
|
+
/* using the unicode-range attribute to limit the reach of the Flag Emoji web font to only flags */
|
|
10
|
+
unicode-range: $emoji-flag-unicode-range;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* svg based for firefox */
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: ReplaceFlagEmojiSVG;
|
|
16
|
+
src: url('#{$assetsPath}/EmojiOneColor.woff2') format('woff2');
|
|
17
|
+
unicode-range: $emoji-flag-unicode-range;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.str-chat--windows-flags {
|
|
21
|
+
.str-chat__textarea__textarea,
|
|
22
|
+
.str-chat__message-text-inner *,
|
|
23
|
+
.str-chat__emoji-item--entity,
|
|
24
|
+
.emoji-mart-emoji-native * {
|
|
25
|
+
font-family: ReplaceFlagEmojiPNG, var(--str-chat__font-family), sans-serif;
|
|
26
|
+
font-display: swap;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@-moz-document url-prefix('') {
|
|
31
|
+
.str-chat--windows-flags {
|
|
32
|
+
.str-chat__textarea__textarea,
|
|
33
|
+
.str-chat__message-text-inner *,
|
|
34
|
+
.str-chat__emoji-item--entity,
|
|
35
|
+
.emoji-mart-emoji-native * {
|
|
36
|
+
font-family: ReplaceFlagEmojiSVG, var(--str-chat__font-family), sans-serif;
|
|
37
|
+
font-display: swap;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -134,6 +134,9 @@
|
|
|
134
134
|
|
|
135
135
|
/* If a component has a box shadow applied to it, this will be the color used for the shadow */
|
|
136
136
|
--str-chat__box-shadow-color: rgba(0, 0, 0, 0.18);
|
|
137
|
+
|
|
138
|
+
/* Used for online indicator and success messages */
|
|
139
|
+
--str-chat__info-color: var(--str-chat__green500);
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
.str-chat__theme-dark {
|
|
@@ -163,4 +166,5 @@
|
|
|
163
166
|
--str-chat__opaque-surface-background-color: rgba(250, 250, 250, 0.85);
|
|
164
167
|
--str-chat__opaque-surface-text-color: var(--str-chat__grey900);
|
|
165
168
|
--str-chat__box-shadow-color: rgba(0, 0, 0, 0.8);
|
|
169
|
+
--str-chat__info-color: var(--str-chat__green500);
|
|
166
170
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "10.7.
|
|
1
|
+
export declare const version = "10.7.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '10.7.
|
|
1
|
+
export var version = '10.7.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "10.7.
|
|
3
|
+
"version": "10.7.2",
|
|
4
4
|
"description": "React components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@braintree/sanitize-url": "^6.0.2",
|
|
32
32
|
"@popperjs/core": "^2.11.5",
|
|
33
|
-
"@stream-io/stream-chat-css": "^3.
|
|
33
|
+
"@stream-io/stream-chat-css": "^3.9.1",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"dayjs": "^1.10.4",
|
|
36
36
|
"emoji-mart": "3.0.1",
|