houdini-react 1.2.8 → 1.2.10
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/build/plugin/codegen/entries.d.ts +1 -2
- package/build/plugin/codegen/index.d.ts +1 -2
- package/build/plugin/codegen/manifest.d.ts +4 -41
- package/build/plugin/codegen/router.d.ts +1 -2
- package/build/plugin/codegen/typeRoot.d.ts +1 -2
- package/build/plugin/index.d.ts +3 -1
- package/build/plugin/vite.d.ts +38 -1
- package/build/plugin-cjs/index.js +60265 -61245
- package/build/plugin-esm/index.js +60262 -61244
- package/build/runtime/index.d.ts +6 -3
- package/build/runtime/routing/components/Router.d.ts +4 -4
- package/build/runtime/routing/components/index.d.ts +0 -1
- package/build/runtime/routing/lib/cache.d.ts +1 -1
- package/build/runtime/routing/lib/types.d.ts +0 -4
- package/build/runtime/server/compat.d.ts +7 -0
- package/build/runtime/server/index.d.ts +17 -0
- package/build/runtime/server/session.d.ts +3 -0
- package/build/runtime-cjs/index.d.ts +6 -3
- package/build/runtime-cjs/index.js +22 -18
- package/build/runtime-cjs/routing/components/Router.d.ts +4 -4
- package/build/runtime-cjs/routing/components/Router.js +69 -39
- package/build/runtime-cjs/routing/components/index.d.ts +0 -1
- package/build/runtime-cjs/routing/components/index.js +0 -3
- package/build/runtime-cjs/routing/lib/cache.d.ts +1 -1
- package/build/runtime-cjs/routing/lib/cache.js +6 -2
- package/build/runtime-cjs/routing/lib/types.d.ts +0 -4
- package/build/runtime-cjs/server/compat.js +52 -0
- package/build/runtime-cjs/server/index.js +54 -0
- package/build/runtime-cjs/{routing/components/Link.js → server/session.js} +32 -22
- package/build/runtime-esm/index.d.ts +6 -3
- package/build/runtime-esm/index.js +22 -18
- package/build/runtime-esm/routing/components/Router.d.ts +4 -4
- package/build/runtime-esm/routing/components/Router.js +69 -38
- package/build/runtime-esm/routing/components/index.d.ts +0 -1
- package/build/runtime-esm/routing/components/index.js +0 -2
- package/build/runtime-esm/routing/lib/cache.d.ts +1 -1
- package/build/runtime-esm/routing/lib/cache.js +6 -2
- package/build/runtime-esm/routing/lib/types.d.ts +0 -4
- package/build/runtime-esm/server/compat.d.ts +7 -0
- package/build/runtime-esm/server/compat.js +28 -0
- package/build/runtime-esm/server/index.d.ts +17 -0
- package/build/runtime-esm/server/index.js +30 -0
- package/build/runtime-esm/server/session.d.ts +3 -0
- package/build/runtime-esm/server/session.js +30 -0
- package/package.json +3 -12
- package/build/plugin/conventions.d.ts +0 -24
- package/build/runtime/routing/components/Link.d.ts +0 -5
- package/build/runtime-cjs/routing/components/Link.d.ts +0 -5
- package/build/runtime-esm/routing/components/Link.d.ts +0 -5
- package/build/runtime-esm/routing/components/Link.js +0 -21
- package/build/server-cjs/index.js +0 -166712
- package/build/server-cjs/package.json +0 -1
- package/build/server-esm/index.js +0 -166703
- package/build/server-esm/package.json +0 -1
- /package/build/{server → runtime-cjs/server}/compat.d.ts +0 -0
- /package/build/{server → runtime-cjs/server}/index.d.ts +0 -0
- /package/build/{server → runtime-cjs/server}/session.d.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { GenerateHookInput } from 'houdini';
|
|
2
|
-
import type { ProjectManifest } from './manifest';
|
|
1
|
+
import type { GenerateHookInput, ProjectManifest } from 'houdini';
|
|
3
2
|
/**
|
|
4
3
|
* The router is fundamentally a component that knows how to render
|
|
5
4
|
* a particular component tree for a given url. This is driven by something
|
|
@@ -1,42 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
* Walk down the routes directory and build a normalized description of the project's
|
|
4
|
-
* filesystem.
|
|
5
|
-
*/
|
|
6
|
-
export declare function load_manifest(args: {
|
|
1
|
+
import { type Config, type ProjectManifest } from 'houdini';
|
|
2
|
+
export declare function write_manifest({ config, manifest, }: {
|
|
7
3
|
config: Config;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type ProjectManifest = {
|
|
11
|
-
/** All of the pages in the project */
|
|
12
|
-
pages: Record<string, PageManifest>;
|
|
13
|
-
/** All of the layouts in the project */
|
|
14
|
-
layouts: Record<string, PageManifest>;
|
|
15
|
-
/** All of the page queries in the project */
|
|
16
|
-
page_queries: Record<string, QueryManifest>;
|
|
17
|
-
/** All of the layout queries in the project */
|
|
18
|
-
layout_queries: Record<string, QueryManifest>;
|
|
19
|
-
};
|
|
20
|
-
export type PageManifest = {
|
|
21
|
-
id: string;
|
|
22
|
-
/** the name of every query that the page depends on */
|
|
23
|
-
queries: string[];
|
|
24
|
-
/** the list of queries that this page could potentially ask for */
|
|
25
|
-
query_options: string[];
|
|
26
|
-
/** the full url pattern of the page */
|
|
27
|
-
url: string;
|
|
28
|
-
/** the ids of layouts that wrap this page */
|
|
29
|
-
layouts: string[];
|
|
30
|
-
/** The filepath of the unit */
|
|
31
|
-
path: string;
|
|
32
|
-
};
|
|
33
|
-
export type QueryManifest = {
|
|
34
|
-
/** the name of the query */
|
|
35
|
-
name: string;
|
|
36
|
-
/** the url tied with the query */
|
|
37
|
-
url: string;
|
|
38
|
-
/** wether the query uses the loading directive (ie, wants a fallback) */
|
|
39
|
-
loading: boolean;
|
|
40
|
-
/** The filepath of the unit */
|
|
41
|
-
path: string;
|
|
42
|
-
};
|
|
4
|
+
manifest: ProjectManifest;
|
|
5
|
+
}): Promise<void>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type Config } from 'houdini';
|
|
2
|
-
import type { ProjectManifest } from './manifest';
|
|
1
|
+
import { type Config, type ProjectManifest } from 'houdini';
|
|
3
2
|
export declare function format_router_manifest({ config, manifest, exportDefaultStatement, }: {
|
|
4
3
|
config: Config;
|
|
5
4
|
manifest: ProjectManifest;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type Config } from 'houdini';
|
|
2
|
-
import type { ProjectManifest } from './manifest';
|
|
1
|
+
import { type Config, type ProjectManifest } from 'houdini';
|
|
3
2
|
export declare function generate_type_root({ config, manifest, }: {
|
|
4
3
|
config: Config;
|
|
5
4
|
manifest: ProjectManifest;
|
package/build/plugin/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type Plugin } from 'houdini';
|
|
1
|
+
import { type Plugin, type ProjectManifest } from 'houdini';
|
|
2
|
+
export declare let manifest: ProjectManifest;
|
|
2
3
|
export declare const hooks: Plugin;
|
|
3
4
|
declare const _default: import("houdini").PluginInit;
|
|
4
5
|
export default _default;
|
|
@@ -14,3 +15,4 @@ type HoudiniReactAuthStrategy = {
|
|
|
14
15
|
sessionKeys: string[];
|
|
15
16
|
url: string;
|
|
16
17
|
};
|
|
18
|
+
export declare function setManifest(newManifest: ProjectManifest): void;
|
package/build/plugin/vite.d.ts
CHANGED
|
@@ -1,7 +1,44 @@
|
|
|
1
1
|
import { Config } from 'houdini';
|
|
2
2
|
import type { ViteDevServer } from 'vite';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
config?: ((config: Config) => import("vite").UserConfig) | undefined;
|
|
4
|
+
config?: ((config: Config, env: import("vite").ConfigEnv) => import("vite").UserConfig | Promise<import("vite").UserConfig>) | undefined;
|
|
5
|
+
buildStart?: ((this: import("rollup").PluginContext, options: import("rollup").NormalizedInputOptions & {
|
|
6
|
+
houdiniConfig: Config;
|
|
7
|
+
}) => void) | undefined;
|
|
8
|
+
buildEnd?: ((this: import("rollup").PluginContext, error?: Error | undefined, houdiniConfig?: Config | undefined) => void | Promise<void>) | undefined;
|
|
9
|
+
closeBundle?: ((this: import("rollup").PluginContext) => void | Promise<void>) | undefined;
|
|
10
|
+
configResolved?: import("rollup").ObjectHook<(this: void, config: Readonly<Omit<import("vite").UserConfig, "plugins" | "assetsInclude" | "optimizeDeps" | "worker"> & {
|
|
11
|
+
configFile: string | undefined;
|
|
12
|
+
configFileDependencies: string[];
|
|
13
|
+
inlineConfig: import("vite").InlineConfig;
|
|
14
|
+
root: string;
|
|
15
|
+
base: string;
|
|
16
|
+
publicDir: string;
|
|
17
|
+
cacheDir: string;
|
|
18
|
+
command: "build" | "serve";
|
|
19
|
+
mode: string;
|
|
20
|
+
isWorker: boolean;
|
|
21
|
+
isProduction: boolean;
|
|
22
|
+
env: Record<string, any>;
|
|
23
|
+
resolve: Required<import("vite").ResolveOptions> & {
|
|
24
|
+
alias: import("vite").Alias[];
|
|
25
|
+
};
|
|
26
|
+
plugins: readonly import("vite").Plugin[];
|
|
27
|
+
server: import("vite").ResolvedServerOptions;
|
|
28
|
+
build: import("vite").ResolvedBuildOptions;
|
|
29
|
+
preview: import("vite").ResolvedPreviewOptions;
|
|
30
|
+
ssr: import("vite").ResolvedSSROptions;
|
|
31
|
+
assetsInclude: (file: string) => boolean;
|
|
32
|
+
logger: import("vite").Logger;
|
|
33
|
+
createResolver: (options?: Partial<import("vite").InternalResolveOptions> | undefined) => import("vite").ResolveFn;
|
|
34
|
+
optimizeDeps: import("vite").DepOptimizationOptions;
|
|
35
|
+
worker: import("vite").ResolveWorkerOptions;
|
|
36
|
+
appType: import("vite").AppType;
|
|
37
|
+
experimental: import("vite").ExperimentalOptions;
|
|
38
|
+
} & import("vite").PluginHookUtils>) => void | Promise<void>, {}> | undefined;
|
|
39
|
+
options?: ((this: import("rollup").MinimalPluginContext, options: import("rollup").InputOptions & {
|
|
40
|
+
houdiniConfig: Config;
|
|
41
|
+
}) => import("rollup").NullValue | import("rollup").InputOptions) | undefined;
|
|
5
42
|
resolveId?: import("rollup").ObjectHook<(this: import("rollup").PluginContext, source: string, importer: string | undefined, options: {
|
|
6
43
|
config: Config;
|
|
7
44
|
custom?: import("rollup").CustomPluginOptions | undefined;
|