full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,4 +1,9 @@
import type { ComponentInstance, MiddlewareHandler, RewritePayload, RouteData, RuntimeMode, SSRLoadedRenderer, SSRManifest, SSRResult } from '../@types/astro.js';
import type { ZodType } from 'zod';
import type { ActionAccept, ActionClient } from '../actions/runtime/virtual/server.js';
import type { ComponentInstance } from '../types/astro.js';
import type { MiddlewareHandler, RewritePayload } from '../types/public/common.js';
import type { RuntimeMode } from '../types/public/config.js';
import type { RouteData, SSRActions, SSRLoadedRenderer, SSRManifest, SSRResult } from '../types/public/internal.js';
import type { Logger } from './logger/core.js';
import { RouteCache } from './render/route-cache.js';
/**
@@ -11,9 +16,9 @@ export declare abstract class Pipeline {
readonly logger: Logger;
readonly manifest: SSRManifest;
/**
* "development" or "production"
* "development" or "production" only
*/
readonly mode: RuntimeMode;
readonly runtimeMode: RuntimeMode;
readonly renderers: SSRLoadedRenderer[];
readonly resolve: (s: string) => Promise<string>;
/**
@@ -29,7 +34,7 @@ export declare abstract class Pipeline {
readonly inlinedScripts: Map<string, string>;
readonly compressHTML: boolean;
readonly i18n: import("./app/types.js").SSRManifestI18n | undefined;
readonly middleware: (() => Promise<import("../@types/astro.js").AstroMiddlewareInstance> | import("../@types/astro.js").AstroMiddlewareInstance) | undefined;
readonly middleware: (() => Promise<import("../types/public/common.js").AstroMiddlewareInstance> | import("../types/public/common.js").AstroMiddlewareInstance) | undefined;
readonly routeCache: RouteCache;
/**
* Used for `Astro.site`.
@@ -45,13 +50,15 @@ export declare abstract class Pipeline {
route: string;
component: string;
}[];
readonly actions: (() => Promise<SSRActions> | SSRActions) | undefined;
readonly internalMiddleware: MiddlewareHandler[];
resolvedMiddleware: MiddlewareHandler | undefined;
resolvedActions: SSRActions | undefined;
constructor(logger: Logger, manifest: SSRManifest,
/**
* "development" or "production"
* "development" or "production" only
*/
mode: RuntimeMode, renderers: SSRLoadedRenderer[], resolve: (s: string) => Promise<string>,
runtimeMode: RuntimeMode, renderers: SSRLoadedRenderer[], resolve: (s: string) => Promise<string>,
/**
* Based on Astro config's `output` option, `true` if "server" or "hybrid".
*/
@@ -59,7 +66,7 @@ export declare abstract class Pipeline {
/**
* Used to provide better error messages for `Astro.clientAddress`
*/
adapterName?: string, clientDirectives?: Map<string, string>, inlinedScripts?: Map<string, string>, compressHTML?: boolean, i18n?: import("./app/types.js").SSRManifestI18n | undefined, middleware?: (() => Promise<import("../@types/astro.js").AstroMiddlewareInstance> | import("../@types/astro.js").AstroMiddlewareInstance) | undefined, routeCache?: RouteCache,
adapterName?: string, clientDirectives?: Map<string, string>, inlinedScripts?: Map<string, string>, compressHTML?: boolean, i18n?: import("./app/types.js").SSRManifestI18n | undefined, middleware?: (() => Promise<import("../types/public/common.js").AstroMiddlewareInstance> | import("../types/public/common.js").AstroMiddlewareInstance) | undefined, routeCache?: RouteCache,
/**
* Used for `Astro.site`.
*/
@@ -73,7 +80,7 @@ export declare abstract class Pipeline {
matchesComponent(filePath: URL): boolean;
route: string;
component: string;
}[]);
}[], actions?: (() => Promise<SSRActions> | SSRActions) | undefined);
abstract headElements(routeData: RouteData): Promise<HeadElements> | HeadElements;
abstract componentMetadata(routeData: RouteData): Promise<SSRResult['componentMetadata']> | void;
/**
@@ -97,6 +104,9 @@ export declare abstract class Pipeline {
* it returns a no-op function
*/
getMiddleware(): Promise<MiddlewareHandler>;
setActions(actions: SSRActions): void;
getActions(): Promise<SSRActions>;
getAction(path: string): Promise<ActionClient<unknown, ActionAccept, ZodType>>;
}
export interface HeadElements extends Pick<SSRResult, 'scripts' | 'styles' | 'links'> {
}