stream-chat-angular 5.7.3 → 5.8.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 (41) hide show
  1. package/assets/version.d.ts +1 -1
  2. package/esm2020/assets/version.mjs +2 -2
  3. package/esm2020/lib/attachment-list/attachment-list.component.mjs +6 -6
  4. package/fesm2015/stream-chat-angular.mjs +6 -6
  5. package/fesm2015/stream-chat-angular.mjs.map +1 -1
  6. package/fesm2020/stream-chat-angular.mjs +6 -6
  7. package/fesm2020/stream-chat-angular.mjs.map +1 -1
  8. package/lib/attachment-list/attachment-list.component.d.ts +2 -2
  9. package/package.json +1 -1
  10. package/src/assets/assets/icons/stream-chat-icons.eot +0 -0
  11. package/src/assets/assets/icons/stream-chat-icons.svg +2 -2
  12. package/src/assets/assets/icons/stream-chat-icons.ttf +0 -0
  13. package/src/assets/assets/icons/stream-chat-icons.woff +0 -0
  14. package/src/assets/assets/icons/stream-chat-icons.woff2 +0 -0
  15. package/src/assets/styles/css/index.css +2 -2
  16. package/src/assets/styles/css/index.layout.css +2 -2
  17. package/src/assets/styles/scss/AttachmentList/AttachmentList-layout.scss +28 -2
  18. package/src/assets/styles/scss/AttachmentList/AttachmentList-theme.scss +9 -1
  19. package/src/assets/styles/scss/AttachmentPreviewList/AttachmentPreviewList-layout.scss +2 -2
  20. package/src/assets/styles/scss/Avatar/Avatar-layout.scss +4 -0
  21. package/src/assets/styles/scss/Dialog/Dialog-layout.scss +54 -0
  22. package/src/assets/styles/scss/Dialog/Dialog-theme.scss +103 -0
  23. package/src/assets/styles/scss/DragAndDropContainer/DragAmdDropContainer-layout.scss +5 -0
  24. package/src/assets/styles/scss/DragAndDropContainer/DragAndDropContainer-theme.scss +47 -0
  25. package/src/assets/styles/scss/Form/Form-layout.scss +9 -0
  26. package/src/assets/styles/scss/Form/Form-theme.scss +17 -0
  27. package/src/assets/styles/scss/Icon/Icon-layout.scss +1 -1
  28. package/src/assets/styles/scss/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +4 -0
  29. package/src/assets/styles/scss/MessageActionsBox/MessageActionsBox-layout.scss +0 -9
  30. package/src/assets/styles/scss/MessageInput/MessageInput-layout.scss +28 -4
  31. package/src/assets/styles/scss/MessageInput/MessageInput-theme.scss +60 -0
  32. package/src/assets/styles/scss/Modal/Modal-layout.scss +31 -0
  33. package/src/assets/styles/scss/Modal/Modal-theme.scss +6 -0
  34. package/src/assets/styles/scss/Notification/MessageNotification-layout.scss +1 -1
  35. package/src/assets/styles/scss/Poll/Poll-layout.scss +488 -0
  36. package/src/assets/styles/scss/Poll/Poll-theme.scss +206 -0
  37. package/src/assets/styles/scss/_global-theme-variables.scss +1 -1
  38. package/src/assets/styles/scss/_icons.scss +7 -0
  39. package/src/assets/styles/scss/index.layout.scss +4 -0
  40. package/src/assets/styles/scss/index.scss +4 -0
  41. package/src/assets/version.ts +1 -1
@@ -260,7 +260,7 @@
260
260
  margin: var(--str-chat__attachment-margin);
261
261
 
262
262
  .str-chat__file-icon {
263
- width: calc(var(--str-chat__spacing-px)* 30);
263
+ width: calc(var(--str-chat__spacing-px) * 30);
264
264
  }
265
265
 
266
266
  .str-chat__message-attachment-unsupported__metadata {
@@ -270,7 +270,6 @@
270
270
  flex-direction: column;
271
271
  align-items: flex-start;
272
272
  justify-content: center;
273
-
274
273
  }
275
274
 
276
275
  .str-chat__message-attachment-unsupported__title {
@@ -622,4 +621,31 @@
622
621
 
623
622
  .str-chat__attachment-list-angular-host {
624
623
  min-width: 0;
624
+
625
+ .str-chat__message-attachment-card--video {
626
+ width: 100%;
627
+
628
+ a {
629
+ display: block;
630
+ width: 100%;
631
+ height: 100%;
632
+ position: relative;
633
+
634
+ .str-chat__message-attachment-card--video-play,
635
+ stream-icon-placeholder {
636
+ position: absolute;
637
+ top: 50%;
638
+ left: 0;
639
+ right: 0;
640
+ margin: auto;
641
+ transform: translateY(-50%);
642
+ width: calc(var(--str-chat__spacing-px) * 36);
643
+ height: calc(var(--str-chat__spacing-px) * 36);
644
+ }
645
+
646
+ img {
647
+ cursor: pointer;
648
+ }
649
+ }
650
+ }
625
651
  }
@@ -534,8 +534,16 @@
534
534
  }
535
535
  }
536
536
 
537
-
538
537
  .str-chat-angular__message-attachment-file-single
539
538
  .str-chat__message-attachment-file--item-first-row {
540
539
  color: var(--str-chat__attachment-list-color);
541
540
  }
541
+
542
+ .str-chat__attachment-list-angular-host {
543
+ .str-chat__message-attachment-card--video-play {
544
+ --str-chat-icon-color: var(--str-chat__text-color);
545
+
546
+ background-color: var(--str-chat__secondary-background-color);
547
+ border-radius: var(--str-chat__border-radius-circle);
548
+ }
549
+ }
@@ -114,7 +114,7 @@
114
114
  top: calc(var(--str-chat__spacing-px) * 2);
115
115
  inset-inline-end: calc(var(--str-chat__spacing-px) * 2);
116
116
  cursor: pointer;
117
- z-index: 1;
117
+ z-index: 0;
118
118
 
119
119
  svg {
120
120
  width: calc(var(--str-chat__spacing-px) * 24);
@@ -128,7 +128,7 @@
128
128
  @include utils.unset-button(unset);
129
129
  inset-inline-start: 0;
130
130
  cursor: pointer;
131
- z-index: 1;
131
+ z-index: 0;
132
132
  }
133
133
  }
134
134
 
@@ -30,6 +30,10 @@
30
30
  .stream-chat__avatar--message-status {
31
31
  --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 15);
32
32
  }
33
+
34
+ .str-chat__avatar--poll-vote-author {
35
+ --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 20);
36
+ }
33
37
  }
34
38
 
35
39
  .str-chat__avatar {
@@ -1,3 +1,5 @@
1
+ @use '../utils';
2
+
1
3
  .str-chat__dialog-overlay {
2
4
  inset: 0;
3
5
  overflow: hidden;
@@ -5,4 +7,56 @@
5
7
  height: var(--str-chat__dialog-overlay-height);
6
8
  width: 100%;
7
9
  z-index: 2;
10
+ }
11
+
12
+ .str-chat__dialog {
13
+ width: 100%;
14
+
15
+ .str-chat__dialog__body {
16
+ padding: 2rem 1rem;
17
+ overflow-y: auto;
18
+
19
+ .str-chat__dialog__title {
20
+ margin-bottom: 1rem;
21
+ }
22
+
23
+ }
24
+
25
+ .str-chat__dialog__controls {
26
+ display: flex;
27
+ justify-content: flex-end;
28
+ gap: 1.25rem;
29
+ padding: 1.25rem;
30
+
31
+ .str-chat__dialog__controls-button {
32
+ @include utils.button-reset;
33
+ }
34
+ }
35
+ }
36
+
37
+ .str-chat__prompt-dialog {
38
+ input[type=text] {
39
+ width: 100%;
40
+ padding: 0.625rem 1rem;
41
+ }
42
+ }
43
+
44
+ .str-chat__dialog-menu {
45
+ overflow: hidden;
46
+
47
+ .str-chat__dialog-menu__button {
48
+ display: flex;
49
+ align-items: center;
50
+ width: 100%;
51
+ padding: 0.5rem 0.75rem;
52
+
53
+ .str-chat__dialog-menu__button-icon {
54
+ height: 1rem;
55
+ width: 1rem;
56
+ }
57
+
58
+ .str-chat__dialog-menu__button-text {
59
+ padding-inline: 0.675rem;
60
+ }
61
+ }
8
62
  }
@@ -0,0 +1,103 @@
1
+ @use '../utils';
2
+
3
+ .str-chat {
4
+ /* The border radius used for the borders of the component */
5
+ --str-chat__dialog-menu-border-radius: var(--str-chat__border-radius-sm);
6
+
7
+ /* The text/icon color of the component */
8
+ --str-chat__dialog-menu-color: var(--str-chat__text-color);
9
+
10
+ /* The background color of the component */
11
+ --str-chat__dialog-menu-background-color: var(--str-chat__secondary-background-color);
12
+
13
+ /* Top border of the component */
14
+ --str-chat__dialog-menu-border-block-start: none;
15
+
16
+ /* Bottom border of the component */
17
+ --str-chat__dialog-menu-border-block-end: none;
18
+
19
+ /* Left (right in RTL layout) border of the component */
20
+ --str-chat__dialog-menu-border-inline-start: none;
21
+
22
+ /* Right (left in RTL layout) border of the component */
23
+ --str-chat__dialog-menu-border-inline-end: none;
24
+
25
+ /* Box shadow applied to the component */
26
+ --str-chat__dialog-menu-box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
27
+
28
+ /* The border radius used for the borders of an item in the message actions box */
29
+ --str-chat__dialog-menu-button-border-radius: 0;
30
+
31
+ /* The text/icon color of an item in the message actions box */
32
+ --str-chat__dialog-menu-button-color: var(--str-chat__text-color);
33
+
34
+ /* The background color of an item in the message actions box */
35
+ --str-chat__dialog-menu-button-background-color: transparent;
36
+
37
+ /* The background color of an item in the message actions box when hovered */
38
+ --str-chat__dialog-menu-button-hover-background-color: var(--str-chat__secondary-surface-color);
39
+
40
+ /* Top border of an item in the message actions box */
41
+ --str-chat__dialog-menu-button-border-block-start: none;
42
+
43
+ /* Bottom border of an item in the message actions box */
44
+ --str-chat__dialog-menu-button-border-block-end: none;
45
+
46
+ /* Left (right in RTL layout) border of an item in the message actions box */
47
+ --str-chat__dialog-menu-button-border-inline-start: none;
48
+
49
+ /* Right (left in RTL layout) border of an item in the message actions box */
50
+ --str-chat__dialog-menu-button-border-inline-end: none;
51
+
52
+ /* Box shadow applied to an item in the message actions box */
53
+ --str-chat__dialog-menu-button-box-shadow: none;
54
+ }
55
+
56
+ .str-chat__dialog {
57
+ .str-chat__dialog__title {
58
+ font: var(--str-chat__subtitle-medium-text);
59
+ }
60
+
61
+ .str-chat__dialog__prompt {
62
+ font: var(--str-chat__subtitle-text);
63
+ }
64
+
65
+ .str-chat__dialog__controls {
66
+ .str-chat__dialog__controls-button {
67
+ cursor: pointer;
68
+ font: var(--str-chat__body-medium-text);
69
+ color: var(--str-chat__primary-color);
70
+ }
71
+
72
+ .str-chat__dialog__controls-button--submit {
73
+ text-transform: uppercase;
74
+
75
+ &:disabled {
76
+ color: var(--str-chat__disabled-color);
77
+ }
78
+ }
79
+ }
80
+ }
81
+
82
+ .str-chat__prompt-dialog {
83
+ input[type=text] {
84
+ font: var(--str-chat__subtitle-text);
85
+ border-radius: 20px;
86
+ border: 1px solid var(--str-chat__primary-color);
87
+ }
88
+ }
89
+
90
+
91
+ .str-chat__dialog-menu {
92
+ @include utils.component-layer-overrides('dialog-menu');
93
+
94
+ .str-chat__dialog-menu__button {
95
+ @include utils.component-layer-overrides('dialog-menu-button');
96
+ cursor: pointer;
97
+ font: var(--str-chat__subtitle-text);
98
+
99
+ &:hover, &:focus{
100
+ background-color: var(--str-chat__dialog-menu-button-hover-background-color);
101
+ }
102
+ }
103
+ }
@@ -0,0 +1,5 @@
1
+ .str-chat__drag-and-drop-container__item {
2
+ display: flex;
3
+ width: 100%;
4
+ padding-block: 0.25rem;
5
+ }
@@ -0,0 +1,47 @@
1
+ .str-chat {
2
+ /* Top border of the component */
3
+ --str-chat__drag-and-drop-container-border-block-start: 2px solid transparent;
4
+
5
+ /* Bottom border of the component */
6
+ --str-chat__drag-and-drop-container-border-block-end: 2px solid transparent;
7
+
8
+ /* Top border of the component on dragover */
9
+ --str-chat__drag-and-drop-container-on-dragover-border-block-start: 2px solid var(--str-chat__primary-color);
10
+
11
+ /* Bottom border of the component on dragover */
12
+ --str-chat__drag-and-drop-container-on-dragover-border-block-end: 2px solid var(--str-chat__primary-color);
13
+
14
+ /* Left (right in RTL layout) border of the component on dragover */
15
+ --str-chat__drag-and-drop-container-on-dragover-border-inline-start: none;
16
+
17
+ /* Right (left in RTL layout) border of the component on dragover */
18
+ --str-chat__drag-and-drop-container-on-dragover-border-inline-end: none;
19
+ }
20
+
21
+
22
+ .str-chat__drag-and-drop-container--dragging {
23
+ cursor: grabbing;
24
+ }
25
+
26
+ .str-chat__drag-and-drop-container__item[draggable="true"] {
27
+ cursor: grab;
28
+
29
+ &:active {
30
+ background: transparent;
31
+ }
32
+ }
33
+
34
+
35
+ .str-chat__drag-and-drop-container__item {
36
+ border-bottom: var(--str-chat__drag-and-drop-container-border-block-start);
37
+ border-top: var(--str-chat__drag-and-drop-container-border-block-start);
38
+
39
+ &.str-chat__drag-and-drop-container__item--dragged-over-from-top {
40
+ border-bottom: var(--str-chat__drag-and-drop-container-on-dragover-border-block-end);
41
+ }
42
+
43
+ &.str-chat__drag-and-drop-container__item--dragged-over-from-bottom {
44
+ border-top: var(--str-chat__drag-and-drop-container-on-dragover-border-block-start);
45
+ }
46
+ }
47
+
@@ -0,0 +1,9 @@
1
+ .str-chat__dialog__field {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 0.5rem;
5
+
6
+ .str-chat__form-field-error {
7
+ margin-left: 0.5rem;
8
+ }
9
+ }
@@ -0,0 +1,17 @@
1
+ .str-chat__form-field-error {
2
+ font-size: 0.75rem;
3
+ color: var(--str-chat__danger-color)
4
+ }
5
+
6
+ // hide spin buttons form input of type number
7
+ /* Chrome, Safari, Edge, Opera */
8
+ input::-webkit-outer-spin-button,
9
+ input::-webkit-inner-spin-button {
10
+ -webkit-appearance: none;
11
+ margin: 0;
12
+ }
13
+
14
+ /* Firefox */
15
+ input[type=number] {
16
+ -moz-appearance: textfield;
17
+ }
@@ -61,7 +61,7 @@
61
61
  content: '\e809';
62
62
  } /* '' */
63
63
  .str-chat__icon--play::before {
64
- content: '\e80a';
64
+ content: '\e814';
65
65
  } /* '' */
66
66
  .str-chat__icon--reaction::before {
67
67
  content: '\e80b';
@@ -0,0 +1,4 @@
1
+ .str-chat__infinite-scroll-paginator {
2
+ overflow-y: auto;
3
+ overflow-x: hidden;
4
+ }
@@ -18,12 +18,3 @@
18
18
  }
19
19
  }
20
20
  }
21
-
22
- .str-chat__message-actions-box:not(.str-chat__message-actions-box-angular) {
23
- display: none;
24
- z-index: 1;
25
-
26
- &.str-chat__message-actions-box--open {
27
- display: block;
28
- }
29
- }
@@ -53,10 +53,6 @@
53
53
  height: calc(var(--str-chat__spacing-px) * 45);
54
54
  cursor: pointer;
55
55
 
56
- .str-chat__file-input {
57
- display: none;
58
- }
59
-
60
56
  .str-chat__file-input-label {
61
57
  @include utils.flex-row-center;
62
58
  cursor: pointer;
@@ -217,3 +213,31 @@
217
213
  transform: scale(-1, 1);
218
214
  }
219
215
  }
216
+
217
+ .str-chat__attachment-selector-actions-menu,
218
+ .str-chat__attachment-selector {
219
+ button {
220
+ @include utils.button-reset;
221
+ }
222
+ }
223
+
224
+ .str-chat__attachment-selector {
225
+ .str-chat__attachment-selector__menu-button {
226
+ padding: 0.25rem 0.5rem;
227
+ cursor: pointer;
228
+
229
+ .str-chat__attachment-selector__menu-button__icon {
230
+ height: 26px;
231
+ width: 26px;
232
+ }
233
+ }
234
+ }
235
+
236
+ .str-chat__file-input {
237
+ display: none;
238
+ }
239
+
240
+ .str-chat__attachment-selector-actions-menu {
241
+ min-width: 300px;
242
+ padding-block: 0.5rem;
243
+ }
@@ -168,6 +168,18 @@
168
168
 
169
169
  /* Box shadow applied to the cooldown timer */
170
170
  --str-chat__cooldown-box-shadow: none;
171
+
172
+ /* Color applied to an icon in a button that opens attachment selector */
173
+ --str-chat__attachment-selector-button-icon-color: var(--str-chat__text-low-emphasis-color);
174
+
175
+ /* Color applied to an icon in a button that opens attachment selector when hovered over */
176
+ --str-chat__attachment-selector-button-icon-color-hover: var(--str-chat__primary-color);
177
+
178
+ /* Color applied to an attachment selector menu item icon when hovered over */
179
+ --str-chat__attachment-selector-actions-menu-button-icon-color: var(--str-chat__primary-color);
180
+
181
+ /* Color applied to an attachment selector menu item icon when hovered over or focused */
182
+ --str-chat__attachment-selector-actions-menu-button-icon-color-active: var(--str-chat__primary-color);
171
183
  }
172
184
 
173
185
  .str-chat__message-input {
@@ -283,3 +295,51 @@
283
295
  }
284
296
  }
285
297
  }
298
+
299
+ .str-chat__attachment-selector {
300
+ .str-chat__attachment-selector__menu-button {
301
+ .str-chat__attachment-selector__menu-button__icon {
302
+ background-color: var(--str-chat__attachment-selector-button-icon-color);
303
+ -webkit-mask: var(--str-chat__add-attachment-icon) no-repeat center / contain;
304
+ mask: var(--str-chat__add-attachment-icon) no-repeat center / contain;
305
+ }
306
+
307
+ &:hover {
308
+ .str-chat__attachment-selector__menu-button__icon {
309
+ background-color: var(--str-chat__attachment-selector-button-icon-color-hover);
310
+ }
311
+ }
312
+ }
313
+ }
314
+
315
+ .str-chat__attachment-selector-actions-menu {
316
+ .str-chat__attachment-selector-actions-menu__button {
317
+ color: var(--str-chat__text-low-emphasis-color);
318
+
319
+ .str-chat__dialog-menu__button-icon {
320
+ background-color: var(--str-chat__attachment-selector-actions-menu-button-icon-color);
321
+ }
322
+
323
+ &:hover, &:focus {
324
+ color: var(--str-chat__text-color);
325
+
326
+ .str-chat__dialog-menu__button-icon {
327
+ background-color: var(--str-chat__attachment-selector-actions-menu-button-icon-color-active);
328
+ }
329
+ }
330
+ }
331
+
332
+ .str-chat__attachment-selector-actions-menu__upload-file-button {
333
+ .str-chat__dialog-menu__button-icon {
334
+ -webkit-mask: var(--str-chat__folder-icon) no-repeat center / contain;
335
+ mask: var(--str-chat__folder-icon) no-repeat center / contain;
336
+ }
337
+ }
338
+
339
+ .str-chat__attachment-selector-actions-menu__create-poll-button {
340
+ .str-chat__dialog-menu__button-icon {
341
+ -webkit-mask: var(--str-chat__poll-icon) no-repeat center / contain;
342
+ mask: var(--str-chat__poll-icon) no-repeat center / contain;
343
+ }
344
+ }
345
+ }
@@ -11,6 +11,36 @@
11
11
  height: 100%;
12
12
  z-index: 100;
13
13
 
14
+ .str-chat__modal-header {
15
+ display: flex;
16
+ align-items: center;
17
+ width: 100%;
18
+ padding: 1.25rem 1rem;
19
+
20
+ button.str-chat__modal-header__go-back-button,
21
+ .str-chat__modal__close-button {
22
+ padding: 1rem;
23
+ background-size: 0.875rem;
24
+ background-repeat: no-repeat;
25
+ background-position: center;
26
+ }
27
+
28
+ button.str-chat__modal-header__go-back-button {
29
+ background-image: var(--str-chat__arrow-left-icon);
30
+ }
31
+
32
+ .str-chat__modal-header__close-button {
33
+ background-image: var(--str-chat__close-icon);
34
+ background-repeat: no-repeat;
35
+ height: 0.875rem;
36
+ width: 0.875rem;
37
+ }
38
+
39
+ .str-chat__modal-header__title {
40
+ flex: 1;
41
+ }
42
+ }
43
+
14
44
  button.str-chat__modal__close-button {
15
45
  @include utils.unset-button;
16
46
  margin: var(--str-chat__spacing-2);
@@ -31,6 +61,7 @@
31
61
  @include utils.flex-col-center;
32
62
  padding: var(--str-chat__spacing-8) var(--str-chat__spacing-4);
33
63
  width: 40%;
64
+ max-height: 80%;
34
65
  min-width: 0;
35
66
  min-height: 0;
36
67
  }
@@ -46,6 +46,12 @@
46
46
  @include utils.component-layer-overrides('modal');
47
47
  }
48
48
 
49
+ .str-chat__modal-header {
50
+ .str-chat__modal-header__title {
51
+ font: var(--str-chat__subtitle2-medium-text);
52
+ }
53
+ }
54
+
49
55
  .str-chat__modal__close-button {
50
56
  --str-chat-icon-color: var(--str-chat__modal-close-icon-color);
51
57
  @include utils.button-reset;
@@ -4,7 +4,7 @@
4
4
  align-self: center;
5
5
  padding: var(--str-chat__spacing-1) var(--str-chat__spacing-2);
6
6
  bottom: calc(var(--str-chat__spacing-px) * 10);
7
- z-index: 101;
7
+ z-index: 100;
8
8
  }
9
9
 
10
10
  .str-chat__list-notifications {