@elizaos/server 1.3.0 → 1.3.2

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.
@@ -3525,7 +3525,7 @@ var reactDomExports = requireReactDom();
3525
3525
  const ReactDOM = /*@__PURE__*/getDefaultExportFromCjs(reactDomExports);
3526
3526
 
3527
3527
  /**
3528
- * react-router v7.7.0
3528
+ * react-router v7.7.1
3529
3529
  *
3530
3530
  * Copyright (c) Remix Software Inc.
3531
3531
  *
@@ -4456,68 +4456,71 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, fut
4456
4456
  }
4457
4457
  }
4458
4458
  }
4459
- return renderedMatches.reduceRight((outlet, match, index) => {
4460
- let error;
4461
- let shouldRenderHydrateFallback = false;
4462
- let errorElement = null;
4463
- let hydrateFallbackElement = null;
4464
- if (dataRouterState) {
4465
- error = errors && match.route.id ? errors[match.route.id] : void 0;
4466
- errorElement = match.route.errorElement || defaultErrorElement;
4467
- if (renderFallback) {
4468
- if (fallbackIndex < 0 && index === 0) {
4469
- warningOnce(
4470
- "route-fallback",
4471
- false,
4472
- "No `HydrateFallback` element provided to render during initial hydration"
4473
- );
4474
- shouldRenderHydrateFallback = true;
4475
- hydrateFallbackElement = null;
4476
- } else if (fallbackIndex === index) {
4477
- shouldRenderHydrateFallback = true;
4478
- hydrateFallbackElement = match.route.hydrateFallbackElement || null;
4459
+ return renderedMatches.reduceRight(
4460
+ (outlet, match, index) => {
4461
+ let error;
4462
+ let shouldRenderHydrateFallback = false;
4463
+ let errorElement = null;
4464
+ let hydrateFallbackElement = null;
4465
+ if (dataRouterState) {
4466
+ error = errors && match.route.id ? errors[match.route.id] : void 0;
4467
+ errorElement = match.route.errorElement || defaultErrorElement;
4468
+ if (renderFallback) {
4469
+ if (fallbackIndex < 0 && index === 0) {
4470
+ warningOnce(
4471
+ "route-fallback",
4472
+ false,
4473
+ "No `HydrateFallback` element provided to render during initial hydration"
4474
+ );
4475
+ shouldRenderHydrateFallback = true;
4476
+ hydrateFallbackElement = null;
4477
+ } else if (fallbackIndex === index) {
4478
+ shouldRenderHydrateFallback = true;
4479
+ hydrateFallbackElement = match.route.hydrateFallbackElement || null;
4480
+ }
4479
4481
  }
4480
4482
  }
4481
- }
4482
- let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
4483
- let getChildren = () => {
4484
- let children;
4485
- if (error) {
4486
- children = errorElement;
4487
- } else if (shouldRenderHydrateFallback) {
4488
- children = hydrateFallbackElement;
4489
- } else if (match.route.Component) {
4490
- children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
4491
- } else if (match.route.element) {
4492
- children = match.route.element;
4493
- } else {
4494
- children = outlet;
4495
- }
4496
- return /* @__PURE__ */ reactExports.createElement(
4497
- RenderedRoute,
4483
+ let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
4484
+ let getChildren = () => {
4485
+ let children;
4486
+ if (error) {
4487
+ children = errorElement;
4488
+ } else if (shouldRenderHydrateFallback) {
4489
+ children = hydrateFallbackElement;
4490
+ } else if (match.route.Component) {
4491
+ children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
4492
+ } else if (match.route.element) {
4493
+ children = match.route.element;
4494
+ } else {
4495
+ children = outlet;
4496
+ }
4497
+ return /* @__PURE__ */ reactExports.createElement(
4498
+ RenderedRoute,
4499
+ {
4500
+ match,
4501
+ routeContext: {
4502
+ outlet,
4503
+ matches: matches2,
4504
+ isDataRoute: dataRouterState != null
4505
+ },
4506
+ children
4507
+ }
4508
+ );
4509
+ };
4510
+ return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
4511
+ RenderErrorBoundary,
4498
4512
  {
4499
- match,
4500
- routeContext: {
4501
- outlet,
4502
- matches: matches2,
4503
- isDataRoute: dataRouterState != null
4504
- },
4505
- children
4513
+ location: dataRouterState.location,
4514
+ revalidation: dataRouterState.revalidation,
4515
+ component: errorElement,
4516
+ error,
4517
+ children: getChildren(),
4518
+ routeContext: { outlet: null, matches: matches2, isDataRoute: true }
4506
4519
  }
4507
- );
4508
- };
4509
- return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
4510
- RenderErrorBoundary,
4511
- {
4512
- location: dataRouterState.location,
4513
- revalidation: dataRouterState.revalidation,
4514
- component: errorElement,
4515
- error,
4516
- children: getChildren(),
4517
- routeContext: { outlet: null, matches: matches2, isDataRoute: true }
4518
- }
4519
- ) : getChildren();
4520
- }, null);
4520
+ ) : getChildren();
4521
+ },
4522
+ null
4523
+ );
4521
4524
  }
4522
4525
  function getDataRouterConsoleError(hookName) {
4523
4526
  return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
@@ -4609,7 +4612,7 @@ function DataRoutes({
4609
4612
  }) {
4610
4613
  return useRoutesImpl(routes, void 0, state, future);
4611
4614
  }
4612
- function Route(_props) {
4615
+ function Route(props) {
4613
4616
  invariant(
4614
4617
  false,
4615
4618
  `A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`
@@ -5110,10 +5113,7 @@ function composeEventHandlers(theirHandler, ourHandler) {
5110
5113
  }
5111
5114
  };
5112
5115
  }
5113
- function PrefetchPageLinks({
5114
- page,
5115
- ...dataLinkProps
5116
- }) {
5116
+ function PrefetchPageLinks({ page, ...linkProps }) {
5117
5117
  let { router } = useDataRouterContext2();
5118
5118
  let matches = reactExports.useMemo(
5119
5119
  () => matchRoutes(router.routes, page, router.basename),
@@ -5122,7 +5122,7 @@ function PrefetchPageLinks({
5122
5122
  if (!matches) {
5123
5123
  return null;
5124
5124
  }
5125
- return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...dataLinkProps });
5125
+ return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...linkProps });
5126
5126
  }
5127
5127
  function useKeyedPrefetchLinks(matches) {
5128
5128
  let { manifest, routeModules } = useFrameworkContext();
@@ -5239,7 +5239,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
5239
5239
  try {
5240
5240
  if (isBrowser) {
5241
5241
  window.__reactRouterVersion = // @ts-expect-error
5242
- "7.7.0";
5242
+ "7.7.1";
5243
5243
  }
5244
5244
  } catch (e) {
5245
5245
  }
@@ -5621,7 +5621,7 @@ function useFormAction(action, { relative } = {}) {
5621
5621
  }
5622
5622
  return createPath(path);
5623
5623
  }
5624
- function useViewTransitionState(to, opts = {}) {
5624
+ function useViewTransitionState(to, { relative } = {}) {
5625
5625
  let vtContext = reactExports.useContext(ViewTransitionContext);
5626
5626
  invariant(
5627
5627
  vtContext != null,
@@ -5631,7 +5631,7 @@ function useViewTransitionState(to, opts = {}) {
5631
5631
  "useViewTransitionState"
5632
5632
  /* useViewTransitionState */
5633
5633
  );
5634
- let path = useResolvedPath(to, { relative: opts.relative });
5634
+ let path = useResolvedPath(to, { relative });
5635
5635
  if (!vtContext.isTransitioning) {
5636
5636
  return false;
5637
5637
  }
@@ -5641,4 +5641,4 @@ function useViewTransitionState(to, opts = {}) {
5641
5641
  }
5642
5642
 
5643
5643
  export { BrowserRouter as B, Link as L, NavLink as N, React$1 as R, requireReactDom as a, reactExports as b, reactDomExports as c, distExports as d, ReactDOM as e, React as f, getDefaultExportFromCjs as g, requireBufferPolyfill as h, requireBase64Js as i, useLocation as j, useParams as k, useSearchParams as l, Routes as m, Route as n, getAugmentedNamespace as o, requireReact as r, useNavigate as u };
5644
- //# sourceMappingURL=vendor-BWTRqS51.js.map
5644
+ //# sourceMappingURL=vendor-H6SVl4X5.js.map