UNPKG

sicua

Version:

A tool for analyzing project structure and dependencies

75 lines (74 loc) 1.67 kB
"use strict"; /** * Component Flow Analysis Types * Defines all interfaces and types for component flow analysis */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_HTML_ELEMENT_FILTER = void 0; exports.isComponentReference = isComponentReference; exports.isHTMLElementReference = isHTMLElementReference; // NEW: Type guards for element references function isComponentReference(ref) { return "isJSXElement" in ref; } function isHTMLElementReference(ref) { return "tagName" in ref; } // NEW: Default HTML element filter configuration exports.DEFAULT_HTML_ELEMENT_FILTER = { includeAll: false, includeTags: [ // Common semantic elements "div", "section", "article", "main", "aside", "header", "footer", "nav", // Text elements that might contain important content "h1", "h2", "h3", "h4", "h5", "h6", "p", "span", // Interactive elements "button", "a", "input", "select", "textarea", "form", // Media elements "img", "video", "audio", "picture", // List elements "ul", "ol", "li", // Table elements "table", "thead", "tbody", "tr", "td", "th", ], excludeTags: [ // Exclude very generic/wrapper elements that add little value "br", "hr", "meta", "link", "style", "script", ], captureTextContent: true, maxTextLength: 100, };