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.
@@ -19369,19 +19369,16 @@ var ModalGallery = (props) => {
19369
19369
  }),
19370
19370
  [images, t]
19371
19371
  );
19372
- return (
19373
- // @ts-expect-error ignore the TS error as react-image-gallery was on @types/react@18 while stream-chat-react being upgraded to React 19 (https://github.com/xiaolin/react-image-gallery/issues/809)
19374
- /* @__PURE__ */ import_react97.default.createElement(
19375
- import_react_image_gallery.default,
19376
- {
19377
- items: formattedArray,
19378
- renderItem,
19379
- showIndex: true,
19380
- showPlayButton: false,
19381
- showThumbnails: false,
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.5";
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}`);