All files / packages/sds-customization-compliance/src 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                                                                                                           
/**
 * Main entry — vends the check registry, runner, types, and a convenience
 * re-export of the core audit API for callers that want to run the CSS
 * diff themselves.
 *
 * Submodule exports (see `package.json`):
 *   - `@salesforce-ux/sds-customization-compliance/audit`
 *     → pure CSS-diff engine (extract, diff, models).
 *   - `@salesforce-ux/sds-customization-compliance/checks`
 *     → the 29 compliance checks + their helpers.
 *   - `@salesforce-ux/sds-customization-compliance/components`
 *     → React UI for rendering compliance rows.
 */
 
export type {
  ComplianceStatus,
  ComplianceRow,
  ComplianceCheck,
  ComponentCssInput,
  ComponentCheckInput,
  ComponentComplianceReport,
  ComplianceIndex,
  ComplianceVerdict,
  ComplianceVerdictSummary,
  ThemeData,
  ThemeDataSelectorReads,
  ThemeRegressionReport,
  Offender,
  BaseDecl,
  BaseDeclsBySelector,
} from './types.js';
 
export { COMPLIANCE_STATUS_PRIORITY, getVerdict } from './types.js';
 
/**
 * Pure display helpers — re-exported here so non-React consumers
 * (e.g. the design-system-2 Storybook manager bundle, which can't
 * pull React-touching modules) can import them without the
 * `./components` subpath. The components themselves continue to read
 * the same source via `./components/copy.js`.
 */
export {
  SUMMARY_ORDER,
  VERDICT_COPY,
  formatOffenderLocation,
  statusGlyph,
  verdictSubtitle,
} from './components/copy.js';
export type { ComplianceStatusCounts } from './components/copy.js';
 
export { runChecks, checks } from './checks/index.js';
 
export type { Flag, FlagSummary, Severity } from './audit/types.js';