@salesforce/storefront-next-runtime 0.4.0-alpha.3 → 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
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
- import * as react_router6 from "react-router";
3
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
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
 
@@ -102,7 +102,7 @@ declare function SiteProvider({
102
102
  language,
103
103
  currency,
104
104
  children
105
- }: PropsWithChildren<SiteContextValue>): react_jsx_runtime0.JSX.Element;
105
+ }: PropsWithChildren<SiteContextValue>): react_jsx_runtime1.JSX.Element;
106
106
  /**
107
107
  * React hook to get the current site context.
108
108
  * Returns `{ site, locale, language, currency }`.
@@ -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_router6.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_router6.Cookie;
234
- localeCookie: react_router6.Cookie;
235
- currencyCookie: react_router6.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.3",
3
+ "version": "0.4.0",
4
4
  "description": "Runtime agnostic libraries for SFCC Storefront Next",
5
5
  "type": "module",
6
6
  "exports": {