From 6aaf2db6265431627e2642b03983fa29343e554b Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 5 Jan 2026 19:35:09 +0100 Subject: [PATCH] Fix formatting --- sdk/index.html | 4 ++-- src/UrlParams.ts | 3 ++- src/grid/Grid.tsx | 7 +++++-- src/room/InCallView.tsx | 6 ++++-- src/state/MediaDevices.ts | 14 ++++++++------ src/tile/SpotlightTile.tsx | 6 ++---- 6 files changed, 23 insertions(+), 17 deletions(-) diff --git a/sdk/index.html b/sdk/index.html index 51110ebd..1420c3ea 100644 --- a/sdk/index.html +++ b/sdk/index.html @@ -76,8 +76,8 @@ style="position: absolute; top: 0; right: 0; background-color: #ffffff10" >
- - +
diff --git a/src/UrlParams.ts b/src/UrlParams.ts index f78841fb..048e802b 100644 --- a/src/UrlParams.ts +++ b/src/UrlParams.ts @@ -261,7 +261,8 @@ interface IntentAndPlatformDerivedConfiguration { // clearer what each flag means, and helps us avoid coupling Element Call's // behavior to the needs of specific consumers. export interface UrlParams - extends UrlProperties, + extends + UrlProperties, UrlConfiguration, IntentAndPlatformDerivedConfiguration {} diff --git a/src/grid/Grid.tsx b/src/grid/Grid.tsx index 6c85b8af..91fd55ca 100644 --- a/src/grid/Grid.tsx +++ b/src/grid/Grid.tsx @@ -200,8 +200,11 @@ interface Drag { export type DragCallback = (drag: Drag) => void; -interface LayoutMemoProps - extends LayoutProps { +interface LayoutMemoProps< + LayoutModel, + TileModel, + R extends HTMLElement, +> extends LayoutProps { Layout: ComponentType>; } diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index c6f22b43..fdbd4461 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -113,8 +113,10 @@ const logger = rootLogger.getChild("[InCallView]"); const maxTapDurationMs = 400; -export interface ActiveCallProps - extends Omit { +export interface ActiveCallProps extends Omit< + InCallViewProps, + "vm" | "livekitRoom" | "connState" +> { e2eeSystem: EncryptionSystem; // TODO refactor those reasons into an enum onLeft: ( diff --git a/src/state/MediaDevices.ts b/src/state/MediaDevices.ts index 2349e361..cea97519 100644 --- a/src/state/MediaDevices.ts +++ b/src/state/MediaDevices.ts @@ -212,9 +212,10 @@ class AudioInput implements MediaDevice { } } -class AudioOutput - implements MediaDevice -{ +class AudioOutput implements MediaDevice< + AudioOutputDeviceLabel, + SelectedAudioOutputDevice +> { private logger = rootLogger.getChild("[MediaDevices AudioOutput]"); public readonly available$ = this.scope.behavior( availableRawDevices$( @@ -274,9 +275,10 @@ class AudioOutput } } -class ControlledAudioOutput - implements MediaDevice -{ +class ControlledAudioOutput implements MediaDevice< + AudioOutputDeviceLabel, + SelectedAudioOutputDevice +> { private logger = rootLogger.getChild("[MediaDevices ControlledAudioOutput]"); // We need to subscribe to the raw devices so that the OS does update the input // back to what it was before. otherwise we will switch back to the default diff --git a/src/tile/SpotlightTile.tsx b/src/tile/SpotlightTile.tsx index 8109784f..2042e819 100644 --- a/src/tile/SpotlightTile.tsx +++ b/src/tile/SpotlightTile.tsx @@ -70,8 +70,7 @@ interface SpotlightUserMediaItemBaseProps extends SpotlightItemBaseProps { videoFit: "contain" | "cover"; } -interface SpotlightLocalUserMediaItemProps - extends SpotlightUserMediaItemBaseProps { +interface SpotlightLocalUserMediaItemProps extends SpotlightUserMediaItemBaseProps { vm: LocalUserMediaViewModel; } @@ -85,8 +84,7 @@ const SpotlightLocalUserMediaItem: FC = ({ SpotlightLocalUserMediaItem.displayName = "SpotlightLocalUserMediaItem"; -interface SpotlightRemoteUserMediaItemProps - extends SpotlightUserMediaItemBaseProps { +interface SpotlightRemoteUserMediaItemProps extends SpotlightUserMediaItemBaseProps { vm: RemoteUserMediaViewModel; }