stream-chat-angular 4.66.3 → 4.66.5

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 (58) hide show
  1. package/assets/version.d.ts +1 -1
  2. package/bundles/stream-chat-angular.umd.js +1 -1
  3. package/bundles/stream-chat-angular.umd.js.map +1 -1
  4. package/esm2015/assets/version.js +2 -2
  5. package/fesm2015/stream-chat-angular.js +1 -1
  6. package/fesm2015/stream-chat-angular.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/assets/styles/assets/icons/stream-chat-icons.eot +0 -0
  9. package/src/assets/styles/assets/icons/stream-chat-icons.svg +46 -0
  10. package/src/assets/styles/assets/icons/stream-chat-icons.ttf +0 -0
  11. package/src/assets/styles/assets/icons/stream-chat-icons.woff +0 -0
  12. package/src/assets/styles/assets/icons/stream-chat-icons.woff2 +0 -0
  13. package/src/assets/styles/v2/assets/EmojiOneColor.woff2 +0 -0
  14. package/src/assets/styles/v2/assets/NotoColorEmoji-flags.woff2 +0 -0
  15. package/src/assets/styles/v2/assets/Poweredby_100px-White_VertText.png +0 -0
  16. package/src/assets/styles/v2/assets/icons/stream-chat-icons.eot +0 -0
  17. package/src/assets/styles/v2/assets/icons/stream-chat-icons.svg +46 -0
  18. package/src/assets/styles/v2/assets/icons/stream-chat-icons.ttf +0 -0
  19. package/src/assets/styles/v2/assets/icons/stream-chat-icons.woff +0 -0
  20. package/src/assets/styles/v2/assets/icons/stream-chat-icons.woff2 +0 -0
  21. package/src/assets/styles/v2/assets/str-chat__reaction-list-sprite@1x.png +0 -0
  22. package/src/assets/styles/v2/assets/str-chat__reaction-list-sprite@2x.png +0 -0
  23. package/src/assets/styles/v2/assets/str-chat__reaction-list-sprite@3x.png +0 -0
  24. package/src/assets/styles/v2/css/index.css +2 -2
  25. package/src/assets/styles/v2/css/index.layout.css +2 -2
  26. package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +75 -13
  27. package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-theme.scss +52 -0
  28. package/src/assets/styles/v2/scss/AttachmentPreviewList/AttachmentPreviewList-layout.scss +24 -9
  29. package/src/assets/styles/v2/scss/AttachmentPreviewList/AttachmentPreviewList-theme.scss +29 -0
  30. package/src/assets/styles/v2/scss/AudioRecorder/AudioRecorder-layout.scss +89 -0
  31. package/src/assets/styles/v2/scss/AudioRecorder/AudioRecorder-theme.scss +51 -0
  32. package/src/assets/styles/v2/scss/Avatar/Avatar-layout.scss +46 -0
  33. package/src/assets/styles/v2/scss/Channel/Channel-layout.scss +1 -0
  34. package/src/assets/styles/v2/scss/Channel/Channel-theme.scss +1 -0
  35. package/src/assets/styles/v2/scss/ChannelList/ChannelList-layout.scss +2 -2
  36. package/src/assets/styles/v2/scss/ChannelList/ChannelList-theme.scss +4 -2
  37. package/src/assets/styles/v2/scss/ChannelPreview/ChannelPreview-layout.scss +2 -0
  38. package/src/assets/styles/v2/scss/ChannelPreview/ChannelPreview-theme.scss +1 -0
  39. package/src/assets/styles/v2/scss/Icon/Icon-layout.scss +87 -0
  40. package/src/assets/styles/v2/scss/Icon/Icon-theme.scss +13 -0
  41. package/src/assets/styles/v2/scss/ImageCarousel/ImageCarousel-layout.scss +1 -0
  42. package/src/assets/styles/v2/scss/ImageCarousel/ImageCarousel-theme.scss +1 -0
  43. package/src/assets/styles/v2/scss/LoadingIndicator/LoadingIndicator-layout.scss +10 -1
  44. package/src/assets/styles/v2/scss/LoadingIndicator/LoadingIndicator-theme.scss +6 -4
  45. package/src/assets/styles/v2/scss/Message/Message-layout.scss +8 -2
  46. package/src/assets/styles/v2/scss/Message/Message-theme.scss +6 -0
  47. package/src/assets/styles/v2/scss/MessageInput/MessageInput-layout.scss +33 -1
  48. package/src/assets/styles/v2/scss/MessageInput/MessageInput-theme.scss +65 -2
  49. package/src/assets/styles/v2/scss/MessageList/MessageList-theme.scss +2 -0
  50. package/src/assets/styles/v2/scss/Modal/Modal-layout.scss +1 -0
  51. package/src/assets/styles/v2/scss/Modal/Modal-theme.scss +6 -0
  52. package/src/assets/styles/v2/scss/_base.scss +4 -3
  53. package/src/assets/styles/v2/scss/_emoji-replacement.scss +4 -2
  54. package/src/assets/styles/v2/scss/_icons.scss +24 -2
  55. package/src/assets/styles/v2/scss/_variables.scss +2 -0
  56. package/src/assets/styles/v2/scss/index.layout.scss +2 -0
  57. package/src/assets/styles/v2/scss/index.scss +2 -0
  58. package/src/assets/version.ts +1 -1
@@ -29,6 +29,10 @@
29
29
  .str-chat__message-bubble {
30
30
  max-width: var(--str-chat__message-max-width);
31
31
  }
32
+
33
+ .str-chat__message-options {
34
+ --str-chat-icon-height: calc(var(--str-chat__message-options-button-size) * 0.7);
35
+ }
32
36
  }
33
37
 
34
38
  .str-chat__message.str-chat__message--has-attachment {
@@ -76,7 +80,7 @@
76
80
  '. metadata';
77
81
  column-gap: var(--str-chat__spacing-2);
78
82
  grid-template-columns: auto 1fr;
79
- justify-items: start;
83
+ justify-items: flex-start;
80
84
  }
81
85
 
82
86
  &.str-chat__message--me {
@@ -120,7 +124,7 @@
120
124
 
121
125
  .str-chat__message-options {
122
126
  grid-area: options;
123
- align-items: start;
127
+ align-items: flex-start;
124
128
  justify-content: flex-end;
125
129
  flex-direction: row-reverse;
126
130
  width: calc(3 * var(--str-chat__message-options-button-size));
@@ -218,6 +222,7 @@
218
222
  }
219
223
 
220
224
  .str-chat__message-status {
225
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 15);
221
226
  @include utils.flex-row-center;
222
227
  column-gap: var(--str-chat__spacing-0_5);
223
228
  position: relative;
@@ -453,6 +458,7 @@
453
458
  }
454
459
 
455
460
  .str-chat__unread-messages-notification {
461
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 16);
456
462
  position: absolute;
457
463
  top: 0.75rem;
458
464
  z-index: 2;
@@ -220,12 +220,15 @@
220
220
  }
221
221
 
222
222
  .str-chat__message-options {
223
+ --str-chat-icon-color: var(--str-chat__message-options-color);
224
+
223
225
  .str-chat__message-actions-box-button,
224
226
  .str-chat__message-reply-in-thread-button,
225
227
  .str-chat__message-reactions-button {
226
228
  // remove default button styles (React SDK uses button compared to div in Angular SDK)
227
229
  @include utils.button-reset;
228
230
  border-radius: var(--str-chat__message-options-border-radius);
231
+ color: var(--str-chat__message-options-color);
229
232
 
230
233
  .str-chat__message-action-icon path {
231
234
  fill: var(--str-chat__message-options-color);
@@ -272,6 +275,7 @@
272
275
  }
273
276
 
274
277
  .str-chat__message-status {
278
+ --str-chat-icon-color: var(--str-chat__message-status-color);
275
279
  color: var(--str-chat__message-status-color);
276
280
  font: var(--str-chat__body-text);
277
281
 
@@ -297,6 +301,7 @@
297
301
  }
298
302
 
299
303
  .str-chat__message-error-icon {
304
+ --str-chat-icon-color: var(--str-chat__message-error-message-color);
300
305
  /* stylelint-disable-next-line selector-max-id */
301
306
  svg #background {
302
307
  fill: var(--str-chat__message-error-message-color);
@@ -393,6 +398,7 @@
393
398
  }
394
399
 
395
400
  .str-chat__unread-messages-notification {
401
+ --str-chat-icon-color: var(--str-chat__on-primary-color);
396
402
  background-color: var(--str-chat__text-low-emphasis-color);
397
403
  border-radius: 1.125rem;
398
404
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  .str-chat__message-input {
4
4
  $send-button-size: calc(var(--str-chat__spacing-px) * 45);
5
+ $start-audio-recording-button-size: calc(var(--str-chat__spacing-px) * 40);
5
6
 
6
7
  @include utils.flex-col-center;
7
8
  width: 100%;
@@ -46,6 +47,7 @@
46
47
  justify-content: center;
47
48
 
48
49
  .str-chat__file-input-container {
50
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 24);
49
51
  @include utils.flex-row-center;
50
52
  width: calc(var(--str-chat__spacing-px) * 45);
51
53
  height: calc(var(--str-chat__spacing-px) * 45);
@@ -132,6 +134,7 @@
132
134
  }
133
135
 
134
136
  .str-chat__send-button {
137
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 32);
135
138
  @include utils.flex-row-center;
136
139
  cursor: pointer;
137
140
  padding: 0;
@@ -145,6 +148,19 @@
145
148
  }
146
149
  }
147
150
 
151
+ .str-chat__start-recording-audio-button {
152
+ @include utils.flex-row-center;
153
+ cursor: pointer;
154
+ padding: 0;
155
+ width: $start-audio-recording-button-size;
156
+ height: $start-audio-recording-button-size;
157
+ min-width: $start-audio-recording-button-size;
158
+
159
+ svg {
160
+ height: calc(var(--str-chat__spacing-px) * 25);
161
+ }
162
+ }
163
+
148
164
  .str-chat__message-input-cooldown {
149
165
  @include utils.flex-row-center;
150
166
  margin-inline-start: var(--str-chat__spacing-2);
@@ -161,6 +177,21 @@
161
177
  .str-chat__quoted-message-preview {
162
178
  padding: var(--str-chat__spacing-2);
163
179
  }
180
+
181
+ .str-chat__recording-permission-denied-notification {
182
+ position: absolute;
183
+ left: 0.5rem;
184
+ max-width: 100%;
185
+ bottom: 100%;
186
+ padding: 1rem;
187
+ margin-inline: 0.5rem;
188
+ z-index: 2;
189
+
190
+ .str-chat__recording-permission-denied-notification__dismiss-button-container {
191
+ display: flex;
192
+ justify-content: flex-end;
193
+ }
194
+ }
164
195
  }
165
196
 
166
197
  .str-chat__message-input-angular-host {
@@ -179,7 +210,8 @@
179
210
  flex-grow: initial;
180
211
  }
181
212
 
182
- [dir='rtl'] .str-chat__send-button {
213
+ [dir='rtl'] .str-chat__send-button,
214
+ [dir='rtl'] .str-chat__start-recording-audio-button {
183
215
  svg {
184
216
  transform: scale(-1, 1);
185
217
  }
@@ -86,7 +86,37 @@
86
86
  --str-chat__message-send-disabled-color: var(--str-chat__disabled-color);
87
87
 
88
88
  /* The background color of the send button in disabled state */
89
- --str-chat__message-send-disabled-background-color: transparent;
89
+ --str-chat__message-send-disabled-background-color: var(--str-chat__disabled-color);
90
+
91
+ /* The border radius used for the borders of the audio recording button */
92
+ --str-chat__start-recording-audio-button-border-radius: var(--str-chat__border-radius-circle);
93
+
94
+ /* The text/icon color of the audio recording button */
95
+ --str-chat__start-recording-audio-button-color: var(--str-chat__text-low-emphasis-color);
96
+
97
+ /* The background color of the audio recording button */
98
+ --str-chat__start-recording-audio-button-background-color: transparent;
99
+
100
+ /* Top border of the audio recording button */
101
+ --str-chat__start-recording-audio-button-border-block-start: 0;
102
+
103
+ /* Bottom border of the audio recording button */
104
+ --str-chat__start-recording-audio-button-border-block-end: 0;
105
+
106
+ /* Left (right in RTL layout) border of the audio recording button */
107
+ --str-chat__start-recording-audio-button-border-inline-start: 0;
108
+
109
+ /* Right (left in RTL layout) border of the audio recording button */
110
+ --str-chat__start-recording-audio-button-border-inline-end: 0;
111
+
112
+ /* Box shadow applied to the audio recording button */
113
+ --str-chat__start-recording-audio-button-box-shadow: none;
114
+
115
+ /* The color of the audio recording button in disabled state */
116
+ --str-chat__start-recording-audio-button-disabled-color: var(--str-chat__disabled-color);
117
+
118
+ /* The background color of the audio recording button in disabled state */
119
+ --str-chat__start-recording-audio-button-disabled-background-color: transparent;
90
120
 
91
121
  /* The border radius used for the borders of the tool buttons of the message input (such as attachment upload button) */
92
122
  --str-chat__message-input-tools-border-radius: var(--str-chat__border-radius-circle);
@@ -151,6 +181,7 @@
151
181
  }
152
182
 
153
183
  .str-chat__file-input-container {
184
+ --str-chat-icon-color: var(--str-chat__message-input-tools-color);
154
185
  @include utils.component-layer-overrides('message-input-tools');
155
186
 
156
187
  svg path {
@@ -179,6 +210,7 @@
179
210
  }
180
211
 
181
212
  .str-chat__send-button {
213
+ --str-chat-icon-color: var(--str-chat__message-send-color);
182
214
  @include utils.component-layer-overrides('message-send');
183
215
 
184
216
  svg path {
@@ -186,7 +218,8 @@
186
218
  }
187
219
 
188
220
  &:disabled {
189
- background-color: var(--str-chat__message-send-disabled-background-color);
221
+ --str-chat-icon-color: var(--str-chat__message-send-disabled-color);
222
+ background-color: transparent;
190
223
 
191
224
  svg path {
192
225
  fill: var(--str-chat__message-send-disabled-color);
@@ -194,6 +227,14 @@
194
227
  }
195
228
  }
196
229
 
230
+ .str-chat__start-recording-audio-button {
231
+ @include utils.component-layer-overrides('start-recording-audio-button');
232
+
233
+ &:disabled {
234
+ background-color: var(--str-chat__message-send-disabled-background-color);
235
+ }
236
+ }
237
+
197
238
  .str-chat__message-input-cooldown {
198
239
  @include utils.component-layer-overrides('cooldown');
199
240
  font: var(--str-chat__subtitle-medium-text);
@@ -218,4 +259,26 @@
218
259
  }
219
260
  }
220
261
  }
262
+
263
+ .str-chat__recording-permission-denied-notification {
264
+ background-color: var(--str-chat__text-color);
265
+ border-radius: var(--str-chat__border-radius-md);
266
+ color: var(--str-chat__background-color);
267
+
268
+ .str-chat__recording-permission-denied-notification__heading,
269
+ .str-chat__recording-permission-denied-notification__dismiss-button {
270
+ font: var(--str-chat__subtitle2-medium-text);
271
+ }
272
+
273
+ .str-chat__recording-permission-denied-notification__message {
274
+ font: var(--str-chat__subtitle-text);
275
+ }
276
+
277
+ .str-chat__recording-permission-denied-notification__dismiss-button {
278
+ @include utils.button-reset;
279
+ color: var(--str-chat__background-color);
280
+ cursor: pointer;
281
+ text-transform: uppercase;
282
+ }
283
+ }
221
284
  }
@@ -91,6 +91,8 @@
91
91
  }
92
92
 
93
93
  .str-chat__jump-to-latest-message {
94
+ --str-chat-icon-color: var(--str-chat__jump-to-latest-message-unread-count-background-color);
95
+
94
96
  .str-chat__circle-fab {
95
97
  @include utils.component-layer-overrides('jump-to-latest-message');
96
98
  @include utils.circle-fab-overrides('jump-to-latest-message');
@@ -18,6 +18,7 @@
18
18
  }
19
19
 
20
20
  .str-chat__modal__close-button {
21
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 28);
21
22
  @include utils.flex-row-center;
22
23
  padding: var(--str-chat__spacing-2);
23
24
  position: absolute;
@@ -47,8 +47,14 @@
47
47
  }
48
48
 
49
49
  .str-chat__modal__close-button {
50
+ --str-chat-icon-color: var(--str-chat__modal-close-icon-color);
50
51
  @include utils.button-reset;
51
52
 
53
+ .str-chat__icon {
54
+ background-color: var(--str-chat__modal-close-icon-background);
55
+ border-radius: 999px;
56
+ }
57
+
52
58
  svg {
53
59
  path {
54
60
  fill: var(--str-chat__modal-close-icon-color);
@@ -1,13 +1,14 @@
1
1
  .str-chat {
2
2
  box-sizing: border-box;
3
+ font-family: var(--str-chat__font-family);
3
4
 
4
5
  * {
5
- font-family: var(--str-chat__font-family);
6
6
  box-sizing: border-box;
7
7
  }
8
8
 
9
- // Overriding styles of ngx-popperjs
10
- .ngxp__container {
9
+ // Overriding styles of ngx-popperjs/ngx-float-ui
10
+ .ngxp__container,
11
+ .float-ui-container {
11
12
  z-index: 1;
12
13
  padding: 0 !important;
13
14
  box-shadow: none !important;
@@ -1,5 +1,7 @@
1
- /* declare a font faces for our Emoji Replacement font, based on the default font used by Stream Chat React */
2
- $assetsPath: '../../assets' !default;
1
+ @use 'variables';
2
+
3
+ $assetsPath: variables.$assetsPath !default;
4
+
3
5
  $emoji-flag-unicode-range: U+1F1E6-1F1FF;
4
6
 
5
7
  /* png based woff for most browsers */
@@ -1,3 +1,25 @@
1
+ @use 'variables';
2
+
1
3
  .str-chat {
2
- --str-chat__image-fallback-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9InN0ci1jaGF0X19pbWFnZS1mYWxsYmFja19faWNvbiIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTYgMnYxNEgyVjJoMTRabTAtMkgyQy45IDAgMCAuOSAwIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlYyYzAtMS4xLS45LTItMi0yWm0tNC44NiA4Ljg2LTMgMy44N0w2IDEwLjE0IDMgMTRoMTJsLTMuODYtNS4xNFoiLz48L3N2Zz4=");
3
- }
4
+ --str-chat__image-fallback-icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9InN0ci1jaGF0X19pbWFnZS1mYWxsYmFja19faWNvbiIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTYgMnYxNEgyVjJoMTRabTAtMkgyQy45IDAgMCAuOSAwIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlYyYzAtMS4xLS45LTItMi0yWm0tNC44NiA4Ljg2LTMgMy44N0w2IDEwLjE0IDMgMTRoMTJsLTMuODYtNS4xNFoiLz48L3N2Zz4=');
5
+ }
6
+
7
+ @font-face {
8
+ font-family: 'stream-chat-icons';
9
+ src: url('#{variables.$assetsPath}/icons/stream-chat-icons.eot');
10
+ src: url('#{variables.$assetsPath}/icons/stream-chat-icons.eot#iefix') format('embedded-opentype'),
11
+ url('#{variables.$assetsPath}/icons/stream-chat-icons.woff') format('woff2'),
12
+ url('#{variables.$assetsPath}/icons/stream-chat-icons.woff') format('woff'),
13
+ url('#{variables.$assetsPath}/icons/stream-chat-icons.ttf') format('truetype'),
14
+ url('#{variables.$assetsPath}/icons/stream-chat-icons.svg#stream-chat-icons') format('svg');
15
+ font-weight: normal;
16
+ font-style: normal;
17
+ }
18
+ /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
19
+ /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
20
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
21
+ @font-face {
22
+ font-family: 'stream-chat-icons';
23
+ src: url('#{variables.$assetsPath}/icons/stream-chat-icons.svg#stream-chat-icons') format('svg');
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ /* declare asset path, useful if you want to create your own style bundle */
2
+ $assetsPath: '../../assets' !default;
@@ -6,6 +6,7 @@
6
6
  @use 'AttachmentList/AttachmentList-layout';
7
7
  @use 'AttachmentPreviewList/AttachmentPreviewList-layout';
8
8
  @use 'Autocomplete/Autocomplete-layout';
9
+ @use 'AudioRecorder/AudioRecorder-layout';
9
10
  @use 'BaseImage/BaseImage-layout';
10
11
  @use 'Channel/Channel-layout';
11
12
  @use 'ChannelHeader/ChannelHeader-layout';
@@ -16,6 +17,7 @@
16
17
  @use 'common/CircleFAButton/CircleFAButton-layout';
17
18
  @use 'EditMessageForm/EditMessageForm-layout';
18
19
  @use 'ImageCarousel/ImageCarousel-layout';
20
+ @use 'Icon/Icon-layout';
19
21
  @use 'LinkPreview/LinkPreview-layout';
20
22
  @use 'LoadingIndicator/LoadingIndicator-layout';
21
23
  @use 'Message/Message-layout';
@@ -9,6 +9,7 @@
9
9
  @use 'Avatar/Avatar-theme';
10
10
  @use 'AttachmentList/AttachmentList-theme';
11
11
  @use 'AttachmentPreviewList/AttachmentPreviewList-theme';
12
+ @use 'AudioRecorder/AudioRecorder-theme';
12
13
  @use 'Autocomplete/Autocomplete-theme';
13
14
  @use 'BaseImage/BaseImage-theme';
14
15
  @use 'Channel/Channel-theme.scss';
@@ -17,6 +18,7 @@
17
18
  @use 'ChannelPreview/ChannelPreview-theme';
18
19
  @use 'ChannelSearch/ChannelSearch-theme';
19
20
  @use 'EditMessageForm/EditMessageForm-theme';
21
+ @use 'Icon/Icon-theme';
20
22
  @use 'ImageCarousel/ImageCarousel-theme';
21
23
  @use 'LinkPreview/LinkPreview-theme';
22
24
  @use 'LoadingIndicator/LoadingIndicator-theme';
@@ -1 +1 @@
1
- export const version = '4.66.3';
1
+ export const version = '4.66.5';