@naviedu/room-platform-react 0.0.47 → 0.0.49

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 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';
@@ -617,6 +618,14 @@ export declare type RoomPlatformShellProps = {
617
618
  sidebar: ReactNode;
618
619
  };
619
620
 
621
+ export declare function RoomPlatformSidebarLayout({ header, children, className }: RoomPlatformSidebarLayoutProps): JSX.Element;
622
+
623
+ export declare type RoomPlatformSidebarLayoutProps = {
624
+ header?: ReactNode;
625
+ children: ReactNode;
626
+ className?: string;
627
+ };
628
+
620
629
  export declare type RoomPlatformSizing = 'viewport' | 'container';
621
630
 
622
631
  export declare function RoomPlatformSpeakQueue({ activeSpeakerParticipantIdentity, activeSpeakerSlot, canApproveSpeak, canClearActiveSpeaker, canRejectSpeak, isClearingActiveSpeaker, onApproveSpeakRequest, onClearActiveSpeaker, onRejectSpeakRequest, participants, raisedHandParticipantIdentities, }: {
@@ -642,7 +651,7 @@ export declare type RoomPlatformTopBarProps = {
642
651
  topBarTrailing?: ReactNode;
643
652
  };
644
653
 
645
- export declare function RoomPlatformVideoTile({ kind, label, trackRef, className, media, mediaClassName, labelPosition, }: RoomPlatformVideoTileProps): JSX.Element;
654
+ export declare function RoomPlatformVideoTile({ kind, label, trackRef, className, media, mediaClassName, labelPosition, onLoadedMetadata, onResize, }: RoomPlatformVideoTileProps): JSX.Element;
646
655
 
647
656
  export declare type RoomPlatformVideoTileKind = 'active-speaker' | 'overlay' | 'preview' | 'stage';
648
657
 
@@ -654,6 +663,8 @@ export declare type RoomPlatformVideoTileProps = {
654
663
  media?: ReactNode;
655
664
  mediaClassName?: string;
656
665
  labelPosition?: 'bottom-left' | 'top-left';
666
+ onLoadedMetadata?: ReactEventHandler<HTMLVideoElement>;
667
+ onResize?: ReactEventHandler<HTMLVideoElement>;
657
668
  };
658
669
 
659
670
  export declare function RoomPlatformVideoTracks({ status }: RoomPlatformVideoTracksProps): JSX.Element;