@immense/vue-pom-generator 1.0.119 → 1.0.121
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/README.md +88 -0
- package/RELEASE_NOTES.md +23 -34
- package/class-generation/base-page.ts +2 -0
- package/class-generation/index.ts +41 -43
- package/class-generation/pointer.ts +101 -4
- package/dist/class-generation/base-page.d.ts +2 -0
- package/dist/class-generation/base-page.d.ts.map +1 -1
- package/dist/class-generation/index.d.ts +2 -0
- package/dist/class-generation/index.d.ts.map +1 -1
- package/dist/class-generation/pointer.d.ts +55 -1
- package/dist/class-generation/pointer.d.ts.map +1 -1
- package/dist/index.cjs +222 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +222 -137
- package/dist/index.mjs.map +1 -1
- package/dist/manifest-generator.d.ts +18 -0
- package/dist/manifest-generator.d.ts.map +1 -1
- package/dist/playwright/runtime.cjs +20 -4
- package/dist/playwright/runtime.cjs.map +1 -1
- package/dist/playwright/runtime.mjs +20 -4
- package/dist/playwright/runtime.mjs.map +1 -1
- package/dist/plugin/create-vue-pom-generator-plugins.d.ts.map +1 -1
- package/dist/plugin/internal/build-plugin.d.ts.map +1 -1
- package/dist/plugin/internal/dev-plugin.d.ts.map +1 -1
- package/dist/plugin/path-utils.d.ts +1 -0
- package/dist/plugin/path-utils.d.ts.map +1 -1
- package/dist/plugin/resolved-generation-options.d.ts +1 -0
- package/dist/plugin/resolved-generation-options.d.ts.map +1 -1
- package/dist/plugin/types.d.ts +6 -0
- package/dist/plugin/types.d.ts.map +1 -1
- package/dist/router-introspection.d.ts +10 -1
- package/dist/router-introspection.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,11 @@ export interface RouterIntrospectionOptions {
|
|
|
14
14
|
sourceDirs: string[];
|
|
15
15
|
extraRoots?: string[];
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* When true, every route meta entry also lists `componentFiles`: the source files of all
|
|
19
|
+
* components the route renders (parent route components first, every named view included).
|
|
20
|
+
*/
|
|
21
|
+
collectComponentFiles?: boolean;
|
|
17
22
|
}
|
|
18
23
|
type RouterModuleShimPrimitive = string | number | boolean | null | undefined;
|
|
19
24
|
export type RouterModuleShimFunction = (...args: Array<object | RouterModuleShimPrimitive>) => object | RouterModuleShimPrimitive;
|
|
@@ -25,19 +30,23 @@ export interface RouterIntrospectionResult {
|
|
|
25
30
|
componentName: string;
|
|
26
31
|
/** Vue Router route `name` (when declared). Used for runtime `router.push({ name, params })`. */
|
|
27
32
|
name: string | null;
|
|
33
|
+
/** Route path pattern as declared (e.g. `/users/:id`). */
|
|
34
|
+
path: string;
|
|
28
35
|
pathTemplate: string;
|
|
29
36
|
params: Array<{
|
|
30
37
|
name: string;
|
|
31
38
|
optional: boolean;
|
|
32
39
|
}>;
|
|
33
40
|
query: string[];
|
|
41
|
+
/** Absolute source files the route renders, outermost first. Set when `collectComponentFiles` is on. */
|
|
42
|
+
componentFiles?: string[];
|
|
34
43
|
}>;
|
|
35
44
|
}
|
|
36
45
|
/** Builds the opaque placeholder token substituted into a route template for a named param. */
|
|
37
46
|
export declare function getParamToken(name: string): string;
|
|
38
47
|
export declare function introspectNuxtPages(projectRoot: string, options?: {
|
|
39
48
|
pageDirs?: string[];
|
|
40
|
-
}): Promise<RouterIntrospectionResult>;
|
|
49
|
+
} & Pick<RouterIntrospectionOptions, "collectComponentFiles">): Promise<RouterIntrospectionResult>;
|
|
41
50
|
/**
|
|
42
51
|
* Loads this repo's `src/router.ts` via Vite's SSR module loader and asks Vue Router
|
|
43
52
|
* for its normalized routes.
|
|
@@ -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,0BA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