@component-compass/plugin-core 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,6 +191,16 @@ export type EntryPackageRef = {
191
191
  package: string;
192
192
  version: string | null;
193
193
  };
194
+ /**
195
+ * Why this component is in the inventory (#340 spec, 2026-07-16).
196
+ * Total classification; precedence: direct > via-wrapper > root > none.
197
+ * - direct: ≥1 parsed occurrence (JSX / template / HTML tag).
198
+ * - via-wrapper: zero occurrences; wrap-aggregation join anchor of a used wrapper.
199
+ * - root: local, zero occurrences, framework entry-point file's default export.
200
+ * - none: anything else, including external zero-occurrence rows. Catch-all.
201
+ * Manifest-derived components are never emitted, so no catalogue value exists.
202
+ */
203
+ export type UsageKind = "direct" | "via-wrapper" | "root" | "none";
194
204
  export type OutputComponent = {
195
205
  id: string;
196
206
  identity: OutputIdentity;
@@ -202,6 +212,8 @@ export type OutputComponent = {
202
212
  occurrenceCount: number;
203
213
  fileCount: number;
204
214
  };
215
+ /** Why this component is in the inventory. See UsageKind. */
216
+ usage: UsageKind;
205
217
  props: Record<string, PropDistribution>;
206
218
  /** Consumer-bound events rolled up across occurrences (Vue/html/lit native + React on* props). */
207
219
  events?: Record<string, EventDistribution>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@component-compass/plugin-core",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",