@absolutejs/absolute 0.8.15 → 0.9.1
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/build/compileSvelte.d.ts +10 -0
- package/dist/build/compileVue.d.ts +5 -0
- package/dist/{src/build → build}/generateManifest.d.ts +1 -1
- package/dist/build/updateHTMLAssetPaths.d.ts +1 -0
- package/dist/core/build.d.ts +2 -0
- package/dist/{src/core → core}/index.d.ts +1 -0
- package/dist/core/lookup.d.ts +1 -0
- package/dist/core/pageHandlers.d.ts +14 -0
- package/dist/{src/index.d.ts → index.d.ts} +1 -1
- package/dist/index.js +546 -187
- package/dist/index.js.map +15 -11
- package/dist/types.d.ts +24 -0
- package/dist/utils/generateHeadElement.d.ts +17 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/stringModifiers.d.ts +2 -0
- package/eslint.config.mjs +38 -4
- package/package.json +8 -8
- package/tsconfig.build.json +20 -0
- package/dist/src/build/updateScriptTags.d.ts +0 -1
- package/dist/src/core/build.d.ts +0 -2
- package/dist/src/core/pageHandlers.d.ts +0 -10
- package/dist/src/svelte/compileSvelte.d.ts +0 -4
- package/dist/src/types.d.ts +0 -20
- package/dist/src/utils/index.d.ts +0 -2
- /package/dist/{src/build → build}/generateReactIndexes.d.ts +0 -0
- /package/dist/{src/build → build}/scanEntryPoints.d.ts +0 -0
- /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{src/plugins → plugins}/index.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/networkingPlugin.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/pageRouterPlugin.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/renderToPipeableStream.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/renderToReadableStream.d.ts +0 -0
- /package/dist/{src/svelte → svelte}/renderToString.d.ts +0 -0
- /package/dist/{src/utils → utils}/escapeScriptContent.d.ts +0 -0
- /package/dist/{src/utils → utils}/getDurationString.d.ts +0 -0
- /package/dist/{src/utils → utils}/networking.d.ts +0 -0
- /package/dist/{src/utils → utils}/validateSafePath.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Built = {
|
|
2
|
+
ssr: string;
|
|
3
|
+
client: string;
|
|
4
|
+
};
|
|
5
|
+
type Cache = Map<string, Built>;
|
|
6
|
+
export declare const compileSvelte: (entryPoints: string[], outRoot: string, cache?: Cache) => Promise<{
|
|
7
|
+
svelteClientPaths: string[];
|
|
8
|
+
svelteServerPaths: string[];
|
|
9
|
+
}>;
|
|
10
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BuildArtifact } from 'bun';
|
|
2
|
-
export declare const generateManifest: (outputs: BuildArtifact[],
|
|
2
|
+
export declare const generateManifest: (outputs: BuildArtifact[], buildPath: string) => Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const updateHTMLAssetPaths: (manifest: Record<string, string>, htmlDir: string) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const asset: (manifest: Record<string, string>, name: string) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentType as ReactComponent } from 'react';
|
|
2
|
+
import { Component as SvelteComponent } from 'svelte';
|
|
3
|
+
import { Component as VueComponent } from 'vue';
|
|
4
|
+
import { PropsArgs } from '../types';
|
|
5
|
+
export declare const handleReactPageRequest: <Props extends Record<string, unknown> = Record<never, never>>(pageComponent: ReactComponent<Props>, index: string, ...props: keyof Props extends never ? [] : [props: Props]) => Promise<Response>;
|
|
6
|
+
type HandleSveltePageRequest = {
|
|
7
|
+
(PageComponent: SvelteComponent<Record<string, never>>, pagePath: string, indexPath: string): Promise<Response>;
|
|
8
|
+
<P extends Record<string, unknown>>(PageComponent: SvelteComponent<P>, pagePath: string, indexPath: string, props: P): Promise<Response>;
|
|
9
|
+
};
|
|
10
|
+
export declare const handleSveltePageRequest: HandleSveltePageRequest;
|
|
11
|
+
export declare const handleVuePageRequest: <Props extends Record<string, unknown> = Record<never, never>>(_PageComponent: VueComponent<Props>, pagePath: string, indexPath: string, headTag?: `<head>${string}</head>`, ...props: keyof Props extends never ? [] : [props: Props]) => Promise<Response>;
|
|
12
|
+
export declare const handleHTMLPageRequest: (html: string) => Bun.BunFile;
|
|
13
|
+
export declare const handlePageRequest: <Component>(PageComponent: Component, ...props: PropsArgs<Component>) => void;
|
|
14
|
+
export {};
|