mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 10:19:43 +00:00
Move swipe screen logic into hooks/services and extract state-specific UI components to keep files small while preserving existing behavior. Reference: US-002
14 lines
578 B
TypeScript
14 lines
578 B
TypeScript
/**
|
|
* Injectable snapshot script for browser context.
|
|
*
|
|
* This module provides the getSnapshotScript function that returns a
|
|
* self-contained JavaScript string for injection into browser contexts.
|
|
*
|
|
* The script is injected via page.evaluate() and exposes:
|
|
* - window.__devBrowser_getAISnapshot(): Returns ARIA snapshot YAML
|
|
* - window.__devBrowser_selectSnapshotRef(ref): Returns element for given ref
|
|
* - window.__devBrowserRefs: Map of ref -> Element (persists across connections)
|
|
*/
|
|
|
|
export { getSnapshotScript, clearSnapshotScriptCache } from "./browser-script";
|