diff --git a/CHANGELOG-PUBLIC.md b/CHANGELOG-PUBLIC.md index f66c6ba..12fa745 100644 --- a/CHANGELOG-PUBLIC.md +++ b/CHANGELOG-PUBLIC.md @@ -2,6 +2,16 @@ User-facing changes only, grouped by date under Added / Improved / Fixed. +## 0.7.1 — 2026-11-27 + +### Added + +- Screen record: a Show cursor option in the recorder's settings, on by default, puts the mouse pointer in the video file itself, so it shows in any player. Zoom on click still works, and Edit doesn't draw a second pointer on top. + +### Fixed + +- Screen record: Edit said every recording had no cursor track, so the pointer, smoothing and zoom on click were missing in Edit and in exports. Fixed, including for recordings you already made. + ## 0.7.0 — 2026-11-27 ### Added diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 341551b..383dd60 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@snaphub/desktop", - "version": "0.7.0", + "version": "0.7.1", "private": true, "type": "module", "scripts": { diff --git a/apps/desktop/src-tauri/Cargo.lock b/apps/desktop/src-tauri/Cargo.lock index 9f14a33..b536f3c 100644 --- a/apps/desktop/src-tauri/Cargo.lock +++ b/apps/desktop/src-tauri/Cargo.lock @@ -616,7 +616,7 @@ dependencies = [ [[package]] name = "capkit-desktop" -version = "0.7.0" +version = "0.7.1" dependencies = [ "ab_glyph", "arboard", diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml index 16f4a90..a13539f 100644 --- a/apps/desktop/src-tauri/Cargo.toml +++ b/apps/desktop/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "capkit-desktop" -version = "0.7.0" +version = "0.7.1" description = "CapKit lightweight desktop toolkit to capture, record, and showcase" authors = ["CapKit"] edition = "2024" diff --git a/apps/desktop/src-tauri/src/domain.rs b/apps/desktop/src-tauri/src/domain.rs index f36d318..54ba536 100644 --- a/apps/desktop/src-tauri/src/domain.rs +++ b/apps/desktop/src-tauri/src/domain.rs @@ -494,6 +494,10 @@ pub struct RecordingArtifactsDto { pub system_audio_path: Option, pub microphone_path: Option, pub camera_path: Option, + /// The hardware pointer is drawn into the video frames, so the editor + /// should not draw a second one from the cursor track. + #[serde(default)] + pub cursor_in_video: bool, pub width: u32, pub height: u32, pub fps: u32, @@ -587,6 +591,7 @@ mod request_tests { system_audio_path: None, microphone_path: None, camera_path: Some("camera.mp4".into()), + cursor_in_video: true, width: 1920, height: 1080, fps: 30, @@ -595,6 +600,7 @@ mod request_tests { }) .expect("artifacts serialize"); assert_eq!(value["cameraPath"], "camera.mp4"); + assert_eq!(value["cursorInVideo"], true); } #[test] diff --git a/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs b/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs index 788e100..e2fba1c 100644 --- a/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs +++ b/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs @@ -346,6 +346,7 @@ pub struct WindowsRecordingSession { worker: Option>>, outcome: Arc>>, pointer: Option, + cursor_in_video: bool, system_audio: Option, microphone: Option, } @@ -518,6 +519,7 @@ impl WindowsRecordingSession { worker: Some(worker), outcome, pointer, + cursor_in_video: request.capture_cursor, system_audio, microphone, }, @@ -599,6 +601,7 @@ impl RecordingSession for WindowsRecordingSession { microphone_path: microphone_path.map(|path| path.to_string_lossy().into_owned()), // The service sets the real path after the camera file closes. camera_path: None, + cursor_in_video: self.cursor_in_video, width: self.width, height: self.height, fps: self.fps, diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index c8d5dd9..c32f270 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "CapKit", - "version": "0.7.0", + "version": "0.7.1", "identifier": "com.snaphub.desktop", "build": { "beforeDevCommand": "pnpm dev", @@ -42,7 +42,7 @@ } ], "security": { - "csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: http://asset.localhost blob: data:; media-src 'self' asset: http://asset.localhost blob:; style-src 'self' 'unsafe-inline'; connect-src ipc: http://ipc.localhost", + "csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: http://asset.localhost blob: data:; media-src 'self' asset: http://asset.localhost blob:; style-src 'self' 'unsafe-inline'; connect-src ipc: http://ipc.localhost asset: http://asset.localhost", "assetProtocol": { "enable": true, "scope": [ diff --git a/apps/desktop/src/components/RecorderDock.test.tsx b/apps/desktop/src/components/RecorderDock.test.tsx index 8158d3e..f6aee71 100644 --- a/apps/desktop/src/components/RecorderDock.test.tsx +++ b/apps/desktop/src/components/RecorderDock.test.tsx @@ -39,6 +39,7 @@ const artifacts: RecordingArtifacts = { systemAudioPath: null, microphonePath: null, cameraPath: null, + cursorInVideo: false, width: 2560, height: 1440, fps: 30, diff --git a/apps/desktop/src/components/RecorderDock.tsx b/apps/desktop/src/components/RecorderDock.tsx index c63222d..d018133 100644 --- a/apps/desktop/src/components/RecorderDock.tsx +++ b/apps/desktop/src/components/RecorderDock.tsx @@ -42,7 +42,7 @@ import { stopRecording, } from "../lib/recordingTauri"; import { describeInvokeError } from "../lib/tauri"; -import { Cancel, ChevronDown, Computer, Crop, Delete, Grip, Keyboard, Mic, Pause, Play, Record, Settings, Speaker, Stop, Video } from "./icons"; +import { Cancel, ChevronDown, Computer, Crop, Delete, Grip, Keyboard, Mic, Pause, Play, Record, SelectPointer, Settings, Speaker, Stop, Video } from "./icons"; type Phase = "setup" | "counting" | "recording" | "saving"; @@ -668,6 +668,17 @@ export function RecorderDock(): React.JSX.Element { + +