@naviedu/room-platform-react 0.0.47 → 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.
Files changed (3) hide show
  1. package/index.d.ts +4 -1
  2. package/index.esm.js +510 -496
  3. package/package.json +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';
@@ -642,7 +643,7 @@ export declare type RoomPlatformTopBarProps = {
642
643
  topBarTrailing?: ReactNode;
643
644
  };
644
645
 
645
- 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;
646
647
 
647
648
  export declare type RoomPlatformVideoTileKind = 'active-speaker' | 'overlay' | 'preview' | 'stage';
648
649
 
@@ -654,6 +655,8 @@ export declare type RoomPlatformVideoTileProps = {
654
655
  media?: ReactNode;
655
656
  mediaClassName?: string;
656
657
  labelPosition?: 'bottom-left' | 'top-left';
658
+ onLoadedMetadata?: ReactEventHandler<HTMLVideoElement>;
659
+ onResize?: ReactEventHandler<HTMLVideoElement>;
657
660
  };
658
661
 
659
662
  export declare function RoomPlatformVideoTracks({ status }: RoomPlatformVideoTracksProps): JSX.Element;