react-router 7.6.1-pre.1 → 7.6.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 (38) hide show
  1. package/CHANGELOG.md +9 -16
  2. package/dist/development/chunk-DQRVZFIR.mjs +11565 -0
  3. package/dist/development/dom-export.d.mts +2 -1
  4. package/dist/development/dom-export.js +1 -1
  5. package/dist/development/dom-export.mjs +23 -23
  6. package/dist/development/index.d.mts +260 -3751
  7. package/dist/development/index.d.ts +4 -1767
  8. package/dist/development/index.js +2 -2
  9. package/dist/development/index.mjs +121 -11439
  10. package/dist/development/lib/types/internal.d.mts +210 -0
  11. package/dist/development/lib/types/internal.d.ts +209 -0
  12. package/dist/{production/internal-export.js → development/lib/types/internal.js} +4 -4
  13. package/dist/{production/internal-export.mjs → development/lib/types/internal.mjs} +1 -1
  14. package/dist/development/lib-B8x_tOvL.d.mts +1736 -0
  15. package/dist/development/register-BkDIKxVz.d.ts +1816 -0
  16. package/dist/development/register-DeIo2iHO.d.mts +24 -0
  17. package/dist/development/route-data-WyrduLgj.d.mts +1793 -0
  18. package/dist/production/chunk-UG2XJOVM.mjs +11565 -0
  19. package/dist/production/dom-export.d.mts +2 -1
  20. package/dist/production/dom-export.js +1 -1
  21. package/dist/production/dom-export.mjs +23 -23
  22. package/dist/production/index.d.mts +260 -3751
  23. package/dist/production/index.d.ts +4 -1767
  24. package/dist/production/index.js +2 -2
  25. package/dist/production/index.mjs +121 -11439
  26. package/dist/production/lib/types/internal.d.mts +210 -0
  27. package/dist/production/lib/types/internal.d.ts +209 -0
  28. package/dist/{development/internal-export.js → production/lib/types/internal.js} +4 -4
  29. package/dist/{development/internal-export.mjs → production/lib/types/internal.mjs} +1 -1
  30. package/dist/production/lib-B8x_tOvL.d.mts +1736 -0
  31. package/dist/production/register-BkDIKxVz.d.ts +1816 -0
  32. package/dist/production/register-DeIo2iHO.d.mts +24 -0
  33. package/dist/production/route-data-WyrduLgj.d.mts +1793 -0
  34. package/package.json +4 -4
  35. package/dist/development/internal-export.d.mts +0 -504
  36. package/dist/development/internal-export.d.ts +0 -504
  37. package/dist/production/internal-export.d.mts +0 -504
  38. package/dist/production/internal-export.d.ts +0 -504
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- import { RouterProviderProps as RouterProviderProps$1, RouterInit } from 'react-router';
2
+ import { R as RouterProviderProps$1 } from './lib-B8x_tOvL.mjs';
3
+ import { R as RouterInit } from './route-data-WyrduLgj.mjs';
3
4
 
4
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
5
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.6.1-pre.1
2
+ * react-router v7.6.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.6.1-pre.1
2
+ * react-router v7.6.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,34 +8,34 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
+ import {
12
+ FrameworkContext,
13
+ RemixErrorBoundary,
14
+ RouterProvider,
15
+ createBrowserHistory,
16
+ createClientRoutes,
17
+ createClientRoutesWithHMRRevalidationOptOut,
18
+ createRouter,
19
+ decodeViaTurboStream,
20
+ deserializeErrors,
21
+ getHydrationData,
22
+ getPatchRoutesOnNavigationFunction,
23
+ getTurboStreamSingleFetchDataStrategy,
24
+ hydrationRouteProperties,
25
+ invariant,
26
+ mapRouteProperties,
27
+ useFogOFWarDiscovery
28
+ } from "./chunk-DQRVZFIR.mjs";
11
29
 
12
30
  // lib/dom-export/dom-router-provider.tsx
13
31
  import * as React from "react";
14
32
  import * as ReactDOM from "react-dom";
15
- import { RouterProvider as BaseRouterProvider } from "react-router";
16
- function RouterProvider(props) {
17
- return /* @__PURE__ */ React.createElement(BaseRouterProvider, { flushSync: ReactDOM.flushSync, ...props });
33
+ function RouterProvider2(props) {
34
+ return /* @__PURE__ */ React.createElement(RouterProvider, { flushSync: ReactDOM.flushSync, ...props });
18
35
  }
19
36
 
20
37
  // lib/dom-export/hydrated-router.tsx
21
38
  import * as React2 from "react";
22
- import {
23
- UNSAFE_getHydrationData as getHydrationData,
24
- UNSAFE_invariant as invariant,
25
- UNSAFE_FrameworkContext as FrameworkContext,
26
- UNSAFE_decodeViaTurboStream as decodeViaTurboStream,
27
- UNSAFE_RemixErrorBoundary as RemixErrorBoundary,
28
- UNSAFE_createBrowserHistory as createBrowserHistory,
29
- UNSAFE_createClientRoutes as createClientRoutes,
30
- UNSAFE_createRouter as createRouter,
31
- UNSAFE_deserializeErrors as deserializeErrors,
32
- UNSAFE_getTurboStreamSingleFetchDataStrategy as getTurboStreamSingleFetchDataStrategy,
33
- UNSAFE_getPatchRoutesOnNavigationFunction as getPatchRoutesOnNavigationFunction,
34
- UNSAFE_useFogOFWarDiscovery as useFogOFWarDiscovery,
35
- UNSAFE_mapRouteProperties as mapRouteProperties,
36
- UNSAFE_hydrationRouteProperties as hydrationRouteProperties,
37
- UNSAFE_createClientRoutesWithHMRRevalidationOptOut as createClientRoutesWithHMRRevalidationOptOut
38
- } from "react-router";
39
39
  var ssrInfo = null;
40
40
  var router = null;
41
41
  function initSsrInfo() {
@@ -215,11 +215,11 @@ function HydratedRouter(props) {
215
215
  routeDiscovery: ssrInfo.context.routeDiscovery
216
216
  }
217
217
  },
218
- /* @__PURE__ */ React2.createElement(RemixErrorBoundary, { location }, /* @__PURE__ */ React2.createElement(RouterProvider, { router }))
218
+ /* @__PURE__ */ React2.createElement(RemixErrorBoundary, { location }, /* @__PURE__ */ React2.createElement(RouterProvider2, { router }))
219
219
  ), /* @__PURE__ */ React2.createElement(React2.Fragment, null))
220
220
  );
221
221
  }
222
222
  export {
223
223
  HydratedRouter,
224
- RouterProvider
224
+ RouterProvider2 as RouterProvider
225
225
  };