@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 +2 -0
- package/build/index.d.ts +3 -1
- package/build/serviceAPI/serviceAPI.d.ts +11 -0
- package/build/views.d.ts +1 -0
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
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
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.
|
|
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": "
|
|
32
|
+
"gitHead": "24d0d4a163fcfbaa5e0a005aafd7cf77f314a2ab"
|
|
33
33
|
}
|