@skippr/live-agent-sdk 0.96.0 → 0.98.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,7 +1,7 @@
1
1
  import type { LauncherDropTarget } from '../hooks/useLauncherDrag';
2
2
  import type { PhaseStatus } from '../hooks/usePhaseUpdates';
3
3
  import type { AgentMode } from '../lib/agentMode';
4
- import { type BuddyShape, CAPTURE_MODE, type CaptureMode, type ChatSurface, DEFAULT_CAPTURE_MODE, type LauncherMode, MIC_MODE, type MicMode } from '../lib/constants';
4
+ import { type ActionPlanMode, type BuddyShape, CAPTURE_MODE, type CaptureMode, type ChatSurface, DEFAULT_CAPTURE_MODE, type LauncherMode, MIC_MODE, type MicMode } from '../lib/constants';
5
5
  import type { SessionStatus } from '../lib/sessionStatus';
6
6
  import type { BarDock } from '../lib/voiceBar';
7
7
  import type { Message } from '../types';
@@ -10,6 +10,7 @@ export { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE, MIC_MODE, type Mi
10
10
  export interface AgentControls {
11
11
  highlight?: boolean;
12
12
  actions?: boolean;
13
+ actionPlanMode?: ActionPlanMode;
13
14
  micMode?: MicMode;
14
15
  chat?: ChatSurface;
15
16
  }
@@ -63,6 +63,13 @@ export declare const CHAT_SURFACE: {
63
63
  };
64
64
  export type ChatSurface = (typeof CHAT_SURFACE)[keyof typeof CHAT_SURFACE];
65
65
  export declare const DEFAULT_CHAT_SURFACE: ChatSurface;
66
+ export declare const ACTION_PLAN_MODE: {
67
+ readonly Always: "always";
68
+ readonly Auto: "auto";
69
+ readonly Never: "never";
70
+ };
71
+ export type ActionPlanMode = (typeof ACTION_PLAN_MODE)[keyof typeof ACTION_PLAN_MODE];
72
+ export declare const DEFAULT_ACTION_PLAN_MODE: ActionPlanMode;
66
73
  export declare const LAUNCHER_MODE: {
67
74
  readonly Avatar: "avatar";
68
75
  readonly Strip: "strip";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.96.0",
3
+ "version": "0.98.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"