@whereby.com/core 1.18.7 → 1.19.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.cjs CHANGED
@@ -1226,7 +1226,7 @@ const createReactor = (selectors, callback) => {
1226
1226
  });
1227
1227
  };
1228
1228
 
1229
- const coreVersion = "1.18.7";
1229
+ const coreVersion = "1.19.0";
1230
1230
 
1231
1231
  function decodeRoomName(roomName) {
1232
1232
  if (!roomName) {
@@ -3610,6 +3610,13 @@ startAppListening({
3610
3610
  }
3611
3611
  },
3612
3612
  });
3613
+ startAppListening({
3614
+ actionCreator: signalEvents.clientLeft,
3615
+ effect: (action, { getState }) => {
3616
+ const rtcManager = selectRtcManager(getState());
3617
+ rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.disconnect(action.payload.clientId, action.payload.eventClaim);
3618
+ },
3619
+ });
3613
3620
  const selectShouldConnectRtc = toolkit.createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
3614
3621
  if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
3615
3622
  return true;
package/dist/index.mjs CHANGED
@@ -1224,7 +1224,7 @@ const createReactor = (selectors, callback) => {
1224
1224
  });
1225
1225
  };
1226
1226
 
1227
- const coreVersion = "1.18.7";
1227
+ const coreVersion = "1.19.0";
1228
1228
 
1229
1229
  function decodeRoomName(roomName) {
1230
1230
  if (!roomName) {
@@ -3608,6 +3608,13 @@ startAppListening({
3608
3608
  }
3609
3609
  },
3610
3610
  });
3611
+ startAppListening({
3612
+ actionCreator: signalEvents.clientLeft,
3613
+ effect: (action, { getState }) => {
3614
+ const rtcManager = selectRtcManager(getState());
3615
+ rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.disconnect(action.payload.clientId, action.payload.eventClaim);
3616
+ },
3617
+ });
3611
3618
  const selectShouldConnectRtc = createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
3612
3619
  if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
3613
3620
  return true;
@@ -1224,7 +1224,7 @@ const createReactor = (selectors, callback) => {
1224
1224
  });
1225
1225
  };
1226
1226
 
1227
- const coreVersion = "1.18.7";
1227
+ const coreVersion = "1.19.0";
1228
1228
 
1229
1229
  function decodeRoomName(roomName) {
1230
1230
  if (!roomName) {
@@ -3608,6 +3608,13 @@ startAppListening({
3608
3608
  }
3609
3609
  },
3610
3610
  });
3611
+ startAppListening({
3612
+ actionCreator: signalEvents.clientLeft,
3613
+ effect: (action, { getState }) => {
3614
+ const rtcManager = selectRtcManager(getState());
3615
+ rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.disconnect(action.payload.clientId, action.payload.eventClaim);
3616
+ },
3617
+ });
3611
3618
  const selectShouldConnectRtc = createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
3612
3619
  if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
3613
3620
  return true;
@@ -76,7 +76,7 @@ const createReactor = (selectors, callback) => {
76
76
  });
77
77
  };
78
78
 
79
- const coreVersion = "1.18.7";
79
+ const coreVersion = "1.19.0";
80
80
 
81
81
  function decodeRoomName(roomName) {
82
82
  if (!roomName) {
@@ -2494,6 +2494,13 @@ startAppListening({
2494
2494
  }
2495
2495
  },
2496
2496
  });
2497
+ startAppListening({
2498
+ actionCreator: signalEvents.clientLeft,
2499
+ effect: (action, { getState }) => {
2500
+ const rtcManager = selectRtcManager(getState());
2501
+ rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.disconnect(action.payload.clientId, action.payload.eventClaim);
2502
+ },
2503
+ });
2497
2504
  const selectShouldConnectRtc = toolkit.createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
2498
2505
  if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
2499
2506
  return true;
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
74
74
  });
75
75
  };
76
76
 
77
- const coreVersion = "1.18.7";
77
+ const coreVersion = "1.19.0";
78
78
 
79
79
  function decodeRoomName(roomName) {
80
80
  if (!roomName) {
@@ -2492,6 +2492,13 @@ startAppListening({
2492
2492
  }
2493
2493
  },
2494
2494
  });
2495
+ startAppListening({
2496
+ actionCreator: signalEvents.clientLeft,
2497
+ effect: (action, { getState }) => {
2498
+ const rtcManager = selectRtcManager(getState());
2499
+ rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.disconnect(action.payload.clientId, action.payload.eventClaim);
2500
+ },
2501
+ });
2495
2502
  const selectShouldConnectRtc = createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
2496
2503
  if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
2497
2504
  return true;
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
74
74
  });
75
75
  };
76
76
 
77
- const coreVersion = "1.18.7";
77
+ const coreVersion = "1.19.0";
78
78
 
79
79
  function decodeRoomName(roomName) {
80
80
  if (!roomName) {
@@ -2492,6 +2492,13 @@ startAppListening({
2492
2492
  }
2493
2493
  },
2494
2494
  });
2495
+ startAppListening({
2496
+ actionCreator: signalEvents.clientLeft,
2497
+ effect: (action, { getState }) => {
2498
+ const rtcManager = selectRtcManager(getState());
2499
+ rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.disconnect(action.payload.clientId, action.payload.eventClaim);
2500
+ },
2501
+ });
2495
2502
  const selectShouldConnectRtc = createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
2496
2503
  if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
2497
2504
  return true;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@whereby.com/core",
3
3
  "description": "Core library for whereby.com sdk",
4
4
  "author": "Whereby AS",
5
- "version": "1.18.7",
5
+ "version": "1.19.0",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -66,8 +66,8 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@reduxjs/toolkit": "^2.2.3",
69
- "@whereby.com/media": "9.7.4",
70
- "@whereby.com/audio-denoiser": "1.0.14",
69
+ "@whereby.com/media": "10.0.0",
70
+ "@whereby.com/audio-denoiser": "1.0.15",
71
71
  "@whereby.com/camera-effects": "1.1.3",
72
72
  "axios": "^1.11.0",
73
73
  "btoa": "^1.2.1",