Skip to content

v0.11.0

Choose a tag to compare

@mabry1985 mabry1985 released this 29 Sep 03:24
· 13 commits to main since this release
f7a6900

This release improves the accuracy of Design System (DS) export resolution and component auditing.

Design System Export Resolution

  • ds_component now resolves any public export by name case-insensitively, returning the import line, JSDoc, signature, referenced props type, and a usage excerpt from the related story file.
  • Partial name matches (e.g., "Toast") now list the closest exports (e.g., ToastProvider, useToast) instead of failing to resolve.
  • ds_search matches against export names, and the shadow/control inventory uses the public components defined in the package’s exports contract.

Shadow Component Auditing

  • The auditor now only flags a shadow component if its name matches the DS component (or that plus a generic affix) and the file does not import the DS component, or if a DS-family name hand-writes the DS root class (e.g., pl-surface) without importing or rendering the DS component.
  • Files that import or render the DS component for a locally named file are classified as composition and are never flagged.
  • When replies are capped, the output now displays "N of M shown" instead of printing a second, smaller count for the same rule.

Audit Exclusions

  • Hand-rolled control audits now skip sanctioned composite <button> elements that use className and multi-element children, per protoContent#551.