@brainfish-ai/web-tracker 0.0.7-alpha.1 → 0.0.7-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,2 @@
1
- import { RenderStabilityOptions } from './renderStability';
2
- /**
3
- * Takes a screenshot of the current page after ensuring content is stably rendered
4
- * @param options Optional configuration for render stability checking
5
- * @returns Promise resolving to the screenshot as a data URL
6
- */
7
- declare function screenshot(options?: RenderStabilityOptions): Promise<string | undefined>;
1
+ declare function screenshot(): Promise<string | undefined>;
8
2
  export { screenshot };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainfish-ai/web-tracker",
3
- "version": "0.0.7-alpha.1",
3
+ "version": "0.0.7-alpha.3",
4
4
  "main": "dist/index.js",
5
5
  "description": "Brainfish Tracker for Web",
6
6
  "files": [
@@ -1,17 +0,0 @@
1
- /**
2
- * Options for checking render stability
3
- */
4
- interface RenderStabilityOptions {
5
- /** Maximum time to wait for stability in milliseconds */
6
- maxWaitTime?: number;
7
- /** Number of stable frames required before considering the render complete */
8
- minStableFrames?: number;
9
- /** CSS selectors for elements that must be present and visible */
10
- requiredSelectors?: string[];
11
- }
12
- /**
13
- * Waits for the page render to stabilize by monitoring visual changes
14
- * Uses requestAnimationFrame for better performance and cross-browser compatibility
15
- */
16
- declare function waitForStableRender(options?: RenderStabilityOptions): Promise<void>;
17
- export { waitForStableRender, RenderStabilityOptions };