@stream-io/video-react-sdk 1.19.2 → 1.19.4

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,23 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.19.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.19.3...@stream-io/video-react-sdk-1.19.4) (2025-08-06)
6
+
7
+ ### Bug Fixes
8
+
9
+ - respect call type settings when applying persisted device preferеnces ([#1879](https://github.com/GetStream/stream-video-js/issues/1879)) ([4d1352d](https://github.com/GetStream/stream-video-js/commit/4d1352d74f4bd1a6e926abc16c86f3f260942cf0))
10
+
11
+ ## [1.19.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.19.2...@stream-io/video-react-sdk-1.19.3) (2025-08-05)
12
+
13
+ ### Dependency Updates
14
+
15
+ - `@stream-io/video-client` updated to version `1.27.2`
16
+ - `@stream-io/video-react-bindings` updated to version `1.7.11`
17
+
18
+ ### Bug Fixes
19
+
20
+ - export the Reaction component ([#1877](https://github.com/GetStream/stream-video-js/issues/1877)) ([7b4f0ff](https://github.com/GetStream/stream-video-js/commit/7b4f0ff917758f54f4452fa7ef92e4102d302492))
21
+
5
22
  ## [1.19.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.19.1...@stream-io/video-react-sdk-1.19.2) (2025-08-01)
6
23
 
7
24
  ### Bug Fixes
package/dist/index.cjs.js CHANGED
@@ -98,17 +98,18 @@ const usePersistedDevicePreferences = (key = '@stream-io/device-preferences') =>
98
98
  }
99
99
  setApplyingState('applying');
100
100
  (async () => {
101
- for (const [deviceKey, state, defaultMuted] of [
102
- ['microphone', microphoneState, !settings.audio.mic_default_on],
103
- ['camera', cameraState, !settings.video.camera_default_on],
104
- ['speaker', speakerState, false],
101
+ const { audio, video } = settings;
102
+ for (const [deviceKey, state, defaultMuted, enabledInCallType] of [
103
+ ['microphone', microphoneState, !audio.mic_default_on, true],
104
+ ['camera', cameraState, !video.camera_default_on, video.enabled],
105
+ ['speaker', speakerState, false, true],
105
106
  ]) {
106
107
  const preferences = parseLocalDevicePreferences(key);
107
108
  const preference = preferences[deviceKey];
108
109
  const manager = state[deviceKey];
109
110
  const applyPromise = preference
110
- ? applyLocalDevicePreference(manager, [preference].flat(), state.devices)
111
- : applyMutedState(manager, defaultMuted);
111
+ ? applyLocalDevicePreference(manager, [preference].flat(), state.devices, enabledInCallType)
112
+ : applyMutedState(manager, defaultMuted, enabledInCallType);
112
113
  await applyPromise.catch((err) => {
113
114
  console.warn(`Failed to apply ${deviceKey} device preferences`, err);
114
115
  });
@@ -298,7 +299,7 @@ const patchLocalDevicePreference = (key, deviceKey, state) => {
298
299
  ].slice(0, 3),
299
300
  }));
300
301
  };
301
- const applyLocalDevicePreference = async (manager, preference, devices) => {
302
+ const applyLocalDevicePreference = async (manager, preference, devices, enabledInCallType) => {
302
303
  let muted;
303
304
  for (const p of preference) {
304
305
  muted ?? (muted = p.muted);
@@ -316,11 +317,11 @@ const applyLocalDevicePreference = async (manager, preference, devices) => {
316
317
  }
317
318
  }
318
319
  if (typeof muted === 'boolean') {
319
- await applyMutedState(manager, muted);
320
+ await applyMutedState(manager, muted, enabledInCallType);
320
321
  }
321
322
  };
322
- const applyMutedState = async (manager, muted) => {
323
- if (!manager.state.status) {
323
+ const applyMutedState = async (manager, muted, enabledInCallType) => {
324
+ if (enabledInCallType && !manager.state.status) {
324
325
  await manager[muted ? 'disable' : 'enable']?.();
325
326
  }
326
327
  };
@@ -2956,7 +2957,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
2956
2957
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
2957
2958
  };
2958
2959
 
2959
- const [major, minor, patch] = ("1.19.2").split('.');
2960
+ const [major, minor, patch] = ("1.19.4").split('.');
2960
2961
  videoClient.setSdkInfo({
2961
2962
  type: videoClient.SfuModels.SdkType.REACT,
2962
2963
  major,
@@ -3017,6 +3018,7 @@ exports.PermissionNotification = PermissionNotification;
3017
3018
  exports.PermissionRequestList = PermissionRequestList;
3018
3019
  exports.PermissionRequests = PermissionRequests;
3019
3020
  exports.PipLayout = PipLayout;
3021
+ exports.Reaction = Reaction;
3020
3022
  exports.ReactionsButton = ReactionsButton;
3021
3023
  exports.RecordCallButton = RecordCallButton;
3022
3024
  exports.RecordCallConfirmationButton = RecordCallConfirmationButton;
@@ -3043,6 +3045,7 @@ exports.Tooltip = Tooltip;
3043
3045
  exports.Video = Video$1;
3044
3046
  exports.VideoPreview = VideoPreview;
3045
3047
  exports.WithTooltip = WithTooltip;
3048
+ exports.defaultEmojiReactionMap = defaultEmojiReactionMap;
3046
3049
  exports.defaultReactions = defaultReactions;
3047
3050
  exports.translations = translations;
3048
3051
  exports.useBackgroundFilters = useBackgroundFilters;