react-router 0.0.0-experimental-e6fb6e074 → 0.0.0-experimental-2d7ec82d5

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 (65) hide show
  1. package/CHANGELOG.md +734 -18
  2. package/README.md +5 -14
  3. package/dist/development/chunk-JPPIU5KG.mjs +11511 -0
  4. package/dist/development/data-CQbyyGzl.d.mts +11 -0
  5. package/dist/development/data-CQbyyGzl.d.ts +11 -0
  6. package/dist/development/dom-export.d.mts +23 -0
  7. package/dist/development/dom-export.d.ts +23 -0
  8. package/dist/development/dom-export.js +6347 -0
  9. package/dist/development/dom-export.mjs +222 -0
  10. package/dist/development/fog-of-war-C5L_Yd5M.d.mts +1778 -0
  11. package/dist/development/fog-of-war-DrUCUQQ-.d.ts +1778 -0
  12. package/dist/development/index.d.mts +855 -0
  13. package/dist/development/index.d.ts +855 -0
  14. package/dist/development/index.js +11670 -0
  15. package/dist/development/index.mjs +263 -0
  16. package/dist/development/lib/types/route-module.d.mts +209 -0
  17. package/dist/development/lib/types/route-module.d.ts +209 -0
  18. package/dist/development/lib/types/route-module.js +28 -0
  19. package/dist/development/lib/types/route-module.mjs +10 -0
  20. package/dist/development/route-data-BIYebJr3.d.mts +1749 -0
  21. package/dist/development/route-data-BIYebJr3.d.ts +1749 -0
  22. package/dist/development/rsc-export.d.mts +1788 -0
  23. package/dist/development/rsc-export.d.ts +1788 -0
  24. package/dist/development/rsc-export.js +2784 -0
  25. package/dist/development/rsc-export.mjs +2749 -0
  26. package/dist/production/chunk-O34M5LIX.mjs +11511 -0
  27. package/dist/production/data-CQbyyGzl.d.mts +11 -0
  28. package/dist/production/data-CQbyyGzl.d.ts +11 -0
  29. package/dist/production/dom-export.d.mts +23 -0
  30. package/dist/production/dom-export.d.ts +23 -0
  31. package/dist/production/dom-export.js +6347 -0
  32. package/dist/production/dom-export.mjs +222 -0
  33. package/dist/production/fog-of-war-C5L_Yd5M.d.mts +1778 -0
  34. package/dist/production/fog-of-war-DrUCUQQ-.d.ts +1778 -0
  35. package/dist/production/index.d.mts +855 -0
  36. package/dist/production/index.d.ts +855 -0
  37. package/dist/production/index.js +11670 -0
  38. package/dist/production/index.mjs +263 -0
  39. package/dist/production/lib/types/route-module.d.mts +209 -0
  40. package/dist/production/lib/types/route-module.d.ts +209 -0
  41. package/dist/production/lib/types/route-module.js +28 -0
  42. package/dist/production/lib/types/route-module.mjs +10 -0
  43. package/dist/production/route-data-BIYebJr3.d.mts +1749 -0
  44. package/dist/production/route-data-BIYebJr3.d.ts +1749 -0
  45. package/dist/production/rsc-export.d.mts +1788 -0
  46. package/dist/production/rsc-export.d.ts +1788 -0
  47. package/dist/production/rsc-export.js +2784 -0
  48. package/dist/production/rsc-export.mjs +2749 -0
  49. package/package.json +111 -9
  50. package/dist/index.d.ts +0 -30
  51. package/dist/index.js +0 -1501
  52. package/dist/index.js.map +0 -1
  53. package/dist/lib/components.d.ts +0 -157
  54. package/dist/lib/context.d.ts +0 -102
  55. package/dist/lib/deprecations.d.ts +0 -4
  56. package/dist/lib/hooks.d.ts +0 -181
  57. package/dist/main.js +0 -19
  58. package/dist/react-router.development.js +0 -1397
  59. package/dist/react-router.development.js.map +0 -1
  60. package/dist/react-router.production.min.js +0 -12
  61. package/dist/react-router.production.min.js.map +0 -1
  62. package/dist/umd/react-router.development.js +0 -1624
  63. package/dist/umd/react-router.development.js.map +0 -1
  64. package/dist/umd/react-router.production.min.js +0 -12
  65. package/dist/umd/react-router.production.min.js.map +0 -1
@@ -0,0 +1,11 @@
1
+ /**
2
+ * An object of unknown type for route loaders and actions provided by the
3
+ * server's `getLoadContext()` function. This is defined as an empty interface
4
+ * specifically so apps can leverage declaration merging to augment this type
5
+ * globally: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
6
+ */
7
+ interface AppLoadContext {
8
+ [key: string]: unknown;
9
+ }
10
+
11
+ export type { AppLoadContext as A };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * An object of unknown type for route loaders and actions provided by the
3
+ * server's `getLoadContext()` function. This is defined as an empty interface
4
+ * specifically so apps can leverage declaration merging to augment this type
5
+ * globally: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
6
+ */
7
+ interface AppLoadContext {
8
+ [key: string]: unknown;
9
+ }
10
+
11
+ export type { AppLoadContext as A };
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-C5L_Yd5M.mjs';
3
+ import { R as RouterInit } from './route-data-BIYebJr3.mjs';
4
+
5
+ type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
+ declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
+
8
+ interface HydratedRouterProps {
9
+ /**
10
+ * Context object to passed through to `createBrowserRouter` and made available
11
+ * to `clientLoader`/`clientActon` functions
12
+ */
13
+ unstable_getContext?: RouterInit["unstable_getContext"];
14
+ }
15
+ /**
16
+ * Framework-mode router component to be used in `entry.client.tsx` to hydrate a
17
+ * router from a `ServerRouter`
18
+ *
19
+ * @category Component Routers
20
+ */
21
+ declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
22
+
23
+ export { HydratedRouter, RouterProvider, type RouterProviderProps };
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-DrUCUQQ-.js';
3
+ import { R as RouterInit } from './route-data-BIYebJr3.js';
4
+
5
+ type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
+ declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
+
8
+ interface HydratedRouterProps {
9
+ /**
10
+ * Context object to passed through to `createBrowserRouter` and made available
11
+ * to `clientLoader`/`clientActon` functions
12
+ */
13
+ unstable_getContext?: RouterInit["unstable_getContext"];
14
+ }
15
+ /**
16
+ * Framework-mode router component to be used in `entry.client.tsx` to hydrate a
17
+ * router from a `ServerRouter`
18
+ *
19
+ * @category Component Routers
20
+ */
21
+ declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
22
+
23
+ export { HydratedRouter, RouterProvider, type RouterProviderProps };