@skippr/live-agent-sdk 0.94.0 → 0.95.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.
|
@@ -3,5 +3,7 @@ export type CursorOwner = 'guide' | 'act';
|
|
|
3
3
|
type CursorTargetListener = (target: CursorTarget | null) => void;
|
|
4
4
|
export declare function setCursorTarget(owner: CursorOwner, target: CursorTarget): void;
|
|
5
5
|
export declare function clearCursorTarget(owner: CursorOwner): void;
|
|
6
|
+
export declare function getCursorTarget(): CursorTarget | null;
|
|
7
|
+
export declare function cursorTargetElapsedMs(): number;
|
|
6
8
|
export declare function subscribeCursorTarget(listener: CursorTargetListener): () => void;
|
|
7
9
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const RING_INK_IN_DURATION_MS = 900;
|
|
2
|
+
interface ViewportToCanvasTransform {
|
|
3
|
+
scale: number;
|
|
4
|
+
offsetX: number;
|
|
5
|
+
offsetY: number;
|
|
6
|
+
}
|
|
7
|
+
export interface BrandPalette {
|
|
8
|
+
color: string;
|
|
9
|
+
foreground: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DEFAULT_BRAND_PALETTE: BrandPalette;
|
|
12
|
+
export declare function resolveBrandPalette(accentColor: string | null | undefined): BrandPalette;
|
|
13
|
+
export declare function paintCursorOverlay(ctx: CanvasRenderingContext2D, transform: ViewportToCanvasTransform, brand?: BrandPalette): void;
|
|
14
|
+
export {};
|