@whereby.com/core 0.20.0 → 0.22.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 +10 -4
- package/dist/index.d.cts +14 -3
- package/dist/index.d.mts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.mjs +10 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ const createReactor = (selectors, callback) => {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const coreVersion = "0.
|
|
48
|
+
const coreVersion = "0.22.0";
|
|
49
49
|
|
|
50
50
|
const initialState$f = {
|
|
51
51
|
isNodeSdk: false,
|
|
@@ -109,6 +109,8 @@ const signalEvents = {
|
|
|
109
109
|
spotlightRemoved: createSignalEventAction("spotlightRemoved"),
|
|
110
110
|
streamingStopped: createSignalEventAction("streamingStopped"),
|
|
111
111
|
videoEnabled: createSignalEventAction("videoEnabled"),
|
|
112
|
+
liveTranscriptionStarted: createSignalEventAction("liveTranscriptionStarted"),
|
|
113
|
+
liveTranscriptionStopped: createSignalEventAction("liveTranscriptionStopped"),
|
|
112
114
|
};
|
|
113
115
|
|
|
114
116
|
const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
@@ -264,6 +266,8 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
264
266
|
socket.on("streaming_stopped", () => dispatch(signalEvents.streamingStopped()));
|
|
265
267
|
socket.on("spotlight_added", (payload) => dispatch(signalEvents.spotlightAdded(payload)));
|
|
266
268
|
socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
|
|
269
|
+
socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
|
|
270
|
+
socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
|
|
267
271
|
}
|
|
268
272
|
const SIGNAL_BASE_URL = "wss://signal.appearin.net" ;
|
|
269
273
|
function createSocket() {
|
|
@@ -1065,6 +1069,7 @@ const initialState$a = {
|
|
|
1065
1069
|
roleName: "none",
|
|
1066
1070
|
clientClaim: undefined,
|
|
1067
1071
|
stickyReaction: undefined,
|
|
1072
|
+
isDialIn: false,
|
|
1068
1073
|
};
|
|
1069
1074
|
const localParticipantSlice = toolkit.createSlice({
|
|
1070
1075
|
name: "localParticipant",
|
|
@@ -3610,7 +3615,7 @@ class RoomService {
|
|
|
3610
3615
|
}
|
|
3611
3616
|
|
|
3612
3617
|
class RoomParticipant {
|
|
3613
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3618
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3614
3619
|
this.isLocalParticipant = false;
|
|
3615
3620
|
this.displayName = displayName;
|
|
3616
3621
|
this.id = id;
|
|
@@ -3618,11 +3623,12 @@ class RoomParticipant {
|
|
|
3618
3623
|
this.isAudioEnabled = isAudioEnabled;
|
|
3619
3624
|
this.isVideoEnabled = isVideoEnabled;
|
|
3620
3625
|
this.stickyReaction = stickyReaction;
|
|
3626
|
+
this.isDialIn = isDialIn;
|
|
3621
3627
|
}
|
|
3622
3628
|
}
|
|
3623
3629
|
class LocalParticipant extends RoomParticipant {
|
|
3624
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3625
|
-
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction });
|
|
3630
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3631
|
+
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn });
|
|
3626
3632
|
this.isLocalParticipant = true;
|
|
3627
3633
|
}
|
|
3628
3634
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
|
|
|
3
3
|
import * as redux_thunk from 'redux-thunk';
|
|
4
4
|
import * as redux from 'redux';
|
|
5
5
|
import * as _whereby_com_media from '@whereby.com/media';
|
|
6
|
-
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, ServerSocket, Spotlight } from '@whereby.com/media';
|
|
6
|
+
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, ServerSocket, Spotlight } from '@whereby.com/media';
|
|
7
7
|
import * as reselect from 'reselect';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
9
|
import { EventEmitter as EventEmitter$1 } from 'events';
|
|
@@ -172,6 +172,7 @@ interface RoomParticipantData {
|
|
|
172
172
|
isAudioEnabled: boolean;
|
|
173
173
|
isVideoEnabled: boolean;
|
|
174
174
|
stickyReaction?: StickyReaction | null;
|
|
175
|
+
isDialIn: boolean;
|
|
175
176
|
}
|
|
176
177
|
declare class RoomParticipant {
|
|
177
178
|
readonly displayName: string;
|
|
@@ -181,7 +182,8 @@ declare class RoomParticipant {
|
|
|
181
182
|
readonly isLocalParticipant: boolean;
|
|
182
183
|
readonly isVideoEnabled: boolean;
|
|
183
184
|
readonly stickyReaction?: StickyReaction | null;
|
|
184
|
-
|
|
185
|
+
readonly isDialIn: boolean;
|
|
186
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
185
187
|
}
|
|
186
188
|
interface RemoteParticipantData {
|
|
187
189
|
newJoiner: boolean;
|
|
@@ -209,10 +211,11 @@ interface RemoteParticipant {
|
|
|
209
211
|
}) | null;
|
|
210
212
|
externalId: string | null;
|
|
211
213
|
stickyReaction?: StickyReaction | null;
|
|
214
|
+
isDialIn: boolean;
|
|
212
215
|
}
|
|
213
216
|
declare class LocalParticipant extends RoomParticipant {
|
|
214
217
|
readonly isLocalParticipant = true;
|
|
215
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }: RoomParticipantData);
|
|
218
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
216
219
|
}
|
|
217
220
|
interface WaitingParticipant {
|
|
218
221
|
id: string;
|
|
@@ -3819,6 +3822,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3819
3822
|
reaction: string;
|
|
3820
3823
|
timestamp: string;
|
|
3821
3824
|
} | null | undefined;
|
|
3825
|
+
isDialIn: boolean;
|
|
3822
3826
|
}, action: PayloadAction<{
|
|
3823
3827
|
displayName: string;
|
|
3824
3828
|
}>) => {
|
|
@@ -3856,6 +3860,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3856
3860
|
reaction: string;
|
|
3857
3861
|
timestamp: string;
|
|
3858
3862
|
} | null | undefined;
|
|
3863
|
+
isDialIn: boolean;
|
|
3859
3864
|
};
|
|
3860
3865
|
}, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
|
|
3861
3866
|
declare const doSetDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
@@ -4107,6 +4112,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4107
4112
|
reaction: string;
|
|
4108
4113
|
timestamp: string;
|
|
4109
4114
|
} | null | undefined;
|
|
4115
|
+
isDialIn: boolean;
|
|
4110
4116
|
}[];
|
|
4111
4117
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
4112
4118
|
remoteParticipants: {
|
|
@@ -4172,6 +4178,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4172
4178
|
reaction: string;
|
|
4173
4179
|
timestamp: string;
|
|
4174
4180
|
} | null | undefined;
|
|
4181
|
+
isDialIn: boolean;
|
|
4175
4182
|
}[];
|
|
4176
4183
|
};
|
|
4177
4184
|
participantStreamAdded: (state: {
|
|
@@ -4238,6 +4245,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4238
4245
|
reaction: string;
|
|
4239
4246
|
timestamp: string;
|
|
4240
4247
|
} | null | undefined;
|
|
4248
|
+
isDialIn: boolean;
|
|
4241
4249
|
}[];
|
|
4242
4250
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
4243
4251
|
participantStreamIdAdded: (state: {
|
|
@@ -4304,6 +4312,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4304
4312
|
reaction: string;
|
|
4305
4313
|
timestamp: string;
|
|
4306
4314
|
} | null | undefined;
|
|
4315
|
+
isDialIn: boolean;
|
|
4307
4316
|
}[];
|
|
4308
4317
|
}, action: PayloadAction<{
|
|
4309
4318
|
clientId: string;
|
|
@@ -6320,6 +6329,8 @@ declare const signalEvents: {
|
|
|
6320
6329
|
spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
|
|
6321
6330
|
streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
|
|
6322
6331
|
videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
|
|
6332
|
+
liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
|
|
6333
|
+
liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
|
|
6323
6334
|
};
|
|
6324
6335
|
|
|
6325
6336
|
interface SignalConnectionState {
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
|
|
|
3
3
|
import * as redux_thunk from 'redux-thunk';
|
|
4
4
|
import * as redux from 'redux';
|
|
5
5
|
import * as _whereby_com_media from '@whereby.com/media';
|
|
6
|
-
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, ServerSocket, Spotlight } from '@whereby.com/media';
|
|
6
|
+
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, ServerSocket, Spotlight } from '@whereby.com/media';
|
|
7
7
|
import * as reselect from 'reselect';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
9
|
import { EventEmitter as EventEmitter$1 } from 'events';
|
|
@@ -172,6 +172,7 @@ interface RoomParticipantData {
|
|
|
172
172
|
isAudioEnabled: boolean;
|
|
173
173
|
isVideoEnabled: boolean;
|
|
174
174
|
stickyReaction?: StickyReaction | null;
|
|
175
|
+
isDialIn: boolean;
|
|
175
176
|
}
|
|
176
177
|
declare class RoomParticipant {
|
|
177
178
|
readonly displayName: string;
|
|
@@ -181,7 +182,8 @@ declare class RoomParticipant {
|
|
|
181
182
|
readonly isLocalParticipant: boolean;
|
|
182
183
|
readonly isVideoEnabled: boolean;
|
|
183
184
|
readonly stickyReaction?: StickyReaction | null;
|
|
184
|
-
|
|
185
|
+
readonly isDialIn: boolean;
|
|
186
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
185
187
|
}
|
|
186
188
|
interface RemoteParticipantData {
|
|
187
189
|
newJoiner: boolean;
|
|
@@ -209,10 +211,11 @@ interface RemoteParticipant {
|
|
|
209
211
|
}) | null;
|
|
210
212
|
externalId: string | null;
|
|
211
213
|
stickyReaction?: StickyReaction | null;
|
|
214
|
+
isDialIn: boolean;
|
|
212
215
|
}
|
|
213
216
|
declare class LocalParticipant extends RoomParticipant {
|
|
214
217
|
readonly isLocalParticipant = true;
|
|
215
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }: RoomParticipantData);
|
|
218
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
216
219
|
}
|
|
217
220
|
interface WaitingParticipant {
|
|
218
221
|
id: string;
|
|
@@ -3819,6 +3822,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3819
3822
|
reaction: string;
|
|
3820
3823
|
timestamp: string;
|
|
3821
3824
|
} | null | undefined;
|
|
3825
|
+
isDialIn: boolean;
|
|
3822
3826
|
}, action: PayloadAction<{
|
|
3823
3827
|
displayName: string;
|
|
3824
3828
|
}>) => {
|
|
@@ -3856,6 +3860,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3856
3860
|
reaction: string;
|
|
3857
3861
|
timestamp: string;
|
|
3858
3862
|
} | null | undefined;
|
|
3863
|
+
isDialIn: boolean;
|
|
3859
3864
|
};
|
|
3860
3865
|
}, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
|
|
3861
3866
|
declare const doSetDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
@@ -4107,6 +4112,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4107
4112
|
reaction: string;
|
|
4108
4113
|
timestamp: string;
|
|
4109
4114
|
} | null | undefined;
|
|
4115
|
+
isDialIn: boolean;
|
|
4110
4116
|
}[];
|
|
4111
4117
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
4112
4118
|
remoteParticipants: {
|
|
@@ -4172,6 +4178,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4172
4178
|
reaction: string;
|
|
4173
4179
|
timestamp: string;
|
|
4174
4180
|
} | null | undefined;
|
|
4181
|
+
isDialIn: boolean;
|
|
4175
4182
|
}[];
|
|
4176
4183
|
};
|
|
4177
4184
|
participantStreamAdded: (state: {
|
|
@@ -4238,6 +4245,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4238
4245
|
reaction: string;
|
|
4239
4246
|
timestamp: string;
|
|
4240
4247
|
} | null | undefined;
|
|
4248
|
+
isDialIn: boolean;
|
|
4241
4249
|
}[];
|
|
4242
4250
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
4243
4251
|
participantStreamIdAdded: (state: {
|
|
@@ -4304,6 +4312,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4304
4312
|
reaction: string;
|
|
4305
4313
|
timestamp: string;
|
|
4306
4314
|
} | null | undefined;
|
|
4315
|
+
isDialIn: boolean;
|
|
4307
4316
|
}[];
|
|
4308
4317
|
}, action: PayloadAction<{
|
|
4309
4318
|
clientId: string;
|
|
@@ -6320,6 +6329,8 @@ declare const signalEvents: {
|
|
|
6320
6329
|
spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
|
|
6321
6330
|
streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
|
|
6322
6331
|
videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
|
|
6332
|
+
liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
|
|
6333
|
+
liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
|
|
6323
6334
|
};
|
|
6324
6335
|
|
|
6325
6336
|
interface SignalConnectionState {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
|
|
|
3
3
|
import * as redux_thunk from 'redux-thunk';
|
|
4
4
|
import * as redux from 'redux';
|
|
5
5
|
import * as _whereby_com_media from '@whereby.com/media';
|
|
6
|
-
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, ServerSocket, Spotlight } from '@whereby.com/media';
|
|
6
|
+
import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, ServerSocket, Spotlight } from '@whereby.com/media';
|
|
7
7
|
import * as reselect from 'reselect';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
9
|
import { EventEmitter as EventEmitter$1 } from 'events';
|
|
@@ -172,6 +172,7 @@ interface RoomParticipantData {
|
|
|
172
172
|
isAudioEnabled: boolean;
|
|
173
173
|
isVideoEnabled: boolean;
|
|
174
174
|
stickyReaction?: StickyReaction | null;
|
|
175
|
+
isDialIn: boolean;
|
|
175
176
|
}
|
|
176
177
|
declare class RoomParticipant {
|
|
177
178
|
readonly displayName: string;
|
|
@@ -181,7 +182,8 @@ declare class RoomParticipant {
|
|
|
181
182
|
readonly isLocalParticipant: boolean;
|
|
182
183
|
readonly isVideoEnabled: boolean;
|
|
183
184
|
readonly stickyReaction?: StickyReaction | null;
|
|
184
|
-
|
|
185
|
+
readonly isDialIn: boolean;
|
|
186
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
185
187
|
}
|
|
186
188
|
interface RemoteParticipantData {
|
|
187
189
|
newJoiner: boolean;
|
|
@@ -209,10 +211,11 @@ interface RemoteParticipant {
|
|
|
209
211
|
}) | null;
|
|
210
212
|
externalId: string | null;
|
|
211
213
|
stickyReaction?: StickyReaction | null;
|
|
214
|
+
isDialIn: boolean;
|
|
212
215
|
}
|
|
213
216
|
declare class LocalParticipant extends RoomParticipant {
|
|
214
217
|
readonly isLocalParticipant = true;
|
|
215
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }: RoomParticipantData);
|
|
218
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }: RoomParticipantData);
|
|
216
219
|
}
|
|
217
220
|
interface WaitingParticipant {
|
|
218
221
|
id: string;
|
|
@@ -3819,6 +3822,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3819
3822
|
reaction: string;
|
|
3820
3823
|
timestamp: string;
|
|
3821
3824
|
} | null | undefined;
|
|
3825
|
+
isDialIn: boolean;
|
|
3822
3826
|
}, action: PayloadAction<{
|
|
3823
3827
|
displayName: string;
|
|
3824
3828
|
}>) => {
|
|
@@ -3856,6 +3860,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
|
|
|
3856
3860
|
reaction: string;
|
|
3857
3861
|
timestamp: string;
|
|
3858
3862
|
} | null | undefined;
|
|
3863
|
+
isDialIn: boolean;
|
|
3859
3864
|
};
|
|
3860
3865
|
}, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
|
|
3861
3866
|
declare const doSetDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
@@ -4107,6 +4112,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4107
4112
|
reaction: string;
|
|
4108
4113
|
timestamp: string;
|
|
4109
4114
|
} | null | undefined;
|
|
4115
|
+
isDialIn: boolean;
|
|
4110
4116
|
}[];
|
|
4111
4117
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
4112
4118
|
remoteParticipants: {
|
|
@@ -4172,6 +4178,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4172
4178
|
reaction: string;
|
|
4173
4179
|
timestamp: string;
|
|
4174
4180
|
} | null | undefined;
|
|
4181
|
+
isDialIn: boolean;
|
|
4175
4182
|
}[];
|
|
4176
4183
|
};
|
|
4177
4184
|
participantStreamAdded: (state: {
|
|
@@ -4238,6 +4245,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4238
4245
|
reaction: string;
|
|
4239
4246
|
timestamp: string;
|
|
4240
4247
|
} | null | undefined;
|
|
4248
|
+
isDialIn: boolean;
|
|
4241
4249
|
}[];
|
|
4242
4250
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
4243
4251
|
participantStreamIdAdded: (state: {
|
|
@@ -4304,6 +4312,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
4304
4312
|
reaction: string;
|
|
4305
4313
|
timestamp: string;
|
|
4306
4314
|
} | null | undefined;
|
|
4315
|
+
isDialIn: boolean;
|
|
4307
4316
|
}[];
|
|
4308
4317
|
}, action: PayloadAction<{
|
|
4309
4318
|
clientId: string;
|
|
@@ -6320,6 +6329,8 @@ declare const signalEvents: {
|
|
|
6320
6329
|
spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
|
|
6321
6330
|
streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
|
|
6322
6331
|
videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
|
|
6332
|
+
liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
|
|
6333
|
+
liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
|
|
6323
6334
|
};
|
|
6324
6335
|
|
|
6325
6336
|
interface SignalConnectionState {
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ const createReactor = (selectors, callback) => {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const coreVersion = "0.
|
|
46
|
+
const coreVersion = "0.22.0";
|
|
47
47
|
|
|
48
48
|
const initialState$f = {
|
|
49
49
|
isNodeSdk: false,
|
|
@@ -107,6 +107,8 @@ const signalEvents = {
|
|
|
107
107
|
spotlightRemoved: createSignalEventAction("spotlightRemoved"),
|
|
108
108
|
streamingStopped: createSignalEventAction("streamingStopped"),
|
|
109
109
|
videoEnabled: createSignalEventAction("videoEnabled"),
|
|
110
|
+
liveTranscriptionStarted: createSignalEventAction("liveTranscriptionStarted"),
|
|
111
|
+
liveTranscriptionStopped: createSignalEventAction("liveTranscriptionStopped"),
|
|
110
112
|
};
|
|
111
113
|
|
|
112
114
|
const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
@@ -262,6 +264,8 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
262
264
|
socket.on("streaming_stopped", () => dispatch(signalEvents.streamingStopped()));
|
|
263
265
|
socket.on("spotlight_added", (payload) => dispatch(signalEvents.spotlightAdded(payload)));
|
|
264
266
|
socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
|
|
267
|
+
socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
|
|
268
|
+
socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
|
|
265
269
|
}
|
|
266
270
|
const SIGNAL_BASE_URL = "wss://signal.appearin.net" ;
|
|
267
271
|
function createSocket() {
|
|
@@ -1063,6 +1067,7 @@ const initialState$a = {
|
|
|
1063
1067
|
roleName: "none",
|
|
1064
1068
|
clientClaim: undefined,
|
|
1065
1069
|
stickyReaction: undefined,
|
|
1070
|
+
isDialIn: false,
|
|
1066
1071
|
};
|
|
1067
1072
|
const localParticipantSlice = createSlice({
|
|
1068
1073
|
name: "localParticipant",
|
|
@@ -3608,7 +3613,7 @@ class RoomService {
|
|
|
3608
3613
|
}
|
|
3609
3614
|
|
|
3610
3615
|
class RoomParticipant {
|
|
3611
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3616
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3612
3617
|
this.isLocalParticipant = false;
|
|
3613
3618
|
this.displayName = displayName;
|
|
3614
3619
|
this.id = id;
|
|
@@ -3616,11 +3621,12 @@ class RoomParticipant {
|
|
|
3616
3621
|
this.isAudioEnabled = isAudioEnabled;
|
|
3617
3622
|
this.isVideoEnabled = isVideoEnabled;
|
|
3618
3623
|
this.stickyReaction = stickyReaction;
|
|
3624
|
+
this.isDialIn = isDialIn;
|
|
3619
3625
|
}
|
|
3620
3626
|
}
|
|
3621
3627
|
class LocalParticipant extends RoomParticipant {
|
|
3622
|
-
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction }) {
|
|
3623
|
-
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction });
|
|
3628
|
+
constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn, }) {
|
|
3629
|
+
super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, stickyReaction, isDialIn });
|
|
3624
3630
|
this.isLocalParticipant = true;
|
|
3625
3631
|
}
|
|
3626
3632
|
}
|
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": "0.
|
|
5
|
+
"version": "0.22.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "rimraf dist && rollup -c rollup.config.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@reduxjs/toolkit": "^2.2.3",
|
|
50
|
-
"@whereby.com/media": "1.
|
|
50
|
+
"@whereby.com/media": "1.8.0",
|
|
51
51
|
"axios": "^1.2.3",
|
|
52
52
|
"btoa": "^1.2.1",
|
|
53
53
|
"events": "^3.3.0"
|