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

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-beta2";
24
24
 
25
25
  const boolAttrs = [
26
26
  "audio",
@@ -830,6 +830,29 @@ declare function useRoomConnection(roomUrl: string, roomConnectionOptions?: UseR
830
830
 
831
831
  declare function useLocalMedia(optionsOrStream?: UseLocalMediaOptions | MediaStream): UseLocalMediaResult;
832
832
 
833
+ type Origin = {
834
+ top: number;
835
+ left: number;
836
+ };
837
+ type Bounds = {
838
+ width: number;
839
+ height: number;
840
+ };
841
+
842
+ interface GridProps {
843
+ roomConnection: RoomConnectionRef;
844
+ renderParticipant?: ({ cell, participant, }: {
845
+ cell: {
846
+ clientId: string;
847
+ bounds: Bounds;
848
+ origin: Origin;
849
+ };
850
+ participant: RemoteParticipantState | LocalParticipantState;
851
+ }) => React$1.ReactNode;
852
+ videoGridGap?: number;
853
+ }
854
+ declare function Grid({ roomConnection, renderParticipant, videoGridGap }: GridProps): React$1.JSX.Element;
855
+
833
856
  declare const sdkVersion = "__SDK_VERSION__";
834
857
 
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 };
858
+ 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 };