@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.
- package/dist/config.d.ts +2 -2
- package/dist/data-store.d.ts +3 -3
- package/dist/data-store.d.ts.map +1 -1
- package/dist/scapi.d.ts.map +1 -1
- package/dist/site-context.d.ts +5 -5
- package/package.json +8 -2
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
|
|
6
|
+
import * as react_router11 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:
|
|
42
|
+
declare const appConfigContext: react_router11.RouterContext<Record<string, unknown>>;
|
|
43
43
|
/**
|
|
44
44
|
* React context for application configuration.
|
|
45
45
|
*
|
package/dist/data-store.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
import * as react_router12 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:
|
|
57
|
+
declare const loginPreferencesContext: react_router12.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:
|
|
67
|
+
declare const dataStoreMiddleware: react_router12.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
|
package/dist/data-store.d.ts.map
CHANGED
|
@@ -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,
|
|
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,OA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