stream-chat-angular 6.2.0 → 6.3.0-beta.2

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 (106) hide show
  1. package/assets/i18n/en.d.ts +42 -0
  2. package/assets/version.d.ts +1 -1
  3. package/esm2020/assets/i18n/en.mjs +43 -1
  4. package/esm2020/assets/version.mjs +2 -2
  5. package/esm2020/lib/channel-list/channel-list.component.mjs +3 -3
  6. package/esm2020/lib/channel-preview/channel-preview.component.mjs +4 -1
  7. package/esm2020/lib/channel.service.mjs +6 -3
  8. package/esm2020/lib/custom-templates.service.mjs +9 -1
  9. package/esm2020/lib/icon/icon.component.mjs +1 -1
  10. package/esm2020/lib/message/message.component.mjs +21 -6
  11. package/esm2020/lib/message-actions.service.mjs +5 -1
  12. package/esm2020/lib/message-input/message-input.component.mjs +30 -5
  13. package/esm2020/lib/message-preview.mjs +3 -2
  14. package/esm2020/lib/modal/modal.component.mjs +3 -3
  15. package/esm2020/lib/modal/stream-modal.module.mjs +19 -0
  16. package/esm2020/lib/notification-list/stream-notification.module.mjs +20 -0
  17. package/esm2020/lib/paginated-list/stream-paginated-list.module.mjs +20 -0
  18. package/esm2020/lib/polls/base-poll.component.mjs +87 -0
  19. package/esm2020/lib/polls/poll/poll.component.mjs +34 -0
  20. package/esm2020/lib/polls/poll-actions/add-option/add-option.component.mjs +67 -0
  21. package/esm2020/lib/polls/poll-actions/poll-actions.component.mjs +137 -0
  22. package/esm2020/lib/polls/poll-actions/poll-answers-list/poll-answers-list.component.mjs +82 -0
  23. package/esm2020/lib/polls/poll-actions/poll-results/poll-results-list/poll-results-list.component.mjs +63 -0
  24. package/esm2020/lib/polls/poll-actions/poll-results/poll-vote/poll-vote.component.mjs +33 -0
  25. package/esm2020/lib/polls/poll-actions/poll-results/poll-vote-results-list/poll-vote-results-list.component.mjs +82 -0
  26. package/esm2020/lib/polls/poll-actions/upsert-answer/upsert-answer.component.mjs +60 -0
  27. package/esm2020/lib/polls/poll-composer/poll-composer.component.mjs +134 -0
  28. package/esm2020/lib/polls/poll-composer/validators.mjs +18 -0
  29. package/esm2020/lib/polls/poll-header/poll-header.component.mjs +80 -0
  30. package/esm2020/lib/polls/poll-option-selector/poll-option-selector.component.mjs +137 -0
  31. package/esm2020/lib/polls/poll-options-list/poll-options-list.component.mjs +39 -0
  32. package/esm2020/lib/polls/poll-preview/poll-preview.component.mjs +31 -0
  33. package/esm2020/lib/polls/stream-polls.module.mjs +108 -0
  34. package/esm2020/lib/polls/unique.validator.mjs +13 -0
  35. package/esm2020/lib/stream-chat.module.mjs +26 -19
  36. package/esm2020/lib/types.mjs +1 -1
  37. package/esm2020/public-api.mjs +18 -1
  38. package/fesm2015/stream-chat-angular.mjs +1333 -61
  39. package/fesm2015/stream-chat-angular.mjs.map +1 -1
  40. package/fesm2020/stream-chat-angular.mjs +1291 -59
  41. package/fesm2020/stream-chat-angular.mjs.map +1 -1
  42. package/lib/channel.service.d.ts +2 -1
  43. package/lib/custom-templates.service.d.ts +14 -0
  44. package/lib/icon/icon.component.d.ts +1 -1
  45. package/lib/message/message.component.d.ts +1 -1
  46. package/lib/message-actions.service.d.ts +4 -0
  47. package/lib/message-input/message-input.component.d.ts +11 -1
  48. package/lib/message-preview.d.ts +1 -1
  49. package/lib/modal/stream-modal.module.d.ts +9 -0
  50. package/lib/notification-list/stream-notification.module.d.ts +10 -0
  51. package/lib/paginated-list/stream-paginated-list.module.d.ts +10 -0
  52. package/lib/polls/base-poll.component.d.ts +43 -0
  53. package/lib/polls/poll/poll.component.d.ts +12 -0
  54. package/lib/polls/poll-actions/add-option/add-option.component.d.ts +22 -0
  55. package/lib/polls/poll-actions/poll-actions.component.d.ts +50 -0
  56. package/lib/polls/poll-actions/poll-answers-list/poll-answers-list.component.d.ts +25 -0
  57. package/lib/polls/poll-actions/poll-results/poll-results-list/poll-results-list.component.d.ts +22 -0
  58. package/lib/polls/poll-actions/poll-results/poll-vote/poll-vote.component.d.ts +20 -0
  59. package/lib/polls/poll-actions/poll-results/poll-vote-results-list/poll-vote-results-list.component.d.ts +24 -0
  60. package/lib/polls/poll-actions/upsert-answer/upsert-answer.component.d.ts +27 -0
  61. package/lib/polls/poll-composer/poll-composer.component.d.ts +43 -0
  62. package/lib/polls/poll-composer/validators.d.ts +3 -0
  63. package/lib/polls/poll-header/poll-header.component.d.ts +19 -0
  64. package/lib/polls/poll-option-selector/poll-option-selector.component.d.ts +27 -0
  65. package/lib/polls/poll-options-list/poll-options-list.component.d.ts +17 -0
  66. package/lib/polls/poll-preview/poll-preview.component.d.ts +13 -0
  67. package/lib/polls/stream-polls.module.d.ts +26 -0
  68. package/lib/polls/unique.validator.d.ts +2 -0
  69. package/lib/stream-chat.module.d.ts +20 -19
  70. package/lib/types.d.ts +2 -1
  71. package/package.json +6 -2
  72. package/public-api.d.ts +17 -0
  73. package/src/assets/i18n/en.ts +46 -0
  74. package/src/assets/styles/css/index.css +1 -1
  75. package/src/assets/styles/css/index.layout.css +1 -1
  76. package/src/assets/styles/scss/AttachmentList/AttachmentList-layout.scss +50 -0
  77. package/src/assets/styles/scss/AttachmentList/AttachmentList-theme.scss +56 -0
  78. package/src/assets/styles/scss/AttachmentPreviewList/AttachmentPreviewList-layout.scss +4 -1
  79. package/src/assets/styles/scss/AttachmentPreviewList/AttachmentPreviewList-theme.scss +11 -0
  80. package/src/assets/styles/scss/Autocomplete/Autocomplete-layout.scss +14 -0
  81. package/src/assets/styles/scss/Autocomplete/Autocomplete-theme.scss +11 -0
  82. package/src/assets/styles/scss/Dialog/Dialog-layout.scss +13 -5
  83. package/src/assets/styles/scss/DropzoneContainer/DropzoneContainer-layout.scss +14 -0
  84. package/src/assets/styles/scss/DropzoneContainer/DropzoneContainer-theme.scss +17 -0
  85. package/src/assets/styles/scss/Form/Form-layout.scss +40 -0
  86. package/src/assets/styles/scss/Form/Form-theme.scss +75 -10
  87. package/src/assets/styles/scss/Icon/Icon-layout.scss +6 -0
  88. package/src/assets/styles/scss/Icon/Icon-theme.scss +4 -0
  89. package/src/assets/styles/scss/LinkPreview/LinkPreview-layout.scss +18 -0
  90. package/src/assets/styles/scss/LinkPreview/LinkPreview-theme.scss +15 -0
  91. package/src/assets/styles/scss/Location/Location-layout.scss +52 -0
  92. package/src/assets/styles/scss/Location/Location-theme.scss +32 -0
  93. package/src/assets/styles/scss/Message/Message-layout.scss +37 -2
  94. package/src/assets/styles/scss/Message/Message-theme.scss +40 -1
  95. package/src/assets/styles/scss/MessageActionsBox/MessageActionsBox-theme.scss +8 -0
  96. package/src/assets/styles/scss/MessageInput/MessageInput-layout.scss +32 -13
  97. package/src/assets/styles/scss/MessageInput/MessageInput-theme.scss +28 -20
  98. package/src/assets/styles/scss/Modal/Modal-layout.scss +2 -0
  99. package/src/assets/styles/scss/Modal/Modal-theme.scss +21 -6
  100. package/src/assets/styles/scss/Poll/Poll-layout.scss +45 -44
  101. package/src/assets/styles/scss/Poll/Poll-theme.scss +8 -36
  102. package/src/assets/styles/scss/_icons.scss +1 -0
  103. package/src/assets/styles/scss/index.layout.scss +3 -1
  104. package/src/assets/styles/scss/index.scss +2 -0
  105. package/src/assets/version.ts +1 -1
  106. /package/src/assets/styles/scss/DragAndDropContainer/{DragAmdDropContainer-layout.scss → DragAndDropContainer-layout.scss} +0 -0
@@ -88,9 +88,16 @@
88
88
  hyphens: auto;
89
89
  overflow-wrap: break-word;
90
90
 
91
+ .str-chat__message-reminder {
92
+ grid-area: message-reminder;
93
+ padding-block: 0.5rem 0.125rem;
94
+ margin: 0;
95
+ }
96
+
91
97
  &.str-chat__message--other,
92
98
  &.str-chat__quoted-message-preview {
93
99
  grid-template-areas:
100
+ '. message-reminder'
94
101
  'avatar message'
95
102
  '. replies'
96
103
  '. translation-notice'
@@ -103,6 +110,7 @@
103
110
 
104
111
  &.str-chat__message--me {
105
112
  grid-template-areas:
113
+ 'message-reminder'
106
114
  'message'
107
115
  'replies'
108
116
  'translation-notice'
@@ -187,6 +195,7 @@
187
195
 
188
196
  &.str-chat__message--me .str-chat__message-inner {
189
197
  grid-template-areas:
198
+ 'reminder reminder'
190
199
  'reactions reactions'
191
200
  'options message-bubble';
192
201
  grid-template-columns: 1fr auto;
@@ -251,7 +260,26 @@
251
260
  }
252
261
  }
253
262
 
254
- .str-chat__message-replies-count-button-wrapper {
263
+ .str-chat__message-status-sent {
264
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 12);
265
+
266
+ svg {
267
+ width: var(--str-chat-icon-height);
268
+ height: var(--str-chat-icon-height);
269
+ }
270
+ }
271
+
272
+ .str-chat__message-status-delivered {
273
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 15);
274
+
275
+ svg {
276
+ width: var(--str-chat-icon-height);
277
+ height: var(--str-chat-icon-height);
278
+ }
279
+ }
280
+
281
+ .str-chat__message-replies-count-button-wrapper,
282
+ .str-chat__message-is-thread-reply-button-wrapper {
255
283
  grid-area: replies;
256
284
 
257
285
  button {
@@ -313,7 +341,8 @@
313
341
  .str-chat__virtual-list:not(.str-chat__message-options-in-bubble, .str-chat__message-with-touch-support) {
314
342
  /* This rule won't be applied in browsers that don't support :has() */
315
343
  .str-chat__li:hover:not(:has(.str-chat__reaction-list:hover, .str-chat__modal--open)),
316
- .str-chat__li:focus-within:not(:has(.str-chat__reaction-list:focus-within, .str-chat__modal--open)) {
344
+ .str-chat__li:focus-within:not(:has(.str-chat__reaction-list:focus-within, .str-chat__modal--open)),
345
+ .str-chat__li:has(.str-chat__message-options--active) {
317
346
  .str-chat__message-options {
318
347
  display: flex;
319
348
  }
@@ -383,6 +412,12 @@
383
412
  }
384
413
  }
385
414
 
415
+ .str-chat__message-inner:focus-within {
416
+ .str-chat__message-options {
417
+ display: flex;
418
+ }
419
+ }
420
+
386
421
  .str-chat__message--other .str-chat__message-inner:not(:has(.str-chat__message-options--active)) {
387
422
  margin-inline-end: var(--str-chat-message-options-size);
388
423
  }
@@ -198,6 +198,30 @@
198
198
 
199
199
  /* The hover color of the translation notice that is displayed if a message is translated with auto-translation */
200
200
  --str-chat__translation-notice-active-background-color: var(--str-chat__tertiary-surface-color);
201
+
202
+ /* The text color of the message reminder, if it's a quoted message */
203
+ --str-chat__message-reminder-color: var(--str-chat__primary-color);
204
+
205
+ /* The background of the message reminder, if it's a quoted message */
206
+ --str-chat__message-reminder-background-color: var(--str-chat__secondary-background-color);
207
+
208
+ /* Top border of the message reminder */
209
+ --str-chat__message-reminder-border-block-start: none;
210
+
211
+ /* Bottom border of the message reminder */
212
+ --str-chat__message-reminder-border-block-end: none;
213
+
214
+ /* Left (right in RTL layout) border of the message reminder */
215
+ --str-chat__message-reminder-border-inline-start: none;
216
+
217
+ /* Right (left in RTL layout) border of the message reminder */
218
+ --str-chat__message-reminder-border-inline-end: none;
219
+
220
+ /* Box shadow applied to the message reminder */
221
+ --str-chat__message-reminder-box-shadow: none;
222
+
223
+ /* The border radius used for the borders of a message reminder */
224
+ --str-chat__message-reminder-border-radius: 0;
201
225
  }
202
226
 
203
227
  .str-chat__message--system {
@@ -228,6 +252,11 @@
228
252
  color: var(--str-chat__message-link-color);
229
253
  }
230
254
 
255
+ .str-chat__message-reminder {
256
+ @include utils.component-layer-overrides('message-reminder');
257
+ font: var(--str-chat__caption-medium-text);
258
+ }
259
+
231
260
  .str-chat__message-bubble {
232
261
  @include utils.component-layer-overrides('message-bubble');
233
262
  font: var(--str-chat__body2-text);
@@ -315,7 +344,17 @@
315
344
  }
316
345
  }
317
346
 
318
- .str-chat__message-replies-count-button-wrapper {
347
+ .str-chat__message-status-sent,
348
+ .str-chat__message-status-delivered {
349
+ svg {
350
+ path {
351
+ fill: var(--str-chat__text-low-emphasis-color);
352
+ }
353
+ }
354
+ }
355
+
356
+ .str-chat__message-replies-count-button-wrapper,
357
+ .str-chat__message-is-thread-reply-button-wrapper {
319
358
  button {
320
359
  border: none;
321
360
  background-color: transparent;
@@ -66,6 +66,14 @@
66
66
  background-color: var(--str-chat__message-actions-box-item-hover-background-color);
67
67
  }
68
68
  }
69
+
70
+ .str_chat__button-with-submenu--submenu-open {
71
+ background-color: var(--str-chat__message-actions-box-item-hover-background-color);
72
+ }
73
+
74
+ .str-chat__message-actions-box__submenu {
75
+ @include utils.component-layer-overrides('message-actions-box');
76
+ }
69
77
  }
70
78
 
71
79
  @media (hover: none) {
@@ -26,19 +26,6 @@
26
26
  }
27
27
  }
28
28
 
29
- .str-chat__dropzone-container {
30
- @include utils.flex-row-center;
31
-
32
- position: absolute;
33
- height: 100%;
34
- width: 100%;
35
- z-index: 5;
36
-
37
- p {
38
- margin: unset;
39
- }
40
- }
41
-
42
29
  .str-chat__message-input-inner {
43
30
  flex-grow: 1;
44
31
  width: 100%;
@@ -59,6 +46,14 @@
59
46
  }
60
47
  }
61
48
 
49
+ .str-chat-angular__create-poll {
50
+ --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 21);
51
+ @include utils.flex-row-center;
52
+ width: calc(var(--str-chat__spacing-px) * 45);
53
+ height: calc(var(--str-chat__spacing-px) * 45);
54
+ cursor: pointer;
55
+ }
56
+
62
57
  .str-chat__message-textarea-container {
63
58
  @include utils.flex-col-center;
64
59
  width: 100%;
@@ -179,6 +174,11 @@
179
174
 
180
175
  .str-chat__quoted-message-preview {
181
176
  padding: var(--str-chat__spacing-2);
177
+
178
+ .str-chat__quoted-poll-preview__name {
179
+ @include utils.ellipsis-text();
180
+ overflow-x: hidden; // force ellipsis to show
181
+ }
182
182
  }
183
183
 
184
184
  .str-chat__recording-permission-denied-notification {
@@ -247,3 +247,22 @@
247
247
  min-width: 300px;
248
248
  padding-block: 0.5rem;
249
249
  }
250
+
251
+ .str-chat__send-to-channel-checkbox__container {
252
+ width: 100%;
253
+ display: flex;
254
+ padding: 0.5rem 0.75rem;
255
+
256
+ .str-chat__send-to-channel-checkbox__field {
257
+ display: flex;
258
+ align-items: center;
259
+
260
+ label {
261
+ padding-inline: 0.5rem;
262
+ }
263
+
264
+ input {
265
+ margin: 0;
266
+ }
267
+ }
268
+ }
@@ -25,15 +25,6 @@
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
-
37
28
  /* The border radius used for the borders of the textarea */
38
29
  --str-chat__message-textarea-border-radius: var(--str-chat__border-radius-md);
39
30
 
@@ -179,20 +170,16 @@
179
170
  --str-chat__attachment-selector-actions-menu-button-icon-color: var(--str-chat__primary-color);
180
171
 
181
172
  /* 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);
173
+ --str-chat__attachment-selector-actions-menu-button-icon-color-active: var(
174
+ --str-chat__primary-color
175
+ );
183
176
  }
184
177
 
185
178
  .str-chat__message-input {
186
179
  @include utils.component-layer-overrides('message-input');
187
180
 
188
- .str-chat__dropzone-container {
189
- background-color: var(--str-chat__dropzone-container-background-color);
190
- color: var(--str-chat__dropzone-container-color);
191
- backdrop-filter: var(--str-chat__dropzone-container-backdrop-filter);
192
- font: var(--str-chat__subtitle-text);
193
- }
194
-
195
- .str-chat__file-input-container {
181
+ .str-chat__file-input-container,
182
+ .str-chat-angular__create-poll {
196
183
  --str-chat-icon-color: var(--str-chat__message-input-tools-color);
197
184
  @include utils.component-layer-overrides('message-input-tools');
198
185
 
@@ -326,11 +313,14 @@
326
313
  background-color: var(--str-chat__attachment-selector-actions-menu-button-icon-color);
327
314
  }
328
315
 
329
- &:hover, &:focus {
316
+ &:hover,
317
+ &:focus {
330
318
  color: var(--str-chat__text-color);
331
319
 
332
320
  .str-chat__dialog-menu__button-icon {
333
- background-color: var(--str-chat__attachment-selector-actions-menu-button-icon-color-active);
321
+ background-color: var(
322
+ --str-chat__attachment-selector-actions-menu-button-icon-color-active
323
+ );
334
324
  }
335
325
  }
336
326
  }
@@ -348,4 +338,22 @@
348
338
  mask: var(--str-chat__poll-icon) no-repeat center / contain;
349
339
  }
350
340
  }
341
+
342
+ .str-chat__attachment-selector-actions-menu__add-location-button {
343
+ .str-chat__dialog-menu__button-icon {
344
+ -webkit-mask: var(--str-chat__location-icon) no-repeat center / contain;
345
+ mask: var(--str-chat__location-icon) no-repeat center / contain;
346
+ }
347
+ }
348
+ }
349
+
350
+ .str-chat__send-to-channel-checkbox__field {
351
+ * {
352
+ cursor: pointer;
353
+ }
354
+
355
+ label {
356
+ color: var(--str-chat__text-low-emphasis-color);
357
+ font: var(--str-chat__body-text);
358
+ }
351
359
  }
@@ -30,6 +30,8 @@
30
30
  }
31
31
 
32
32
  .str-chat__modal-header__close-button {
33
+ @include utils.button-reset;
34
+ cursor: pointer;
33
35
  background-image: var(--str-chat__close-icon);
34
36
  background-repeat: no-repeat;
35
37
  height: 0.875rem;
@@ -74,14 +74,11 @@
74
74
  }
75
75
  }
76
76
 
77
- // stream-chat-react image gallery does not show the modal inner container. It has to be reset to
78
- // width of its content in order the modal can be closed when clicked on overlay
79
- .str-chat__message-attachment--card,
80
- .str-chat__message-attachment--image,
81
- .str-chat__message-attachment--gallery {
82
- .str-chat__modal--open .str-chat__modal__inner.str-chat-react__modal__inner {
77
+ @mixin image-on-modal {
78
+ .str-chat__modal__inner.str-chat-react__modal__inner {
83
79
  background-color: transparent;
84
80
  width: unset;
81
+ max-width: unset;
85
82
  height: unset;
86
83
  padding: 0;
87
84
 
@@ -92,3 +89,21 @@
92
89
  }
93
90
  }
94
91
  }
92
+
93
+ // stream-chat-react image gallery does not show the modal inner container. It has to be reset to
94
+ // width of its content in order the modal can be closed when clicked on overlay
95
+ // todo: remove this rule once only GlobalModal is used and old Modal is removed from stream-chat-react
96
+ .str-chat__message-attachment--card,
97
+ .str-chat__message-attachment--image,
98
+ .str-chat__message-attachment--gallery {
99
+ .str-chat__modal--open {
100
+ @include image-on-modal;
101
+ }
102
+ }
103
+
104
+ .str-chat-react__modal.str-chat__modal--open {
105
+ &.str-chat__image-modal,
106
+ &.str-chat__gallery-modal {
107
+ @include image-on-modal;
108
+ }
109
+ }
@@ -45,12 +45,23 @@
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  align-items: center;
48
+ }
49
+ }
48
50
 
49
- .str-chat__poll-action {
50
- padding: 0.675rem;
51
- font: var(--str-chat__subtitle-text);
52
- color: var(--str-chat__primary-color);
53
- }
51
+ .str-chat__poll-action {
52
+ padding: 0.675rem;
53
+ font: var(--str-chat__subtitle-text);
54
+ color: var(--str-chat__primary-color);
55
+ }
56
+
57
+ .str-chat__poll-results-modal,
58
+ .str-chat__poll-answer-list-modal,
59
+ .str-chat__add-poll-answer-modal,
60
+ .str-chat__suggest-poll-option-modal,
61
+ .str-chat__poll-options-modal {
62
+ button {
63
+ @include utils.button-reset;
64
+ cursor: pointer;
54
65
  }
55
66
  }
56
67
 
@@ -89,7 +100,6 @@
89
100
  }
90
101
  }
91
102
 
92
-
93
103
  .str-chat__poll-option-list--full {
94
104
  .str-chat__poll-option {
95
105
  display: flex;
@@ -137,7 +147,6 @@
137
147
  }
138
148
  }
139
149
 
140
-
141
150
  .str-chat__modal__poll-results {
142
151
  .str-chat__poll-option {
143
152
  display: flex;
@@ -145,11 +154,15 @@
145
154
  }
146
155
  }
147
156
 
148
- .str-chat__poll-actions .str-chat__modal {
157
+ .str-chat-react__modal.str-chat__poll-action-modal,
158
+ .str-chat__poll-actions:not(.str-chat-angular__poll-actions) .str-chat__modal {
149
159
  .str-chat__modal__close-button {
150
160
  display: none;
151
161
  }
162
+ }
152
163
 
164
+ .str-chat-react__modal.str-chat__poll-action-modal,
165
+ .str-chat__poll-actions .str-chat__modal {
153
166
  .str-chat__modal__inner {
154
167
  $content-offset-inline: 1rem;
155
168
  padding: 0 0 0.5rem;
@@ -320,6 +333,7 @@
320
333
  align-items: flex-start;
321
334
  }
322
335
 
336
+ .str-chat-angular__create-poll-modal .str-chat__modal,
323
337
  .str-chat__modal.str-chat__create-poll-modal {
324
338
  .str-chat__modal__close-button {
325
339
  display: none;
@@ -401,7 +415,7 @@
401
415
  }
402
416
 
403
417
  .str-chat__form__input-field {
404
- width: 100%;
418
+ width: 100%;
405
419
 
406
420
  .str-chat__form__input-field__value {
407
421
  padding: 0;
@@ -434,41 +448,6 @@
434
448
  width: 1rem;
435
449
  }
436
450
  }
437
-
438
- .str-chat__form__switch-field {
439
- width: 100%;
440
- padding: 1rem;
441
-
442
- input[type='checkbox'] {
443
- display: none;
444
- }
445
-
446
- label {
447
- display: flex;
448
- align-items: center;
449
- justify-content: space-between;
450
- width: 100%;
451
- }
452
-
453
- .str-chat__form__switch-field__switch {
454
- display: flex;
455
- align-items: center;
456
- width: calc(var(--str-chat__spacing-px) * 52);
457
- height: calc(var(--str-chat__spacing-px) * 32);
458
- padding: 0.25rem;
459
-
460
- .str-chat__form__switch-field__switch-handle {
461
- height: 1.5rem;
462
- width: 1.5rem;
463
- }
464
-
465
- &.str-chat__form__switch-field__switch--on {
466
- .str-chat__form__switch-field__switch-handle {
467
- transform: translateX(1.25rem);
468
- }
469
- }
470
- }
471
- }
472
451
  }
473
452
  }
474
453
 
@@ -486,3 +465,25 @@
486
465
  }
487
466
  }
488
467
  }
468
+
469
+ .str-chat-angular__poll-actions {
470
+ .str-chat__modal__poll-option-list {
471
+ max-height: 100%;
472
+ min-height: 0;
473
+ display: flex;
474
+ flex-direction: column;
475
+
476
+ .str-chat__modal__poll-option-list__body {
477
+ max-height: 100%;
478
+ min-height: 0;
479
+ display: flex;
480
+ flex-direction: column;
481
+
482
+ stream-poll-options-list {
483
+ height: 100%;
484
+ overflow-y: auto;
485
+ overflow-x: hidden;
486
+ }
487
+ }
488
+ }
489
+ }
@@ -44,14 +44,14 @@
44
44
  }
45
45
  }
46
46
  }
47
+ }
47
48
 
48
- .str-chat__poll-option-list--full,
49
- .str-chat__poll-answer,
50
- .str-chat__modal__poll-option-list__title,
51
- .str-chat__modal__poll-results .str-chat__modal__poll-results__title,
52
- .str-chat__modal__poll-results .str-chat__poll-option {
53
- border-radius: 0.75rem;
54
- }
49
+ .str-chat__poll-option-list--full,
50
+ .str-chat__poll-answer,
51
+ .str-chat__modal__poll-option-list__title,
52
+ .str-chat__modal__poll-results .str-chat__modal__poll-results__title,
53
+ .str-chat__modal__poll-results .str-chat__poll-option {
54
+ border-radius: 0.75rem;
55
55
  }
56
56
 
57
57
  .str-chat__poll-option-list--full {
@@ -66,7 +66,7 @@
66
66
  }
67
67
  }
68
68
 
69
- .str-chat__poll-actions .str-chat__modal {
69
+ .str-chat__modal, .str-chat__poll-actions .str-chat__modal {
70
70
  .str-chat__poll-answer__text,
71
71
  .str-chat__modal__poll-option-list__title,
72
72
  .str-chat__modal__poll-results__title {
@@ -175,32 +175,4 @@
175
175
  border: 1px solid var(--str-chat__message-error-message-color);
176
176
  }
177
177
  }
178
-
179
- .str-chat__form__switch-field {
180
- @include field-background;
181
-
182
- &, label {
183
- cursor: pointer;
184
- }
185
-
186
- .str-chat__form__switch-field__switch {
187
- cursor: pointer;
188
- background-color: var(--str-chat__text-low-emphasis-color);
189
- border-radius: 100px;
190
-
191
- .str-chat__form__switch-field__switch-handle {
192
- border-radius: var(--str-chat__border-radius-circle);
193
- background-color: var(--str-chat__disabled-color);
194
- }
195
-
196
- &.str-chat__form__switch-field__switch--on {
197
- background-color: var(--str-chat__green600);
198
-
199
- .str-chat__form__switch-field__switch-handle {
200
- background-color: var(--str-chat__background-color);
201
- border-radius: var(--str-chat__border-radius-circle);
202
- }
203
- }
204
- }
205
- }
206
178
  }
@@ -8,6 +8,7 @@
8
8
  --str-chat__add-attachment-icon: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjggMjgiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNS4zMz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--str-chat__magnifier-glass-icon: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjEgMjEiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOSAwQzEzLjk2OCAwIDE4IDQuMDMyIDE4IDlDMTggMTMuOTY4IDEzLjk2OCAxOCA5IDE4QzQuMDMyIDE4IDAgMTMuOTY4IDAgOUMwIDQuMDMyIDQuMDMyIDAgOSAwWk05IDE2QzEyLjg2NyAxNiAxNiAxMi44NjcgMTYgOUMxNiA1LjEzMiAxMi44NjcgMiA5IDJDNS4xMzIgMiAyIDUuMTMyIDIgOUMyIDEyLjg2NyA1LjEzMiAxNiA5IDE2Wk0yMC4zMTQgMTguODk5TDE3LjQ4NSAxNi4wNzFMMTYuMDcxIDE3LjQ4NUwxOC44OTkgMjAuMzE0TDIwLjMxNCAxOC44OTlaIi8+Cjwvc3ZnPgo=');
@@ -16,7 +16,8 @@
16
16
  @use 'common/CTAButton/CTAButton-layout';
17
17
  @use 'common/CircleFAButton/CircleFAButton-layout';
18
18
  @use 'Dialog/Dialog-layout';
19
- @use 'DragAndDropContainer/DragAmdDropContainer-layout';
19
+ @use 'DragAndDropContainer/DragAndDropContainer-layout';
20
+ @use 'DropzoneContainer/DropzoneContainer-layout';
20
21
  @use 'EditMessageForm/EditMessageForm-layout';
21
22
  @use 'Form/Form-layout';
22
23
  @use 'ImageCarousel/ImageCarousel-layout';
@@ -24,6 +25,7 @@
24
25
  @use 'InfiniteScrollPaginator/InfiniteScrollPaginator-layout';
25
26
  @use 'LinkPreview/LinkPreview-layout';
26
27
  @use 'LoadingIndicator/LoadingIndicator-layout';
28
+ @use 'Location/Location-layout';
27
29
  @use 'Message/Message-layout';
28
30
  @use 'MessageActionsBox/MessageActionsBox-layout';
29
31
  @use 'MessageBouncePrompt/MessageBouncePrompt-layout';
@@ -19,12 +19,14 @@
19
19
  @use 'ChannelSearch/ChannelSearch-theme';
20
20
  @use 'Dialog/Dialog-theme';
21
21
  @use 'DragAndDropContainer/DragAndDropContainer-theme';
22
+ @use 'DropzoneContainer/DropzoneContainer-theme';
22
23
  @use 'EditMessageForm/EditMessageForm-theme';
23
24
  @use 'Form/Form-theme';
24
25
  @use 'Icon/Icon-theme';
25
26
  @use 'ImageCarousel/ImageCarousel-theme';
26
27
  @use 'LinkPreview/LinkPreview-theme';
27
28
  @use 'LoadingIndicator/LoadingIndicator-theme';
29
+ @use 'Location/Location-theme';
28
30
  @use 'Message/Message-theme';
29
31
  @use 'MessageActionsBox/MessageActionsBox-theme';
30
32
  @use 'MessageBouncePrompt/MessageBouncePrompt-theme';
@@ -1 +1 @@
1
- export const version = '6.2.0';
1
+ export const version = '6.3.0-beta.2';