houdini-svelte 1.1.7 → 1.2.0-next.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.
Files changed (75) hide show
  1. package/README.md +1 -1
  2. package/build/plugin/artifactData.d.ts +1 -0
  3. package/build/plugin/extract.d.ts +8 -5
  4. package/build/plugin/index.d.ts +4 -0
  5. package/build/plugin/kit.d.ts +1 -1
  6. package/build/plugin/validate.d.ts +1 -1
  7. package/build/plugin-cjs/index.js +2431 -2262
  8. package/build/plugin-esm/index.js +2431 -2262
  9. package/build/preprocess-cjs/index.js +2320 -2186
  10. package/build/preprocess-esm/index.js +2320 -2186
  11. package/build/runtime/fragments.d.ts +2 -2
  12. package/build/runtime/index.d.ts +1 -1
  13. package/build/runtime/stores/base.d.ts +2 -2
  14. package/build/runtime/stores/fragment.d.ts +2 -2
  15. package/build/runtime/stores/index.d.ts +1 -1
  16. package/build/runtime/stores/mutation.d.ts +2 -2
  17. package/build/runtime/stores/pagination/fragment.d.ts +6 -10
  18. package/build/runtime/stores/pagination/query.d.ts +6 -7
  19. package/build/runtime/stores/query.d.ts +3 -55
  20. package/build/runtime/stores/subscription.d.ts +2 -2
  21. package/build/runtime/types.d.ts +40 -28
  22. package/build/runtime-cjs/fragments.d.ts +2 -2
  23. package/build/runtime-cjs/index.d.ts +1 -1
  24. package/build/runtime-cjs/stores/base.d.ts +2 -2
  25. package/build/runtime-cjs/stores/fragment.d.ts +2 -2
  26. package/build/runtime-cjs/stores/fragment.js +7 -5
  27. package/build/runtime-cjs/stores/index.d.ts +1 -1
  28. package/build/runtime-cjs/stores/mutation.d.ts +2 -2
  29. package/build/runtime-cjs/stores/pagination/fragment.d.ts +6 -10
  30. package/build/runtime-cjs/stores/pagination/fragment.js +6 -10
  31. package/build/runtime-cjs/stores/pagination/query.d.ts +6 -7
  32. package/build/runtime-cjs/stores/pagination/query.js +7 -7
  33. package/build/runtime-cjs/stores/query.d.ts +3 -55
  34. package/build/runtime-cjs/stores/query.js +33 -2
  35. package/build/runtime-cjs/stores/subscription.d.ts +2 -2
  36. package/build/runtime-cjs/types.d.ts +40 -28
  37. package/build/runtime-esm/fragments.d.ts +2 -2
  38. package/build/runtime-esm/index.d.ts +1 -1
  39. package/build/runtime-esm/stores/base.d.ts +2 -2
  40. package/build/runtime-esm/stores/fragment.d.ts +2 -2
  41. package/build/runtime-esm/stores/fragment.js +7 -5
  42. package/build/runtime-esm/stores/index.d.ts +1 -1
  43. package/build/runtime-esm/stores/mutation.d.ts +2 -2
  44. package/build/runtime-esm/stores/pagination/fragment.d.ts +6 -10
  45. package/build/runtime-esm/stores/pagination/fragment.js +4 -8
  46. package/build/runtime-esm/stores/pagination/query.d.ts +6 -7
  47. package/build/runtime-esm/stores/pagination/query.js +5 -5
  48. package/build/runtime-esm/stores/query.d.ts +3 -55
  49. package/build/runtime-esm/stores/query.js +33 -2
  50. package/build/runtime-esm/stores/subscription.d.ts +2 -2
  51. package/build/runtime-esm/types.d.ts +40 -28
  52. package/build/test/index.d.ts +1 -1
  53. package/build/test-cjs/index.js +4996 -4300
  54. package/build/test-esm/index.js +4996 -4300
  55. package/package.json +5 -2
  56. package/build/runtime/stores/pagination/cursor.d.ts +0 -13
  57. package/build/runtime/stores/pagination/fetch.d.ts +0 -3
  58. package/build/runtime/stores/pagination/offset.d.ts +0 -20
  59. package/build/runtime/stores/pagination/pageInfo.d.ts +0 -13
  60. package/build/runtime-cjs/stores/pagination/cursor.d.ts +0 -13
  61. package/build/runtime-cjs/stores/pagination/cursor.js +0 -191
  62. package/build/runtime-cjs/stores/pagination/fetch.d.ts +0 -3
  63. package/build/runtime-cjs/stores/pagination/fetch.js +0 -16
  64. package/build/runtime-cjs/stores/pagination/offset.d.ts +0 -20
  65. package/build/runtime-cjs/stores/pagination/offset.js +0 -89
  66. package/build/runtime-cjs/stores/pagination/pageInfo.d.ts +0 -13
  67. package/build/runtime-cjs/stores/pagination/pageInfo.js +0 -79
  68. package/build/runtime-esm/stores/pagination/cursor.d.ts +0 -13
  69. package/build/runtime-esm/stores/pagination/cursor.js +0 -167
  70. package/build/runtime-esm/stores/pagination/fetch.d.ts +0 -3
  71. package/build/runtime-esm/stores/pagination/fetch.js +0 -0
  72. package/build/runtime-esm/stores/pagination/offset.d.ts +0 -20
  73. package/build/runtime-esm/stores/pagination/offset.js +0 -65
  74. package/build/runtime-esm/stores/pagination/pageInfo.d.ts +0 -13
  75. package/build/runtime-esm/stores/pagination/pageInfo.js +0 -52
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/HoudiniGraphql/houdini/main/.github/assetss/logo_l.svg">
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/HoudiniGraphql/houdini/main/.github/assets/logo_l.svg">
4
4
  <img height="140" alt="Houdini's logo (dark or light)" src="https://raw.githubusercontent.com/HoudiniGraphql/houdini/main/.github/assets/logo_d.svg">
5
5
  </picture>
6
6
  <br />
@@ -1,6 +1,7 @@
1
1
  import type { Document, Config } from 'houdini';
2
2
  export type PluginArtifactData = {
3
3
  isManualLoad?: boolean;
4
+ set_blocking?: boolean;
4
5
  };
5
6
  export declare function artifactData({ config, document, }: {
6
7
  config: Config;
@@ -3,9 +3,12 @@ export default function ({ config, content, }: {
3
3
  config: Config;
4
4
  content: string;
5
5
  }): Promise<string[]>;
6
- export declare function parseSvelte(str: string): Promise<ParsedFile>;
7
- export type ParsedFile = Maybe<{
6
+ type EmbeddedScript = {
8
7
  script: Script;
9
- start: number;
10
- end: number;
11
- }>;
8
+ position: {
9
+ start: number;
10
+ end: number;
11
+ };
12
+ };
13
+ export declare function parseSvelte(str: string): Promise<Maybe<EmbeddedScript>>;
14
+ export {};
@@ -14,6 +14,10 @@ export type HoudiniSvelteConfig = {
14
14
  * @default `./src/client.ts`
15
15
  */
16
16
  client?: string;
17
+ /**
18
+ * Specifies whether the client side routing is blocking or not. (default: `false`)
19
+ */
20
+ defaultRouteBlocking?: boolean;
17
21
  /**
18
22
  * The name of the file used to define page queries.
19
23
  * @default +page.gql
@@ -1,6 +1,6 @@
1
1
  import * as graphql from 'graphql';
2
2
  import type { Config } from 'houdini';
3
- import type recast from 'recast';
3
+ import type * as recast from 'recast';
4
4
  import type { HoudiniSvelteConfig } from '.';
5
5
  import type { SvelteTransformPage } from './transforms/types';
6
6
  type Identifier = recast.types.namedTypes.Identifier;
@@ -1,5 +1,5 @@
1
1
  import type { Config, Document } from 'houdini';
2
- export default function validateDocuments({ config, documents, }: {
2
+ export declare function validate({ config, documents, }: {
3
3
  config: Config;
4
4
  documents: Document[];
5
5
  }): Promise<void>;