houdini-svelte 0.18.0 → 0.18.2

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.
Files changed (43) hide show
  1. package/build/plugin/codegen/index.d.ts +1 -1
  2. package/build/plugin/extract.d.ts +1 -1
  3. package/build/plugin/index.d.ts +1 -1
  4. package/build/plugin/kit.d.ts +5 -5
  5. package/build/plugin/transforms/query.d.ts +3 -3
  6. package/build/plugin/transforms/types.d.ts +1 -1
  7. package/build/plugin-cjs/index.js +15015 -10047
  8. package/build/plugin-esm/index.js +15015 -10047
  9. package/build/preprocess-cjs/index.js +15136 -10188
  10. package/build/preprocess-esm/index.js +15136 -10188
  11. package/build/runtime/index.d.ts +5 -5
  12. package/build/runtime/session.d.ts +3 -3
  13. package/build/runtime/stores/mutation.d.ts +2 -2
  14. package/build/runtime/stores/pagination/cursor.d.ts +1 -1
  15. package/build/runtime/stores/pagination/fetch.d.ts +1 -1
  16. package/build/runtime/stores/pagination/fragment.d.ts +3 -3
  17. package/build/runtime/stores/pagination/offset.d.ts +1 -1
  18. package/build/runtime/stores/pagination/pageInfo.d.ts +1 -1
  19. package/build/runtime/stores/query.d.ts +8 -8
  20. package/build/runtime/types.d.ts +8 -8
  21. package/build/runtime-cjs/index.d.ts +5 -5
  22. package/build/runtime-cjs/session.d.ts +3 -3
  23. package/build/runtime-cjs/stores/mutation.d.ts +2 -2
  24. package/build/runtime-cjs/stores/pagination/cursor.d.ts +1 -1
  25. package/build/runtime-cjs/stores/pagination/fetch.d.ts +1 -1
  26. package/build/runtime-cjs/stores/pagination/fragment.d.ts +3 -3
  27. package/build/runtime-cjs/stores/pagination/offset.d.ts +1 -1
  28. package/build/runtime-cjs/stores/pagination/pageInfo.d.ts +1 -1
  29. package/build/runtime-cjs/stores/query.d.ts +8 -8
  30. package/build/runtime-cjs/types.d.ts +8 -8
  31. package/build/runtime-esm/index.d.ts +5 -5
  32. package/build/runtime-esm/session.d.ts +3 -3
  33. package/build/runtime-esm/stores/mutation.d.ts +2 -2
  34. package/build/runtime-esm/stores/pagination/cursor.d.ts +1 -1
  35. package/build/runtime-esm/stores/pagination/fetch.d.ts +1 -1
  36. package/build/runtime-esm/stores/pagination/fragment.d.ts +3 -3
  37. package/build/runtime-esm/stores/pagination/offset.d.ts +1 -1
  38. package/build/runtime-esm/stores/pagination/pageInfo.d.ts +1 -1
  39. package/build/runtime-esm/stores/query.d.ts +8 -8
  40. package/build/runtime-esm/types.d.ts +8 -8
  41. package/build/test-cjs/index.js +20142 -14106
  42. package/build/test-esm/index.js +20142 -14106
  43. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { GenerateHookInput, Config } from 'houdini';
2
2
  export default function (input: PluginGenerateInput): Promise<void>;
3
- export declare type PluginGenerateInput = Omit<GenerateHookInput, 'config'> & {
3
+ export type PluginGenerateInput = Omit<GenerateHookInput, 'config'> & {
4
4
  config: Config;
5
5
  framework: 'kit' | 'svelte';
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import { type Maybe, type Script } from 'houdini';
2
2
  export default function (filepath: string, contents: string): Promise<string[]>;
3
3
  export declare function parseSvelte(str: string): Promise<ParsedFile>;
4
- export declare type ParsedFile = Maybe<{
4
+ export type ParsedFile = Maybe<{
5
5
  script: Script;
6
6
  start: number;
7
7
  end: number;
@@ -6,7 +6,7 @@ declare module 'houdini' {
6
6
  'houdini-svelte': HoudiniVitePluginConfig;
7
7
  }
8
8
  }
9
- export declare type HoudiniVitePluginConfig = {
9
+ export type HoudiniVitePluginConfig = {
10
10
  /**
11
11
  * A relative path from your houdini.config.js to the file that exports your client as its default value
12
12
  */
@@ -3,7 +3,7 @@ import { Config } from 'houdini';
3
3
  import recast from 'recast';
4
4
  import { HoudiniVitePluginConfig } from '.';
5
5
  import { SvelteTransformPage } from './transforms/types';
6
- declare type Identifier = recast.types.namedTypes.Identifier;
6
+ type Identifier = recast.types.namedTypes.Identifier;
7
7
  export declare function is_route(config: Config, framework: Framework, filepath: string): boolean;
8
8
  export declare function route_data_path(config: Config, filename: string): string;
9
9
  export declare function routePagePath(config: Config, filename: string): string;
@@ -20,7 +20,7 @@ export declare function page_query_path(config: Config, filename: string): strin
20
20
  export declare function layout_query_path(config: Config, filename: string): string;
21
21
  export declare function resolve_relative(config: Config, filename: string): string;
22
22
  export declare function walk_routes(config: Config, framework: Framework, visitor: RouteVisitor, dirpath?: string): Promise<void>;
23
- export declare type RouteVisitor = {
23
+ export type RouteVisitor = {
24
24
  inlinePageQueries?: RouteVisitorHandler<graphql.OperationDefinitionNode>;
25
25
  inlineLayoutQueries?: RouteVisitorHandler<graphql.OperationDefinitionNode>;
26
26
  routePageQuery?: RouteVisitorHandler<graphql.OperationDefinitionNode>;
@@ -38,8 +38,8 @@ export declare type RouteVisitor = {
38
38
  pageExports: string[];
39
39
  }>;
40
40
  };
41
- declare type RouteVisitorHandler<_Payload> = (value: _Payload, filepath: string) => Promise<void> | void;
42
- export declare type HoudiniRouteScript = {
41
+ type RouteVisitorHandler<_Payload> = (value: _Payload, filepath: string) => Promise<void> | void;
42
+ export type HoudiniRouteScript = {
43
43
  houdini_load?: graphql.OperationDefinitionNode[];
44
44
  exports: string[];
45
45
  };
@@ -71,5 +71,5 @@ export declare function store_import({ page, artifact, local, }: {
71
71
  id: Identifier;
72
72
  added: number;
73
73
  };
74
- export declare type Framework = 'kit' | 'svelte';
74
+ export type Framework = 'kit' | 'svelte';
75
75
  export {};
@@ -1,12 +1,12 @@
1
- import { ExpressionKind } from 'ast-types/gen/kinds';
1
+ import { ExpressionKind } from 'ast-types/lib/gen/kinds';
2
2
  import { Config, Script } from 'houdini';
3
3
  import { TransformPage } from 'houdini/vite';
4
4
  import * as recast from 'recast';
5
5
  import { SvelteTransformPage } from './types';
6
- declare type Statement = recast.types.namedTypes.Statement;
6
+ type Statement = recast.types.namedTypes.Statement;
7
7
  export default function QueryProcessor(config: Config, page: SvelteTransformPage): Promise<void>;
8
8
  export declare function find_inline_queries(page: TransformPage, parsed: Script | null, store_id: (name: string) => ExpressionKind): Promise<LoadTarget[]>;
9
- export declare type LoadTarget = {
9
+ export type LoadTarget = {
10
10
  store_id: Statement;
11
11
  name: string;
12
12
  variables: boolean;
@@ -1,7 +1,7 @@
1
1
  import { Script } from 'houdini';
2
2
  import { TransformPage } from 'houdini/vite';
3
3
  import { Framework } from '../kit';
4
- export declare type SvelteTransformPage = TransformPage & {
4
+ export type SvelteTransformPage = TransformPage & {
5
5
  framework: Framework;
6
6
  script: Script;
7
7
  };