@salesforce/storefront-next-runtime 0.4.0-alpha.2 → 0.4.0

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.
@@ -1,7 +1,7 @@
1
1
  import { n as Site$1, r as Url, t as Locale$1 } from "./types.js";
2
2
  import { PropsWithChildren } from "react";
3
3
  import * as react_jsx_runtime1 from "react/jsx-runtime";
4
- import * as react_router9 from "react-router";
4
+ import * as react_router8 from "react-router";
5
5
  import { Cookie, CookieOptions, MiddlewareFunction, RouterContextProvider } from "react-router";
6
6
  import { RouteConfigEntry } from "@react-router/dev/routes";
7
7
 
@@ -182,7 +182,7 @@ declare function buildUrl({
182
182
  }): string;
183
183
  //#endregion
184
184
  //#region src/site-context/middleware.d.ts
185
- declare const siteContext: react_router9.RouterContext<SiteContext | null>;
185
+ declare const siteContext: react_router8.RouterContext<SiteContext | null>;
186
186
  /**
187
187
  * Resolved site context result from {@link resolveSiteContext}.
188
188
  */
@@ -230,9 +230,9 @@ declare function resolveSiteContext(request: Request, settings: SiteSettings): P
230
230
  * ```
231
231
  */
232
232
  declare function getSiteContextCookies(context: Readonly<RouterContextProvider>): {
233
- siteCookie: react_router9.Cookie;
234
- localeCookie: react_router9.Cookie;
235
- currencyCookie: react_router9.Cookie;
233
+ siteCookie: react_router8.Cookie;
234
+ localeCookie: react_router8.Cookie;
235
+ currencyCookie: react_router8.Cookie;
236
236
  } | null;
237
237
  /**
238
238
  * Creates a site context middleware that resolves the current site from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/storefront-next-runtime",
3
- "version": "0.4.0-alpha.2",
3
+ "version": "0.4.0",
4
4
  "description": "Runtime agnostic libraries for SFCC Storefront Next",
5
5
  "type": "module",
6
6
  "exports": {