@absolutejs/absolute 0.19.0-beta.973 → 0.19.0-beta.975
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 +486 -465
- package/dist/build.js.map +7 -7
- package/dist/index.js +496 -475
- package/dist/index.js.map +7 -7
- package/dist/src/build/emitAngularProvidersFiles.d.ts +2 -2
- package/dist/src/build/runAngularHandlerScan.d.ts +9 -0
- package/dist/src/build/scanAngularPageRoutes.d.ts +0 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AngularProvidersImport } from './parseAngularConfigImports';
|
|
2
2
|
import type { AngularHandlerCall } from './scanAngularHandlerCalls';
|
|
3
|
-
import {
|
|
3
|
+
import type { AngularPageRoutes } from './scanAngularPageRoutes';
|
|
4
4
|
export type EmittedProvidersFile = {
|
|
5
5
|
manifestKey: string;
|
|
6
6
|
/** Absolute path to the emitted file. */
|
|
@@ -21,7 +21,7 @@ export type EmitAngularProvidersOptions = {
|
|
|
21
21
|
* import. */
|
|
22
22
|
providersImport?: AngularProvidersImport | null;
|
|
23
23
|
};
|
|
24
|
-
export declare const emitAngularProvidersFiles: (projectRoot: string, calls: AngularHandlerCall[], pageRoutes: AngularPageRoutes[], options?: EmitAngularProvidersOptions) => EmittedProvidersFile[];
|
|
24
|
+
export declare const emitAngularProvidersFiles: (projectRoot: string, angularDir: string, calls: AngularHandlerCall[], pageRoutes: AngularPageRoutes[], options?: EmitAngularProvidersOptions) => EmittedProvidersFile[];
|
|
25
25
|
/** Absolute path of the directory the emitter writes to. Exposed so other
|
|
26
26
|
* build steps (`compileAngular`'s client wrapper, the SSR `pageHandler`)
|
|
27
27
|
* can compute relative paths to the generated files without hard-coding
|
|
@@ -8,5 +8,14 @@ export type AngularHandlerScanResult = {
|
|
|
8
8
|
/** Set of manifest keys that have a generated providers file the
|
|
9
9
|
* client bundle can import. */
|
|
10
10
|
manifestKeysWithProviders: Set<string>;
|
|
11
|
+
/** Source path of the user's `angular.providers` binding (from
|
|
12
|
+
* `absolute.config.ts`), if any. The build orchestrator adds this
|
|
13
|
+
* to the angular compile entry list so `compileAngularFileJIT`
|
|
14
|
+
* walks the providers chain (including any transitively-imported
|
|
15
|
+
* components like a dynamically-mounted consent banner) and inlines
|
|
16
|
+
* every `templateUrl`/`styleUrl` it finds. Without this, the SSR
|
|
17
|
+
* loader's dynamic-import of `.providers.ts` would chase raw `.ts`
|
|
18
|
+
* sources whose component templates JIT-fetches via `fetch()`. */
|
|
19
|
+
angularEntryAddons: string[];
|
|
11
20
|
};
|
|
12
21
|
export declare const runAngularHandlerScan: (projectRoot: string, angularDirectory: string) => AngularHandlerScanResult;
|
|
@@ -8,7 +8,3 @@ export type AngularPageRoutes = {
|
|
|
8
8
|
hasRoutes: boolean;
|
|
9
9
|
};
|
|
10
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