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.
- package/dist/{production/chunk-75QUA6OZ.mjs → development/chunk-2YVPYFDJ.mjs} +2 -2
- package/dist/development/{chunk-H52YY2UH.mjs → chunk-5P3HEZQU.mjs} +12 -2
- package/dist/{production/chunk-GW3ZZYBZ.js → development/chunk-XXC4LMW2.js} +134 -134
- package/dist/development/{chunk-MUO6KUBK.js → chunk-YJ6T7YSE.js} +24 -14
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +3 -3
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.js +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.d.mts +9 -4
- package/dist/development/index.d.ts +9 -4
- package/dist/development/index.js +99 -97
- package/dist/development/index.mjs +5 -3
- package/dist/development/lib/types/internal.d.mts +1 -1
- package/dist/development/lib/types/internal.d.ts +1 -1
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-DiOIlEq5.d.mts → register-BrVEYTED.d.mts} +7 -1
- package/dist/{production/register-DiOIlEq5.d.mts → development/register-D8NQoPsO.d.ts} +7 -1
- package/dist/{development/chunk-R7747Z7E.mjs → production/chunk-5MHETEIL.mjs} +2 -2
- package/dist/{development/chunk-CZCLJNAQ.js → production/chunk-E4G6PZCJ.js} +134 -134
- package/dist/production/{chunk-4JJCJOCM.js → chunk-QBUHFRYZ.js} +24 -14
- package/dist/production/{chunk-W6VH7ASH.mjs → chunk-VNGQS422.mjs} +12 -2
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +3 -3
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.js +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.d.mts +9 -4
- package/dist/production/index.d.ts +9 -4
- package/dist/production/index.js +99 -97
- package/dist/production/index.mjs +5 -3
- package/dist/production/lib/types/internal.d.mts +1 -1
- package/dist/production/lib/types/internal.d.ts +1 -1
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-DiOIlEq5.d.ts → production/register-BrVEYTED.d.mts} +7 -1
- package/dist/production/{register-DiOIlEq5.d.ts → register-D8NQoPsO.d.ts} +7 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
isSession,
|
|
32
32
|
routeRSCServerRequest,
|
|
33
33
|
setDevServerHooks
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2YVPYFDJ.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Action,
|
|
37
37
|
Await,
|
|
@@ -131,6 +131,7 @@ import {
|
|
|
131
131
|
usePrompt,
|
|
132
132
|
useResolvedPath,
|
|
133
133
|
useRevalidator,
|
|
134
|
+
useRoute,
|
|
134
135
|
useRouteError,
|
|
135
136
|
useRouteLoaderData,
|
|
136
137
|
useRoutes,
|
|
@@ -141,7 +142,7 @@ import {
|
|
|
141
142
|
withComponentProps,
|
|
142
143
|
withErrorBoundaryProps,
|
|
143
144
|
withHydrateFallbackProps
|
|
144
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-5P3HEZQU.mjs";
|
|
145
146
|
export {
|
|
146
147
|
Await,
|
|
147
148
|
BrowserRouter,
|
|
@@ -266,6 +267,7 @@ export {
|
|
|
266
267
|
useParams,
|
|
267
268
|
useResolvedPath,
|
|
268
269
|
useRevalidator,
|
|
270
|
+
useRoute,
|
|
269
271
|
useRouteError,
|
|
270
272
|
useRouteLoaderData,
|
|
271
273
|
useRoutes,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { R as RouteModule, L as LinkDescriptor, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, C as ClientDataFunctionArgs, a as ServerDataFrom, N as Normalize, b as GetActionData } from '../../route-data-CDwqkzPE.mjs';
|
|
2
2
|
import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../context-BqL5Eckq.mjs';
|
|
3
|
-
import { R as RouteFiles, P as Pages } from '../../register-
|
|
3
|
+
import { R as RouteFiles, P as Pages } from '../../register-BrVEYTED.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as RouteModule, L as LinkDescriptor, a as Location, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, b as MiddlewareNextFunction, C as ClientDataFunctionArgs, D as DataStrategyResult, c as ServerDataFrom, N as Normalize, d as GetActionData } from '../../routeModules-BmVo7q9e.js';
|
|
2
|
-
import { R as RouteFiles, P as Pages } from '../../register-
|
|
2
|
+
import { R as RouteFiles, P as Pages } from '../../register-D8NQoPsO.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { R as RouteModule } from './route-data-CDwqkzPE.mjs';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
|
|
3
5
|
* React Router should handle this for you via type generation.
|
|
@@ -20,5 +22,9 @@ type AnyRouteFiles = Record<string, {
|
|
|
20
22
|
type RouteFiles = Register extends {
|
|
21
23
|
routeFiles: infer Registered extends AnyRouteFiles;
|
|
22
24
|
} ? Registered : AnyRouteFiles;
|
|
25
|
+
type AnyRouteModules = Record<string, RouteModule>;
|
|
26
|
+
type RouteModules = Register extends {
|
|
27
|
+
routeModules: infer Registered extends AnyRouteModules;
|
|
28
|
+
} ? Registered : AnyRouteModules;
|
|
23
29
|
|
|
24
|
-
export type { Pages as P, RouteFiles as R,
|
|
30
|
+
export type { Pages as P, RouteFiles as R, RouteModules as a, Register as b };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { R as RouteModule } from './routeModules-BmVo7q9e.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
|
|
3
5
|
* React Router should handle this for you via type generation.
|
|
@@ -20,5 +22,9 @@ type AnyRouteFiles = Record<string, {
|
|
|
20
22
|
type RouteFiles = Register extends {
|
|
21
23
|
routeFiles: infer Registered extends AnyRouteFiles;
|
|
22
24
|
} ? Registered : AnyRouteFiles;
|
|
25
|
+
type AnyRouteModules = Record<string, RouteModule>;
|
|
26
|
+
type RouteModules = Register extends {
|
|
27
|
+
routeModules: infer Registered extends AnyRouteModules;
|
|
28
|
+
} ? Registered : AnyRouteModules;
|
|
23
29
|
|
|
24
|
-
export type { Pages as P, RouteFiles as R,
|
|
30
|
+
export type { Pages as P, RouteFiles as R, RouteModules as a, Register as b };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
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-
|
|
63
|
+
} from "./chunk-VNGQS422.mjs";
|
|
64
64
|
|
|
65
65
|
// lib/dom/ssr/server.tsx
|
|
66
66
|
import * as React from "react";
|