@naviedu/room-platform-react 0.0.46 → 0.0.48
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/index.d.ts +8 -3
- package/index.esm.js +2944 -2889
- package/package.json +1 -1
- package/styles.css +1 -1
package/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
5
5
|
import { LocalVideoTrack } from 'livekit-client';
|
|
6
6
|
import { PropsWithChildren } from 'react';
|
|
7
7
|
import * as React_2 from 'react';
|
|
8
|
+
import type { ReactEventHandler } from 'react';
|
|
8
9
|
import { ReactNode } from 'react';
|
|
9
10
|
import { Room } from 'livekit-client';
|
|
10
11
|
import { TrackReference } from '@livekit/components-react';
|
|
@@ -232,7 +233,7 @@ declare type RoomPlatformChatIntegration = {
|
|
|
232
233
|
|
|
233
234
|
declare interface RoomPlatformChatRoom {
|
|
234
235
|
roomId: string;
|
|
235
|
-
roomType: 'group';
|
|
236
|
+
roomType: 'group' | 'direct';
|
|
236
237
|
label?: string;
|
|
237
238
|
permissions: string[];
|
|
238
239
|
}
|
|
@@ -539,12 +540,13 @@ export declare type RoomPlatformPrivateRoomRuntimeState = {
|
|
|
539
540
|
setIsAcceptingPrivateRoom: (value: boolean) => void;
|
|
540
541
|
};
|
|
541
542
|
|
|
542
|
-
export declare function RoomPlatformPrivateRoomStage({ callerExternalActorId, studentExternalActorId, activeScreenShareExternalActorId, controlBar, whiteboard, }: RoomPlatformPrivateRoomStageProps): JSX.Element;
|
|
543
|
+
export declare function RoomPlatformPrivateRoomStage({ callerExternalActorId, studentExternalActorId, activeScreenShareExternalActorId, chat, controlBar, whiteboard, }: RoomPlatformPrivateRoomStageProps): JSX.Element;
|
|
543
544
|
|
|
544
545
|
export declare type RoomPlatformPrivateRoomStageProps = {
|
|
545
546
|
callerExternalActorId: string;
|
|
546
547
|
studentExternalActorId: string;
|
|
547
548
|
activeScreenShareExternalActorId?: string;
|
|
549
|
+
chat?: ReactNode;
|
|
548
550
|
controlBar?: ReactNode;
|
|
549
551
|
whiteboard?: ReactNode;
|
|
550
552
|
};
|
|
@@ -641,7 +643,7 @@ export declare type RoomPlatformTopBarProps = {
|
|
|
641
643
|
topBarTrailing?: ReactNode;
|
|
642
644
|
};
|
|
643
645
|
|
|
644
|
-
export declare function RoomPlatformVideoTile({ kind, label, trackRef, className, media, mediaClassName, labelPosition, }: RoomPlatformVideoTileProps): JSX.Element;
|
|
646
|
+
export declare function RoomPlatformVideoTile({ kind, label, trackRef, className, media, mediaClassName, labelPosition, onLoadedMetadata, onResize, }: RoomPlatformVideoTileProps): JSX.Element;
|
|
645
647
|
|
|
646
648
|
export declare type RoomPlatformVideoTileKind = 'active-speaker' | 'overlay' | 'preview' | 'stage';
|
|
647
649
|
|
|
@@ -653,6 +655,8 @@ export declare type RoomPlatformVideoTileProps = {
|
|
|
653
655
|
media?: ReactNode;
|
|
654
656
|
mediaClassName?: string;
|
|
655
657
|
labelPosition?: 'bottom-left' | 'top-left';
|
|
658
|
+
onLoadedMetadata?: ReactEventHandler<HTMLVideoElement>;
|
|
659
|
+
onResize?: ReactEventHandler<HTMLVideoElement>;
|
|
656
660
|
};
|
|
657
661
|
|
|
658
662
|
export declare function RoomPlatformVideoTracks({ status }: RoomPlatformVideoTracksProps): JSX.Element;
|
|
@@ -678,6 +682,7 @@ declare interface RoomPrivateRoomConnection {
|
|
|
678
682
|
tokenExpiresAt: string;
|
|
679
683
|
publishEnabled: boolean;
|
|
680
684
|
permissions: RoomPrivateRoomPermission[];
|
|
685
|
+
chat?: RoomPlatformChatIntegration;
|
|
681
686
|
}
|
|
682
687
|
|
|
683
688
|
declare type RoomPrivateRoomPermission = 'media:publish' | 'media:subscribe' | 'media:share_screen';
|