@whereby.com/core 0.8.0 → 0.9.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/cjs/index.cjs +10 -10
- package/dist/index.d.ts +16 -13
- package/dist/index.mjs +10 -9
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -35,6 +35,8 @@ const createReactor = (selectors, callback) => {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
+
const coreVersion = "0.9.0";
|
|
39
|
+
|
|
38
40
|
const initialState$c = {
|
|
39
41
|
isNodeSdk: false,
|
|
40
42
|
wantsToJoin: false,
|
|
@@ -42,7 +44,7 @@ const initialState$c = {
|
|
|
42
44
|
roomKey: null,
|
|
43
45
|
roomUrl: null,
|
|
44
46
|
displayName: null,
|
|
45
|
-
|
|
47
|
+
userAgent: `core:${coreVersion}`,
|
|
46
48
|
externalId: null,
|
|
47
49
|
};
|
|
48
50
|
const appSlice = toolkit.createSlice({
|
|
@@ -68,7 +70,7 @@ const selectAppRoomName = (state) => state.app.roomName;
|
|
|
68
70
|
const selectAppRoomUrl = (state) => state.app.roomUrl;
|
|
69
71
|
const selectAppRoomKey = (state) => state.app.roomKey;
|
|
70
72
|
const selectAppDisplayName = (state) => state.app.displayName;
|
|
71
|
-
const
|
|
73
|
+
const selectAppUserAgent = (state) => state.app.userAgent;
|
|
72
74
|
const selectAppExternalId = (state) => state.app.externalId;
|
|
73
75
|
const selectAppIsNodeSdk = (state) => state.app.isNodeSdk;
|
|
74
76
|
|
|
@@ -1329,7 +1331,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1329
1331
|
const roomName = selectAppRoomName(state);
|
|
1330
1332
|
const roomKey = selectAppRoomKey(state);
|
|
1331
1333
|
const displayName = selectAppDisplayName(state);
|
|
1332
|
-
const
|
|
1334
|
+
const userAgent = selectAppUserAgent(state);
|
|
1333
1335
|
const externalId = selectAppExternalId(state);
|
|
1334
1336
|
const organizationId = selectOrganizationId(state);
|
|
1335
1337
|
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
@@ -1347,7 +1349,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1347
1349
|
roomKey,
|
|
1348
1350
|
roomName,
|
|
1349
1351
|
selfId: "",
|
|
1350
|
-
userAgent
|
|
1352
|
+
userAgent,
|
|
1351
1353
|
externalId,
|
|
1352
1354
|
});
|
|
1353
1355
|
dispatch(connectionStatusChanged("knocking"));
|
|
@@ -1358,7 +1360,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1358
1360
|
const roomName = selectAppRoomName(state);
|
|
1359
1361
|
const roomKey = selectAppRoomKey(state);
|
|
1360
1362
|
const displayName = selectAppDisplayName(state);
|
|
1361
|
-
const
|
|
1363
|
+
const userAgent = selectAppUserAgent(state);
|
|
1362
1364
|
const externalId = selectAppExternalId(state);
|
|
1363
1365
|
const organizationId = selectOrganizationId(state);
|
|
1364
1366
|
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
@@ -1371,7 +1373,8 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1371
1373
|
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1372
1374
|
roomKey,
|
|
1373
1375
|
roomName,
|
|
1374
|
-
selfId }, (!!clientClaim && { clientClaim })), { userAgent
|
|
1376
|
+
selfId }, (!!clientClaim && { clientClaim })), { userAgent,
|
|
1377
|
+
externalId }));
|
|
1375
1378
|
dispatch(connectionStatusChanged("connecting"));
|
|
1376
1379
|
});
|
|
1377
1380
|
const selectRoomConnectionRaw = (state) => state.roomConnection;
|
|
@@ -2970,8 +2973,6 @@ class LocalParticipant extends RoomParticipant {
|
|
|
2970
2973
|
}
|
|
2971
2974
|
}
|
|
2972
2975
|
|
|
2973
|
-
const sdkVersion = "0.8.0";
|
|
2974
|
-
|
|
2975
2976
|
const API_BASE_URL = "https://api.whereby.dev" ;
|
|
2976
2977
|
function createServices() {
|
|
2977
2978
|
const credentialsService = CredentialsService.create({ baseUrl: API_BASE_URL });
|
|
@@ -3081,7 +3082,6 @@ exports.rtcDispatcherCreated = rtcDispatcherCreated;
|
|
|
3081
3082
|
exports.rtcManagerCreated = rtcManagerCreated;
|
|
3082
3083
|
exports.rtcManagerDestroyed = rtcManagerDestroyed;
|
|
3083
3084
|
exports.rtcManagerInitialized = rtcManagerInitialized;
|
|
3084
|
-
exports.sdkVersion = sdkVersion;
|
|
3085
3085
|
exports.selectAppDisplayName = selectAppDisplayName;
|
|
3086
3086
|
exports.selectAppExternalId = selectAppExternalId;
|
|
3087
3087
|
exports.selectAppIsNodeSdk = selectAppIsNodeSdk;
|
|
@@ -3089,7 +3089,7 @@ exports.selectAppRaw = selectAppRaw;
|
|
|
3089
3089
|
exports.selectAppRoomKey = selectAppRoomKey;
|
|
3090
3090
|
exports.selectAppRoomName = selectAppRoomName;
|
|
3091
3091
|
exports.selectAppRoomUrl = selectAppRoomUrl;
|
|
3092
|
-
exports.
|
|
3092
|
+
exports.selectAppUserAgent = selectAppUserAgent;
|
|
3093
3093
|
exports.selectAppWantsToJoin = selectAppWantsToJoin;
|
|
3094
3094
|
exports.selectBusyDeviceIds = selectBusyDeviceIds;
|
|
3095
3095
|
exports.selectCameraDeviceError = selectCameraDeviceError;
|
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ interface RemoteParticipant {
|
|
|
199
199
|
presentationStream: (MediaStream & {
|
|
200
200
|
inboundId?: string;
|
|
201
201
|
}) | null;
|
|
202
|
+
externalId: string | null;
|
|
202
203
|
}
|
|
203
204
|
declare class LocalParticipant extends RoomParticipant {
|
|
204
205
|
readonly isLocalParticipant = true;
|
|
@@ -454,7 +455,7 @@ interface AppState {
|
|
|
454
455
|
roomName: string | null;
|
|
455
456
|
roomKey: string | null;
|
|
456
457
|
displayName: string | null;
|
|
457
|
-
|
|
458
|
+
userAgent: string | null;
|
|
458
459
|
externalId: string | null;
|
|
459
460
|
}
|
|
460
461
|
declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
@@ -465,7 +466,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
465
466
|
roomName: string | null;
|
|
466
467
|
roomKey: string | null;
|
|
467
468
|
displayName: string | null;
|
|
468
|
-
|
|
469
|
+
userAgent: string | null;
|
|
469
470
|
externalId: string | null;
|
|
470
471
|
}, action: PayloadAction<{
|
|
471
472
|
isNodeSdk?: boolean;
|
|
@@ -473,7 +474,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
473
474
|
localMediaOptions?: LocalMediaOptions;
|
|
474
475
|
roomKey: string | null;
|
|
475
476
|
roomUrl: string;
|
|
476
|
-
|
|
477
|
+
userAgent?: string;
|
|
477
478
|
externalId: string | null;
|
|
478
479
|
}>) => {
|
|
479
480
|
roomName: string;
|
|
@@ -483,7 +484,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
483
484
|
localMediaOptions?: LocalMediaOptions | undefined;
|
|
484
485
|
roomKey: string | null;
|
|
485
486
|
roomUrl: string;
|
|
486
|
-
|
|
487
|
+
userAgent: string | null;
|
|
487
488
|
externalId: string | null;
|
|
488
489
|
};
|
|
489
490
|
appLeft: (state: {
|
|
@@ -493,7 +494,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
493
494
|
roomName: string | null;
|
|
494
495
|
roomKey: string | null;
|
|
495
496
|
displayName: string | null;
|
|
496
|
-
|
|
497
|
+
userAgent: string | null;
|
|
497
498
|
externalId: string | null;
|
|
498
499
|
}) => {
|
|
499
500
|
wantsToJoin: false;
|
|
@@ -502,7 +503,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
502
503
|
roomName: string | null;
|
|
503
504
|
roomKey: string | null;
|
|
504
505
|
displayName: string | null;
|
|
505
|
-
|
|
506
|
+
userAgent: string | null;
|
|
506
507
|
externalId: string | null;
|
|
507
508
|
};
|
|
508
509
|
setRoomKey: (state: {
|
|
@@ -512,7 +513,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
512
513
|
roomName: string | null;
|
|
513
514
|
roomKey: string | null;
|
|
514
515
|
displayName: string | null;
|
|
515
|
-
|
|
516
|
+
userAgent: string | null;
|
|
516
517
|
externalId: string | null;
|
|
517
518
|
}, action: PayloadAction<string>) => {
|
|
518
519
|
roomKey: string;
|
|
@@ -521,7 +522,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
521
522
|
roomUrl: string | null;
|
|
522
523
|
roomName: string | null;
|
|
523
524
|
displayName: string | null;
|
|
524
|
-
|
|
525
|
+
userAgent: string | null;
|
|
525
526
|
externalId: string | null;
|
|
526
527
|
};
|
|
527
528
|
}, "app", "app", _reduxjs_toolkit.SliceSelectors<AppState>>;
|
|
@@ -531,7 +532,7 @@ declare const doAppJoin: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
|
531
532
|
localMediaOptions?: LocalMediaOptions | undefined;
|
|
532
533
|
roomKey: string | null;
|
|
533
534
|
roomUrl: string;
|
|
534
|
-
|
|
535
|
+
userAgent?: string | undefined;
|
|
535
536
|
externalId: string | null;
|
|
536
537
|
}, "app/doAppJoin">;
|
|
537
538
|
declare const appLeft: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/appLeft">;
|
|
@@ -542,7 +543,7 @@ declare const selectAppRoomName: (state: RootState) => string | null;
|
|
|
542
543
|
declare const selectAppRoomUrl: (state: RootState) => string | null;
|
|
543
544
|
declare const selectAppRoomKey: (state: RootState) => string | null;
|
|
544
545
|
declare const selectAppDisplayName: (state: RootState) => string | null;
|
|
545
|
-
declare const
|
|
546
|
+
declare const selectAppUserAgent: (state: RootState) => string | null;
|
|
546
547
|
declare const selectAppExternalId: (state: RootState) => string | null;
|
|
547
548
|
declare const selectAppIsNodeSdk: (state: RootState) => boolean;
|
|
548
549
|
|
|
@@ -2400,6 +2401,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2400
2401
|
dispatchEvent: (event: Event) => boolean;
|
|
2401
2402
|
inboundId?: string | undefined;
|
|
2402
2403
|
} | null;
|
|
2404
|
+
externalId: string | null;
|
|
2403
2405
|
}[];
|
|
2404
2406
|
}, action: PayloadAction<StreamStatusUpdate[]>) => {
|
|
2405
2407
|
remoteParticipants: {
|
|
@@ -2459,6 +2461,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2459
2461
|
dispatchEvent: (event: Event) => boolean;
|
|
2460
2462
|
inboundId?: string | undefined;
|
|
2461
2463
|
} | null;
|
|
2464
|
+
externalId: string | null;
|
|
2462
2465
|
}[];
|
|
2463
2466
|
};
|
|
2464
2467
|
participantStreamAdded: (state: {
|
|
@@ -2519,6 +2522,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2519
2522
|
dispatchEvent: (event: Event) => boolean;
|
|
2520
2523
|
inboundId?: string | undefined;
|
|
2521
2524
|
} | null;
|
|
2525
|
+
externalId: string | null;
|
|
2522
2526
|
}[];
|
|
2523
2527
|
}, action: PayloadAction<RtcStreamAddedPayload>) => RemoteParticipantState;
|
|
2524
2528
|
participantStreamIdAdded: (state: {
|
|
@@ -2579,6 +2583,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2579
2583
|
dispatchEvent: (event: Event) => boolean;
|
|
2580
2584
|
inboundId?: string | undefined;
|
|
2581
2585
|
} | null;
|
|
2586
|
+
externalId: string | null;
|
|
2582
2587
|
}[];
|
|
2583
2588
|
}, action: PayloadAction<{
|
|
2584
2589
|
clientId: string;
|
|
@@ -5303,6 +5308,4 @@ declare const createReactor: <Selectors extends Selector<{
|
|
|
5303
5308
|
extra: ReturnType<typeof createServices>;
|
|
5304
5309
|
}, ...selectorValues: SelectorResults<Selectors>) => void | Promise<void>) => _reduxjs_toolkit.UnsubscribeListener;
|
|
5305
5310
|
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, sdkVersion, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppSdkVersion, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
|
5311
|
+
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
package/dist/index.mjs
CHANGED
|
@@ -33,6 +33,8 @@ const createReactor = (selectors, callback) => {
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
const coreVersion = "0.9.0";
|
|
37
|
+
|
|
36
38
|
const initialState$c = {
|
|
37
39
|
isNodeSdk: false,
|
|
38
40
|
wantsToJoin: false,
|
|
@@ -40,7 +42,7 @@ const initialState$c = {
|
|
|
40
42
|
roomKey: null,
|
|
41
43
|
roomUrl: null,
|
|
42
44
|
displayName: null,
|
|
43
|
-
|
|
45
|
+
userAgent: `core:${coreVersion}`,
|
|
44
46
|
externalId: null,
|
|
45
47
|
};
|
|
46
48
|
const appSlice = createSlice({
|
|
@@ -66,7 +68,7 @@ const selectAppRoomName = (state) => state.app.roomName;
|
|
|
66
68
|
const selectAppRoomUrl = (state) => state.app.roomUrl;
|
|
67
69
|
const selectAppRoomKey = (state) => state.app.roomKey;
|
|
68
70
|
const selectAppDisplayName = (state) => state.app.displayName;
|
|
69
|
-
const
|
|
71
|
+
const selectAppUserAgent = (state) => state.app.userAgent;
|
|
70
72
|
const selectAppExternalId = (state) => state.app.externalId;
|
|
71
73
|
const selectAppIsNodeSdk = (state) => state.app.isNodeSdk;
|
|
72
74
|
|
|
@@ -1327,7 +1329,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1327
1329
|
const roomName = selectAppRoomName(state);
|
|
1328
1330
|
const roomKey = selectAppRoomKey(state);
|
|
1329
1331
|
const displayName = selectAppDisplayName(state);
|
|
1330
|
-
const
|
|
1332
|
+
const userAgent = selectAppUserAgent(state);
|
|
1331
1333
|
const externalId = selectAppExternalId(state);
|
|
1332
1334
|
const organizationId = selectOrganizationId(state);
|
|
1333
1335
|
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", {
|
|
@@ -1345,7 +1347,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1345
1347
|
roomKey,
|
|
1346
1348
|
roomName,
|
|
1347
1349
|
selfId: "",
|
|
1348
|
-
userAgent
|
|
1350
|
+
userAgent,
|
|
1349
1351
|
externalId,
|
|
1350
1352
|
});
|
|
1351
1353
|
dispatch(connectionStatusChanged("knocking"));
|
|
@@ -1356,7 +1358,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1356
1358
|
const roomName = selectAppRoomName(state);
|
|
1357
1359
|
const roomKey = selectAppRoomKey(state);
|
|
1358
1360
|
const displayName = selectAppDisplayName(state);
|
|
1359
|
-
const
|
|
1361
|
+
const userAgent = selectAppUserAgent(state);
|
|
1360
1362
|
const externalId = selectAppExternalId(state);
|
|
1361
1363
|
const organizationId = selectOrganizationId(state);
|
|
1362
1364
|
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
@@ -1369,7 +1371,8 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
1369
1371
|
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1370
1372
|
roomKey,
|
|
1371
1373
|
roomName,
|
|
1372
|
-
selfId }, (!!clientClaim && { clientClaim })), { userAgent
|
|
1374
|
+
selfId }, (!!clientClaim && { clientClaim })), { userAgent,
|
|
1375
|
+
externalId }));
|
|
1373
1376
|
dispatch(connectionStatusChanged("connecting"));
|
|
1374
1377
|
});
|
|
1375
1378
|
const selectRoomConnectionRaw = (state) => state.roomConnection;
|
|
@@ -2968,8 +2971,6 @@ class LocalParticipant extends RoomParticipant {
|
|
|
2968
2971
|
}
|
|
2969
2972
|
}
|
|
2970
2973
|
|
|
2971
|
-
const sdkVersion = "0.8.0";
|
|
2972
|
-
|
|
2973
2974
|
const API_BASE_URL = "https://api.whereby.dev" ;
|
|
2974
2975
|
function createServices() {
|
|
2975
2976
|
const credentialsService = CredentialsService.create({ baseUrl: API_BASE_URL });
|
|
@@ -2995,4 +2996,4 @@ function createServices() {
|
|
|
2995
2996
|
};
|
|
2996
2997
|
}
|
|
2997
2998
|
|
|
2998
|
-
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, appLeft, appSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized,
|
|
2999
|
+
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, appLeft, appSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
package/package.json
CHANGED