@component-compass/reference-graph 0.1.21 → 0.1.23

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.
@@ -50,17 +50,6 @@ export type EngineOccurrence = {
50
50
  rawOwnerComponentId?: ComponentId;
51
51
  /** Stable id of enclosing component definition. Absent when deferred. */
52
52
  ownerComponentId?: string;
53
- /**
54
- * Cross-link to the underlying custom element this react-component wraps.
55
- * Present only when `wrapCallback` was supplied to `resolve` and returned a
56
- * hit for this occurrence's (packageName, exportName) pair.
57
- * Does NOT participate in componentId hashing.
58
- */
59
- wraps?: {
60
- kind: "custom-element";
61
- tagName: string;
62
- packageName: string;
63
- };
64
53
  };
65
54
  export type ResolvedGraph = {
66
55
  occurrences: EngineOccurrence[];
@@ -91,16 +80,6 @@ export type TagResolverIndex = {
91
80
  * Options for the `resolve` engine pass.
92
81
  */
93
82
  export type ResolveOpts = {
94
- /**
95
- * Optional cross-link callback. Called at each external react-component
96
- * emission with (packageName, exportName). When a hit is returned the engine
97
- * attaches `wraps` to the emitted `EngineOccurrence`. No-op when omitted or
98
- * returns null. Engine never imports CEM types — only consumes the return shape.
99
- */
100
- wrapCallback?: (packageName: string, exportName: string) => {
101
- tagName: string;
102
- packageName: string;
103
- } | null;
104
83
  /**
105
84
  * Optional external leaf resolver. Called when an external
106
85
  * react-component identity is constructed, with the importing graph file,
@@ -111,7 +90,7 @@ export type ResolveOpts = {
111
90
  * so package-of-definition identity is the leaf (external analogue of the
112
91
  * local barrel re-wrap follow). Same-package hits are ignored
113
92
  * (identity already correct); the call is still made so the host can
114
- * terminal-load the leaf manifest as a side effect for `wrapCallback`.
93
+ * terminal-load the leaf manifest as a side effect for the host's wrapper lookup.
115
94
  * Engine never imports resolver types — only this return shape.
116
95
  */
117
96
  resolveExternalLeaf?: (fromFile: string, specifier: string, exportName: string) => {
@@ -126,7 +105,10 @@ export type ResolveOpts = {
126
105
  */
127
106
  tagIndex?: TagResolverIndex;
128
107
  /**
129
- * Sink for engine-emitted diagnostics (currently: low-confidence-tag).
108
+ * Sink for engine-emitted diagnostics: `unresolved-reference`,
109
+ * `unresolved-import` and `lazy-import-unsupported` for a JSX render that
110
+ * produced no occurrence, and `low-confidence-tag` for a tag usage the
111
+ * `tagIndex` does not resolve.
130
112
  * Optional — when omitted, diagnostics are silently dropped.
131
113
  */
132
114
  collector?: DiagnosticCollector;