@whereby.com/browser-sdk 2.5.0 → 2.7.0-beta.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.
@@ -1,7 +1,11 @@
1
1
  import { ReactHTMLElement } from 'react';
2
2
 
3
3
  interface WherebyEmbedElementAttributes extends ReactHTMLElement<HTMLElement> {
4
+ aec: string;
5
+ agc: string;
4
6
  audio: string;
7
+ audioDenoiser: string;
8
+ autoHideSelfView: string;
5
9
  autoSpotlight: string;
6
10
  avatarUrl: string;
7
11
  background: string;
@@ -2,7 +2,11 @@ import { define, ref } from 'heresy';
2
2
  import { parseRoomUrlAndSubdomain } from '@whereby.com/core/utils';
3
3
 
4
4
  const boolAttrs = [
5
+ "aec",
6
+ "agc",
5
7
  "audio",
8
+ "audioDenoiser",
9
+ "autoHideSelfView",
6
10
  "autoSpotlight",
7
11
  "background",
8
12
  "bottomToolbar",
@@ -117,4 +117,27 @@ declare function useRoomConnection(roomUrl: string, roomConnectionOptions?: UseR
117
117
 
118
118
  declare function useLocalMedia(optionsOrStream?: UseLocalMediaOptions | MediaStream): UseLocalMediaResult;
119
119
 
120
- 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, useLocalMedia, useRoomConnection };
120
+ type Origin = {
121
+ top: number;
122
+ left: number;
123
+ };
124
+ type Bounds = {
125
+ width: number;
126
+ height: number;
127
+ };
128
+
129
+ interface GridProps {
130
+ roomConnection: RoomConnectionRef;
131
+ renderParticipant?: ({ cell, participant, }: {
132
+ cell: {
133
+ clientId: string;
134
+ bounds: Bounds;
135
+ origin: Origin;
136
+ };
137
+ participant: RemoteParticipantState | LocalParticipantState;
138
+ }) => React.ReactNode;
139
+ videoGridGap?: number;
140
+ }
141
+ declare function Grid({ roomConnection, renderParticipant, videoGridGap }: GridProps): React.JSX.Element;
142
+
143
+ 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, useLocalMedia, useRoomConnection };