@stream-io/video-react-sdk 1.0.4 → 1.0.5
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 +7 -0
- package/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/core/components/CallLayout/PaginatedGridLayout.d.ts +1 -1
- package/package.json +1 -1
- package/src/core/components/CallLayout/PaginatedGridLayout.tsx +10 -7
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
|
+
### [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)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **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)
|
|
11
|
+
|
|
5
12
|
### [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
13
|
|
|
7
14
|
### 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 = (
|
|
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.
|
|
2520
|
+
const [major, minor, patch] = ("1.0.5" ).split('.');
|
|
2518
2521
|
videoClient.setSdkInfo({
|
|
2519
2522
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
2520
2523
|
major,
|