@stream-io/video-react-sdk 0.4.6 → 0.4.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.4.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.4.6...@stream-io/video-react-sdk-0.4.7) (2023-11-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * set `key` prop to the correct element ([#1178](https://github.com/GetStream/stream-video-js/issues/1178)) ([b24c07d](https://github.com/GetStream/stream-video-js/commit/b24c07dd366e8aa64055aae7dd48cabe8761eac0)), closes [#1176](https://github.com/GetStream/stream-video-js/issues/1176)
11
+
5
12
  ### [0.4.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.4.5...@stream-io/video-react-sdk-0.4.6) (2023-11-02)
6
13
 
7
14
  ### Dependency Updates
package/dist/index.cjs.js CHANGED
@@ -30,11 +30,11 @@ const ParticipantsAudio = (props) => {
30
30
  return null;
31
31
  const { publishedTracks, audioStream, screenShareAudioStream, sessionId, } = participant;
32
32
  const hasAudio = publishedTracks.includes(videoClient.SfuModels.TrackType.AUDIO);
33
- const audioTrackElement = hasAudio && audioStream && (react.createElement(Audio, { ...audioProps, trackType: "audioTrack", participant: participant, key: `${sessionId}-audio` }));
33
+ const audioTrackElement = hasAudio && audioStream && (jsxRuntime.jsx(Audio, { ...audioProps, trackType: "audioTrack", participant: participant }));
34
34
  const hasScreenShareAudio = publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE_AUDIO);
35
35
  const screenShareAudioTrackElement = hasScreenShareAudio &&
36
- screenShareAudioStream && (react.createElement(Audio, { ...audioProps, trackType: "screenShareAudioTrack", participant: participant, key: `${sessionId}-screen-share-audio` }));
37
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [audioTrackElement, screenShareAudioTrackElement] }));
36
+ screenShareAudioStream && (jsxRuntime.jsx(Audio, { ...audioProps, trackType: "screenShareAudioTrack", participant: participant }));
37
+ return (jsxRuntime.jsxs(react.Fragment, { children: [audioTrackElement, screenShareAudioTrackElement] }, sessionId));
38
38
  }) }));
39
39
  };
40
40
 
@@ -2114,7 +2114,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
2114
2114
  };
2115
2115
  const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
2116
2116
 
2117
- const [major, minor, patch] = ("0.4.6" ).split('.');
2117
+ const [major, minor, patch] = ("0.4.7" ).split('.');
2118
2118
  videoClient.setSdkInfo({
2119
2119
  type: videoClient.SfuModels.SdkType.REACT,
2120
2120
  major,