@skippr/live-agent-sdk 0.97.0 → 0.99.0

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.
@@ -7,6 +7,8 @@ interface AccessibilityTreeResult {
7
7
  refCount: number;
8
8
  truncated: boolean;
9
9
  }
10
+ export declare function isSensitiveIframe(element: Element): boolean;
11
+ export declare function isSameOriginIframe(element: Element): boolean;
10
12
  export declare function isActionBlocked(element: Element): boolean;
11
13
  export declare function buildAccessibilityTree(): AccessibilityTreeResult;
12
14
  export {};
@@ -1,2 +1,12 @@
1
1
  import type { SnapdomOptions } from '@zumer/snapdom';
2
- export declare function snapToCanvas(element: Element, options?: SnapdomOptions): Promise<HTMLCanvasElement>;
2
+ export type SnapdomCaptureOptions = SnapdomOptions & {
3
+ clip?: 'viewport' | {
4
+ x: number;
5
+ y: number;
6
+ width: number;
7
+ height: number;
8
+ };
9
+ snap?: unknown;
10
+ };
11
+ export declare function preCacheSnapshotResources(): void;
12
+ export declare function snapToCanvas(element: Element, options?: SnapdomCaptureOptions): Promise<HTMLCanvasElement>;
@@ -1,3 +1,6 @@
1
+ export declare const SNAPSHOT_EXCLUDE_SELECTORS: string[];
2
+ export declare function shouldIncludeInSnapshot(element: Element): boolean;
3
+ export declare function shouldIncludeInFirstFrame(element: Element): boolean;
1
4
  interface DomCaptureProps {
2
5
  pushOrTapMicMode?: boolean;
3
6
  }
@@ -1,3 +1,4 @@
1
+ import { type MutableRefObject } from 'react';
1
2
  import { type CaptureMode } from '../lib/constants';
2
3
  export declare const FALLBACK_PAUSE_TIMEOUT_SECONDS = 120;
3
4
  export interface UseSessionHoldOptions {
@@ -9,6 +10,7 @@ export interface UseSessionHoldValue {
9
10
  isHeld: boolean;
10
11
  countdown: number;
11
12
  toggle: () => void;
13
+ clearPausedCaptureRef: MutableRefObject<(() => void) | null>;
12
14
  }
13
15
  /** Owns the user's in-session pause/resume: mutes the mic, signals the worker to stop listening,
14
16
  * and ends the session if the hold outlasts the countdown. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.97.0",
3
+ "version": "0.99.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",
@@ -34,7 +34,7 @@
34
34
  "release": "release-it"
35
35
  },
36
36
  "dependencies": {
37
- "@zumer/snapdom": "^2.9.0",
37
+ "@zumer/snapdom": "2.18.0",
38
38
  "clsx": "2.1.1",
39
39
  "lucide-react": "1.8.0",
40
40
  "tailwind-merge": "3.5.0"