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.
@@ -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.0";
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, customMessageData?: Omit<UpdatedMessage, 'mentioned_users'>) => void;
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, customMessageData?: Omit<UpdatedMessage, 'mentioned_users'>) => void;
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>;
@@ -37408,7 +37408,7 @@ var useChat = ({
37408
37408
  };
37409
37409
  (0, import_react289.useEffect)(() => {
37410
37410
  if (!client) return;
37411
- const version = "13.14.0";
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}`);