react-router 7.7.0-pre.0 → 7.7.0-pre.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 (32) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/development/chunk-6ZHKKNZG.js +1898 -0
  3. package/dist/development/{chunk-PUMRC5B5.mjs → chunk-YNUF36W5.mjs} +18 -3
  4. package/dist/{production/chunk-KWWBKJDT.mjs → development/chunk-YP7CIEHK.mjs} +2 -2
  5. package/dist/development/{chunk-X5ZUQHCD.js → chunk-Z7T4GLA7.js} +2129 -3933
  6. package/dist/development/dom-export.js +9 -2
  7. package/dist/development/dom-export.mjs +9 -3
  8. package/dist/development/index-react-server-client.js +5 -4
  9. package/dist/development/index-react-server-client.mjs +2 -2
  10. package/dist/development/index-react-server.js +1 -1
  11. package/dist/development/index-react-server.mjs +1 -1
  12. package/dist/development/index.js +98 -97
  13. package/dist/development/index.mjs +3 -3
  14. package/dist/development/lib/types/internal.js +1 -1
  15. package/dist/development/lib/types/internal.mjs +1 -1
  16. package/dist/production/{chunk-5AMJKWMN.mjs → chunk-4FKAWASN.mjs} +18 -3
  17. package/dist/{development/chunk-PY5DBM7W.mjs → production/chunk-KZZC37RO.mjs} +2 -2
  18. package/dist/production/{chunk-LKVDO7TU.js → chunk-SH44XSL4.js} +2129 -3933
  19. package/dist/production/chunk-W77PDD2Y.js +1898 -0
  20. package/dist/production/dom-export.js +9 -2
  21. package/dist/production/dom-export.mjs +9 -3
  22. package/dist/production/index-react-server-client.js +5 -4
  23. package/dist/production/index-react-server-client.mjs +2 -2
  24. package/dist/production/index-react-server.js +1 -1
  25. package/dist/production/index-react-server.mjs +1 -1
  26. package/dist/production/index.js +98 -97
  27. package/dist/production/index.mjs +3 -3
  28. package/dist/production/lib/types/internal.js +1 -1
  29. package/dist/production/lib/types/internal.mjs +1 -1
  30. package/package.json +1 -1
  31. package/dist/development/chunk-P37AORTA.js +0 -21
  32. package/dist/production/chunk-P37AORTA.js +0 -21
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.0
2
+ * react-router v7.7.0-pre.1
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-PY5DBM7W.mjs";
34
+ } from "./chunk-YP7CIEHK.mjs";
35
35
  import {
36
36
  Action,
37
37
  Await,
@@ -137,7 +137,7 @@ import {
137
137
  withComponentProps,
138
138
  withErrorBoundaryProps,
139
139
  withHydrateFallbackProps
140
- } from "./chunk-PUMRC5B5.mjs";
140
+ } from "./chunk-YNUF36W5.mjs";
141
141
  export {
142
142
  Await,
143
143
  BrowserRouter,
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * react-router v7.7.0-pre.0
2
+ * react-router v7.7.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.0
2
+ * react-router v7.7.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.0
2
+ * react-router v7.7.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8299,6 +8299,7 @@ function getActiveMatches(matches, errors, isSpaMode) {
8299
8299
  }
8300
8300
  return matches;
8301
8301
  }
8302
+ var CRITICAL_CSS_DATA_ATTRIBUTE = "data-react-router-critical-css";
8302
8303
  function Links() {
8303
8304
  let { isSpaMode, manifest, routeModules, criticalCss } = useFrameworkContext();
8304
8305
  let { errors, matches: routerMatches } = useDataRouterStateContext();
@@ -8307,7 +8308,20 @@ function Links() {
8307
8308
  () => getKeyedLinksForMatches(matches, routeModules, manifest),
8308
8309
  [matches, routeModules, manifest]
8309
8310
  );
8310
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, typeof criticalCss === "string" ? /* @__PURE__ */ React8.createElement("style", { dangerouslySetInnerHTML: { __html: criticalCss } }) : null, typeof criticalCss === "object" ? /* @__PURE__ */ React8.createElement("link", { rel: "stylesheet", href: criticalCss.href }) : null, keyedLinks.map(
8311
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, typeof criticalCss === "string" ? /* @__PURE__ */ React8.createElement(
8312
+ "style",
8313
+ {
8314
+ ...{ [CRITICAL_CSS_DATA_ATTRIBUTE]: "" },
8315
+ dangerouslySetInnerHTML: { __html: criticalCss }
8316
+ }
8317
+ ) : null, typeof criticalCss === "object" ? /* @__PURE__ */ React8.createElement(
8318
+ "link",
8319
+ {
8320
+ ...{ [CRITICAL_CSS_DATA_ATTRIBUTE]: "" },
8321
+ rel: "stylesheet",
8322
+ href: criticalCss.href
8323
+ }
8324
+ ) : null, keyedLinks.map(
8311
8325
  ({ key, link }) => isPageLinkDescriptor(link) ? /* @__PURE__ */ React8.createElement(PrefetchPageLinks, { key, ...link }) : /* @__PURE__ */ React8.createElement("link", { key, ...link })
8312
8326
  ));
8313
8327
  }
@@ -8801,7 +8815,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
8801
8815
  try {
8802
8816
  if (isBrowser) {
8803
8817
  window.__reactRouterVersion = // @ts-expect-error
8804
- "7.7.0-pre.0";
8818
+ "7.7.0-pre.1";
8805
8819
  }
8806
8820
  } catch (e) {
8807
8821
  }
@@ -9993,6 +10007,7 @@ export {
9993
10007
  useFogOFWarDiscovery,
9994
10008
  getManifestPath,
9995
10009
  FrameworkContext,
10010
+ CRITICAL_CSS_DATA_ATTRIBUTE,
9996
10011
  Links,
9997
10012
  PrefetchPageLinks,
9998
10013
  Meta,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.0
2
+ * react-router v7.7.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -57,7 +57,7 @@ import {
57
57
  withComponentProps,
58
58
  withErrorBoundaryProps,
59
59
  withHydrateFallbackProps
60
- } from "./chunk-PUMRC5B5.mjs";
60
+ } from "./chunk-4FKAWASN.mjs";
61
61
 
62
62
  // lib/dom/ssr/server.tsx
63
63
  import * as React from "react";