@stream-io/video-react-sdk 1.24.0 → 1.24.2

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/index.es.js CHANGED
@@ -2584,6 +2584,7 @@ const applyParticipantsFilter = (participants, filter) => {
2584
2584
  isPinned: isPinned(participant),
2585
2585
  hasVideo: hasVideo(participant),
2586
2586
  hasAudio: hasAudio(participant),
2587
+ hasScreenShare: hasScreenShare(participant),
2587
2588
  }, filter);
2588
2589
  return participants.filter(filterCallback);
2589
2590
  };
@@ -2615,8 +2616,8 @@ const useSpeakerLayoutSortPreset = (call, isOneOnOneCall) => {
2615
2616
  };
2616
2617
  const useRawRemoteParticipants = () => {
2617
2618
  const { useRawParticipants } = useCallStateHooks();
2618
- const rawParicipants = useRawParticipants();
2619
- return useMemo(() => rawParicipants.filter((p) => !p.isLocalParticipant), [rawParicipants]);
2619
+ const rawParticipants = useRawParticipants();
2620
+ return useMemo(() => rawParticipants.filter((p) => !p.isLocalParticipant), [rawParticipants]);
2620
2621
  };
2621
2622
  const resetSortPreset = (call) => {
2622
2623
  // reset the sorting to the default for the call type
@@ -2925,7 +2926,7 @@ Host.displayName = 'PipLayout.Host';
2925
2926
  const PipLayout = { Pip, Host };
2926
2927
 
2927
2928
  const LivestreamPlayer = (props) => {
2928
- const { callType, callId, ...restProps } = props;
2929
+ const { callType, callId, children, ...restProps } = props;
2929
2930
  const client = useStreamVideoClient();
2930
2931
  const [call, setCall] = useState();
2931
2932
  const onError = useEffectEvent(props.onError ?? (() => { }));
@@ -2948,7 +2949,7 @@ const LivestreamPlayer = (props) => {
2948
2949
  if (!call) {
2949
2950
  return null;
2950
2951
  }
2951
- return (jsx(StreamCall, { call: call, children: jsx(LivestreamCall, { ...restProps }) }));
2952
+ return (jsxs(StreamCall, { call: call, children: [jsx(LivestreamCall, { ...restProps }), children] }));
2952
2953
  };
2953
2954
  const LivestreamCall = (props) => {
2954
2955
  const call = useLivestreamCall(props);
@@ -3005,7 +3006,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
3005
3006
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
3006
3007
  };
3007
3008
 
3008
- const [major, minor, patch] = ("1.24.0").split('.');
3009
+ const [major, minor, patch] = ("1.24.2").split('.');
3009
3010
  setSdkInfo({
3010
3011
  type: SfuModels.SdkType.REACT,
3011
3012
  major,