@lwrjs/types 0.15.0-alpha.10 → 0.15.0-alpha.12

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/build/config.d.ts CHANGED
@@ -41,6 +41,8 @@ export interface LwrAppBootstrapConfig {
41
41
  configAsSrc?: boolean;
42
42
  ssr?: boolean;
43
43
  preloadData?: boolean;
44
+ proxyForSSR?: boolean;
45
+ includeCookiesForSSR?: boolean;
44
46
  mixedMode?: boolean;
45
47
  module?: string | undefined;
46
48
  preloadModules?: string[];
package/build/index.d.ts CHANGED
@@ -191,7 +191,9 @@ export interface RuntimeEnvironment extends ServerModeConfig {
191
191
  export interface SourceMapRuntimeEnvironment extends RuntimeEnvironment {
192
192
  sourceMapUrl?: string;
193
193
  }
194
- export type RuntimeParams = Record<string, string | number | boolean | null | undefined | Record<string, string>>;
194
+ export type RuntimeParams = Record<string, string | number | boolean | null | undefined | Record<string, string>> & {
195
+ requestCache?: Record<string, any>;
196
+ };
195
197
  export interface EnvironmentContext {
196
198
  basePath: string;
197
199
  locale: string;
@@ -11,6 +11,16 @@ export interface ServerDataCallback {
11
11
  interface RegisterServerDataCallback {
12
12
  (hook: ServerDataCallback): void;
13
13
  }
14
+ export type RequestHookParams = {
15
+ cookies: RequestHookCookies;
16
+ };
17
+ export type RequestHookCookies = Record<string, string> | null;
18
+ export interface RequestHook {
19
+ (params: RequestHookParams): void | null;
20
+ }
21
+ interface RegisterRequestHook {
22
+ (hook: RequestHook): void;
23
+ }
14
24
  export interface ServiceAPI {
15
25
  addLoaderPlugin: NoOp | RegisterLoaderHooks;
16
26
  handleStaleModule: RegisterHandleStaleModuleHook;
@@ -20,6 +30,7 @@ export interface ServiceAPI {
20
30
  export interface ServerServiceAPI {
21
31
  addLoaderPlugin: NoOp | RegisterLoaderHooks;
22
32
  addServerDataCallback: RegisterServerDataCallback;
33
+ addRequestHook: RegisterRequestHook;
23
34
  }
24
35
  export interface NoOp {
25
36
  (): void;
package/build/views.d.ts CHANGED
@@ -212,6 +212,7 @@ export interface SsrRequestContext {
212
212
  query: ViewRequestQs;
213
213
  locale: string;
214
214
  basePath: string;
215
+ lwrCache: Record<string, any>;
215
216
  }
216
217
  export interface SsrRequestOptions {
217
218
  bundleSpecifier: string;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.15.0-alpha.10",
11
+ "version": "0.15.0-alpha.12",
12
12
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
13
13
  "repository": {
14
14
  "type": "git",
@@ -29,5 +29,5 @@
29
29
  "engines": {
30
30
  "node": ">=18.0.0"
31
31
  },
32
- "gitHead": "2f05a197481dd6204915668ff38459c5a324c040"
32
+ "gitHead": "24d0d4a163fcfbaa5e0a005aafd7cf77f314a2ab"
33
33
  }