UNPKG

@laubloch/scrolly-motion

Version:

Advanced scroll animation library with breakpoint support, timeline presets.

60 lines (59 loc) 1.52 kB
/** * Warning system for missing modules * Detects when HTML attributes suggest a module should be present but isn't loaded */ export interface ModuleWarning { moduleName: string; description: string; importExample: string; usageExample: string; } export declare class WarningSystem { private warnedModules; private loadedModules; /** * Register a loaded module */ registerModule(moduleName: string): void; /** * Check if a module is loaded */ isModuleLoaded(moduleName: string): boolean; /** * Warn about a missing module (only once per module) */ warnMissingModule(moduleName: string, context?: string): void; /** * Get warning details for a specific module */ private getModuleWarning; /** * Detect missing modules from HTML attributes */ detectMissingModules(element: HTMLElement): void; /** * Check if string contains animation syntax */ private hasAnimationSyntax; /** * Check if string contains stagger syntax */ private hasStaggerSyntax; /** * Check if string contains physics syntax */ private hasPhysicsSyntax; /** * Check if string contains theme syntax */ private hasThemeSyntax; /** * Check if string contains web component syntax */ private hasWebComponentSyntax; /** * Reset warned modules (useful for testing) */ reset(): void; } export declare const warningSystem: WarningSystem;