stream-chat-react 10.19.0 → 10.20.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/README.md +1 -1
- package/dist/browser.full-bundle.js +36 -25
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +3 -3
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Channel/Channel.d.ts +74 -62
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +27 -20
- package/dist/components/Channel/channelState.d.ts +1 -0
- package/dist/components/Channel/channelState.d.ts.map +1 -1
- package/dist/components/Channel/channelState.js +2 -2
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +1 -0
- package/dist/components/MessageList/CustomNotification.d.ts.map +1 -1
- package/dist/components/MessageList/CustomNotification.js +1 -1
- package/dist/components/MessageList/utils.d.ts.map +1 -1
- package/dist/components/MessageList/utils.js +1 -0
- package/dist/components/Thread/Thread.js +1 -0
- 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/index.cjs.js +36 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/MessageInput.scss +6 -0
- package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +7 -0
- package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +4 -0
- package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +1 -0
- package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +5 -0
- package/dist/scss/v2/Message/Message-layout.scss +8 -0
- package/dist/scss/v2/MessageList/MessageList-layout.scss +1 -0
- package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +4 -0
- package/dist/scss/v2/Notification/Notification-layout.scss +4 -0
- package/dist/scss/v2/Thread/Thread-layout.scss +4 -0
- package/dist/scss/v2/Tooltip/Tooltip-layout.scss +1 -0
- package/dist/scss/v2/_utils.scss +5 -0
- package/dist/utils/getChannel.d.ts +4 -2
- package/dist/utils/getChannel.d.ts.map +1 -1
- package/dist/utils/getChannel.js +3 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
.str-chat__user-item--name {
|
|
51
51
|
@include utils.ellipsis-text;
|
|
52
|
+
@include utils.prevent-glitch-text-overflow;
|
|
52
53
|
width: 100%;
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -63,3 +64,9 @@
|
|
|
63
64
|
width: 100%;
|
|
64
65
|
}
|
|
65
66
|
}
|
|
67
|
+
|
|
68
|
+
.str-chat__message-textarea-angular-host--autocomplete-hidden {
|
|
69
|
+
mention-list {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -110,6 +110,11 @@
|
|
|
110
110
|
width: 100%;
|
|
111
111
|
column-gap: var(--str-chat__spacing-2);
|
|
112
112
|
padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
|
|
113
|
+
|
|
114
|
+
.channel-search__result-text,
|
|
115
|
+
.str-chat__channel-search-result--display-name {
|
|
116
|
+
@include utils.prevent-glitch-text-overflow;
|
|
117
|
+
}
|
|
113
118
|
}
|
|
114
119
|
}
|
|
115
120
|
}
|
|
@@ -150,6 +150,10 @@
|
|
|
150
150
|
.str-chat__message-text {
|
|
151
151
|
@include chat-bubble-spacing;
|
|
152
152
|
|
|
153
|
+
.str-chat__message-text-inner {
|
|
154
|
+
@include utils.prevent-glitch-text-overflow;
|
|
155
|
+
}
|
|
156
|
+
|
|
153
157
|
p {
|
|
154
158
|
white-space: pre-line;
|
|
155
159
|
}
|
|
@@ -184,6 +188,10 @@
|
|
|
184
188
|
align-items: center;
|
|
185
189
|
column-gap: var(--str-chat__spacing-1);
|
|
186
190
|
margin-block-start: var(--str-chat__spacing-0_5);
|
|
191
|
+
|
|
192
|
+
.str-chat__message-simple-name {
|
|
193
|
+
@include utils.prevent-glitch-text-overflow;
|
|
194
|
+
}
|
|
187
195
|
}
|
|
188
196
|
|
|
189
197
|
.str-chat__message-status {
|
package/dist/scss/v2/_utils.scss
CHANGED
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
text-overflow: ellipsis;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
@mixin prevent-glitch-text-overflow {
|
|
38
|
+
// Prevent glitch text from overflowing. See the generator: https://lingojam.com/GlitchTextGenerator
|
|
39
|
+
overflow-y: hidden;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
@mixin scrollable {
|
|
38
43
|
overflow-x: hidden;
|
|
39
44
|
overflow-y: auto;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import type { Channel, StreamChat } from 'stream-chat';
|
|
1
|
+
import type { Channel, ChannelQueryOptions, StreamChat } from 'stream-chat';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../types/types';
|
|
3
3
|
declare type GetChannelParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
4
4
|
client: StreamChat<StreamChatGenerics>;
|
|
5
5
|
channel?: Channel<StreamChatGenerics>;
|
|
6
6
|
id?: string;
|
|
7
7
|
members?: string[];
|
|
8
|
+
options?: ChannelQueryOptions<StreamChatGenerics>;
|
|
8
9
|
type?: string;
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
11
12
|
* Calls channel.watch() if it was not already recently called. Waits for watch promise to resolve even if it was invoked previously.
|
|
12
13
|
* @param client
|
|
13
14
|
* @param members
|
|
15
|
+
* @param options
|
|
14
16
|
* @param type
|
|
15
17
|
* @param id
|
|
16
18
|
* @param channel
|
|
17
19
|
*/
|
|
18
|
-
export declare const getChannel: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, id, members, type, }: GetChannelParams<StreamChatGenerics>) => Promise<Channel<StreamChatGenerics>>;
|
|
20
|
+
export declare const getChannel: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, id, members, options, type, }: GetChannelParams<StreamChatGenerics>) => Promise<Channel<StreamChatGenerics>>;
|
|
19
21
|
export {};
|
|
20
22
|
//# sourceMappingURL=getChannel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChannel.d.ts","sourceRoot":"","sources":["../../src/utils/getChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getChannel.d.ts","sourceRoot":"","sources":["../../src/utils/getChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EAEnB,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAWhE,aAAK,gBAAgB,CACnB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AACF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,oNAwCtB,CAAC"}
|
package/dist/utils/getChannel.js
CHANGED
|
@@ -8,12 +8,13 @@ var WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL = {};
|
|
|
8
8
|
* Calls channel.watch() if it was not already recently called. Waits for watch promise to resolve even if it was invoked previously.
|
|
9
9
|
* @param client
|
|
10
10
|
* @param members
|
|
11
|
+
* @param options
|
|
11
12
|
* @param type
|
|
12
13
|
* @param id
|
|
13
14
|
* @param channel
|
|
14
15
|
*/
|
|
15
16
|
export var getChannel = function (_a) {
|
|
16
|
-
var channel = _a.channel, client = _a.client, id = _a.id, members = _a.members, type = _a.type;
|
|
17
|
+
var channel = _a.channel, client = _a.client, id = _a.id, members = _a.members, options = _a.options, type = _a.type;
|
|
17
18
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
18
19
|
var theChannel, originalCid, queryPromise;
|
|
19
20
|
return __generator(this, function (_b) {
|
|
@@ -38,7 +39,7 @@ export var getChannel = function (_a) {
|
|
|
38
39
|
_b.sent();
|
|
39
40
|
return [3 /*break*/, 4];
|
|
40
41
|
case 2:
|
|
41
|
-
WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid] = theChannel.watch();
|
|
42
|
+
WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid] = theChannel.watch(options);
|
|
42
43
|
return [4 /*yield*/, WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid]];
|
|
43
44
|
case 3:
|
|
44
45
|
_b.sent();
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "10.
|
|
1
|
+
export declare const version = "10.20.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.20.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.20.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": "^3.
|
|
33
|
+
"@stream-io/stream-chat-css": "^3.14.2",
|
|
34
34
|
"clsx": "^2.0.0",
|
|
35
35
|
"dayjs": "^1.10.4",
|
|
36
36
|
"emoji-mart": "3.0.1",
|