Skip to content

Commit d26f025

Browse files
authored
Merge pull request #1595 from GetStream/develop
v9.0.0
2 parents f56457e + 507b3ac commit d26f025

File tree

149 files changed

+1981
-1661
lines changed

Some content is hidden

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

149 files changed

+1981
-1661
lines changed

axe-helper.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable no-undef */
2+
const { configureAxe } = require('jest-axe');
3+
4+
module.exports.axe = configureAxe({
5+
// FIXME: this is a temporary measure, the SDK needs fixing
6+
rules: { 'nested-interactive': { enabled: false } },
7+
});

docusaurus/docs/React/contexts/message-input-context.mdx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,14 @@ If true, file uploads are enabled in the currently active channel.
246246
| ------- | ------- |
247247
| boolean | true |
248248

249-
### keycodeSubmitKeys
249+
### shouldSubmit
250250

251-
Currently, Enter is the default submission key and Shift+Enter is the default for new line. If provided, this array of keycode
252-
numbers will override the default Enter for submission, and Enter will then only create a new line. Shift + Enter will still
253-
always create a new line, unless Shift+Enter [16, 13] is included in the override.
254-
(ex: [[16,13], [57], [48]] - submission keys would then be Shift+Enter, 9, and 0).
251+
Currently, `Enter` is the default submission key and `Shift`+`Enter` is the default combination for the new line.
252+
If specified, this function overrides the default behavior specified previously.
255253

256-
| Type |
257-
| --------------- |
258-
| Array<number[]> |
254+
| Type |
255+
| --------------------------------- |
256+
| (event: KeyboardEvent) => boolean |
259257

260258
### maxFilesLeft
261259

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,14 @@ Custom UI component handling how the message input is rendered.
124124
| --------- | ------------------------------------------------------------------------------------------------------------------------------- |
125125
| component | [MessageInputFlat](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/MessageInputFlat.tsx) |
126126

127-
### keycodeSubmitKeys
127+
### shouldSubmit
128128

129-
Currently, Enter is the default submission key and Shift+Enter is the default for new line. If provided, this array of keycode
130-
numbers will override the default Enter for submission, and Enter will then only create a new line. Shift + Enter will still
131-
always create a new line, unless Shift+Enter [16, 13] is included in the override.
132-
(ex: [[16,13], [57], [48]] - submission keys would then be Shift+Enter, 9, and 0).
129+
Currently, `Enter` is the default submission key and `Shift`+`Enter` is the default combination for the new line.
130+
If specified, this function overrides the default behavior specified previously.
133131

134-
| Type |
135-
| --------------- |
136-
| Array<number[]> |
132+
| Type |
133+
| --------------------------------- |
134+
| (event: KeyboardEvent) => boolean |
137135

138136
### maxRows
139137

@@ -199,7 +197,6 @@ If true, triggers typing events on text input keystroke.
199197
| ------- | ------- |
200198
| boolean | true |
201199

202-
203200
### useMentionsTransliteration
204201

205202
If true, will use an optional dependency to support transliteration in the input for mentions. See: https://github.com/sindresorhus/transliterate

examples/capacitor/src/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { createRoot } from 'react-dom/client';
33
import './index.css';
44
import App from './App';
55
import * as serviceWorker from './serviceWorker';
66

7-
ReactDOM.render(
7+
createRoot(document.getElementById('root')!).render(
88
<React.StrictMode>
99
<App />
10-
</React.StrictMode>,
11-
document.getElementById('root'),
10+
</React.StrictMode>
1211
);
1312

1413
// If you want your app to work offline and load faster, you can change

examples/typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"@testing-library/user-event": "^7.1.2",
1818
"@types/jest": "^24.0.0",
1919
"@types/node": "^12.0.0",
20-
"@types/react": "^16.9.0",
21-
"@types/react-dom": "^16.9.0"
20+
"@types/react": "link:../../node_modules/@types/react",
21+
"@types/react-dom": "link:../../node_modules/@types/react-dom"
2222
},
2323
"scripts": {
2424
"start": "react-scripts start",

examples/typescript/src/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { createRoot } from 'react-dom/client';
33
import './index.css';
44
import App from './App';
55
import * as serviceWorker from './serviceWorker';
66

7-
ReactDOM.render(
7+
createRoot(document.getElementById('root')!).render(
88
<React.StrictMode>
99
<App />
10-
</React.StrictMode>,
11-
document.getElementById('root'),
10+
</React.StrictMode>
1211
);
1312

1413
// If you want your app to work offline and load faster, you can change

0 commit comments

Comments
 (0)