stream-chat-react 13.14.5 → 13.14.6
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/Gallery/ModalGallery.js +1 -3
- package/dist/components/MediaRecorder/classes/MediaRecorderController.js +9 -0
- package/dist/components/Message/renderText/renderText.d.ts +2 -2
- package/dist/index.browser.cjs +13 -14
- package/dist/index.browser.cjs.map +2 -2
- package/dist/index.node.cjs +13 -14
- package/dist/index.node.cjs.map +2 -2
- package/package.json +3 -2
package/dist/index.node.cjs
CHANGED
|
@@ -19369,19 +19369,16 @@ var ModalGallery = (props) => {
|
|
|
19369
19369
|
}),
|
|
19370
19370
|
[images, t]
|
|
19371
19371
|
);
|
|
19372
|
-
return (
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
startIndex: index2
|
|
19383
|
-
}
|
|
19384
|
-
)
|
|
19372
|
+
return /* @__PURE__ */ import_react97.default.createElement(
|
|
19373
|
+
import_react_image_gallery.default,
|
|
19374
|
+
{
|
|
19375
|
+
items: formattedArray,
|
|
19376
|
+
renderItem,
|
|
19377
|
+
showIndex: true,
|
|
19378
|
+
showPlayButton: false,
|
|
19379
|
+
showThumbnails: false,
|
|
19380
|
+
startIndex: index2
|
|
19381
|
+
}
|
|
19385
19382
|
);
|
|
19386
19383
|
};
|
|
19387
19384
|
|
|
@@ -34912,6 +34909,7 @@ var MediaRecorderController = class {
|
|
|
34912
34909
|
};
|
|
34913
34910
|
this.pause = () => {
|
|
34914
34911
|
if (this.recordingState.value !== "recording" /* RECORDING */) return;
|
|
34912
|
+
if (this.mediaRecorder?.state !== "recording") return;
|
|
34915
34913
|
if (this.startTime) {
|
|
34916
34914
|
this.recordedChunkDurations.push((/* @__PURE__ */ new Date()).getTime() - this.startTime);
|
|
34917
34915
|
this.startTime = void 0;
|
|
@@ -34922,6 +34920,7 @@ var MediaRecorderController = class {
|
|
|
34922
34920
|
};
|
|
34923
34921
|
this.resume = () => {
|
|
34924
34922
|
if (this.recordingState.value !== "paused" /* PAUSED */) return;
|
|
34923
|
+
if (this.mediaRecorder?.state !== "paused") return;
|
|
34925
34924
|
this.startTime = (/* @__PURE__ */ new Date()).getTime();
|
|
34926
34925
|
this.mediaRecorder?.resume();
|
|
34927
34926
|
this.amplitudeRecorder?.start();
|
|
@@ -39294,7 +39293,7 @@ var useChat = ({
|
|
|
39294
39293
|
};
|
|
39295
39294
|
(0, import_react289.useEffect)(() => {
|
|
39296
39295
|
if (!client) return;
|
|
39297
|
-
const version = "13.14.
|
|
39296
|
+
const version = "13.14.6";
|
|
39298
39297
|
const userAgent = client.getUserAgent();
|
|
39299
39298
|
if (!userAgent.includes("stream-chat-react")) {
|
|
39300
39299
|
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
|