stream-chat-react 11.13.1 → 11.14.0
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/{Window-44a85f63.js → Window-64e7e4c0.js} +174 -158
- package/dist/browser.full-bundle.js +171 -271
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +4 -4
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/components/FileSizeIndicator.js +2 -2
- package/dist/components/Emojis/index.cjs.js +1 -2
- package/dist/components/Message/MessageSimple.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.js +3 -2
- package/dist/components/MessageInput/hooks/utils.d.ts +1 -0
- package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/utils.js +24 -7
- package/dist/constants/limits.d.ts +1 -0
- package/dist/constants/limits.d.ts.map +1 -1
- package/dist/constants/limits.js +1 -0
- package/dist/css/v2/index.css +3 -1
- package/dist/css/v2/index.layout.css +3 -1
- package/dist/i18n/Streami18n.d.ts +1 -0
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/de.json +1 -0
- package/dist/i18n/en.json +1 -0
- package/dist/i18n/es.json +1 -0
- package/dist/i18n/fr.json +1 -0
- package/dist/i18n/hi.json +1 -0
- package/dist/i18n/it.json +1 -0
- package/dist/i18n/ja.json +1 -0
- package/dist/i18n/ko.json +1 -0
- package/dist/i18n/nl.json +1 -0
- package/dist/i18n/pt.json +1 -0
- package/dist/i18n/ru.json +1 -0
- package/dist/i18n/tr.json +1 -0
- package/dist/index.cjs.js +2 -3
- package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +56 -8
- package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +22 -4
- package/dist/scss/v2/ImageCarousel/ImageCarousel-layout.scss +11 -2
- package/dist/scss/v2/ImageCarousel/ImageCarousel-theme.scss +14 -0
- package/dist/scss/v2/_global-theme-variables.scss +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -3
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
/* The height of GIFs */
|
|
8
8
|
--str-chat__gif-height: calc(var(--str-chat__spacing-px) * 200);
|
|
9
|
+
|
|
10
|
+
/* The width of the amplitude bar of the voice recording wave data */
|
|
11
|
+
--str-chat__voice-recording-amplitude-bar-width: 2px;
|
|
12
|
+
|
|
13
|
+
/* The gap between amplitudes of the wave data of a voice recording */
|
|
14
|
+
--str-chat__voice-recording-amplitude-bar-gap-width: var(--str-chat__spacing-px);
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
.str-chat__attachment-list {
|
|
@@ -346,7 +352,7 @@
|
|
|
346
352
|
grid-template-columns: 36px auto 55px;
|
|
347
353
|
align-items: center;
|
|
348
354
|
justify-content: center;
|
|
349
|
-
gap: calc(var(--str-chat__spacing-px) *
|
|
355
|
+
gap: calc(var(--str-chat__spacing-px) * 9);
|
|
350
356
|
padding: var(--str-chat__spacing-2);
|
|
351
357
|
margin: var(--str-chat__attachment-margin);
|
|
352
358
|
|
|
@@ -357,6 +363,33 @@
|
|
|
357
363
|
flex-direction: column;
|
|
358
364
|
gap: var(--str-chat__spacing-2);
|
|
359
365
|
|
|
366
|
+
a {
|
|
367
|
+
cursor: pointer;
|
|
368
|
+
text-decoration: none;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.str-chat__message-attachment-voice-recording-widget--first-row {
|
|
372
|
+
@include utils.ellipsis-text-parent;
|
|
373
|
+
|
|
374
|
+
width: 100%;
|
|
375
|
+
display: flex;
|
|
376
|
+
align-items: center;
|
|
377
|
+
justify-content: space-between;
|
|
378
|
+
gap: var(--str-chat__spacing-1);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.str-chat__message-attachment__voice-recording-widget__title {
|
|
382
|
+
@include utils.ellipsis-text;
|
|
383
|
+
min-width: 0;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.str-chat__message-attachment-download-icon {
|
|
387
|
+
svg {
|
|
388
|
+
width: calc(var(--str-chat__spacing-px) * 24);
|
|
389
|
+
height: calc(var(--str-chat__spacing-px) * 16);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
360
393
|
.str-chat__message-attachment__voice-recording-widget__audio-state {
|
|
361
394
|
display: flex;
|
|
362
395
|
align-items: center;
|
|
@@ -364,6 +397,13 @@
|
|
|
364
397
|
gap: var(--str-chat__spacing-1_5);
|
|
365
398
|
height: 100%;
|
|
366
399
|
}
|
|
400
|
+
|
|
401
|
+
.str-chat__message-attachment__voice-recording-widget__error-message {
|
|
402
|
+
display: flex;
|
|
403
|
+
align-items: center;
|
|
404
|
+
justify-content: start;
|
|
405
|
+
gap: var(--str-chat__spacing-1);
|
|
406
|
+
}
|
|
367
407
|
}
|
|
368
408
|
|
|
369
409
|
.str-chat__message-attachment__voice-recording-widget__right-section {
|
|
@@ -375,26 +415,33 @@
|
|
|
375
415
|
width: calc(var(--str-chat__spacing-px) * 45);
|
|
376
416
|
}
|
|
377
417
|
|
|
418
|
+
stream-voice-recording-wavebar {
|
|
419
|
+
flex: 1;
|
|
420
|
+
}
|
|
421
|
+
|
|
378
422
|
.str-chat__wave-progress-bar__track {
|
|
379
423
|
$min_amplitude_height: 2px;
|
|
380
424
|
position: relative;
|
|
381
425
|
flex: 1;
|
|
382
|
-
width:
|
|
426
|
+
width: 100%;
|
|
383
427
|
height: calc(var(--str-chat__spacing-px) * 25);
|
|
384
428
|
display: flex;
|
|
385
429
|
align-items: center;
|
|
386
|
-
|
|
430
|
+
justify-content: space-between;
|
|
431
|
+
gap: var(--str-chat__voice-recording-amplitude-bar-gap-width);
|
|
387
432
|
|
|
388
433
|
.str-chat__wave-progress-bar__amplitude-bar {
|
|
389
|
-
width:
|
|
390
|
-
min-width:
|
|
391
|
-
height: calc(
|
|
434
|
+
width: var(--str-chat__voice-recording-amplitude-bar-width);
|
|
435
|
+
min-width: var(--str-chat__voice-recording-amplitude-bar-width);
|
|
436
|
+
height: calc(
|
|
437
|
+
var(--str-chat__wave-progress-bar__amplitude-bar-height) + #{$min_amplitude_height}
|
|
438
|
+
); // variable set dynamically on element
|
|
392
439
|
}
|
|
393
440
|
|
|
394
441
|
.str-chat__wave-progress-bar__progress-indicator {
|
|
395
442
|
position: absolute;
|
|
396
443
|
left: 0;
|
|
397
|
-
height: calc(100% + $min_amplitude_height + 2px);
|
|
444
|
+
height: calc(100% + #{$min_amplitude_height} + 2px);
|
|
398
445
|
width: calc(var(--str-chat__spacing-px) * 6);
|
|
399
446
|
}
|
|
400
447
|
}
|
|
@@ -463,7 +510,8 @@
|
|
|
463
510
|
}
|
|
464
511
|
|
|
465
512
|
/* Angular has different UI here, the download icon is too small to use on mobile */
|
|
466
|
-
.str-chat-angular__message-attachment-file-single
|
|
513
|
+
.str-chat-angular__message-attachment-file-single
|
|
514
|
+
.str-chat__message-attachment-file--item-first-row {
|
|
467
515
|
cursor: pointer;
|
|
468
516
|
text-decoration: none;
|
|
469
517
|
}
|
|
@@ -179,10 +179,14 @@
|
|
|
179
179
|
--str-chat__voice-recording-attachment-widget-color: var(--str-chat__text-color);
|
|
180
180
|
|
|
181
181
|
/* Border radius applied to audio recording widget */
|
|
182
|
-
--str-chat__voice-recording-attachment-widget-secondary-color: var(
|
|
182
|
+
--str-chat__voice-recording-attachment-widget-secondary-color: var(
|
|
183
|
+
--str-chat__text-low-emphasis-color
|
|
184
|
+
);
|
|
183
185
|
|
|
184
186
|
/* The text/icon color for low emphasis texts (for example file size) in audio recording widget */
|
|
185
|
-
--str-chat__voice-recording-attachment-widget-background-color: var(
|
|
187
|
+
--str-chat__voice-recording-attachment-widget-background-color: var(
|
|
188
|
+
--str-chat__secondary-background-color
|
|
189
|
+
);
|
|
186
190
|
|
|
187
191
|
/* Top border of audio recording widget */
|
|
188
192
|
--str-chat__voice-recording-attachment-widget-border-block-start: none;
|
|
@@ -346,7 +350,7 @@
|
|
|
346
350
|
.str-chat__message-attachment-audio-widget--progress-track {
|
|
347
351
|
background: linear-gradient(
|
|
348
352
|
to right,
|
|
349
|
-
var(--str-chat__primary-color)
|
|
353
|
+
var(--str-chat__primary-color) var(--str-chat__message-attachment-audio-widget-progress),
|
|
350
354
|
var(--str-chat__disabled-color) var(--str-chat__message-attachment-audio-widget-progress)
|
|
351
355
|
);
|
|
352
356
|
border-radius: calc(var(--str-chat__spacing-px) * 5);
|
|
@@ -365,6 +369,10 @@
|
|
|
365
369
|
.str-chat__message-attachment__voice-recording-widget {
|
|
366
370
|
@include utils.component-layer-overrides('voice-recording-attachment-widget');
|
|
367
371
|
|
|
372
|
+
a {
|
|
373
|
+
color: var(--str-chat__voice-recording-attachment-widget-color);
|
|
374
|
+
}
|
|
375
|
+
|
|
368
376
|
.str-chat__message-attachment__voice-recording-widget__title {
|
|
369
377
|
@include utils.ellipsis-text;
|
|
370
378
|
font: var(--str-chat__subtitle-medium-text);
|
|
@@ -391,6 +399,11 @@
|
|
|
391
399
|
border: 1px solid var(--str-chat__secondary-overlay-color);
|
|
392
400
|
cursor: grab;
|
|
393
401
|
}
|
|
402
|
+
|
|
403
|
+
.str-chat__message-attachment__voice-recording-widget__error-message {
|
|
404
|
+
font: var(--str-chat__body-text);
|
|
405
|
+
color: var(--str-chat__text-low-emphasis-color);
|
|
406
|
+
}
|
|
394
407
|
}
|
|
395
408
|
|
|
396
409
|
.str-chat__message_attachment__playback-rate-button {
|
|
@@ -468,4 +481,9 @@
|
|
|
468
481
|
border-end-start-radius: 0;
|
|
469
482
|
border-end-end-radius: 0;
|
|
470
483
|
}
|
|
471
|
-
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.str-chat-angular__message-attachment-file-single
|
|
487
|
+
.str-chat__message-attachment-file--item-first-row {
|
|
488
|
+
color: var(--str-chat__attachment-list-color);
|
|
489
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
.str-chat__image-carousel {
|
|
2
2
|
display: flex;
|
|
3
|
-
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: space-between;
|
|
4
5
|
align-items: center;
|
|
5
6
|
min-height: 0;
|
|
6
7
|
min-width: 0;
|
|
7
8
|
max-width: 100%;
|
|
8
9
|
max-height: 100%;
|
|
10
|
+
height: 100%;
|
|
9
11
|
|
|
10
12
|
.str-chat__image-carousel-stepper {
|
|
11
13
|
padding: var(--str-chat__spacing-2_5);
|
|
@@ -15,11 +17,13 @@
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.str-chat__image-carousel-image {
|
|
18
|
-
object-fit:
|
|
20
|
+
object-fit: contain;
|
|
19
21
|
min-height: 0;
|
|
20
22
|
max-height: 100%;
|
|
21
23
|
min-width: 0;
|
|
22
24
|
max-width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
width: 100%;
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
@@ -29,6 +33,11 @@
|
|
|
29
33
|
.str-chat__modal__inner {
|
|
30
34
|
height: 80%;
|
|
31
35
|
width: 80%;
|
|
36
|
+
|
|
37
|
+
@media only screen and (max-device-width: 768px) {
|
|
38
|
+
height: 100%;
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
32
41
|
}
|
|
33
42
|
}
|
|
34
43
|
}
|
|
@@ -6,8 +6,22 @@
|
|
|
6
6
|
--str-chat__image-carousel-stepper-color: var(--str-chat__text-color);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
@media only screen and (max-device-width: 768px) {
|
|
10
|
+
.str-chat__message {
|
|
11
|
+
.str-chat__attachment-list {
|
|
12
|
+
.str-chat__modal--open {
|
|
13
|
+
.str-chat__modal__inner {
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
9
21
|
.str-chat__image-carousel {
|
|
10
22
|
.str-chat__image-carousel-stepper {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
|
|
11
25
|
svg path {
|
|
12
26
|
fill: var(--str-chat__image-carousel-stepper-color);
|
|
13
27
|
}
|
|
@@ -19,43 +19,43 @@
|
|
|
19
19
|
Cantarell, Helvetica Neue, sans-serif;
|
|
20
20
|
|
|
21
21
|
/* The font used for caption texts */
|
|
22
|
-
--str-chat__caption-text: 0.75rem/
|
|
22
|
+
--str-chat__caption-text: 0.75rem/1.3 var(--str-chat__font-family);
|
|
23
23
|
|
|
24
24
|
/* The font used for caption texts with emphasize */
|
|
25
|
-
--str-chat__caption-medium-text: 500 0.75rem/
|
|
25
|
+
--str-chat__caption-medium-text: 500 0.75rem/1.3 var(--str-chat__font-family);
|
|
26
26
|
|
|
27
27
|
/* The font used for caption texts with emphasize */
|
|
28
|
-
--str-chat__caption-strong-text: 700 0.75rem/
|
|
28
|
+
--str-chat__caption-strong-text: 700 0.75rem/1.3 var(--str-chat__font-family);
|
|
29
29
|
|
|
30
30
|
/* The font used for body texts */
|
|
31
|
-
--str-chat__body-text: 0.875rem/
|
|
31
|
+
--str-chat__body-text: 0.875rem/1.2 var(--str-chat__font-family);
|
|
32
32
|
|
|
33
33
|
/* The font used for body texts with emphasize */
|
|
34
|
-
--str-chat__body-medium-text: 500 0.875rem/
|
|
34
|
+
--str-chat__body-medium-text: 500 0.875rem/1.2 var(--str-chat__font-family);
|
|
35
35
|
|
|
36
36
|
/* The font used for body texts */
|
|
37
|
-
--str-chat__body2-text: 0.9375rem/
|
|
37
|
+
--str-chat__body2-text: 0.9375rem/1.2 var(--str-chat__font-family);
|
|
38
38
|
|
|
39
39
|
/* The font used for body texts with emphasize */
|
|
40
|
-
--str-chat__body2-medium-text: 500 0.9375rem/
|
|
40
|
+
--str-chat__body2-medium-text: 500 0.9375rem/1.2 var(--str-chat__font-family);
|
|
41
41
|
|
|
42
42
|
/* The font used for subtitle texts */
|
|
43
|
-
--str-chat__subtitle-text: 1rem/1.
|
|
43
|
+
--str-chat__subtitle-text: 1rem/1.1.25 var(--str-chat__font-family);
|
|
44
44
|
|
|
45
45
|
/* The font used for subtitle texts with emphasize */
|
|
46
|
-
--str-chat__subtitle-medium-text: 500 1rem/1.
|
|
46
|
+
--str-chat__subtitle-medium-text: 500 1rem/1.25 var(--str-chat__font-family);
|
|
47
47
|
|
|
48
48
|
/* The font used for subtitle texts */
|
|
49
|
-
--str-chat__subtitle2-text: 1.25rem/1.
|
|
49
|
+
--str-chat__subtitle2-text: 1.25rem/1.2 var(--str-chat__font-family);
|
|
50
50
|
|
|
51
51
|
/* The font used for subtitle texts with emphasize */
|
|
52
|
-
--str-chat__subtitle2-medium-text: 500 1.25rem/1.
|
|
52
|
+
--str-chat__subtitle2-medium-text: 500 1.25rem/1.2 var(--str-chat__font-family);
|
|
53
53
|
|
|
54
54
|
/* The font used for headline texts */
|
|
55
|
-
--str-chat__headline-text: 1.5rem/1.
|
|
55
|
+
--str-chat__headline-text: 1.5rem/1.2 var(--str-chat__font-family);
|
|
56
56
|
|
|
57
57
|
/* The font used for headline texts */
|
|
58
|
-
--str-chat__headline2-text: 1.8rem/1.
|
|
58
|
+
--str-chat__headline2-text: 1.8rem/1.2 var(--str-chat__font-family);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.str-chat,
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "11.
|
|
1
|
+
export declare const version = "11.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '11.
|
|
1
|
+
export var version = '11.14.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.14.0",
|
|
4
4
|
"description": "React components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
"lodash.throttle": "^4.1.1",
|
|
76
76
|
"lodash.uniqby": "^4.7.0",
|
|
77
77
|
"nanoid": "^3.3.4",
|
|
78
|
-
"pretty-bytes": "^5.4.1",
|
|
79
78
|
"prop-types": "^15.7.2",
|
|
80
79
|
"react-dropzone": "^14.2.3",
|
|
81
80
|
"react-fast-compare": "^3.2.2",
|
|
@@ -223,7 +222,7 @@
|
|
|
223
222
|
"rollup-plugin-url": "^3.0.1",
|
|
224
223
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
225
224
|
"semantic-release": "^19.0.5",
|
|
226
|
-
"stream-chat": "^8.
|
|
225
|
+
"stream-chat": "^8.25.1",
|
|
227
226
|
"style-loader": "^2.0.0",
|
|
228
227
|
"ts-jest": "^28.0.8",
|
|
229
228
|
"typescript": "^4.7.4",
|