Skip to content

Commit 65fce55

Browse files
committed
Merge branch 'develop'
2 parents cc0fd57 + 1068fe7 commit 65fce55

File tree

35 files changed

+650
-1555
lines changed

35 files changed

+650
-1555
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For components that implement significant logic, it's helpful to split the compo
9393
The preferred method for overriding the pre-defined styles in the library is to two step process. First, import our bundled CSS into the file where you instantiate your chat application. Second, locate any Stream styles you want to override using either the browser inspector or by viewing the library code. You can then add selectors to your local CSS file to override our defaults. For example:
9494

9595
```js
96-
import 'stream-chat-css/dist/css/index.css';
96+
import '@stream-io/stream-chat-css/dist/css/index.css';
9797
import './App.css';
9898
```
9999

docusaurus/docs/React/basics/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ import {
188188
Thread,
189189
Window,
190190
} from 'stream-chat-react';
191-
import 'stream-chat-css/dist/css/index.css';
191+
import '@stream-io/stream-chat-css/dist/css/index.css';
192192

193193
const filters = { type: 'messaging' };
194194
const options = { state: true, presence: true, limit: 10 };

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ const { client, setActiveChannel } = useChatContext();
1717

1818
## Values
1919

20-
### appSettings
21-
22-
The available client-side app settings, includes image and file upload config.
23-
24-
| Type |
25-
| ------ |
26-
| object |
27-
2820
### client
2921

3022
The `StreamChat` client instance. Any methods from the `stream-chat-js` API interface can be run off this object.
@@ -58,6 +50,14 @@ for implementation assistance.
5850
| ------ |
5951
| object |
6052

53+
### getAppSettings
54+
55+
The callback function used to get available client-side app settings, includes image and file upload config.
56+
57+
| Type |
58+
| -------- |
59+
| function |
60+
6161
### mutes
6262

6363
An array of users that have been muted by the connected user.
@@ -93,7 +93,7 @@ You can override the default behavior by pulling it from context and then utiliz
9393

9494
### theme
9595

96-
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.
96+
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.
9797

9898
| Type |
9999
| ----- |

docusaurus/docs/React/core-components/chat.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ When the screen width is at a mobile breakpoint, whether or not the mobile navig
111111
112112
### theme
113113
114-
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.
114+
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.
115115
116116
| Type |
117117
| ----- |

docusaurus/docs/React/custom-code-examples/channel-list-preview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const CustomPreview = (props: ChannelPreviewUIComponentProps) => {
135135
Let's take advantage of the SDK's [CSS classes](../customization/css-and-theming.mdx) for styling. We'll import the bundled CSS into the file where the application is instantiated then apply a class to the button element.
136136

137137
```tsx
138-
import 'stream-chat-css/dist/css/index.css';
138+
import '@stream-io/stream-chat-css/dist/css/index.css';
139139

140140
<div
141141
className={'str-chat__channel-preview-messenger'}

docusaurus/docs/React/custom-code-examples/channel-search.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import CustomChannelSearch from '../assets/CustomChannelSearch.png';
88

99
## How-to Guide for Customizing ChannelSearch
1010

11-
In this example, we will customize the [`ChannelSearch`](../core-components/channel_list/#channelsearch) component. Though this component can be used standalone, we will do our customization when it's established in the `ChannelList`. Here is a guide that outlines how to
11+
In this example, we will customize the [`ChannelSearch`](../core-components/channel-list.mdx#channelsearch) component. Though this component can be used standalone, we will do our customization when it's established in the `ChannelList`. Here is a guide that outlines how to
1212
override the default `DropdownContainer` and `SearchResultItem` components, as well as use several other useful props.
1313

1414
:::note
15-
A complete override of this component is possible by utilizing the [`ChannelSearch`](../core-components/channel_list/#channelsearch) prop on `ChannelList`.
15+
A complete override of this component is possible by utilizing the [`ChannelSearch`](../core-components/channel-list.mdx#channelsearch) prop on `ChannelList`.
1616
:::
1717

1818
### Step 1 - Setting Up For Success

docusaurus/docs/React/custom-code-examples/override-submit-handler.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type MessageToSend = {
3232
```
3333

3434
:::important
35-
Call the `sendMessage` function from the [`ChannelActionContext`](../contexts/channel_action_context#sendmessage) within
35+
Call the `sendMessage` function from the [`ChannelActionContext`](../contexts/channel-action-context.mdx#sendmessage) within
3636
your custom function to ensure a message is sent to the active channel.
3737
:::
3838

docusaurus/docs/React/customization/css-and-theming.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ default container CSS.
2020

2121
To override pre-defined library styles, follow this simple process:
2222

23-
- Import our bundled CSS into the file where you instantiate your chat application. We maintain a separate repository, `stream-chat-css`,
23+
- Import our bundled CSS into the file where you instantiate your chat application. We maintain a separate repository, `@stream-io/stream-chat-css`,
2424
which houses all of the SCSS files for the components.
2525

2626
- Use the browser inspector or view the library code and locate default styles you wish to override
@@ -32,7 +32,7 @@ To override pre-defined library styles, follow this simple process:
3232
For example:
3333

3434
```jsx
35-
import 'stream-chat-css/dist/css/index.css';
35+
import '@stream-io/@stream-io/stream-chat-css/dist/css/index.css';
3636
import './App.css';
3737
```
3838

docusaurus/docs/React/message-input-components/message-input.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ Function to clear the editing state while editing a message.
5252
| ---------- |
5353
| () => void |
5454

55+
### closeEmojiPickerOnClick
56+
57+
If true, picking an emoji from the `EmojiPicker` component will close the picker.
58+
59+
| Type | Default |
60+
| ------- | ------- |
61+
| boolean | false |
62+
5563
### disabled
5664

5765
If true, disables the text input.

docusaurus/docs/React/troubleshooting/troubleshooting.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ For information regarding some common troubleshooting and support issues, please
88

99
### Context Providers
1010

11-
The Stream Chat React SDK uses a variety of [Context Providers](../contexts/chat_context) that share values and data to all their children. This is instead of prop drilling through many levels of components.
11+
The Stream Chat React SDK uses a variety of [Context Providers](../contexts/chat-context.mdx) that share values and data to all their children. This is instead of prop drilling through many levels of components.
1212
If you're creating a custom component, utilizing our contexts via our custom hooks makes this process very straightforward.
1313

1414
A common issue is when one of the exposed hooks from a context provider is being utilized, but not within the related Context. Each value you pull will be undefined.
15-
A good resource for knowing which of our components are Context Providers is within [Core Components](../core-components/chat).
15+
A good resource for knowing which of our components are Context Providers is within [Core Components](../core-components/chat.mdx).
1616

1717
### User Roles and Permission Policies
1818

0 commit comments

Comments
 (0)