Skip to content

Commit d57017d

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 34f3c69 + 0d946b4 commit d57017d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1783
-1785
lines changed

.releaserc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
}
7272
}
7373
],
74+
[
75+
"@semantic-release/exec", {
76+
"prepareCmd": "NEXT_VERSION=${nextRelease.version} npm run build"
77+
}],
7478
[
7579
"@semantic-release/changelog",
7680
{

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
## [12.8.2](https://github.com/GetStream/stream-chat-react/compare/v12.8.1...v12.8.2) (2025-01-10)
2+
3+
4+
### Bug Fixes
5+
6+
* show unread messages indicators for target channel only ([#2597](https://github.com/GetStream/stream-chat-react/issues/2597)) ([2af5f0a](https://github.com/GetStream/stream-chat-react/commit/2af5f0a22d48ffa29ddca3eb7032f1da4dc9429a))
7+
* show unread msg banner above unread msg only ([#2596](https://github.com/GetStream/stream-chat-react/issues/2596)) ([b9eb846](https://github.com/GetStream/stream-chat-react/commit/b9eb846f5e56d84b639fe0cf1099b1333660b000))
8+
9+
## [12.8.1](https://github.com/GetStream/stream-chat-react/compare/v12.8.0...v12.8.1) (2024-12-19)
10+
11+
12+
### Bug Fixes
13+
14+
* do not clear dialog state immediately on useDialog unmount ([#2584](https://github.com/GetStream/stream-chat-react/issues/2584)) ([a8755ec](https://github.com/GetStream/stream-chat-react/commit/a8755ec8112f69dd44e95c34d176e00436cbeee5)), closes [#2583](https://github.com/GetStream/stream-chat-react/issues/2583)
15+
16+
## [12.8.0](https://github.com/GetStream/stream-chat-react/compare/v12.7.1...v12.8.0) (2024-12-12)
17+
18+
19+
### Features
20+
21+
* per-user channel pinning/archiving ([#2555](https://github.com/GetStream/stream-chat-react/issues/2555)) ([a51fad0](https://github.com/GetStream/stream-chat-react/commit/a51fad067bdc0ee94fce6fff49c5085196dcc186))
22+
23+
## [12.7.1](https://github.com/GetStream/stream-chat-react/compare/v12.7.0...v12.7.1) (2024-12-05)
24+
25+
26+
### Bug Fixes
27+
28+
* add support for custom resolution of whether a message is ai generated ([#2572](https://github.com/GetStream/stream-chat-react/issues/2572)) ([54640ac](https://github.com/GetStream/stream-chat-react/commit/54640ac4ec89bb3ddd73b9641d3a2ffc0d3ea924))
29+
30+
## [12.7.0](https://github.com/GetStream/stream-chat-react/compare/v12.6.2...v12.7.0) (2024-12-04)
31+
32+
33+
### Features
34+
35+
* add support for ai generated messages ([#2570](https://github.com/GetStream/stream-chat-react/issues/2570)) ([fb1bfdd](https://github.com/GetStream/stream-chat-react/commit/fb1bfddd3ccfae10ef907c5c853791240fc83a35))
36+
37+
## [12.6.2](https://github.com/GetStream/stream-chat-react/compare/v12.6.1...v12.6.2) (2024-12-03)
38+
39+
40+
### Bug Fixes
41+
42+
* report correct package version in esm build ([#2569](https://github.com/GetStream/stream-chat-react/issues/2569)) ([521775c](https://github.com/GetStream/stream-chat-react/commit/521775c414815f71cd7b1312d1ed0b2da27103b1))
43+
44+
## [12.6.1](https://github.com/GetStream/stream-chat-react/compare/v12.6.0...v12.6.1) (2024-12-02)
45+
46+
47+
### Bug Fixes
48+
49+
* report correct package version in the source code ([#2566](https://github.com/GetStream/stream-chat-react/issues/2566)) ([2157d2f](https://github.com/GetStream/stream-chat-react/commit/2157d2f9814f88bccce2855830585d33f52f0299))
50+
151
## [12.6.0](https://github.com/GetStream/stream-chat-react/compare/v12.5.2...v12.6.0) (2024-11-15)
252

353

examples/vite/src/App.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ChannelFilters, ChannelOptions, ChannelSort } from 'stream-chat';
22
import {
3+
AIStateIndicator,
34
Channel,
45
ChannelAvatar,
56
ChannelHeader,
@@ -34,9 +35,10 @@ const userId = parseUserIdFromToken(userToken);
3435
const filters: ChannelFilters = {
3536
members: { $in: [userId] },
3637
type: 'messaging',
38+
archived: false,
3739
};
38-
const options: ChannelOptions = { limit: 3, presence: true, state: true };
39-
const sort: ChannelSort = { last_message_at: -1, updated_at: -1 };
40+
const options: ChannelOptions = { limit: 5, presence: true, state: true };
41+
const sort: ChannelSort = [{ pinned_at: 1 }, { last_message_at: -1 }, { updated_at: -1 }];
4042

4143
type LocalAttachmentType = Record<string, unknown>;
4244
type LocalChannelType = Record<string, unknown>;
@@ -72,7 +74,7 @@ const App = () => {
7274
if (!chatClient) return <>Loading...</>;
7375

7476
return (
75-
<Chat client={chatClient}>
77+
<Chat client={chatClient} isMessageAIGenerated={(message) => !!message?.ai_generated}>
7678
<ChatView>
7779
<ChatView.Selector />
7880
<ChatView.Channels>
@@ -88,6 +90,7 @@ const App = () => {
8890
<Window>
8991
<ChannelHeader Avatar={ChannelAvatar} />
9092
<MessageList returnAllReadData />
93+
<AIStateIndicator />
9194
<MessageInput focus />
9295
</Window>
9396
<Thread virtualized />

examples/vite/src/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ body,
2929
width: 0;
3030
flex-shrink: 0;
3131
box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
32+
max-width: 1000px;
3233

3334
&--open {
3435
width: 30%;

examples/vite/src/main.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
import { StrictMode } from 'react';
12
import ReactDOM from 'react-dom/client';
23
import App from './App.tsx';
34
import './index.scss';
45

5-
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
6+
ReactDOM.createRoot(document.getElementById('root')!).render(
7+
<StrictMode>
8+
<App />
9+
</StrictMode>,
10+
);

0 commit comments

Comments
 (0)