@component-compass/parser-vue 0.1.19 → 0.1.21
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.
package/dist/emit-template.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { VueParseWrapper } from "./parse-sfc.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Vue tag-form enumeration. A script-bound import resolves both via its
|
|
6
6
|
* lowercased exact form (`Card` → `card`) and its PascalCase→kebab form
|
|
7
|
-
* (`VBtn` → `v-btn`). Pre-computed once per import
|
|
7
|
+
* (`VBtn` → `v-btn`). Pre-computed once per import.
|
|
8
8
|
*/
|
|
9
9
|
export declare function vueTagForms(importName: string): string[];
|
|
10
10
|
/** One auto-import manifest entry: the synthetic import to emit for a tag. */
|
|
@@ -14,11 +14,7 @@ export type AutoImportComponent = {
|
|
|
14
14
|
name: string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* Options threaded into the parse5-based Vue SFC emitter.
|
|
18
|
-
* `walkVueTemplate` surface but consumes the reference-graph FileBuilder
|
|
19
|
-
* instead of producing `Occurrence[]` directly. Tasks 2.4 → 2.12 progressively
|
|
20
|
-
* fill in script-import emission, template walking, owner attribution, and
|
|
21
|
-
* prop extraction.
|
|
17
|
+
* Options threaded into the parse5-based Vue SFC emitter.
|
|
22
18
|
*/
|
|
23
19
|
export type EmitVueTemplateOpts = {
|
|
24
20
|
file: string;
|
|
@@ -38,7 +34,7 @@ export type EmitVueTemplateOpts = {
|
|
|
38
34
|
*/
|
|
39
35
|
resolveLazyManifest?: ResolveLazyManifest;
|
|
40
36
|
/**
|
|
41
|
-
* Optional auto-import lookup
|
|
37
|
+
* Optional auto-import lookup. Consulted for template tags with no
|
|
42
38
|
* script binding, BEFORE the hyphenated custom-element lane. A hit emits a
|
|
43
39
|
* synthetic import + JsxUsage — exactly what an explicit script import of
|
|
44
40
|
* the same component would produce — so engine identity/composition
|
|
@@ -48,8 +44,7 @@ export type EmitVueTemplateOpts = {
|
|
|
48
44
|
resolveAutoImport?: (tagForm: string) => AutoImportComponent | undefined;
|
|
49
45
|
/**
|
|
50
46
|
* Optional diagnostic sink. Currently emits `unresolved-component-tag` for
|
|
51
|
-
* authored-uppercase tags that miss every resolution lane
|
|
52
|
-
* the silent drop).
|
|
47
|
+
* authored-uppercase tags that miss every resolution lane.
|
|
53
48
|
*/
|
|
54
49
|
collector?: DiagnosticCollector;
|
|
55
50
|
/**
|
|
@@ -63,8 +58,6 @@ export type EmitVueTemplateOpts = {
|
|
|
63
58
|
sfcSymbol?: string;
|
|
64
59
|
};
|
|
65
60
|
/**
|
|
66
|
-
* parse5-based emitter for Vue SFC templates.
|
|
67
|
-
* `walkVueTemplate` pathway once Task 2.13 wires it into scan.ts. Until then
|
|
68
|
-
* the two coexist — the emitter is only driven by its unit tests.
|
|
61
|
+
* parse5-based emitter for Vue SFC templates.
|
|
69
62
|
*/
|
|
70
63
|
export declare function emitVueTemplate(opts: EmitVueTemplateOpts): void;
|
package/dist/emit-template.js
CHANGED
|
@@ -8,7 +8,7 @@ import { extractScriptImports } from "./script-imports.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Vue tag-form enumeration. A script-bound import resolves both via its
|
|
10
10
|
* lowercased exact form (`Card` → `card`) and its PascalCase→kebab form
|
|
11
|
-
* (`VBtn` → `v-btn`). Pre-computed once per import
|
|
11
|
+
* (`VBtn` → `v-btn`). Pre-computed once per import.
|
|
12
12
|
*/
|
|
13
13
|
export function vueTagForms(importName) {
|
|
14
14
|
const lowercased = importName.toLowerCase();
|
|
@@ -49,21 +49,19 @@ const VUE_BUILTIN_TAGS = new Set([
|
|
|
49
49
|
* consults `resolveSetupReference` (`@vue/compiler-core`). A repo that
|
|
50
50
|
* imports a component named `Transition` and writes `<Transition>` renders
|
|
51
51
|
* Vue's built-in, not the import — so attributing that call site to the
|
|
52
|
-
* import would report usage of a component the page never mounts
|
|
52
|
+
* import would report usage of a component the page never mounts.
|
|
53
53
|
*/
|
|
54
54
|
function isVueBuiltinTag(lowercasedTag) {
|
|
55
55
|
return VUE_BUILTIN_TAGS.has(lowercasedTag);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* parse5-based emitter for Vue SFC templates.
|
|
59
|
-
* `walkVueTemplate` pathway once Task 2.13 wires it into scan.ts. Until then
|
|
60
|
-
* the two coexist — the emitter is only driven by its unit tests.
|
|
58
|
+
* parse5-based emitter for Vue SFC templates.
|
|
61
59
|
*/
|
|
62
60
|
export function emitVueTemplate(opts) {
|
|
63
61
|
const parts = partsFromWrapper(opts.wrapper);
|
|
64
62
|
// SFC's default export is the component itself. Stamp it as a JSX-returning
|
|
65
63
|
// BindingDecl + a default ExportRecord so the engine can resolve template
|
|
66
|
-
// usages back to this SFC as their owner
|
|
64
|
+
// usages back to this SFC as their owner. Prefer the caller's
|
|
67
65
|
// pre-resolved symbol (which uses defineOptions / PascalCase filename for
|
|
68
66
|
// hash parity with `detectVueComponents`); fall back to the raw filename
|
|
69
67
|
// stem only when the caller didn't supply one (synthetic test fixtures).
|
|
@@ -102,8 +100,7 @@ export function emitVueTemplate(opts) {
|
|
|
102
100
|
}
|
|
103
101
|
// Side-effect imports (`import "pkg"`) carry no binding but signal that the
|
|
104
102
|
// SFC depends on the package's runtime; prime the lazy resolver so template
|
|
105
|
-
// tag references (`<x-button>`) can find the leaf's CEM later.
|
|
106
|
-
// the legacy walkVueTemplate priming step from src/index.ts.
|
|
103
|
+
// tag references (`<x-button>`) can find the leaf's CEM later.
|
|
107
104
|
if (opts.resolveLazyManifest) {
|
|
108
105
|
for (const source of sideEffectSources) {
|
|
109
106
|
opts.resolveLazyManifest(opts.file, source, "");
|
|
@@ -257,10 +254,7 @@ export function emitVueTemplate(opts) {
|
|
|
257
254
|
}
|
|
258
255
|
}
|
|
259
256
|
// Plain HTML (`<div>`, `<span>`) falls through without emission — never
|
|
260
|
-
// tracked, never diagnosed.
|
|
261
|
-
// resolution lane above also emits an `unresolved-component-tag`
|
|
262
|
-
// diagnostic when a collector is present (see above), but even then
|
|
263
|
-
// there is no graph emission — the miss is surfaced, not resolved.
|
|
257
|
+
// tracked, never diagnosed.
|
|
264
258
|
}
|
|
265
259
|
// Tracked elements push themselves as the lexical parent for their
|
|
266
260
|
// children; non-tracked elements (plain HTML, untracked tags) skip the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-template.js","sourceRoot":"","sources":["../src/emit-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAGvE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAK3D;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,UAAkB;IAC5C,MAAM,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,UAAU;SACrB,OAAO,CAAC,uBAAuB,EAAE,OAAO,CAAC;SACzC,WAAW,EAAE,CAAC;IACjB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAC9B;IACE,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,WAAW;CACZ,CAAC,OAAO,CAAC,WAAW,CAAC,CACvB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,S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,KAAK,CAAC,CAAC;QACrD,IAAI,MAAM;YAAE,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,GAA4B,CAAC,CAAC;AACtC,CAAC"}
|
package/dist/script-imports.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { FileImport, Warning } from "@component-compass/plugin-core";
|
|
|
3
3
|
export type ExtractOptions = {
|
|
4
4
|
file: string;
|
|
5
5
|
/**
|
|
6
|
-
* Pre-parsed script-block AST from the single-pass scan pipeline
|
|
6
|
+
* Pre-parsed script-block AST from the single-pass scan pipeline.
|
|
7
7
|
* scan.ts owns the oxc parse for the SFC's script block and threads the
|
|
8
8
|
* result through the parser plugin's wrapper.scriptProgram field.
|
|
9
9
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@component-compass/parser-vue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Consumer-scan parser for Vue Single-File Components. Detects component usages in .vue files.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"clean": "rm -rf dist .turbo"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@component-compass/ast-utils": "0.1.
|
|
31
|
-
"@component-compass/plugin-core": "0.1.
|
|
32
|
-
"@component-compass/reference-graph": "0.1.
|
|
30
|
+
"@component-compass/ast-utils": "0.1.20",
|
|
31
|
+
"@component-compass/plugin-core": "0.1.20",
|
|
32
|
+
"@component-compass/reference-graph": "0.1.21",
|
|
33
33
|
"@oxc-project/types": "0.130.0",
|
|
34
34
|
"@vue/compiler-sfc": "3.5.33",
|
|
35
35
|
"oxc-walker": "1.0.0",
|