@salesforce/storefront-next-runtime 0.4.0-alpha.0 → 0.4.0-alpha.1

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.
package/dist/config.d.ts CHANGED
@@ -2,8 +2,8 @@ import { n as Site, r as Url, t as Locale } from "./types.js";
2
2
  import { n as DefineConfigOptions, r as defineConfig, t as BaseConfig } from "./schema.js";
3
3
  import * as react0 from "react";
4
4
  import { ReactNode } from "react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
- import * as react_router9 from "react-router";
5
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
6
+ import * as react_router13 from "react-router";
7
7
  import { MiddlewareFunction, RouterContextProvider } from "react-router";
8
8
 
9
9
  //#region src/config/get-config.d.ts
@@ -39,7 +39,7 @@ declare function useConfig<T extends Record<string, unknown> = Record<string, un
39
39
  * Populated by `createAppConfigMiddleware` with the `app` section of config.
40
40
  * Accessible in loaders, actions, and middleware via `context.get(appConfigContext)`.
41
41
  */
42
- declare const appConfigContext: react_router9.RouterContext<Record<string, unknown>>;
42
+ declare const appConfigContext: react_router13.RouterContext<Record<string, unknown>>;
43
43
  /**
44
44
  * React context for application configuration.
45
45
  *
@@ -67,7 +67,7 @@ interface ConfigProviderProps {
67
67
  declare function ConfigProvider({
68
68
  config,
69
69
  children
70
- }: ConfigProviderProps): react_jsx_runtime0.JSX.Element;
70
+ }: ConfigProviderProps): react_jsx_runtime2.JSX.Element;
71
71
  //#endregion
72
72
  //#region src/config/middleware.d.ts
73
73
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","names":[],"sources":["../src/config/get-config.ts","../src/config/context.tsx","../src/config/middleware.ts","../src/config/utils.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;QA2C8D,MAAA,CAAA;EACvC,UAAA,MAAA,CAAA;IAAT,cAAA,CAAA,EAdW,MAcX,CAAA,MAAA,EAAA,OAAA,CAAA;EACX;;AA+BH;;;;;;;;AC1C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AAA,CAAA,EAAA,GELgF,CFKhF;AAS1B;;;;;AAEC;AAaD;;;;;;;;;ACjBA;;;AAG+B,cCoBlB,YDpBkB,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,OAAA,EAAA,UAAA,CAAA,ECuBd,MDvBc,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GCwB5B,MDxB4B,CAAA,MAAA,EAAA,OAAA,CAAA;;;;;;;;ACf/B;;;;;;AAmCA;AAqEA;AAqCA;AAiCA;AA4CA;;;;;;;;;;cAlHa;;;;;;;;;;;;;cAqCA;;;;UAiCI,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CJ,uBACJ,iDACQ,mCACH,0BACX"}
1
+ {"version":3,"file":"config.d.ts","names":[],"sources":["../src/config/get-config.ts","../src/config/context.tsx","../src/config/middleware.ts","../src/config/utils.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;QA2C8D,MAAA,CAAA;EACvC,UAAA,MAAA,CAAA;IAAT,cAAA,CAAA,EAdW,MAcX,CAAA,MAAA,EAAA,OAAA,CAAA;EACX;;AA+BH;;;;;;;;AC1CA;AASa,iBDAG,SCAU,CAAA,UDAU,MCAV,CAAA,MAAA,EAAA,OAAA,CAAA,GDAoC,MCApC,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,CAAA,OAAA,CAAA,EDCZ,QCDY,CDCH,qBCDG,CAAA,CAAA,EDEvB,CCFuB;AAS1B;;;;;AAEC;AAaD;AAAiC,iBDSjB,SCTiB,CAAA,UDSG,MCTH,CAAA,MAAA,EAAA,OAAA,CAAA,GDS6B,MCT7B,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,CAAA,CAAA,EDSyD,CCTzD;;;;;;;;;AAjCpB,cAAA,gBAAgB,EAAA,cAAA,CAAA,aAAA,CAAA,MAAA,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA;AAS7B;AASA;;;;;AAIU,cAbG,aAagB,EAbH,M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router";
1
+ import * as react_router2 from "react-router";
2
2
  import { RouterContextProvider } from "react-router";
3
3
 
4
4
  //#region src/data-store/middleware/custom-global-preferences.d.ts
5
5
 
6
6
  type CustomGlobalPreferences = Record<string, unknown>;
7
7
  declare const DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY = "custom-global-preferences";
8
- declare const customGlobalPreferencesContext: react_router3.RouterContext<CustomGlobalPreferences | null>;
8
+ declare const customGlobalPreferencesContext: react_router2.RouterContext<CustomGlobalPreferences | null>;
9
9
  /**
10
10
  * Read custom global preferences from router context.
11
11
  *
@@ -14,7 +14,7 @@ declare const customGlobalPreferencesContext: react_router3.RouterContext<Custom
14
14
  * @throws Error when the data-store context is not available
15
15
  */
16
16
  declare function getCustomGlobalPreferences(context: Readonly<RouterContextProvider>): CustomGlobalPreferences;
17
- declare const customGlobalPreferencesMiddleware: react_router3.MiddlewareFunction<Response>;
17
+ declare const customGlobalPreferencesMiddleware: react_router2.MiddlewareFunction<Response>;
18
18
  //#endregion
19
19
  export { getCustomGlobalPreferences as a, customGlobalPreferencesMiddleware as i, DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY as n, customGlobalPreferencesContext as r, CustomGlobalPreferences as t };
20
20
  //# sourceMappingURL=custom-global-preferences.d.ts.map
@@ -1,11 +1,11 @@
1
- import * as react_router0 from "react-router";
1
+ import * as react_router4 from "react-router";
2
2
  import { RouterContextProvider } from "react-router";
3
3
 
4
4
  //#region src/data-store/middleware/custom-site-preferences.d.ts
5
5
 
6
6
  type SitePreferences = Record<string, unknown>;
7
7
  declare const DEFAULT_SITE_PREFERENCES_KEY = "site-preferences";
8
- declare const sitePreferencesContext: react_router0.RouterContext<SitePreferences | null>;
8
+ declare const sitePreferencesContext: react_router4.RouterContext<SitePreferences | null>;
9
9
  /**
10
10
  * Read site preferences from router context.
11
11
  *
@@ -14,7 +14,7 @@ declare const sitePreferencesContext: react_router0.RouterContext<SitePreference
14
14
  * @throws Error when the data-store context is not available
15
15
  */
16
16
  declare function getSitePreferences(context: Readonly<RouterContextProvider>): SitePreferences;
17
- declare const customSitePreferencesMiddleware: react_router0.MiddlewareFunction<Response>;
17
+ declare const customSitePreferencesMiddleware: react_router4.MiddlewareFunction<Response>;
18
18
  //#endregion
19
19
  export { sitePreferencesContext as a, getSitePreferences as i, SitePreferences as n, customSitePreferencesMiddleware as r, DEFAULT_SITE_PREFERENCES_KEY as t };
20
20
  //# sourceMappingURL=custom-site-preferences.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { a as sitePreferencesContext, i as getSitePreferences, n as SitePreferences, t as DEFAULT_SITE_PREFERENCES_KEY } from "./custom-site-preferences.js";
2
2
  import { a as getCustomGlobalPreferences, n as DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY, r as customGlobalPreferencesContext, t as CustomGlobalPreferences } from "./custom-global-preferences.js";
3
3
  import { a as getGcpApiKey, n as GcpPreferences, o as getGcpPreferences, r as gcpPreferencesContext, t as DEFAULT_GCP_PREFERENCES_KEY } from "./gcp-preferences.js";
4
- import * as react_router6 from "react-router";
4
+ import * as react_router11 from "react-router";
5
5
  import { MiddlewareFunction, RouterContextProvider, createContext } from "react-router";
6
6
  import { DataStoreNotFoundError, DataStoreServiceError, DataStoreUnavailableError } from "@salesforce/mrt-utilities";
7
7
 
@@ -81,7 +81,7 @@ declare function createDataStoreMiddleware<T>(options: DataStoreMiddlewareOption
81
81
  type LoginPreferences = {
82
82
  emailVerificationEnabled?: boolean;
83
83
  };
84
- declare const loginPreferencesContext: react_router6.RouterContext<LoginPreferences | null>;
84
+ declare const loginPreferencesContext: react_router11.RouterContext<LoginPreferences | null>;
85
85
  /**
86
86
  * Read login preferences from router context.
87
87
  *
@@ -91,7 +91,7 @@ declare const loginPreferencesContext: react_router6.RouterContext<LoginPreferen
91
91
  declare function getLoginPreferences(context: Readonly<RouterContextProvider>): LoginPreferences;
92
92
  //#endregion
93
93
  //#region src/data-store/index.d.ts
94
- declare const dataStoreMiddleware: react_router6.MiddlewareFunction<Response>[];
94
+ declare const dataStoreMiddleware: react_router11.MiddlewareFunction<Response>[];
95
95
  //#endregion
96
96
  export { type CustomGlobalPreferences, DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY, DEFAULT_GCP_PREFERENCES_KEY, DEFAULT_SITE_PREFERENCES_KEY, type DataStoreContextKey, type DataStoreEntry, type DataStoreEntryKey, type DataStoreMiddlewareOptions, DataStoreNotFoundError, type DataStoreProvider, DataStoreServiceError, DataStoreUnavailableError, type GcpPreferences, type LoginPreferences, type SitePreferences, createDataStoreContext, createDataStoreMiddleware, customGlobalPreferencesContext, dataStoreMiddleware, gcpPreferencesContext, getCustomGlobalPreferences, getDefaultDataStoreProvider, getGcpApiKey, getGcpPreferences, getLoginPreferences, getSitePreferences, loginPreferencesContext, sitePreferencesContext };
97
97
  //# sourceMappingURL=data-store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-store.d.ts","names":[],"sources":["../src/data-store/provider.ts","../src/data-store/utils.ts","../src/data-store/middleware/login-preferences.ts","../src/data-store/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;AAmBA;AAIA;;;;;AA+BA;KAnCY;UACA;;ACKA,KDFA,iBAAA,GCEmB;EAAsC,IAAA,EAAA,KAAA,GAAA,OAAA;EAAd,QAAA,EAAA,CAAA,SAAA,OAAA,CAAA,CAAA,GAAA,EAAA,MAAA,EAAA,GDAN,OCAM,CDAE,cCAF,CDAiB,MCAjB,CAAA,GAAA,IAAA,CAAA;CAAlB;;;;;;;AAkBrC;AAgBA;;;;;;;;iBDLgB,2BAAA,CAAA,GAA+B,QAAQ;;;KC7B3C,yBAAyB,kBAAkB,cAAc;AAAzD,KAEA,iBAAA,GAFmB,MAAA,GAAA,CAAA,CAAA,OAAA,EAEqB,QAFrB,CAE8B,qBAF9B,CAAA,EAAA,GAAA,MAAA,CAAA;AAAsC,KAIzD,0BAJyD,CAAA,CAAA,CAAA,GAAA;EAAd,QAAA,EAKzC,iBALyC;EAAlB,OAAA,EAMxB,mBANwB,CAMJ,CANI,CAAA;EAAU,SAAA,CAAA,EAAA,CAAA,KAAA,EAOvB,MAPuB,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GAOK,CAPL;EAEnC,QAAA,CAAA,EAMG,iBANc,GAMM,OAN0B,CAMlB,iBANS,CAAA;AAEpD,CAAA;;;;;;;;AAImC,iBAUnB,sBAVmB,CAAA,CAAA,CAAA,CAAA,CAAA,EAUU,mBAVV,CAU8B,CAV9B,CAAA;;AAUnC;AAgBA;;;;;;;;;ACxCA;AAIa,iBDoCG,yBCpCoB,CAAA,CAAA,CAAA,CAAA,OAAA,EDoCkB,0BCpClB,CDoC6C,CCpC7C,CAAA,CAAA,EDoCkD,kBCpClD,CDoCqE,QCpCrE,CAAA;;;KAJxB,gBAAA;;ADMZ,CAAA;AAAqE,cCFxD,uBDEwD,ECFjC,aAAA,CAAA,aDEiC,CCFjC,gBDEiC,GAAA,IAAA,CAAA;;;;AAErE;AAEA;;AAEiC,iBCAjB,mBAAA,CDAiB,OAAA,ECAY,QDAZ,CCAqB,qBDArB,CAAA,CAAA,ECA8C,gBDA9C;;;AAElB,cEiBF,mBFjBE,EEiBiB,aAAA,CAAA,kBFjBjB,CEiBiB,QFjBjB,CAAA,EAAA"}
1
+ {"version":3,"file":"data-store.d.ts","names":[],"sources":["../src/data-store/provider.ts","../src/data-store/utils.ts","../src/data-store/middleware/login-preferences.ts","../src/data-store/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;AAmBA;AAIA;;;;;AA+BA;KAnCY;UACA;;ACKA,KDFA,iBAAA,GCEmB;EAAsC,IAAA,EAAA,KAAA,GAAA,OAAA;EAAd,QAAA,EAAA,CAAA,SAAA,OAAA,CAAA,CAAA,GAAA,EAAA,MAAA,EAAA,GDAN,OCAM,CDAE,cCAF,CDAiB,MCAjB,CAAA,GAAA,IAAA,CAAA;CAAlB;;;;;;;AAkBrC;AAgBA;;;;;;;;iBDLgB,2BAAA,CAAA,GAA+B,QAAQ;;;KC7B3C,yBAAyB,kBAAkB,cAAc;AAAzD,KAEA,iBAAA,GAFmB,MAAA,GAAA,CAAA,CAAA,OAAA,EAEqB,QAFrB,CAE8B,qBAF9B,CAAA,EAAA,GAAA,MAAA,CAAA;AAAsC,KAIzD,0BAJyD,CAAA,CAAA,CAAA,GAAA;EAAd,QAAA,EAKzC,iBALyC;EAAlB,OAAA,EAMxB,mBANwB,CAMJ,CANI,CAAA;EAAU,SAAA,CAAA,EAAA,CAAA,KAAA,EAOvB,MAPuB,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GAOK,CAPL;EAEnC,QAAA,CAAA,EAMG,iBANc,GAMM,OAN0B,CAMlB,iBANS,CAAA;AAEpD,CAAA;;;;;;;;AAImC,iBAUnB,sBAVmB,CAAA,CAAA,CAAA,CAAA,CAAA,EAUU,mBAVV,CAU8B,CAV9B,CAAA;;AAUnC;AAgBA;;;;;;;;;ACxCA;AAIa,iBDoCG,yBCpCoB,CAAA,CAAA,CAAA,CAAA,OAAA,EDoCkB,0BCpClB,CDoC6C,CCpC7C,CAAA,CAAA,EDoCkD,kBCpClD,CDoCqE,QCpCrE,CAAA;;;KAJxB,gBAAA;;ADMZ,CAAA;AAAqE,cCFxD,uBDEwD,ECFjC,cAAA,CAAA,aDEiC,CCFjC,gBDEiC,GAAA,IAAA,CAAA;;;;AAErE;AAEA;;AAEiC,iBCAjB,mBAAA,CDAiB,OAAA,ECAY,QDAZ,CCAqB,qBDArB,CAAA,CAAA,ECA8C,gBDA9C;;;AAElB,cEiBF,mBFjBE,EEiBiB,cAAA,CAAA,kBFjBjB,CEiBiB,QFjBjB,CAAA,EAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_router1 from "react-router";
1
+ import * as react_router0 from "react-router";
2
2
  import { RouterContextProvider } from "react-router";
3
3
 
4
4
  //#region src/data-store/middleware/gcp-preferences.d.ts
@@ -15,7 +15,7 @@ type GcpPreferences = {
15
15
  apiKey: string;
16
16
  };
17
17
  declare const DEFAULT_GCP_PREFERENCES_KEY = "gcp";
18
- declare const gcpPreferencesContext: react_router1.RouterContext<GcpPreferences | null>;
18
+ declare const gcpPreferencesContext: react_router0.RouterContext<GcpPreferences | null>;
19
19
  /**
20
20
  * Read the GCP (Google Cloud Platform) preferences object from router context.
21
21
  *
@@ -46,7 +46,7 @@ declare function getGcpApiKey(context: Readonly<RouterContextProvider>): string;
46
46
  * Must run before any loader/middleware that reads `getGcpPreferences(context)`
47
47
  * or `getGcpApiKey(context)`.
48
48
  */
49
- declare const gcpPreferencesMiddleware: react_router1.MiddlewareFunction<Response>;
49
+ declare const gcpPreferencesMiddleware: react_router0.MiddlewareFunction<Response>;
50
50
  //#endregion
51
51
  export { getGcpApiKey as a, gcpPreferencesMiddleware as i, GcpPreferences as n, getGcpPreferences as o, gcpPreferencesContext as r, DEFAULT_GCP_PREFERENCES_KEY as t };
52
52
  //# sourceMappingURL=gcp-preferences.d.ts.map
@@ -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_runtime2 from "react/jsx-runtime";
4
- import * as react_router10 from "react-router";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
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
 
@@ -102,7 +102,7 @@ declare function SiteProvider({
102
102
  language,
103
103
  currency,
104
104
  children
105
- }: PropsWithChildren<SiteContextValue>): react_jsx_runtime2.JSX.Element;
105
+ }: PropsWithChildren<SiteContextValue>): react_jsx_runtime0.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_router10.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_router10.Cookie;
234
- localeCookie: react_router10.Cookie;
235
- currencyCookie: react_router10.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
@@ -1 +1 @@
1
- {"version":3,"file":"site-context.d.ts","names":[],"sources":["../src/site-context/types.ts","../src/site-context/site-context.tsx","../src/site-context/apply-url-config.ts","../src/site-context/build-url.ts","../src/site-context/middleware.ts","../src/site-context/cookies.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAkCgB,KAdJ,MAAA,GAAS,QAcL,GAAA;EACE,KAAA,CAAA,EAAA,MAAA;CACE;AAAM,KAZd,IAAA,GAAO,IAYO,CAZF,MAYE,EAAA,kBAAA,CAAA,GAAA;EAOd,IAAA,CAAA,EAAA,MAAU;EACX,KAAA,CAAA,EAAA,MAAA;EAGe,gBAAA,EApBJ,MAoBI,EAAA;CACE;AAER,KApBR,WAAA,GAoBQ;EAAa,IAAA,EAnBvB,IAmBuB;EAMrB,MAAA,EAxBA,MAwBA;EAAe,QAAA,EAAA,MAAA;EACO,UAAA,EAvBlB,MAuBkB;EAAT,YAAA,EAtBP,MAsBO;EACW,cAAA,EAtBhB,MAsBgB;CAAT;;;;;AAOf,KAtBA,UAAA,GAsBe;EAGf,KAAA,EAxBD,IAwBC,EAAA;;;wBArBc;EC1Bd,qBAAgB,CAAA,ED2BA,eCdhB;EA4BI,kBAAY,CAAA,EAAA,MAAA;EAAG,aAAA,CAAA,EDZX,aCYW;CAAM;;;;AAA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;;;AJUG,cIVH,WJUG,EIVQ,cAAA,CAAA,aJUR,CIVQ,WJUR,GAAA,IAAA,CAAA;;;;AASJ,KIdA,mBAAA,GJcU;EACX,IAAA,EIdD,IJcC;EAGe,MAAA,EIhBd,MJgBc;EACE,QAAA,EAAA,MAAA;CAER;;AAMpB;;;;;;;;;;AASA;AAGA;;;;AC/CA;AAyCA;;AAAqC,iBGRf,kBAAA,CHQe,OAAA,EGRa,OHQb,EAAA,QAAA,EGRgC,YHQhC,CAAA,EGR+C,OHQ/C,CGRuD,mBHQvD,CAAA;;;;;;;;AAWrC;;;;AC+CA;;;;;;;iBEvCgB,qBAAA,UAA+B,SAAS;EDxBxC,UAAA,ECwBuC,cAAA,CAAA,MDxBK;EA0B5C,YAAA,uBAAe;EAkBf,cAAA,uBAAc;AAmB9B,CAAA,GAAgB,IAAA;;;;;;;;iBCgCA,2BAAA,SAAoC,aAAa,mBAAmB;;;;;;AHnIpF;AAyCA;AAA+B,cITlB,kBJSkB,EITA,OJSA,CITA,OJSA,EAAA,MAAA,CAAA"}
1
+ {"version":3,"file":"site-context.d.ts","names":[],"sources":["../src/site-context/types.ts","../src/site-context/site-context.tsx","../src/site-context/apply-url-config.ts","../src/site-context/build-url.ts","../src/site-context/middleware.ts","../src/site-context/cookies.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAkCgB,KAdJ,MAAA,GAAS,QAcL,GAAA;EACE,KAAA,CAAA,EAAA,MAAA;CACE;AAAM,KAZd,IAAA,GAAO,IAYO,CAZF,MAYE,EAAA,kBAAA,CAAA,GAAA;EAOd,IAAA,CAAA,EAAA,MAAU;EACX,KAAA,CAAA,EAAA,MAAA;EAGe,gBAAA,EApBJ,MAoBI,EAAA;CACE;AAER,KApBR,WAAA,GAoBQ;EAAa,IAAA,EAnBvB,IAmBuB;EAMrB,MAAA,EAxBA,MAwBA;EAAe,QAAA,EAAA,MAAA;EACO,UAAA,EAvBlB,MAuBkB;EAAT,YAAA,EAtBP,MAsBO;EACW,c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AA,MAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,MAAA;;;;ACnEpB;AA0BA;AAkBA;AAmBA;;;;;;AAOkB,iBAPF,QAAA,CAOE;EAAA,EAAA;EAAA,SAAA;EAAA;ACvGlB,CDuGkB,EAAA;;cADF;UACJ;ACvGZ,CAAA,CAAA,EAAa,MAAA;;;AJUG,cIVH,WJUG,EIVQ,aAAA,CAAA,aJUR,CIVQ,WJUR,GAAA,IAAA,CAAA;;;;AASJ,KIdA,mBAAA,GJcU;EACX,IAAA,EIdD,IJcC;EAGe,MAAA,EIhBd,MJgBc;EACE,QAAA,EAAA,MAAA;CAER;;AAMpB;;;;;;;;;;AASA;AAGA;;;;AC/CA;AAyCA;;AAAqC,iBGRf,kBAAA,CHQe,OAAA,EGRa,OHQb,EAAA,QAAA,EGRgC,YHQhC,CAAA,EGR+C,OHQ/C,CGRuD,mBHQvD,CAAA;;;;;;;;AAWrC;;;;AC+CA;;;;;;;iBEvCgB,qBAAA,UAA+B,SAAS;EDxBxC,UAAA,ECwBuC,aAAA,CAAA,MDxBK;EA0B5C,YAAA,sBAAe;EAkBf,cAAA,sBAAc;AAmB9B,CAAA,GAAgB,IAAA;;;;;;;;iBCgCA,2BAAA,SAAoC,aAAa,mBAAmB;;;;;;AHnIpF;AAyCA;AAA+B,cITlB,kBJSkB,EITA,OJSA,CITA,OJSA,EAAA,MAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/storefront-next-runtime",
3
- "version": "0.4.0-alpha.0",
3
+ "version": "0.4.0-alpha.1",
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.0",
144
+ "@salesforce/mrt-utilities": "0.1.6",
145
145
  "jiti": "^2.6.1",
146
146
  "openapi-fetch": "0.15.0"
147
147
  },