Skip to content

Commit

Permalink
Merge pull request #202 from whereby/kevinhanna/export-types-and-test…
Browse files Browse the repository at this point in the history
…-helpers

export more core types and test helper utils
  • Loading branch information
kevinwhereby authored Feb 1, 2024
2 parents 66361b7 + 6ac1fce commit abb8f1d
Showing 10 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@whereby.com/browser-sdk",
"version": "2.1.0-beta3",
"version": "2.1.0-beta4",
"description": "Modules for integration Whereby video in web apps",
"author": "Whereby AS",
"license": "MIT",
2 changes: 1 addition & 1 deletion src/lib/__mocks__/appMocks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Credentials } from "../api";
import Organization from "../api/models/Organization";
import { SignalClient } from "@whereby/jslib-media/src/utils/ServerSocket";
import { RemoteParticipant } from "../RoomParticipant";
import { RemoteParticipant } from "../core";
import { v4 as uuid } from "uuid";
import MockMediaStream from "./MediaStream";

File renamed without changes.
1 change: 1 addition & 0 deletions src/lib/core/index.ts
Original file line number Diff line number Diff line change
@@ -8,3 +8,4 @@ export * from "./redux/slices/remoteParticipants";
export * from "./redux/slices/rtcConnection";
export * from "./redux/slices/signalConnection";
export * from "../version";
export * from "./RoomParticipant";
2 changes: 1 addition & 1 deletion src/lib/core/redux/slices/__tests__/rtcConnection.unit.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import {
selectStreamsToAccept,
} from "../rtcConnection";
import { oneOf, randomRemoteParticipant } from "../../../../../lib/__mocks__/appMocks";
import { StreamState } from "../../../../../lib/RoomParticipant";
import { StreamState } from "../../../../../lib/core/RoomParticipant";

describe("rtcConnectionSlice", () => {
describe("reactors", () => {
2 changes: 1 addition & 1 deletion src/lib/core/redux/slices/remoteParticipants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PayloadAction, createSelector, createSlice } from "@reduxjs/toolkit";
import { RootState } from "../store";
import { SignalClient } from "@whereby/jslib-media/src/utils/ServerSocket";
import { RemoteParticipant, Screenshare, StreamState } from "../../../../lib/RoomParticipant";
import { RemoteParticipant, Screenshare, StreamState } from "../../../../lib/core/RoomParticipant";
import { rtcEvents } from "./rtcConnection/actions";
import { StreamStatusUpdate } from "./rtcConnection/types";
import { signalEvents } from "./signalConnection/actions";
2 changes: 1 addition & 1 deletion src/lib/core/redux/slices/rtcConnection/index.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ import RtcManagerDispatcher, {
} from "@whereby/jslib-media/src/webrtc/RtcManagerDispatcher";
import { createReactor, startAppListening } from "../../listenerMiddleware";
import { selectRemoteParticipants, streamStatusUpdated } from "../remoteParticipants";
import { StreamState } from "../../../../../lib/RoomParticipant";
import { StreamState } from "../../../../../lib/core/RoomParticipant";
import { selectAppIsNodeSdk, selectAppWantsToJoin } from "../app";
import {
selectIsCameraEnabled,
2 changes: 1 addition & 1 deletion src/lib/core/redux/slices/rtcConnection/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StreamState } from "../../../../../lib/RoomParticipant";
import { StreamState } from "../../../../../lib/core/RoomParticipant";

export interface StreamStatusUpdate {
clientId: string;
2 changes: 1 addition & 1 deletion src/lib/core/redux/slices/waitingParticipants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSlice } from "@reduxjs/toolkit";
import { RootState } from "../store";
import { WaitingParticipant } from "../../../../lib/RoomParticipant";
import { WaitingParticipant } from "../../../../lib/core/RoomParticipant";
import { createAppThunk } from "../thunk";
import { signalEvents } from "./signalConnection/actions";
import { selectSignalConnectionSocket } from "./signalConnection";
2 changes: 1 addition & 1 deletion src/lib/react/useRoomConnection/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LocalParticipant, RemoteParticipant, Screenshare } from "../../RoomParticipant";
import { LocalParticipant, RemoteParticipant, Screenshare } from "../../core";

import { ChatMessage as SignalChatMessage } from "@whereby/jslib-media/src/utils/ServerSocket";
import { LocalMediaOptions } from "../../core/redux/slices/localMedia";

0 comments on commit abb8f1d

Please sign in to comment.