@immense/vue-pom-generator 1.0.83 → 1.0.85

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.
Files changed (51) hide show
  1. package/RELEASE_NOTES.md +57 -30
  2. package/class-generation/index.ts +234 -26
  3. package/class-generation/playwright-types.ts +120 -2
  4. package/dist/class-generation/index.d.ts +13 -0
  5. package/dist/class-generation/index.d.ts.map +1 -1
  6. package/dist/class-generation/playwright-types.d.ts +256 -2
  7. package/dist/class-generation/playwright-types.d.ts.map +1 -1
  8. package/dist/compiler-metadata-utils.d.ts.map +1 -1
  9. package/dist/eslint/index.cjs +16 -3
  10. package/dist/eslint/index.cjs.map +1 -1
  11. package/dist/eslint/index.mjs +16 -3
  12. package/dist/eslint/index.mjs.map +1 -1
  13. package/dist/eslint/no-raw-playwright-apis.d.ts.map +1 -1
  14. package/dist/eslint.config.d.ts.map +1 -1
  15. package/dist/index.cjs +163 -49
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.mjs +163 -49
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/pom-patterns.d.ts +28 -4
  20. package/dist/pom-patterns.d.ts.map +1 -1
  21. package/dist/router-introspection.d.ts +5 -0
  22. package/dist/router-introspection.d.ts.map +1 -1
  23. package/dist/tests/annotator-runtime-helpers.test.d.ts +2 -0
  24. package/dist/tests/annotator-runtime-helpers.test.d.ts.map +1 -0
  25. package/dist/tests/broad/accessibility-audit-ts.test.d.ts +2 -0
  26. package/dist/tests/broad/accessibility-audit-ts.test.d.ts.map +1 -0
  27. package/dist/tests/broad/class-generation-base-page-ts.test.d.ts +2 -0
  28. package/dist/tests/broad/class-generation-base-page-ts.test.d.ts.map +1 -0
  29. package/dist/tests/broad/compiler-metadata-utils-ts.test.d.ts +2 -0
  30. package/dist/tests/broad/compiler-metadata-utils-ts.test.d.ts.map +1 -0
  31. package/dist/tests/broad/helpers/fake-runtime.d.ts +162 -0
  32. package/dist/tests/broad/helpers/fake-runtime.d.ts.map +1 -0
  33. package/dist/tests/broad/manifest-generator-ts.test.d.ts +2 -0
  34. package/dist/tests/broad/manifest-generator-ts.test.d.ts.map +1 -0
  35. package/dist/tests/broad/metadata-collector-ts.test.d.ts +2 -0
  36. package/dist/tests/broad/metadata-collector-ts.test.d.ts.map +1 -0
  37. package/dist/tests/broad/plugin-logger-ts.test.d.ts +2 -0
  38. package/dist/tests/broad/plugin-logger-ts.test.d.ts.map +1 -0
  39. package/dist/tests/broad/plugin-resolved-generation-options-ts.test.d.ts +2 -0
  40. package/dist/tests/broad/plugin-resolved-generation-options-ts.test.d.ts.map +1 -0
  41. package/dist/tests/broad/plugin-runtime-annotator-format-ts.test.d.ts +2 -0
  42. package/dist/tests/broad/plugin-runtime-annotator-format-ts.test.d.ts.map +1 -0
  43. package/dist/tests/broad/typescript-codegen-ts.test.d.ts +2 -0
  44. package/dist/tests/broad/typescript-codegen-ts.test.d.ts.map +1 -0
  45. package/dist/tests/helpers/typed-mocks.d.ts +58 -0
  46. package/dist/tests/helpers/typed-mocks.d.ts.map +1 -0
  47. package/dist/transform.d.ts +36 -5
  48. package/dist/transform.d.ts.map +1 -1
  49. package/dist/utils.d.ts +261 -2
  50. package/dist/utils.d.ts.map +1 -1
  51. package/package.json +1 -1
@@ -4,16 +4,28 @@ export declare function isParameterizedPomPattern(kind: PomPatternKind): boolean
4
4
  export interface PomStringPattern {
5
5
  formatted: string;
6
6
  patternKind: PomPatternKind;
7
- /** Unique `${...}` variable names referenced by `formatted`, in first-occurrence order. */
7
+ /**
8
+ * Unique `${...}` variable names referenced by `formatted`, in first-occurrence order.
9
+ *
10
+ * Supplied explicitly at construction — never re-derived from `formatted`. The
11
+ * construction site knows which variables it inserted; `formatted` keeps the
12
+ * `${...}` text only for emission.
13
+ */
8
14
  templateVariables: string[];
9
15
  }
10
16
  export interface PomPatternBinding {
11
17
  expression: string;
12
18
  setupStatements: string[];
13
19
  }
14
- export declare function inferPomPatternKindFromFormattedString(value: string): PomPatternKind;
15
- export declare function createPomStringPattern(formatted: string, patternKind: PomPatternKind): PomStringPattern;
16
- export declare function inferPomStringPattern(formatted: string): PomStringPattern;
20
+ /**
21
+ * Construct a `PomStringPattern` from explicit metadata.
22
+ *
23
+ * `templateVariables` is required and is the sole source of truth for which
24
+ * method-parameter slots the pattern exposes. It is never inferred from
25
+ * `formatted` — pass `[]` for static patterns, or the variable names (e.g.
26
+ * `["key"]`, `["value"]`) for parameterized ones.
27
+ */
28
+ export declare function createPomStringPattern(formatted: string, patternKind: PomPatternKind, templateVariables: readonly string[]): PomStringPattern;
17
29
  export declare function getPomPatternVariables(patterns: readonly PomStringPattern[], options?: {
18
30
  omit?: readonly string[];
19
31
  }): string[];
@@ -23,6 +35,18 @@ export declare function orderPomPatternParameters(params: PomParameterInput, pat
23
35
  export declare function getIndexedPomPatternVariable(pattern: PomStringPattern): string | null;
24
36
  export declare function hasPomPatternVariables(pattern: PomStringPattern): boolean;
25
37
  export declare function toTypeScriptPomPatternExpression(pattern: PomStringPattern): string;
38
+ /**
39
+ * Render a pattern as a C# interpolated-string expression.
40
+ *
41
+ * For static patterns this is a JSON-quoted literal. For parameterized patterns
42
+ * it converts our `${var}` placeholder format into C# interpolation braces
43
+ * (`{var}`) and wraps the result as a C# interpolated string. This converts
44
+ * placeholder syntax in a generated pattern string, not source code.
45
+ *
46
+ * @example
47
+ * toCSharpPomPatternExpression(createPomStringPattern("submit", "static", [])) // "\"submit\""
48
+ * toCSharpPomPatternExpression(createPomStringPattern("item-${key}", "parameterized", ["key"])) // "$\"item-{key}\""
49
+ */
26
50
  export declare function toCSharpPomPatternExpression(pattern: PomStringPattern): string;
27
51
  export declare function bindTypeScriptPomPattern(pattern: PomStringPattern, variableName: string): PomPatternBinding;
28
52
  export declare function bindCSharpPomPattern(pattern: PomStringPattern, variableName: string): PomPatternBinding;
@@ -1 +1 @@
1
- {"version":3,"file":"pom-patterns.d.ts","sourceRoot":"","sources":["../pom-patterns.ts"],"names":[],"mappings":"AAAA,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AAE,SAAS,MAAM,EAAE,CAAA;CAAO,GACzC,MAAM,EAAE,CAgBV;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,iBAAiB,EACzB,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EACrC,OAAO,GAAE;IACP,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACrB,GACL,gBAAgB,EAAE,CAmCpB;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAarF;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAEzE;AAED,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAIlF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAY9E;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,GAAG,iBAAiB,CAU3G;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,GAAG,iBAAiB,CAUvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAE/F;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAkBtH"}
@@ -23,6 +23,8 @@ export interface RouterIntrospectionResult {
23
23
  routePathMap: Map<string, string>;
24
24
  routeMetaEntries: Array<{
25
25
  componentName: string;
26
+ /** Vue Router route `name` (when declared). Used for runtime `router.push({ name, params })`. */
27
+ name: string | null;
26
28
  pathTemplate: string;
27
29
  params: Array<{
28
30
  name: string;
@@ -31,6 +33,9 @@ export interface RouterIntrospectionResult {
31
33
  query: string[];
32
34
  }>;
33
35
  }
36
+ export declare const PARAM_TOKEN_PREFIX = "__VUE_TESTID_PARAM__";
37
+ /** Builds the opaque placeholder token substituted into a route template for a named param. */
38
+ export declare function getParamToken(name: string): string;
34
39
  export declare function introspectNuxtPages(projectRoot: string, options?: {
35
40
  pageDirs?: string[];
36
41
  }): Promise<RouterIntrospectionResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"router-introspection.d.ts","sourceRoot":"","sources":["../router-introspection.ts"],"names":[],"mappings":"AAqCA,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACzD;;;OAGG;IACH,eAAe,CAAC,EAAE;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC;CACH;AAED,KAAK,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,yBAAyB,CAAC,KAAK,MAAM,GAAG,yBAAyB,CAAC;AAClI,MAAM,MAAM,0BAA0B,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAmP7F,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,gBAAgB,EAAE,KAAK,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAE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B,aAAa,EAAE,MAAM,CAAC;QACtB,iGAAiG;QACjG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;QACnD,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC,CAAC;CACJ;AA4HD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AAEzD,+FAA+F;AAC/F,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,UAEzC;AAykBD,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GACpC,OAAO,CAAC,yBAAyB,CAAC,CA+EpC;AAED;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAC1C,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,yBAAyB,CAAC,CAwHpC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=annotator-runtime-helpers.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotator-runtime-helpers.test.d.ts","sourceRoot":"","sources":["../../tests/annotator-runtime-helpers.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=accessibility-audit-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessibility-audit-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/accessibility-audit-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=class-generation-base-page-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-generation-base-page-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/class-generation-base-page-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=compiler-metadata-utils-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler-metadata-utils-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/compiler-metadata-utils-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,162 @@
1
+ import type { Screencast } from "playwright";
2
+ import { JSDOM } from "jsdom";
3
+ import type { BasePageLocator, BasePagePage } from "../../../class-generation/playwright-types";
4
+ export interface BoundingBox {
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ /**
11
+ * Minimal Playwright `Keyboard` double: records `type` calls so tests can
12
+ * assert on them, and no-ops the remaining members so it satisfies the full
13
+ * `Keyboard` interface that {@link BasePagePage.keyboard} requires.
14
+ */
15
+ export declare class FakeKeyboard {
16
+ readonly typed: Array<{
17
+ text: string;
18
+ delay: number;
19
+ }>;
20
+ type(text: string, options: {
21
+ delay: number;
22
+ }): Promise<void>;
23
+ down(_key: string): Promise<void>;
24
+ up(_key: string): Promise<void>;
25
+ press(_key: string, _options?: {
26
+ delay?: number;
27
+ }): Promise<void>;
28
+ insertText(_text: string): Promise<void>;
29
+ }
30
+ export interface FakeElement {
31
+ tagName: string;
32
+ isContentEditable?: boolean;
33
+ }
34
+ /**
35
+ * Minimal Playwright `Page` double satisfying the narrow {@link BasePagePage}
36
+ * interface. It backs `evaluate` with a real JSDOM document (swapped onto
37
+ * `globalThis` for the call) so the runtime's in-page `evaluate` functions run
38
+ * against a DOM. Stateful counters (`waitForSelectorCalls`, `hoverCalls`, …)
39
+ * let tests assert on the page-level interactions.
40
+ */
41
+ export declare class FakePage implements BasePagePage {
42
+ readonly keyboard: FakeKeyboard;
43
+ readonly screencast: Screencast;
44
+ dom: JSDOM;
45
+ urlValue: string;
46
+ isVisibleResult: boolean;
47
+ textContentResult: string | null;
48
+ waitForSelectorCalls: Array<{
49
+ selector: string;
50
+ options?: {
51
+ state?: "attached" | "detached" | "visible" | "hidden";
52
+ timeout?: number;
53
+ strict?: boolean;
54
+ };
55
+ }>;
56
+ hoverCalls: string[];
57
+ selectOptionCalls: Array<{
58
+ selector: string;
59
+ value: string;
60
+ }>;
61
+ constructor();
62
+ setViewport(width: number, height: number): void;
63
+ url(): string;
64
+ goto(_url: string): Promise<null>;
65
+ isVisible(_selector: string): Promise<boolean>;
66
+ textContent(_selector: string): Promise<string | null>;
67
+ waitForSelector(selector: string, options?: {
68
+ state?: "attached" | "detached" | "visible" | "hidden";
69
+ timeout?: number;
70
+ strict?: boolean;
71
+ }): Promise<void>;
72
+ hover(selector: string): Promise<void>;
73
+ selectOption(selector: string, value: string): Promise<string[]>;
74
+ locator(selector: string): FakeLocator;
75
+ evaluate<TResult, TArg = never>(fn: ((arg: TArg) => TResult | Promise<TResult>) | string, arg?: TArg): Promise<TResult>;
76
+ waitForTimeout(_milliseconds: number): Promise<void>;
77
+ }
78
+ /**
79
+ * Minimal Playwright `Locator` double satisfying the narrow {@link BasePageLocator}
80
+ * interface. Stateful counters (`clicks`, `clears`, `fills`, `scrollCalls`) let
81
+ * tests assert on interactions; `descendant` lets a locator resolve nested
82
+ * editable elements for the vue-select / fill paths.
83
+ */
84
+ export declare class FakeLocator implements BasePageLocator {
85
+ readonly element: FakeElement;
86
+ readonly options: {
87
+ boundingBox?: BoundingBox;
88
+ count?: number;
89
+ testId?: string;
90
+ selector?: string;
91
+ };
92
+ clicks: number;
93
+ clears: number;
94
+ readonly fills: string[];
95
+ descendant?: FakeLocator;
96
+ lastClickOptions: {
97
+ delay?: number;
98
+ force?: boolean;
99
+ } | undefined;
100
+ scrollCalls: number;
101
+ constructor(element: FakeElement, options?: {
102
+ boundingBox?: BoundingBox;
103
+ count?: number;
104
+ testId?: string;
105
+ selector?: string;
106
+ });
107
+ first(): FakeLocator;
108
+ last(): FakeLocator;
109
+ nth(_index: number): FakeLocator;
110
+ locator(selector: string): FakeLocator;
111
+ describe(_description: string): FakeLocator;
112
+ filter(): FakeLocator;
113
+ getByLabel(_text: string | RegExp, _options?: {
114
+ exact?: boolean;
115
+ }): FakeLocator;
116
+ getByText(_text: string | RegExp, _options?: {
117
+ exact?: boolean;
118
+ }): FakeLocator;
119
+ getByPlaceholder(_text: string | RegExp, _options?: {
120
+ exact?: boolean;
121
+ }): FakeLocator;
122
+ getByAltText(_text: string | RegExp, _options?: {
123
+ exact?: boolean;
124
+ }): FakeLocator;
125
+ getByTitle(_text: string | RegExp, _options?: {
126
+ exact?: boolean;
127
+ }): FakeLocator;
128
+ getByTestId(_testId: string | RegExp): FakeLocator;
129
+ getByRole(_role: string, _options?: Record<string, boolean | number | string | RegExp>): FakeLocator;
130
+ count(): Promise<number>;
131
+ scrollIntoViewIfNeeded(): Promise<void>;
132
+ boundingBox(): Promise<BoundingBox | null>;
133
+ getAttribute(name: string): Promise<string | null>;
134
+ click(options?: {
135
+ delay?: number;
136
+ force?: boolean;
137
+ }): Promise<void>;
138
+ clear(): Promise<void>;
139
+ fill(text: string): Promise<void>;
140
+ hover(): Promise<void>;
141
+ press(_key: string): Promise<void>;
142
+ check(): Promise<void>;
143
+ uncheck(): Promise<void>;
144
+ waitFor(): Promise<void>;
145
+ isVisible(): Promise<boolean>;
146
+ isHidden(): Promise<boolean>;
147
+ isEnabled(): Promise<boolean>;
148
+ isDisabled(): Promise<boolean>;
149
+ textContent(): Promise<string | null>;
150
+ innerText(): Promise<string>;
151
+ innerHTML(): Promise<string>;
152
+ selectOption(): Promise<string[]>;
153
+ type(_text: string): Promise<void>;
154
+ evaluate<R>(fn: (element: FakeElement) => R | Promise<R>): Promise<R>;
155
+ private isEditable;
156
+ }
157
+ export declare function createVisibleElement(page: FakePage, id: string, rect: BoundingBox, options?: {
158
+ parent?: HTMLElement;
159
+ tagName?: string;
160
+ testId?: string;
161
+ }): HTMLElement;
162
+ //# sourceMappingURL=fake-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fake-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E,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAElC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAExB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAExB,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7B,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAI5B,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7B,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAI9B,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIrC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IAI5B,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IAI5B,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAIjC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAElC,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI3E,OAAO,CAAC,UAAU;CAInB;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,QAAQ,EACd,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,WAAW,EACjB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,eAa1E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=manifest-generator-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-generator-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/manifest-generator-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metadata-collector-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata-collector-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/metadata-collector-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugin-logger-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-logger-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/plugin-logger-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugin-resolved-generation-options-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-resolved-generation-options-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/plugin-resolved-generation-options-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugin-runtime-annotator-format-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-runtime-annotator-format-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/plugin-runtime-annotator-format-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=typescript-codegen-ts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-codegen-ts.test.d.ts","sourceRoot":"","sources":["../../../tests/broad/typescript-codegen-ts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
1
+ import type { Plugin, PluginOption } from "vite";
2
+ import { type AttributeNode, type DirectiveNode, type ElementNode, type ExpressionNode, type SimpleExpressionNode, type TextNode, type TransformContext, type VNodeCall } from "@vue/compiler-core";
3
+ /**
4
+ * A complete `SimpleExpressionNode`. `isStatic` defaults to `true` (a literal
5
+ * string); pass `false` for a dynamic binding expression.
6
+ */
7
+ export declare function makeSimpleExpression(content: string, isStatic?: boolean): SimpleExpressionNode;
8
+ /** A complete `TextNode` (static text content). */
9
+ export declare function makeTextNode(content: string): TextNode;
10
+ /** A complete `AttributeNode` (a static HTML attribute, optionally with a value). */
11
+ export declare function makeAttributeNode(name: string, value?: string): AttributeNode;
12
+ /** A complete `DirectiveNode` (e.g. `:data-testid="…"`, `@click="…"`). */
13
+ export declare function makeDirectiveNode(name: string, opts?: {
14
+ exp?: ExpressionNode;
15
+ arg?: ExpressionNode;
16
+ modifiers?: SimpleExpressionNode[];
17
+ }): DirectiveNode;
18
+ /**
19
+ * A complete `VNodeCall` with neutral defaults. Override `patchFlag`,
20
+ * `dynamicProps`, `tag`, etc. per test. Used as an element's `codegenNode`.
21
+ */
22
+ export declare function makeVNodeCall(overrides?: Partial<VNodeCall>): VNodeCall;
23
+ /**
24
+ * A complete `ElementNode` parsed from a minimal real template (so every
25
+ * required field — `loc`, `ns`, `tagType`, `codegenNode`, … — is populated),
26
+ * with `overrides` applied on top. Commonly overridden: `tag`, `props`,
27
+ * `children`, and `codegenNode` (via {@link makeVNodeCall}).
28
+ */
29
+ export declare function makeElementNode(overrides?: Partial<ElementNode>): ElementNode;
30
+ /**
31
+ * A real `TransformContext` (via `createTransformContext` + `baseParse`).
32
+ * Replaces `transform(node, {} as any)` — the second argument to a `NodeTransform`
33
+ * is a `TransformContext`, and constructing a real one avoids any cast.
34
+ */
35
+ export declare function makeTransformContext(): TransformContext;
36
+ /**
37
+ * Narrow a `PluginOption` (which may be an array, `false`, `null`, or
38
+ * `undefined`) to a single `Plugin` via a runtime check — no type assertion.
39
+ * Throws if the option is not exactly one plugin, which surfaces test setup
40
+ * mistakes loudly instead of silently mocking against the wrong shape.
41
+ */
42
+ export declare function asSinglePlugin(plugin: PluginOption): Plugin;
43
+ /**
44
+ * Unwrap a Vite `ObjectHook<T>` to its bare, callable function. Vite types each
45
+ * plugin hook as `ObjectHook<T> = T | { handler: T; order?: ... }` (and a
46
+ * filter-augmented variant for some hooks); only the bare-function form is
47
+ * callable, so callers must normalize before invoking. This performs the
48
+ * runtime `function` vs `{ handler }` check and returns the function with its
49
+ * `this` parameter stripped (`OmitThisParameter`) so it can be called bare —
50
+ * the test doubles under test capture their dependencies via closure and never
51
+ * read `this`. Returns `undefined` for an absent hook, so `?.()` chains keep
52
+ * working.
53
+ */
54
+ export declare function hookFn<H extends (...args: never[]) => void>(hook: H | {
55
+ handler: H;
56
+ order?: "pre" | "post" | null;
57
+ } | undefined | null): OmitThisParameter<H> | undefined;
58
+ //# sourceMappingURL=typed-mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typed-mocks.d.ts","sourceRoot":"","sources":["../../../tests/helpers/typed-mocks.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAKf,MAAM,oBAAoB,CAAC;AAU5B;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,UAAO,GAAG,oBAAoB,CAQ3F;AAED,mDAAmD;AACnD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CAEtD;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAQ7E;AAED,0EAA0E;AAC1E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IAAE,GAAG,CAAC,EAAE,cAAc,CAAC;IAAC,GAAG,CAAC,EAAE,cAAc,CAAC;IAAC,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAA;CAAO,GAC5F,aAAa,CASf;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,SAAS,GAAE,OAAO,CAAC,SAAS,CAAM,GAAG,SAAS,CAe3E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CAajF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,gBAAgB,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAK3D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,IAAI,EACzD,IAAI,EAAE,CAAC,GAAG;IAAE,OAAO,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,SAAS,GAAG,IAAI,GACzE,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CAMlC"}
@@ -1,5 +1,8 @@
1
- import type { NodeTransform } from "@vue/compiler-core";
2
- import { IComponentDependencies, NativeWrappersMap } from "./utils";
1
+ import type { ElementNode, NodeTransform } from "@vue/compiler-core";
2
+ import type { AttributeValue, HierarchyMap } from "./utils";
3
+ import { IComponentDependencies, NativeWrappersMap, NativeRole } from "./utils";
4
+ declare function toKebabCaseTag(tag: string): string;
5
+ declare function getNativeHtmlControlRole(element: ElementNode): NativeRole | null;
3
6
  /**
4
7
  * Normalizes label text into the stable string used for generated control names.
5
8
  *
@@ -7,9 +10,21 @@ import { IComponentDependencies, NativeWrappersMap } from "./utils";
7
10
  * to this helper instead of adding broader string-scanning logic.
8
11
  */
9
12
  declare function normalizeControlLabelText(value: string | null): string | null;
10
- export declare const __internal: {
11
- normalizeControlLabelText: typeof normalizeControlLabelText;
12
- };
13
+ declare function getLabelNodeText(labelNode: ElementNode): string | null;
14
+ declare function getAssociatedLabelText(element: ElementNode, hierarchyMap: HierarchyMap): string | null;
15
+ declare function normalizeSearchRoots(wrapperSearchRoots: string[]): string[];
16
+ declare function buildVueSfcPathIndex(searchRoots: string[]): Map<string, string[]>;
17
+ declare function tryResolveSfcPathForTag(tag: string, vueFilesPathMap?: Map<string, string>, wrapperSearchRoots?: string[]): string | null;
18
+ declare function trimLeadingSeparators(value: string): string;
19
+ declare function getConditionalDirectiveInfo(element: ElementNode): {
20
+ kind: "if" | "else-if" | "else";
21
+ source: string;
22
+ } | null;
23
+ declare function tryExtractStableHintFromConditionalExpressionSource(source: string): string | null;
24
+ declare function tryInferNativeWrapperRoleFromSfc(tag: string, vueFilesPathMap?: Map<string, string>, wrapperSearchRoots?: string[], seenTags?: Set<string>): {
25
+ role: NativeRole;
26
+ } | null;
27
+ declare function tryWrapClickDirectiveForTestEvents(element: ElementNode, testIdAttribute: string, resolvedRuntimeTestId: AttributeValue | null | undefined): void;
13
28
  /**
14
29
  * Cross-file key context: when a child component is rendered inside a keyed slot scope,
15
30
  * the parent records which prop receives the slot data. The child then uses that prop
@@ -37,5 +52,21 @@ export declare function createTestIdTransform(componentName: string, componentHi
37
52
  /** Shared registry for cross-file keyed slot context. */
38
53
  crossFileKeyRegistry?: CrossFileKeyRegistry;
39
54
  }): NodeTransform;
55
+ export declare const __internal: {
56
+ normalizeControlLabelText: typeof normalizeControlLabelText;
57
+ toKebabCaseTag: typeof toKebabCaseTag;
58
+ trimLeadingSeparators: typeof trimLeadingSeparators;
59
+ tryExtractStableHintFromConditionalExpressionSource: typeof tryExtractStableHintFromConditionalExpressionSource;
60
+ normalizeSearchRoots: typeof normalizeSearchRoots;
61
+ buildVueSfcPathIndex: typeof buildVueSfcPathIndex;
62
+ tryResolveSfcPathForTag: typeof tryResolveSfcPathForTag;
63
+ tryInferNativeWrapperRoleFromSfc: typeof tryInferNativeWrapperRoleFromSfc;
64
+ getConditionalDirectiveInfo: typeof getConditionalDirectiveInfo;
65
+ getNativeHtmlControlRole: typeof getNativeHtmlControlRole;
66
+ getLabelNodeText: typeof getLabelNodeText;
67
+ getAssociatedLabelText: typeof getAssociatedLabelText;
68
+ tryWrapClickDirectiveForTestEvents: typeof tryWrapClickDirectiveForTestEvents;
69
+ resetCaches: () => void;
70
+ };
40
71
  export {};
41
72
  //# sourceMappingURL=transform.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EAUd,MAAM,oBAAoB,CAAC;AAU5B,OAAO,EA2BL,sBAAsB,EACtB,iBAAiB,EAUlB,MAAM,SAAS,CAAC;AA8EjB;;;;;GAKG;AAEH,iBAAS,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAOtE;AAqED,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAopBF;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEvD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,MAAM,EACrB,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,EAC1D,cAAc,EAAE,iBAAiB,YAAK,EACtC,kBAAkB,EAAE,MAAM,EAAE,YAAK,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE;IACP,kBAAkB,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACpD,2BAA2B,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACjD,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EA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