@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.
- package/dist/cdn/{v2-embed-beta1.js → v2-embed-beta3.js} +1 -1
- package/dist/cdn/v2-react-beta3.js +3 -0
- package/dist/core/index.d.ts +2356 -0
- package/dist/core/index.js +62945 -0
- package/dist/embed/index.esm.js +1 -1
- package/dist/react/index.d.ts +26 -1
- package/dist/react/index.esm.js +1888 -167
- package/package.json +9 -2
- package/dist/cdn/v2-react-beta1.js +0 -3
package/dist/embed/index.esm.js
CHANGED
package/dist/react/index.d.ts
CHANGED
|
@@ -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 };
|