Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
refactor(desktop): type editor captions with EditorCaptionSettings
Richie McIlroy7447cc873a41
diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.tsindex d85e2be6e..e78fb8c24 100644--- a/apps/desktop/src/routes/editor/context.ts+++ b/apps/desktop/src/routes/editor/context.ts@@ -21,6 +21,7 @@ import {import { createStore, produce, reconcile, unwrap } from "solid-js/store";import { generalSettingsStore } from "~/store";+import type { EditorCaptionSettings } from "~/store/captions";import { defaultKeyboardSettings } from "~/store/keyboard";import { createPresets } from "~/utils/createPresets";@@ -62,7 +63,6 @@ export type ModalDialog =type: "crop";position: XY<number>;size: XY<number>;- previewUrl?: string | null;};export type LayoutMode = { type: "export" } | { type: "transcript" };@@ -145,13 +145,18 @@ type EditorTimelineConfiguration = Omit<textSegments: TextSegment[];};+type EditorCaptionsData = NonNullable<ProjectConfiguration["captions"]> & {+ settings: EditorCaptionSettings;+};+export type EditorProjectConfiguration = Omit<ProjectConfiguration,- "background" | "camera" | "timeline"+ "background" | "camera" | "timeline" | "captions"> & {background: WithCornerStyle<ProjectConfiguration["background"]>;camera: WithCornerStyle<ProjectConfiguration["camera"]>;timeline?: EditorTimelineConfiguration | null;+ captions: EditorCaptionsData | null;hiddenTextSegments?: number[];};