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

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
@@ -1,4 +1,4 @@
1
- import { hasAudio, hasScreenShareAudio, CallingState, hasVideo, hasScreenShare, OwnCapability, Browsers, VisibilityState, hasPausedTrack, getLogger, disposeOfMediaStream, SfuModels, isPinned, name, NoiseCancellationSettingsModeEnum, paginatedLayoutSortPreset, combineComparators, screenSharing, speakerLayoutSortPreset, CallTypes, defaultSortPreset, setSdkInfo } from '@stream-io/video-client';
1
+ import { hasAudio, hasScreenShareAudio, CallingState, hasVideo, hasScreenShare, OwnCapability, Browsers, VisibilityState, hasPausedTrack, disposeOfMediaStream, SfuModels, isPinned, name, NoiseCancellationSettingsModeEnum, paginatedLayoutSortPreset, combineComparators, screenSharing, speakerLayoutSortPreset, CallTypes, defaultSortPreset, setSdkInfo } from '@stream-io/video-client';
2
2
  export * from '@stream-io/video-client';
3
3
  import { useCall, useCallStateHooks, useI18n, Restricted, useToggleCallRecording, useConnectedUser, StreamCallProvider, StreamVideoProvider, useStreamVideoClient, useEffectEvent } from '@stream-io/video-react-bindings';
4
4
  export * from '@stream-io/video-react-bindings';
@@ -882,7 +882,7 @@ const BackgroundFiltersProvider = (props) => {
882
882
  .catch((err) => console.error('Failed to load TFLite', err));
883
883
  }, [basePath, isSupported, modelFilePath, tfFilePath]);
884
884
  const handleError = useCallback((error) => {
885
- getLogger(['filters'])('warn', 'Filter encountered an error and will be disabled');
885
+ console.warn('[filters] Filter encountered an error and will be disabled');
886
886
  disableBackgroundFilter();
887
887
  onError?.(error);
888
888
  }, [disableBackgroundFilter, onError]);
@@ -1284,7 +1284,6 @@ const DefaultReactionsMenu = ({ reactions, layout = 'horizontal', }) => {
1284
1284
  * @param handler event handler to wrap
1285
1285
  */
1286
1286
  const createCallControlHandler = (props, handler) => {
1287
- const logger = getLogger(['react-sdk']);
1288
1287
  return async () => {
1289
1288
  try {
1290
1289
  await handler();
@@ -1295,7 +1294,7 @@ const createCallControlHandler = (props, handler) => {
1295
1294
  return;
1296
1295
  }
1297
1296
  if (!isNotAllowedError(error)) {
1298
- logger('error', 'Call control handler failed', error);
1297
+ console.error('Call control handler failed', error);
1299
1298
  }
1300
1299
  }
1301
1300
  };
@@ -3006,7 +3005,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
3006
3005
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
3007
3006
  };
3008
3007
 
3009
- const [major, minor, patch] = ("1.24.2").split('.');
3008
+ const [major, minor, patch] = ("1.25.0").split('.');
3010
3009
  setSdkInfo({
3011
3010
  type: SfuModels.SdkType.REACT,
3012
3011
  major,