@whereby.com/core 1.6.14 → 1.7.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 +22 -18
- package/dist/index.mjs +22 -18
- package/dist/legacy-esm.js +22 -18
- package/dist/redux/index.cjs +22 -18
- package/dist/redux/index.js +22 -18
- package/dist/redux/index.mjs +22 -18
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1158,7 +1158,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
};
|
|
1160
1160
|
|
|
1161
|
-
const coreVersion = "1.
|
|
1161
|
+
const coreVersion = "1.7.0";
|
|
1162
1162
|
|
|
1163
1163
|
const initialState$1 = {
|
|
1164
1164
|
displayName: null,
|
|
@@ -1896,11 +1896,16 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
1896
1896
|
}
|
|
1897
1897
|
}));
|
|
1898
1898
|
const doStopLocalMedia = createAppThunk(() => (dispatch, getState) => {
|
|
1899
|
-
const
|
|
1900
|
-
const
|
|
1899
|
+
const state = getState();
|
|
1900
|
+
const stream = selectLocalMediaStream(state);
|
|
1901
|
+
const onDeviceChange = selectLocalMediaRaw(state).onDeviceChange;
|
|
1902
|
+
const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
|
|
1901
1903
|
stream === null || stream === void 0 ? void 0 : stream.getTracks().forEach((track) => {
|
|
1902
1904
|
track.stop();
|
|
1903
1905
|
});
|
|
1906
|
+
if (beforeEffectTracks) {
|
|
1907
|
+
Object.values(beforeEffectTracks).forEach((t) => t === null || t === void 0 ? void 0 : t.stop());
|
|
1908
|
+
}
|
|
1904
1909
|
if (navigator.mediaDevices && onDeviceChange) {
|
|
1905
1910
|
navigator.mediaDevices.removeEventListener("devicechange", onDeviceChange);
|
|
1906
1911
|
}
|
|
@@ -3764,29 +3769,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
3764
3769
|
const externalId = selectAppExternalId(state);
|
|
3765
3770
|
const organizationId = selectOrganizationId(state);
|
|
3766
3771
|
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3772
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
3767
3773
|
if (connectionStatus !== "room_locked") {
|
|
3768
3774
|
console.warn("Room is not locked, knock aborted");
|
|
3769
3775
|
return;
|
|
3770
3776
|
}
|
|
3771
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
3772
|
-
avatarUrl: null,
|
|
3773
|
-
config: {
|
|
3777
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
3774
3778
|
isAudioEnabled: true,
|
|
3775
3779
|
isVideoEnabled: true,
|
|
3776
|
-
},
|
|
3777
|
-
|
|
3778
|
-
displayName,
|
|
3779
|
-
isCoLocated: false,
|
|
3780
|
-
isDialIn,
|
|
3781
|
-
isAudioRecorder,
|
|
3782
|
-
isDevicePermissionDenied: false,
|
|
3783
|
-
kickFromOtherRooms: false,
|
|
3784
|
-
organizationId,
|
|
3780
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3781
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3785
3782
|
roomKey,
|
|
3786
3783
|
roomName,
|
|
3787
3784
|
userAgent,
|
|
3788
|
-
externalId,
|
|
3789
|
-
});
|
|
3785
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
3790
3786
|
dispatch(connectionStatusChanged("knocking"));
|
|
3791
3787
|
});
|
|
3792
3788
|
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
@@ -4234,9 +4230,17 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
|
|
|
4234
4230
|
return rejectWithValue(error);
|
|
4235
4231
|
}
|
|
4236
4232
|
}));
|
|
4237
|
-
createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
4233
|
+
const doCameraEffectsClear = createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
4238
4234
|
yield dispatch(doCameraEffectsSwitchPreset({ effectId: null }));
|
|
4239
4235
|
}));
|
|
4236
|
+
const selectCameraEffectsShouldStop = toolkit.createSelector(selectAppIsActive, selectCameraEffectsRaw, (appIsActive, raw) => {
|
|
4237
|
+
return !appIsActive && !!raw.stop;
|
|
4238
|
+
});
|
|
4239
|
+
createReactor([selectCameraEffectsShouldStop], ({ dispatch }, shouldStop) => {
|
|
4240
|
+
if (shouldStop) {
|
|
4241
|
+
dispatch(doCameraEffectsClear());
|
|
4242
|
+
}
|
|
4243
|
+
});
|
|
4240
4244
|
|
|
4241
4245
|
const IS_DEV = undefined === "true";
|
|
4242
4246
|
const appReducer = toolkit.combineReducers({
|
package/dist/index.mjs
CHANGED
|
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1156
1156
|
});
|
|
1157
1157
|
};
|
|
1158
1158
|
|
|
1159
|
-
const coreVersion = "1.
|
|
1159
|
+
const coreVersion = "1.7.0";
|
|
1160
1160
|
|
|
1161
1161
|
const initialState$1 = {
|
|
1162
1162
|
displayName: null,
|
|
@@ -1894,11 +1894,16 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
1894
1894
|
}
|
|
1895
1895
|
}));
|
|
1896
1896
|
const doStopLocalMedia = createAppThunk(() => (dispatch, getState) => {
|
|
1897
|
-
const
|
|
1898
|
-
const
|
|
1897
|
+
const state = getState();
|
|
1898
|
+
const stream = selectLocalMediaStream(state);
|
|
1899
|
+
const onDeviceChange = selectLocalMediaRaw(state).onDeviceChange;
|
|
1900
|
+
const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
|
|
1899
1901
|
stream === null || stream === void 0 ? void 0 : stream.getTracks().forEach((track) => {
|
|
1900
1902
|
track.stop();
|
|
1901
1903
|
});
|
|
1904
|
+
if (beforeEffectTracks) {
|
|
1905
|
+
Object.values(beforeEffectTracks).forEach((t) => t === null || t === void 0 ? void 0 : t.stop());
|
|
1906
|
+
}
|
|
1902
1907
|
if (navigator.mediaDevices && onDeviceChange) {
|
|
1903
1908
|
navigator.mediaDevices.removeEventListener("devicechange", onDeviceChange);
|
|
1904
1909
|
}
|
|
@@ -3762,29 +3767,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
3762
3767
|
const externalId = selectAppExternalId(state);
|
|
3763
3768
|
const organizationId = selectOrganizationId(state);
|
|
3764
3769
|
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3770
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
3765
3771
|
if (connectionStatus !== "room_locked") {
|
|
3766
3772
|
console.warn("Room is not locked, knock aborted");
|
|
3767
3773
|
return;
|
|
3768
3774
|
}
|
|
3769
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
3770
|
-
avatarUrl: null,
|
|
3771
|
-
config: {
|
|
3775
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
3772
3776
|
isAudioEnabled: true,
|
|
3773
3777
|
isVideoEnabled: true,
|
|
3774
|
-
},
|
|
3775
|
-
|
|
3776
|
-
displayName,
|
|
3777
|
-
isCoLocated: false,
|
|
3778
|
-
isDialIn,
|
|
3779
|
-
isAudioRecorder,
|
|
3780
|
-
isDevicePermissionDenied: false,
|
|
3781
|
-
kickFromOtherRooms: false,
|
|
3782
|
-
organizationId,
|
|
3778
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3779
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3783
3780
|
roomKey,
|
|
3784
3781
|
roomName,
|
|
3785
3782
|
userAgent,
|
|
3786
|
-
externalId,
|
|
3787
|
-
});
|
|
3783
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
3788
3784
|
dispatch(connectionStatusChanged("knocking"));
|
|
3789
3785
|
});
|
|
3790
3786
|
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
@@ -4232,9 +4228,17 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
|
|
|
4232
4228
|
return rejectWithValue(error);
|
|
4233
4229
|
}
|
|
4234
4230
|
}));
|
|
4235
|
-
createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
4231
|
+
const doCameraEffectsClear = createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
4236
4232
|
yield dispatch(doCameraEffectsSwitchPreset({ effectId: null }));
|
|
4237
4233
|
}));
|
|
4234
|
+
const selectCameraEffectsShouldStop = createSelector(selectAppIsActive, selectCameraEffectsRaw, (appIsActive, raw) => {
|
|
4235
|
+
return !appIsActive && !!raw.stop;
|
|
4236
|
+
});
|
|
4237
|
+
createReactor([selectCameraEffectsShouldStop], ({ dispatch }, shouldStop) => {
|
|
4238
|
+
if (shouldStop) {
|
|
4239
|
+
dispatch(doCameraEffectsClear());
|
|
4240
|
+
}
|
|
4241
|
+
});
|
|
4238
4242
|
|
|
4239
4243
|
const IS_DEV = undefined === "true";
|
|
4240
4244
|
const appReducer = combineReducers({
|
package/dist/legacy-esm.js
CHANGED
|
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1156
1156
|
});
|
|
1157
1157
|
};
|
|
1158
1158
|
|
|
1159
|
-
const coreVersion = "1.
|
|
1159
|
+
const coreVersion = "1.7.0";
|
|
1160
1160
|
|
|
1161
1161
|
const initialState$1 = {
|
|
1162
1162
|
displayName: null,
|
|
@@ -1894,11 +1894,16 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
1894
1894
|
}
|
|
1895
1895
|
}));
|
|
1896
1896
|
const doStopLocalMedia = createAppThunk(() => (dispatch, getState) => {
|
|
1897
|
-
const
|
|
1898
|
-
const
|
|
1897
|
+
const state = getState();
|
|
1898
|
+
const stream = selectLocalMediaStream(state);
|
|
1899
|
+
const onDeviceChange = selectLocalMediaRaw(state).onDeviceChange;
|
|
1900
|
+
const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
|
|
1899
1901
|
stream === null || stream === void 0 ? void 0 : stream.getTracks().forEach((track) => {
|
|
1900
1902
|
track.stop();
|
|
1901
1903
|
});
|
|
1904
|
+
if (beforeEffectTracks) {
|
|
1905
|
+
Object.values(beforeEffectTracks).forEach((t) => t === null || t === void 0 ? void 0 : t.stop());
|
|
1906
|
+
}
|
|
1902
1907
|
if (navigator.mediaDevices && onDeviceChange) {
|
|
1903
1908
|
navigator.mediaDevices.removeEventListener("devicechange", onDeviceChange);
|
|
1904
1909
|
}
|
|
@@ -3762,29 +3767,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
3762
3767
|
const externalId = selectAppExternalId(state);
|
|
3763
3768
|
const organizationId = selectOrganizationId(state);
|
|
3764
3769
|
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3770
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
3765
3771
|
if (connectionStatus !== "room_locked") {
|
|
3766
3772
|
console.warn("Room is not locked, knock aborted");
|
|
3767
3773
|
return;
|
|
3768
3774
|
}
|
|
3769
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
3770
|
-
avatarUrl: null,
|
|
3771
|
-
config: {
|
|
3775
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
3772
3776
|
isAudioEnabled: true,
|
|
3773
3777
|
isVideoEnabled: true,
|
|
3774
|
-
},
|
|
3775
|
-
|
|
3776
|
-
displayName,
|
|
3777
|
-
isCoLocated: false,
|
|
3778
|
-
isDialIn,
|
|
3779
|
-
isAudioRecorder,
|
|
3780
|
-
isDevicePermissionDenied: false,
|
|
3781
|
-
kickFromOtherRooms: false,
|
|
3782
|
-
organizationId,
|
|
3778
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3779
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3783
3780
|
roomKey,
|
|
3784
3781
|
roomName,
|
|
3785
3782
|
userAgent,
|
|
3786
|
-
externalId,
|
|
3787
|
-
});
|
|
3783
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
3788
3784
|
dispatch(connectionStatusChanged("knocking"));
|
|
3789
3785
|
});
|
|
3790
3786
|
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
@@ -4232,9 +4228,17 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
|
|
|
4232
4228
|
return rejectWithValue(error);
|
|
4233
4229
|
}
|
|
4234
4230
|
}));
|
|
4235
|
-
createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
4231
|
+
const doCameraEffectsClear = createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
4236
4232
|
yield dispatch(doCameraEffectsSwitchPreset({ effectId: null }));
|
|
4237
4233
|
}));
|
|
4234
|
+
const selectCameraEffectsShouldStop = createSelector(selectAppIsActive, selectCameraEffectsRaw, (appIsActive, raw) => {
|
|
4235
|
+
return !appIsActive && !!raw.stop;
|
|
4236
|
+
});
|
|
4237
|
+
createReactor([selectCameraEffectsShouldStop], ({ dispatch }, shouldStop) => {
|
|
4238
|
+
if (shouldStop) {
|
|
4239
|
+
dispatch(doCameraEffectsClear());
|
|
4240
|
+
}
|
|
4241
|
+
});
|
|
4238
4242
|
|
|
4239
4243
|
const IS_DEV = undefined === "true";
|
|
4240
4244
|
const appReducer = combineReducers({
|
package/dist/redux/index.cjs
CHANGED
|
@@ -75,7 +75,7 @@ const createReactor = (selectors, callback) => {
|
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const coreVersion = "1.
|
|
78
|
+
const coreVersion = "1.7.0";
|
|
79
79
|
|
|
80
80
|
const initialState$1 = {
|
|
81
81
|
displayName: null,
|
|
@@ -787,11 +787,16 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
787
787
|
}
|
|
788
788
|
}));
|
|
789
789
|
const doStopLocalMedia = createAppThunk(() => (dispatch, getState) => {
|
|
790
|
-
const
|
|
791
|
-
const
|
|
790
|
+
const state = getState();
|
|
791
|
+
const stream = selectLocalMediaStream(state);
|
|
792
|
+
const onDeviceChange = selectLocalMediaRaw(state).onDeviceChange;
|
|
793
|
+
const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
|
|
792
794
|
stream === null || stream === void 0 ? void 0 : stream.getTracks().forEach((track) => {
|
|
793
795
|
track.stop();
|
|
794
796
|
});
|
|
797
|
+
if (beforeEffectTracks) {
|
|
798
|
+
Object.values(beforeEffectTracks).forEach((t) => t === null || t === void 0 ? void 0 : t.stop());
|
|
799
|
+
}
|
|
795
800
|
if (navigator.mediaDevices && onDeviceChange) {
|
|
796
801
|
navigator.mediaDevices.removeEventListener("devicechange", onDeviceChange);
|
|
797
802
|
}
|
|
@@ -2679,29 +2684,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
2679
2684
|
const externalId = selectAppExternalId(state);
|
|
2680
2685
|
const organizationId = selectOrganizationId(state);
|
|
2681
2686
|
const connectionStatus = selectRoomConnectionStatus(state);
|
|
2687
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
2682
2688
|
if (connectionStatus !== "room_locked") {
|
|
2683
2689
|
console.warn("Room is not locked, knock aborted");
|
|
2684
2690
|
return;
|
|
2685
2691
|
}
|
|
2686
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
2687
|
-
avatarUrl: null,
|
|
2688
|
-
config: {
|
|
2692
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
2689
2693
|
isAudioEnabled: true,
|
|
2690
2694
|
isVideoEnabled: true,
|
|
2691
|
-
},
|
|
2692
|
-
|
|
2693
|
-
displayName,
|
|
2694
|
-
isCoLocated: false,
|
|
2695
|
-
isDialIn,
|
|
2696
|
-
isAudioRecorder,
|
|
2697
|
-
isDevicePermissionDenied: false,
|
|
2698
|
-
kickFromOtherRooms: false,
|
|
2699
|
-
organizationId,
|
|
2695
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
2696
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
2700
2697
|
roomKey,
|
|
2701
2698
|
roomName,
|
|
2702
2699
|
userAgent,
|
|
2703
|
-
externalId,
|
|
2704
|
-
});
|
|
2700
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
2705
2701
|
dispatch(connectionStatusChanged("knocking"));
|
|
2706
2702
|
});
|
|
2707
2703
|
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
@@ -3150,9 +3146,17 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
|
|
|
3150
3146
|
return rejectWithValue(error);
|
|
3151
3147
|
}
|
|
3152
3148
|
}));
|
|
3153
|
-
createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
3149
|
+
const doCameraEffectsClear = createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
3154
3150
|
yield dispatch(doCameraEffectsSwitchPreset({ effectId: null }));
|
|
3155
3151
|
}));
|
|
3152
|
+
const selectCameraEffectsShouldStop = toolkit.createSelector(selectAppIsActive, selectCameraEffectsRaw, (appIsActive, raw) => {
|
|
3153
|
+
return !appIsActive && !!raw.stop;
|
|
3154
|
+
});
|
|
3155
|
+
createReactor([selectCameraEffectsShouldStop], ({ dispatch }, shouldStop) => {
|
|
3156
|
+
if (shouldStop) {
|
|
3157
|
+
dispatch(doCameraEffectsClear());
|
|
3158
|
+
}
|
|
3159
|
+
});
|
|
3156
3160
|
|
|
3157
3161
|
const IS_DEV = undefined === "true";
|
|
3158
3162
|
const appReducer = toolkit.combineReducers({
|
package/dist/redux/index.js
CHANGED
|
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const coreVersion = "1.
|
|
76
|
+
const coreVersion = "1.7.0";
|
|
77
77
|
|
|
78
78
|
const initialState$1 = {
|
|
79
79
|
displayName: null,
|
|
@@ -785,11 +785,16 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
785
785
|
}
|
|
786
786
|
}));
|
|
787
787
|
const doStopLocalMedia = createAppThunk(() => (dispatch, getState) => {
|
|
788
|
-
const
|
|
789
|
-
const
|
|
788
|
+
const state = getState();
|
|
789
|
+
const stream = selectLocalMediaStream(state);
|
|
790
|
+
const onDeviceChange = selectLocalMediaRaw(state).onDeviceChange;
|
|
791
|
+
const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
|
|
790
792
|
stream === null || stream === void 0 ? void 0 : stream.getTracks().forEach((track) => {
|
|
791
793
|
track.stop();
|
|
792
794
|
});
|
|
795
|
+
if (beforeEffectTracks) {
|
|
796
|
+
Object.values(beforeEffectTracks).forEach((t) => t === null || t === void 0 ? void 0 : t.stop());
|
|
797
|
+
}
|
|
793
798
|
if (navigator.mediaDevices && onDeviceChange) {
|
|
794
799
|
navigator.mediaDevices.removeEventListener("devicechange", onDeviceChange);
|
|
795
800
|
}
|
|
@@ -2677,29 +2682,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
2677
2682
|
const externalId = selectAppExternalId(state);
|
|
2678
2683
|
const organizationId = selectOrganizationId(state);
|
|
2679
2684
|
const connectionStatus = selectRoomConnectionStatus(state);
|
|
2685
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
2680
2686
|
if (connectionStatus !== "room_locked") {
|
|
2681
2687
|
console.warn("Room is not locked, knock aborted");
|
|
2682
2688
|
return;
|
|
2683
2689
|
}
|
|
2684
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
2685
|
-
avatarUrl: null,
|
|
2686
|
-
config: {
|
|
2690
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
2687
2691
|
isAudioEnabled: true,
|
|
2688
2692
|
isVideoEnabled: true,
|
|
2689
|
-
},
|
|
2690
|
-
|
|
2691
|
-
displayName,
|
|
2692
|
-
isCoLocated: false,
|
|
2693
|
-
isDialIn,
|
|
2694
|
-
isAudioRecorder,
|
|
2695
|
-
isDevicePermissionDenied: false,
|
|
2696
|
-
kickFromOtherRooms: false,
|
|
2697
|
-
organizationId,
|
|
2693
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
2694
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
2698
2695
|
roomKey,
|
|
2699
2696
|
roomName,
|
|
2700
2697
|
userAgent,
|
|
2701
|
-
externalId,
|
|
2702
|
-
});
|
|
2698
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
2703
2699
|
dispatch(connectionStatusChanged("knocking"));
|
|
2704
2700
|
});
|
|
2705
2701
|
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
@@ -3148,9 +3144,17 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
|
|
|
3148
3144
|
return rejectWithValue(error);
|
|
3149
3145
|
}
|
|
3150
3146
|
}));
|
|
3151
|
-
createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
3147
|
+
const doCameraEffectsClear = createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
3152
3148
|
yield dispatch(doCameraEffectsSwitchPreset({ effectId: null }));
|
|
3153
3149
|
}));
|
|
3150
|
+
const selectCameraEffectsShouldStop = createSelector(selectAppIsActive, selectCameraEffectsRaw, (appIsActive, raw) => {
|
|
3151
|
+
return !appIsActive && !!raw.stop;
|
|
3152
|
+
});
|
|
3153
|
+
createReactor([selectCameraEffectsShouldStop], ({ dispatch }, shouldStop) => {
|
|
3154
|
+
if (shouldStop) {
|
|
3155
|
+
dispatch(doCameraEffectsClear());
|
|
3156
|
+
}
|
|
3157
|
+
});
|
|
3154
3158
|
|
|
3155
3159
|
const IS_DEV = undefined === "true";
|
|
3156
3160
|
const appReducer = combineReducers({
|
package/dist/redux/index.mjs
CHANGED
|
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const coreVersion = "1.
|
|
76
|
+
const coreVersion = "1.7.0";
|
|
77
77
|
|
|
78
78
|
const initialState$1 = {
|
|
79
79
|
displayName: null,
|
|
@@ -785,11 +785,16 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
785
785
|
}
|
|
786
786
|
}));
|
|
787
787
|
const doStopLocalMedia = createAppThunk(() => (dispatch, getState) => {
|
|
788
|
-
const
|
|
789
|
-
const
|
|
788
|
+
const state = getState();
|
|
789
|
+
const stream = selectLocalMediaStream(state);
|
|
790
|
+
const onDeviceChange = selectLocalMediaRaw(state).onDeviceChange;
|
|
791
|
+
const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
|
|
790
792
|
stream === null || stream === void 0 ? void 0 : stream.getTracks().forEach((track) => {
|
|
791
793
|
track.stop();
|
|
792
794
|
});
|
|
795
|
+
if (beforeEffectTracks) {
|
|
796
|
+
Object.values(beforeEffectTracks).forEach((t) => t === null || t === void 0 ? void 0 : t.stop());
|
|
797
|
+
}
|
|
793
798
|
if (navigator.mediaDevices && onDeviceChange) {
|
|
794
799
|
navigator.mediaDevices.removeEventListener("devicechange", onDeviceChange);
|
|
795
800
|
}
|
|
@@ -2677,29 +2682,20 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
2677
2682
|
const externalId = selectAppExternalId(state);
|
|
2678
2683
|
const organizationId = selectOrganizationId(state);
|
|
2679
2684
|
const connectionStatus = selectRoomConnectionStatus(state);
|
|
2685
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
2680
2686
|
if (connectionStatus !== "room_locked") {
|
|
2681
2687
|
console.warn("Room is not locked, knock aborted");
|
|
2682
2688
|
return;
|
|
2683
2689
|
}
|
|
2684
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
2685
|
-
avatarUrl: null,
|
|
2686
|
-
config: {
|
|
2690
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
2687
2691
|
isAudioEnabled: true,
|
|
2688
2692
|
isVideoEnabled: true,
|
|
2689
|
-
},
|
|
2690
|
-
|
|
2691
|
-
displayName,
|
|
2692
|
-
isCoLocated: false,
|
|
2693
|
-
isDialIn,
|
|
2694
|
-
isAudioRecorder,
|
|
2695
|
-
isDevicePermissionDenied: false,
|
|
2696
|
-
kickFromOtherRooms: false,
|
|
2697
|
-
organizationId,
|
|
2693
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
2694
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
2698
2695
|
roomKey,
|
|
2699
2696
|
roomName,
|
|
2700
2697
|
userAgent,
|
|
2701
|
-
externalId,
|
|
2702
|
-
});
|
|
2698
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
2703
2699
|
dispatch(connectionStatusChanged("knocking"));
|
|
2704
2700
|
});
|
|
2705
2701
|
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
@@ -3148,9 +3144,17 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
|
|
|
3148
3144
|
return rejectWithValue(error);
|
|
3149
3145
|
}
|
|
3150
3146
|
}));
|
|
3151
|
-
createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
3147
|
+
const doCameraEffectsClear = createAppAsyncThunk("cameraEffects/clear", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
|
|
3152
3148
|
yield dispatch(doCameraEffectsSwitchPreset({ effectId: null }));
|
|
3153
3149
|
}));
|
|
3150
|
+
const selectCameraEffectsShouldStop = createSelector(selectAppIsActive, selectCameraEffectsRaw, (appIsActive, raw) => {
|
|
3151
|
+
return !appIsActive && !!raw.stop;
|
|
3152
|
+
});
|
|
3153
|
+
createReactor([selectCameraEffectsShouldStop], ({ dispatch }, shouldStop) => {
|
|
3154
|
+
if (shouldStop) {
|
|
3155
|
+
dispatch(doCameraEffectsClear());
|
|
3156
|
+
}
|
|
3157
|
+
});
|
|
3154
3158
|
|
|
3155
3159
|
const IS_DEV = undefined === "true";
|
|
3156
3160
|
const appReducer = combineReducers({
|