react-router 0.0.0-experimental-909c02f10 → 0.0.0-experimental-80dc2f07b

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 (59) hide show
  1. package/dist/development/{browser-Cs5jGF5c.d.mts → browser-DO9ukXOW.d.mts} +1 -1
  2. package/dist/development/{chunk-X6W4MSRS.mjs → chunk-FRVKHHSP.mjs} +7 -9
  3. package/dist/development/{chunk-GEYH2WPE.js → chunk-KW2YDZG2.js} +130 -130
  4. package/dist/development/{chunk-NE7G56TL.js → chunk-QIEB5IKV.js} +6 -8
  5. package/dist/{production/chunk-H7TDM4NR.mjs → development/chunk-ZDIHB6MN.mjs} +2 -2
  6. package/dist/development/{components-B-8pctqd.d.mts → components-kfi-pq4A.d.mts} +1 -1
  7. package/dist/development/dom-export.d.mts +3 -3
  8. package/dist/development/dom-export.js +3 -3
  9. package/dist/development/dom-export.mjs +3 -3
  10. package/dist/{production/index-react-server-client-ZSY69vFl.d.ts → development/index-react-server-client-C4nRtAah.d.ts} +17 -2
  11. package/dist/development/{index-react-server-client--6LVtKQH.d.mts → index-react-server-client-DWt5PSS7.d.mts} +18 -3
  12. package/dist/development/index-react-server-client.d.mts +3 -3
  13. package/dist/development/index-react-server-client.d.ts +2 -2
  14. package/dist/development/index-react-server-client.js +4 -4
  15. package/dist/development/index-react-server-client.mjs +2 -2
  16. package/dist/development/index-react-server.d.mts +7 -11
  17. package/dist/development/index-react-server.d.ts +7 -11
  18. package/dist/development/index-react-server.js +1 -2
  19. package/dist/development/index-react-server.mjs +1 -2
  20. package/dist/development/index.d.mts +8 -8
  21. package/dist/development/index.d.ts +4 -4
  22. package/dist/development/index.js +97 -97
  23. package/dist/development/index.mjs +3 -3
  24. package/dist/development/lib/types/internal.d.mts +2 -12
  25. package/dist/development/lib/types/internal.d.ts +2 -12
  26. package/dist/development/lib/types/internal.js +1 -1
  27. package/dist/development/lib/types/internal.mjs +1 -1
  28. package/dist/{production/route-data-BzSGNYXb.d.mts → development/route-data-Dccdkjzt.d.mts} +7 -11
  29. package/dist/{production/routeModules-D5w_gJup.d.ts → development/routeModules-ePxkpnOJ.d.ts} +7 -11
  30. package/dist/production/{browser-Cs5jGF5c.d.mts → browser-DO9ukXOW.d.mts} +1 -1
  31. package/dist/production/{chunk-RKMCQD6B.js → chunk-BJQSOW5M.js} +6 -8
  32. package/dist/production/{chunk-VLU5DLK7.js → chunk-IMCXOMKU.js} +130 -130
  33. package/dist/{development/chunk-UJY7X562.mjs → production/chunk-NUPZJCEO.mjs} +2 -2
  34. package/dist/production/{chunk-QSYQPM6I.mjs → chunk-VQ4KM56U.mjs} +7 -9
  35. package/dist/production/{components-B-8pctqd.d.mts → components-kfi-pq4A.d.mts} +1 -1
  36. package/dist/production/dom-export.d.mts +3 -3
  37. package/dist/production/dom-export.js +3 -3
  38. package/dist/production/dom-export.mjs +3 -3
  39. package/dist/{development/index-react-server-client-ZSY69vFl.d.ts → production/index-react-server-client-C4nRtAah.d.ts} +17 -2
  40. package/dist/production/{index-react-server-client--6LVtKQH.d.mts → index-react-server-client-DWt5PSS7.d.mts} +18 -3
  41. package/dist/production/index-react-server-client.d.mts +3 -3
  42. package/dist/production/index-react-server-client.d.ts +2 -2
  43. package/dist/production/index-react-server-client.js +4 -4
  44. package/dist/production/index-react-server-client.mjs +2 -2
  45. package/dist/production/index-react-server.d.mts +7 -11
  46. package/dist/production/index-react-server.d.ts +7 -11
  47. package/dist/production/index-react-server.js +1 -2
  48. package/dist/production/index-react-server.mjs +1 -2
  49. package/dist/production/index.d.mts +8 -8
  50. package/dist/production/index.d.ts +4 -4
  51. package/dist/production/index.js +97 -97
  52. package/dist/production/index.mjs +3 -3
  53. package/dist/production/lib/types/internal.d.mts +2 -12
  54. package/dist/production/lib/types/internal.d.ts +2 -12
  55. package/dist/production/lib/types/internal.js +1 -1
  56. package/dist/production/lib/types/internal.mjs +1 -1
  57. package/dist/{development/route-data-BzSGNYXb.d.mts → production/route-data-Dccdkjzt.d.mts} +7 -11
  58. package/dist/{development/routeModules-D5w_gJup.d.ts → production/routeModules-ePxkpnOJ.d.ts} +7 -11
  59. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { AsyncLocalStorage } from 'node:async_hooks';
2
2
  import * as React from 'react';
3
- import { u as unstable_RouterContextProvider, i as ActionFunction, C as ClientActionFunction, j as ClientLoaderFunction, k as HeadersFunction, l as LinksFunction, m as LoaderFunction, M as MetaFunction, S as ShouldRevalidateFunction, c as Location, h as Params } from './route-data-BzSGNYXb.mjs';
3
+ import { u as unstable_RouterContextProvider, i as ActionFunction, C as ClientActionFunction, j as ClientLoaderFunction, k as HeadersFunction, l as LinksFunction, m as LoaderFunction, M as MetaFunction, S as ShouldRevalidateFunction, c as Location, h as Params } from './route-data-Dccdkjzt.mjs';
4
4
 
5
5
  type ServerContext = {
6
6
  redirect?: Response;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-909c02f10
2
+ * react-router v0.0.0-experimental-80dc2f07b
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -489,7 +489,6 @@ function convertRouteMatchToUiMatch(match, loaderData) {
489
489
  pathname,
490
490
  params,
491
491
  data: loaderData[route.id],
492
- loaderData: loaderData[route.id],
493
492
  handle: route.handle
494
493
  };
495
494
  }
@@ -8334,7 +8333,7 @@ function getActiveMatches(matches, errors, isSpaMode) {
8334
8333
  return matches;
8335
8334
  }
8336
8335
  var CRITICAL_CSS_DATA_ATTRIBUTE = "data-react-router-critical-css";
8337
- function Links() {
8336
+ function Links({ nonce }) {
8338
8337
  let { isSpaMode, manifest, routeModules, criticalCss } = useFrameworkContext();
8339
8338
  let { errors, matches: routerMatches } = useDataRouterStateContext();
8340
8339
  let matches = getActiveMatches(routerMatches, errors, isSpaMode);
@@ -8353,10 +8352,11 @@ function Links() {
8353
8352
  {
8354
8353
  ...{ [CRITICAL_CSS_DATA_ATTRIBUTE]: "" },
8355
8354
  rel: "stylesheet",
8356
- href: criticalCss.href
8355
+ href: criticalCss.href,
8356
+ nonce
8357
8357
  }
8358
8358
  ) : null, keyedLinks.map(
8359
- ({ key, link }) => isPageLinkDescriptor(link) ? /* @__PURE__ */ React8.createElement(PrefetchPageLinks, { key, ...link }) : /* @__PURE__ */ React8.createElement("link", { key, ...link })
8359
+ ({ key, link }) => isPageLinkDescriptor(link) ? /* @__PURE__ */ React8.createElement(PrefetchPageLinks, { key, nonce, ...link }) : /* @__PURE__ */ React8.createElement("link", { key, nonce, ...link })
8360
8360
  ));
8361
8361
  }
8362
8362
  function PrefetchPageLinks({ page, ...linkProps }) {
@@ -8467,7 +8467,7 @@ function PrefetchPageLinksImpl({
8467
8467
  return /* @__PURE__ */ React8.createElement(React8.Fragment, null, dataHrefs.map((href) => /* @__PURE__ */ React8.createElement("link", { key: href, rel: "prefetch", as: "fetch", href, ...linkProps })), moduleHrefs.map((href) => /* @__PURE__ */ React8.createElement("link", { key: href, rel: "modulepreload", href, ...linkProps })), keyedPrefetchLinks.map(({ key, link }) => (
8468
8468
  // these don't spread `linkProps` because they are full link descriptors
8469
8469
  // already with their own props
8470
- /* @__PURE__ */ React8.createElement("link", { key, ...link })
8470
+ /* @__PURE__ */ React8.createElement("link", { key, nonce: linkProps.nonce, ...link })
8471
8471
  )));
8472
8472
  }
8473
8473
  function Meta() {
@@ -8496,7 +8496,6 @@ function Meta() {
8496
8496
  let match = {
8497
8497
  id: routeId,
8498
8498
  data: data2,
8499
- loaderData: data2,
8500
8499
  meta: [],
8501
8500
  params: _match.params,
8502
8501
  pathname: _match.pathname,
@@ -8507,7 +8506,6 @@ function Meta() {
8507
8506
  if (routeModule?.meta) {
8508
8507
  routeMeta = typeof routeModule.meta === "function" ? routeModule.meta({
8509
8508
  data: data2,
8510
- loaderData: data2,
8511
8509
  params,
8512
8510
  location,
8513
8511
  matches,
@@ -8848,7 +8846,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
8848
8846
  try {
8849
8847
  if (isBrowser) {
8850
8848
  window.__reactRouterVersion = // @ts-expect-error
8851
- "0.0.0-experimental-909c02f10";
8849
+ "0.0.0-experimental-80dc2f07b";
8852
8850
  }
8853
8851
  } catch (e) {
8854
8852
  }