π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
feat(core): let a capture source hand over its own pixels
Luis Ortiz8adab70e6dbd
diff --git a/packages/core/src/capture/sink.ts b/packages/core/src/capture/sink.tsindex e15087c..160e2f7 100644--- a/packages/core/src/capture/sink.ts+++ b/packages/core/src/capture/sink.ts@@ -1,11 +1,18 @@import type { DOMContext } from '@/core/capture/dom/context';import type { ElementMeta } from '@/core/guides/types';+export interface CaptureImage {+ png: Uint8Array;+ width: number;+ height: number;+}+export interface CaptureStepData {guideId: string;action: string;elementMeta: ElementMeta;domContext?: DOMContext;+ image?: CaptureImage;}export type CaptureStepResponse = { stepId: string } | { ignored: true } | { error: string };diff --git a/packages/core/src/guides/types.ts b/packages/core/src/guides/types.tsindex 9402840..498d756 100644--- a/packages/core/src/guides/types.ts+++ b/packages/core/src/guides/types.ts@@ -92,7 +92,7 @@ export interface Settings {export type SettingsKey = keyof Settings;-export type ElementSource = 'dom' | 'ax' | 'uia';+export type ElementSource = 'dom' | 'ax' | 'uia' | 'screen';export interface ElementMeta {source?: ElementSource;