@randyd45/web-behavior-tracker
Version:
A framework-agnostic package for tracking user behavior on web forms
25 lines (24 loc) • 866 B
TypeScript
import { BehaviorEvent, TrackingOptions } from './types.js';
/**
* Handles clipboard events like copy, paste, and cut
*/
export declare class ClipboardEventHandler {
private options;
constructor(options: TrackingOptions);
/**
* Handles clipboard events (copy, paste, cut)
*/
handleClipboardEvent(event: ClipboardEvent, onEventCreated: (event: BehaviorEvent) => void): void;
/**
* Handles copy events specifically
*/
handleCopyEvent(event: ClipboardEvent, onEventCreated: (event: BehaviorEvent) => void): void;
/**
* Handles paste events specifically
*/
handlePasteEvent(event: ClipboardEvent, onEventCreated: (event: BehaviorEvent) => void): void;
/**
* Handles cut events specifically
*/
handleCutEvent(event: ClipboardEvent, onEventCreated: (event: BehaviorEvent) => void): void;
}