@stream-io/video-react-sdk 1.34.1 → 1.34.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
@@ -1352,7 +1352,7 @@ const SpeakerTest = (props) => {
1352
1352
  const audioElementRef = useRef(null);
1353
1353
  const [isPlaying, setIsPlaying] = useState(false);
1354
1354
  const { t } = useI18n();
1355
- const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.34.1"}/assets/piano.mp3`, } = props;
1355
+ const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.34.2"}/assets/piano.mp3`, } = props;
1356
1356
  // Update audio output device when selection changes
1357
1357
  useEffect(() => {
1358
1358
  const audio = audioElementRef.current;
@@ -2295,9 +2295,7 @@ const ParticipantDetails = ({ indicatorsVisible = true, }) => {
2295
2295
  const isTrackPaused = trackType !== 'none' ? hasPausedTrack(participant, trackType) : false;
2296
2296
  const isAudioTrackUnmuted = useIsTrackUnmuted(participant);
2297
2297
  const isAudioConnecting = hasAudioTrack && !isAudioTrackUnmuted;
2298
- return (jsxs(Fragment, { children: [jsx("div", { className: "str-video__participant-details", children: jsxs("div", { className: "str-video__participant-details__name", children: [name || userId, indicatorsVisible && isAudioConnecting && (jsx(LoadingIndicator, { className: "str-video__participant-details__name--audio-connecting", tooltip: t('Audio is connecting...') })), indicatorsVisible && !hasAudioTrack && (jsx("span", { className: "str-video__participant-details__name--audio-muted" })), indicatorsVisible && !hasVideoTrack && (jsx("span", { className: "str-video__participant-details__name--video-muted" })), indicatorsVisible && isTrackPaused && (jsx("span", { title: t('Video paused due to insufficient bandwidth'), className: "str-video__participant-details__name--track-paused" })), indicatorsVisible && canUnpin && (
2299
- // TODO: remove this monstrosity once we have a proper design
2300
- jsx("span", { title: t('Unpin'), onClick: () => call?.unpin(sessionId), className: "str-video__participant-details__name--pinned" })), indicatorsVisible && jsx(SpeechIndicator, {})] }) }), indicatorsVisible && (jsx(Notification, { isVisible: isLocalParticipant &&
2298
+ return (jsxs(Fragment, { children: [jsx("div", { className: "str-video__participant-details", children: jsxs("div", { className: "str-video__participant-details__name", children: [name || userId, indicatorsVisible && isAudioConnecting && (jsx(LoadingIndicator, { className: "str-video__participant-details__name--audio-connecting", tooltip: t('Audio is connecting...') })), indicatorsVisible && !hasAudioTrack && (jsx("span", { className: "str-video__participant-details__name--audio-muted" })), indicatorsVisible && !hasVideoTrack && (jsx("span", { className: "str-video__participant-details__name--video-muted" })), indicatorsVisible && isTrackPaused && (jsx("span", { title: t('Video paused due to insufficient bandwidth'), className: "str-video__participant-details__name--track-paused" })), indicatorsVisible && pin && (jsx("span", { title: canUnpin ? t('Unpin') : t('Pinned'), onClick: canUnpin ? () => call?.unpin(sessionId) : undefined, className: "str-video__participant-details__name--pinned" })), indicatorsVisible && jsx(SpeechIndicator, {})] }) }), indicatorsVisible && (jsx(Notification, { isVisible: isLocalParticipant &&
2301
2299
  connectionQuality === SfuModels.ConnectionQuality.POOR, message: t('Poor connection quality'), children: connectionQualityAsString && (jsx("span", { className: clsx('str-video__participant-details__connection-quality', `str-video__participant-details__connection-quality--${connectionQualityAsString}`), title: connectionQualityAsString })) }))] }));
2302
2300
  };
2303
2301
  const SpeechIndicator = () => {
@@ -3175,7 +3173,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
3175
3173
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
3176
3174
  };
3177
3175
 
3178
- const [major, minor, patch] = ("1.34.1").split('.');
3176
+ const [major, minor, patch] = ("1.34.2").split('.');
3179
3177
  setSdkInfo({
3180
3178
  type: SfuModels.SdkType.REACT,
3181
3179
  major,