@stream-io/video-react-sdk 1.0.4 → 1.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [1.0.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.0.5...@stream-io/video-react-sdk-1.0.6) (2024-05-16)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `@stream-io/video-client` updated to version `1.0.5`
10
+ * `@stream-io/video-react-bindings` updated to version `0.4.31`
11
+ ### [1.0.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.0.4...@stream-io/video-react-sdk-1.0.5) (2024-05-15)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **grid:** guard against zero or negative group size ([#1355](https://github.com/GetStream/stream-video-js/issues/1355)) ([fd6d142](https://github.com/GetStream/stream-video-js/commit/fd6d1421b54d46cebd3ffbaf3d57afb0166133d2)), closes [#1293](https://github.com/GetStream/stream-video-js/issues/1293)
17
+
5
18
  ### [1.0.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.0.3...@stream-io/video-react-sdk-1.0.4) (2024-05-14)
6
19
 
7
20
  ### Dependency Updates
package/dist/index.cjs.js CHANGED
@@ -2369,7 +2369,10 @@ const PaginatedGridLayoutGroup = ({ group, VideoPlaceholder, ParticipantViewUI,
2369
2369
  'str-video__paginated-grid-layout--five-nine': group.length >= 5 && group.length <= 9,
2370
2370
  }), children: group.map((participant) => (jsxRuntime.jsx(ParticipantView, { participant: participant, muteAudio: true, VideoPlaceholder: VideoPlaceholder, ParticipantViewUI: ParticipantViewUI }, participant.sessionId))) }));
2371
2371
  };
2372
- const PaginatedGridLayout = ({ groupSize = GROUP_SIZE, excludeLocalParticipant = false, pageArrowsVisible = true, VideoPlaceholder, ParticipantViewUI = DefaultParticipantViewUI, }) => {
2372
+ const PaginatedGridLayout = (props) => {
2373
+ const { groupSize = (props.groupSize || 0) > 0
2374
+ ? props.groupSize || GROUP_SIZE
2375
+ : GROUP_SIZE, excludeLocalParticipant = false, pageArrowsVisible = true, VideoPlaceholder, ParticipantViewUI = DefaultParticipantViewUI, } = props;
2373
2376
  const [page, setPage] = react.useState(0);
2374
2377
  const [paginatedGridLayoutWrapperElement, setPaginatedGridLayoutWrapperElement,] = react.useState(null);
2375
2378
  const call = videoReactBindings.useCall();
@@ -2514,7 +2517,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
2514
2517
  };
2515
2518
  const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
2516
2519
 
2517
- const [major, minor, patch] = ("1.0.4" ).split('.');
2520
+ const [major, minor, patch] = ("1.0.6" ).split('.');
2518
2521
  videoClient.setSdkInfo({
2519
2522
  type: videoClient.SfuModels.SdkType.REACT,
2520
2523
  major,