All files / packages/sds-customization-compliance/src/audit index.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64                                                                                                                               
/**
 * Audit library — pure functions for parsing component CSS, pairing themed
 * properties against their base counterparts, and diffing those pairings
 * into a structured flag list.
 *
 * Everything in this barrel is safe to import from both Node (CLI) and
 * browser contexts, except for `buildLegacyModel` / `buildEffectiveNewModel`
 * which require `fs` — use {@link loadModelsFromStrings} in the browser.
 */
 
export * from './types.js';
 
export {
  HOOK_TOKEN_RE,
  HOOK_PROP_RE,
  ANY_TOKEN_RE,
  flattenPlugins,
  stringFlattenPlugins,
  flattenCss,
  flattenCssString,
  normalizeSelector,
  splitSelectorList,
  selectorKey,
  computeSpecificity,
  compareSpecificity,
  maxSpecificity,
  terminalFallback,
  extractVarChain,
  extractHooksFromValue,
  extractDeclModel,
  extractHookAssignments,
  extractMotionSignals,
} from './extract.js';
 
export {
  EQUIVALENT_PAIRS,
  BOX_SPACING,
  CONTAINER_SPACING,
  SIZING,
  FLEX_GRID_TRACK,
  SHADOW_PROPS,
  classifyPair,
  type PairClassification,
  type PairResult,
} from './propertyPairs.js';
 
export {
  TRACKED_THEMES,
  buildLegacyModel,
  buildEffectiveNewModel,
  loadModelsFromStrings,
  hooksAssignedByAnyTheme,
  hooksAssignedByAllThemes,
  hooksReadByBase,
  hooksReadByLegacy,
  type TrackedTheme,
} from './models.js';
 
export { canonicalHookForm, diff, summarize } from './diff.js';
 
export { CATEGORIES, categorizeHook, groupHooksByCategory, type HookCategory } from './categorize.js';
 
export { projectThemeData } from './themeData.js';