@naviedu/room-platform-react 0.0.42 → 0.0.44
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 +4 -12
- package/index.esm.js +801 -84
- package/package.json +1 -1
- package/styles.css +1 -1
package/index.d.ts
CHANGED
|
@@ -262,6 +262,7 @@ declare type RoomPlatformContextValue = {
|
|
|
262
262
|
localCameraTrack: LocalVideoTrack | null;
|
|
263
263
|
localMedia: RoomPlatformLocalMediaState;
|
|
264
264
|
performAction: (name: RoomPlatformActionName, payload?: Record<string, string>) => Promise<void>;
|
|
265
|
+
reconcileLocalCameraAfterProcessor: (track: LocalVideoTrack) => Promise<void>;
|
|
265
266
|
room: Room | null;
|
|
266
267
|
setLocalMediaEnabled: (kind: RoomPlatformLocalMediaKind, enabled: boolean) => Promise<void>;
|
|
267
268
|
status: RoomPlatformConnectionStatus;
|
|
@@ -292,7 +293,7 @@ declare type RoomPlatformControlBarProps = {
|
|
|
292
293
|
onToggleTheaterMode?: () => void;
|
|
293
294
|
};
|
|
294
295
|
|
|
295
|
-
export declare function RoomPlatformCurrentOperationStrip({ activeSpeakerParticipantIdentity, canClearActiveSpeaker, isClearingActiveSpeaker, onClearActiveSpeaker, currentPrivateRoomOperation, onCancelPrivateRoom, participants,
|
|
296
|
+
export declare function RoomPlatformCurrentOperationStrip({ activeSpeakerParticipantIdentity, canClearActiveSpeaker, isClearingActiveSpeaker, onClearActiveSpeaker, currentPrivateRoomOperation, onCancelPrivateRoom, participants, }: {
|
|
296
297
|
activeSpeakerParticipantIdentity?: string;
|
|
297
298
|
canClearActiveSpeaker?: boolean;
|
|
298
299
|
isClearingActiveSpeaker?: boolean;
|
|
@@ -303,11 +304,6 @@ export declare function RoomPlatformCurrentOperationStrip({ activeSpeakerPartici
|
|
|
303
304
|
};
|
|
304
305
|
onCancelPrivateRoom?: () => Promise<void> | void;
|
|
305
306
|
participants: readonly Pick<RoomParticipantPresence, 'name' | 'participantIdentity' | 'externalActorId' | 'isLocal'>[];
|
|
306
|
-
currentOperation?: {
|
|
307
|
-
label: string;
|
|
308
|
-
name: string;
|
|
309
|
-
leading?: ReactNode;
|
|
310
|
-
};
|
|
311
307
|
}): JSX.Element;
|
|
312
308
|
|
|
313
309
|
export declare type RoomPlatformDeviceKind = 'audioinput' | 'audiooutput' | 'videoinput';
|
|
@@ -342,11 +338,6 @@ export declare type RoomPlatformExtensionProps = {
|
|
|
342
338
|
};
|
|
343
339
|
|
|
344
340
|
export declare type RoomPlatformExtensions = {
|
|
345
|
-
currentOperation?: {
|
|
346
|
-
label: string;
|
|
347
|
-
name: string;
|
|
348
|
-
leading?: ReactNode;
|
|
349
|
-
};
|
|
350
341
|
topBarLeading?: ComponentType<RoomPlatformExtensionProps>;
|
|
351
342
|
topBarTrailing?: ComponentType<RoomPlatformExtensionProps>;
|
|
352
343
|
monitor?: {
|
|
@@ -706,7 +697,7 @@ declare type RoomPrivateRoomStatus = 'ringing' | 'active';
|
|
|
706
697
|
|
|
707
698
|
export declare function useRoomPlatform(): RoomPlatformContextValue;
|
|
708
699
|
|
|
709
|
-
declare function useRoomPlatformCameraBackground({ localVideoTrack }: UseRoomPlatformCameraBackgroundInput): {
|
|
700
|
+
declare function useRoomPlatformCameraBackground({ localVideoTrack, onProcessorSettled, }: UseRoomPlatformCameraBackgroundInput): {
|
|
710
701
|
state: RoomPlatformCameraBackgroundState;
|
|
711
702
|
uploadItems: RoomPlatformCameraBackgroundUploadPreview[];
|
|
712
703
|
uploadPreviewUrl: string;
|
|
@@ -723,6 +714,7 @@ declare function useRoomPlatformCameraBackground({ localVideoTrack }: UseRoomPla
|
|
|
723
714
|
|
|
724
715
|
declare type UseRoomPlatformCameraBackgroundInput = {
|
|
725
716
|
localVideoTrack: LocalVideoTrack | null;
|
|
717
|
+
onProcessorSettled?: (track: LocalVideoTrack) => void | Promise<void>;
|
|
726
718
|
};
|
|
727
719
|
|
|
728
720
|
export declare function useRoomPlatformMonitorViewer({ enabled, onStartError, performAction, }: RoomPlatformMonitorViewerProps): void;
|