stream-chat-react 10.7.0 → 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.
@@ -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
- &:hover {
255
- .str-chat__message-options {
256
- display: flex;
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 {
@@ -56,3 +56,11 @@
56
56
  height: auto;
57
57
  }
58
58
  }
59
+
60
+ .str-chat__main-panel {
61
+ .str-chat__ul {
62
+ .str-chat__li:first-of-type {
63
+ padding-top: 4.5rem;
64
+ }
65
+ }
66
+ }
@@ -4,6 +4,10 @@
4
4
  position: static !important;
5
5
  }
6
6
 
7
+ .str-chat__virtual-list .str-chat__typing-indicator {
8
+ position: static;
9
+ }
10
+
7
11
  .str-chat__typing-indicator {
8
12
  padding: var(--str-chat__spacing-1_5);
9
13
  display: flex;
@@ -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
  }
@@ -1,4 +1,5 @@
1
1
  @use 'base';
2
+ @use 'emoji-replacement';
2
3
  @use 'global-layout-variables';
3
4
 
4
5
  @use 'Avatar/Avatar-layout';
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "10.7.0";
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.0';
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.0",
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/",
@@ -28,9 +28,9 @@
28
28
  "getstream.io"
29
29
  ],
30
30
  "dependencies": {
31
- "@braintree/sanitize-url": "6.0.0",
31
+ "@braintree/sanitize-url": "^6.0.2",
32
32
  "@popperjs/core": "^2.11.5",
33
- "@stream-io/stream-chat-css": "^3.7.2",
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",
@@ -147,7 +147,7 @@
147
147
  "eslint-plugin-react-hooks": "^4.2.0",
148
148
  "eslint-plugin-sort-destructure-keys": "1.3.5",
149
149
  "eslint-plugin-sort-keys-fix": "^1.1.2",
150
- "eslint-plugin-typescript-sort-keys": "1.5.0",
150
+ "eslint-plugin-typescript-sort-keys": "^2.1.0",
151
151
  "file-loader": "^6.2.0",
152
152
  "husky": "^4.3.0",
153
153
  "i18next-parser": "^6.0.0",
@@ -169,8 +169,7 @@
169
169
  "rollup-plugin-url": "^3.0.1",
170
170
  "rollup-plugin-visualizer": "^4.2.0",
171
171
  "semantic-release": "^19.0.5",
172
- "semantic-release-cli": "^5.4.4",
173
- "stream-chat": "^8.2.1",
172
+ "stream-chat": "^8.4.1",
174
173
  "style-loader": "^2.0.0",
175
174
  "ts-jest": "^26.5.1",
176
175
  "tslib": "2.3.0",