Skip to content

Commit a77de8d

Browse files
10.4.1
2 parents 0196229 + 8023d0a commit a77de8d

File tree

90 files changed

+305
-226
lines changed

Some content is hidden

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

90 files changed

+305
-226
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44
### Bug Fixes
55

66
* remove props spreading on React.Fragment (dragAndDropWindow) ([#1835](https://github.com/GetStream/stream-chat-react/issues/1835)) ([40c799a](https://github.com/GetStream/stream-chat-react/commit/40c799a9ed863dba9da1207b32966fe16b00349b))
7+
* MessageSimple to apply renderText function from properties (#1824) ([7133b33](https://github.com/GetStream/stream-chat-react/pull/1824/commits/7133b331a336a1fd258038fe0de8b1bf7edc8ff6))
78

89

910
### Features
1011

1112
* export QuotedMessage component ([#1823](https://github.com/GetStream/stream-chat-react/issues/1823)) ([1850d30](https://github.com/GetStream/stream-chat-react/commit/1850d30306789b7cf220da373d5bea50697c5f3f))
13+
* added remark-gfm plugin (#1824) ([69a64c2](https://github.com/GetStream/stream-chat-react/pull/1824/commits/69a64c2fbc6935d69adb644167d50decf95faf11))
14+
15+
16+
### Performance Updates
17+
18+
* upgrade react-markdown, update renderText function, adjust types (#1824) ([6afe663](https://github.com/GetStream/stream-chat-react/pull/1824/commits/6afe663e3c2d59de2c7d364fd5d89d0d65521e87))
1219

1320
## [10.3.1](https://github.com/GetStream/stream-chat-react/compare/v10.3.0...v10.3.1) (2022-10-13)
1421

@@ -577,14 +584,14 @@ Both `listener.js` and usage of key codes were outdated and caused unnecessary i
577584
* onBlur prop for ChatAutoComplete ([c9897f4](https://github.com/GetStream/stream-chat-react/commit/c9897f422d0d04d606f149965b510bee749e0151)), closes [#1345](https://github.com/GetStream/stream-chat-react/issues/1345)
578585
* support choosing a giphy version ([0d97fc6](https://github.com/GetStream/stream-chat-react/commit/0d97fc62d4e5f166162e1d375689196305fad420))
579586

580-
### ⚠️ BREAKING CHANGES ⚠️
587+
### ⚠️ BREAKING CHANGES ⚠️
581588

582589
* All types now accept a single generic ([help article](https://getstream.io/chat/docs/sdk/react/customization/typescript_and_generics/))
583590

584591

585592
## [7.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v7.0.0) 2022-02-10
586593

587-
### ⚠️ BREAKING CHANGES ⚠️
594+
### ⚠️ BREAKING CHANGES ⚠️
588595

589596
- Replace stale `react-images` dependency with `react-image-gallery`, removed `ModalImage` [#1318](https://github.com/GetStream/stream-chat-react/pull/1318)
590597
- Add support for accessibility through the use of semantic HTML, ARIA attributes. Updates include changing HTML elements to different types as necessary [#1314](https://github.com/GetStream/stream-chat-react/pull/1314) and [#1294](https://github.com/GetStream/stream-chat-react/pull/1294)

β€Ždocusaurus/docs/React/basics/getting-started.mdxβ€Ž

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ project or instructions on creating specific files, see our [React Chat tutorial
1515
Before starting, make sure you have installed `stream-chat-react` (and `stream-chat`), as directed in the
1616
[Installation](./installation.mdx) section.
1717

18-
The below example is all the code you need to launch a fully functioning chat experience. The [`Chat`](../core-components/chat.mdx)
19-
and [`Channel`](../core-components/channel.mdx) components are React context providers that pass a variety of values to their
18+
The below example is all the code you need to launch a fully functioning chat experience. The [`Chat`](../components/core-components/chat.mdx)
19+
and [`Channel`](../components/core-components/channel.mdx) components are React context providers that pass a variety of values to their
2020
children, including UI components, stateful data, and action handler functions.
2121

2222
```jsx
@@ -128,7 +128,7 @@ a fully functioning chat application.
128128

129129
### Chat
130130

131-
The [`Chat`](../core-components/chat.mdx) component is a React Context provider that wraps the entire Stream Chat application. It provides the [`ChatContext`](../contexts/chat-context.mdx)
131+
The [`Chat`](../components/core-components/chat.mdx) component is a React Context provider that wraps the entire Stream Chat application. It provides the [`ChatContext`](../components/contexts/chat-context.mdx)
132132
to its children, which includes the `StreamChat` client instance. All other components within the library must be nested as children
133133
of `Chat` to maintain proper functionality.
134134

@@ -140,18 +140,18 @@ const { client } = useChatContext();
140140

141141
### Channel
142142

143-
The [`Channel`](../core-components/channel.mdx) component is a React Context provider that wraps all of the logic, functionality, and UI for an individual chat channel.
143+
The [`Channel`](../components/core-components/channel.mdx) component is a React Context provider that wraps all of the logic, functionality, and UI for an individual chat channel.
144144
It provides five separate contexts to its children:
145145

146-
- [`ChannelStateContext`](../contexts/channel-state-context.mdx) - stateful data (ex: `messages` or `members`)
147-
- [`ChannelActionContext`](../contexts/channel-action-context.mdx) - action handlers (ex: `sendMessage` or `openThread`)
148-
- [`ComponentContext`](../contexts/component-context.mdx) - custom component UI overrides (ex: `Avatar` or `Message`)
149-
- [`EmojiContext`](../contexts/emoji-context.mdx) - emoji UI components and data (ex: `EmojiPicker` or `emojiConfig`)
150-
- [`TypingContext`](../contexts/typing-context.mdx) - object of currently typing users (i.e., `typing`)
146+
- [`ChannelStateContext`](../components/contexts/channel-state-context.mdx) - stateful data (ex: `messages` or `members`)
147+
- [`ChannelActionContext`](../components/contexts/channel-action-context.mdx) - action handlers (ex: `sendMessage` or `openThread`)
148+
- [`ComponentContext`](../components/contexts/component-context.mdx) - custom component UI overrides (ex: `Avatar` or `Message`)
149+
- [`EmojiContext`](../components/contexts/emoji-context.mdx) - emoji UI components and data (ex: `EmojiPicker` or `emojiConfig`)
150+
- [`TypingContext`](../components/contexts/typing-context.mdx) - object of currently typing users (i.e., `typing`)
151151

152152
### ChannelList
153153

154-
The [`ChannelList`](../core-components/channel-list.mdx) component renders a list of channels and provides a preview for each. Though the `ChannelList` is essential in many chat apps,
154+
The [`ChannelList`](../components/core-components/channel-list.mdx) component renders a list of channels and provides a preview for each. Though the `ChannelList` is essential in many chat apps,
155155
it isn't a required piece of the library. If a `ChannelList` component is used, a channel object should not be placed as a prop on the `Channel`
156156
component, as the `ChannelList` handles channel setting internally.
157157

@@ -173,28 +173,32 @@ const App = () => (
173173

174174
### Window
175175

176-
The [`Window`](../utility-components/window.mdx) component handles width changes in the main channel to ensure a seamless user experience when opening and closing a `Thread`.
176+
The [`Window`](../components/utility-components/window.mdx) component handles width changes in the main channel to ensure a seamless user experience when opening and closing a `Thread`.
177177

178178
### ChannelHeader
179179

180-
The [`ChannelHeader`](../utility-components/channel-header.mdx) displays pertinent information regarding the currently active channel, including image and title.
180+
The [`ChannelHeader`](../components/utility-components/channel-header.mdx) displays pertinent information regarding the currently active channel, including image and title.
181181

182182
### MessageList
183183

184-
The [`MessageList`](../core-components/message-list.mdx) component renders a list of messages and consumes the various contexts setup from `Channel`. This component accepts a wide variety of optional props for customization needs.
184+
The [`MessageList`](../components/core-components/message-list.mdx) component renders a list of messages and consumes the various contexts setup from `Channel`. This component accepts a wide variety of optional props for customization needs.
185185

186186
### MessageInput
187187

188-
The [`MessageInput`](../message-input-components/message-input.mdx) component is a React Context provider that wraps all of the logic, functionality, and UI for the message input displayed in a channel. It provides the [`MessageInputContext`](../contexts/message-input-context.mdx) to its children.
188+
The [`MessageInput`](../components/message-input-components/message-input.mdx) component is a React Context provider that wraps all of the logic, functionality, and UI for the message input displayed in a channel. It provides the [`MessageInputContext`](../components/contexts/message-input-context.mdx) to its children.
189189

190190
### Thread
191191

192-
The [`Thread`](../core-components/thread.mdx) component renders a list of replies tied to a single parent message in a channel's main message list. A `Thread` maintains its own state and renders its own `MessageList` and `MessageInput` components.
192+
The [`Thread`](../components/core-components/thread.mdx) component renders a list of replies tied to a single parent message in a channel's main message list. A `Thread` maintains its own state and renders its own `MessageList` and `MessageInput` components.
193193

194194
## Summary
195195

196196
In addition to the above referenced UI components, client instantiation, and user connection, you need little other code to get a fully functioning chat application up and running. See below for an example of the complete code.
197197

198+
:::note
199+
Remember our [Theming](../guides/theming/overview.mdx) and [Customizing Components](../guides/customization/overview.mdx) sections in our guides. They offer you a lot of flexibility when adopting our SDK.
200+
:::
201+
198202
<ReviewNote
199203
id='179e58f8-22fb-11ed-909b-a4bb6d26ac2f'
200204
>

β€Ždocusaurus/docs/React/basics/installation.mdxβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ Use cases include team and social messaging, virtual events, livestream gaming,
1818
- Read state and typing indicators
1919
- Channel and message lists
2020

21+
## Where to get started
22+
23+
If you are new to our SDK it is best to go through a of our [tutorial](https://getstream.io/chat/react-chat/tutorial/).
24+
25+
After that, our [getting started page](./getting-started.mdx) is a great next step.
26+
27+
:::tip
28+
If you are integrating our SDK, please pay attention to our [Theming](../guides/theming/overview.mdx) and [Customizing Components](../guides/customization/overview.mdx) sections in our guides. We see that most of our users can get very far by utilizing the flexibility of our SDKs.
29+
:::
30+
2131
## Architecture
2232

2333
A common pattern in the library is the use of context provider hooks (see [Contexts](./contexts/chat_context)). These custom hooks allow for effective value sharing between parent components and their children.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Components",
3+
"position": 4
4+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"label": "React Contexts",
3-
"position": 10
3+
"position": 5
44
}
File renamed without changes.
File renamed without changes.

β€Ždocusaurus/docs/React/contexts/chat-context.mdxβ€Ž renamed to β€Ždocusaurus/docs/React/components/contexts/chat-context.mdxβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 1
44
title: ChatContext
55
---
66

7-
import ReviewNote from '../_docusaurus-components/ReviewNote';
7+
import ReviewNote from '../../_docusaurus-components/ReviewNote';
88

99
The `ChatContext` is exposed by the [`Chat`](../core-components/chat.mdx) component. Since `Chat` wraps the entire chat application, all other components in the library
1010
have access to the values stored in this context. You can access the context values by calling the `useChatContext` custom hook.
@@ -52,7 +52,7 @@ The function to close mobile navigation.
5252

5353
### customClasses
5454

55-
Object containing custom CSS classnames to override the library's default container CSS. See [CSS and Theming](../customization/css-and-theming.mdx)
55+
Object containing custom CSS classnames to override the library's default container CSS. See [CSS and Theming](../../guides/theming/css-and-theming.mdx)
5656
for implementation assistance.
5757

5858
| Type |
@@ -128,7 +128,7 @@ You can override the default behavior by pulling it from context and then utiliz
128128

129129
### theme
130130

131-
Deprecated and to be removed in a future major release. Use the `customStyles` prop to adjust CSS variables and [customize the theme](../customization/css-and-theming.mdx#css-variables) of your app.
131+
Deprecated and to be removed in a future major release. Use the `customStyles` prop to adjust CSS variables and [customize the theme](../../guides/theming/css-and-theming.mdx#css-variables) of your app.
132132

133133
| Type |
134134
| ----- |
@@ -142,7 +142,7 @@ Deprecated and to be removed in a future major release. Use the `customStyles` p
142142

143143
### themeVersion
144144

145-
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).
145+
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](../../guides/theming/css-and-theming.mdx).
146146

147147
| Type | Default |
148148
| -------------- | --------- |

β€Ždocusaurus/docs/React/contexts/component-context.mdxβ€Ž renamed to β€Ždocusaurus/docs/React/components/contexts/component-context.mdxβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 4
44
title: ComponentContext
55
---
66

7-
import GHComponentLink from '../_docusaurus-components/GHComponentLink';
7+
import GHComponentLink from '../../_docusaurus-components/GHComponentLink';
88

99
The `ComponentContext` is a one of the context providers exposed by the [`Channel`](../core-components/channel.mdx) component and is
1010
consumable by all the children of `Channel`. This context provides UI component override options for maximum customization.
@@ -295,7 +295,7 @@ Custom UI component to display the header of a `Thread`.
295295

296296
### ThreadInput
297297

298-
Custom UI component to replace the `MessageInput` of a `Thread`. For the applications using [theme version](../theming/introduction.mdx) 1, the default is `MessageInputSmall`. Applications using theme version 2 will use `MessageInputFlat` by default.
298+
Custom UI component to replace the `MessageInput` of a `Thread`. For the applications using [theme version](../../guides/theming/css-and-theming.mdx) 1, the default is `MessageInputSmall`. Applications using theme version 2 will use `MessageInputFlat` by default.
299299

300300
| Type | Default |
301301
| --------- | ------------------------------------------------------------------------------------------------------------------ |
File renamed without changes.

0 commit comments

Comments
Β (0)