stream-chat-react 10.21.0 → 10.22.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/browser.full-bundle.js +105 -88
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +5 -5
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/Audio.js +1 -1
- package/dist/components/Channel/Channel.d.ts +3 -1
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +1 -0
- package/dist/components/Gallery/BaseImage.d.ts +6 -0
- package/dist/components/Gallery/BaseImage.d.ts.map +1 -0
- package/dist/components/Gallery/BaseImage.js +20 -0
- package/dist/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.js +4 -2
- package/dist/components/Gallery/Image.d.ts.map +1 -1
- package/dist/components/Gallery/Image.js +3 -2
- package/dist/components/Gallery/ModalGallery.d.ts.map +1 -1
- package/dist/components/Gallery/ModalGallery.js +3 -1
- package/dist/components/Gallery/index.d.ts +1 -0
- package/dist/components/Gallery/index.d.ts.map +1 -1
- package/dist/components/Gallery/index.js +1 -0
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts +5 -0
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts.map +1 -1
- package/dist/components/MessageInput/AttachmentPreviewList.js +16 -10
- package/dist/components/MessageInput/index.d.ts +1 -1
- package/dist/components/MessageInput/index.d.ts.map +1 -1
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.js +31 -32
- package/dist/context/ChannelStateContext.d.ts +1 -1
- package/dist/context/ComponentContext.d.ts +2 -1
- package/dist/context/ComponentContext.d.ts.map +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 +1 -0
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/de.json +1 -0
- package/dist/i18n/en.json +1 -0
- package/dist/i18n/es.json +1 -0
- package/dist/i18n/fr.json +1 -0
- package/dist/i18n/hi.json +1 -0
- package/dist/i18n/it.json +1 -0
- package/dist/i18n/ja.json +1 -0
- package/dist/i18n/ko.json +1 -0
- package/dist/i18n/nl.json +1 -0
- package/dist/i18n/pt.json +1 -0
- package/dist/i18n/ru.json +1 -0
- package/dist/i18n/tr.json +1 -0
- package/dist/index.cjs.js +82 -58
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +3 -3
- package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +4 -0
- package/dist/scss/v2/BaseImage/BaseImage-layout.scss +21 -0
- package/dist/scss/v2/BaseImage/BaseImage-theme.scss +35 -0
- package/dist/scss/v2/BaseImage/index.scss +2 -0
- package/dist/scss/v2/_icons.scss +3 -0
- package/dist/scss/v2/_utils.scss +12 -0
- package/dist/scss/v2/index.layout.scss +2 -0
- package/dist/scss/v2/index.scss +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--str-chat__image-attachment-color: var(--str-chat__text-color);
|
|
35
35
|
|
|
36
36
|
/* The background color of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */
|
|
37
|
-
--str-chat__image-attachment-background-color: var(--str-
|
|
37
|
+
--str-chat__image-attachment-background-color: var(--str-chat__secondary-surface-color);
|
|
38
38
|
|
|
39
39
|
/* Top border of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */
|
|
40
40
|
--str-chat__image-attachment-border-block-start: none;
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
@include utils.component-layer-overrides('image-gallery-attachment');
|
|
267
267
|
|
|
268
268
|
.str-chat__gallery-image {
|
|
269
|
-
background-color:
|
|
269
|
+
background-color: var(--str-chat__image-attachment-background-color);
|
|
270
270
|
border: 0;
|
|
271
271
|
}
|
|
272
272
|
|
|
@@ -397,4 +397,4 @@
|
|
|
397
397
|
border-end-start-radius: 0;
|
|
398
398
|
border-end-end-radius: 0;
|
|
399
399
|
}
|
|
400
|
-
}
|
|
400
|
+
}
|
|
@@ -26,9 +26,11 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.str-chat__attachment-preview-image {
|
|
29
|
+
@include utils.flex-row-center;
|
|
29
30
|
position: relative;
|
|
30
31
|
height: $preview-height;
|
|
31
32
|
width: $preview-height;
|
|
33
|
+
overflow: hidden;
|
|
32
34
|
|
|
33
35
|
.str-chat__attachment-preview-image-loading {
|
|
34
36
|
@include overlay;
|
|
@@ -108,7 +110,9 @@
|
|
|
108
110
|
.str-chat__attachment-preview-error {
|
|
109
111
|
@include overlay;
|
|
110
112
|
@include utils.unset-button(unset);
|
|
113
|
+
inset-inline-start: 0;
|
|
111
114
|
cursor: pointer;
|
|
115
|
+
z-index: 1;
|
|
112
116
|
}
|
|
113
117
|
}
|
|
114
118
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.str-chat__base-image {
|
|
2
|
+
.str-chat__message-attachment-file--item-download {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.str-chat__message-attachment-card--header,
|
|
8
|
+
.str-chat__gallery-image,
|
|
9
|
+
.str-chat__message-attachment--image {
|
|
10
|
+
.str-chat__message-attachment-file--item-download {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0.5rem;
|
|
13
|
+
right: 1rem;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.str-chat__attachment-preview-image {
|
|
18
|
+
.str-chat__message-attachment-file--item-download {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__base-image {
|
|
4
|
+
color: transparent; // prevents the img alt text from being seen through the mask
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.str-chat__base-image--load-failed {
|
|
8
|
+
@include utils.apply-mask-image(
|
|
9
|
+
var(--str-chat__image-fallback-icon),
|
|
10
|
+
var(--str-chat__disabled-color),
|
|
11
|
+
5rem 5rem
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
~ .str-chat__message-attachment-file--item-download {
|
|
15
|
+
.str-chat__message-attachment-download-icon path {
|
|
16
|
+
fill: var(--str-chat__text-color);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.str-chat__attachment-preview-image {
|
|
22
|
+
.str-chat__base-image--load-failed {
|
|
23
|
+
$fallbackSize: 1.5rem 1.5rem;
|
|
24
|
+
mask-size: $fallbackSize;
|
|
25
|
+
-webkit-mask-size: $fallbackSize;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.str-chat__attachment-preview-list .str-chat__attachment-preview-image--error {
|
|
30
|
+
background-color: var(--str-chat__secondary-surface-color);
|
|
31
|
+
|
|
32
|
+
.str-chat__attachment-preview-thumbnail.str-chat__base-image--load-failed {
|
|
33
|
+
background-color: var(--str-chat__disabled-color);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.str-chat {
|
|
2
|
+
--str-chat__image-fallback-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9InN0ci1jaGF0X19pbWFnZS1mYWxsYmFja19faWNvbiIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTYgMnYxNEgyVjJoMTRabTAtMkgyQy45IDAgMCAuOSAwIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlYyYzAtMS4xLS45LTItMi0yWm0tNC44NiA4Ljg2LTMgMy44N0w2IDEwLjE0IDMgMTRoMTJsLTMuODYtNS4xNFoiLz48L3N2Zz4=");
|
|
3
|
+
}
|
package/dist/scss/v2/_utils.scss
CHANGED
|
@@ -199,3 +199,15 @@
|
|
|
199
199
|
var(--original-height, 1000000)
|
|
200
200
|
);
|
|
201
201
|
}
|
|
202
|
+
|
|
203
|
+
@mixin apply-mask-image($imageDataUrl, $fill, $size) {
|
|
204
|
+
mask-image: $imageDataUrl;
|
|
205
|
+
-webkit-mask-image: $imageDataUrl;
|
|
206
|
+
mask-repeat: no-repeat;
|
|
207
|
+
-webkit-mask-repeat: no-repeat;
|
|
208
|
+
mask-position: center;
|
|
209
|
+
-webkit-mask-position: center;
|
|
210
|
+
mask-size: $size;
|
|
211
|
+
-webkit-mask-size: $size;
|
|
212
|
+
background-color: $fill;
|
|
213
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
@use 'base';
|
|
2
2
|
@use 'emoji-replacement';
|
|
3
3
|
@use 'global-layout-variables';
|
|
4
|
+
@use 'icons';
|
|
4
5
|
|
|
5
6
|
@use 'Avatar/Avatar-layout';
|
|
6
7
|
@use 'AttachmentList/AttachmentList-layout';
|
|
7
8
|
@use 'AttachmentPreviewList/AttachmentPreviewList-layout';
|
|
8
9
|
@use 'Autocomplete/Autocomplete-layout';
|
|
10
|
+
@use 'BaseImage/BaseImage-layout';
|
|
9
11
|
@use 'Channel/Channel-layout';
|
|
10
12
|
@use 'ChannelHeader/ChannelHeader-layout';
|
|
11
13
|
@use 'ChannelList/ChannelList-layout';
|
package/dist/scss/v2/index.scss
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@use 'AttachmentList/AttachmentList-theme';
|
|
12
12
|
@use 'AttachmentPreviewList/AttachmentPreviewList-theme';
|
|
13
13
|
@use 'Autocomplete/Autocomplete-theme';
|
|
14
|
+
@use 'BaseImage/BaseImage-theme';
|
|
14
15
|
@use 'Channel/Channel-theme.scss';
|
|
15
16
|
@use 'ChannelHeader/ChannelHeader-theme';
|
|
16
17
|
@use 'ChannelList/ChannelList-theme';
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "10.
|
|
1
|
+
export declare const version = "10.22.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '10.
|
|
1
|
+
export var version = '10.22.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.22.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/",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@braintree/sanitize-url": "^6.0.4",
|
|
32
32
|
"@popperjs/core": "^2.11.5",
|
|
33
|
-
"@stream-io/stream-chat-css": "
|
|
33
|
+
"@stream-io/stream-chat-css": "3.15.0",
|
|
34
34
|
"clsx": "^2.0.0",
|
|
35
35
|
"dayjs": "^1.10.4",
|
|
36
36
|
"emoji-mart": "3.0.1",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"rollup-plugin-url": "^3.0.1",
|
|
171
171
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
172
172
|
"semantic-release": "^19.0.5",
|
|
173
|
-
"stream-chat": "^8.
|
|
173
|
+
"stream-chat": "^8.14.4",
|
|
174
174
|
"style-loader": "^2.0.0",
|
|
175
175
|
"ts-jest": "^26.5.1",
|
|
176
176
|
"typescript": "^4.7.4",
|