Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
chore(desktop): update tauri bindings for screenshot sharing
Richie McIlroyd6537bfba9a2
diff --git a/apps/desktop/src/utils/tauri.ts b/apps/desktop/src/utils/tauri.tsindex 1f22d51b2..52bf52e82 100644--- a/apps/desktop/src/utils/tauri.ts+++ b/apps/desktop/src/utils/tauri.ts@@ -212,6 +212,12 @@ async generateKeyboardSegments(groupingThresholdMs: number, lingerDurationMs: nuasync renderScreenshotForExport() : Promise<number[]> {return await TAURI_INVOKE("render_screenshot_for_export");},+async renderScreenshotProjectForExport(path: string) : Promise<ScreenshotProjectExport> {+ return await TAURI_INVOKE("render_screenshot_project_for_export", { path });+},+async getScreenshotProjectShareState(path: string) : Promise<ScreenshotProjectShareState> {+ return await TAURI_INVOKE("get_screenshot_project_share_state", { path });+},async openPermissionSettings(permission: OSPermission) : Promise<void> {await TAURI_INVOKE("open_permission_settings", { permission });},@@ -227,9 +233,15 @@ async getDevicesSnapshot() : Promise<DevicesUpdated> {async uploadExportedVideo(path: string, mode: UploadMode, channel: TAURI_CHANNEL<UploadProgress>, organizationId: string | null) : Promise<UploadResult> {return await TAURI_INVOKE("upload_exported_video", { path, mode, channel, organizationId });},+async copyCurrentScreenshotShareLink(projectPath: string, contentHash: string) : Promise<UploadResult | null> {+ return await TAURI_INVOKE("copy_current_screenshot_share_link", { projectPath, contentHash });+},async uploadScreenshot(screenshotPath: string) : Promise<UploadResult> {return await TAURI_INVOKE("upload_screenshot", { screenshotPath });},+async uploadRenderedScreenshot(imageBytes: number[], contentType: string, projectPath: string, contentHash: string | null) : Promise<UploadResult> {+ return await TAURI_INVOKE("upload_rendered_screenshot", { imageBytes, contentType, projectPath, contentHash });+},async createScreenshotEditorInstance() : Promise<SerializedScreenshotEditorInstance> {return await TAURI_INVOKE("create_screenshot_editor_instance");},@@ -750,12 +762,15 @@ export type ScreenMovementSpring = { stiffness: number; damping: number; mass: nexport type ScreenshotOcrLine = { text: string; confidence: number | null; bounds: ScreenshotOcrRegion }export type ScreenshotOcrRegion = { x: number; y: number; width: number; height: number }export type ScreenshotOcrResult = { text: string; lines: ScreenshotOcrLine[]; engine: string }+export type ScreenshotProjectExport = { imageBytes: number[]; config: ProjectConfiguration; imageWidth: number; imageHeight: number }+export type ScreenshotProjectShareState = { config: ProjectConfiguration; sharing: ScreenshotSharingState | null }+export type ScreenshotSharingState = { link: string; contentHash: string | null }export type SegmentRecordings = { display: Video; camera: Video | null; mic: Audio | null; system_audio: Audio | null }export type SerializedEditorInstance = { framesSocketUrl: string; recordingDuration: number; savedProjectConfig: ProjectConfiguration; recordings: ProjectRecordingsMeta; path: string }export type SerializedScreenshotEditorInstance = { framesSocketUrl: string; path: string; config: ProjectConfiguration | null; prettyName: string; imageWidth: number; imageHeight: number }export type SetCaptureAreaPending = booleanexport type ShadowConfiguration = { size: number; opacity: number; blur: number }-export type SharingMeta = { id: string; link: string }+export type SharingMeta = { id: string; link: string; content_hash?: string | null }export type ShowCapWindow = { Main: { init_target_mode: RecordingTargetMode | null } } | { Settings: { page: string | null } } | { Editor: { project_path: string } } | "RecordingsOverlay" | { WindowCaptureOccluder: { screen_id: DisplayId } } | { TargetSelectOverlay: { display_id: DisplayId; target_mode: RecordingTargetMode | null } } | { CaptureArea: { screen_id: DisplayId } } | { Camera: { centered: boolean } } | { InProgressRecording: { countdown: number | null; capture_target?: ScreenCaptureTarget | null } } | "Upgrade" | "ModeSelect" | { ScreenshotEditor: { path: string } } | "Onboarding"export type SingleSegment = { display: VideoMeta; camera?: VideoMeta | null; audio?: AudioMeta | null; cursor?: string | null }export type SplitLayout = { screenZoom: number; screenPosition: XY<number>; cameraZoom: number; cameraPosition: XY<number> }