diff --git a/src/state/CallViewModel/CallViewModel.ts b/src/state/CallViewModel/CallViewModel.ts index 1ab4ea134..831dd0b0e 100644 --- a/src/state/CallViewModel/CallViewModel.ts +++ b/src/state/CallViewModel/CallViewModel.ts @@ -102,6 +102,7 @@ import { type SpotlightExpandedLayoutMedia, type SpotlightLandscapeLayoutMedia, type SpotlightPortraitLayoutMedia, + type WindowMode, } from "../layout-types.ts"; import { ElementCallError, UnknownCallError } from "../../utils/errors.ts"; import { type Epoch, type ObservableScope } from "../ObservableScope.ts"; @@ -271,13 +272,6 @@ const smallMobileCallThreshold = 3; // with the interface const showFooterMs = 4000; -/** - * The general shape of the space the call is drawn in. Called a window because - * that is what it is in the standalone app; for a component it is the container - * the host gave us, which may be a small corner of a large window. - */ -export type WindowMode = "normal" | "narrow" | "flat" | "pip"; - interface LayoutScanState { layout: Layout | null; overflowing: boolean; diff --git a/src/state/LayoutSwitchViewModel.ts b/src/state/LayoutSwitchViewModel.ts index 6e61abaaa..f495c6275 100644 --- a/src/state/LayoutSwitchViewModel.ts +++ b/src/state/LayoutSwitchViewModel.ts @@ -14,7 +14,7 @@ import { switchAll, } from "rxjs"; -import { type WindowMode } from "./CallViewModel/CallViewModel.ts"; +import { type WindowMode } from "./layout-types.ts"; import { constant, type Behavior } from "./Behavior.ts"; import { type ObservableScope } from "./ObservableScope.ts"; diff --git a/src/state/layout-types.ts b/src/state/layout-types.ts index be86f2a36..2d526617b 100644 --- a/src/state/layout-types.ts +++ b/src/state/layout-types.ts @@ -18,6 +18,13 @@ import { import { type Behavior } from "./Behavior.ts"; import { shallowEquals as arrayShallowEquals } from "../utils/array.ts"; +/** + * The general shape of the space the call is drawn in. Called a window because + * that is what it is in the standalone app; for a component it is the container + * the host gave us, which may be a small corner of a large window. + */ +export type WindowMode = "normal" | "narrow" | "flat" | "pip"; + export interface GridLayoutMedia { type: "grid"; edgeToEdge: false;