houdini-svelte 1.2.7 → 1.2.9
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/kit.d.ts +6 -0
- package/build/plugin-cjs/index.js +286 -211
- package/build/plugin-esm/index.js +286 -211
- package/build/preprocess-cjs/index.js +885 -844
- package/build/preprocess-esm/index.js +885 -844
- package/build/test-cjs/index.js +322 -247
- package/build/test-esm/index.js +322 -247
- package/package.json +2 -2
package/build/plugin/kit.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function is_root_layout(config: Config, filename: string): boolea
|
|
|
14
14
|
export declare function is_root_layout_server(config: Config, filename: string): boolean;
|
|
15
15
|
export declare function is_root_layout_script(config: Config, filename: string): boolean;
|
|
16
16
|
export declare function is_layout_component(framework: Framework, filename: string): boolean;
|
|
17
|
+
export declare function is_page_component(framework: Framework, filename: string): boolean;
|
|
17
18
|
export declare function is_layout(framework: Framework, filename: string): boolean;
|
|
18
19
|
export declare function is_component(config: Config, framework: Framework, filename: string): boolean;
|
|
19
20
|
export declare function page_query_path(config: Config, filename: string): string;
|
|
@@ -25,6 +26,7 @@ export type RouteVisitor = {
|
|
|
25
26
|
inlineLayoutQueries?: RouteVisitorHandler<graphql.OperationDefinitionNode>;
|
|
26
27
|
routePageQuery?: RouteVisitorHandler<graphql.OperationDefinitionNode>;
|
|
27
28
|
routeLayoutQuery?: RouteVisitorHandler<graphql.OperationDefinitionNode>;
|
|
29
|
+
routeComponentQuery?: RouteVisitorHandler<graphql.OperationDefinitionNode>;
|
|
28
30
|
layoutQueries?: RouteVisitorHandler<graphql.OperationDefinitionNode[]>;
|
|
29
31
|
pageQueries?: RouteVisitorHandler<graphql.OperationDefinitionNode[]>;
|
|
30
32
|
layoutExports?: RouteVisitorHandler<string[]>;
|
|
@@ -34,6 +36,10 @@ export type RouteVisitor = {
|
|
|
34
36
|
svelteTypeFilePath: string;
|
|
35
37
|
layoutQueries: graphql.OperationDefinitionNode[];
|
|
36
38
|
pageQueries: graphql.OperationDefinitionNode[];
|
|
39
|
+
componentQueries: {
|
|
40
|
+
query: graphql.OperationDefinitionNode;
|
|
41
|
+
componentPath: string;
|
|
42
|
+
}[];
|
|
37
43
|
layoutExports: string[];
|
|
38
44
|
pageExports: string[];
|
|
39
45
|
}>;
|