stream-chat-react 13.2.3 → 13.4.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 (97) hide show
  1. package/dist/components/Attachment/Attachment.d.ts +5 -3
  2. package/dist/components/Attachment/Attachment.js +12 -5
  3. package/dist/components/Attachment/AttachmentContainer.d.ts +4 -3
  4. package/dist/components/Attachment/AttachmentContainer.js +5 -1
  5. package/dist/components/Attachment/Geolocation.d.ts +13 -0
  6. package/dist/components/Attachment/Geolocation.js +34 -0
  7. package/dist/components/Attachment/icons.d.ts +2 -0
  8. package/dist/components/Attachment/icons.js +5 -0
  9. package/dist/components/Attachment/index.d.ts +3 -1
  10. package/dist/components/Attachment/index.js +3 -1
  11. package/dist/components/Attachment/utils.d.ts +4 -1
  12. package/dist/components/Channel/Channel.d.ts +1 -1
  13. package/dist/components/Channel/Channel.js +2 -0
  14. package/dist/components/ChannelPreview/utils.js +3 -0
  15. package/dist/components/Chat/hooks/useChat.js +1 -1
  16. package/dist/components/Dialog/DialogAnchor.d.ts +3 -2
  17. package/dist/components/Dialog/DialogAnchor.js +7 -2
  18. package/dist/components/Form/Dropdown.d.ts +14 -0
  19. package/dist/components/Form/Dropdown.js +49 -0
  20. package/dist/components/Form/SwitchField.js +3 -1
  21. package/dist/components/Location/ShareLocationDialog.d.ts +18 -0
  22. package/dist/components/Location/ShareLocationDialog.js +139 -0
  23. package/dist/components/Location/hooks/useLiveLocationSharingManager.d.ts +18 -0
  24. package/dist/components/Location/hooks/useLiveLocationSharingManager.js +57 -0
  25. package/dist/components/Location/index.d.ts +1 -0
  26. package/dist/components/Location/index.js +1 -0
  27. package/dist/components/Message/MessageSimple.js +6 -1
  28. package/dist/components/Message/index.d.ts +3 -1
  29. package/dist/components/Message/index.js +3 -1
  30. package/dist/components/Message/renderText/renderText.d.ts +1 -1
  31. package/dist/components/Message/renderText/renderText.js +1 -1
  32. package/dist/components/MessageInput/AttachmentPreviewList/AttachmentPreviewList.d.ts +3 -1
  33. package/dist/components/MessageInput/AttachmentPreviewList/AttachmentPreviewList.js +35 -26
  34. package/dist/components/MessageInput/AttachmentPreviewList/GeolocationPreview.d.ts +13 -0
  35. package/dist/components/MessageInput/AttachmentPreviewList/GeolocationPreview.js +25 -0
  36. package/dist/components/MessageInput/AttachmentPreviewList/index.d.ts +1 -0
  37. package/dist/components/MessageInput/AttachmentSelector.d.ts +2 -1
  38. package/dist/components/MessageInput/AttachmentSelector.js +34 -12
  39. package/dist/components/MessageInput/MessageInput.d.ts +3 -1
  40. package/dist/components/MessageInput/MessageInput.js +7 -3
  41. package/dist/components/MessageInput/hooks/index.d.ts +1 -0
  42. package/dist/components/MessageInput/hooks/index.js +1 -0
  43. package/dist/components/MessageInput/hooks/useAttachmentsForPreview.d.ts +17 -0
  44. package/dist/components/MessageInput/hooks/useAttachmentsForPreview.js +22 -0
  45. package/dist/components/MessageInput/index.d.ts +1 -1
  46. package/dist/components/Modal/Modal.d.ts +8 -3
  47. package/dist/components/Modal/Modal.js +19 -8
  48. package/dist/components/Poll/PollActions/AddCommentForm.js +8 -0
  49. package/dist/components/Poll/PollActions/SuggestPollOptionForm.js +6 -3
  50. package/dist/components/Poll/PollCreationDialog/PollCreationDialogControls.js +4 -1
  51. package/dist/components/TextareaComposer/SuggestionList/SuggestionListItem.js +4 -1
  52. package/dist/components/index.d.ts +2 -1
  53. package/dist/components/index.js +2 -0
  54. package/dist/context/ComponentContext.d.ts +3 -0
  55. package/dist/css/v2/index.css +1 -1
  56. package/dist/css/v2/index.layout.css +1 -1
  57. package/dist/experimental/index.browser.cjs +11 -0
  58. package/dist/experimental/index.browser.cjs.map +2 -2
  59. package/dist/experimental/index.node.cjs +11 -0
  60. package/dist/experimental/index.node.cjs.map +2 -2
  61. package/dist/i18n/Streami18n.d.ts +21 -0
  62. package/dist/i18n/TranslationBuilder/notifications/NotificationTranslationTopic.js +2 -0
  63. package/dist/i18n/TranslationBuilder/notifications/pollVoteCountTrespass.d.ts +3 -0
  64. package/dist/i18n/TranslationBuilder/notifications/pollVoteCountTrespass.js +1 -0
  65. package/dist/i18n/de.json +22 -1
  66. package/dist/i18n/en.json +22 -1
  67. package/dist/i18n/es.json +22 -1
  68. package/dist/i18n/fr.json +22 -1
  69. package/dist/i18n/hi.json +22 -1
  70. package/dist/i18n/it.json +22 -1
  71. package/dist/i18n/ja.json +22 -1
  72. package/dist/i18n/ko.json +22 -1
  73. package/dist/i18n/nl.json +22 -1
  74. package/dist/i18n/pt.json +22 -1
  75. package/dist/i18n/ru.json +22 -1
  76. package/dist/i18n/tr.json +22 -1
  77. package/dist/index.browser.cjs +2610 -1727
  78. package/dist/index.browser.cjs.map +4 -4
  79. package/dist/index.node.cjs +2622 -1727
  80. package/dist/index.node.cjs.map +4 -4
  81. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +50 -0
  82. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +56 -0
  83. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +3 -0
  84. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-theme.scss +11 -0
  85. package/dist/scss/v2/Dialog/Dialog-layout.scss +1 -2
  86. package/dist/scss/v2/Form/Form-layout.scss +40 -0
  87. package/dist/scss/v2/Form/Form-theme.scss +62 -0
  88. package/dist/scss/v2/Location/Location-layout.scss +52 -0
  89. package/dist/scss/v2/Location/Location-theme.scss +32 -0
  90. package/dist/scss/v2/MessageInput/MessageInput-theme.scss +7 -0
  91. package/dist/scss/v2/Modal/Modal-layout.scss +2 -0
  92. package/dist/scss/v2/Poll/Poll-layout.scss +0 -35
  93. package/dist/scss/v2/Poll/Poll-theme.scss +0 -28
  94. package/dist/scss/v2/_icons.scss +1 -0
  95. package/dist/scss/v2/index.layout.scss +1 -0
  96. package/dist/scss/v2/index.scss +1 -0
  97. package/package.json +6 -6
@@ -325,6 +325,56 @@
325
325
  }
326
326
  }
327
327
 
328
+ .str-chat__message-attachment-geolocation {
329
+ margin: var(--str-chat__attachment-margin);
330
+ min-width: 200px;
331
+
332
+ .str-chat__message-attachment-geolocation__placeholder {
333
+ position: relative;
334
+ display: flex;
335
+ justify-content: center;
336
+ align-items: center;
337
+ padding: var(--str-chat__spacing-2);
338
+
339
+ .str-chat__message-geolocation__icon {
340
+ height: calc(var(--str-chat__spacing-px) *150);
341
+ }
342
+
343
+ .str-chat__message-attachment-geolocation__placeholder-link {
344
+ position: absolute;
345
+ inset-inline-end: 0.75rem;
346
+ inset-block: 0.75rem;
347
+ height: calc(var(--str-chat__spacing-px) * 20);
348
+ width: calc(var(--str-chat__spacing-px) * 20);
349
+ }
350
+ }
351
+
352
+ .str-chat__message-attachment-geolocation__status {
353
+ display: flex;
354
+ justify-content: center;
355
+ padding: 0.5rem 2rem;
356
+
357
+ .str-chat__message-attachment-geolocation__status--active {
358
+ display: flex;
359
+ flex-direction: column;
360
+ align-items: center;
361
+ gap: 0.375rem;
362
+
363
+ .str-chat__message-attachment-geolocation__stop-sharing-button {
364
+ color: var(--str-chat__danger-color);
365
+ }
366
+
367
+ .str-chat__message-attachment-geolocation__status--active-status {
368
+ color: var(--str-chat__info-color);
369
+ }
370
+
371
+ .str-chat__message-attachment-geolocation__status--active-until {
372
+ text-transform: lowercase;
373
+ }
374
+ }
375
+ }
376
+ }
377
+
328
378
  .str-chat__message-attachment-audio-widget {
329
379
  .str-chat__message-attachment-audio-widget--play-controls {
330
380
  @include utils.flex-row-center();
@@ -141,6 +141,35 @@
141
141
  /* Box shadow applied to file attachments */
142
142
  --str-chat__file-attachment-box-shadow: none;
143
143
 
144
+ /* The border radius used for the borders of file attachments */
145
+ --str-chat__geolocation-attachment-border-radius: calc(
146
+ var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin)
147
+ );
148
+
149
+ /* The text/icon color of geolocation attachments */
150
+ --str-chat__geolocation-attachment-color: var(--str-chat__text-color);
151
+
152
+ /* The text/icon color of geolocation attachments for low emphasis texts (for example file size) */
153
+ --str-chat__geolocation-attachment-secondary-color: var(--str-chat__text-low-emphasis-color);
154
+
155
+ /* The background color of geolocation attachments */
156
+ --str-chat__geolocation-attachment-background-color: var(--str-chat__secondary-background-color);
157
+
158
+ /* Top border of geolocation attachments */
159
+ --str-chat__geolocation-attachment-border-block-start: none;
160
+
161
+ /* Bottom border of geolocation attachments */
162
+ --str-chat__geolocation-attachment-border-block-end: none;
163
+
164
+ /* Left (right in RTL layout) border of geolocation attachments */
165
+ --str-chat__geolocation-attachment-border-inline-start: none;
166
+
167
+ /* Right (left in RTL layout) border of geolocation attachments */
168
+ --str-chat__geolocation-attachment-border-inline-end: none;
169
+
170
+ /* Box shadow applied to geolocation attachments */
171
+ --str-chat__geolocation-attachment-box-shadow: none;
172
+
144
173
  /* Border radius applied audio widget */
145
174
  --str-chat__audio-attachment-widget-border-radius: calc(
146
175
  var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin)
@@ -325,6 +354,33 @@
325
354
  @include utils.component-layer-overrides('file-attachment');
326
355
  }
327
356
 
357
+ .str-chat__message-attachment-geolocation {
358
+ @include utils.component-layer-overrides('geolocation-attachment');
359
+ overflow: hidden;
360
+
361
+ .str-chat__message-attachment-geolocation__placeholder {
362
+ .str-chat__message-attachment-geolocation__placeholder-link {
363
+ color: currentColor;
364
+ }
365
+ }
366
+
367
+ .str-chat__message-attachment-geolocation__status {
368
+ background-color: var(--str-chat__tertiary-surface-color);
369
+
370
+ .str-chat__message-attachment-geolocation__status--active {
371
+ .str-chat__message-attachment-geolocation__stop-sharing-button {
372
+ @include utils.button-reset;
373
+ font: var(--str-chat__subtitle-medium-text);
374
+ cursor: pointer;
375
+ }
376
+
377
+ .str-chat__message-attachment-geolocation__status--active-until {
378
+ font: var(--str-chat__caption-text);
379
+ }
380
+ }
381
+ }
382
+ }
383
+
328
384
  .str-chat__message-attachment-unsupported {
329
385
  .str-chat__message-attachment-unsupported__title {
330
386
  font: var(--str-chat__subtitle-medium-text);
@@ -47,6 +47,7 @@
47
47
  }
48
48
  }
49
49
 
50
+ .str-chat__location-preview,
50
51
  .str-chat__attachment-preview-unsupported,
51
52
  .str-chat__attachment-preview-voice-recording,
52
53
  .str-chat__attachment-preview-file {
@@ -70,12 +71,14 @@
70
71
  justify-content: center;
71
72
 
72
73
  .str-chat__attachment-preview-title,
74
+ .str-chat__attachment-preview-subtitle,
73
75
  .str-chat__attachment-preview-file-name {
74
76
  @include utils.ellipsis-text;
75
77
  max-width: 100%;
76
78
  }
77
79
  }
78
80
 
81
+ .str-chat__location-preview-image,
79
82
  .str-chat__attachment-preview-file-icon {
80
83
  --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 37);
81
84
  --str-chat-icon-width: auto;
@@ -107,6 +107,7 @@
107
107
  }
108
108
  }
109
109
 
110
+ .str-chat__location-preview,
110
111
  .str-chat__attachment-preview-unsupported,
111
112
  .str-chat__attachment-preview-voice-recording,
112
113
  .str-chat__attachment-preview-file {
@@ -117,6 +118,10 @@
117
118
  font: var(--str-chat__subtitle-medium-text);
118
119
  }
119
120
 
121
+ .str-chat__attachment-preview-subtitle {
122
+ font: var(--str-chat__caption-text);
123
+ }
124
+
120
125
  .str-chat__attachment-preview-file-download {
121
126
  --str-chat-icon-color: var(--str-chat__attachment-preview-download-icon-color);
122
127
  text-decoration: none;
@@ -142,6 +147,12 @@
142
147
  }
143
148
  }
144
149
 
150
+ .str-chat__location-preview {
151
+ .str-chat__location-preview-image {
152
+ color: var(--str-chat__active-primary-color);
153
+ }
154
+ }
155
+
145
156
  .str-chat__attachment-preview-delete {
146
157
  --str-chat-icon-color: var(--str-chat__attachment-preview-close-icon-color);
147
158
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  .str-chat__dialog-overlay {
4
4
  inset: 0;
5
- overflow: hidden;
6
5
  position: absolute;
7
6
  height: var(--str-chat__dialog-overlay-height);
8
7
  width: 100%;
@@ -26,7 +25,7 @@
26
25
  display: flex;
27
26
  justify-content: flex-end;
28
27
  gap: 1.25rem;
29
- padding: 2.25rem 1.25rem 0;
28
+ padding: 2.25rem 1.25rem;
30
29
 
31
30
  .str-chat__dialog__controls-button {
32
31
  @include utils.button-reset;
@@ -6,4 +6,44 @@
6
6
  .str-chat__form-field-error {
7
7
  margin-left: 0.5rem;
8
8
  }
9
+ }
10
+
11
+ .str-chat__form__switch-field {
12
+ width: 100%;
13
+ padding: 1rem;
14
+
15
+ input[type='checkbox'] {
16
+ display: none;
17
+ }
18
+
19
+ label {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: space-between;
23
+ width: 100%;
24
+ }
25
+
26
+ .str-chat__form__switch-field__switch {
27
+ display: flex;
28
+ align-items: center;
29
+ width: calc(var(--str-chat__spacing-px) * 52);
30
+ height: calc(var(--str-chat__spacing-px) * 32);
31
+ padding: 0.25rem;
32
+
33
+ .str-chat__form__switch-field__switch-handle {
34
+ height: 1.5rem;
35
+ width: 1.5rem;
36
+ }
37
+
38
+ &.str-chat__form__switch-field__switch--on {
39
+ justify-content: flex-end;
40
+ }
41
+ }
42
+ }
43
+
44
+ .str-chat__dropdown {
45
+ .str-chat__dropdown__open-button {
46
+ width: 100%;
47
+ text-align: start;
48
+ }
9
49
  }
@@ -1,3 +1,5 @@
1
+ @use '../utils';
2
+
1
3
  .str-chat {
2
4
  // hide spin buttons form input of type number
3
5
  /* Chrome, Safari, Edge, Opera */
@@ -18,3 +20,63 @@
18
20
  font-size: 0.75rem;
19
21
  color: var(--str-chat__danger-color);
20
22
  }
23
+
24
+ // fixme: duplicate mixin in poll theme
25
+ @mixin field-background {
26
+ background-color: var(--str-chat__tertiary-surface-color);
27
+ border-radius: 0.75rem;
28
+ }
29
+
30
+
31
+
32
+ .str-chat__form__switch-field {
33
+ @include field-background;
34
+
35
+ &, label {
36
+ cursor: pointer;
37
+ }
38
+
39
+ label {
40
+ display: flex;
41
+ gap: 0.5rem;
42
+ }
43
+
44
+ .str-chat__form__switch-field__switch {
45
+ cursor: pointer;
46
+ background-color: var(--str-chat__text-low-emphasis-color);
47
+ border-radius: 100px;
48
+
49
+ .str-chat__form__switch-field__switch-handle {
50
+ border-radius: var(--str-chat__border-radius-circle);
51
+ background-color: var(--str-chat__disabled-color);
52
+ }
53
+
54
+ &.str-chat__form__switch-field__switch--on {
55
+ background-color: var(--str-chat__green600);
56
+
57
+ .str-chat__form__switch-field__switch-handle {
58
+ background-color: var(--str-chat__background-color);
59
+ border-radius: var(--str-chat__border-radius-circle);
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ .str-chat__form__switch-field--disabled {
66
+ .str-chat__form__switch-field--disabled,
67
+ .str-chat__form__switch-field--disabled .str-chat__form__switch-field__switch,
68
+ label {
69
+ cursor: not-allowed;
70
+ }
71
+ }
72
+
73
+ .str-chat__dropdown {
74
+ .str-chat__dropdown__open-button {
75
+ @include utils.button-reset;
76
+ cursor: pointer;
77
+ }
78
+
79
+ .str-chat__dropdown__items {
80
+ background-color: var(--str-chat__background-color);
81
+ }
82
+ }
@@ -0,0 +1,52 @@
1
+ .str-chat__modal.str-chat__share-location-modal {
2
+ .str-chat__modal__close-button {
3
+ display: none;
4
+ }
5
+
6
+ .str-chat__share-location-dialog {
7
+ .str-chat__modal-header {
8
+ padding-top: 0;
9
+ }
10
+
11
+ .str-chat__dialog__body {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 1rem;
15
+ padding-block: 0;
16
+ -webkit-touch-callout: none;
17
+ -webkit-user-select: none;
18
+ user-select: none;
19
+
20
+ .str-chat__live-location-activation {
21
+ padding: 0.5rem;
22
+
23
+ .str-chat__form__switch-field {
24
+ padding: 0.5rem;
25
+ }
26
+
27
+ .str-chat__dropdown__open-button {
28
+ padding: 0.5rem;
29
+ }
30
+
31
+ .str-chat__dialog-contents {
32
+ .str-chat__dropdown__items {
33
+ display: flex;
34
+ flex-direction: column;
35
+ align-items: flex-start;
36
+ padding-block: 0.25rem;
37
+
38
+ .str-chat__live-location-sharing-duration-option {
39
+ padding: 0.25rem 0.5rem;
40
+ width: 100%;
41
+ text-align: start;
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+ .str-chat__dialog__controls {
49
+ padding: 1.25rem 1rem 0;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,32 @@
1
+ @use '../utils';
2
+
3
+ .str-chat__share-location-dialog {
4
+ .str-chat__live-location-activation {
5
+ border-radius: var(--str-chat__border-radius-sm);
6
+ border: 1px solid var(--str-chat__secondary-overlay-color);;
7
+
8
+ .str-chat__form__switch-field {
9
+ background-color: var(--str-chat__background-color);
10
+ }
11
+
12
+ .str-chat__dropdown__open-button {
13
+ border-radius: var(--str-chat__border-radius-xs);
14
+ border: 1px solid var(--str-chat__secondary-overlay-color);
15
+ background-color: var(--str-chat__tertiary-surface-color);
16
+ }
17
+
18
+ .str-chat__dropdown__items {
19
+ box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
20
+ border-radius: var(--str-chat__border-radius-xs);
21
+
22
+ .str-chat__live-location-sharing-duration-option {
23
+ @include utils.button-reset;
24
+ cursor: pointer;
25
+
26
+ &:hover {
27
+ background-color: var(--str-chat__message-options-hover-background-color);
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
@@ -337,6 +337,13 @@
337
337
  mask: var(--str-chat__poll-icon) no-repeat center / contain;
338
338
  }
339
339
  }
340
+
341
+ .str-chat__attachment-selector-actions-menu__add-location-button {
342
+ .str-chat__dialog-menu__button-icon {
343
+ -webkit-mask: var(--str-chat__location-icon) no-repeat center / contain;
344
+ mask: var(--str-chat__location-icon) no-repeat center / contain;
345
+ }
346
+ }
340
347
  }
341
348
 
342
349
  .str-chat__send-to-channel-checkbox__field {
@@ -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;
@@ -434,41 +434,6 @@
434
434
  width: 1rem;
435
435
  }
436
436
  }
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
437
  }
473
438
  }
474
439
 
@@ -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,PHN2ZyB2aWV3Qm94PSIwIDAgMjggMjgiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNS4zMzMyIDcuMzMzMDdMMTIuNjY2NiA3LjMzMzA3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N2ZyB2aWV3Qm94PSIwIDAgMjEgMjEiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOSAwQzEzLjk2OCAwIDE4IDQuMDMyIDE4IDlDMTggMTMuOTY4IDEzLjk2OCAxOCA5IDE4QzQuMDMyIDE4IDAgMTMuOTY4IDAgOUMwIDQuMDMyIDQuMDMyIDAgOSAwWk05IDE2QzEyLjg2NyAxNiAxNiAxMi44NjcgMTYgOUMxNiA1LjEzMiAxMi44NjcgMiA5IDJDNS4xMzIgMiAyIDUuMTMyIDIgOUMyIDEyLjg2NyA1LjEzMiAxNiA5IDE2Wk0yMC4zMTQgMTguODk5TDE3LjQ4NSAxNi4wNzFMMTYuMDcxIDE3LjQ4NUwxOC44OTkgMjAuMzE0TDIwLjMxNCAxOC44OTlaIi8+Cjwvc3ZnPgo=');
@@ -25,6 +25,7 @@
25
25
  @use 'InfiniteScrollPaginator/InfiniteScrollPaginator-layout';
26
26
  @use 'LinkPreview/LinkPreview-layout';
27
27
  @use 'LoadingIndicator/LoadingIndicator-layout';
28
+ @use 'Location/Location-layout';
28
29
  @use 'Message/Message-layout';
29
30
  @use 'MessageActionsBox/MessageActionsBox-layout';
30
31
  @use 'MessageBouncePrompt/MessageBouncePrompt-layout';
@@ -26,6 +26,7 @@
26
26
  @use 'ImageCarousel/ImageCarousel-theme';
27
27
  @use 'LinkPreview/LinkPreview-theme';
28
28
  @use 'LoadingIndicator/LoadingIndicator-theme';
29
+ @use 'Location/Location-theme';
29
30
  @use 'Message/Message-theme';
30
31
  @use 'MessageActionsBox/MessageActionsBox-theme';
31
32
  @use 'MessageBouncePrompt/MessageBouncePrompt-theme';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "13.2.3",
3
+ "version": "13.4.0",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -111,7 +111,7 @@
111
111
  "fix-webm-duration": "^1.0.5",
112
112
  "hast-util-find-and-replace": "^5.0.1",
113
113
  "i18next": "^25.2.1",
114
- "linkifyjs": "^4.1.0",
114
+ "linkifyjs": "^4.3.2",
115
115
  "lodash.debounce": "^4.0.8",
116
116
  "lodash.defaultsdeep": "^4.6.1",
117
117
  "lodash.mergewith": "^4.6.2",
@@ -142,7 +142,7 @@
142
142
  "emoji-mart": "^5.4.0",
143
143
  "react": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.14.0",
144
144
  "react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.14.0",
145
- "stream-chat": "^9.10.1"
145
+ "stream-chat": "^9.15.0"
146
146
  },
147
147
  "peerDependenciesMeta": {
148
148
  "@breezystack/lamejs": {
@@ -183,7 +183,7 @@
183
183
  "@playwright/test": "^1.42.1",
184
184
  "@semantic-release/changelog": "^6.0.3",
185
185
  "@semantic-release/git": "^10.0.1",
186
- "@stream-io/stream-chat-css": "^5.11.1",
186
+ "@stream-io/stream-chat-css": "^5.11.2",
187
187
  "@testing-library/dom": "^10.4.0",
188
188
  "@testing-library/jest-dom": "^6.6.3",
189
189
  "@testing-library/react": "^16.2.0",
@@ -192,7 +192,7 @@
192
192
  "@types/hast": "^2.3.4",
193
193
  "@types/jest": "^29.5.14",
194
194
  "@types/jsdom": "^21.1.5",
195
- "@types/linkifyjs": "^2.1.3",
195
+ "@types/linkifyjs": "^2.1.7",
196
196
  "@types/lodash.debounce": "^4.0.7",
197
197
  "@types/lodash.defaultsdeep": "^4.6.9",
198
198
  "@types/lodash.mergewith": "^4.6.9",
@@ -236,7 +236,7 @@
236
236
  "react": "^19.0.0",
237
237
  "react-dom": "^19.0.0",
238
238
  "semantic-release": "^24.2.3",
239
- "stream-chat": "^9.10.1",
239
+ "stream-chat": "^9.15.0",
240
240
  "ts-jest": "^29.2.5",
241
241
  "typescript": "^5.4.5",
242
242
  "typescript-eslint": "^8.17.0"