feedlytic-widget
Version:
Lightweight JavaScript widget for capturing user feedback and exit-intent surveys
49 lines (48 loc) • 1.13 kB
TypeScript
export declare const WIDGET_CONFIG: {
theme: {
primaryColor: string;
backgroundColor: string;
textColor: string;
buttonRadius: string;
fontFamily: string;
};
position: {
bottom: string;
right: string;
zIndex: number;
};
animation: {
enabled: boolean;
duration: number;
};
exitIntent: {
enabled: boolean;
delay: number;
sensitivity: number;
};
screenshot: {
enabled: boolean;
quality: number;
format: "jpeg";
};
};
export declare const API_CONFIG: {
baseUrl: string;
endpoints: {
feedback: string;
exitSurvey: string;
projectConfig: string;
};
timeout: number;
retries: number;
};
export declare const DEBUG_MODE = false;
export declare function debugLog(message: string, data?: any): void;
export declare function getEnvironmentInfo(): {
version: string;
isDevelopment: boolean;
isDebugMode: boolean;
apiBaseUrl: string;
hasApiConfig: boolean;
};
export declare function validateConfig(): boolean;