stream-chat-react 13.0.4 → 13.1.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 (103) hide show
  1. package/dist/components/Channel/Channel.d.ts +1 -1
  2. package/dist/components/Channel/Channel.js +7 -0
  3. package/dist/components/ChannelList/hooks/useChannelListShape.js +3 -3
  4. package/dist/components/Chat/hooks/useChat.js +7 -3
  5. package/dist/components/Dialog/ButtonWithSubmenu.d.ts +11 -0
  6. package/dist/components/Dialog/ButtonWithSubmenu.js +88 -0
  7. package/dist/components/Dialog/index.d.ts +1 -0
  8. package/dist/components/Dialog/index.js +1 -0
  9. package/dist/components/Loading/LoadingErrorIndicator.js +1 -1
  10. package/dist/components/Message/Message.js +3 -2
  11. package/dist/components/Message/MessageSimple.js +11 -4
  12. package/dist/components/Message/MessageThreadReplyInChannelButtonIndicator.d.ts +2 -0
  13. package/dist/components/Message/MessageThreadReplyInChannelButtonIndicator.js +63 -0
  14. package/dist/components/Message/ReminderNotification.d.ts +6 -0
  15. package/dist/components/Message/ReminderNotification.js +30 -0
  16. package/dist/components/Message/hooks/index.d.ts +1 -0
  17. package/dist/components/Message/hooks/index.js +1 -0
  18. package/dist/components/Message/hooks/useMessageReminder.d.ts +1 -0
  19. package/dist/components/Message/hooks/useMessageReminder.js +11 -0
  20. package/dist/components/Message/index.d.ts +1 -0
  21. package/dist/components/Message/index.js +1 -0
  22. package/dist/components/Message/utils.d.ts +4 -2
  23. package/dist/components/Message/utils.js +11 -1
  24. package/dist/components/MessageActions/MessageActionsBox.js +12 -6
  25. package/dist/components/MessageActions/RemindMeSubmenu.d.ts +6 -0
  26. package/dist/components/MessageActions/RemindMeSubmenu.js +18 -0
  27. package/dist/components/MessageInput/MessageInputFlat.js +5 -3
  28. package/dist/components/MessageInput/SendToChannelCheckbox.d.ts +2 -0
  29. package/dist/components/MessageInput/SendToChannelCheckbox.js +20 -0
  30. package/dist/components/MessageList/MessageListNotifications.js +8 -3
  31. package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +1 -1
  32. package/dist/components/MessageList/VirtualizedMessageListComponents.js +4 -0
  33. package/dist/components/Notifications/hooks/index.d.ts +1 -0
  34. package/dist/components/Notifications/hooks/index.js +1 -0
  35. package/dist/components/Notifications/hooks/useNotifications.d.ts +2 -0
  36. package/dist/components/Notifications/hooks/useNotifications.js +10 -0
  37. package/dist/components/Notifications/index.d.ts +1 -0
  38. package/dist/components/Notifications/index.js +1 -0
  39. package/dist/components/TextareaComposer/TextareaComposer.js +4 -0
  40. package/dist/components/Thread/LegacyThreadContext.d.ts +8 -0
  41. package/dist/components/Thread/LegacyThreadContext.js +3 -0
  42. package/dist/components/Thread/Thread.d.ts +0 -4
  43. package/dist/components/Thread/Thread.js +2 -3
  44. package/dist/components/Thread/index.d.ts +1 -0
  45. package/dist/components/Thread/index.js +1 -0
  46. package/dist/components/index.d.ts +1 -0
  47. package/dist/components/index.js +1 -0
  48. package/dist/context/ComponentContext.d.ts +6 -1
  49. package/dist/css/v2/index.css +1 -1
  50. package/dist/css/v2/index.layout.css +1 -1
  51. package/dist/experimental/MessageActions/defaults.d.ts +1 -1
  52. package/dist/experimental/MessageActions/defaults.js +27 -4
  53. package/dist/experimental/index.browser.cjs +382 -169
  54. package/dist/experimental/index.browser.cjs.map +4 -4
  55. package/dist/experimental/index.node.cjs +382 -169
  56. package/dist/experimental/index.node.cjs.map +4 -4
  57. package/dist/i18n/Streami18n.d.ts +32 -3
  58. package/dist/i18n/Streami18n.js +34 -5
  59. package/dist/i18n/TranslationBuilder/TranslationBuilder.d.ts +31 -0
  60. package/dist/i18n/TranslationBuilder/TranslationBuilder.js +68 -0
  61. package/dist/i18n/TranslationBuilder/index.d.ts +2 -0
  62. package/dist/i18n/TranslationBuilder/index.js +2 -0
  63. package/dist/i18n/TranslationBuilder/notifications/NotificationTranslationTopic.d.ts +11 -0
  64. package/dist/i18n/TranslationBuilder/notifications/NotificationTranslationTopic.js +27 -0
  65. package/dist/i18n/TranslationBuilder/notifications/attachmentUpload.d.ts +4 -0
  66. package/dist/i18n/TranslationBuilder/notifications/attachmentUpload.js +32 -0
  67. package/dist/i18n/TranslationBuilder/notifications/index.d.ts +1 -0
  68. package/dist/i18n/TranslationBuilder/notifications/index.js +1 -0
  69. package/dist/i18n/TranslationBuilder/notifications/pollComposition.d.ts +3 -0
  70. package/dist/i18n/TranslationBuilder/notifications/pollComposition.js +9 -0
  71. package/dist/i18n/TranslationBuilder/notifications/types.d.ts +4 -0
  72. package/dist/i18n/TranslationBuilder/notifications/types.js +1 -0
  73. package/dist/i18n/de.json +23 -0
  74. package/dist/i18n/en.json +23 -0
  75. package/dist/i18n/es.json +23 -0
  76. package/dist/i18n/fr.json +23 -0
  77. package/dist/i18n/hi.json +23 -0
  78. package/dist/i18n/index.d.ts +1 -0
  79. package/dist/i18n/index.js +1 -0
  80. package/dist/i18n/it.json +23 -0
  81. package/dist/i18n/ja.json +23 -0
  82. package/dist/i18n/ko.json +23 -0
  83. package/dist/i18n/nl.json +23 -0
  84. package/dist/i18n/pt.json +23 -0
  85. package/dist/i18n/ru.json +23 -0
  86. package/dist/i18n/tr.json +23 -0
  87. package/dist/i18n/types.d.ts +54 -0
  88. package/dist/i18n/utils.d.ts +1 -1
  89. package/dist/i18n/utils.js +8 -2
  90. package/dist/index.browser.cjs +3589 -2162
  91. package/dist/index.browser.cjs.map +4 -4
  92. package/dist/index.node.cjs +3645 -2156
  93. package/dist/index.node.cjs.map +4 -4
  94. package/dist/plugins/Emojis/index.browser.cjs +1 -2
  95. package/dist/plugins/Emojis/index.browser.cjs.map +3 -3
  96. package/dist/plugins/Emojis/index.node.cjs +1 -2
  97. package/dist/plugins/Emojis/index.node.cjs.map +3 -3
  98. package/dist/scss/v2/Message/Message-layout.scss +13 -2
  99. package/dist/scss/v2/Message/Message-theme.scss +31 -1
  100. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-theme.scss +8 -0
  101. package/dist/scss/v2/MessageInput/MessageInput-layout.scss +19 -0
  102. package/dist/scss/v2/MessageInput/MessageInput-theme.scss +11 -0
  103. package/package.json +6 -8
@@ -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,8 @@
251
260
  }
252
261
  }
253
262
 
254
- .str-chat__message-replies-count-button-wrapper {
263
+ .str-chat__message-replies-count-button-wrapper,
264
+ .str-chat__message-is-thread-reply-button-wrapper {
255
265
  grid-area: replies;
256
266
 
257
267
  button {
@@ -313,7 +323,8 @@
313
323
  .str-chat__virtual-list:not(.str-chat__message-options-in-bubble, .str-chat__message-with-touch-support) {
314
324
  /* This rule won't be applied in browsers that don't support :has() */
315
325
  .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)) {
326
+ .str-chat__li:focus-within:not(:has(.str-chat__reaction-list:focus-within, .str-chat__modal--open)),
327
+ .str-chat__li:has(.str-chat__message-options--active) {
317
328
  .str-chat__message-options {
318
329
  display: flex;
319
330
  }
@@ -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,8 @@
315
344
  }
316
345
  }
317
346
 
318
- .str-chat__message-replies-count-button-wrapper {
347
+ .str-chat__message-replies-count-button-wrapper,
348
+ .str-chat__message-is-thread-reply-button-wrapper {
319
349
  button {
320
350
  border: none;
321
351
  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) {
@@ -239,3 +239,22 @@
239
239
  min-width: 300px;
240
240
  padding-block: 0.5rem;
241
241
  }
242
+
243
+ .str-chat__send-to-channel-checkbox__container {
244
+ width: 100%;
245
+ display: flex;
246
+ padding: 0.5rem 0.75rem;
247
+
248
+ .str-chat__send-to-channel-checkbox__field {
249
+ display: flex;
250
+ align-items: center;
251
+
252
+ label {
253
+ padding-inline: 0.5rem;
254
+ }
255
+
256
+ input {
257
+ margin: 0;
258
+ }
259
+ }
260
+ }
@@ -338,3 +338,14 @@
338
338
  }
339
339
  }
340
340
  }
341
+
342
+ .str-chat__send-to-channel-checkbox__field {
343
+ * {
344
+ cursor: pointer;
345
+ }
346
+
347
+ label {
348
+ color: var(--str-chat__text-low-emphasis-color);
349
+ font: var(--str-chat__body-text);
350
+ }
351
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "13.0.4",
3
+ "version": "13.1.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/",
@@ -110,7 +110,7 @@
110
110
  "emoji-regex": "^9.2.0",
111
111
  "fix-webm-duration": "^1.0.5",
112
112
  "hast-util-find-and-replace": "^5.0.1",
113
- "i18next": "^21.6.14",
113
+ "i18next": "^25.2.1",
114
114
  "linkifyjs": "^4.1.0",
115
115
  "lodash.debounce": "^4.0.8",
116
116
  "lodash.defaultsdeep": "^4.6.1",
@@ -118,7 +118,6 @@
118
118
  "lodash.throttle": "^4.1.1",
119
119
  "lodash.uniqby": "^4.7.0",
120
120
  "nanoid": "^3.3.4",
121
- "prop-types": "^15.7.2",
122
121
  "react-dropzone": "^14.2.3",
123
122
  "react-fast-compare": "^3.2.2",
124
123
  "react-image-gallery": "1.2.12",
@@ -128,7 +127,6 @@
128
127
  "react-textarea-autosize": "^8.3.0",
129
128
  "react-virtuoso": "^2.16.5",
130
129
  "remark-gfm": "^4.0.1",
131
- "textarea-caret": "^3.1.0",
132
130
  "tslib": "^2.6.2",
133
131
  "unist-builder": "^4.0.0",
134
132
  "unist-util-visit": "^5.0.0",
@@ -145,7 +143,7 @@
145
143
  "emoji-mart": "^5.4.0",
146
144
  "react": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.14.0",
147
145
  "react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.14.0",
148
- "stream-chat": "^9.0.0"
146
+ "stream-chat": "^9.6.0"
149
147
  },
150
148
  "peerDependenciesMeta": {
151
149
  "@breezystack/lamejs": {
@@ -186,7 +184,7 @@
186
184
  "@playwright/test": "^1.42.1",
187
185
  "@semantic-release/changelog": "^6.0.3",
188
186
  "@semantic-release/git": "^10.0.1",
189
- "@stream-io/stream-chat-css": "^5.9.2",
187
+ "@stream-io/stream-chat-css": "^5.11.0",
190
188
  "@testing-library/dom": "^10.4.0",
191
189
  "@testing-library/jest-dom": "^6.6.3",
192
190
  "@testing-library/react": "^16.2.0",
@@ -228,7 +226,7 @@
228
226
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
229
227
  "globals": "^15.13.0",
230
228
  "husky": "^8.0.3",
231
- "i18next-parser": "^6.0.0",
229
+ "i18next-parser": "^9.3.0",
232
230
  "jest": "^29.7.0",
233
231
  "jest-axe": "^8.0.0",
234
232
  "jest-environment-jsdom": "^29.7.0",
@@ -239,7 +237,7 @@
239
237
  "react": "^19.0.0",
240
238
  "react-dom": "^19.0.0",
241
239
  "semantic-release": "^24.2.3",
242
- "stream-chat": "9.1.1",
240
+ "stream-chat": "^9.6.0",
243
241
  "ts-jest": "^29.2.5",
244
242
  "typescript": "^5.4.5",
245
243
  "typescript-eslint": "^8.17.0"