@whereby.com/browser-sdk 2.7.0-beta.0 → 2.7.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,5 +1,5 @@
1
1
  import { define, ref } from 'heresy';
2
- import { parseRoomUrlAndSubdomain } from '@whereby.com/core/utils';
2
+ import { parseRoomUrlAndSubdomain } from '@whereby.com/core';
3
3
 
4
4
  const boolAttrs = [
5
5
  "aec",
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Store, LocalMediaOptions, RemoteParticipant, LocalParticipant, Screenshare, ConnectionStatus, ChatMessage as ChatMessage$1 } from '@whereby.com/core';
3
+ import { RoleName } from '@whereby.com/media';
3
4
 
4
5
  interface VideoViewSelfProps {
5
6
  stream: MediaStream;
@@ -46,7 +47,11 @@ type UseLocalMediaResult = {
46
47
  type UseLocalMediaOptions = LocalMediaOptions;
47
48
 
48
49
  type RemoteParticipantState = Omit<RemoteParticipant, "newJoiner" | "streams">;
49
- type LocalParticipantState = LocalParticipant;
50
+ interface LocalParticipantState extends LocalParticipant {
51
+ isScreenSharing: boolean;
52
+ roleName: RoleName;
53
+ clientClaim?: string;
54
+ }
50
55
  interface WaitingParticipantState {
51
56
  id: string;
52
57
  displayName: string | null;
@@ -92,6 +97,7 @@ interface UseRoomConnectionOptions extends Omit<RoomConnectionOptions, "localMed
92
97
  interface RoomConnectionActions {
93
98
  sendChatMessage(text: string): void;
94
99
  knock(): void;
100
+ lockRoom(locked: boolean): void;
95
101
  setDisplayName(displayName: string): void;
96
102
  toggleCamera(enabled?: boolean): void;
97
103
  toggleMicrophone(enabled?: boolean): void;
@@ -117,27 +123,4 @@ declare function useRoomConnection(roomUrl: string, roomConnectionOptions?: UseR
117
123
 
118
124
  declare function useLocalMedia(optionsOrStream?: UseLocalMediaOptions | MediaStream): UseLocalMediaResult;
119
125
 
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 };
126
+ 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 };