stream-chat-react 11.11.0 → 11.12.1
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.
- package/dist/{Window-194c5448.js → Window-40a618cb.js} +357 -76
- package/dist/browser.full-bundle.js +424 -136
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +4 -4
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/Attachment.d.ts +6 -1
- package/dist/components/Attachment/Attachment.d.ts.map +1 -1
- package/dist/components/Attachment/Attachment.js +8 -2
- package/dist/components/Attachment/AttachmentContainer.d.ts +1 -0
- package/dist/components/Attachment/AttachmentContainer.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentContainer.js +7 -0
- package/dist/components/Attachment/Audio.d.ts +0 -10
- package/dist/components/Attachment/Audio.d.ts.map +1 -1
- package/dist/components/Attachment/Audio.js +1 -14
- package/dist/components/Attachment/Card.d.ts.map +1 -1
- package/dist/components/Attachment/Card.js +1 -1
- package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/dist/components/Attachment/FileAttachment.js +1 -2
- package/dist/components/Attachment/VoiceRecording.d.ts +18 -0
- package/dist/components/Attachment/VoiceRecording.d.ts.map +1 -0
- package/dist/components/Attachment/VoiceRecording.js +45 -0
- package/dist/components/Attachment/components/DownloadButton.d.ts.map +1 -0
- package/dist/components/Attachment/{DownloadButton.js → components/DownloadButton.js} +2 -2
- package/dist/components/Attachment/components/FileSizeIndicator.d.ts +13 -0
- package/dist/components/Attachment/components/FileSizeIndicator.d.ts.map +1 -0
- package/dist/components/Attachment/{FileSizeIndicator.js → components/FileSizeIndicator.js} +2 -2
- package/dist/components/Attachment/components/PlayButton.d.ts +8 -0
- package/dist/components/Attachment/components/PlayButton.d.ts.map +1 -0
- package/dist/components/Attachment/components/PlayButton.js +6 -0
- package/dist/components/Attachment/components/PlaybackRateButton.d.ts +4 -0
- package/dist/components/Attachment/components/PlaybackRateButton.d.ts.map +1 -0
- package/dist/components/Attachment/components/PlaybackRateButton.js +5 -0
- package/dist/components/Attachment/components/ProgressBar.d.ts +7 -0
- package/dist/components/Attachment/components/ProgressBar.d.ts.map +1 -0
- package/dist/components/Attachment/components/ProgressBar.js +8 -0
- package/dist/components/Attachment/components/WaveProgressBar.d.ts +22 -0
- package/dist/components/Attachment/components/WaveProgressBar.d.ts.map +1 -0
- package/dist/components/Attachment/components/WaveProgressBar.js +121 -0
- package/dist/components/Attachment/components/index.d.ts +7 -0
- package/dist/components/Attachment/components/index.d.ts.map +1 -0
- package/dist/components/Attachment/components/index.js +6 -0
- package/dist/components/Attachment/hooks/useAudioController.d.ts +12 -2
- package/dist/components/Attachment/hooks/useAudioController.d.ts.map +1 -1
- package/dist/components/Attachment/hooks/useAudioController.js +60 -25
- package/dist/components/Attachment/index.d.ts +1 -0
- package/dist/components/Attachment/index.d.ts.map +1 -1
- package/dist/components/Attachment/index.js +1 -0
- package/dist/components/Attachment/utils.d.ts +4 -2
- package/dist/components/Attachment/utils.d.ts.map +1 -1
- package/dist/components/Attachment/utils.js +14 -0
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts +2 -2
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.js +23 -13
- package/dist/components/Channel/Channel.d.ts +2 -0
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +1 -0
- package/dist/components/Emojis/index.cjs.js +3 -3
- package/dist/components/Gallery/BaseImage.js +1 -1
- package/dist/components/Message/MessageEditedTimestamp.d.ts +8 -0
- package/dist/components/Message/MessageEditedTimestamp.d.ts.map +1 -0
- package/dist/components/Message/MessageEditedTimestamp.js +22 -0
- package/dist/components/Message/MessageSimple.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.js +13 -3
- package/dist/components/Message/MessageTimestamp.d.ts +1 -1
- package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
- package/dist/components/Message/MessageTimestamp.js +8 -13
- package/dist/components/Message/QuotedMessage.d.ts.map +1 -1
- package/dist/components/Message/QuotedMessage.js +1 -1
- package/dist/components/Message/Timestamp.d.ts +10 -0
- package/dist/components/Message/Timestamp.d.ts.map +1 -0
- package/dist/components/Message/Timestamp.js +24 -0
- package/dist/components/Message/renderText/index.d.ts +1 -1
- package/dist/components/Message/renderText/index.d.ts.map +1 -1
- package/dist/components/Message/utils.d.ts +1 -0
- package/dist/components/Message/utils.d.ts.map +1 -1
- package/dist/components/Message/utils.js +1 -0
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview.js +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.js +11 -6
- package/dist/components/MessageList/utils.d.ts.map +1 -1
- package/dist/components/MessageList/utils.js +5 -2
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/context/ComponentContext.d.ts +2 -0
- package/dist/context/ComponentContext.d.ts.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/i18n/Streami18n.d.ts +3 -0
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/de.json +3 -0
- package/dist/i18n/en.json +3 -0
- package/dist/i18n/es.json +3 -0
- package/dist/i18n/fr.json +3 -0
- package/dist/i18n/hi.json +3 -0
- package/dist/i18n/it.json +3 -0
- package/dist/i18n/ja.json +3 -0
- package/dist/i18n/ko.json +3 -0
- package/dist/i18n/nl.json +3 -0
- package/dist/i18n/pt.json +3 -0
- package/dist/i18n/ru.json +3 -0
- package/dist/i18n/tr.json +3 -0
- package/dist/index.cjs.js +23 -7
- package/dist/scss/Message.scss +21 -17
- package/dist/scss/MessageActions.scss +0 -9
- package/dist/scss/_base.scss +8 -1
- package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +84 -0
- package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +72 -1
- package/dist/scss/v2/EditMessageForm/EditMessageForm-layout.scss +13 -15
- package/dist/scss/v2/Message/Message-layout.scss +48 -4
- package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +0 -8
- package/dist/scss/v2/_base.scss +1 -2
- package/dist/scss/v2/_utils.scss +0 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
- package/dist/components/Attachment/DownloadButton.d.ts.map +0 -1
- package/dist/components/Attachment/FileSizeIndicator.d.ts +0 -7
- package/dist/components/Attachment/FileSizeIndicator.d.ts.map +0 -1
- /package/dist/components/Attachment/{DownloadButton.d.ts → components/DownloadButton.d.ts} +0 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--str-chat__message-with-attachment-max-width: calc(var(--str-chat__spacing-px) * 300);
|
|
12
12
|
|
|
13
13
|
/* The maximum allowed width of quoted messages inside the message component */
|
|
14
|
-
--str-chat__quoted-message-max-width: calc(var(--str-chat__spacing-px) *
|
|
14
|
+
--str-chat__quoted-message-max-width: calc(var(--str-chat__spacing-px) * 250);
|
|
15
15
|
|
|
16
16
|
/* The maximum allowed width of quoted messages inside the message input component */
|
|
17
17
|
--str-chat__quoted-message-inside-message-input-max-width: calc(
|
|
@@ -192,6 +192,7 @@
|
|
|
192
192
|
.str-chat__message-metadata {
|
|
193
193
|
grid-area: metadata;
|
|
194
194
|
display: flex;
|
|
195
|
+
flex-wrap: wrap;
|
|
195
196
|
align-items: center;
|
|
196
197
|
column-gap: var(--str-chat__spacing-1);
|
|
197
198
|
margin-block-start: var(--str-chat__spacing-0_5);
|
|
@@ -199,6 +200,21 @@
|
|
|
199
200
|
.str-chat__message-simple-name {
|
|
200
201
|
@include utils.prevent-glitch-text-overflow;
|
|
201
202
|
}
|
|
203
|
+
|
|
204
|
+
.str-chat__message-simple-timestamp + .str-chat__mesage-simple-edited::before {
|
|
205
|
+
content: '•';
|
|
206
|
+
margin-right: var(--str-chat__spacing-1);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.str-chat__message-edited-timestamp {
|
|
210
|
+
--str-chat__message-edited-timestamp-height: 1rem;
|
|
211
|
+
flex-basis: 100%;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&.str-chat__message--me .str-chat__message-metadata {
|
|
216
|
+
justify-content: flex-end;
|
|
217
|
+
text-align: right;
|
|
202
218
|
}
|
|
203
219
|
|
|
204
220
|
.str-chat__message-status {
|
|
@@ -269,7 +285,8 @@
|
|
|
269
285
|
.str-chat__ul:not(.str-chat__message-options-in-bubble),
|
|
270
286
|
.str-chat__virtual-list:not(.str-chat__message-options-in-bubble) {
|
|
271
287
|
/* This rule won't be applied in browsers that don't support :has() */
|
|
272
|
-
.str-chat__li:hover:not(:has(.str-chat__reaction-list:hover, .str-chat__modal--open))
|
|
288
|
+
.str-chat__li:hover:not(:has(.str-chat__reaction-list:hover, .str-chat__modal--open)),
|
|
289
|
+
.str-chat__li:focus-within:not(:has(.str-chat__reaction-list:focus-within, .str-chat__modal--open)) {
|
|
273
290
|
.str-chat__message-options {
|
|
274
291
|
display: flex;
|
|
275
292
|
}
|
|
@@ -285,7 +302,8 @@
|
|
|
285
302
|
|
|
286
303
|
/* Fallback for when :has() is unsupported */
|
|
287
304
|
@supports not selector(:has(a, b)) {
|
|
288
|
-
.str-chat__li:hover
|
|
305
|
+
.str-chat__li:hover,
|
|
306
|
+
.str-chat__li:focus-within {
|
|
289
307
|
.str-chat__message-options {
|
|
290
308
|
display: flex;
|
|
291
309
|
}
|
|
@@ -326,7 +344,6 @@
|
|
|
326
344
|
display: none;
|
|
327
345
|
}
|
|
328
346
|
|
|
329
|
-
.str-chat__message-edit-in-progress.str-chat__message-options,
|
|
330
347
|
.str-chat__message-actions-open.str-chat__message-options {
|
|
331
348
|
display: flex;
|
|
332
349
|
}
|
|
@@ -462,3 +479,30 @@
|
|
|
462
479
|
}
|
|
463
480
|
}
|
|
464
481
|
}
|
|
482
|
+
|
|
483
|
+
.str-chat-angular__message-bubble {
|
|
484
|
+
/* transform: translate3d(0, 0, 0) fixes scrolling issues on iOS, see: https://stackoverflow.com/questions/50105780/elements-disappear-when-scrolling-in-safari-webkit-transform-fix-only-works-t/50144295#50144295 */
|
|
485
|
+
transform: translate3d(0, 0, 0);
|
|
486
|
+
|
|
487
|
+
&.str-chat-angular__message-bubble--attachment-modal-open {
|
|
488
|
+
/* transform: none is required when image carousel is open in order for the modal to be correctly positioned, see how the transform property changes the behavior of fixed positioned elements https://developer.mozilla.org/en-US/docs/Web/CSS/position */
|
|
489
|
+
transform: none;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.str-chat__message-edited-timestamp {
|
|
494
|
+
overflow: hidden;
|
|
495
|
+
transition: height 0.1s;
|
|
496
|
+
|
|
497
|
+
&--open {
|
|
498
|
+
height: var(--str-chat__message-edited-timestamp-height, 1rem);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
&--collapsed {
|
|
502
|
+
height: 0;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.str-chat__message-text--pointer-cursor {
|
|
507
|
+
cursor: pointer;
|
|
508
|
+
}
|
package/dist/scss/v2/_base.scss
CHANGED
package/dist/scss/v2/_utils.scss
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DefaultStreamChatGenerics, ChannelUnreadUiState } from './types';
|
|
1
|
+
export type { DefaultStreamChatGenerics, ChannelUnreadUiState } from './types';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "11.
|
|
1
|
+
export declare const version = "11.12.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '11.
|
|
1
|
+
export var version = '11.12.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.12.1",
|
|
4
4
|
"description": "React components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"emoji-mart": "^5.4.0",
|
|
103
103
|
"react": "^18.0.0 || ^17.0.0 || ^16.8.0",
|
|
104
104
|
"react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0",
|
|
105
|
-
"stream-chat": "^8.
|
|
105
|
+
"stream-chat": "^8.21.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|
|
108
108
|
"emoji-mart": {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@emoji-mart/data": "^1.1.2",
|
|
136
136
|
"@emoji-mart/react": "^1.1.1",
|
|
137
137
|
"@ladle/react": "^0.16.0",
|
|
138
|
-
"@playwright/test": "^1.
|
|
138
|
+
"@playwright/test": "^1.42.1",
|
|
139
139
|
"@rollup/plugin-babel": "^5.2.1",
|
|
140
140
|
"@rollup/plugin-commonjs": "^23.0.2",
|
|
141
141
|
"@rollup/plugin-image": "^2.1.1",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"@semantic-release/changelog": "^6.0.2",
|
|
147
147
|
"@semantic-release/git": "^10.0.1",
|
|
148
148
|
"@stream-io/rollup-plugin-node-builtins": "^2.1.5",
|
|
149
|
-
"@stream-io/stream-chat-css": "^4.
|
|
149
|
+
"@stream-io/stream-chat-css": "^4.9.1",
|
|
150
150
|
"@testing-library/jest-dom": "^6.1.4",
|
|
151
151
|
"@testing-library/react": "^13.1.1",
|
|
152
152
|
"@testing-library/react-hooks": "^8.0.0",
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
"rollup-plugin-url": "^3.0.1",
|
|
224
224
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
225
225
|
"semantic-release": "^19.0.5",
|
|
226
|
-
"stream-chat": "^8.
|
|
226
|
+
"stream-chat": "^8.21.0",
|
|
227
227
|
"style-loader": "^2.0.0",
|
|
228
228
|
"ts-jest": "^28.0.8",
|
|
229
229
|
"typescript": "^4.7.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadButton.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/DownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,iBAAkB,mBAAmB,sBAS/D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileSizeIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/FileSizeIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBAAkB,sBAAsB,6BAMrE,CAAC"}
|
|
File without changes
|