@absolutejs/absolute 0.19.0-beta.704 → 0.19.0-beta.706
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/browser.js +6 -4
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/index.js +71 -82
- package/dist/angular/index.js.map +10 -10
- package/dist/angular/server.js +70 -81
- package/dist/angular/server.js.map +10 -10
- package/dist/build.js +152 -84
- package/dist/build.js.map +15 -15
- package/dist/cli/index.js +330 -296
- package/dist/client/index.js +7 -4
- package/dist/client/index.js.map +3 -3
- package/dist/index.js +253 -153
- package/dist/index.js.map +24 -24
- package/dist/islands/index.js +9 -6
- package/dist/islands/index.js.map +5 -5
- package/dist/react/browser.js +7 -7
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/browser/index.js +101 -101
- package/dist/react/components/index.js +104 -104
- package/dist/react/components/index.js.map +2 -2
- package/dist/react/index.js +77 -88
- package/dist/react/index.js.map +10 -10
- package/dist/react/jsxDevRuntimeCompat.js +1 -6
- package/dist/react/jsxDevRuntimeCompat.js.map +3 -3
- package/dist/react/server.js +57 -71
- package/dist/react/server.js.map +8 -8
- package/dist/src/angular/components/defer-slot-templates.directive.d.ts +0 -7
- package/dist/src/angular/components/defer-slot.component.d.ts +2 -5
- package/dist/src/angular/components/image.component.d.ts +2 -5
- package/dist/src/angular/components/index.d.ts +4 -4
- package/dist/src/angular/components/stream-slot.component.d.ts +0 -3
- package/dist/src/angular/pageHandler.d.ts +6 -1
- package/dist/src/angular/ssrRender.d.ts +1 -1
- package/dist/src/build/buildAngularVendor.d.ts +3 -4
- package/dist/src/constants.d.ts +21 -0
- package/dist/src/core/ssrCache.d.ts +1 -1
- package/dist/src/core/wrapPageHandlerWithStreamingSlots.d.ts +1 -1
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +3 -6
- package/dist/src/react/pageHandler.d.ts +2 -1
- package/dist/src/svelte/pageHandler.d.ts +2 -2
- package/dist/src/utils/defineConfig.d.ts +2 -2
- package/dist/src/utils/imageProcessing.d.ts +1 -1
- package/dist/src/utils/loadConfig.d.ts +38 -2
- package/dist/src/vue/components/Image.d.ts +3 -3
- package/dist/src/vue/components/index.d.ts +1 -1
- package/dist/src/vue/index.d.ts +1 -1
- package/dist/src/vue/pageHandler.d.ts +2 -1
- package/dist/svelte/index.js +52 -58
- package/dist/svelte/index.js.map +10 -10
- package/dist/svelte/server.js +46 -55
- package/dist/svelte/server.js.map +9 -9
- package/dist/vue/components/Image.js +18 -18
- package/dist/vue/components/Image.js.map +3 -3
- package/dist/vue/components/index.js +77 -62
- package/dist/vue/components/index.js.map +5 -5
- package/dist/vue/index.js +137 -142
- package/dist/vue/index.js.map +13 -13
- package/dist/vue/server.js +54 -77
- package/dist/vue/server.js.map +8 -8
- package/package.json +42 -42
- package/dist/angular/components/constants.js +0 -56
- package/dist/angular/components/core/streamingSlotRegistrar.js +0 -58
- package/dist/angular/components/core/streamingSlotRegistry.js +0 -114
- package/dist/angular/components/defer-slot-payload.js +0 -6
- package/dist/angular/components/defer-slot-templates.directive.js +0 -44
- package/dist/angular/components/defer-slot.component.js +0 -149
- package/dist/angular/components/image.component.js +0 -202
- package/dist/angular/components/index.js +0 -4
- package/dist/angular/components/stream-slot.component.js +0 -103
- package/dist/dev/client/constants.ts +0 -26
- package/dist/dev/client/cssUtils.ts +0 -307
- package/dist/dev/client/domDiff.ts +0 -226
- package/dist/dev/client/domState.ts +0 -421
- package/dist/dev/client/domTracker.ts +0 -61
- package/dist/dev/client/errorOverlay.ts +0 -184
- package/dist/dev/client/frameworkDetect.ts +0 -63
- package/dist/dev/client/handlers/angular.ts +0 -551
- package/dist/dev/client/handlers/angularRuntime.ts +0 -206
- package/dist/dev/client/handlers/html.ts +0 -363
- package/dist/dev/client/handlers/htmx.ts +0 -272
- package/dist/dev/client/handlers/react.ts +0 -108
- package/dist/dev/client/handlers/rebuild.ts +0 -153
- package/dist/dev/client/handlers/svelte.ts +0 -332
- package/dist/dev/client/handlers/vue.ts +0 -292
- package/dist/dev/client/headPatch.ts +0 -233
- package/dist/dev/client/hmrClient.ts +0 -251
- package/dist/dev/client/hmrState.ts +0 -14
- package/dist/dev/client/moduleVersions.ts +0 -62
- package/dist/dev/client/reactRefreshSetup.ts +0 -33
- package/dist/src/angular/components/constants.d.ts +0 -53
- package/dist/svelte/components/AwaitSlot.svelte +0 -39
- package/dist/svelte/components/AwaitSlot.svelte.d.ts +0 -2
- package/dist/svelte/components/Head.svelte +0 -144
- package/dist/svelte/components/Head.svelte.d.ts +0 -2
- package/dist/svelte/components/Image.svelte +0 -164
- package/dist/svelte/components/Image.svelte.d.ts +0 -5
- package/dist/svelte/components/Island.svelte +0 -71
- package/dist/svelte/components/Island.svelte.d.ts +0 -5
- package/dist/svelte/components/JsonLd.svelte +0 -21
- package/dist/svelte/components/JsonLd.svelte.d.ts +0 -2
- package/dist/svelte/components/StreamSlot.svelte +0 -41
- package/dist/svelte/components/StreamSlot.svelte.d.ts +0 -2
- package/dist/types/globals.d.ts +0 -121
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
1
|
export declare class ImageComponent {
|
|
3
2
|
readonly alt: import("@angular/core").InputSignal<string>;
|
|
4
3
|
readonly blurDataURL: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -27,8 +26,8 @@ export declare class ImageComponent {
|
|
|
27
26
|
readonly width: import("@angular/core").InputSignal<number | undefined>;
|
|
28
27
|
private readonly blurRemoved;
|
|
29
28
|
readonly resolvedSrc: import("@angular/core").Signal<string>;
|
|
30
|
-
readonly srcSet: import("@angular/core").Signal<
|
|
31
|
-
readonly resolvedSrcSet: import("@angular/core").Signal<
|
|
29
|
+
readonly srcSet: import("@angular/core").Signal<string | null>;
|
|
30
|
+
readonly resolvedSrcSet: import("@angular/core").Signal<string | null>;
|
|
32
31
|
readonly resolvedSizes: import("@angular/core").Signal<string | null>;
|
|
33
32
|
readonly resolvedCrossOrigin: import("@angular/core").Signal<"" | "anonymous" | "use-credentials" | null>;
|
|
34
33
|
readonly resolvedReferrerPolicy: import("@angular/core").Signal<string | null>;
|
|
@@ -37,6 +36,4 @@ export declare class ImageComponent {
|
|
|
37
36
|
readonly imgStyle: import("@angular/core").Signal<Record<string, string | number>>;
|
|
38
37
|
handleLoad(event: Event): void;
|
|
39
38
|
handleError(event: Event): void;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageComponent, "abs-image", never, { "alt": { "alias": "alt"; "required": true; "isSignal": true; }; "blurDataURL": { "alias": "blurDataURL"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "crossOrigin": { "alias": "crossOrigin"; "required": false; "isSignal": true; }; "fetchPriority": { "alias": "fetchPriority"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "loader": { "alias": "loader"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "onError": { "alias": "onError"; "required": false; "isSignal": true; }; "onLoad": { "alias": "onLoad"; "required": false; "isSignal": true; }; "overrideSrc": { "alias": "overrideSrc"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "priority": { "alias": "priority"; "required": false; "isSignal": true; }; "quality": { "alias": "quality"; "required": false; "isSignal": true; }; "referrerPolicy": { "alias": "referrerPolicy"; "required": false; "isSignal": true; }; "sizes": { "alias": "sizes"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": true; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "unoptimized": { "alias": "unoptimized"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DeferSlotComponent } from './defer-slot.component
|
|
2
|
-
export { DeferErrorTemplateDirective, DeferFallbackTemplateDirective, DeferResolvedTemplateDirective } from './defer-slot-templates.directive
|
|
3
|
-
export { ImageComponent } from './image.component
|
|
4
|
-
export { StreamSlotComponent } from './stream-slot.component
|
|
1
|
+
export { DeferSlotComponent } from './defer-slot.component';
|
|
2
|
+
export { DeferErrorTemplateDirective, DeferFallbackTemplateDirective, DeferResolvedTemplateDirective } from './defer-slot-templates.directive';
|
|
3
|
+
export { ImageComponent } from './image.component';
|
|
4
|
+
export { StreamSlotComponent } from './stream-slot.component';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type SafeHtml } from '@angular/platform-browser';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
2
|
type SlotResolver = () => Promise<string> | string;
|
|
4
3
|
export declare class StreamSlotComponent {
|
|
5
4
|
private readonly cdr;
|
|
@@ -15,7 +14,5 @@ export declare class StreamSlotComponent {
|
|
|
15
14
|
readonly currentHtml: import("@angular/core").WritableSignal<string | SafeHtml>;
|
|
16
15
|
ngOnInit(): void;
|
|
17
16
|
ngOnDestroy(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StreamSlotComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StreamSlotComponent, "abs-stream-slot", never, { "className": { "alias": "className"; "required": false; }; "errorHtml": { "alias": "errorHtml"; "required": false; }; "fallbackHtml": { "alias": "fallbackHtml"; "required": false; }; "id": { "alias": "id"; "required": true; }; "resolve": { "alias": "resolve"; "required": true; }; "timeoutMs": { "alias": "timeoutMs"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
17
|
}
|
|
21
18
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EnvironmentProviders, Provider } from '@angular/core';
|
|
1
2
|
import type { AngularPageImporter, AngularPagePropsOf } from '../../types/angular';
|
|
2
3
|
import { type StreamingSlotEnhancerOptions } from '../core/responseEnhancers';
|
|
3
4
|
type AngularPageRenderOptions = StreamingSlotEnhancerOptions & {
|
|
@@ -9,6 +10,7 @@ export type AngularPageRequestInput<Page = {
|
|
|
9
10
|
headTag?: `<head>${string}</head>`;
|
|
10
11
|
indexPath: string;
|
|
11
12
|
pagePath: string;
|
|
13
|
+
providers?: ReadonlyArray<Provider | EnvironmentProviders>;
|
|
12
14
|
} & (keyof AngularPagePropsOf<Page> extends never ? {
|
|
13
15
|
props?: NoInfer<AngularPagePropsOf<Page>>;
|
|
14
16
|
} : {
|
|
@@ -22,5 +24,8 @@ export type HandleAngularPageRequest = {
|
|
|
22
24
|
};
|
|
23
25
|
type AngularPageHandlerArgs<Props extends Record<string, unknown>> = keyof Props extends never ? [props?: NoInfer<Props>, options?: AngularPageRenderOptions] : [props: NoInfer<Props>, options?: AngularPageRenderOptions];
|
|
24
26
|
export declare const invalidateAngularSsrCache: () => void;
|
|
25
|
-
export declare
|
|
27
|
+
export declare function handleAngularPageRequest<Page = {
|
|
28
|
+
factory: (props: Record<never, never>) => unknown;
|
|
29
|
+
}>(input: AngularPageRequestInput<Page>): Promise<Response>;
|
|
30
|
+
export declare function handleAngularPageRequest<Props extends Record<string, unknown> = Record<never, never>>(Page: AngularPageImporter<Props>, pagePath: string, indexPath: string, headTag: `<head>${string}</head>` | undefined, ...args: AngularPageHandlerArgs<Props>): Promise<Response>;
|
|
26
31
|
export {};
|
|
@@ -3,7 +3,7 @@ import type { AngularDeps, CachedRouteData, SsrDepsResult } from '../../types/an
|
|
|
3
3
|
export declare const cacheRouteData: (pagePath: string, data: CachedRouteData) => void;
|
|
4
4
|
export declare const getCachedRouteData: (pagePath: string) => CachedRouteData | undefined;
|
|
5
5
|
export declare const buildDeps: (ssrResult: SsrDepsResult | null, baseDeps: AngularDeps) => AngularDeps;
|
|
6
|
-
export declare const buildProviders: (deps: AngularDeps, sanitizer: InstanceType<AngularDeps["DomSanitizer"]>, maybeProps: Record<string, unknown> | undefined, tokenMap: Map<string, unknown>) => (Provider | EnvironmentProviders | {
|
|
6
|
+
export declare const buildProviders: (deps: AngularDeps, sanitizer: InstanceType<AngularDeps["DomSanitizer"]>, maybeProps: Record<string, unknown> | undefined, tokenMap: Map<string, unknown>, userProviders?: ReadonlyArray<Provider | EnvironmentProviders>) => (Provider | EnvironmentProviders | {
|
|
7
7
|
provide: unknown;
|
|
8
8
|
useValue: unknown;
|
|
9
9
|
})[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const computeAngularVendorPaths: () => Record<string, string>;
|
|
1
|
+
/** Build vendor bundles for every @angular/* package the project imports. */
|
|
2
|
+
export declare const buildAngularVendor: (buildDir: string, directories?: string[]) => Promise<string[]>;
|
|
3
|
+
export declare const computeAngularVendorPaths: (specifiers?: string[]) => Record<string, string>;
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -51,3 +51,24 @@ export declare const TIME_PRECISION = 2;
|
|
|
51
51
|
export declare const TWO_THIRDS: number;
|
|
52
52
|
export declare const UNFOUND_INDEX = -1;
|
|
53
53
|
export declare const WEBSOCKET_NORMAL_CLOSURE = 1000;
|
|
54
|
+
export declare const WORKSPACE_COMMAND_ARGS_OFFSET = 3;
|
|
55
|
+
export declare const WORKSPACE_FAILURE_LOG_PRINT_LIMIT = 30;
|
|
56
|
+
export declare const WORKSPACE_FAILURE_RECENT_LOG_LIMIT = 60;
|
|
57
|
+
export declare const WORKSPACE_READY_ATTEMPT_TIMEOUT_MS = 5000;
|
|
58
|
+
export declare const WORKSPACE_READY_PROBE_INTERVAL_MS = 250;
|
|
59
|
+
export declare const WORKSPACE_READY_TIMEOUT_MS = 30000;
|
|
60
|
+
export declare const WORKSPACE_SHUTDOWN_TIMEOUT_MS = 10000;
|
|
61
|
+
export declare const WORKSPACE_TUI_DEFAULT_HEIGHT = 28;
|
|
62
|
+
export declare const WORKSPACE_TUI_DEFAULT_WIDTH = 100;
|
|
63
|
+
export declare const WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS = 30;
|
|
64
|
+
export declare const WORKSPACE_TUI_FOOTER_LINE_COUNT = 3;
|
|
65
|
+
export declare const WORKSPACE_TUI_MIN_LOG_HEIGHT = 3;
|
|
66
|
+
export declare const WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH = 7;
|
|
67
|
+
export declare const WORKSPACE_TUI_MIN_TARGET_WIDTH = 8;
|
|
68
|
+
export declare const WORKSPACE_TUI_MIN_WRAP_WIDTH = 12;
|
|
69
|
+
export declare const WORKSPACE_TUI_PROMPT_CURSOR_OFFSET = 3;
|
|
70
|
+
export declare const WORKSPACE_TUI_RECENT_LOG_LIMIT = 40;
|
|
71
|
+
export declare const WORKSPACE_TUI_RENDER_DEBOUNCE_MS = 16;
|
|
72
|
+
export declare const WORKSPACE_TUI_STATUS_WIDTH = 10;
|
|
73
|
+
export declare const WORKSPACE_TUI_TARGET_PADDING_WIDTH = 6;
|
|
74
|
+
export declare const WORKSPACE_TUI_VISIBILITY_WIDTH = 8;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { IslandFramework } from '../../types/island';
|
|
2
|
-
export declare const markSsrCacheDirty: (framework: IslandFramework) => void;
|
|
3
2
|
export declare const isSsrCacheDirty: (framework: IslandFramework) => boolean;
|
|
3
|
+
export declare const markSsrCacheDirty: (framework: IslandFramework) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { withRegisteredStreamingSlots } from './responseEnhancers';
|
|
2
|
-
export declare const wrapPageHandlerWithStreamingSlots: <T extends (...args: unknown[]) => Response | Promise<Response>>(handler: T, options?: Parameters<typeof withRegisteredStreamingSlots>[1]) => T
|
|
2
|
+
export declare const wrapPageHandlerWithStreamingSlots: <T extends (...args: unknown[]) => Response | Promise<Response>>(handler: T, options?: Parameters<typeof withRegisteredStreamingSlots>[1]) => (...args: Parameters<T>) => Promise<Response>;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
type JSXType = Parameters<typeof jsx>[0];
|
|
3
3
|
type JSXKey = Parameters<typeof jsx>[2];
|
|
4
|
-
type JSXProps =
|
|
4
|
+
type JSXProps = Parameters<typeof jsx>[1] & {
|
|
5
|
+
children?: unknown;
|
|
6
|
+
};
|
|
5
7
|
export { Fragment };
|
|
6
8
|
export declare const jsxDEV: (type: JSXType, props: JSXProps, key?: JSXKey, _isStaticChildren?: boolean, _source?: unknown, _self?: unknown) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
9
|
-
jsxDEV: (type: JSXType, props: JSXProps, key?: JSXKey, _isStaticChildren?: boolean, _source?: unknown, _self?: unknown) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -16,6 +16,7 @@ export type HandleReactPageRequest = {
|
|
|
16
16
|
<Props extends Record<string, unknown> = Record<never, never>>(PageComponent: ReactComponent<Props>, index: string, ...args: ReactPageHandlerArgs<Props>): Promise<Response>;
|
|
17
17
|
};
|
|
18
18
|
type ReactPageHandlerArgs<Props extends Record<string, unknown>> = keyof Props extends never ? [props?: NoInfer<Props>, options?: ReactPageRenderOptions] : [props: NoInfer<Props>, options?: ReactPageRenderOptions];
|
|
19
|
-
export declare
|
|
19
|
+
export declare function handleReactPageRequest<Props extends Record<string, unknown> = Record<never, never>>(input: ReactPageRequestInput<Props>): Promise<Response>;
|
|
20
|
+
export declare function handleReactPageRequest<Props extends Record<string, unknown> = Record<never, never>>(PageComponent: ReactComponent<Props>, index: string, ...args: ReactPageHandlerArgs<Props>): Promise<Response>;
|
|
20
21
|
export declare const invalidateReactSsrCache: () => void;
|
|
21
22
|
export {};
|
|
@@ -6,7 +6,7 @@ export type SveltePageRenderOptions = {
|
|
|
6
6
|
bodyContent?: string;
|
|
7
7
|
headContent?: string;
|
|
8
8
|
} & StreamingSlotEnhancerOptions;
|
|
9
|
-
export type SveltePageRequestInput<Component extends SvelteComponent<
|
|
9
|
+
export type SveltePageRequestInput<Component extends SvelteComponent<never> = SvelteComponent<Record<never, never>>> = SveltePageRenderOptions & {
|
|
10
10
|
indexPath: string;
|
|
11
11
|
pagePath: string;
|
|
12
12
|
} & (keyof SveltePropsOf<Component> extends never ? {
|
|
@@ -15,7 +15,7 @@ export type SveltePageRequestInput<Component extends SvelteComponent<any> = Svel
|
|
|
15
15
|
props: NoInfer<SveltePropsOf<Component>>;
|
|
16
16
|
});
|
|
17
17
|
export type HandleSveltePageRequest = {
|
|
18
|
-
<Component extends SvelteComponent<
|
|
18
|
+
<Component extends SvelteComponent<never>>(input: SveltePageRequestInput<Component>): Promise<Response>;
|
|
19
19
|
(PageComponent: SvelteComponent<Record<string, never>>, pagePath: string, indexPath: string): Promise<Response>;
|
|
20
20
|
<P extends Record<string, unknown>>(PageComponent: SvelteComponent<P>, pagePath: string, indexPath: string, props: NoInfer<P>, options?: SveltePageRenderOptions): Promise<Response>;
|
|
21
21
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbsoluteServiceConfig, CommandServiceConfig,
|
|
1
|
+
import type { AbsoluteServiceConfig, CommandServiceConfig, ReservedConfigKey } from '../../types/build';
|
|
2
2
|
type ServiceName<TConfig> = Extract<keyof TConfig, string>;
|
|
3
3
|
type HasReservedConfigKeys<TConfig> = Extract<ServiceName<TConfig>, ReservedConfigKey> extends never ? false : true;
|
|
4
4
|
type ServiceDependsOn<TConfig, TSelf extends string> = readonly Exclude<ServiceName<TConfig>, TSelf>[];
|
|
@@ -12,5 +12,5 @@ type TypedWorkspaceConfig<TConfig extends Record<string, unknown>> = {
|
|
|
12
12
|
[K in keyof TConfig]: K extends string ? TypedAbsoluteServiceConfig<TConfig, K> | TypedCommandServiceConfig<TConfig, K> : never;
|
|
13
13
|
};
|
|
14
14
|
type ValidateConfig<TConfig extends Record<string, unknown>> = HasReservedConfigKeys<TConfig> extends true ? AbsoluteServiceConfig : TypedWorkspaceConfig<TConfig>;
|
|
15
|
-
export declare const defineConfig: <const TConfig extends Record<string, unknown>>(config: TConfig & ValidateConfig<TConfig>) => TConfig &
|
|
15
|
+
export declare const defineConfig: <const TConfig extends Record<string, unknown>>(config: TConfig & ValidateConfig<TConfig>) => TConfig & ValidateConfig<TConfig>;
|
|
16
16
|
export {};
|
|
@@ -24,7 +24,7 @@ export declare const getCacheKey: (url: string, width: number, quality: number,
|
|
|
24
24
|
export declare const isCacheStale: (meta: CacheMeta) => boolean;
|
|
25
25
|
export declare const matchRemotePattern: (urlString: string, patterns: RemotePattern[]) => boolean;
|
|
26
26
|
export declare const negotiateFormat: (acceptHeader: string, configuredFormats: ImageFormat[]) => ImageFormat;
|
|
27
|
-
export declare const optimizeImage: (buffer: Buffer | ArrayBuffer, width: number, quality: number, format: ImageFormat) => Promise<
|
|
27
|
+
export declare const optimizeImage: (buffer: Buffer | ArrayBuffer, width: number, quality: number, format: ImageFormat) => Promise<Buffer<ArrayBufferLike>>;
|
|
28
28
|
export declare const readFromCache: (cacheDir: string, cacheKey: string) => {
|
|
29
29
|
buffer: NonSharedBuffer;
|
|
30
30
|
meta: CacheMeta;
|
|
@@ -1,6 +1,42 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConfigInput, WorkspaceConfig } from '../../types/build';
|
|
2
2
|
declare const isWorkspaceConfig: (config: ConfigInput) => config is WorkspaceConfig;
|
|
3
3
|
declare const getWorkspaceServices: (config: ConfigInput) => WorkspaceConfig;
|
|
4
|
+
export declare const loadConfig: (configPath?: string) => Promise<{
|
|
5
|
+
buildDirectory?: string;
|
|
6
|
+
assetsDirectory?: string;
|
|
7
|
+
publicDirectory?: string;
|
|
8
|
+
islands?: {
|
|
9
|
+
registry: string;
|
|
10
|
+
bootstrap?: string;
|
|
11
|
+
};
|
|
12
|
+
reactDirectory?: string;
|
|
13
|
+
vueDirectory?: string;
|
|
14
|
+
angularDirectory?: string;
|
|
15
|
+
astroDirectory?: string;
|
|
16
|
+
svelteDirectory?: string;
|
|
17
|
+
htmlDirectory?: string;
|
|
18
|
+
htmxDirectory?: string;
|
|
19
|
+
stylesConfig?: string | import("..").StylesConfig;
|
|
20
|
+
stylePreprocessors?: import("..").StylePreprocessorConfig;
|
|
21
|
+
postcss?: import("..").PostCSSConfig;
|
|
22
|
+
tailwind?: import("..").TailwindConfig;
|
|
23
|
+
options?: import("..").BuildOptions;
|
|
24
|
+
incrementalFiles?: string[];
|
|
25
|
+
mode?: "production" | "development";
|
|
26
|
+
dev?: {
|
|
27
|
+
https?: boolean;
|
|
28
|
+
devtools?: {
|
|
29
|
+
projectRoot?: string;
|
|
30
|
+
uuid?: string;
|
|
31
|
+
uuidCachePath?: string;
|
|
32
|
+
normalizeForWindowsContainer?: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
static?: import("..").StaticConfig;
|
|
36
|
+
images?: import("..").ImageConfig;
|
|
37
|
+
sitemap?: import("..").SitemapConfig;
|
|
38
|
+
entry?: string;
|
|
39
|
+
shutdown?: import("..").ServiceShutdownConfig;
|
|
40
|
+
}>;
|
|
4
41
|
export declare const loadRawConfig: (configPath?: string) => Promise<ConfigInput>;
|
|
5
|
-
export declare const loadConfig: (configPath?: string) => Promise<BuildConfig>;
|
|
6
42
|
export { getWorkspaceServices, isWorkspaceConfig };
|
|
@@ -4,7 +4,7 @@ type ImageLoader = (params: {
|
|
|
4
4
|
quality: number;
|
|
5
5
|
}) => string;
|
|
6
6
|
type ImageStyle = Record<string, string | number>;
|
|
7
|
-
declare const
|
|
7
|
+
export declare const Image: import("vue").DefineComponent<{
|
|
8
8
|
src: string;
|
|
9
9
|
alt: string;
|
|
10
10
|
width?: number | undefined;
|
|
@@ -57,11 +57,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
loading: string;
|
|
58
58
|
onError: Function;
|
|
59
59
|
onLoad: Function;
|
|
60
|
+
quality: number;
|
|
60
61
|
width: number;
|
|
61
62
|
sizes: string;
|
|
62
63
|
priority: boolean;
|
|
63
64
|
unoptimized: boolean;
|
|
64
|
-
quality: number;
|
|
65
65
|
height: number;
|
|
66
66
|
crossOrigin: string;
|
|
67
67
|
overrideSrc: string;
|
|
@@ -71,4 +71,4 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
fetchPriority: string;
|
|
72
72
|
referrerPolicy: string;
|
|
73
73
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
74
|
-
export
|
|
74
|
+
export {};
|
package/dist/src/vue/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { handleVuePageRequest } from './pageHandler';
|
|
|
2
2
|
export { Island } from './Island';
|
|
3
3
|
export { createTypedIsland } from './createIsland';
|
|
4
4
|
export { useIslandStore } from './useIslandStore';
|
|
5
|
-
export {
|
|
5
|
+
export { Image } from './components/Image';
|
|
6
6
|
export { StreamSlot, SuspenseSlot } from './components';
|
|
@@ -24,6 +24,7 @@ type VuePageHandlerArgs<Component extends VueComponent> = keyof VuePropsOf<Compo
|
|
|
24
24
|
props: NoInfer<VuePropsOf<Component>>,
|
|
25
25
|
options?: VuePageRenderOptions
|
|
26
26
|
];
|
|
27
|
-
export declare
|
|
27
|
+
export declare function handleVuePageRequest<Component extends VueComponent>(input: VuePageRequestInput<Component>): Promise<Response>;
|
|
28
|
+
export declare function handleVuePageRequest<Component extends VueComponent>(PageComponent: Component, pagePath: string, indexPath: string, headTag: `<head>${string}</head>` | undefined, ...args: VuePageHandlerArgs<Component>): Promise<Response>;
|
|
28
29
|
export declare const invalidateVueSsrCache: () => void;
|
|
29
30
|
export {};
|
package/dist/svelte/index.js
CHANGED
|
@@ -134,7 +134,7 @@ var resolveExportPath = (entry, conditions) => {
|
|
|
134
134
|
var init_resolvePackageImport = () => {};
|
|
135
135
|
|
|
136
136
|
// src/constants.ts
|
|
137
|
-
var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_LENGTH = 3, ASCII_SPACE = 32, BASE_36_RADIX = 36, BUN_BUILD_WARNING_SUPPRESSION = "wildcard sideEffects are not supported yet", BODY_SLICE_LENGTH = 2000, BYTES_PER_KILOBYTE = 1024, CLI_ARGS_OFFSET = 3, CSS_ERROR_RESOLVE_DELAY_MS = 50, CSS_MAX_CHECK_ATTEMPTS = 10, CSS_MAX_PARSE_TIMEOUT_MS = 500, CSS_SHEET_READY_TIMEOUT_MS = 100, DEFAULT_CHUNK_SIZE = 16384, DEFAULT_DEBOUNCE_MS = 15, DEFAULT_PORT = 3000, DEV_SERVER_RESTART_DEBOUNCE_MS = 100, DOM_UPDATE_DELAY_MS = 50, FILE_PROTOCOL_PREFIX_LENGTH = 7, FOCUS_ID_PREFIX_LENGTH = 3, FOCUS_IDX_PREFIX_LENGTH = 4, FOCUS_NAME_PREFIX_LENGTH = 5, HMR_UPDATE_TIMEOUT_MS = 2000, HOOK_SIGNATURE_LENGTH = 12, EXCLUDE_LAST_OFFSET = -1, HTTP_STATUS_OK = 200, HTTP_STATUS_BAD_REQUEST = 400, HTTP_STATUS_NOT_FOUND = 404, HOURS_IN_DAY = 24, HOURS_IN_HALF_DAY = 12, MAX_ERROR_LENGTH = 200, MAX_RECONNECT_ATTEMPTS = 60, MILLISECONDS_IN_A_SECOND = 1000, MINUTES_IN_AN_HOUR = 60, SECONDS_IN_A_MINUTE = 60, MILLISECONDS_IN_A_MINUTE, MILLISECONDS_IN_A_DAY, OVERLAY_FADE_DURATION_MS = 150, PING_INTERVAL_MS = 30000, RAF_BATCH_COUNT = 3, RANDOM_ID_END_INDEX = 11, REBUILD_BATCH_DELAY_MS = 10, REBUILD_RELOAD_DELAY_MS = 200, RECONNECT_INITIAL_DELAY_MS = 500, RECONNECT_POLL_INTERVAL_MS = 300, REACT_STREAM_SLOT_FAST_DELAY_MS = 5, REACT_STREAM_SLOT_SLOW_DELAY_MS = 20, SIGINT_EXIT_CODE = 130, SIGTERM_EXIT_CODE = 143, SVELTE_CSS_LOAD_TIMEOUT_MS = 500, TIME_PRECISION = 2, TWO_THIRDS, UNFOUND_INDEX = -1, WEBSOCKET_NORMAL_CLOSURE = 1000;
|
|
137
|
+
var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_LENGTH = 3, ASCII_SPACE = 32, BASE_36_RADIX = 36, BUN_BUILD_WARNING_SUPPRESSION = "wildcard sideEffects are not supported yet", BODY_SLICE_LENGTH = 2000, BYTES_PER_KILOBYTE = 1024, CLI_ARGS_OFFSET = 3, CSS_ERROR_RESOLVE_DELAY_MS = 50, CSS_MAX_CHECK_ATTEMPTS = 10, CSS_MAX_PARSE_TIMEOUT_MS = 500, CSS_SHEET_READY_TIMEOUT_MS = 100, DEFAULT_CHUNK_SIZE = 16384, DEFAULT_DEBOUNCE_MS = 15, DEFAULT_PORT = 3000, DEV_SERVER_RESTART_DEBOUNCE_MS = 100, DOM_UPDATE_DELAY_MS = 50, FILE_PROTOCOL_PREFIX_LENGTH = 7, FOCUS_ID_PREFIX_LENGTH = 3, FOCUS_IDX_PREFIX_LENGTH = 4, FOCUS_NAME_PREFIX_LENGTH = 5, HMR_UPDATE_TIMEOUT_MS = 2000, HOOK_SIGNATURE_LENGTH = 12, EXCLUDE_LAST_OFFSET = -1, HTTP_STATUS_OK = 200, HTTP_STATUS_BAD_REQUEST = 400, HTTP_STATUS_NOT_FOUND = 404, HOURS_IN_DAY = 24, HOURS_IN_HALF_DAY = 12, MAX_ERROR_LENGTH = 200, MAX_RECONNECT_ATTEMPTS = 60, MILLISECONDS_IN_A_SECOND = 1000, MINUTES_IN_AN_HOUR = 60, SECONDS_IN_A_MINUTE = 60, MILLISECONDS_IN_A_MINUTE, MILLISECONDS_IN_A_DAY, OVERLAY_FADE_DURATION_MS = 150, PING_INTERVAL_MS = 30000, RAF_BATCH_COUNT = 3, RANDOM_ID_END_INDEX = 11, REBUILD_BATCH_DELAY_MS = 10, REBUILD_RELOAD_DELAY_MS = 200, RECONNECT_INITIAL_DELAY_MS = 500, RECONNECT_POLL_INTERVAL_MS = 300, REACT_STREAM_SLOT_FAST_DELAY_MS = 5, REACT_STREAM_SLOT_SLOW_DELAY_MS = 20, SIGINT_EXIT_CODE = 130, SIGTERM_EXIT_CODE = 143, SVELTE_CSS_LOAD_TIMEOUT_MS = 500, TIME_PRECISION = 2, TWO_THIRDS, UNFOUND_INDEX = -1, WEBSOCKET_NORMAL_CLOSURE = 1000, WORKSPACE_COMMAND_ARGS_OFFSET = 3, WORKSPACE_FAILURE_LOG_PRINT_LIMIT = 30, WORKSPACE_FAILURE_RECENT_LOG_LIMIT = 60, WORKSPACE_READY_ATTEMPT_TIMEOUT_MS = 5000, WORKSPACE_READY_PROBE_INTERVAL_MS = 250, WORKSPACE_READY_TIMEOUT_MS = 30000, WORKSPACE_SHUTDOWN_TIMEOUT_MS = 1e4, WORKSPACE_TUI_DEFAULT_HEIGHT = 28, WORKSPACE_TUI_DEFAULT_WIDTH = 100, WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS = 30, WORKSPACE_TUI_FOOTER_LINE_COUNT = 3, WORKSPACE_TUI_MIN_LOG_HEIGHT = 3, WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH = 7, WORKSPACE_TUI_MIN_TARGET_WIDTH = 8, WORKSPACE_TUI_MIN_WRAP_WIDTH = 12, WORKSPACE_TUI_PROMPT_CURSOR_OFFSET = 3, WORKSPACE_TUI_RECENT_LOG_LIMIT = 40, WORKSPACE_TUI_RENDER_DEBOUNCE_MS = 16, WORKSPACE_TUI_STATUS_WIDTH = 10, WORKSPACE_TUI_TARGET_PADDING_WIDTH = 6, WORKSPACE_TUI_VISIBILITY_WIDTH = 8;
|
|
138
138
|
var init_constants = __esm(() => {
|
|
139
139
|
MILLISECONDS_IN_A_MINUTE = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;
|
|
140
140
|
MILLISECONDS_IN_A_DAY = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE * MINUTES_IN_AN_HOUR * HOURS_IN_DAY;
|
|
@@ -444,7 +444,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
444
444
|
const config = normalizePostcssModule(loaded);
|
|
445
445
|
const value = typeof config === "function" ? await config({
|
|
446
446
|
cwd: process.cwd(),
|
|
447
|
-
env: "
|
|
447
|
+
env: "test"
|
|
448
448
|
}) : config;
|
|
449
449
|
return normalizePostcssModule(value) ?? {};
|
|
450
450
|
}, normalizePostcssPlugins = (plugins) => {
|
|
@@ -903,7 +903,7 @@ __export(exports_devRouteRegistrationCallsite, {
|
|
|
903
903
|
});
|
|
904
904
|
import { AsyncLocalStorage } from "async_hooks";
|
|
905
905
|
import { Elysia } from "elysia";
|
|
906
|
-
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", getRouteCallsiteStorage = () => {
|
|
906
|
+
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
|
|
907
907
|
const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
|
|
908
908
|
if (value === null || typeof value === "undefined") {
|
|
909
909
|
return;
|
|
@@ -917,19 +917,10 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
|
|
|
917
917
|
const storage = new AsyncLocalStorage;
|
|
918
918
|
Reflect.set(globalThis, ROUTE_CALLSITE_STORAGE_KEY, storage);
|
|
919
919
|
return storage;
|
|
920
|
-
}, normalizeCallsitePath = (value) => value.replace(`${process.cwd()}/`, "").replace(process.cwd(), "").replace(/^\.\/+/, ""), extractRouteRegistrationCallsite = (stack) => {
|
|
921
|
-
const
|
|
922
|
-
`).slice(1).map((line) => line.trim());
|
|
923
|
-
|
|
924
|
-
if (frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/core/devRouteRegistrationCallsite.")) {
|
|
925
|
-
continue;
|
|
926
|
-
}
|
|
927
|
-
const locationMatch = frame.match(/\((\/[^)]+:\d+:\d+)\)$/) ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/);
|
|
928
|
-
if (locationMatch?.[1]) {
|
|
929
|
-
return normalizeCallsitePath(locationMatch[1]);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
return;
|
|
920
|
+
}, normalizeCallsitePath = (value) => value.replace(`${process.cwd()}/`, "").replace(process.cwd(), "").replace(/^\.\/+/, ""), shouldIgnoreRouteCallsiteFrame = (frame) => frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/core/devRouteRegistrationCallsite."), getRouteCallsiteLocation = (frame) => frame.match(/\((\/[^)]+:\d+:\d+)\)$/)?.[1] ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/)?.[1], extractRouteRegistrationCallsite = (stack) => {
|
|
921
|
+
const location = stack.split(`
|
|
922
|
+
`).slice(1).map((line) => line.trim()).filter((frame) => !shouldIgnoreRouteCallsiteFrame(frame)).map((frame) => getRouteCallsiteLocation(frame)).find((frameLocation) => frameLocation !== undefined);
|
|
923
|
+
return location ? normalizeCallsitePath(location) : undefined;
|
|
933
924
|
}, captureRouteRegistrationCallsite = () => {
|
|
934
925
|
const { stack } = new Error;
|
|
935
926
|
if (!stack) {
|
|
@@ -941,29 +932,29 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
|
|
|
941
932
|
return handler;
|
|
942
933
|
}
|
|
943
934
|
const storage = ensureRouteCallsiteStorage();
|
|
935
|
+
const routeHandler = handler;
|
|
944
936
|
return function wrappedRouteHandler(...args) {
|
|
945
|
-
return storage.run({ callsite }, () => Reflect.apply(
|
|
937
|
+
return storage.run({ callsite }, () => Reflect.apply(routeHandler, this, args));
|
|
946
938
|
};
|
|
939
|
+
}, createPatchedRouteMethod = (originalMethod) => function patchedRouteMethod(path, handler, ...rest) {
|
|
940
|
+
const callsite = captureRouteRegistrationCallsite();
|
|
941
|
+
return Reflect.apply(originalMethod, this, [
|
|
942
|
+
path,
|
|
943
|
+
wrapRouteHandlerWithCallsite(handler, callsite),
|
|
944
|
+
...rest
|
|
945
|
+
]);
|
|
947
946
|
}, getCurrentRouteRegistrationCallsite = () => getRouteCallsiteStorage()?.getStore()?.callsite, patchElysiaRouteRegistrationCallsites = () => {
|
|
948
947
|
if (false) {}
|
|
949
948
|
if (Reflect.get(globalThis, ROUTE_CALLSITE_PATCHED_KEY) === true) {
|
|
950
949
|
return;
|
|
951
950
|
}
|
|
952
|
-
const prototype = Elysia
|
|
953
|
-
|
|
954
|
-
const originalMethod = prototype
|
|
955
|
-
if (
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
const callsite = captureRouteRegistrationCallsite();
|
|
960
|
-
return Reflect.apply(originalMethod, this, [
|
|
961
|
-
path,
|
|
962
|
-
wrapRouteHandlerWithCallsite(handler, callsite),
|
|
963
|
-
...rest
|
|
964
|
-
]);
|
|
965
|
-
};
|
|
966
|
-
}
|
|
951
|
+
const { prototype } = Elysia;
|
|
952
|
+
ROUTE_METHOD_NAMES.forEach((methodName) => {
|
|
953
|
+
const originalMethod = Reflect.get(prototype, methodName);
|
|
954
|
+
if (!isRouteMethod(originalMethod))
|
|
955
|
+
return;
|
|
956
|
+
Reflect.set(prototype, methodName, createPatchedRouteMethod(originalMethod));
|
|
957
|
+
});
|
|
967
958
|
Reflect.set(globalThis, ROUTE_CALLSITE_PATCHED_KEY, true);
|
|
968
959
|
};
|
|
969
960
|
var init_devRouteRegistrationCallsite = __esm(() => {
|
|
@@ -1800,9 +1791,9 @@ var init_logger = __esm(() => {
|
|
|
1800
1791
|
});
|
|
1801
1792
|
|
|
1802
1793
|
// src/core/ssrCache.ts
|
|
1803
|
-
var dirtyFrameworks, markSsrCacheDirty = (framework) => {
|
|
1794
|
+
var dirtyFrameworks, isSsrCacheDirty = (framework) => dirtyFrameworks.has(framework), markSsrCacheDirty = (framework) => {
|
|
1804
1795
|
dirtyFrameworks.add(framework);
|
|
1805
|
-
}
|
|
1796
|
+
};
|
|
1806
1797
|
var init_ssrCache = __esm(() => {
|
|
1807
1798
|
dirtyFrameworks = new Set;
|
|
1808
1799
|
});
|
|
@@ -1999,7 +1990,9 @@ var initDominoAdapter = (platformServer) => {
|
|
|
1999
1990
|
import(resolveAngularPackage("@angular/common")),
|
|
2000
1991
|
import(resolveAngularPackage("@angular/core"))
|
|
2001
1992
|
]);
|
|
2002
|
-
if (
|
|
1993
|
+
if (true) {
|
|
1994
|
+
core.enableProdMode();
|
|
1995
|
+
}
|
|
2003
1996
|
initDominoAdapter(platformServer);
|
|
2004
1997
|
return {
|
|
2005
1998
|
APP_BASE_HREF: common.APP_BASE_HREF,
|
|
@@ -2124,7 +2117,7 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
2124
2117
|
Sanitizer: core.Sanitizer,
|
|
2125
2118
|
SecurityContext: core.SecurityContext
|
|
2126
2119
|
};
|
|
2127
|
-
}, buildProviders = (deps, sanitizer, maybeProps, tokenMap) => {
|
|
2120
|
+
}, buildProviders = (deps, sanitizer, maybeProps, tokenMap, userProviders = []) => {
|
|
2128
2121
|
const providers = [
|
|
2129
2122
|
deps.provideServerRendering(),
|
|
2130
2123
|
deps.provideClientHydration(),
|
|
@@ -2134,7 +2127,8 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
2134
2127
|
provide: deps.DomSanitizer,
|
|
2135
2128
|
useValue: sanitizer
|
|
2136
2129
|
},
|
|
2137
|
-
{ provide: deps.Sanitizer, useValue: sanitizer }
|
|
2130
|
+
{ provide: deps.Sanitizer, useValue: sanitizer },
|
|
2131
|
+
...userProviders
|
|
2138
2132
|
];
|
|
2139
2133
|
if (!maybeProps) {
|
|
2140
2134
|
return providers;
|
|
@@ -3016,19 +3010,12 @@ var formatWarningCallsite = (callsite) => {
|
|
|
3016
3010
|
}
|
|
3017
3011
|
return `\x1B[36m${match[1]}\x1B[33m${match[2]}\x1B[0m`;
|
|
3018
3012
|
};
|
|
3013
|
+
var shouldIgnoreWarningFrame = (frame) => frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/react/pageHandler.") || frame.includes("/src/vue/pageHandler.") || frame.includes("/src/svelte/pageHandler.") || frame.includes("/src/angular/pageHandler.") || frame.includes("/src/core/streamingSlotWarningScope.");
|
|
3014
|
+
var getWarningLocation = (frame) => frame.match(/\((\/[^)]+:\d+:\d+)\)$/)?.[1] ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/)?.[1];
|
|
3019
3015
|
var extractCallsiteFromStack = (stack) => {
|
|
3020
|
-
const
|
|
3021
|
-
`).slice(1).map((line) => line.trim());
|
|
3022
|
-
|
|
3023
|
-
if (frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/react/pageHandler.") || frame.includes("/src/vue/pageHandler.") || frame.includes("/src/svelte/pageHandler.") || frame.includes("/src/angular/pageHandler.") || frame.includes("/src/core/streamingSlotWarningScope.")) {
|
|
3024
|
-
continue;
|
|
3025
|
-
}
|
|
3026
|
-
const locationMatch = frame.match(/\((\/[^)]+:\d+:\d+)\)$/) ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/);
|
|
3027
|
-
if (locationMatch?.[1]) {
|
|
3028
|
-
return normalizeCallsitePath2(locationMatch[1]);
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
return;
|
|
3016
|
+
const location = stack.split(`
|
|
3017
|
+
`).slice(1).map((line) => line.trim()).filter((frame) => !shouldIgnoreWarningFrame(frame)).map((frame) => getWarningLocation(frame)).find((frameLocation) => frameLocation !== undefined);
|
|
3018
|
+
return location ? normalizeCallsitePath2(location) : undefined;
|
|
3032
3019
|
};
|
|
3033
3020
|
var buildMissingCollectorWarning = (primitiveName, handlerCallsite) => `${primitiveName} rendered during SSR without streaming slot collection enabled. Add { collectStreamingSlots: true } to this page handler to enable out-of-order streaming for this route.${handlerCallsite ? ` Update ${formatWarningCallsite(handlerCallsite)}.` : ""}`;
|
|
3034
3021
|
setStreamingSlotWarningController({
|
|
@@ -3133,7 +3120,7 @@ var resolveNotFoundConventionPath = (framework) => getMap()[framework]?.defaults
|
|
|
3133
3120
|
var setConventions = (map) => {
|
|
3134
3121
|
Reflect.set(globalThis, CONVENTIONS_KEY, map);
|
|
3135
3122
|
};
|
|
3136
|
-
var isDev = () =>
|
|
3123
|
+
var isDev = () => false;
|
|
3137
3124
|
var buildErrorProps = (error) => {
|
|
3138
3125
|
const message = error instanceof Error ? error.message : String(error);
|
|
3139
3126
|
const stack = isDev() && error instanceof Error ? error.stack : undefined;
|
|
@@ -3307,14 +3294,21 @@ var NOT_FOUND_PRIORITY = [
|
|
|
3307
3294
|
"angular"
|
|
3308
3295
|
];
|
|
3309
3296
|
var renderFirstNotFound = async () => {
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3297
|
+
const renderNext = async (frameworks) => {
|
|
3298
|
+
const [framework, ...remaining] = frameworks;
|
|
3299
|
+
if (!framework) {
|
|
3300
|
+
return null;
|
|
3301
|
+
}
|
|
3302
|
+
if (!getMap()[framework]?.defaults?.notFound) {
|
|
3303
|
+
return renderNext(remaining);
|
|
3304
|
+
}
|
|
3313
3305
|
const response = await renderConventionNotFound(framework);
|
|
3314
|
-
if (response)
|
|
3306
|
+
if (response) {
|
|
3315
3307
|
return response;
|
|
3316
|
-
|
|
3317
|
-
|
|
3308
|
+
}
|
|
3309
|
+
return renderNext(remaining);
|
|
3310
|
+
};
|
|
3311
|
+
return renderNext(NOT_FOUND_PRIORITY);
|
|
3318
3312
|
};
|
|
3319
3313
|
|
|
3320
3314
|
// src/svelte/pageHandler.ts
|
|
@@ -3343,9 +3337,9 @@ var handleSveltePageRequest = async (PageComponentOrInput, pagePath, indexPath,
|
|
|
3343
3337
|
pagePath: resolvedPagePath,
|
|
3344
3338
|
props: resolvedProps
|
|
3345
3339
|
} = typeof PageComponentOrInput === "object" && PageComponentOrInput !== null && "pagePath" in PageComponentOrInput && "indexPath" in PageComponentOrInput ? {
|
|
3346
|
-
PageComponent: undefined,
|
|
3347
3340
|
indexPath: PageComponentOrInput.indexPath,
|
|
3348
3341
|
options: PageComponentOrInput,
|
|
3342
|
+
PageComponent: undefined,
|
|
3349
3343
|
pagePath: PageComponentOrInput.pagePath,
|
|
3350
3344
|
props: PageComponentOrInput.props
|
|
3351
3345
|
} : {
|
|
@@ -3568,5 +3562,5 @@ export {
|
|
|
3568
3562
|
createTypedIsland
|
|
3569
3563
|
};
|
|
3570
3564
|
|
|
3571
|
-
//# debugId=
|
|
3565
|
+
//# debugId=38D00C76C4BB8D5D64756E2164756E21
|
|
3572
3566
|
//# sourceMappingURL=index.js.map
|