@salesforce/storefront-next-runtime 0.4.0 → 0.4.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.
@@ -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_router8 from "react-router";
4
+ import * as react_router6 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_router8.RouterContext<SiteContext | null>;
185
+ declare const siteContext: react_router6.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_router8.Cookie;
234
- localeCookie: react_router8.Cookie;
235
- currencyCookie: react_router8.Cookie;
233
+ siteCookie: react_router6.Cookie;
234
+ localeCookie: react_router6.Cookie;
235
+ currencyCookie: react_router6.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",
3
+ "version": "0.4.2",
4
4
  "description": "Runtime agnostic libraries for SFCC Storefront Next",
5
5
  "type": "module",
6
6
  "exports": {
@@ -141,7 +141,7 @@
141
141
  "author": "cc-pwa-kit@salesforce.com",
142
142
  "license": "Apache-2.0",
143
143
  "dependencies": {
144
- "@salesforce/mrt-utilities": "0.1.6",
144
+ "@salesforce/mrt-utilities": "0.2.1",
145
145
  "jiti": "^2.6.1",
146
146
  "openapi-fetch": "0.15.0"
147
147
  },
@@ -181,6 +181,12 @@
181
181
  "remix-i18next": ">=7.0.0"
182
182
  },
183
183
  "peerDependenciesMeta": {
184
+ "@react-router/dev": {
185
+ "optional": true
186
+ },
187
+ "@react-router/fs-routes": {
188
+ "optional": true
189
+ },
184
190
  "i18next": {
185
191
  "optional": true
186
192
  },