stream-chat-angular 4.0.0-theming-v2.11 → 4.0.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 (43) hide show
  1. package/assets/version.d.ts +1 -1
  2. package/bundles/stream-chat-angular.umd.js +37 -20
  3. package/bundles/stream-chat-angular.umd.js.map +1 -1
  4. package/esm2015/assets/version.js +2 -2
  5. package/esm2015/lib/channel.service.js +19 -17
  6. package/esm2015/lib/chat-client.service.js +5 -3
  7. package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +4 -3
  8. package/fesm2015/stream-chat-angular.js +26 -21
  9. package/fesm2015/stream-chat-angular.js.map +1 -1
  10. package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +1 -0
  11. package/package.json +1 -1
  12. package/src/assets/styles/css/index.css +1 -1
  13. package/src/assets/styles/css/index.css.map +1 -1
  14. package/src/assets/styles/scss/Attachment.scss +11 -8
  15. package/src/assets/styles/scss/MessageInput.scss +1 -0
  16. package/src/assets/styles/v2/css/index.css +1 -1
  17. package/src/assets/styles/v2/css/index.css.map +1 -1
  18. package/src/assets/styles/v2/css/index.layout.css +1 -1
  19. package/src/assets/styles/v2/css/index.layout.css.map +1 -1
  20. package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +133 -26
  21. package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-theme.scss +28 -21
  22. package/src/assets/styles/v2/scss/Autocomplete/Autocomplete-layout.scss +11 -1
  23. package/src/assets/styles/v2/scss/Autocomplete/Autocomplete-theme.scss +35 -0
  24. package/src/assets/styles/v2/scss/Avatar/Avatar-layout.scss +2 -0
  25. package/src/assets/styles/v2/scss/ChannelPreview/ChannelPreview-theme.scss +3 -5
  26. package/src/assets/styles/v2/scss/ChannelSearch/ChannelSearch-layout.scss +2 -1
  27. package/src/assets/styles/v2/scss/Message/Message-layout.scss +73 -23
  28. package/src/assets/styles/v2/scss/Message/Message-theme.scss +16 -0
  29. package/src/assets/styles/v2/scss/MessageInput/MessageInput-layout.scss +33 -2
  30. package/src/assets/styles/v2/scss/MessageInput/MessageInput-theme.scss +16 -0
  31. package/src/assets/styles/v2/scss/MessageList/{VirtualMessageList-layout.scss → VirtualizedMessageList-layout.scss} +12 -0
  32. package/src/assets/styles/v2/scss/MessageList/{VirtualMessageList-theme.scss → VirtualizedMessageList-theme.scss} +0 -0
  33. package/src/assets/styles/v2/scss/MessageReactions/MessageReactions-layout.scss +1 -0
  34. package/src/assets/styles/v2/scss/Modal/Modal-theme.scss +7 -0
  35. package/src/assets/styles/v2/scss/Thread/Thread-layout.scss +1 -2
  36. package/src/assets/styles/v2/scss/Tooltip/Tooltip-layout.scss +1 -1
  37. package/src/assets/styles/v2/scss/TypingIndicator/TypingIndicator-layout.scss +4 -0
  38. package/src/assets/styles/v2/scss/_global-theme-variables.scss +7 -0
  39. package/src/assets/styles/v2/scss/_utils.scss +1 -1
  40. package/src/assets/styles/v2/scss/index.layout.scss +1 -1
  41. package/src/assets/styles/v2/scss/index.scss +1 -1
  42. package/src/assets/styles/vendor/react-image-gallery.scss +6 -0
  43. package/src/assets/version.ts +1 -1
@@ -16,6 +16,9 @@
16
16
  /* The text color used for displaying links */
17
17
  --str-chat__message-link-color: var(--str-chat__primary-color);
18
18
 
19
+ /* The text color used for displaying mentions */
20
+ --str-chat__message-mention-color: var(--str-chat__primary-color);
21
+
19
22
  /* The text/icon color used for displaying message status */
20
23
  --str-chat__message-status-color: var(--str-chat__primary-color);
21
24
 
@@ -25,6 +28,9 @@
25
28
  /* The background color of the component */
26
29
  --str-chat__message-background-color: transparent;
27
30
 
31
+ /* The background color of a jumped-to message */
32
+ --str-chat__message-highlighted-background-color: var(--str-chat__message-highlight-color);
33
+
28
34
  /* Top border of the component */
29
35
  --str-chat__message-border-block-start: none;
30
36
 
@@ -184,6 +190,11 @@
184
190
  color: var(--str-chat__message-link-color);
185
191
  }
186
192
 
193
+ .str-chat__message-mention {
194
+ color: var(--str-chat__message-mention-color);
195
+ font: var(--str-chat__body2-medium-text);
196
+ }
197
+
187
198
  .str-chat__message-bubble {
188
199
  @include utils.component-layer-overrides('message-bubble');
189
200
  font: var(--str-chat__body2-text);
@@ -268,6 +279,11 @@
268
279
  }
269
280
  }
270
281
 
282
+ .str-chat__message--highlighted {
283
+ transition: background-color 0.1s ease-out;
284
+ background-color: var(--str-chat__message-highlighted-background-color);
285
+ }
286
+
271
287
  .str-chat__li:hover {
272
288
  background-color: var(--str-chat__message-active-bacground-color);
273
289
  }
@@ -7,6 +7,8 @@
7
7
  width: 100%;
8
8
  padding: var(--str-chat__spacing-1) var(--str-chat__spacing-2);
9
9
 
10
+ position: relative;
11
+
10
12
  .str-chat__quoted-message-preview-header {
11
13
  @include utils.flex-row-center;
12
14
  width: 100%;
@@ -23,6 +25,19 @@
23
25
  }
24
26
  }
25
27
 
28
+ .str-chat__dropzone-container {
29
+ @include utils.flex-row-center;
30
+
31
+ position: absolute;
32
+ height: 100%;
33
+ width: 100%;
34
+ z-index: 5;
35
+
36
+ p {
37
+ margin: unset;
38
+ }
39
+ }
40
+
26
41
  .str-chat__message-input-inner {
27
42
  flex-grow: 1;
28
43
  width: 100%;
@@ -76,8 +91,12 @@
76
91
  font-size: calc(var(--str-chat__spacing-px) * 27);
77
92
  align-self: end;
78
93
 
79
- .str-chat__emoji-picker-container {
80
- display: flex;
94
+ .str-chat__message-textarea-emoji-picker-container {
95
+ z-index: 5;
96
+
97
+ .str-chat__emoji-picker-container {
98
+ display: flex;
99
+ }
81
100
  }
82
101
 
83
102
  .str-chat__emoji-picker-button {
@@ -148,6 +167,18 @@
148
167
  max-height: 50%;
149
168
  }
150
169
 
170
+ .str-chat-angular__message-input {
171
+ height: 100%;
172
+ max-height: 100%;
173
+ }
174
+
175
+ .str-chat-angular__message-input-inner {
176
+ height: 100%;
177
+ max-height: 100%;
178
+ min-height: 0;
179
+ flex-grow: initial;
180
+ }
181
+
151
182
  [dir='rtl'] .str-chat__send-button {
152
183
  svg {
153
184
  transform: scale(-1, 1);
@@ -25,6 +25,15 @@
25
25
  /* Box shadow applied to the component */
26
26
  --str-chat__message-input-box-shadow: none;
27
27
 
28
+ /* The text/icon color of the dropzone container */
29
+ --str-chat__dropzone-container-color: var(--str-chat__on-primary-color);
30
+
31
+ /* The background color of the dropzone container */
32
+ --str-chat__dropzone-container-background-color: var(--str-chat__primary-overlay-color);
33
+
34
+ /* The backdrop filter applied to the dropzone container */
35
+ --str-chat__dropzone-container-backdrop-filter: blur(3px);
36
+
28
37
  /* The border radius used for the borders of the textarea */
29
38
  --str-chat__message-textarea-border-radius: var(--str-chat__border-radius-md);
30
39
 
@@ -134,6 +143,13 @@
134
143
  .str-chat__message-input {
135
144
  @include utils.component-layer-overrides('message-input');
136
145
 
146
+ .str-chat__dropzone-container {
147
+ background-color: var(--str-chat__dropzone-container-background-color);
148
+ color: var(--str-chat__dropzone-container-color);
149
+ backdrop-filter: var(--str-chat__dropzone-container-backdrop-filter);
150
+ font: var(--str-chat__subtitle-text);
151
+ }
152
+
137
153
  .str-chat__file-input-container {
138
154
  @include utils.component-layer-overrides('message-input-tools');
139
155
 
@@ -10,6 +10,10 @@
10
10
  width: 100%;
11
11
  height: 100%;
12
12
 
13
+ .str-chat__message-list-scroll > div {
14
+ @include utils.message-list-spacing;
15
+ }
16
+
13
17
  // conditionally showing the header displaces items when prepending.
14
18
  // a simple workaround is to make the loading indicator an overlay.
15
19
  &__loading {
@@ -29,4 +33,12 @@
29
33
  word-wrap: break-word;
30
34
  }
31
35
  }
36
+
37
+ .str-chat__message {
38
+ margin-block-end: 0 !important;
39
+ }
40
+
41
+ .str-chat__virtual-list-message-wrapper {
42
+ padding-block-end: var(--str-chat__spacing-0_5);
43
+ }
32
44
  }
@@ -6,6 +6,7 @@
6
6
  .str-chat__message-reactions {
7
7
  list-style: none;
8
8
  display: flex;
9
+ margin-block-start: var(--str-chat__spacing-0_5);
9
10
  margin-block-end: var(--str-chat__spacing-0_5);
10
11
  column-gap: var(--str-chat__spacing-0_5);
11
12
  width: fit-content;
@@ -64,6 +64,7 @@
64
64
 
65
65
  // stream-chat-react image gallery does not show the modal inner container. It has to be reset to
66
66
  // width of its content in order the modal can be closed when clicked on overlay
67
+ .str-chat__message-attachment--card,
67
68
  .str-chat__message-attachment--image,
68
69
  .str-chat__message-attachment--gallery {
69
70
  .str-chat__modal--open .str-chat__modal__inner.str-chat-react__modal__inner {
@@ -71,5 +72,11 @@
71
72
  width: unset;
72
73
  height: unset;
73
74
  padding: 0;
75
+
76
+ img {
77
+ max-width: unset;
78
+ max-height: calc(100vh - 80px);
79
+ cursor: default;
80
+ }
74
81
  }
75
82
  }
@@ -37,9 +37,8 @@
37
37
  }
38
38
  }
39
39
 
40
- // todo: React SDK specific. Deprecate after merging with MessageList
41
40
  .str-chat__thread-list {
42
- @include utils.scrollable;
41
+ height: auto;
43
42
  }
44
43
  }
45
44
 
@@ -12,7 +12,7 @@
12
12
  max-width: calc(var(--str-chat__spacing-px) * 150px);
13
13
  word-break: break-all;
14
14
  position: absolute;
15
- bottom: calc(100% + calc(#{$size} / 2));
15
+ bottom: calc(100% + calc(0.8 * #{$size}));
16
16
 
17
17
  &::after {
18
18
  content: '';
@@ -1,5 +1,9 @@
1
1
  @use '../utils';
2
2
 
3
+ .str-chat__typing-indicator-react-host {
4
+ position: static !important;
5
+ }
6
+
3
7
  .str-chat__typing-indicator {
4
8
  padding: var(--str-chat__spacing-1_5);
5
9
  display: flex;
@@ -33,6 +33,9 @@
33
33
  /* The font used for body texts */
34
34
  --str-chat__body2-text: 0.9375rem/1rem var(--str-chat__font-family);
35
35
 
36
+ /* The font used for body texts with emphasize */
37
+ --str-chat__body2-medium-text: 500 0.9375rem/1rem var(--str-chat__font-family);
38
+
36
39
  /* The font used for subtitle texts */
37
40
  --str-chat__subtitle-text: 1rem/1.25rem var(--str-chat__font-family);
38
41
 
@@ -57,6 +60,9 @@
57
60
  /* Used for emphasis, brands can inject their main color using this variable */
58
61
  --str-chat__primary-color: var(--str-chat__blue500);
59
62
 
63
+ /* Used for emphasised overlays - color of --str-chat__primary-color with alpha channel */
64
+ --str-chat__primary-overlay-color: rgba(0, 95, 255, 0.6);
65
+
60
66
  /* Used for emphasis, brands can inject their main color using this variable, it has less emphasis than primary color */
61
67
  --str-chat__primary-color-low-emphasis: var(--str-chat__blue300);
62
68
 
@@ -132,6 +138,7 @@
132
138
 
133
139
  .str-chat__theme-dark {
134
140
  --str-chat__primary-color: var(--str-chat__blue400);
141
+ --str-chat__primary-overlay-color: rgba(51, 126, 255, 0.6);
135
142
  --str-chat__primary-color-low-emphasis: var(--str-chat__blue700);
136
143
  --str-chat__active-primary-color: var(--str-chat__blue600);
137
144
  --str-chat__on-primary-color: var(--str-chat__grey50);
@@ -7,7 +7,7 @@
7
7
  @mixin flex-top-right {
8
8
  display: flex;
9
9
  align-items: flex-start;
10
- justify-content: end;
10
+ justify-content: flex-end;
11
11
  }
12
12
 
13
13
  @mixin flex-col-center {
@@ -19,7 +19,7 @@
19
19
  @use 'MessageActionsBox/MessageActionsBox-layout';
20
20
  @use 'MessageInput/MessageInput-layout';
21
21
  @use 'MessageList/MessageList-layout';
22
- @use 'MessageList/VirtualMessageList-layout';
22
+ @use 'MessageList/VirtualizedMessageList-layout';
23
23
  @use 'MessageReactions/MessageReactions-layout';
24
24
  @use 'MessageReactions/MessageReactionsSelector-layout';
25
25
  @use 'Modal/Modal-layout';
@@ -22,7 +22,7 @@
22
22
  @use 'MessageActionsBox/MessageActionsBox-theme';
23
23
  @use 'MessageInput/MessageInput-theme';
24
24
  @use 'MessageList/MessageList-theme';
25
- @use 'MessageList/VirtualMessageList-theme';
25
+ @use 'MessageList/VirtualizedMessageList-theme';
26
26
  @use 'MessageReactions/MessageReactions-theme';
27
27
  @use 'MessageReactions/MessageReactionsSelector-theme';
28
28
  @use 'Modal/Modal-theme';
@@ -153,10 +153,16 @@ $ig-shadow: 0 2px 2px lighten($ig-black, 10%);
153
153
 
154
154
  &.fullscreen {
155
155
  background: $ig-black;
156
+
157
+ .image-gallery-slide .image-gallery-image {
158
+ max-width: 100%;
159
+ }
156
160
  }
157
161
 
158
162
  .image-gallery-slide .image-gallery-image {
159
163
  max-height: calc(100vh - 80px); // 80 px for the thumbnail space
164
+ max-width: unset;
165
+ object-fit: contain;
160
166
  }
161
167
 
162
168
  &.left,
@@ -1 +1 @@
1
- export const version = '4.0.0-theming-v2.11';
1
+ export const version = '4.0.0';