Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fmt
Richie McIlroy2fb46b1da2ec
diff --git a/apps/desktop/src/routes/editor/TranscriptPage.tsx b/apps/desktop/src/routes/editor/TranscriptPage.tsxindex efb8e4f72..c364de588 100644--- a/apps/desktop/src/routes/editor/TranscriptPage.tsx+++ b/apps/desktop/src/routes/editor/TranscriptPage.tsx@@ -465,7 +465,7 @@ function TranscriptEditor(props: {} else {props.onDeleteWords(indices);}- setSelectedIndices(new Set());+ setSelectedIndices(new Set<number>());setAnchorIndex(-1);} else if (e.key === "ArrowLeft") {e.preventDefault();@@ -488,7 +488,7 @@ function TranscriptEditor(props: {const handleContainerClick = (e: MouseEvent) => {if (e.target === scrollContainerRef) {- setSelectedIndices(new Set());+ setSelectedIndices(new Set<number>());setAnchorIndex(-1);}};@@ -544,7 +544,7 @@ function TranscriptEditor(props: {} else {props.onDeleteWord(flatIndexOf(word));}- setSelectedIndices(new Set());+ setSelectedIndices(new Set<number>());setAnchorIndex(-1);};diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.tsindex 96aa75254..3170b395f 100644--- a/apps/desktop/src/routes/editor/context.ts+++ b/apps/desktop/src/routes/editor/context.ts@@ -69,17 +69,19 @@ export type LayoutMode = { type: "export" } | { type: "transcript" };export type CurrentDialog = ModalDialog | LayoutMode;export type DialogState = { open: false } | ({ open: boolean } & CurrentDialog);+export type OpenLayoutMode = { open: true } & LayoutMode;+export type OpenModalDialog = { open: true } & ModalDialog;const LAYOUT_MODE_TYPES: Set<CurrentDialog["type"]> = new Set(["export","transcript",]);-export function isLayoutMode(d: DialogState): boolean {+export function isLayoutMode(d: DialogState): d is OpenLayoutMode {return d.open && "type" in d && LAYOUT_MODE_TYPES.has(d.type);}-export function isModalDialog(d: DialogState): boolean {+export function isModalDialog(d: DialogState): d is OpenModalDialog {return d.open && "type" in d && !LAYOUT_MODE_TYPES.has(d.type);}