houdini-react 1.2.9 → 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.
Files changed (57) hide show
  1. package/build/plugin/codegen/entries.d.ts +1 -2
  2. package/build/plugin/codegen/index.d.ts +1 -2
  3. package/build/plugin/codegen/manifest.d.ts +4 -41
  4. package/build/plugin/codegen/router.d.ts +1 -2
  5. package/build/plugin/codegen/typeRoot.d.ts +1 -2
  6. package/build/plugin/index.d.ts +3 -1
  7. package/build/plugin/vite.d.ts +38 -1
  8. package/build/plugin-cjs/index.js +60083 -61067
  9. package/build/plugin-esm/index.js +60080 -61066
  10. package/build/runtime/index.d.ts +6 -3
  11. package/build/runtime/routing/components/Router.d.ts +4 -4
  12. package/build/runtime/routing/components/index.d.ts +0 -1
  13. package/build/runtime/routing/lib/cache.d.ts +1 -1
  14. package/build/runtime/routing/lib/types.d.ts +0 -4
  15. package/build/runtime/server/compat.d.ts +7 -0
  16. package/build/runtime/server/index.d.ts +17 -0
  17. package/build/runtime/server/session.d.ts +3 -0
  18. package/build/runtime-cjs/index.d.ts +6 -3
  19. package/build/runtime-cjs/index.js +22 -18
  20. package/build/runtime-cjs/routing/components/Router.d.ts +4 -4
  21. package/build/runtime-cjs/routing/components/Router.js +69 -39
  22. package/build/runtime-cjs/routing/components/index.d.ts +0 -1
  23. package/build/runtime-cjs/routing/components/index.js +0 -3
  24. package/build/runtime-cjs/routing/lib/cache.d.ts +1 -1
  25. package/build/runtime-cjs/routing/lib/cache.js +6 -2
  26. package/build/runtime-cjs/routing/lib/types.d.ts +0 -4
  27. package/build/runtime-cjs/server/compat.js +52 -0
  28. package/build/runtime-cjs/server/index.js +54 -0
  29. package/build/runtime-cjs/{routing/components/Link.js → server/session.js} +32 -22
  30. package/build/runtime-esm/index.d.ts +6 -3
  31. package/build/runtime-esm/index.js +22 -18
  32. package/build/runtime-esm/routing/components/Router.d.ts +4 -4
  33. package/build/runtime-esm/routing/components/Router.js +69 -38
  34. package/build/runtime-esm/routing/components/index.d.ts +0 -1
  35. package/build/runtime-esm/routing/components/index.js +0 -2
  36. package/build/runtime-esm/routing/lib/cache.d.ts +1 -1
  37. package/build/runtime-esm/routing/lib/cache.js +6 -2
  38. package/build/runtime-esm/routing/lib/types.d.ts +0 -4
  39. package/build/runtime-esm/server/compat.d.ts +7 -0
  40. package/build/runtime-esm/server/compat.js +28 -0
  41. package/build/runtime-esm/server/index.d.ts +17 -0
  42. package/build/runtime-esm/server/index.js +30 -0
  43. package/build/runtime-esm/server/session.d.ts +3 -0
  44. package/build/runtime-esm/server/session.js +30 -0
  45. package/package.json +3 -12
  46. package/build/plugin/conventions.d.ts +0 -24
  47. package/build/runtime/routing/components/Link.d.ts +0 -5
  48. package/build/runtime-cjs/routing/components/Link.d.ts +0 -5
  49. package/build/runtime-esm/routing/components/Link.d.ts +0 -5
  50. package/build/runtime-esm/routing/components/Link.js +0 -21
  51. package/build/server-cjs/index.js +0 -166716
  52. package/build/server-cjs/package.json +0 -1
  53. package/build/server-esm/index.js +0 -166707
  54. package/build/server-esm/package.json +0 -1
  55. /package/build/{server → runtime-cjs/server}/compat.d.ts +0 -0
  56. /package/build/{server → runtime-cjs/server}/index.d.ts +0 -0
  57. /package/build/{server → runtime-cjs/server}/session.d.ts +0 -0
@@ -1,21 +0,0 @@
1
- import React, { useTransition } from "react";
2
- import { useNavigationContext } from "./Router";
3
- function Link({
4
- href,
5
- children,
6
- style,
7
- ...props
8
- }) {
9
- const { goto } = useNavigationContext();
10
- const [pending, startTransition] = useTransition();
11
- const click = (e) => {
12
- e.preventDefault();
13
- startTransition(() => {
14
- goto(href);
15
- });
16
- };
17
- return /* @__PURE__ */ React.createElement("a", { href, onClick: click, style, ...props }, children);
18
- }
19
- export {
20
- Link
21
- };