Commit 67bed79
authored
fix: replace StreamChatGenerics with module augmentation (#2634)
### 🎯 Goal
References: GetStream/stream-chat-js#1458
#### Notable changes:
- Extended `EventComponentProps.message` property with `{ event?: Event
}` to cover for weird edge-case
- Extended `StreamMessage` type with these properties commonly used
across the SDK
`{ customType?: string; errorStatusCode?: number; editing?: boolean;
date?: Date }`
BREAKING CHANGE: dropped `StreamChatGenerics`, use `Custom<Entity>Data`
to extend your types1 parent 50ee29c commit 67bed79
File tree
285 files changed
+2620
-4587
lines changed- examples
- capacitor/src
- typescript/src
- vite/src
- src
- @types
- components
- AIStateIndicator
- hooks
- Attachment
- components
- Avatar
- ChannelHeader
- ChannelList
- hooks
- ChannelPreview
- hooks
- ChannelSearch
- hooks
- Channel
- __tests__
- hooks
- ChatAutoComplete
- Chat
- hooks
- CommandItem
- Dialog
- DragAndDrop
- EventComponent
- Form
- Gallery
- InfiniteScrollPaginator
- LoadMore
- MediaRecorder
- classes
- hooks
- observable
- MessageActions
- hooks
- MessageBounce
- MessageInput
- AttachmentPreviewList
- hooks
- MessageList
- hooks
- MessageList
- VirtualizedMessageList
- Message
- hooks
- renderText
- componentRenderers
- rehypePlugins
- remarkPlugins
- Modal
- Poll
- PollActions
- PollResults
- hooks
- Portal
- ReactFileUtilities
- FileIcon
- Reactions
- hooks
- utils
- SafeAnchor
- Threads
- ThreadList
- hooks
- Thread
- Tooltip
- hooks
- TypingIndicator
- UserItem
- Window
- context
- experimental
- MessageActions
- Search
- SearchResults
- hooks
- i18n
- stories
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
285 files changed
+2620
-4587
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 24 | + | |
43 | 25 | | |
44 | 26 | | |
45 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 26 | + | |
51 | 27 | | |
52 | 28 | | |
53 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 43 | + | |
69 | 44 | | |
70 | 45 | | |
71 | | - | |
| 46 | + | |
72 | 47 | | |
73 | 48 | | |
74 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | 7 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 8 | + | |
| 9 | + | |
14 | 10 | | |
15 | 11 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 12 | + | |
19 | 13 | | |
20 | | - | |
| 14 | + | |
21 | 15 | | |
22 | | - | |
23 | | - | |
| 16 | + | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 17 | + | |
25 | 18 | | |
26 | 19 | | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
31 | 24 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
42 | 32 | | |
43 | 33 | | |
44 | 34 | | |
| |||
0 commit comments