Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(chrome-extension): extend service worker and preview message types

Richie McIlroy13c0560b1792
diff --git a/apps/chrome-extension/src/shared/types.ts b/apps/chrome-extension/src/shared/types.ts
index 68331e9be..a92eec470 100644
--- a/apps/chrome-extension/src/shared/types.ts
+++ b/apps/chrome-extension/src/shared/types.ts
@@ -460,6 +460,10 @@ export type ServiceWorkerRequest =
seconds: number;
durationMs: number;
}
+ | {
+ target: "service-worker";
+ type: "hide-recording-start-overlays";
+ }
| {
// The recorded tab's confirm overlay reports the user's decision back to
// the service worker, which is blocking the recording start on it.
@@ -572,6 +576,7 @@ export type CameraPreviewEvent =
| { type: "frame"; frame: WebcamPreviewFrame }
| { type: "error"; reason: CameraPreviewErrorReason; message: string }
| { type: "pip-state"; active: boolean; supported: boolean }
+ | { type: "pointer-presence"; inside: boolean }
| { type: "drag-start"; clientX: number; clientY: number }
| { type: "drag-move"; clientX: number; clientY: number }
| { type: "drag-end" };