@whereby.com/core 1.6.15 → 1.8.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
@@ -1158,7 +1158,7 @@ const createReactor = (selectors, callback) => {
1158
1158
  });
1159
1159
  };
1160
1160
 
1161
- const coreVersion = "1.6.15";
1161
+ const coreVersion = "1.8.0";
1162
1162
 
1163
1163
  const initialState$1 = {
1164
1164
  displayName: null,
@@ -2572,7 +2572,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
2572
2572
  if (screenshareStream) {
2573
2573
  return { stream: screenshareStream };
2574
2574
  }
2575
- const stream = yield media.getDisplayMedia();
2575
+ const stream = yield media.getDisplayMedia({
2576
+ video: {
2577
+ width: { max: window.screen.width },
2578
+ height: { max: window.screen.height },
2579
+ },
2580
+ audio: {
2581
+ autoGainControl: false,
2582
+ echoCancellation: false,
2583
+ noiseSuppression: false,
2584
+ },
2585
+ });
2576
2586
  const onEnded = () => {
2577
2587
  dispatch(doStopScreenshare());
2578
2588
  };
@@ -3769,29 +3779,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
3769
3779
  const externalId = selectAppExternalId(state);
3770
3780
  const organizationId = selectOrganizationId(state);
3771
3781
  const connectionStatus = selectRoomConnectionStatus(state);
3782
+ const clientClaim = selectLocalParticipantClientClaim(state);
3772
3783
  if (connectionStatus !== "room_locked") {
3773
3784
  console.warn("Room is not locked, knock aborted");
3774
3785
  return;
3775
3786
  }
3776
- socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
3777
- avatarUrl: null,
3778
- config: {
3787
+ socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
3779
3788
  isAudioEnabled: true,
3780
3789
  isVideoEnabled: true,
3781
- },
3782
- deviceCapabilities: { canScreenshare: true },
3783
- displayName,
3784
- isCoLocated: false,
3785
- isDialIn,
3786
- isAudioRecorder,
3787
- isDevicePermissionDenied: false,
3788
- kickFromOtherRooms: false,
3789
- organizationId,
3790
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
3791
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
3790
3792
  roomKey,
3791
3793
  roomName,
3792
3794
  userAgent,
3793
- externalId,
3794
- });
3795
+ externalId }, (clientClaim && { clientClaim })));
3795
3796
  dispatch(connectionStatusChanged("knocking"));
3796
3797
  });
3797
3798
  const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
package/dist/index.mjs CHANGED
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
1156
1156
  });
1157
1157
  };
1158
1158
 
1159
- const coreVersion = "1.6.15";
1159
+ const coreVersion = "1.8.0";
1160
1160
 
1161
1161
  const initialState$1 = {
1162
1162
  displayName: null,
@@ -2570,7 +2570,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
2570
2570
  if (screenshareStream) {
2571
2571
  return { stream: screenshareStream };
2572
2572
  }
2573
- const stream = yield getDisplayMedia();
2573
+ const stream = yield getDisplayMedia({
2574
+ video: {
2575
+ width: { max: window.screen.width },
2576
+ height: { max: window.screen.height },
2577
+ },
2578
+ audio: {
2579
+ autoGainControl: false,
2580
+ echoCancellation: false,
2581
+ noiseSuppression: false,
2582
+ },
2583
+ });
2574
2584
  const onEnded = () => {
2575
2585
  dispatch(doStopScreenshare());
2576
2586
  };
@@ -3767,29 +3777,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
3767
3777
  const externalId = selectAppExternalId(state);
3768
3778
  const organizationId = selectOrganizationId(state);
3769
3779
  const connectionStatus = selectRoomConnectionStatus(state);
3780
+ const clientClaim = selectLocalParticipantClientClaim(state);
3770
3781
  if (connectionStatus !== "room_locked") {
3771
3782
  console.warn("Room is not locked, knock aborted");
3772
3783
  return;
3773
3784
  }
3774
- socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
3775
- avatarUrl: null,
3776
- config: {
3785
+ socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
3777
3786
  isAudioEnabled: true,
3778
3787
  isVideoEnabled: true,
3779
- },
3780
- deviceCapabilities: { canScreenshare: true },
3781
- displayName,
3782
- isCoLocated: false,
3783
- isDialIn,
3784
- isAudioRecorder,
3785
- isDevicePermissionDenied: false,
3786
- kickFromOtherRooms: false,
3787
- organizationId,
3788
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
3789
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
3788
3790
  roomKey,
3789
3791
  roomName,
3790
3792
  userAgent,
3791
- externalId,
3792
- });
3793
+ externalId }, (clientClaim && { clientClaim })));
3793
3794
  dispatch(connectionStatusChanged("knocking"));
3794
3795
  });
3795
3796
  const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
1156
1156
  });
1157
1157
  };
1158
1158
 
1159
- const coreVersion = "1.6.15";
1159
+ const coreVersion = "1.8.0";
1160
1160
 
1161
1161
  const initialState$1 = {
1162
1162
  displayName: null,
@@ -2570,7 +2570,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
2570
2570
  if (screenshareStream) {
2571
2571
  return { stream: screenshareStream };
2572
2572
  }
2573
- const stream = yield getDisplayMedia();
2573
+ const stream = yield getDisplayMedia({
2574
+ video: {
2575
+ width: { max: window.screen.width },
2576
+ height: { max: window.screen.height },
2577
+ },
2578
+ audio: {
2579
+ autoGainControl: false,
2580
+ echoCancellation: false,
2581
+ noiseSuppression: false,
2582
+ },
2583
+ });
2574
2584
  const onEnded = () => {
2575
2585
  dispatch(doStopScreenshare());
2576
2586
  };
@@ -3767,29 +3777,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
3767
3777
  const externalId = selectAppExternalId(state);
3768
3778
  const organizationId = selectOrganizationId(state);
3769
3779
  const connectionStatus = selectRoomConnectionStatus(state);
3780
+ const clientClaim = selectLocalParticipantClientClaim(state);
3770
3781
  if (connectionStatus !== "room_locked") {
3771
3782
  console.warn("Room is not locked, knock aborted");
3772
3783
  return;
3773
3784
  }
3774
- socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
3775
- avatarUrl: null,
3776
- config: {
3785
+ socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
3777
3786
  isAudioEnabled: true,
3778
3787
  isVideoEnabled: true,
3779
- },
3780
- deviceCapabilities: { canScreenshare: true },
3781
- displayName,
3782
- isCoLocated: false,
3783
- isDialIn,
3784
- isAudioRecorder,
3785
- isDevicePermissionDenied: false,
3786
- kickFromOtherRooms: false,
3787
- organizationId,
3788
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
3789
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
3788
3790
  roomKey,
3789
3791
  roomName,
3790
3792
  userAgent,
3791
- externalId,
3792
- });
3793
+ externalId }, (clientClaim && { clientClaim })));
3793
3794
  dispatch(connectionStatusChanged("knocking"));
3794
3795
  });
3795
3796
  const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
@@ -75,7 +75,7 @@ const createReactor = (selectors, callback) => {
75
75
  });
76
76
  };
77
77
 
78
- const coreVersion = "1.6.15";
78
+ const coreVersion = "1.8.0";
79
79
 
80
80
  const initialState$1 = {
81
81
  displayName: null,
@@ -1472,7 +1472,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
1472
1472
  if (screenshareStream) {
1473
1473
  return { stream: screenshareStream };
1474
1474
  }
1475
- const stream = yield media.getDisplayMedia();
1475
+ const stream = yield media.getDisplayMedia({
1476
+ video: {
1477
+ width: { max: window.screen.width },
1478
+ height: { max: window.screen.height },
1479
+ },
1480
+ audio: {
1481
+ autoGainControl: false,
1482
+ echoCancellation: false,
1483
+ noiseSuppression: false,
1484
+ },
1485
+ });
1476
1486
  const onEnded = () => {
1477
1487
  dispatch(doStopScreenshare());
1478
1488
  };
@@ -2684,29 +2694,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
2684
2694
  const externalId = selectAppExternalId(state);
2685
2695
  const organizationId = selectOrganizationId(state);
2686
2696
  const connectionStatus = selectRoomConnectionStatus(state);
2697
+ const clientClaim = selectLocalParticipantClientClaim(state);
2687
2698
  if (connectionStatus !== "room_locked") {
2688
2699
  console.warn("Room is not locked, knock aborted");
2689
2700
  return;
2690
2701
  }
2691
- socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
2692
- avatarUrl: null,
2693
- config: {
2702
+ socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
2694
2703
  isAudioEnabled: true,
2695
2704
  isVideoEnabled: true,
2696
- },
2697
- deviceCapabilities: { canScreenshare: true },
2698
- displayName,
2699
- isCoLocated: false,
2700
- isDialIn,
2701
- isAudioRecorder,
2702
- isDevicePermissionDenied: false,
2703
- kickFromOtherRooms: false,
2704
- organizationId,
2705
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
2706
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
2705
2707
  roomKey,
2706
2708
  roomName,
2707
2709
  userAgent,
2708
- externalId,
2709
- });
2710
+ externalId }, (clientClaim && { clientClaim })));
2710
2711
  dispatch(connectionStatusChanged("knocking"));
2711
2712
  });
2712
2713
  const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.6.15";
76
+ const coreVersion = "1.8.0";
77
77
 
78
78
  const initialState$1 = {
79
79
  displayName: null,
@@ -1470,7 +1470,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
1470
1470
  if (screenshareStream) {
1471
1471
  return { stream: screenshareStream };
1472
1472
  }
1473
- const stream = yield getDisplayMedia();
1473
+ const stream = yield getDisplayMedia({
1474
+ video: {
1475
+ width: { max: window.screen.width },
1476
+ height: { max: window.screen.height },
1477
+ },
1478
+ audio: {
1479
+ autoGainControl: false,
1480
+ echoCancellation: false,
1481
+ noiseSuppression: false,
1482
+ },
1483
+ });
1474
1484
  const onEnded = () => {
1475
1485
  dispatch(doStopScreenshare());
1476
1486
  };
@@ -2682,29 +2692,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
2682
2692
  const externalId = selectAppExternalId(state);
2683
2693
  const organizationId = selectOrganizationId(state);
2684
2694
  const connectionStatus = selectRoomConnectionStatus(state);
2695
+ const clientClaim = selectLocalParticipantClientClaim(state);
2685
2696
  if (connectionStatus !== "room_locked") {
2686
2697
  console.warn("Room is not locked, knock aborted");
2687
2698
  return;
2688
2699
  }
2689
- socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
2690
- avatarUrl: null,
2691
- config: {
2700
+ socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
2692
2701
  isAudioEnabled: true,
2693
2702
  isVideoEnabled: true,
2694
- },
2695
- deviceCapabilities: { canScreenshare: true },
2696
- displayName,
2697
- isCoLocated: false,
2698
- isDialIn,
2699
- isAudioRecorder,
2700
- isDevicePermissionDenied: false,
2701
- kickFromOtherRooms: false,
2702
- organizationId,
2703
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
2704
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
2703
2705
  roomKey,
2704
2706
  roomName,
2705
2707
  userAgent,
2706
- externalId,
2707
- });
2708
+ externalId }, (clientClaim && { clientClaim })));
2708
2709
  dispatch(connectionStatusChanged("knocking"));
2709
2710
  });
2710
2711
  const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.6.15";
76
+ const coreVersion = "1.8.0";
77
77
 
78
78
  const initialState$1 = {
79
79
  displayName: null,
@@ -1470,7 +1470,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
1470
1470
  if (screenshareStream) {
1471
1471
  return { stream: screenshareStream };
1472
1472
  }
1473
- const stream = yield getDisplayMedia();
1473
+ const stream = yield getDisplayMedia({
1474
+ video: {
1475
+ width: { max: window.screen.width },
1476
+ height: { max: window.screen.height },
1477
+ },
1478
+ audio: {
1479
+ autoGainControl: false,
1480
+ echoCancellation: false,
1481
+ noiseSuppression: false,
1482
+ },
1483
+ });
1474
1484
  const onEnded = () => {
1475
1485
  dispatch(doStopScreenshare());
1476
1486
  };
@@ -2682,29 +2692,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
2682
2692
  const externalId = selectAppExternalId(state);
2683
2693
  const organizationId = selectOrganizationId(state);
2684
2694
  const connectionStatus = selectRoomConnectionStatus(state);
2695
+ const clientClaim = selectLocalParticipantClientClaim(state);
2685
2696
  if (connectionStatus !== "room_locked") {
2686
2697
  console.warn("Room is not locked, knock aborted");
2687
2698
  return;
2688
2699
  }
2689
- socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
2690
- avatarUrl: null,
2691
- config: {
2700
+ socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
2692
2701
  isAudioEnabled: true,
2693
2702
  isVideoEnabled: true,
2694
- },
2695
- deviceCapabilities: { canScreenshare: true },
2696
- displayName,
2697
- isCoLocated: false,
2698
- isDialIn,
2699
- isAudioRecorder,
2700
- isDevicePermissionDenied: false,
2701
- kickFromOtherRooms: false,
2702
- organizationId,
2703
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
2704
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
2703
2705
  roomKey,
2704
2706
  roomName,
2705
2707
  userAgent,
2706
- externalId,
2707
- });
2708
+ externalId }, (clientClaim && { clientClaim })));
2708
2709
  dispatch(connectionStatusChanged("knocking"));
2709
2710
  });
2710
2711
  const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
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.6.15",
5
+ "version": "1.8.0",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -59,14 +59,14 @@
59
59
  "prettier": "^3.5.3",
60
60
  "typescript": "^5.8.3",
61
61
  "@whereby.com/eslint-config": "0.1.0",
62
- "@whereby.com/prettier-config": "0.1.0",
63
62
  "@whereby.com/jest-config": "0.1.0",
63
+ "@whereby.com/prettier-config": "0.1.0",
64
64
  "@whereby.com/rollup-config": "0.1.1",
65
65
  "@whereby.com/tsconfig": "0.1.0"
66
66
  },
67
67
  "dependencies": {
68
68
  "@reduxjs/toolkit": "^2.2.3",
69
- "@whereby.com/media": "3.1.0",
69
+ "@whereby.com/media": "3.1.1",
70
70
  "axios": "^1.11.0",
71
71
  "btoa": "^1.2.1",
72
72
  "events": "^3.3.0"