stream-chat-react 13.14.0 → 13.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Chat/hooks/useChat.js +1 -1
- package/dist/components/MessageInput/SendButton.d.ts +1 -2
- package/dist/components/MessageInput/hooks/useMessageInputControls.d.ts +1 -2
- package/dist/index.browser.cjs +1 -1
- package/dist/index.browser.cjs.map +2 -2
- package/dist/index.node.cjs +1 -1
- package/dist/index.node.cjs.map +2 -2
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ export const useChat = ({ client, defaultLanguage = 'en', i18nInstance, initialN
|
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
if (!client)
|
|
26
26
|
return;
|
|
27
|
-
const version = "13.14.
|
|
27
|
+
const version = "13.14.1";
|
|
28
28
|
const userAgent = client.getUserAgent();
|
|
29
29
|
if (!userAgent.includes('stream-chat-react')) {
|
|
30
30
|
// result looks like: 'stream-chat-react-2.3.2-stream-chat-javascript-client-browser-2.2.2'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { UpdatedMessage } from 'stream-chat';
|
|
3
2
|
export type SendButtonProps = {
|
|
4
|
-
sendMessage: (event: React.BaseSyntheticEvent
|
|
3
|
+
sendMessage: (event: React.BaseSyntheticEvent) => void;
|
|
5
4
|
} & React.ComponentProps<'button'>;
|
|
6
5
|
export declare const SendButton: ({ sendMessage, ...rest }: SendButtonProps) => React.JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { RecordingController } from '../../MediaRecorder/hooks/useMediaRecorder';
|
|
3
|
-
import type { UpdatedMessage } from 'stream-chat';
|
|
4
3
|
import type { MessageInputProps } from '../MessageInput';
|
|
5
4
|
export type MessageInputHookProps = {
|
|
6
|
-
handleSubmit: (event?: React.BaseSyntheticEvent
|
|
5
|
+
handleSubmit: (event?: React.BaseSyntheticEvent) => void;
|
|
7
6
|
onPaste: (event: React.ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
8
7
|
recordingController: RecordingController;
|
|
9
8
|
textareaRef: React.MutableRefObject<HTMLTextAreaElement | null | undefined>;
|
package/dist/index.browser.cjs
CHANGED
|
@@ -37408,7 +37408,7 @@ var useChat = ({
|
|
|
37408
37408
|
};
|
|
37409
37409
|
(0, import_react289.useEffect)(() => {
|
|
37410
37410
|
if (!client) return;
|
|
37411
|
-
const version = "13.14.
|
|
37411
|
+
const version = "13.14.1";
|
|
37412
37412
|
const userAgent = client.getUserAgent();
|
|
37413
37413
|
if (!userAgent.includes("stream-chat-react")) {
|
|
37414
37414
|
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
|