UNPKG

feedbacker-react

Version:

A drop-in React feedback system for component-level feedback capture during development and design review

45 lines 1.35 kB
/** * FallbackStrategy - Final fallback for component detection * Always returns "Unknown Component" with basic element information */ import { DetectionStrategy } from '../DetectionStrategy'; import { ComponentInfo } from '../../types'; export declare class FallbackStrategy extends DetectionStrategy { /** * Always detect with fallback information - never returns null */ protected detect(element: HTMLElement): ComponentInfo | null; /** * Create a descriptive fallback name based on element characteristics */ private createFallbackName; /** * Create a hybrid-style fallback path with inferred component and DOM hierarchy */ private createHybridFallbackPath; /** * Check if element looks like it might be a component root */ private looksLikeComponent; /** * Infer a component name from element characteristics */ private inferComponentName; /** * Format a string as a component name */ private formatComponentName; /** * Extract basic element information */ private extractElementInfo; /** * Get semantic name from element characteristics */ private getSemanticName; /** * Capitalize first letter of a string */ private capitalizeFirst; } //# sourceMappingURL=FallbackStrategy.d.ts.map