Skip to content

Commit 7d4000c

Browse files
authored
Merge pull request #2089 from GetStream/develop
v10.10.0
2 parents fff3e6f + 1c13e26 commit 7d4000c

File tree

102 files changed

+5254
-804
lines changed

Some content is hidden

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

102 files changed

+5254
-804
lines changed

.releaserc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"@semantic-release/commit-analyzer",
1313
{
1414
"preset": "angular",
15-
"releaseRules": [{ "type": "chore", "scope": "deps", "release": "patch" }]
15+
"releaseRules": [
16+
{ "type": "chore", "scope": "deps", "release": "patch" },
17+
{ "type": "refactor", "release": "patch" }
18+
]
1619
}
1720
],
1821
"@semantic-release/release-notes-generator",
53.7 KB
Loading
61.4 KB
Loading
45.3 KB
Loading

docusaurus/docs/React/components/contexts/channel-action-context.mdx

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const { closeThread, loadMoreThread } = useChannelActionContext();
2222
Function to add a temporary notification to `MessageList`, and it will be removed after 5 seconds.
2323

2424
| Type |
25-
|----------|
25+
| -------- |
2626
| function |
2727
| |
2828

@@ -31,7 +31,7 @@ Function to add a temporary notification to `MessageList`, and it will be remove
3131
The function to close the currently open `Thread`.
3232

3333
| Type |
34-
|----------|
34+
| -------- |
3535
| function |
3636

3737
### dispatch
@@ -47,7 +47,7 @@ The dispatch function for the [`ChannelStateReducer`](https://github.com/GetStre
4747
A function that takes a message to be edited, returns a Promise.
4848

4949
| Type |
50-
|----------|
50+
| -------- |
5151
| function |
5252

5353
### jumpToLatestMessage
@@ -61,7 +61,7 @@ Used in conjunction with `jumpToMessage`. Restores the position of the message l
6161
### jumpToMessage
6262

6363
When called, `jumpToMessage` causes the current message list to jump to the message with the id specified in the `messageId` parameter.
64-
Here's an example of a button, which, when clicked, searches for a given message and navigates to it:
64+
Here's an example of a button, which, when clicked, searches for a given message and navigates to it:
6565

6666
```tsx
6767
const JumpToMessage = () => {
@@ -90,104 +90,104 @@ const JumpToMessage = () => {
9090

9191
// further down the line, add the JumpToMessage to the component tree as a child of `Channel`
9292
// ...
93-
return (<Channel channel={channel}>
93+
return (
94+
<Channel channel={channel}>
9495
<JumpToMessage />
9596
<Window>
9697
<MessageList />
9798
</Window>
98-
</Channel>)
99+
</Channel>
100+
);
99101
```
100102

101-
102103
| Type |
103-
| ------------------------------------ |
104+
| -------------------------------------- |
104105
| `(messageId: string) => Promise<void>` |
105106

106107
### loadMore
107108

108109
The function to load next page/batch of `messages` (used for pagination).
109110

110111
| Type |
111-
|----------|
112+
| -------- |
112113
| function |
113114

114-
115115
### loadMoreNewer
116116

117117
The function to load next page/batch of `messages` (used for pagination).
118118

119-
| Type |
120-
|-------------------------------------|
119+
| Type |
120+
| ------------------------------------ |
121121
| (limit?: number) => Promise<number\> |
122122

123123
### loadMoreThread
124124

125125
The function to load next page/batch of `messages` in a currently active/open `Thread` (used for pagination).
126126

127127
| Type |
128-
|----------|
128+
| -------- |
129129
| function |
130130

131131
### onMentionsClick
132132

133133
Custom action handler function to execute when @mention is clicked, takes a DOM click event object and an array of mentioned users.
134134

135135
| Type |
136-
|----------|
136+
| -------- |
137137
| function |
138138

139139
### onMentionsHover
140140

141141
The function to execute when @mention is hovered in a `message`, takes a DOM click event object and an array of mentioned users.
142142

143143
| Type |
144-
|----------|
144+
| -------- |
145145
| function |
146146

147147
### openThread
148148

149149
The function to execute when replies count button is clicked, takes the parent message of the `Thread` to be opened and optionally a DOM click event.
150150

151151
| Type |
152-
|----------|
152+
| -------- |
153153
| function |
154154

155155
### removeMessage
156156

157157
The function to remove a `message` from `MessageList`, handled by the `Channel` component. Takes a `message` object.
158158

159159
| Type |
160-
|----------|
160+
| -------- |
161161
| function |
162162

163163
### retrySendMessage
164164

165165
The function to resend a `message`, handled by the `Channel` component.
166166

167167
| Type |
168-
|----------|
168+
| -------- |
169169
| function |
170170

171171
### sendMessage
172172

173173
The function to send a `message` on `Channel`. Takes a `message` object with the basic message information as the first argument, and custom data as the second argument.
174174

175175
| Type |
176-
|----------|
176+
| -------- |
177177
| function |
178178

179179
### setQuotedMessage
180180

181181
The function to send a `QuotedMessage` on a `Channel`, take a `message` object.
182182

183183
| Type |
184-
|----------|
184+
| -------- |
185185
| function |
186186

187187
### updateMessage
188188

189189
The function to update a `message` on `Channel`, takes a `message` object.
190190

191191
| Type |
192-
|----------|
192+
| -------- |
193193
| function |

docusaurus/docs/React/components/contexts/channel-state-context.mdx

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ If true, chat users will be able to drag and drop file uploads to the entire cha
5757
| ------- | ------- |
5858
| boolean | false |
5959

60+
### debounceURLEnrichmentMs:
61+
62+
Number of milliseconds to debounce firing the URL enrichment queries when typing. The default value is 1500(ms). See the guide [Link Previews in Message Input](../../../guides/customization/link-previews) for more.
63+
64+
| Type | Default |
65+
| ------ | ------- |
66+
| number | 1500 |
67+
68+
### enrichURLForPreview
69+
70+
A global flag to toggle the URL enrichment and link previews in `MessageInput`. By default, the feature is disabled. It can be overridden on Thread and MessageList level through `additionalMessageInputProps`
71+
or directly on `MessageInput` level through `urlEnrichmentConfig` prop.
72+
73+
| Type | Default |
74+
| ------- | ------- |
75+
| boolean | false |
76+
6077
### error
6178

6279
Error object (if any) in loading the `channel`, otherwise null.
@@ -65,6 +82,14 @@ Error object (if any) in loading the `channel`, otherwise null.
6582
| ------ |
6683
| object |
6784

85+
### findURLFn
86+
87+
Custom function to identify URLs in a string for later generation of link previews. See the guide [Link Previews in Message Input](../../../guides/customization/link-previews) for more.
88+
89+
| Type |
90+
| ---------------------------- |
91+
| `(text: string) => string[]` |
92+
6893
### giphyVersion
6994

7095
The giphy version to use when displaying giphies.
@@ -89,7 +114,6 @@ If the channel has more, older, messages to paginate through.
89114
| ------- |
90115
| boolean |
91116

92-
93117
### hasMoreNewer
94118

95119
If the channel has more, newer, messages to paginate through.
@@ -103,7 +127,7 @@ If the channel has more, newer, messages to paginate through.
103127
Value is used internally for jump-to-message logic. Once the user "jumped" to the message, the message with the given ID is highlighted by manipulating its styles attribute.
104128

105129
| Type |
106-
|--------|
130+
| ------ |
107131
| string |
108132

109133
### loading
@@ -127,7 +151,7 @@ Boolean for the `channel` loading more messages.
127151
Flag signalling whether newer messages are being loaded as the user scrolls down in the message list. Used internally by `VirtualizedMessageList`.
128152

129153
| Type |
130-
|---------|
154+
| ------- |
131155
| boolean |
132156

133157
### maxNumberOfFiles
@@ -178,6 +202,14 @@ Temporary notifications added to the `MessageList` on specific user/message acti
178202
| -------------------------------------------------------- |
179203
| {id: string, text: string, type: 'success' \| 'error'}[] |
180204

205+
### onLinkPreviewDismissed
206+
207+
Custom function to react to link preview dismissal. See the guide [Link Previews in Message Input](../../../guides/customization/link-previews) for more.
208+
209+
| Type |
210+
| ------------------------------------ |
211+
| `(linkPreview: LinkPreview) => void` |
212+
181213
### pinnedMessages
182214

183215
The messages that are pinned in the `channel`.
@@ -202,14 +234,14 @@ The read state for each `channel` member.
202234
| ------ |
203235
| object |
204236

205-
206237
### suppressAutoscroll
207238

208239
Flag signalling whether the scroll to the bottom is prevented. Used internally by `MessageList` and `VirtualizedMessageList` components.
209240

210241
| Type |
211-
|---------|
242+
| ------- |
212243
| boolean |
244+
213245
### shouldGenerateVideoThumbnail
214246

215247
You can turn on/off thumbnail generation for video attachments
@@ -255,8 +287,9 @@ Array of messages within a `thread`.
255287
Flag signalling whether the scroll to the bottom is prevented in thread. Used internally by `MessageList` and `VirtualizedMessageList` components.
256288

257289
| Type |
258-
|---------|
290+
| ------- |
259291
| boolean |
292+
260293
### videoAttachmentSizeHandler
261294

262295
A custom function to provide size configuration for video attachments

docusaurus/docs/React/components/contexts/chat-context.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The currently active channel, which populates the [`Channel`](../core-components
3838
The function to close mobile navigation.
3939

4040
| Type |
41-
|----------|
41+
| -------- |
4242
| function |
4343

4444
### customClasses
@@ -55,7 +55,7 @@ for implementation assistance.
5555
The callback function used to get available client-side app settings, includes image and file upload config.
5656

5757
| Type |
58-
|----------|
58+
| -------- |
5959
| function |
6060

6161
### latestMessageDatesByChannel
@@ -79,15 +79,15 @@ An array of users that have been muted by the connected user.
7979
When the screen width is at a mobile breakpoint, whether the mobile navigation menu is open.
8080

8181
| Type | Default |
82-
|---------|---------|
82+
| ------- | ------- |
8383
| boolean | true |
8484

8585
### openMobileNav
8686

8787
The function to open mobile navigation.
8888

8989
| Type |
90-
|----------|
90+
| -------- |
9191
| function |
9292

9393
### setActiveChannel
@@ -96,7 +96,7 @@ A function to set the currently active channel. This is used in the `ChannelList
9696
You can override the default behavior by pulling it from context and then utilizing the function.
9797

9898
| Type |
99-
|----------|
99+
| -------- |
100100
| function |
101101

102102
### theme
@@ -111,9 +111,9 @@ Deprecated and to be removed in a future major release. Use the `customStyles` p
111111

112112
Stream chat theme version 2 has been introduced with the release of stream-chat-react v10.0.0. This flag is used internally by some UI components of the SDK and the integrators shouldn't need to use it. The value is extracted from a CSS variable `--str-chat__theme-version`. You can set it to values `'1'` or `'2'` in your stylesheets and import the corresponding v2 stylesheet from `stream-chat-react/dist`. Find out more about benefits that the theme version 2 brings to the integrators with [the theming guide](../../theming/introduction.mdx).
113113

114-
| Type | Default |
115-
| -------------- | --------- |
116-
| `'1'` \| `'2'` | `'1'` |
114+
| Type | Default |
115+
| -------------- | ------- |
116+
| `'1'` \| `'2'` | `'1'` |
117117

118118
### useImageFlagEmojisOnWindow
119119

0 commit comments

Comments
 (0)