stream-chat-react 13.1.2 → 13.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "13.1.2",
3
+ "version": "13.2.0",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -133,8 +133,7 @@
133
133
  "use-sync-external-store": "^1.4.0"
134
134
  },
135
135
  "optionalDependencies": {
136
- "@stream-io/transliterate": "^1.5.5",
137
- "mml-react": "^0.4.7"
136
+ "@stream-io/transliterate": "^1.5.5"
138
137
  },
139
138
  "peerDependencies": {
140
139
  "@breezystack/lamejs": "^1.2.7",
@@ -143,7 +142,7 @@
143
142
  "emoji-mart": "^5.4.0",
144
143
  "react": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.14.0",
145
144
  "react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.14.0",
146
- "stream-chat": "^9.6.0"
145
+ "stream-chat": "^9.8.0"
147
146
  },
148
147
  "peerDependenciesMeta": {
149
148
  "@breezystack/lamejs": {
@@ -237,7 +236,7 @@
237
236
  "react": "^19.0.0",
238
237
  "react-dom": "^19.0.0",
239
238
  "semantic-release": "^24.2.3",
240
- "stream-chat": "^9.6.0",
239
+ "stream-chat": "^9.8.0",
241
240
  "ts-jest": "^29.2.5",
242
241
  "typescript": "^5.4.5",
243
242
  "typescript-eslint": "^8.17.0"
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { ActionHandlerReturnType } from '../Message/hooks/useActionHandler';
3
- export type MMLProps = {
4
- /** MML source string */
5
- source: string;
6
- /** Submit handler for mml actions */
7
- actionHandler?: ActionHandlerReturnType;
8
- /** Align MML components to left/right, defaults to right */
9
- align?: 'left' | 'right';
10
- };
11
- /**
12
- * A wrapper component around MML-React library
13
- */
14
- export declare const MML: (props: MMLProps) => React.JSX.Element;
@@ -1,16 +0,0 @@
1
- import React, { Suspense } from 'react';
2
- import { useChatContext } from '../../context/ChatContext';
3
- const MMLReact = React.lazy(async () => {
4
- // eslint-disable-next-line import/no-extraneous-dependencies
5
- const mml = await import('mml-react');
6
- return { default: mml.MML };
7
- });
8
- /**
9
- * A wrapper component around MML-React library
10
- */
11
- export const MML = (props) => {
12
- const { actionHandler, align = 'right', source } = props;
13
- const { theme } = useChatContext('MML');
14
- return (React.createElement(Suspense, { fallback: null },
15
- React.createElement(MMLReact, { className: `mml-align-${align}`, Loading: null, onSubmit: actionHandler, source: source, Success: null, theme: (theme || '').replace(' ', '-') })));
16
- };
@@ -1 +0,0 @@
1
- export * from './MML';
@@ -1 +0,0 @@
1
- export * from './MML';