@absolutejs/absolute 0.19.0-beta.968 → 0.19.0-beta.969
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +872 -746
- package/dist/build.js.map +7 -6
- package/dist/index.js +908 -782
- package/dist/index.js.map +7 -6
- package/dist/src/build/emitAngularProvidersFiles.d.ts +2 -1
- package/dist/src/build/runAngularHandlerScan.d.ts +3 -1
- package/dist/src/build/scanAngularPageRoutes.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AngularHandlerCall } from './scanAngularHandlerCalls';
|
|
2
|
+
import { type AngularPageRoutes } from './scanAngularPageRoutes';
|
|
2
3
|
export type EmittedProvidersFile = {
|
|
3
4
|
manifestKey: string;
|
|
4
5
|
/** Absolute path to the emitted file. */
|
|
@@ -10,7 +11,7 @@ export type EmittedProvidersFile = {
|
|
|
10
11
|
/** `true` when the call carried a `providers:` argument. */
|
|
11
12
|
hasProviders: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const emitAngularProvidersFiles: (projectRoot: string, calls: AngularHandlerCall[]) => EmittedProvidersFile[];
|
|
14
|
+
export declare const emitAngularProvidersFiles: (projectRoot: string, calls: AngularHandlerCall[], pageRoutes: AngularPageRoutes[]) => EmittedProvidersFile[];
|
|
14
15
|
/** Absolute path of the directory the emitter writes to. Exposed so other
|
|
15
16
|
* build steps (`compileAngular`'s client wrapper, the SSR `pageHandler`)
|
|
16
17
|
* can compute relative paths to the generated files without hard-coding
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type EmittedProvidersFile } from './emitAngularProvidersFiles';
|
|
2
2
|
import { type AngularHandlerCall } from './scanAngularHandlerCalls';
|
|
3
|
+
import { type AngularPageRoutes } from './scanAngularPageRoutes';
|
|
3
4
|
export type AngularHandlerScanResult = {
|
|
4
5
|
calls: AngularHandlerCall[];
|
|
6
|
+
pageRoutes: AngularPageRoutes[];
|
|
5
7
|
providersFiles: EmittedProvidersFile[];
|
|
6
8
|
/** Set of manifest keys that have a generated providers file the
|
|
7
9
|
* client bundle can import. */
|
|
8
10
|
manifestKeysWithProviders: Set<string>;
|
|
9
11
|
};
|
|
10
|
-
export declare const runAngularHandlerScan: (projectRoot: string) => AngularHandlerScanResult;
|
|
12
|
+
export declare const runAngularHandlerScan: (projectRoot: string, angularDirectory: string) => AngularHandlerScanResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type AngularPageRoutes = {
|
|
2
|
+
/** Absolute path of the page module. */
|
|
3
|
+
pageFile: string;
|
|
4
|
+
/** Manifest key (PascalCase of basename) — `home/home.ts` → `Home`. */
|
|
5
|
+
manifestKey: string;
|
|
6
|
+
/** True when the page module top-level declares
|
|
7
|
+
* `export const routes` (or `let`/`var`). */
|
|
8
|
+
hasRoutes: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const scanAngularPageRoutes: (pagesRoot: string) => AngularPageRoutes[];
|
|
11
|
+
/** Path the emitter uses as the import source for the page's routes —
|
|
12
|
+
* relative from the generated providers file (under
|
|
13
|
+
* `.absolutejs/generated/angular/providers/`) back to the page module. */
|
|
14
|
+
export declare const relativeRoutesImport: (emittedFromDir: string, pageFile: string) => string;
|
package/package.json
CHANGED