@salesforce/storefront-next-runtime 0.4.0 → 0.4.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
@@ -3,7 +3,7 @@ import { n as DefineConfigOptions, r as defineConfig, t as BaseConfig } from "./
3
3
  import * as react0 from "react";
4
4
  import { ReactNode } from "react";
5
5
  import * as react_jsx_runtime2 from "react/jsx-runtime";
6
- import * as react_router12 from "react-router";
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_router12.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
  *
@@ -1,11 +1,11 @@
1
- import * as react_router0 from "react-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_router0.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_router0.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_router0.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_router3 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/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_router3.RouterContext<SitePreferences | null>;
8
+ declare const sitePreferencesContext: react_router0.RouterContext<SitePreferences | null>;
9
9
  /**
10
10
  * Read site preferences from router context.
11
11
  *
@@ -14,7 +14,7 @@ declare const sitePreferencesContext: react_router3.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_router3.MiddlewareFunction<Response>;
17
+ declare const customSitePreferencesMiddleware: react_router0.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_router10 from "react-router";
5
5
  import { MiddlewareFunction, RouterContextProvider, createContext } from "react-router";
6
6
  import { DataStore, DataStoreNotFoundError, DataStoreServiceError, DataStoreUnavailableError } from "@salesforce/mrt-utilities/data-store";
7
7
 
@@ -54,7 +54,7 @@ declare function getDataStoreEntry<TValue = unknown>(key: string): Promise<DataS
54
54
  type LoginPreferences = {
55
55
  emailVerificationEnabled?: boolean;
56
56
  };
57
- declare const loginPreferencesContext: react_router6.RouterContext<LoginPreferences | null>;
57
+ declare const loginPreferencesContext: react_router10.RouterContext<LoginPreferences | null>;
58
58
  /**
59
59
  * Read login preferences from router context.
60
60
  *
@@ -64,7 +64,7 @@ declare const loginPreferencesContext: react_router6.RouterContext<LoginPreferen
64
64
  declare function getLoginPreferences(context: Readonly<RouterContextProvider>): LoginPreferences;
65
65
  //#endregion
66
66
  //#region src/data-store/index.d.ts
67
- declare const dataStoreMiddleware: react_router6.MiddlewareFunction<Response>[];
67
+ declare const dataStoreMiddleware: react_router10.MiddlewareFunction<Response>[];
68
68
  //#endregion
69
69
  export { type CustomGlobalPreferences, DEFAULT_CUSTOM_GLOBAL_PREFERENCES_KEY, DEFAULT_GCP_PREFERENCES_KEY, DEFAULT_SITE_PREFERENCES_KEY, DataStore, type DataStoreContextKey, type DataStoreEntry, type DataStoreEntryKey, type DataStoreMiddlewareOptions, DataStoreNotFoundError, DataStoreServiceError, DataStoreUnavailableError, type GcpPreferences, type LoginPreferences, type SitePreferences, createDataStoreContext, createDataStoreMiddleware, customGlobalPreferencesContext, dataStoreMiddleware, gcpPreferencesContext, getCustomGlobalPreferences, getDataStoreEntry, getGcpApiKey, getGcpPreferences, getLoginPreferences, getSitePreferences, loginPreferencesContext, sitePreferencesContext };
70
70
  //# sourceMappingURL=data-store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-store.d.ts","names":[],"sources":["../src/data-store/utils.ts","../src/data-store/middleware/login-preferences.ts","../src/data-store/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAkCc,KATF,mBASE,CAAA,CAAA,CAAA,GATuB,UASvB,CAAA,OATyC,aASzC,CATuD,CASvD,GAAA,IAAA,CAAA,CAAA;AACmB,KARrB,iBAAA,GAQqB,MAAA,GAAA,CAAA,CAAA,OAAA,EARmB,QAQnB,CAR4B,qBAQ5B,CAAA,EAAA,GAAA,MAAA,CAAA;AAApB,KAND,cAMC,CAAA,SAAA,OAAA,CAAA,GAAA;EACW,KAAA,CAAA,EANZ,MAMY;CAA4B;AAEhC,KALR,0BAKQ,CAAA,CAAA,CAAA,GAAA;EAAwB,QAAA,EAJ9B,iBAI8B;EAAT,OAAA,EAHtB,mBAGsB,CAHF,CAGE,CAAA;EAAoC,SAAA,CAAA,EAAA,CAAA,KAAA,EAF/C,MAE+C,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GAFnB,CAEmB;EAAC,aAAA,CAAA,EAAA,OAAA,GAAA,UAAA;EAUxD,aAAA,CAAA,EAVI,CAUJ,GAAA,CAAA,CAAA,OAAsB,EAVH,QAU8B,CAVrB,qBAUoB,CAAA,EAAA,GAVO,CAUP,CAAA;AAgBhE,CAAA;;;;;;AAwDA;;AAAgF,iBAxEhE,sBAwEgE,CAAA,CAAA,CAAA,CAAA,CAAA,EAxEnC,mBAwEmC,CAxEf,CAwEe,CAAA;;;;;;ACrGhF;AAIA;AASA;;;;;iBDgCgB,sCAAsC,2BAA2B,KAAK,mBAAmB;;;AETzG;;;;;;iBFiEsB,kDAAkD,QAAQ,eAAe;;;AAtFjF,KCfF,gBAAA,GDeE;EACmB,wBAAA,CAAA,EAAA,OAAA;CAApB;AACW,cCbX,uBDaW,ECbY,aAAA,CAAA,aDaZ,CCbY,gBDaZ,GAAA,IAAA,CAAA;;;;;;;AAYR,iBChBA,mBAAA,CDgBiD,OAApB,EChBA,QDgBA,CChBS,qBDgBU,CAAA,CAAA,EChBe,gBDgBf;;;AAgBsB,cETzE,mBFSyE,EETtD,aAAA,CAAA,kBFSsD,CETtD,QFSsD,CAAA,EAAA"}
1
+ {"version":3,"file":"data-store.d.ts","names":[],"sources":["../src/data-store/utils.ts","../src/data-store/middleware/login-preferences.ts","../src/data-store/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAkCc,KATF,mBASE,CAAA,CAAA,CAAA,GATuB,UASvB,CAAA,OATyC,aASzC,CATuD,CASvD,GAAA,IAAA,CAAA,CAAA;AACmB,KARrB,iBAAA,GAQqB,MAAA,GAAA,CAAA,CAAA,OAAA,EARmB,QAQnB,CAR4B,qBAQ5B,CAAA,EAAA,GAAA,MAAA,CAAA;AAApB,KAND,cAMC,CAAA,SAAA,OAAA,CAAA,GAAA;EACW,KAAA,CAAA,EANZ,MAMY;CAA4B;AAEhC,KALR,0BAKQ,CAAA,CAAA,CAAA,GAAA;EAAwB,QAAA,EAJ9B,iBAI8B;EAAT,OAAA,EAHtB,mBAGsB,CAHF,CAGE,CAAA;EAAoC,SAAA,CAAA,EAAA,CAAA,KAAA,EAF/C,MAE+C,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,GAFnB,CAEmB;EAAC,aAAA,CAAA,EAAA,OAAA,GAAA,UAAA;EAUxD,aAAA,CAAA,EAVI,CAUJ,GAAA,CAAA,CAAA,OAAsB,EAVH,QAU8B,CAVrB,qBAUoB,CAAA,EAAA,GAVO,CAUP,CAAA;AAgBhE,CAAA;;;;;;AAwDA;;AAAgF,iBAxEhE,sBAwEgE,CAAA,CAAA,CAAA,CAAA,CAAA,EAxEnC,mBAwEmC,CAxEf,CAwEe,CAAA;;;;;;ACrGhF;AAIA;AASA;;;;;iBDgCgB,sCAAsC,2BAA2B,KAAK,mBAAmB;;;AETzG;;;;;;iBFiEsB,kDAAkD,QAAQ,eAAe;;;AAtFjF,KCfF,gBAAA,GDeE;EACmB,wBAAA,CAAA,EAAA,OAAA;CAApB;AACW,cCbX,uBDaW,ECbY,cAAA,CAAA,aDaZ,CCbY,gBDaZ,GAAA,IAAA,CAAA;;;;;;;AAYR,iBChBA,mBAAA,CDgBiD,OAApB,EChBA,QDgBA,CChBS,qBDgBU,CAAA,CAAA,EChBe,gBDgBf;;;AAgBsB,cETzE,mBFSyE,EETtD,cAAA,CAAA,kBFSsD,CETtD,QFSsD,CAAA,EAAA"}
@@ -3,7 +3,7 @@ import { n as ComponentModule, o as FrameworkAdapter } from "./types3.js";
3
3
  import { g as IsomorphicConfiguration } from "./index.js";
4
4
  import { i as RegionDecoratorProps, t as ComponentDecoratorProps } from "./component.types.js";
5
5
  import React$1 from "react";
6
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
7
7
 
8
8
  //#region src/design/react/core/PageDesignerProvider.d.ts
9
9
  type PageDesignerContextType = {
@@ -49,7 +49,7 @@ declare function PageDesignerPageMetadataProvider({
49
49
  children
50
50
  }: React.PropsWithChildren<{
51
51
  page: ShopperExperience.schemas['Page'];
52
- }>): react_jsx_runtime0.JSX.Element;
52
+ }>): react_jsx_runtime1.JSX.Element;
53
53
  //#endregion
54
54
  //#region src/design/react/core/RegionContext.d.ts
55
55
  interface RegionContextType {
@@ -1,4 +1,4 @@
1
- import * as react_router1 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/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_router4.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_router4.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