stream-chat-angular 4.62.0 → 4.63.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.
Files changed (32) hide show
  1. package/assets/i18n/en.d.ts +1 -0
  2. package/assets/version.d.ts +1 -1
  3. package/bundles/stream-chat-angular.umd.js +381 -43
  4. package/bundles/stream-chat-angular.umd.js.map +1 -1
  5. package/esm2015/assets/i18n/en.js +2 -1
  6. package/esm2015/assets/version.js +2 -2
  7. package/esm2015/lib/attachment-list/attachment-list.component.js +10 -5
  8. package/esm2015/lib/custom-templates.service.js +5 -1
  9. package/esm2015/lib/icon/icon.component.js +2 -2
  10. package/esm2015/lib/stream-chat.module.js +13 -3
  11. package/esm2015/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.js +192 -0
  12. package/esm2015/lib/voice-recording/voice-recording.component.js +115 -0
  13. package/esm2015/public-api.js +3 -1
  14. package/fesm2015/stream-chat-angular.js +343 -30
  15. package/fesm2015/stream-chat-angular.js.map +1 -1
  16. package/lib/attachment-list/attachment-list.component.d.ts +1 -0
  17. package/lib/custom-templates.service.d.ts +4 -0
  18. package/lib/icon/icon.component.d.ts +1 -1
  19. package/lib/stream-chat.module.d.ts +7 -5
  20. package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +43 -0
  21. package/lib/voice-recording/voice-recording.component.d.ts +31 -0
  22. package/package.json +2 -2
  23. package/public-api.d.ts +2 -0
  24. package/src/assets/i18n/en.ts +1 -0
  25. package/src/assets/styles/v2/css/index.css +3 -1
  26. package/src/assets/styles/v2/css/index.layout.css +3 -1
  27. package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +127 -1
  28. package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-theme.scss +91 -2
  29. package/src/assets/styles/v2/scss/ImageCarousel/ImageCarousel-layout.scss +11 -2
  30. package/src/assets/styles/v2/scss/ImageCarousel/ImageCarousel-theme.scss +14 -0
  31. package/src/assets/styles/v2/scss/Message/Message-layout.scss +2 -2
  32. package/src/assets/version.ts +1 -1
@@ -170,6 +170,39 @@
170
170
  /* Box shadow applied to audio widget */
171
171
  --str-chat__audio-attachment-widget-box-shadow: none;
172
172
 
173
+ /* Border radius applied to audio recording widget */
174
+ --str-chat__voice-recording-attachment-widget-border-radius: calc(
175
+ var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin)
176
+ );
177
+
178
+ /* Text color used in audio recording widget */
179
+ --str-chat__voice-recording-attachment-widget-color: var(--str-chat__text-color);
180
+
181
+ /* Border radius applied to audio recording widget */
182
+ --str-chat__voice-recording-attachment-widget-secondary-color: var(
183
+ --str-chat__text-low-emphasis-color
184
+ );
185
+
186
+ /* The text/icon color for low emphasis texts (for example file size) in audio recording widget */
187
+ --str-chat__voice-recording-attachment-widget-background-color: var(
188
+ --str-chat__secondary-background-color
189
+ );
190
+
191
+ /* Top border of audio recording widget */
192
+ --str-chat__voice-recording-attachment-widget-border-block-start: none;
193
+
194
+ /* Bottom border of audio recording widget */
195
+ --str-chat__voice-recording-attachment-widget-border-block-end: none;
196
+
197
+ /* Left (right in RTL layout) border of audio recording widget */
198
+ --str-chat__voice-recording-attachment-widget-border-inline-start: none;
199
+
200
+ /* Right (left in RTL layout) border of audio recording widget */
201
+ --str-chat__voice-recording-attachment-widget-border-inline-end: none;
202
+
203
+ /* Box shadow applied to audio recording widget */
204
+ --str-chat__voice-recording-attachment-widget-box-shadow: none;
205
+
173
206
  /* Border radius applied to the play / pause button of audio widget */
174
207
  --str-chat__audio-attachment-controls-button-border-radius: var(--str-chat__border-radius-circle);
175
208
 
@@ -315,7 +348,11 @@
315
348
  }
316
349
 
317
350
  .str-chat__message-attachment-audio-widget--progress-track {
318
- background-color: var(--str-chat__disabled-color);
351
+ background: linear-gradient(
352
+ to right,
353
+ var(--str-chat__primary-color) var(--str-chat__message-attachment-audio-widget-progress),
354
+ var(--str-chat__disabled-color) var(--str-chat__message-attachment-audio-widget-progress)
355
+ );
319
356
  border-radius: calc(var(--str-chat__spacing-px) * 5);
320
357
 
321
358
  .str-chat__message-attachment-audio-widget--progress-indicator {
@@ -329,6 +366,53 @@
329
366
  @include utils.circle-fab-overrides('audio-attachment-controls-button');
330
367
  }
331
368
 
369
+ .str-chat__message-attachment__voice-recording-widget {
370
+ @include utils.component-layer-overrides('voice-recording-attachment-widget');
371
+
372
+ a {
373
+ color: var(--str-chat__voice-recording-attachment-widget-color);
374
+ }
375
+
376
+ .str-chat__message-attachment__voice-recording-widget__title {
377
+ @include utils.ellipsis-text;
378
+ font: var(--str-chat__subtitle-medium-text);
379
+ }
380
+
381
+ .str-chat__message-attachment__voice-recording-widget__timer {
382
+ font: var(--str-chat__body-text);
383
+ color: var(--str-chat__text-low-emphasis-color);
384
+ white-space: nowrap;
385
+ }
386
+
387
+ .str-chat__wave-progress-bar__amplitude-bar {
388
+ background: var(--str-chat__text-low-emphasis-color);
389
+ border-radius: var(--str-chat__border-radius-circle);
390
+ }
391
+
392
+ .str-chat__wave-progress-bar__amplitude-bar--active {
393
+ background: var(--str-chat__primary-color);
394
+ }
395
+
396
+ .str-chat__wave-progress-bar__progress-indicator {
397
+ background-color: #fff;
398
+ border-radius: var(--str-chat__border-radius-circle);
399
+ border: 1px solid var(--str-chat__secondary-overlay-color);
400
+ cursor: grab;
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
+ }
407
+ }
408
+
409
+ .str-chat__message_attachment__playback-rate-button {
410
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
411
+ border-radius: var(--str-chat__border-radius-circle);
412
+ background-color: #fff; // in design marked as static, excluded from theming
413
+ cursor: pointer;
414
+ }
415
+
332
416
  .str-chat__message-attachment--card {
333
417
  @include utils.component-layer-overrides('card-attachment');
334
418
  font: var(--str-chat__body-text);
@@ -397,4 +481,9 @@
397
481
  border-end-start-radius: 0;
398
482
  border-end-end-radius: 0;
399
483
  }
400
- }
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
- justify-content: center;
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: cover;
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
  }
@@ -11,7 +11,7 @@
11
11
  --str-chat__message-with-attachment-max-width: calc(var(--str-chat__spacing-px) * 300);
12
12
 
13
13
  /* The maximum allowed width of quoted messages inside the message component */
14
- --str-chat__quoted-message-max-width: calc(var(--str-chat__spacing-px) * 180);
14
+ --str-chat__quoted-message-max-width: calc(var(--str-chat__spacing-px) * 250);
15
15
 
16
16
  /* The maximum allowed width of quoted messages inside the message input component */
17
17
  --str-chat__quoted-message-inside-message-input-max-width: calc(
@@ -201,7 +201,7 @@
201
201
  @include utils.prevent-glitch-text-overflow;
202
202
  }
203
203
 
204
- .str-chat__message-simple-time + .str-chat__mesage-simple-edited::before {
204
+ .str-chat__message-simple-timestamp + .str-chat__mesage-simple-edited::before {
205
205
  content: '•';
206
206
  margin-right: var(--str-chat__spacing-1);
207
207
  }
@@ -1 +1 @@
1
- export const version = '4.62.0';
1
+ export const version = '4.63.0';