react-router 0.0.0-experimental-c19b79d → 0.0.0-experimental-31a822c5f
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/CHANGELOG.md +105 -0
- package/dist/development/browser-B4aBBnx8.d.ts +310 -0
- package/dist/development/browser-CN2w9Cbu.d.mts +310 -0
- package/dist/development/{chunk-LUB73E44.js → chunk-CZ7KRWQZ.js} +827 -64
- package/dist/development/{chunk-AGOH44BE.mjs → chunk-FXUONXY4.mjs} +132 -808
- package/dist/development/chunk-SE36CWVW.js +1308 -0
- package/dist/development/chunk-T5RKBXBV.js +188 -0
- package/dist/development/{chunk-IMKEG5CI.mjs → chunk-WTUOISGV.mjs} +2 -2
- package/dist/development/dom-export.d.mts +48 -3
- package/dist/development/dom-export.d.ts +48 -1
- package/dist/development/dom-export.js +703 -18
- package/dist/development/dom-export.mjs +687 -9
- package/dist/development/{index-react-server-client-DKvU8YRr.d.ts → index-react-server-client-BOJoTiaG.d.ts} +134 -134
- package/dist/{production/index-react-server-client-2EDmGlsZ.d.mts → development/index-react-server-client-CuQLmpku.d.mts} +1 -2
- package/dist/development/index-react-server-client.d.mts +2 -3
- package/dist/development/index-react-server-client.d.ts +2 -2
- 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 -316
- package/dist/development/index.d.ts +9 -358
- package/dist/development/index.js +82 -914
- package/dist/development/index.mjs +3 -9
- package/dist/development/lib/types/internal.d.mts +2 -3
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{production/register-BrVEYTED.d.mts → development/register-BblEgJPm.d.mts} +1 -1
- package/dist/development/{register-D8NQoPsO.d.ts → register-D18raRVf.d.ts} +1 -1
- package/dist/development/{context-BqL5Eckq.d.mts → route-data-nQS6GSUI.d.mts} +472 -2
- package/dist/development/{routeModules-BmVo7q9e.d.ts → routeModules-9wlxglVk.d.ts} +12 -12
- package/dist/production/browser-B4aBBnx8.d.ts +310 -0
- package/dist/production/browser-CN2w9Cbu.d.mts +310 -0
- package/dist/production/{chunk-2L5AG5Y5.js → chunk-DRKUM6HW.js} +827 -64
- package/dist/production/{chunk-AODJW4D3.mjs → chunk-IGF74WUC.mjs} +132 -808
- package/dist/production/{chunk-UOQCOPF6.mjs → chunk-RUSRTUHT.mjs} +2 -2
- package/dist/production/chunk-UU3LJMU6.js +188 -0
- package/dist/production/chunk-YVVCGSEG.js +1308 -0
- package/dist/production/dom-export.d.mts +48 -3
- package/dist/production/dom-export.d.ts +48 -1
- package/dist/production/dom-export.js +703 -18
- package/dist/production/dom-export.mjs +687 -9
- package/dist/production/{index-react-server-client-DKvU8YRr.d.ts → index-react-server-client-BOJoTiaG.d.ts} +134 -134
- package/dist/{development/index-react-server-client-2EDmGlsZ.d.mts → production/index-react-server-client-CuQLmpku.d.mts} +1 -2
- package/dist/production/index-react-server-client.d.mts +2 -3
- package/dist/production/index-react-server-client.d.ts +2 -2
- 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 -316
- package/dist/production/index.d.ts +9 -358
- package/dist/production/index.js +82 -914
- package/dist/production/index.mjs +3 -9
- package/dist/production/lib/types/internal.d.mts +2 -3
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-BrVEYTED.d.mts → production/register-BblEgJPm.d.mts} +1 -1
- package/dist/production/{register-D8NQoPsO.d.ts → register-D18raRVf.d.ts} +1 -1
- package/dist/production/{context-BqL5Eckq.d.mts → route-data-nQS6GSUI.d.mts} +472 -2
- package/dist/production/{routeModules-BmVo7q9e.d.ts → routeModules-9wlxglVk.d.ts} +12 -12
- package/package.json +1 -1
- package/dist/development/browser-z32v5KVN.d.mts +0 -46
- package/dist/development/chunk-2G2U5HGB.js +0 -2089
- package/dist/development/route-data-CDwqkzPE.d.mts +0 -473
- package/dist/production/browser-z32v5KVN.d.mts +0 -46
- package/dist/production/chunk-FGRCWJDI.js +0 -2089
- package/dist/production/route-data-CDwqkzPE.d.mts +0 -473
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { f as RouterProviderProps$1, e as RouterInit, u as unstable_ClientOnErrorFunction } from './route-data-nQS6GSUI.mjs';
|
|
3
|
+
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-CN2w9Cbu.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -51,4 +51,49 @@ interface HydratedRouterProps {
|
|
|
51
51
|
*/
|
|
52
52
|
declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
declare global {
|
|
55
|
+
interface Window {
|
|
56
|
+
__FLIGHT_DATA: any[];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get the prerendered [RSC](https://react.dev/reference/rsc/server-components)
|
|
61
|
+
* stream for hydration. Usually passed directly to your
|
|
62
|
+
* `react-server-dom-xyz/client`'s `createFromReadableStream`.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* import { startTransition, StrictMode } from "react";
|
|
66
|
+
* import { hydrateRoot } from "react-dom/client";
|
|
67
|
+
* import {
|
|
68
|
+
* unstable_getRSCStream as getRSCStream,
|
|
69
|
+
* unstable_RSCHydratedRouter as RSCHydratedRouter,
|
|
70
|
+
* } from "react-router";
|
|
71
|
+
* import type { unstable_RSCPayload as RSCPayload } from "react-router";
|
|
72
|
+
*
|
|
73
|
+
* createFromReadableStream(getRSCStream()).then(
|
|
74
|
+
* (payload: RSCServerPayload) => {
|
|
75
|
+
* startTransition(async () => {
|
|
76
|
+
* hydrateRoot(
|
|
77
|
+
* document,
|
|
78
|
+
* <StrictMode>
|
|
79
|
+
* <RSCHydratedRouter {...props} />
|
|
80
|
+
* </StrictMode>,
|
|
81
|
+
* {
|
|
82
|
+
* // Options
|
|
83
|
+
* }
|
|
84
|
+
* );
|
|
85
|
+
* });
|
|
86
|
+
* }
|
|
87
|
+
* );
|
|
88
|
+
*
|
|
89
|
+
* @name unstable_getRSCStream
|
|
90
|
+
* @public
|
|
91
|
+
* @category RSC
|
|
92
|
+
* @mode data
|
|
93
|
+
* @returns A [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)
|
|
94
|
+
* that contains the [RSC](https://react.dev/reference/rsc/server-components)
|
|
95
|
+
* data for hydration.
|
|
96
|
+
*/
|
|
97
|
+
declare function getRSCStream(): ReadableStream;
|
|
98
|
+
|
|
99
|
+
export { HydratedRouter, type HydratedRouterProps, RouterProvider, type RouterProviderProps, getRSCStream as unstable_getRSCStream };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RouterProviderProps as RouterProviderProps$1, RouterInit, unstable_ClientOnErrorFunction } from 'react-router';
|
|
3
|
+
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-B4aBBnx8.js';
|
|
4
|
+
import './routeModules-9wlxglVk.js';
|
|
3
5
|
|
|
4
6
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
5
7
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -50,4 +52,49 @@ interface HydratedRouterProps {
|
|
|
50
52
|
*/
|
|
51
53
|
declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
declare global {
|
|
56
|
+
interface Window {
|
|
57
|
+
__FLIGHT_DATA: any[];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Get the prerendered [RSC](https://react.dev/reference/rsc/server-components)
|
|
62
|
+
* stream for hydration. Usually passed directly to your
|
|
63
|
+
* `react-server-dom-xyz/client`'s `createFromReadableStream`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* import { startTransition, StrictMode } from "react";
|
|
67
|
+
* import { hydrateRoot } from "react-dom/client";
|
|
68
|
+
* import {
|
|
69
|
+
* unstable_getRSCStream as getRSCStream,
|
|
70
|
+
* unstable_RSCHydratedRouter as RSCHydratedRouter,
|
|
71
|
+
* } from "react-router";
|
|
72
|
+
* import type { unstable_RSCPayload as RSCPayload } from "react-router";
|
|
73
|
+
*
|
|
74
|
+
* createFromReadableStream(getRSCStream()).then(
|
|
75
|
+
* (payload: RSCServerPayload) => {
|
|
76
|
+
* startTransition(async () => {
|
|
77
|
+
* hydrateRoot(
|
|
78
|
+
* document,
|
|
79
|
+
* <StrictMode>
|
|
80
|
+
* <RSCHydratedRouter {...props} />
|
|
81
|
+
* </StrictMode>,
|
|
82
|
+
* {
|
|
83
|
+
* // Options
|
|
84
|
+
* }
|
|
85
|
+
* );
|
|
86
|
+
* });
|
|
87
|
+
* }
|
|
88
|
+
* );
|
|
89
|
+
*
|
|
90
|
+
* @name unstable_getRSCStream
|
|
91
|
+
* @public
|
|
92
|
+
* @category RSC
|
|
93
|
+
* @mode data
|
|
94
|
+
* @returns A [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)
|
|
95
|
+
* that contains the [RSC](https://react.dev/reference/rsc/server-components)
|
|
96
|
+
* data for hydration.
|
|
97
|
+
*/
|
|
98
|
+
declare function getRSCStream(): ReadableStream;
|
|
99
|
+
|
|
100
|
+
export { HydratedRouter, type HydratedRouterProps, RouterProvider, type RouterProviderProps, getRSCStream as unstable_getRSCStream };
|