houdini-react 1.2.6 → 1.2.8

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 (36) hide show
  1. package/build/plugin/config.d.ts +2 -2
  2. package/build/plugin/index.d.ts +12 -1
  3. package/build/plugin-cjs/index.js +58817 -1974
  4. package/build/plugin-esm/index.js +58815 -1973
  5. package/build/runtime/index.d.ts +2 -1
  6. package/build/runtime/routing/components/Router.d.ts +5 -1
  7. package/build/runtime/routing/components/index.d.ts +1 -1
  8. package/build/runtime/routing/lib/types.d.ts +0 -1
  9. package/build/runtime-cjs/hooks/useDocumentHandle.js +11 -6
  10. package/build/runtime-cjs/hooks/useDocumentSubscription.js +4 -2
  11. package/build/runtime-cjs/hooks/useMutation.js +3 -1
  12. package/build/runtime-cjs/index.d.ts +2 -1
  13. package/build/runtime-cjs/index.js +4 -2
  14. package/build/runtime-cjs/routing/components/Router.d.ts +5 -1
  15. package/build/runtime-cjs/routing/components/Router.js +34 -5
  16. package/build/runtime-cjs/routing/components/index.d.ts +1 -1
  17. package/build/runtime-cjs/routing/components/index.js +2 -0
  18. package/build/runtime-cjs/routing/lib/types.d.ts +0 -1
  19. package/build/runtime-esm/hooks/useDocumentHandle.js +11 -6
  20. package/build/runtime-esm/hooks/useDocumentSubscription.js +4 -2
  21. package/build/runtime-esm/hooks/useMutation.js +3 -1
  22. package/build/runtime-esm/index.d.ts +2 -1
  23. package/build/runtime-esm/index.js +4 -2
  24. package/build/runtime-esm/routing/components/Router.d.ts +5 -1
  25. package/build/runtime-esm/routing/components/Router.js +31 -4
  26. package/build/runtime-esm/routing/components/index.d.ts +1 -1
  27. package/build/runtime-esm/routing/components/index.js +2 -1
  28. package/build/runtime-esm/routing/lib/types.d.ts +0 -1
  29. package/build/server/compat.d.ts +7 -0
  30. package/build/server/index.d.ts +17 -0
  31. package/build/server/session.d.ts +3 -0
  32. package/build/server-cjs/index.js +166712 -0
  33. package/build/server-cjs/package.json +1 -0
  34. package/build/server-esm/index.js +166703 -0
  35. package/build/server-esm/package.json +1 -0
  36. package/package.json +20 -5
@@ -1,4 +1,4 @@
1
1
  import type { Config } from 'houdini';
2
2
  import type { HoudiniReactPluginConfig } from '.';
3
- export declare function plugin_config(config: Config): Required<HoudiniReactPluginConfig>;
4
- export declare function test_config(extraConfig?: Partial<HoudiniReactPluginConfig>): Promise<Config>;
3
+ export declare function plugin_config(config: Config): HoudiniReactPluginConfig;
4
+ export declare function test_config(): Promise<Config>;
@@ -2,4 +2,15 @@ import { type Plugin } from 'houdini';
2
2
  export declare const hooks: Plugin;
3
3
  declare const _default: import("houdini").PluginInit;
4
4
  export default _default;
5
- export type HoudiniReactPluginConfig = {};
5
+ export type HoudiniReactPluginConfig = {
6
+ auth?: HoudiniReactAuthStrategy;
7
+ };
8
+ type HoudiniReactAuthStrategy = {
9
+ redirect: string;
10
+ sessionKeys: string[];
11
+ url: string;
12
+ } | {
13
+ mutation: string;
14
+ sessionKeys: string[];
15
+ url: string;
16
+ };