@whereby.com/core 0.33.10 → 0.34.1
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/LICENCE.md +23 -0
- package/README.md +6 -0
- package/dist/index.cjs +36 -29
- package/dist/index.d.cts +416 -6735
- package/dist/index.d.mts +416 -6735
- package/dist/index.d.ts +416 -6735
- package/dist/index.mjs +36 -30
- package/dist/legacy-esm.js +36 -30
- package/package.json +66 -55
package/dist/index.mjs
CHANGED
|
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const coreVersion = "0.
|
|
76
|
+
const coreVersion = "0.34.1";
|
|
77
77
|
|
|
78
78
|
const initialState = {
|
|
79
79
|
isNodeSdk: false,
|
|
@@ -212,7 +212,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
212
212
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
213
213
|
PERFORMANCE OF THIS SOFTWARE.
|
|
214
214
|
***************************************************************************** */
|
|
215
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
215
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
function __rest(s, e) {
|
|
@@ -262,7 +262,7 @@ const deviceCredentialsSlice = createSlice({
|
|
|
262
262
|
});
|
|
263
263
|
},
|
|
264
264
|
});
|
|
265
|
-
const doGetDeviceCredentials = createAppAsyncThunk("deviceCredentials/doGetDeviceCredentials", (
|
|
265
|
+
const doGetDeviceCredentials = createAppAsyncThunk("deviceCredentials/doGetDeviceCredentials", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { extra }) {
|
|
266
266
|
try {
|
|
267
267
|
const deviceCredentials = yield extra.services.credentialsService.getCredentials();
|
|
268
268
|
return deviceCredentials;
|
|
@@ -543,7 +543,7 @@ function parseUnverifiedRoomKeyData(roomKey) {
|
|
|
543
543
|
const base64DecodedJwtData = atob(roomKeyData);
|
|
544
544
|
return JSON.parse(base64DecodedJwtData);
|
|
545
545
|
}
|
|
546
|
-
catch (
|
|
546
|
+
catch (_a) {
|
|
547
547
|
return {};
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -675,7 +675,7 @@ const localMediaSlice = createSlice({
|
|
|
675
675
|
},
|
|
676
676
|
});
|
|
677
677
|
const { deviceBusy, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, toggleCameraEnabled, toggleMicrophoneEnabled, toggleLowDataModeEnabled, setLocalMediaOptions, setLocalMediaStream, localMediaStopped, localStreamMetadataUpdated, } = localMediaSlice.actions;
|
|
678
|
-
const doToggleCamera = createAppAsyncThunk("localMedia/doToggleCamera", (
|
|
678
|
+
const doToggleCamera = createAppAsyncThunk("localMedia/doToggleCamera", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, rejectWithValue }) {
|
|
679
679
|
const state = getState();
|
|
680
680
|
const stream = selectLocalMediaStream(state);
|
|
681
681
|
if (!stream) {
|
|
@@ -733,7 +733,7 @@ const doToggleLowDataMode = createAppThunk(() => (dispatch, getState) => {
|
|
|
733
733
|
const audioId = selectCurrentMicrophoneDeviceId(state);
|
|
734
734
|
dispatch(doSwitchLocalStream({ audioId, videoId }));
|
|
735
735
|
});
|
|
736
|
-
const doSetDevice = createAppAsyncThunk("localMedia/reactSetDevice", (
|
|
736
|
+
const doSetDevice = createAppAsyncThunk("localMedia/reactSetDevice", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ audio, video }, { getState, rejectWithValue }) {
|
|
737
737
|
try {
|
|
738
738
|
const state = getState();
|
|
739
739
|
const stream = selectLocalMediaStream(state);
|
|
@@ -755,8 +755,8 @@ const doSetDevice = createAppAsyncThunk("localMedia/reactSetDevice", ({ audio, v
|
|
|
755
755
|
return rejectWithValue(error);
|
|
756
756
|
}
|
|
757
757
|
}));
|
|
758
|
-
const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList", (
|
|
759
|
-
var
|
|
758
|
+
const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, dispatch, rejectWithValue }) {
|
|
759
|
+
var _b, _c, _d, _e;
|
|
760
760
|
const state = getState();
|
|
761
761
|
let newDevices = [];
|
|
762
762
|
let oldDevices = [];
|
|
@@ -776,13 +776,13 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
776
776
|
oldDevices,
|
|
777
777
|
newDevices,
|
|
778
778
|
});
|
|
779
|
-
let autoSwitchAudioId = (
|
|
780
|
-
let autoSwitchVideoId = (
|
|
779
|
+
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
780
|
+
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
781
781
|
if (autoSwitchAudioId === undefined) {
|
|
782
|
-
autoSwitchAudioId = (
|
|
782
|
+
autoSwitchAudioId = (_d = addedDevices.audioinput) === null || _d === void 0 ? void 0 : _d.deviceId;
|
|
783
783
|
}
|
|
784
784
|
if (autoSwitchVideoId === undefined) {
|
|
785
|
-
autoSwitchVideoId = (
|
|
785
|
+
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
786
786
|
}
|
|
787
787
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
788
788
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
@@ -793,7 +793,7 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
793
793
|
return rejectWithValue(error);
|
|
794
794
|
}
|
|
795
795
|
}));
|
|
796
|
-
const doSwitchLocalStream = createAppAsyncThunk("localMedia/doSwitchLocalStream", (
|
|
796
|
+
const doSwitchLocalStream = createAppAsyncThunk("localMedia/doSwitchLocalStream", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ audioId, videoId }, { dispatch, getState, rejectWithValue }) {
|
|
797
797
|
const state = getState();
|
|
798
798
|
const replaceStream = selectLocalMediaStream(state);
|
|
799
799
|
const constraintsOptions = selectLocalMediaConstraintsOptions(state);
|
|
@@ -822,7 +822,7 @@ const doSwitchLocalStream = createAppAsyncThunk("localMedia/doSwitchLocalStream"
|
|
|
822
822
|
return rejectWithValue(error);
|
|
823
823
|
}
|
|
824
824
|
}));
|
|
825
|
-
const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (
|
|
825
|
+
const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { getState, dispatch, rejectWithValue }) {
|
|
826
826
|
const onDeviceChange = debounce(() => {
|
|
827
827
|
dispatch(doUpdateDeviceList());
|
|
828
828
|
}, { delay: 500 });
|
|
@@ -1479,8 +1479,8 @@ const localScreenshareSlice = createSlice({
|
|
|
1479
1479
|
},
|
|
1480
1480
|
});
|
|
1481
1481
|
const { stopScreenshare } = localScreenshareSlice.actions;
|
|
1482
|
-
const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doStartScreenshare", (
|
|
1483
|
-
var
|
|
1482
|
+
const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doStartScreenshare", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch, getState, rejectWithValue }) {
|
|
1483
|
+
var _b;
|
|
1484
1484
|
try {
|
|
1485
1485
|
const state = getState();
|
|
1486
1486
|
const screenshareStream = selectLocalScreenshareStream(state);
|
|
@@ -1495,7 +1495,7 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
|
|
|
1495
1495
|
stream.addEventListener("inactive", onEnded);
|
|
1496
1496
|
}
|
|
1497
1497
|
else {
|
|
1498
|
-
(
|
|
1498
|
+
(_b = stream.getVideoTracks()[0]) === null || _b === void 0 ? void 0 : _b.addEventListener("ended", onEnded);
|
|
1499
1499
|
}
|
|
1500
1500
|
return { stream };
|
|
1501
1501
|
}
|
|
@@ -2317,7 +2317,7 @@ const doSetDisplayName = createRoomConnectedThunk((payload) => (dispatch, getSta
|
|
|
2317
2317
|
});
|
|
2318
2318
|
dispatch(setDisplayName({ displayName: payload.displayName }));
|
|
2319
2319
|
});
|
|
2320
|
-
const doEnableAudio = createAsyncRoomConnectedThunk("localParticipant/doEnableAudio", (
|
|
2320
|
+
const doEnableAudio = createAsyncRoomConnectedThunk("localParticipant/doEnableAudio", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { dispatch, getState }) {
|
|
2321
2321
|
const state = getState();
|
|
2322
2322
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
2323
2323
|
socket === null || socket === void 0 ? void 0 : socket.emit("enable_audio", { enabled: payload.enabled });
|
|
@@ -2326,18 +2326,18 @@ const doEnableAudio = createAsyncRoomConnectedThunk("localParticipant/doEnableAu
|
|
|
2326
2326
|
}
|
|
2327
2327
|
return payload.enabled;
|
|
2328
2328
|
}));
|
|
2329
|
-
const doEnableVideo = createAsyncRoomConnectedThunk("localParticipant/doEnableVideo", (
|
|
2329
|
+
const doEnableVideo = createAsyncRoomConnectedThunk("localParticipant/doEnableVideo", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { getState }) {
|
|
2330
2330
|
const state = getState();
|
|
2331
2331
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
2332
2332
|
socket === null || socket === void 0 ? void 0 : socket.emit("enable_video", { enabled: payload.enabled });
|
|
2333
2333
|
return payload.enabled;
|
|
2334
2334
|
}));
|
|
2335
|
-
const doSetLocalStickyReaction = createAsyncRoomConnectedThunk("localParticipant/doSetLocalStickyReaction", (
|
|
2336
|
-
var
|
|
2335
|
+
const doSetLocalStickyReaction = createAsyncRoomConnectedThunk("localParticipant/doSetLocalStickyReaction", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { getState, rejectWithValue }) {
|
|
2336
|
+
var _b;
|
|
2337
2337
|
const state = getState();
|
|
2338
2338
|
const currentStickyReaction = selectLocalParticipantStickyReaction(state);
|
|
2339
2339
|
const stickyReactionCurrentlyEnabled = Boolean(currentStickyReaction);
|
|
2340
|
-
const enabled = (
|
|
2340
|
+
const enabled = (_b = payload.enabled) !== null && _b !== void 0 ? _b : !stickyReactionCurrentlyEnabled;
|
|
2341
2341
|
if (enabled === stickyReactionCurrentlyEnabled) {
|
|
2342
2342
|
return rejectWithValue(currentStickyReaction);
|
|
2343
2343
|
}
|
|
@@ -2585,7 +2585,7 @@ const organizationSlice = createSlice({
|
|
|
2585
2585
|
});
|
|
2586
2586
|
},
|
|
2587
2587
|
});
|
|
2588
|
-
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (
|
|
2588
|
+
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
2589
2589
|
try {
|
|
2590
2590
|
const roomUrl = selectAppRoomUrl(getState());
|
|
2591
2591
|
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
@@ -2600,6 +2600,7 @@ const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetc
|
|
|
2600
2600
|
}));
|
|
2601
2601
|
const selectOrganizationRaw = (state) => state.organization;
|
|
2602
2602
|
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
2603
|
+
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
2603
2604
|
const selectShouldFetchOrganization = createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
2604
2605
|
if (appIsActive &&
|
|
2605
2606
|
!organization.data &&
|
|
@@ -2825,7 +2826,11 @@ const rtcAnalyticsCustomEvents = {
|
|
|
2825
2826
|
displayName: {
|
|
2826
2827
|
actions: [setDisplayName],
|
|
2827
2828
|
rtcEventName: "displayName",
|
|
2828
|
-
getValue: (state) =>
|
|
2829
|
+
getValue: (state) => {
|
|
2830
|
+
const displayName = selectLocalParticipantDisplayName(state);
|
|
2831
|
+
const prefs = selectOrganizationPreferences(state);
|
|
2832
|
+
return (prefs === null || prefs === void 0 ? void 0 : prefs.hideInsightsDisplayNames) ? "[[redacted]]" : displayName;
|
|
2833
|
+
},
|
|
2829
2834
|
getOutput: (value) => ({ displayName: value }),
|
|
2830
2835
|
},
|
|
2831
2836
|
clientId: {
|
|
@@ -3028,8 +3033,7 @@ const doRejectWaitingParticipant = createRoomConnectedThunk((payload) => (dispat
|
|
|
3028
3033
|
const selectWaitingParticipantsRaw = (state) => state.waitingParticipants;
|
|
3029
3034
|
const selectWaitingParticipants = (state) => state.waitingParticipants.waitingParticipants;
|
|
3030
3035
|
|
|
3031
|
-
|
|
3032
|
-
const IS_DEV = (_a = undefined === "true") !== null && _a !== void 0 ? _a : false;
|
|
3036
|
+
const IS_DEV = undefined === "true";
|
|
3033
3037
|
const appReducer = combineReducers({
|
|
3034
3038
|
app: appSlice.reducer,
|
|
3035
3039
|
authorization: authorizationSlice.reducer,
|
|
@@ -3394,7 +3398,7 @@ class LocalStorageStore {
|
|
|
3394
3398
|
try {
|
|
3395
3399
|
return Promise.resolve(JSON.parse(value));
|
|
3396
3400
|
}
|
|
3397
|
-
catch (
|
|
3401
|
+
catch (_a) {
|
|
3398
3402
|
}
|
|
3399
3403
|
}
|
|
3400
3404
|
return Promise.resolve(defaultValue);
|
|
@@ -3420,7 +3424,7 @@ let localStorage;
|
|
|
3420
3424
|
try {
|
|
3421
3425
|
localStorage = self.localStorage;
|
|
3422
3426
|
}
|
|
3423
|
-
catch (
|
|
3427
|
+
catch (_a) {
|
|
3424
3428
|
localStorage = {
|
|
3425
3429
|
getItem: () => undefined,
|
|
3426
3430
|
key: () => undefined,
|
|
@@ -4078,7 +4082,9 @@ class LocalParticipant extends RoomParticipant {
|
|
|
4078
4082
|
|
|
4079
4083
|
const API_BASE_URL = "https://api.whereby.dev";
|
|
4080
4084
|
function createServices() {
|
|
4081
|
-
const credentialsService = CredentialsService.create({
|
|
4085
|
+
const credentialsService = CredentialsService.create({
|
|
4086
|
+
baseUrl: API_BASE_URL,
|
|
4087
|
+
});
|
|
4082
4088
|
const apiClient = new ApiClient({
|
|
4083
4089
|
fetchDeviceCredentials: credentialsService.getCredentials.bind(credentialsService),
|
|
4084
4090
|
baseUrl: API_BASE_URL,
|
|
@@ -4101,4 +4107,4 @@ function createServices() {
|
|
|
4101
4107
|
};
|
|
4102
4108
|
}
|
|
4103
4109
|
|
|
4104
|
-
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
4110
|
+
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
package/dist/legacy-esm.js
CHANGED
|
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const coreVersion = "0.
|
|
76
|
+
const coreVersion = "0.34.1";
|
|
77
77
|
|
|
78
78
|
const initialState = {
|
|
79
79
|
isNodeSdk: false,
|
|
@@ -212,7 +212,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
212
212
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
213
213
|
PERFORMANCE OF THIS SOFTWARE.
|
|
214
214
|
***************************************************************************** */
|
|
215
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
215
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
function __rest(s, e) {
|
|
@@ -262,7 +262,7 @@ const deviceCredentialsSlice = createSlice({
|
|
|
262
262
|
});
|
|
263
263
|
},
|
|
264
264
|
});
|
|
265
|
-
const doGetDeviceCredentials = createAppAsyncThunk("deviceCredentials/doGetDeviceCredentials", (
|
|
265
|
+
const doGetDeviceCredentials = createAppAsyncThunk("deviceCredentials/doGetDeviceCredentials", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { extra }) {
|
|
266
266
|
try {
|
|
267
267
|
const deviceCredentials = yield extra.services.credentialsService.getCredentials();
|
|
268
268
|
return deviceCredentials;
|
|
@@ -543,7 +543,7 @@ function parseUnverifiedRoomKeyData(roomKey) {
|
|
|
543
543
|
const base64DecodedJwtData = atob(roomKeyData);
|
|
544
544
|
return JSON.parse(base64DecodedJwtData);
|
|
545
545
|
}
|
|
546
|
-
catch (
|
|
546
|
+
catch (_a) {
|
|
547
547
|
return {};
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -675,7 +675,7 @@ const localMediaSlice = createSlice({
|
|
|
675
675
|
},
|
|
676
676
|
});
|
|
677
677
|
const { deviceBusy, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, toggleCameraEnabled, toggleMicrophoneEnabled, toggleLowDataModeEnabled, setLocalMediaOptions, setLocalMediaStream, localMediaStopped, localStreamMetadataUpdated, } = localMediaSlice.actions;
|
|
678
|
-
const doToggleCamera = createAppAsyncThunk("localMedia/doToggleCamera", (
|
|
678
|
+
const doToggleCamera = createAppAsyncThunk("localMedia/doToggleCamera", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, rejectWithValue }) {
|
|
679
679
|
const state = getState();
|
|
680
680
|
const stream = selectLocalMediaStream(state);
|
|
681
681
|
if (!stream) {
|
|
@@ -733,7 +733,7 @@ const doToggleLowDataMode = createAppThunk(() => (dispatch, getState) => {
|
|
|
733
733
|
const audioId = selectCurrentMicrophoneDeviceId(state);
|
|
734
734
|
dispatch(doSwitchLocalStream({ audioId, videoId }));
|
|
735
735
|
});
|
|
736
|
-
const doSetDevice = createAppAsyncThunk("localMedia/reactSetDevice", (
|
|
736
|
+
const doSetDevice = createAppAsyncThunk("localMedia/reactSetDevice", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ audio, video }, { getState, rejectWithValue }) {
|
|
737
737
|
try {
|
|
738
738
|
const state = getState();
|
|
739
739
|
const stream = selectLocalMediaStream(state);
|
|
@@ -755,8 +755,8 @@ const doSetDevice = createAppAsyncThunk("localMedia/reactSetDevice", ({ audio, v
|
|
|
755
755
|
return rejectWithValue(error);
|
|
756
756
|
}
|
|
757
757
|
}));
|
|
758
|
-
const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList", (
|
|
759
|
-
var
|
|
758
|
+
const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, dispatch, rejectWithValue }) {
|
|
759
|
+
var _b, _c, _d, _e;
|
|
760
760
|
const state = getState();
|
|
761
761
|
let newDevices = [];
|
|
762
762
|
let oldDevices = [];
|
|
@@ -776,13 +776,13 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
776
776
|
oldDevices,
|
|
777
777
|
newDevices,
|
|
778
778
|
});
|
|
779
|
-
let autoSwitchAudioId = (
|
|
780
|
-
let autoSwitchVideoId = (
|
|
779
|
+
let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
|
|
780
|
+
let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
|
|
781
781
|
if (autoSwitchAudioId === undefined) {
|
|
782
|
-
autoSwitchAudioId = (
|
|
782
|
+
autoSwitchAudioId = (_d = addedDevices.audioinput) === null || _d === void 0 ? void 0 : _d.deviceId;
|
|
783
783
|
}
|
|
784
784
|
if (autoSwitchVideoId === undefined) {
|
|
785
|
-
autoSwitchVideoId = (
|
|
785
|
+
autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
|
|
786
786
|
}
|
|
787
787
|
if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
|
|
788
788
|
dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
|
|
@@ -793,7 +793,7 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
|
|
|
793
793
|
return rejectWithValue(error);
|
|
794
794
|
}
|
|
795
795
|
}));
|
|
796
|
-
const doSwitchLocalStream = createAppAsyncThunk("localMedia/doSwitchLocalStream", (
|
|
796
|
+
const doSwitchLocalStream = createAppAsyncThunk("localMedia/doSwitchLocalStream", (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ({ audioId, videoId }, { dispatch, getState, rejectWithValue }) {
|
|
797
797
|
const state = getState();
|
|
798
798
|
const replaceStream = selectLocalMediaStream(state);
|
|
799
799
|
const constraintsOptions = selectLocalMediaConstraintsOptions(state);
|
|
@@ -822,7 +822,7 @@ const doSwitchLocalStream = createAppAsyncThunk("localMedia/doSwitchLocalStream"
|
|
|
822
822
|
return rejectWithValue(error);
|
|
823
823
|
}
|
|
824
824
|
}));
|
|
825
|
-
const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (
|
|
825
|
+
const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { getState, dispatch, rejectWithValue }) {
|
|
826
826
|
const onDeviceChange = debounce(() => {
|
|
827
827
|
dispatch(doUpdateDeviceList());
|
|
828
828
|
}, { delay: 500 });
|
|
@@ -1479,8 +1479,8 @@ const localScreenshareSlice = createSlice({
|
|
|
1479
1479
|
},
|
|
1480
1480
|
});
|
|
1481
1481
|
const { stopScreenshare } = localScreenshareSlice.actions;
|
|
1482
|
-
const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doStartScreenshare", (
|
|
1483
|
-
var
|
|
1482
|
+
const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doStartScreenshare", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch, getState, rejectWithValue }) {
|
|
1483
|
+
var _b;
|
|
1484
1484
|
try {
|
|
1485
1485
|
const state = getState();
|
|
1486
1486
|
const screenshareStream = selectLocalScreenshareStream(state);
|
|
@@ -1495,7 +1495,7 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
|
|
|
1495
1495
|
stream.addEventListener("inactive", onEnded);
|
|
1496
1496
|
}
|
|
1497
1497
|
else {
|
|
1498
|
-
(
|
|
1498
|
+
(_b = stream.getVideoTracks()[0]) === null || _b === void 0 ? void 0 : _b.addEventListener("ended", onEnded);
|
|
1499
1499
|
}
|
|
1500
1500
|
return { stream };
|
|
1501
1501
|
}
|
|
@@ -2317,7 +2317,7 @@ const doSetDisplayName = createRoomConnectedThunk((payload) => (dispatch, getSta
|
|
|
2317
2317
|
});
|
|
2318
2318
|
dispatch(setDisplayName({ displayName: payload.displayName }));
|
|
2319
2319
|
});
|
|
2320
|
-
const doEnableAudio = createAsyncRoomConnectedThunk("localParticipant/doEnableAudio", (
|
|
2320
|
+
const doEnableAudio = createAsyncRoomConnectedThunk("localParticipant/doEnableAudio", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { dispatch, getState }) {
|
|
2321
2321
|
const state = getState();
|
|
2322
2322
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
2323
2323
|
socket === null || socket === void 0 ? void 0 : socket.emit("enable_audio", { enabled: payload.enabled });
|
|
@@ -2326,18 +2326,18 @@ const doEnableAudio = createAsyncRoomConnectedThunk("localParticipant/doEnableAu
|
|
|
2326
2326
|
}
|
|
2327
2327
|
return payload.enabled;
|
|
2328
2328
|
}));
|
|
2329
|
-
const doEnableVideo = createAsyncRoomConnectedThunk("localParticipant/doEnableVideo", (
|
|
2329
|
+
const doEnableVideo = createAsyncRoomConnectedThunk("localParticipant/doEnableVideo", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { getState }) {
|
|
2330
2330
|
const state = getState();
|
|
2331
2331
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
2332
2332
|
socket === null || socket === void 0 ? void 0 : socket.emit("enable_video", { enabled: payload.enabled });
|
|
2333
2333
|
return payload.enabled;
|
|
2334
2334
|
}));
|
|
2335
|
-
const doSetLocalStickyReaction = createAsyncRoomConnectedThunk("localParticipant/doSetLocalStickyReaction", (
|
|
2336
|
-
var
|
|
2335
|
+
const doSetLocalStickyReaction = createAsyncRoomConnectedThunk("localParticipant/doSetLocalStickyReaction", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { getState, rejectWithValue }) {
|
|
2336
|
+
var _b;
|
|
2337
2337
|
const state = getState();
|
|
2338
2338
|
const currentStickyReaction = selectLocalParticipantStickyReaction(state);
|
|
2339
2339
|
const stickyReactionCurrentlyEnabled = Boolean(currentStickyReaction);
|
|
2340
|
-
const enabled = (
|
|
2340
|
+
const enabled = (_b = payload.enabled) !== null && _b !== void 0 ? _b : !stickyReactionCurrentlyEnabled;
|
|
2341
2341
|
if (enabled === stickyReactionCurrentlyEnabled) {
|
|
2342
2342
|
return rejectWithValue(currentStickyReaction);
|
|
2343
2343
|
}
|
|
@@ -2585,7 +2585,7 @@ const organizationSlice = createSlice({
|
|
|
2585
2585
|
});
|
|
2586
2586
|
},
|
|
2587
2587
|
});
|
|
2588
|
-
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (
|
|
2588
|
+
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
2589
2589
|
try {
|
|
2590
2590
|
const roomUrl = selectAppRoomUrl(getState());
|
|
2591
2591
|
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
@@ -2600,6 +2600,7 @@ const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetc
|
|
|
2600
2600
|
}));
|
|
2601
2601
|
const selectOrganizationRaw = (state) => state.organization;
|
|
2602
2602
|
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
2603
|
+
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
2603
2604
|
const selectShouldFetchOrganization = createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
2604
2605
|
if (appIsActive &&
|
|
2605
2606
|
!organization.data &&
|
|
@@ -2825,7 +2826,11 @@ const rtcAnalyticsCustomEvents = {
|
|
|
2825
2826
|
displayName: {
|
|
2826
2827
|
actions: [setDisplayName],
|
|
2827
2828
|
rtcEventName: "displayName",
|
|
2828
|
-
getValue: (state) =>
|
|
2829
|
+
getValue: (state) => {
|
|
2830
|
+
const displayName = selectLocalParticipantDisplayName(state);
|
|
2831
|
+
const prefs = selectOrganizationPreferences(state);
|
|
2832
|
+
return (prefs === null || prefs === void 0 ? void 0 : prefs.hideInsightsDisplayNames) ? "[[redacted]]" : displayName;
|
|
2833
|
+
},
|
|
2829
2834
|
getOutput: (value) => ({ displayName: value }),
|
|
2830
2835
|
},
|
|
2831
2836
|
clientId: {
|
|
@@ -3028,8 +3033,7 @@ const doRejectWaitingParticipant = createRoomConnectedThunk((payload) => (dispat
|
|
|
3028
3033
|
const selectWaitingParticipantsRaw = (state) => state.waitingParticipants;
|
|
3029
3034
|
const selectWaitingParticipants = (state) => state.waitingParticipants.waitingParticipants;
|
|
3030
3035
|
|
|
3031
|
-
|
|
3032
|
-
const IS_DEV = (_a = undefined === "true") !== null && _a !== void 0 ? _a : false;
|
|
3036
|
+
const IS_DEV = undefined === "true";
|
|
3033
3037
|
const appReducer = combineReducers({
|
|
3034
3038
|
app: appSlice.reducer,
|
|
3035
3039
|
authorization: authorizationSlice.reducer,
|
|
@@ -3394,7 +3398,7 @@ class LocalStorageStore {
|
|
|
3394
3398
|
try {
|
|
3395
3399
|
return Promise.resolve(JSON.parse(value));
|
|
3396
3400
|
}
|
|
3397
|
-
catch (
|
|
3401
|
+
catch (_a) {
|
|
3398
3402
|
}
|
|
3399
3403
|
}
|
|
3400
3404
|
return Promise.resolve(defaultValue);
|
|
@@ -3420,7 +3424,7 @@ let localStorage;
|
|
|
3420
3424
|
try {
|
|
3421
3425
|
localStorage = self.localStorage;
|
|
3422
3426
|
}
|
|
3423
|
-
catch (
|
|
3427
|
+
catch (_a) {
|
|
3424
3428
|
localStorage = {
|
|
3425
3429
|
getItem: () => undefined,
|
|
3426
3430
|
key: () => undefined,
|
|
@@ -4078,7 +4082,9 @@ class LocalParticipant extends RoomParticipant {
|
|
|
4078
4082
|
|
|
4079
4083
|
const API_BASE_URL = "https://api.whereby.dev";
|
|
4080
4084
|
function createServices() {
|
|
4081
|
-
const credentialsService = CredentialsService.create({
|
|
4085
|
+
const credentialsService = CredentialsService.create({
|
|
4086
|
+
baseUrl: API_BASE_URL,
|
|
4087
|
+
});
|
|
4082
4088
|
const apiClient = new ApiClient({
|
|
4083
4089
|
fetchDeviceCredentials: credentialsService.getCredentials.bind(credentialsService),
|
|
4084
4090
|
baseUrl: API_BASE_URL,
|
|
@@ -4101,4 +4107,4 @@ function createServices() {
|
|
|
4101
4107
|
};
|
|
4102
4108
|
}
|
|
4103
4109
|
|
|
4104
|
-
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
4110
|
+
export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
package/package.json
CHANGED
|
@@ -1,57 +1,68 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"dist
|
|
25
|
-
"dist
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
".": {
|
|
32
|
-
"import": {
|
|
33
|
-
"types": "./dist/index.d.mts",
|
|
34
|
-
"default": "./dist/index.mjs"
|
|
35
|
-
},
|
|
36
|
-
"require": {
|
|
37
|
-
"types": "./dist/index.d.cts",
|
|
38
|
-
"default": "./dist/index.cjs"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"deep-object-diff": "^1.1.9",
|
|
44
|
-
"dotenv": "^16.4.5",
|
|
45
|
-
"dotenv-run-script": "^0.4.1",
|
|
46
|
-
"tslib": "^2.4.1",
|
|
47
|
-
"uuid": "^9.0.1",
|
|
48
|
-
"yalc": "^1.0.0-pre.53"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@reduxjs/toolkit": "^2.2.3",
|
|
52
|
-
"@whereby.com/media": "1.29.0",
|
|
53
|
-
"axios": "^1.2.3",
|
|
54
|
-
"btoa": "^1.2.1",
|
|
55
|
-
"events": "^3.3.0"
|
|
2
|
+
"name": "@whereby.com/core",
|
|
3
|
+
"description": "Core library for whereby.com sdk",
|
|
4
|
+
"author": "Whereby AS",
|
|
5
|
+
"version": "0.34.1",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/*.js",
|
|
12
|
+
"dist/*.cjs",
|
|
13
|
+
"dist/*.mjs",
|
|
14
|
+
"dist/*.d.ts",
|
|
15
|
+
"dist/*.d.cts",
|
|
16
|
+
"dist/*.d.mts"
|
|
17
|
+
],
|
|
18
|
+
"main": "dist/index.cjs",
|
|
19
|
+
"module": "dist/legacy-esm.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
25
|
+
"default": "./dist/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
30
|
+
}
|
|
56
31
|
}
|
|
57
|
-
}
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/btoa": "^1.2.3",
|
|
35
|
+
"@types/chrome": "^0.0.210",
|
|
36
|
+
"deep-object-diff": "^1.1.9",
|
|
37
|
+
"dotenv": "^16.4.5",
|
|
38
|
+
"dotenv-run-script": "^0.4.1",
|
|
39
|
+
"tslib": "^2.4.1",
|
|
40
|
+
"uuid": "^9.0.1",
|
|
41
|
+
"yalc": "^1.0.0-pre.53",
|
|
42
|
+
"eslint": "^9.29.0",
|
|
43
|
+
"prettier": "^3.5.3",
|
|
44
|
+
"typescript": "^5.8.3",
|
|
45
|
+
"@whereby.com/eslint-config": "0.1.0",
|
|
46
|
+
"@whereby.com/jest-config": "0.1.0",
|
|
47
|
+
"@whereby.com/prettier-config": "0.1.0",
|
|
48
|
+
"@whereby.com/rollup-config": "0.1.0",
|
|
49
|
+
"@whereby.com/tsconfig": "0.1.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@reduxjs/toolkit": "^2.2.3",
|
|
53
|
+
"@whereby.com/media": "1.31.0",
|
|
54
|
+
"axios": "^1.2.3",
|
|
55
|
+
"btoa": "^1.2.1",
|
|
56
|
+
"events": "^3.3.0"
|
|
57
|
+
},
|
|
58
|
+
"prettier": "@whereby.com/prettier-config",
|
|
59
|
+
"scripts": {
|
|
60
|
+
"clean": "rimraf dist node_modules .turbo",
|
|
61
|
+
"build": "rimraf dist && rollup -c rollup.config.js",
|
|
62
|
+
"test": "pnpm test:lint && pnpm test:unit",
|
|
63
|
+
"test:lint": "eslint src/",
|
|
64
|
+
"test:unit": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js",
|
|
65
|
+
"test:unit:watch": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js --watch",
|
|
66
|
+
"test:attw": "attw --pack . -f table"
|
|
67
|
+
}
|
|
68
|
+
}
|