@whereby.com/browser-sdk 2.1.0-beta1 → 2.1.0-beta3

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.
@@ -20,7 +20,7 @@ function parseRoomUrlAndSubdomain(roomAttribute, subdomainAttribute) {
20
20
  };
21
21
  }
22
22
 
23
- const sdkVersion = "2.1.0-beta1";
23
+ const sdkVersion = "2.1.0-beta3";
24
24
 
25
25
  const boolAttrs = [
26
26
  "audio",
@@ -555,6 +555,7 @@ interface AppState {
555
555
  displayName: string | null;
556
556
  sdkVersion: string | null;
557
557
  externalId: string | null;
558
+ isNodeSdk: boolean;
558
559
  }
559
560
 
560
561
  /**
@@ -704,6 +705,7 @@ interface WaitingParticipantsState {
704
705
  }
705
706
 
706
707
  type LocalMediaOptions = {
708
+ disabled?: boolean;
707
709
  audio: boolean;
708
710
  video: boolean;
709
711
  };
@@ -830,6 +832,29 @@ declare function useRoomConnection(roomUrl: string, roomConnectionOptions?: UseR
830
832
 
831
833
  declare function useLocalMedia(optionsOrStream?: UseLocalMediaOptions | MediaStream): UseLocalMediaResult;
832
834
 
835
+ type Origin = {
836
+ top: number;
837
+ left: number;
838
+ };
839
+ type Bounds = {
840
+ width: number;
841
+ height: number;
842
+ };
843
+
844
+ interface GridProps {
845
+ roomConnection: RoomConnectionRef;
846
+ renderParticipant?: ({ cell, participant, }: {
847
+ cell: {
848
+ clientId: string;
849
+ bounds: Bounds;
850
+ origin: Origin;
851
+ };
852
+ participant: RemoteParticipantState | LocalParticipantState;
853
+ }) => React$1.ReactNode;
854
+ videoGridGap?: number;
855
+ }
856
+ declare function Grid({ roomConnection, renderParticipant, videoGridGap }: GridProps): React$1.JSX.Element;
857
+
833
858
  declare const sdkVersion = "__SDK_VERSION__";
834
859
 
835
- export { type ChatMessageState as ChatMessage, type LocalParticipantState as LocalParticipant, type RemoteParticipantState as RemoteParticipant, type RoomConnectionState as RoomConnection, type ScreenshareState as Screenshare, type UseLocalMediaResult, _default as VideoView, type WaitingParticipantState as WaitingParticipant, sdkVersion, useLocalMedia, useRoomConnection };
860
+ export { type ChatMessageState as ChatMessage, type LocalParticipantState as LocalParticipant, type RemoteParticipantState as RemoteParticipant, type RoomConnectionState as RoomConnection, type ScreenshareState as Screenshare, type UseLocalMediaResult, Grid as VideoGrid, _default as VideoView, type WaitingParticipantState as WaitingParticipant, sdkVersion, useLocalMedia, useRoomConnection };