react-router 0.0.0-experimental-beaa4f52a → 0.0.0-experimental-df0f1dfda

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 (39) hide show
  1. package/dist/development/{chunk-3SBCR7VW.mjs → chunk-O5WSUTKP.mjs} +467 -758
  2. package/dist/development/data-CQbyyGzl.d.mts +11 -0
  3. package/dist/development/data-CQbyyGzl.d.ts +11 -0
  4. package/dist/development/dom-export.d.mts +3 -13
  5. package/dist/development/dom-export.d.ts +3 -13
  6. package/dist/development/dom-export.js +193 -262
  7. package/dist/development/dom-export.mjs +6 -9
  8. package/dist/development/{fog-of-war-CrM4EOZM.d.ts → fog-of-war-D3ny56dR.d.mts} +11 -87
  9. package/dist/{production/fog-of-war-CrM4EOZM.d.ts → development/fog-of-war-L5G-Cw9x.d.ts} +11 -87
  10. package/dist/development/index.d.mts +11 -7
  11. package/dist/development/index.d.ts +11 -7
  12. package/dist/development/index.js +467 -758
  13. package/dist/development/index.mjs +2 -2
  14. package/dist/development/lib/types/route-module.d.mts +5 -13
  15. package/dist/development/lib/types/route-module.d.ts +5 -13
  16. package/dist/development/lib/types/route-module.js +1 -1
  17. package/dist/development/lib/types/route-module.mjs +1 -1
  18. package/dist/development/{route-data-C9zMg-qq.d.ts → route-data-Cq_b5feC.d.mts} +17 -54
  19. package/dist/{production/route-data-C9zMg-qq.d.mts → development/route-data-Cq_b5feC.d.ts} +17 -54
  20. package/dist/production/{chunk-DRRQRV77.mjs → chunk-F7U65DMX.mjs} +467 -758
  21. package/dist/production/data-CQbyyGzl.d.mts +11 -0
  22. package/dist/production/data-CQbyyGzl.d.ts +11 -0
  23. package/dist/production/dom-export.d.mts +3 -13
  24. package/dist/production/dom-export.d.ts +3 -13
  25. package/dist/production/dom-export.js +193 -262
  26. package/dist/production/dom-export.mjs +6 -9
  27. package/dist/production/{fog-of-war-CYAe8qUt.d.mts → fog-of-war-D3ny56dR.d.mts} +11 -87
  28. package/dist/{development/fog-of-war-CYAe8qUt.d.mts → production/fog-of-war-L5G-Cw9x.d.ts} +11 -87
  29. package/dist/production/index.d.mts +11 -7
  30. package/dist/production/index.d.ts +11 -7
  31. package/dist/production/index.js +467 -758
  32. package/dist/production/index.mjs +2 -2
  33. package/dist/production/lib/types/route-module.d.mts +5 -13
  34. package/dist/production/lib/types/route-module.d.ts +5 -13
  35. package/dist/production/lib/types/route-module.js +1 -1
  36. package/dist/production/lib/types/route-module.mjs +1 -1
  37. package/dist/production/{route-data-C9zMg-qq.d.ts → route-data-Cq_b5feC.d.mts} +17 -54
  38. package/dist/{development/route-data-C9zMg-qq.d.mts → production/route-data-Cq_b5feC.d.ts} +17 -54
  39. package/package.json +1 -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 };
@@ -1,23 +1,13 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-CYAe8qUt.mjs';
3
- import { R as RouterContext } from './route-data-C9zMg-qq.mjs';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-D3ny56dR.mjs';
3
+ import './route-data-Cq_b5feC.mjs';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
7
 
8
- interface HydratedRouterProps {
9
- /**
10
- * Context object to passed through to `createBrowserRouter` and made available
11
- * to `clientLoader`/`clientActon` functions
12
- */
13
- context?: RouterContext;
14
- }
15
8
  /**
16
- * Framework-mode router component to be used in `entry.client.tsx` to hydrate a
17
- * router from a `ServerRouter`
18
- *
19
9
  * @category Component Routers
20
10
  */
21
- declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
11
+ declare function HydratedRouter(): React.JSX.Element;
22
12
 
23
13
  export { HydratedRouter, RouterProvider, type RouterProviderProps };
@@ -1,23 +1,13 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-CrM4EOZM.js';
3
- import { R as RouterContext } from './route-data-C9zMg-qq.js';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-L5G-Cw9x.js';
3
+ import './route-data-Cq_b5feC.js';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
7
 
8
- interface HydratedRouterProps {
9
- /**
10
- * Context object to passed through to `createBrowserRouter` and made available
11
- * to `clientLoader`/`clientActon` functions
12
- */
13
- context?: RouterContext;
14
- }
15
8
  /**
16
- * Framework-mode router component to be used in `entry.client.tsx` to hydrate a
17
- * router from a `ServerRouter`
18
- *
19
9
  * @category Component Routers
20
10
  */
21
- declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
11
+ declare function HydratedRouter(): React.JSX.Element;
22
12
 
23
13
  export { HydratedRouter, RouterProvider, type RouterProviderProps };