react-router 0.0.0-experimental-ec0227194 → 0.0.0-experimental-e613d4238

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 (41) hide show
  1. package/dist/{production/chunk-75QUA6OZ.mjs → development/chunk-2YVPYFDJ.mjs} +2 -2
  2. package/dist/development/{chunk-H52YY2UH.mjs → chunk-5P3HEZQU.mjs} +12 -2
  3. package/dist/{production/chunk-GW3ZZYBZ.js → development/chunk-XXC4LMW2.js} +134 -134
  4. package/dist/development/{chunk-MUO6KUBK.js → chunk-YJ6T7YSE.js} +24 -14
  5. package/dist/development/dom-export.js +3 -3
  6. package/dist/development/dom-export.mjs +3 -3
  7. package/dist/development/index-react-server-client.js +4 -4
  8. package/dist/development/index-react-server-client.mjs +2 -2
  9. package/dist/development/index-react-server.js +1 -1
  10. package/dist/development/index-react-server.mjs +1 -1
  11. package/dist/development/index.d.mts +9 -4
  12. package/dist/development/index.d.ts +9 -4
  13. package/dist/development/index.js +99 -97
  14. package/dist/development/index.mjs +5 -3
  15. package/dist/development/lib/types/internal.d.mts +1 -1
  16. package/dist/development/lib/types/internal.d.ts +1 -1
  17. package/dist/development/lib/types/internal.js +1 -1
  18. package/dist/development/lib/types/internal.mjs +1 -1
  19. package/dist/development/{register-DiOIlEq5.d.mts → register-BrVEYTED.d.mts} +7 -1
  20. package/dist/{production/register-DiOIlEq5.d.mts → development/register-D8NQoPsO.d.ts} +7 -1
  21. package/dist/{development/chunk-R7747Z7E.mjs → production/chunk-5MHETEIL.mjs} +2 -2
  22. package/dist/{development/chunk-CZCLJNAQ.js → production/chunk-E4G6PZCJ.js} +134 -134
  23. package/dist/production/{chunk-4JJCJOCM.js → chunk-QBUHFRYZ.js} +24 -14
  24. package/dist/production/{chunk-W6VH7ASH.mjs → chunk-VNGQS422.mjs} +12 -2
  25. package/dist/production/dom-export.js +3 -3
  26. package/dist/production/dom-export.mjs +3 -3
  27. package/dist/production/index-react-server-client.js +4 -4
  28. package/dist/production/index-react-server-client.mjs +2 -2
  29. package/dist/production/index-react-server.js +1 -1
  30. package/dist/production/index-react-server.mjs +1 -1
  31. package/dist/production/index.d.mts +9 -4
  32. package/dist/production/index.d.ts +9 -4
  33. package/dist/production/index.js +99 -97
  34. package/dist/production/index.mjs +5 -3
  35. package/dist/production/lib/types/internal.d.mts +1 -1
  36. package/dist/production/lib/types/internal.d.ts +1 -1
  37. package/dist/production/lib/types/internal.js +1 -1
  38. package/dist/production/lib/types/internal.mjs +1 -1
  39. package/dist/{development/register-DiOIlEq5.d.ts → production/register-BrVEYTED.d.mts} +7 -1
  40. package/dist/production/{register-DiOIlEq5.d.ts → register-D8NQoPsO.d.ts} +7 -1
  41. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-ec0227194
2
+ * react-router v0.0.0-experimental-e613d4238
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -60,7 +60,7 @@ import {
60
60
  withComponentProps,
61
61
  withErrorBoundaryProps,
62
62
  withHydrateFallbackProps
63
- } from "./chunk-W6VH7ASH.mjs";
63
+ } from "./chunk-5P3HEZQU.mjs";
64
64
 
65
65
  // lib/dom/ssr/server.tsx
66
66
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-ec0227194
2
+ * react-router v0.0.0-experimental-e613d4238
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -5552,6 +5552,15 @@ function warningOnce(key, cond, message) {
5552
5552
  warning(false, message);
5553
5553
  }
5554
5554
  }
5555
+ function useRoute(routeId) {
5556
+ const state = useDataRouterState("useRouteLoaderData" /* UseRouteLoaderData */);
5557
+ const route = state.matches.find(({ route: route2 }) => route2.id === routeId);
5558
+ if (route === void 0) return void 0;
5559
+ return {
5560
+ loaderData: state.loaderData[routeId],
5561
+ actionData: state.actionData?.[routeId]
5562
+ };
5563
+ }
5555
5564
 
5556
5565
  // lib/components.tsx
5557
5566
  import * as React3 from "react";
@@ -9113,7 +9122,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
9113
9122
  try {
9114
9123
  if (isBrowser) {
9115
9124
  window.__reactRouterVersion = // @ts-expect-error
9116
- "0.0.0-experimental-ec0227194";
9125
+ "0.0.0-experimental-e613d4238";
9117
9126
  }
9118
9127
  } catch (e) {
9119
9128
  }
@@ -10271,6 +10280,7 @@ export {
10271
10280
  useAsyncValue,
10272
10281
  useAsyncError,
10273
10282
  useBlocker,
10283
+ useRoute,
10274
10284
  warnOnce,
10275
10285
  mapRouteProperties,
10276
10286
  hydrationRouteProperties,