@component-compass/plugin-core 0.1.1 → 0.1.2

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.
@@ -4,20 +4,12 @@ import type { IndexedComponent } from "./scan-types.js";
4
4
  *
5
5
  * - "authored": leaf shipped a `custom-elements.json` or
6
6
  * `component-compass-manifest.json` at its package root.
7
- * - "derived": leaf carries no authored manifest but `manifest-react` /
8
- * `manifest-vue` extractors (Phase 4) produced one from source.
9
7
  * - null: no enrichment available — identity stays opaque
10
8
  * (`components[].manifest === null` in the artifact).
11
- *
12
- * Open envelope: `data` shape grows in Phase 3 (CEM depth) and Phase 4
13
- * (extractor maturity) without changing this discriminator.
14
9
  */
15
10
  export type Enrichment = {
16
11
  source: "authored";
17
12
  data: AuthoredLeafPayload;
18
- } | {
19
- source: "derived";
20
- data: DerivedLeafPayload;
21
13
  } | null;
22
14
  /**
23
15
  * Payload shape held by the lazy resolver for a successfully-loaded leaf
@@ -34,12 +26,3 @@ export type AuthoredLeafPayload = {
34
26
  /** Leaf package's `version` field, when readable. */
35
27
  packageVersion?: string;
36
28
  };
37
- /**
38
- * Phase 4 hook: per-leaf payload populated by the source-extraction fallback
39
- * (manifest-react / manifest-vue extractors). Same per-leaf shape as
40
- * `AuthoredLeafPayload`; field set narrows to whatever the extractors recover.
41
- */
42
- export type DerivedLeafPayload = {
43
- /** Components extracted from leaf source by Phase 4 extractors. */
44
- components: IndexedComponent[];
45
- };
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { manifestJsonSchema } from "./schema.js";
6
6
  export { ManifestBuilder } from "./builder.js";
7
7
  export type { TagName, WrapperId, ImportRole, ImportEntry, IndexedComponent, Loc, WarningCode, Warning, ScanConfig, PropUsage, OccurrenceVia, Occurrence, WrapperDef, FileImport, ParseResult, ParseContext, ParserPlugin, ScanOutput, ManifestRef, ScanStats, DetectorId, LocalDefinition, LocalDefinitionIndex, ResolveLazyManifest, ResolveLocalExport, LookupByTag, LazyResolverHit, CemIndex, CemIndexEntry, } from "./scan-types.js";
8
8
  export { asTagName, asWrapperId, emptyLocalIndex } from "./scan-types.js";
9
- export type { Enrichment, AuthoredLeafPayload, DerivedLeafPayload } from "./enrichment.js";
9
+ export type { Enrichment, AuthoredLeafPayload } from "./enrichment.js";
10
10
  export { normalizeOwnerPath } from "./owner-utils.js";
11
11
  export { computeOccurrenceId } from "./occurrence-id.js";
12
12
  export type { CompositionRollup } from "./output-types.js";
@@ -96,17 +96,6 @@ export type AuthoredManifestData = {
96
96
  slots?: Record<string, SlotDecl>;
97
97
  invocable?: Record<string, InvocableDecl>;
98
98
  };
99
- /**
100
- * Phase 4 hook: per-component payload populated by source-extraction fallback.
101
- * Structurally a subset of `AuthoredManifestData`; ships empty in Phase 3.
102
- */
103
- export type DerivedManifestData = {
104
- description?: string;
105
- lifecycle?: Lifecycle;
106
- props?: Record<string, PropDecl>;
107
- slots?: Record<string, SlotDecl>;
108
- invocable?: Record<string, InvocableDecl>;
109
- };
110
99
  /**
111
100
  * Per-occurrence prop value:
112
101
  * - a literal (string/number/boolean/null) when the source value is statically known,
@@ -139,9 +128,6 @@ export type OutputComponent = {
139
128
  manifest: {
140
129
  source: "authored";
141
130
  data: AuthoredManifestData;
142
- } | {
143
- source: "derived";
144
- data: DerivedManifestData;
145
131
  } | null;
146
132
  stats: {
147
133
  occurrenceCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@component-compass/plugin-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",