UNPKG

@dkoul/auto-testid-core

Version:

Core AST parsing and transformation logic for React and Vue.js attribute generation

24 lines 1.02 kB
import { IDGenerator as IIDGenerator, Element, GenerationContext } from '../index'; export declare class IDGenerator implements IIDGenerator { private logger; private readonly SEMANTIC_KEYWORDS; private readonly ELEMENT_MAPPINGS; generate(element: Element, context: GenerationContext): string; validateUniqueness(id: string, scope: Set<string>): boolean; resolveConflicts(id: string, existingIds: Set<string>): string; private extractSemanticParts; private extractMeaningfulAttributes; private extractContentKeywords; private extractAriaSemantics; private extractClassSemantics; private extractKeywords; private getElementType; private sanitizeComponent; private combineComponents; private applyPrefix; private getSeparator; getPriority(element: Element): number; generateCandidates(element: Element, context: GenerationContext, count?: number): string[]; } export declare const idGenerator: IDGenerator; //# sourceMappingURL=id-generator.d.ts.map