@whereby.com/core 0.20.0 → 0.21.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 +5 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +5 -1
- 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.21.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() {
|
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';
|
|
@@ -6320,6 +6320,8 @@ declare const signalEvents: {
|
|
|
6320
6320
|
spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
|
|
6321
6321
|
streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
|
|
6322
6322
|
videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
|
|
6323
|
+
liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
|
|
6324
|
+
liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
|
|
6323
6325
|
};
|
|
6324
6326
|
|
|
6325
6327
|
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';
|
|
@@ -6320,6 +6320,8 @@ declare const signalEvents: {
|
|
|
6320
6320
|
spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
|
|
6321
6321
|
streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
|
|
6322
6322
|
videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
|
|
6323
|
+
liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
|
|
6324
|
+
liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
|
|
6323
6325
|
};
|
|
6324
6326
|
|
|
6325
6327
|
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';
|
|
@@ -6320,6 +6320,8 @@ declare const signalEvents: {
|
|
|
6320
6320
|
spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
|
|
6321
6321
|
streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
|
|
6322
6322
|
videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
|
|
6323
|
+
liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
|
|
6324
|
+
liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
|
|
6323
6325
|
};
|
|
6324
6326
|
|
|
6325
6327
|
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.21.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() {
|
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.21.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.7.0",
|
|
51
51
|
"axios": "^1.2.3",
|
|
52
52
|
"btoa": "^1.2.1",
|
|
53
53
|
"events": "^3.3.0"
|